@ozdao/prometheus-framework 0.2.311 → 0.2.313

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. package/dist/main.css +1 -1
  2. package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.cjs +4 -3
  3. package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.cjs.map +1 -1
  4. package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.js +5 -4
  5. package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.js.map +1 -1
  6. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +3 -2
  7. package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs.map +1 -1
  8. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +3 -2
  9. package/dist/prometheus-framework/src/components/Feed/Feed.vue.js.map +1 -1
  10. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +21 -14
  11. package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs.map +1 -1
  12. package/dist/prometheus-framework/src/components/Field/Field.vue2.js +21 -14
  13. package/dist/prometheus-framework/src/components/Field/Field.vue2.js.map +1 -1
  14. package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs +1 -1
  15. package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs.map +1 -1
  16. package/dist/prometheus-framework/src/modules/auth/views/router/users.js +1 -1
  17. package/dist/prometheus-framework/src/modules/auth/views/router/users.js.map +1 -1
  18. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
  19. package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
  20. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
  21. package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
  22. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
  23. package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
  24. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
  25. package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
  26. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
  27. package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +1 -1
  28. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
  29. package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
  30. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  31. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs.map +1 -1
  32. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  33. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js.map +1 -1
  34. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
  35. package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
  36. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  37. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  38. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
  39. package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
  40. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
  41. package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
  42. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +6 -1
  43. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs.map +1 -1
  44. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +6 -1
  45. package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js.map +1 -1
  46. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +6 -18
  47. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
  48. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +10 -22
  49. package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
  50. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
  51. package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -1
  52. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +2 -2
  53. package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
  54. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
  55. package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
  56. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
  57. package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
  58. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
  59. package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
  60. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
  61. package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
  62. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  63. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  64. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +34 -14
  65. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs.map +1 -1
  66. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +34 -14
  67. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js.map +1 -1
  68. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
  69. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
  70. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +1 -1
  71. package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.js +1 -1
  72. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
  73. package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
  74. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  75. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  76. package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +695 -684
  77. package/dist/prometheus-framework/src/modules/pages/pages.client.js +695 -684
  78. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.cjs +36 -23
  79. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.cjs.map +1 -1
  80. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.js +37 -24
  81. package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.js.map +1 -1
  82. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +2 -2
  83. package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
  84. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +39 -15
  85. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs.map +1 -1
  86. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +39 -15
  87. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
  88. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.cjs +14 -4
  89. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.cjs.map +1 -1
  90. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.js +15 -5
  91. package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.js.map +1 -1
  92. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs +3 -1
  93. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs.map +1 -1
  94. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js +3 -1
  95. package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js.map +1 -1
  96. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
  97. package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
  98. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +7 -74
  99. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs.map +1 -1
  100. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +7 -74
  101. package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js.map +1 -1
  102. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +2 -2
  103. package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
  104. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +7 -7
  105. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs.map +1 -1
  106. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +8 -8
  107. package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js.map +1 -1
  108. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +4 -3
  109. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
  110. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +4 -3
  111. package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
  112. package/dist/prometheus-framework/src/modules/products/components/sections/CategoriesTree.vue.cjs +8 -8
  113. package/dist/prometheus-framework/src/modules/products/components/sections/CategoriesTree.vue.cjs.map +1 -1
  114. package/dist/prometheus-framework/src/modules/products/components/sections/CategoriesTree.vue.js +9 -9
  115. package/dist/prometheus-framework/src/modules/products/components/sections/CategoriesTree.vue.js.map +1 -1
  116. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  117. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
  118. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs +1 -1
  119. package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js +1 -1
  120. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +40 -65
  121. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs.map +1 -1
  122. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +41 -66
  123. package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js.map +1 -1
  124. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +60 -28
  125. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs.map +1 -1
  126. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +63 -31
  127. package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js.map +1 -1
  128. package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs +1 -1
  129. package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs.map +1 -1
  130. package/dist/prometheus-framework/src/modules/products/store/marketplace.js +1 -1
  131. package/dist/prometheus-framework/src/modules/products/store/marketplace.js.map +1 -1
  132. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  133. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  134. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
  135. package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
  136. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
  137. package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
  138. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
  139. package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
  140. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
  141. package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
  142. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +2 -2
  143. package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
  144. package/dist/prometheus-framework.cjs.js +15 -15
  145. package/dist/prometheus-framework.es.js +640 -629
  146. package/package.json +1 -1
  147. package/src/components/BottomSheet/BottomSheet.vue +4 -2
  148. package/src/components/Feed/Feed.vue +1 -0
  149. package/src/components/Field/Field.vue +11 -4
  150. package/src/modules/auth/views/router/users.js +1 -1
  151. package/src/modules/community/components/pages/CreateBlogPost.vue +1 -1
  152. package/src/modules/globals/views/components/blocks/BlockSearch.vue +5 -0
  153. package/src/modules/globals/views/components/layouts/Client.vue +2 -2
  154. package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +15 -0
  155. package/src/modules/products/components/blocks/CardCategory.vue +56 -25
  156. package/src/modules/products/components/blocks/CardProduct.vue +46 -20
  157. package/src/modules/products/components/elements/Price.vue +10 -2
  158. package/src/modules/products/components/pages/Catalog.vue +3 -1
  159. package/src/modules/products/components/pages/CategoryEdit.vue +2 -32
  160. package/src/modules/products/components/pages/Product.vue +5 -21
  161. package/src/modules/products/components/pages/Products.vue +6 -4
  162. package/src/modules/products/components/sections/CategoriesTree.vue +3 -5
  163. package/src/modules/products/components/sections/PopularProducts.vue +28 -50
  164. package/src/modules/products/components/sections/SectionProduct.vue +48 -26
  165. package/src/modules/products/controllers/products.controller.js +1 -0
  166. package/src/modules/products/store/marketplace.js +1 -1
  167. package/src/styles/typography.scss +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozdao/prometheus-framework",
3
- "version": "0.2.311",
3
+ "version": "0.2.313",
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",
@@ -3,8 +3,10 @@
3
3
  <section
4
4
  ref="wrapper"
5
5
  class="w-100 h-100vh"
6
- :style="MOBILE_APP === 'ios' ?'padding-top: 6rem;':''"
7
- >
6
+ :class="{
7
+ 'pd-t-extra': MOBILE_APP === 'ios',
8
+ }"
9
+ >
8
10
  <!-- Toggle To Close -->
9
11
  <div
10
12
  @click="emits('toggle')"
@@ -7,6 +7,7 @@
7
7
  :placeholder="search.placeholder || 'Search...'"
8
8
  :class="search.class || 'bg-light'"
9
9
  @search="updateSearch"
10
+ :autofocus="search.autofocus"
10
11
  />
11
12
 
12
13
  <template
@@ -12,7 +12,8 @@
12
12
  value: null,
13
13
  validation: false,
14
14
  disabled: null,
15
- tabindex: -1
15
+ tabindex: -1,
16
+ autofocus: false
16
17
  });
17
18
 
18
19
  if (props.value) {
@@ -20,20 +21,23 @@
20
21
  }
21
22
 
22
23
  const textarea = ref(null);
24
+ const input = ref(null);
25
+
23
26
 
24
27
  function resize() {
25
28
  if (textarea.value) textarea.value.style.height = "1rem";
26
29
  if (textarea.value) textarea.value.style.height = textarea.value?.scrollHeight + "px";
27
30
  }
28
31
 
29
-
30
32
  onUpdated(() => {
31
- if (props.type === 'textarea') nextTick(() => { { focus()} })
33
+ if (props.type === 'textarea')
34
+ nextTick(() => { { focus()} })
32
35
  resize()
33
36
  });
34
37
 
35
38
  onMounted(() => {
36
- if (props.type === 'textarea') nextTick(() => { { focus()} })
39
+ if (props.type === 'textarea')
40
+ nextTick(() => { { focus()} })
37
41
  resize()
38
42
  });
39
43
 
@@ -62,6 +66,7 @@
62
66
  <div class="w-100">
63
67
  <input
64
68
  v-if="type !== 'textarea'"
69
+ ref="input"
65
70
  @input="event => text = emit('update:field', event.target.value)"
66
71
  @focus="event => emit('focus', event)"
67
72
  @blur="event => emit('blur', event)"
@@ -71,6 +76,8 @@
71
76
  :placeholder="placeholder"
72
77
  :tabindex="tabindex"
73
78
  :disabled="disabled"
79
+ :autofocus="autofocus"
80
+
74
81
  />
75
82
  <textarea
76
83
  v-else
@@ -57,7 +57,7 @@ const users = {
57
57
  component: () => import(/* webpackChunkName: "profile" */ '../components/pages/ProfileEdit.vue'),
58
58
  },{
59
59
  path: ':_id/blogposts',
60
- name: 'User Blogposts',
60
+ name: 'User Posts',
61
61
  meta: {
62
62
  title: {
63
63
  en: 'Posts',
@@ -308,7 +308,7 @@ function onDelete() {
308
308
  if (confirm('Are you sure you want to delete this post?')) {
309
309
  blog.remove(post.value._id)
310
310
  .then(response => {
311
- router.push({ name: 'User Blogposts', params: { _id: post.value.creator.target._id } });
311
+ router.push({ name: 'User Posts', params: { _id: post.value.creator.target._id } });
312
312
  })
313
313
  .catch(error => {
314
314
  console.log(error);
@@ -10,6 +10,10 @@ const props = defineProps({
10
10
  type: String,
11
11
  default: 'Enter shop or product name'
12
12
  },
13
+ autofocus:{
14
+ type: Boolean,
15
+ default: false
16
+ },
13
17
  button: {
14
18
  type: String,
15
19
  default: 'Search'
@@ -30,6 +34,7 @@ const updateSearch = (search) => {
30
34
  <Field
31
35
  :placeholder="placeholder"
32
36
  @update:field="search => updateSearch(search)"
37
+ :autofocus="autofocus"
33
38
  class="w-100"
34
39
  />
35
40
 
@@ -30,14 +30,14 @@
30
30
  />
31
31
  </transition>
32
32
 
33
- <Popup
33
+ <!-- <Popup
34
34
  v-if="route.meta.header.location"
35
35
  @close-popup="closeLocationPopup"
36
36
  :isPopupOpen="globals.state.isOpenLocationPopup"
37
37
  class="bg-white pd-semi w-m-33r radius-big"
38
38
  >
39
39
  <LocationSelection />
40
- </Popup>
40
+ </Popup> -->
41
41
 
42
42
  <section
43
43
  id="screen"
@@ -50,6 +50,21 @@
50
50
  </span>
51
51
  </MenuItem>
52
52
 
53
+ <MenuItem
54
+ v-if="hasAccess(route.params._id, 'products', 'read', auth.state.accesses)"
55
+ @click="router.push({
56
+ name: 'Categories',
57
+ params: {
58
+ _id: route.params._id
59
+ }
60
+ })"
61
+ class="cursor-pointer">
62
+ <IconProducts class="i-semi" :icon="true" :fill="'rgb(var(--white))'"/>
63
+ <span>
64
+ Categories
65
+ </span>
66
+ </MenuItem>
67
+
53
68
  <MenuItem
54
69
  v-if="hasAccess(route.params._id, 'leftovers', 'read', auth.state.accesses)"
55
70
  @click="router.push({
@@ -1,6 +1,46 @@
1
1
  <template>
2
- <div class="flex-v-center flex-column flex">
3
- <h4 class="mn-r-auto">{{category.order}} / {{category.name}}</h4>
2
+ <div class="flex-v-center bg-light pd-small radius-small flex-column flex">
3
+ <div class="w-100 flex-nowrap gap-thin flex">
4
+ <h4 class="my-handle mn-r-auto">{{category.name}}</h4>
5
+
6
+ <router-link
7
+ :to="{
8
+ name: 'Category Edit',
9
+ params: {
10
+ _id: route.params._id,
11
+ category: category.url
12
+ }
13
+ }"
14
+ class="
15
+ i-semi
16
+ z-index-2
17
+ cursor-pointer
18
+ card-page-actions
19
+ radius-extra pd-micro bg-second
20
+ "
21
+ >
22
+ <IconEdit
23
+ class="w-100 h-100"
24
+ classes="fill-white"
25
+ />
26
+ </router-link>
27
+
28
+ <button
29
+ @click="deleteCategory(category)"
30
+ class="
31
+ i-semi
32
+ z-index-2
33
+ cursor-pointer
34
+ card-page-actions
35
+ radius-extra pd-micro bg-second
36
+ "
37
+ >
38
+ <IconAdd
39
+ class="w-100 h-100"
40
+ :fill="'white'"
41
+ />
42
+ </button>
43
+ </div>
4
44
 
5
45
  <!-- <p v-if=" category.children.length > 0" class="w-100">Subcategories:</p> -->
6
46
  <!-- <CardCategory
@@ -10,25 +50,6 @@
10
50
  class="pd-l-small bg-white w-100"
11
51
  /> -->
12
52
 
13
- <router-link
14
- :to="{
15
- name: 'Category Edit',
16
- params: {
17
- _id: route.params._id,
18
- category: category.url
19
- }
20
- }"
21
- class="mn-r-medium nav-link"
22
- >
23
- Edit
24
- </router-link>
25
-
26
- <a
27
- class="nav-link"
28
- @click="deleteCategory(category)"
29
- >
30
- Delete
31
- </a>
32
53
  </div>
33
54
  </template>
34
55
 
@@ -39,6 +60,9 @@ import { useRoute, useRouter } from 'vue-router';
39
60
 
40
61
  import CardCategory from './CardCategory.vue'
41
62
 
63
+ import IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'
64
+ import IconAdd from '@pf/src/modules/icons/navigation/IconAdd.vue'
65
+
42
66
  const props = defineProps({
43
67
  category: Object,
44
68
  });
@@ -55,10 +79,17 @@ const deleteCategory = (category) => {
55
79
  </script>
56
80
 
57
81
 
58
- <style lang="scss">
59
- .categories-card {
60
82
 
83
+ <style lang="scss">
84
+ .card-title {
85
+ .card-page-actions {
86
+ display: none;
87
+ }
88
+
89
+ &:hover {
90
+ .card-page-actions {
91
+ display: block;
92
+ }
93
+ }
61
94
  }
62
95
  </style>
63
-
64
-
@@ -1,12 +1,14 @@
1
1
  <template>
2
2
  <div
3
3
  class="
4
- radius-big
4
+ radius-medium
5
5
  cols-1
6
6
  o-hidden
7
7
  pos-relative
8
8
  "
9
9
  >
10
+
11
+ <!-- listing/ -->
10
12
  <router-link
11
13
  v-if="access"
12
14
  :to="organization ? { name: 'Organization_ProductEdit', params: { _id: organization, product: product._id } } : { name: 'ProductEdit' }"
@@ -27,7 +29,7 @@
27
29
 
28
30
 
29
31
  <div
30
- class="o-hidden w-100 pos-relative aspect-1x1"
32
+ class="o-hidden pd-thin pd-b-zero radius-medium o-hidden w-100 pos-relative aspect-1x1"
31
33
  :class="
32
34
  product.information[2]
33
35
  && product.information[2].value === 'AAAA'
@@ -45,14 +47,14 @@
45
47
 
46
48
  <PlaceholderImage
47
49
  v-else
48
- class="pos-absolute h-100 w-100"
50
+ class="bg-white radius-medium h-100 w-100"
49
51
  />
50
- <span v-if="product.quantity <= 0" class="pos-absolute bg-white t-black pd-thin radius-big p-small t-medium pos-t-medium pos-l-medium">Out of Stock</span>
52
+ <span v-if="product.quantity <= 0 && product.listing === 'rent'" class="pos-absolute bg-white t-black pd-thin radius-big p-small t-medium pos-t-medium pos-l-medium">Out of Stock</span>
51
53
  <THC v-if="product.information?.length > 0 && product.information[1]?.name === 'THC'" :product="product" />
52
54
  </div>
53
55
 
54
56
  <!-- Product Info Start -->
55
- <div class="pd-medium t-left product-card-content">
57
+ <div class="pd-small t-left product-card-content">
56
58
  <!-- Detail -->
57
59
  <p
58
60
  v-if="product.information.length > 0"
@@ -67,12 +69,12 @@
67
69
  {{product.information[0].value}}
68
70
  </p>
69
71
  <!-- Name -->
70
- <p class="mn-b-thin t-semi h4">
71
- {{product.name}}
72
- </p>
72
+ <span style=" hyphens: auto;" class="word-break mn-b-thin w-100 w-max-100 t-regular h5">
73
+ {{product.name.substring(0,32)}}...
74
+ </span>
73
75
 
74
76
  <p
75
- v-if="product.description && !product.localization"
77
+ v-if="product.description && !product.localization && product.listing !== 'rent'"
76
78
  class="mn-b-small t-transp p-small"
77
79
  >
78
80
  {{product.description.substring(0, 99)}}...
@@ -83,16 +85,28 @@
83
85
  <span v-if="$i18n.locale === 'ru'">{{product.localization[1].text.substring(0, 99)}}...</span>
84
86
  </p> -->
85
87
 
86
- <Price
87
- :product="product"
88
- size="small"
89
- :class="
90
- product.information[2]
91
- && product.information[2].value === 'AAAA'
92
- ? 'bg-third t-white'
93
- : ''
94
- "
95
- />
88
+ <div class="flex-v-center flex-nowrap flex">
89
+ <Price
90
+ :product="product"
91
+ size="small"
92
+ class="mn-r-auto"
93
+ />
94
+
95
+
96
+
97
+ <button
98
+ v-if="user && product.listing === 'rent'"
99
+ class="
100
+ z-index-2
101
+ cursor-pointer
102
+ radius-extra pd-thin bg-main
103
+ "
104
+ >
105
+ <svg class="i-medium" xmlns="http://www.w3.org/2000/svg" width="26" height="21" viewBox="0 0 26 21" fill="none">
106
+ <path d="M8.19141 15.582C7.49414 15.582 6.95638 15.3861 6.57812 14.9941C6.19987 14.6022 5.95833 14.0622 5.85352 13.374L4.52734 4.30957H1.9502C1.68587 4.30957 1.45801 4.21387 1.2666 4.02246C1.0752 3.8265 0.979492 3.59408 0.979492 3.3252C0.979492 3.05632 1.0752 2.82617 1.2666 2.63477C1.45801 2.4388 1.68587 2.34082 1.9502 2.34082H4.91699C5.43197 2.34082 5.79655 2.44564 6.01074 2.65527C6.22493 2.86035 6.36393 3.16797 6.42773 3.57812L6.55078 4.42578H14.7471C14.7288 4.5625 14.7152 4.69922 14.7061 4.83594C14.6969 4.97266 14.6924 5.10938 14.6924 5.24609C14.6924 6.04362 14.8405 6.79102 15.1367 7.48828C15.4329 8.18555 15.8454 8.80306 16.374 9.34082C16.9072 9.87858 17.5247 10.3024 18.2266 10.6123C18.9284 10.9176 19.6826 11.0771 20.4893 11.0908L20.4209 11.248C20.2432 11.5671 20.0016 11.8132 19.6963 11.9863C19.391 12.1595 19.0127 12.2461 18.5615 12.2461H7.67188L7.80859 13.1963C7.84049 13.3831 7.90885 13.5335 8.01367 13.6475C8.11849 13.7614 8.25977 13.8184 8.4375 13.8184H18.459C18.696 13.8184 18.9056 13.8981 19.0879 14.0576C19.2702 14.2171 19.3613 14.429 19.3613 14.6934C19.3613 14.9622 19.2702 15.1787 19.0879 15.3428C18.9056 15.5023 18.696 15.582 18.459 15.582H8.19141ZM7.34375 18.4873C7.34375 18.1865 7.41667 17.9108 7.5625 17.6602C7.71289 17.4141 7.91113 17.2181 8.15723 17.0723C8.40788 16.9264 8.68359 16.8535 8.98438 16.8535C9.28516 16.8535 9.55859 16.9264 9.80469 17.0723C10.0553 17.2181 10.2536 17.4141 10.3994 17.6602C10.5452 17.9108 10.6182 18.1865 10.6182 18.4873C10.6182 18.7926 10.5452 19.0684 10.3994 19.3145C10.2536 19.5651 10.0553 19.7611 9.80469 19.9023C9.55859 20.0482 9.28516 20.1211 8.98438 20.1211C8.68359 20.1211 8.40788 20.0482 8.15723 19.9023C7.91113 19.7611 7.71289 19.5651 7.5625 19.3145C7.41667 19.0684 7.34375 18.7926 7.34375 18.4873ZM15.3555 18.4873C15.3555 18.1865 15.4284 17.9108 15.5742 17.6602C15.7246 17.4141 15.9229 17.2181 16.1689 17.0723C16.4196 16.9264 16.6953 16.8535 16.9961 16.8535C17.3014 16.8535 17.5771 16.9264 17.8232 17.0723C18.0693 17.2181 18.2653 17.4141 18.4111 17.6602C18.5615 17.9108 18.6367 18.1865 18.6367 18.4873C18.6367 18.7926 18.5615 19.0684 18.4111 19.3145C18.2653 19.5651 18.0693 19.7611 17.8232 19.9023C17.5771 20.0482 17.3014 20.1211 16.9961 20.1211C16.6953 20.1211 16.4196 20.0482 16.1689 19.9023C15.9229 19.7611 15.7246 19.5651 15.5742 19.3145C15.4284 19.0684 15.3555 18.7926 15.3555 18.4873ZM20.5439 9.82617C19.915 9.82617 19.3226 9.70768 18.7666 9.4707C18.2152 9.23372 17.7275 8.90332 17.3037 8.47949C16.8799 8.05566 16.5472 7.56803 16.3057 7.0166C16.0687 6.46061 15.9502 5.86816 15.9502 5.23926C15.9502 4.61035 16.0687 4.02018 16.3057 3.46875C16.5472 2.91732 16.8799 2.42969 17.3037 2.00586C17.7275 1.58203 18.2152 1.25163 18.7666 1.01465C19.3226 0.773112 19.915 0.652344 20.5439 0.652344C21.1729 0.652344 21.763 0.773112 22.3145 1.01465C22.8704 1.25163 23.3581 1.58203 23.7773 2.00586C24.2012 2.42513 24.5316 2.91276 24.7686 3.46875C25.0055 4.02018 25.124 4.61035 25.124 5.23926C25.124 5.86361 25.0033 6.45378 24.7617 7.00977C24.5247 7.5612 24.1943 8.04883 23.7705 8.47266C23.3467 8.89648 22.8568 9.22917 22.3008 9.4707C21.7493 9.70768 21.1637 9.82617 20.5439 9.82617ZM20.5439 8.19922C20.7445 8.19922 20.904 8.13997 21.0225 8.02148C21.141 7.89844 21.2002 7.73893 21.2002 7.54297V5.89551H22.8408C23.0368 5.89551 23.194 5.83626 23.3125 5.71777C23.4355 5.59928 23.4971 5.44206 23.4971 5.24609C23.4971 5.04557 23.4355 4.88607 23.3125 4.76758C23.194 4.64453 23.0368 4.58301 22.8408 4.58301H21.2002V2.95605C21.2002 2.75553 21.141 2.59603 21.0225 2.47754C20.904 2.35905 20.7445 2.2998 20.5439 2.2998C20.3434 2.2998 20.1839 2.36133 20.0654 2.48438C19.9469 2.60286 19.8877 2.76009 19.8877 2.95605V4.58301H18.2539C18.0534 4.58301 17.8916 4.64453 17.7686 4.76758C17.6501 4.88607 17.5908 5.04557 17.5908 5.24609C17.5908 5.44206 17.6523 5.59928 17.7754 5.71777C17.8984 5.83626 18.0579 5.89551 18.2539 5.89551H19.8877V7.54297C19.8877 7.73893 19.9469 7.89844 20.0654 8.02148C20.1839 8.13997 20.3434 8.19922 20.5439 8.19922Z" fill="white"/>
107
+ </svg>
108
+ </button>
109
+ </div>
96
110
  </div>
97
111
 
98
112
  </div>
@@ -134,7 +148,19 @@
134
148
  </script>
135
149
 
136
150
  <style lang="scss">
137
-
151
+ .word-break {
152
+ width: 100%;
153
+ overflow: auto;
154
+ overflow-wrap: break-word;
155
+ word-break: break-all;
156
+ white-space: -moz-pre-wrap;
157
+ white-space: -hp-pre-wrap;
158
+ white-space: -o-pre-wrap;
159
+ white-space: -pre-wrap;
160
+ white-space: pre-wrap;
161
+ white-space: pre-line;
162
+ word-wrap: break-word;
163
+ }
138
164
  </style>
139
165
 
140
166
 
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <div
3
+ v-if="product.listing !== 'rent'"
3
4
  class="price-tag radius-small"
4
5
  :class="
5
6
  {
@@ -17,9 +18,16 @@
17
18
  }
18
19
  "
19
20
  >
20
- {{product.price }} {{returnCurrency()}}
21
+ {{product.price }} {{product.price_currency}} {{ product.listing === 'rent' ? 'per day' : '' }}
21
22
  </p>
22
- <p v-if="product.sale" class="pd-r-small t-transp t-transp p-medium line-through price">{{(product.price / 100) * (100 + product.sale) }} {{returnCurrency()}} </p>
23
+ <p v-if="product.sale" class="pd-r-small t-transp t-transp p-medium line-through price">{{(product.price / 100) * (100 + product.sale) }} {{product.price_currency}} </p>
24
+ </div>
25
+
26
+ <div
27
+ v-else
28
+ class="mn-r-auto"
29
+ >
30
+ <span class="t-second h5 "> {{product.price+product.price_currency }}</span> <span class="p-small t-transp">/ per day </span>
23
31
  </div>
24
32
  </template>
25
33
 
@@ -2,7 +2,9 @@
2
2
  <Feed
3
3
  v-model:sort="marketplace.state.sort"
4
4
  v-model:filter="marketplace.state.filter"
5
- :search="true"
5
+ :search="{
6
+ autofocus:true
7
+ }"
6
8
  :showLoadMore="false"
7
9
  :states="{
8
10
  empty: {
@@ -91,7 +91,7 @@
91
91
 
92
92
  </Block>
93
93
  <!-- Subcategories -->
94
- <Block
94
+ <!-- <Block
95
95
  title="Subcategories"
96
96
  placeholder="No subcategories added yet"
97
97
  :actions="[{
@@ -100,36 +100,6 @@
100
100
  }]"
101
101
  class="mn-b-thin"
102
102
  >
103
-
104
- {{categories.state.current.children}}
105
- <Feed
106
- :states="{
107
- empty: {
108
- title: 'No Events Found',
109
- description: 'Currently, there are no events available.'
110
- }
111
- }"
112
- :store="{
113
- read: (options) => categories.actions.read(options),
114
- state: categories.state
115
- }"
116
- :options="{
117
- user: auth.state.user._id,
118
- limit: 10
119
- }"
120
- v-slot="{
121
- items
122
- }"
123
- >
124
- <div
125
- v-for="(category,index) in items"
126
- @click="() => { categories.state.current.children.push(category._id) }"
127
- class="bg-white pd-medium radius-small mn-b-medium"
128
- >
129
- {{category.name}}
130
- </div>
131
-
132
- </Feed>
133
103
 
134
104
  <div
135
105
  class="gap-thin mn-b-thin flex-nowrap flex"
@@ -155,7 +125,7 @@
155
125
  />
156
126
  </div>
157
127
  </div>
158
- </Block>
128
+ </Block> -->
159
129
  <!-- Filters -->
160
130
  <Block
161
131
  title="Filters"
@@ -1,15 +1,12 @@
1
1
  <template>
2
- <div class="flex flex-column w-100 o-hidden gap-thin pd-thin">
2
+ <div class="h-100 w-100 bg-white ">
3
3
  <!-- <Breadcrumbs class="bg-light radius-big pd-small"/> -->
4
- <!-- {{product.quantity}}
5
- <div v-if="product.ingredients">
6
- {{product?.ingredients[0]?._id}}
7
- {{product?.ingredients[0]?.quantity}}
8
- {{product?.ingredients[1]?.quantity}}
9
- </div> -->
10
4
  <SectionProduct v-if="product" :product="product" :user="auth.state.user" class="pos-relative"/>
11
5
 
12
- <PopularProducts />
6
+ <div class="h-max pos-relative">
7
+ <h3 class="pd-medium pd-b-small">Most Popular</h3>
8
+ <PopularProducts />
9
+ </div>
13
10
  </div>
14
11
  </template>
15
12
 
@@ -40,12 +37,6 @@
40
37
 
41
38
  const text = {
42
39
  messages: {
43
- en: {
44
-
45
- },
46
- ru: {
47
-
48
- }
49
40
  }
50
41
  };
51
42
 
@@ -62,11 +53,4 @@
62
53
  </script>
63
54
 
64
55
  <style lang="scss">
65
- .h1-product {
66
- font-size: 3rem;
67
- }
68
- .produc-data {
69
- padding-top: 2rem;
70
- padding-bottom: 0;
71
- }
72
56
  </style>
@@ -45,7 +45,7 @@
45
45
  />
46
46
 
47
47
 
48
- <div class="rows-1 h-100 z-index-3 bg-white radius-tl-big radius-tr-big">
48
+ <div class="z-index-3 bg-white radius-tl-big radius-tr-big">
49
49
  <div class="pd-thin z-index-3 radius-tl-big radius-tr-big pos-t-0 pos-sticky">
50
50
  <BlockSearch
51
51
  @search="updateSearch"
@@ -55,7 +55,6 @@
55
55
  </div>
56
56
  <Feed
57
57
  v-model:filter="marketplace.state.filter"
58
-
59
58
  :states="{
60
59
  empty: {
61
60
  title: 'No Products Found',
@@ -80,17 +79,20 @@
80
79
  items
81
80
  }"
82
81
  class="cols-4 rows-1 pd-t-zero pd-thin gap-thin"
82
+
83
83
  >
84
84
  <router-link
85
85
  v-for="product in items"
86
- :to="route.params._id ? { name: 'Organization_Product', params: { _id: route.params._id, product: product._id } } : { name: 'Product', params: { product: product._id } }">
86
+ :to="route.params._id ? { name: 'Organization_Product', params: { _id: route.params._id, product: product._id } } : { name: 'Product', params: { product: product._id } }"
87
+ class="pos-relative h-100 w-100"
88
+ >
87
89
  <CardProduct
88
90
  :key="product._id"
89
91
  :product="product"
90
92
  :user="auth.state.access"
91
93
  :organization="route.params._id"
92
94
  :access="hasAccess(route.params._id, 'products', 'edit', auth.state.accesses)"
93
- class="h-max bg-light"
95
+ class="pos-relative h-100 w-100 bg-light"
94
96
  />
95
97
  </router-link>
96
98
  </Feed>
@@ -3,22 +3,20 @@
3
3
  v-bind="dragOptions"
4
4
  class="dragArea list-group w-full"
5
5
  :list="items"
6
+ :handle="'.my-handle'"
6
7
  @change="handleChange"
7
8
  >
8
- <div v-for="category in items" :key="category._id" class="pd-medium bg-light radius-medium mn-b-thin">
9
+ <div v-for="category in items" :key="category._id" class="mn-t-thin radius-medium mn-b-thin">
9
10
  <CardCategory
10
11
  :category="category"
11
12
  @delete="deleteCategory"
12
13
  />
13
- <div
14
- >
15
- <!-- Subcategories: -->
16
14
  <CategoryList
17
15
  :items="category.children"
18
16
  :state="items"
19
17
  @update="emitChange"
18
+ class="pd-l-medium"
20
19
  />
21
- </div>
22
20
  </div>
23
21
  </VueDraggableNext>
24
22
  </template>