@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.
- package/dist/main.css +1 -1
- package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.cjs +4 -3
- package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.js +5 -4
- package/dist/prometheus-framework/src/components/BottomSheet/BottomSheet.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +3 -2
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +3 -2
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js.map +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +21 -14
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs.map +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +21 -14
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/router/users.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/router/users.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/views/router/users.js.map +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/partials/Sidebar.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/BlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Event.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs +6 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js +6 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/blocks/BlockSearch.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs +6 -18
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js +10 -22
- package/dist/prometheus-framework/src/modules/globals/views/components/layouts/Client.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/views/components/partials/Header.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormAddCustomer.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormCustomerDetails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardOrganization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs +34 -14
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js +34 -14
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationBackoffice.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTabSection.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/pages/pages.client.cjs +695 -684
- package/dist/prometheus-framework/src/modules/pages/pages.client.js +695 -684
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.cjs +36 -23
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.js +37 -24
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +39 -15
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +39 -15
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.cjs +14 -4
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.js +15 -5
- package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs +3 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js +3 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Catalog.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Categories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +7 -74
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +7 -74
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs +7 -7
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js +8 -8
- package/dist/prometheus-framework/src/modules/products/components/pages/Product.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +4 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +4 -3
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/CategoriesTree.vue.cjs +8 -8
- package/dist/prometheus-framework/src/modules/products/components/sections/CategoriesTree.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/CategoriesTree.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/products/components/sections/CategoriesTree.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/Filters.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +40 -65
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +41 -66
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs +60 -28
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js +63 -31
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.vue.js.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/marketplace.cjs.map +1 -1
- package/dist/prometheus-framework/src/modules/products/store/marketplace.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/marketplace.js.map +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/CardSpot.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/blocks/SpotMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/pages/SpotEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/blocks/CryptoDeposit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/wallet/views/components/pages/Wallet.vue.js +2 -2
- package/dist/prometheus-framework.cjs.js +15 -15
- package/dist/prometheus-framework.es.js +640 -629
- package/package.json +1 -1
- package/src/components/BottomSheet/BottomSheet.vue +4 -2
- package/src/components/Feed/Feed.vue +1 -0
- package/src/components/Field/Field.vue +11 -4
- package/src/modules/auth/views/router/users.js +1 -1
- package/src/modules/community/components/pages/CreateBlogPost.vue +1 -1
- package/src/modules/globals/views/components/blocks/BlockSearch.vue +5 -0
- package/src/modules/globals/views/components/layouts/Client.vue +2 -2
- package/src/modules/organizations/components/pages/OrganizationBackoffice.vue +15 -0
- package/src/modules/products/components/blocks/CardCategory.vue +56 -25
- package/src/modules/products/components/blocks/CardProduct.vue +46 -20
- package/src/modules/products/components/elements/Price.vue +10 -2
- package/src/modules/products/components/pages/Catalog.vue +3 -1
- package/src/modules/products/components/pages/CategoryEdit.vue +2 -32
- package/src/modules/products/components/pages/Product.vue +5 -21
- package/src/modules/products/components/pages/Products.vue +6 -4
- package/src/modules/products/components/sections/CategoriesTree.vue +3 -5
- package/src/modules/products/components/sections/PopularProducts.vue +28 -50
- package/src/modules/products/components/sections/SectionProduct.vue +48 -26
- package/src/modules/products/controllers/products.controller.js +1 -0
- package/src/modules/products/store/marketplace.js +1 -1
- package/src/styles/typography.scss +5 -5
package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.cjs
CHANGED
@@ -2,9 +2,12 @@
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
4
|
const vueRouter = require("vue-router");
|
5
|
-
require("
|
6
|
-
const
|
7
|
-
|
5
|
+
const IconEdit = require("../../../icons/navigation/IconEdit.vue.cjs");
|
6
|
+
const IconAdd = require("../../../icons/navigation/IconAdd.vue.cjs");
|
7
|
+
;/* empty css */
|
8
|
+
const _hoisted_1 = { class: "flex-v-center bg-light pd-small radius-small flex-column flex" };
|
9
|
+
const _hoisted_2 = { class: "w-100 flex-nowrap gap-thin flex" };
|
10
|
+
const _hoisted_3 = { class: "my-handle mn-r-auto" };
|
8
11
|
const _sfc_main = {
|
9
12
|
__name: "CardCategory",
|
10
13
|
props: {
|
@@ -21,26 +24,36 @@ const _sfc_main = {
|
|
21
24
|
return (_ctx, _cache) => {
|
22
25
|
const _component_router_link = vue.resolveComponent("router-link");
|
23
26
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
24
|
-
vue.createElementVNode("
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
vue.
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
27
|
+
vue.createElementVNode("div", _hoisted_2, [
|
28
|
+
vue.createElementVNode("h4", _hoisted_3, vue.toDisplayString(__props.category.name), 1),
|
29
|
+
vue.createVNode(_component_router_link, {
|
30
|
+
to: {
|
31
|
+
name: "Category Edit",
|
32
|
+
params: {
|
33
|
+
_id: vue.unref(route).params._id,
|
34
|
+
category: __props.category.url
|
35
|
+
}
|
36
|
+
},
|
37
|
+
class: "i-semi z-index-2 cursor-pointer card-page-actions radius-extra pd-micro bg-second"
|
38
|
+
}, {
|
39
|
+
default: vue.withCtx(() => [
|
40
|
+
vue.createVNode(IconEdit.default, {
|
41
|
+
class: "w-100 h-100",
|
42
|
+
classes: "fill-white"
|
43
|
+
})
|
44
|
+
]),
|
45
|
+
_: 1
|
46
|
+
}, 8, ["to"]),
|
47
|
+
vue.createElementVNode("button", {
|
48
|
+
onClick: _cache[0] || (_cache[0] = ($event) => deleteCategory(__props.category)),
|
49
|
+
class: "i-semi z-index-2 cursor-pointer card-page-actions radius-extra pd-micro bg-second"
|
50
|
+
}, [
|
51
|
+
vue.createVNode(IconAdd.default, {
|
52
|
+
class: "w-100 h-100",
|
53
|
+
fill: "white"
|
54
|
+
})
|
55
|
+
])
|
56
|
+
])
|
44
57
|
]);
|
45
58
|
};
|
46
59
|
}
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CardCategory.vue.cjs","sources":["../../../../../../../src/modules/products/components/blocks/CardCategory.vue"],"sourcesContent":["<template>\n <div class=\"flex-v-center flex-column flex\">\n <h4 class=\"mn-r-auto\">{{category.
|
1
|
+
{"version":3,"file":"CardCategory.vue.cjs","sources":["../../../../../../../src/modules/products/components/blocks/CardCategory.vue"],"sourcesContent":["<template>\n <div class=\"flex-v-center bg-light pd-small radius-small flex-column flex\">\n <div class=\"w-100 flex-nowrap gap-thin flex\">\n <h4 class=\"my-handle mn-r-auto\">{{category.name}}</h4>\n\n <router-link\n :to=\"{\n name: 'Category Edit', \n params: { \n _id: route.params._id,\n category: category.url\n } \n }\"\n class=\"\n i-semi\n z-index-2\n cursor-pointer \n card-page-actions\n radius-extra pd-micro bg-second\n \"\n >\n <IconEdit\n class=\"w-100 h-100\" \n classes=\"fill-white\"\n />\n </router-link>\n\n <button\n @click=\"deleteCategory(category)\"\n class=\"\n i-semi\n z-index-2\n cursor-pointer \n card-page-actions\n radius-extra pd-micro bg-second\n \"\n >\n <IconAdd\n class=\"w-100 h-100\"\n :fill=\"'white'\"\n />\n </button>\n </div>\n\n <!-- <p v-if=\" category.children.length > 0\" class=\"w-100\">Subcategories:</p> -->\n <!-- <CardCategory\n v-for=\"(subcategory,index) in category.children\"\n :key=\"subcategory._id\"\n :category=\"subcategory\" \n class=\"pd-l-small bg-white w-100\"\n /> -->\n\n </div>\n</template>\n\n\n<script setup>\nimport { toRef, onMounted, defineEmits } from 'vue';\nimport { useRoute, useRouter } from 'vue-router';\n\nimport CardCategory from './CardCategory.vue'\n\nimport IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'\nimport IconAdd from '@pf/src/modules/icons/navigation/IconAdd.vue'\n\nconst props = defineProps({\n category: Object,\n});\n\nconst emits = defineEmits(['delete']);\n\nconst route = useRoute();\nconst router = useRouter();\n\nconst deleteCategory = (category) => {\n emits('delete', category);\n};\n\n</script>\n\n\n\n<style lang=\"scss\">\n.card-title {\n .card-page-actions {\n display: none;\n }\n\n &:hover {\n .card-page-actions {\n display: block;\n }\n }\n}\n</style>\n"],"names":["useRoute","useRouter"],"mappings":";;;;;;;;;;;;;;;;;AAqEA,UAAM,QAAQ;AAEd,UAAM,QAAQA,UAAQ,SAAA;AACPC,cAAAA,UAAY;AAE3B,UAAM,iBAAiB,CAAC,aAAa;AACnC,YAAM,UAAU,QAAQ;AAAA,IAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.js
CHANGED
@@ -1,8 +1,11 @@
|
|
1
|
-
import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, unref, withCtx
|
1
|
+
import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, unref, withCtx } from "vue";
|
2
2
|
import { useRoute, useRouter } from "vue-router";
|
3
|
-
import "
|
4
|
-
|
5
|
-
|
3
|
+
import _sfc_main$1 from "../../../icons/navigation/IconEdit.vue.js";
|
4
|
+
import _sfc_main$2 from "../../../icons/navigation/IconAdd.vue.js";
|
5
|
+
/* empty css */
|
6
|
+
const _hoisted_1 = { class: "flex-v-center bg-light pd-small radius-small flex-column flex" };
|
7
|
+
const _hoisted_2 = { class: "w-100 flex-nowrap gap-thin flex" };
|
8
|
+
const _hoisted_3 = { class: "my-handle mn-r-auto" };
|
6
9
|
const _sfc_main = {
|
7
10
|
__name: "CardCategory",
|
8
11
|
props: {
|
@@ -19,26 +22,36 @@ const _sfc_main = {
|
|
19
22
|
return (_ctx, _cache) => {
|
20
23
|
const _component_router_link = resolveComponent("router-link");
|
21
24
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
22
|
-
createElementVNode("
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
25
|
+
createElementVNode("div", _hoisted_2, [
|
26
|
+
createElementVNode("h4", _hoisted_3, toDisplayString(__props.category.name), 1),
|
27
|
+
createVNode(_component_router_link, {
|
28
|
+
to: {
|
29
|
+
name: "Category Edit",
|
30
|
+
params: {
|
31
|
+
_id: unref(route).params._id,
|
32
|
+
category: __props.category.url
|
33
|
+
}
|
34
|
+
},
|
35
|
+
class: "i-semi z-index-2 cursor-pointer card-page-actions radius-extra pd-micro bg-second"
|
36
|
+
}, {
|
37
|
+
default: withCtx(() => [
|
38
|
+
createVNode(_sfc_main$1, {
|
39
|
+
class: "w-100 h-100",
|
40
|
+
classes: "fill-white"
|
41
|
+
})
|
42
|
+
]),
|
43
|
+
_: 1
|
44
|
+
}, 8, ["to"]),
|
45
|
+
createElementVNode("button", {
|
46
|
+
onClick: _cache[0] || (_cache[0] = ($event) => deleteCategory(__props.category)),
|
47
|
+
class: "i-semi z-index-2 cursor-pointer card-page-actions radius-extra pd-micro bg-second"
|
48
|
+
}, [
|
49
|
+
createVNode(_sfc_main$2, {
|
50
|
+
class: "w-100 h-100",
|
51
|
+
fill: "white"
|
52
|
+
})
|
53
|
+
])
|
54
|
+
])
|
42
55
|
]);
|
43
56
|
};
|
44
57
|
}
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardCategory.vue.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CardCategory.vue.js","sources":["../../../../../../../src/modules/products/components/blocks/CardCategory.vue"],"sourcesContent":["<template>\n <div class=\"flex-v-center flex-column flex\">\n <h4 class=\"mn-r-auto\">{{category.
|
1
|
+
{"version":3,"file":"CardCategory.vue.js","sources":["../../../../../../../src/modules/products/components/blocks/CardCategory.vue"],"sourcesContent":["<template>\n <div class=\"flex-v-center bg-light pd-small radius-small flex-column flex\">\n <div class=\"w-100 flex-nowrap gap-thin flex\">\n <h4 class=\"my-handle mn-r-auto\">{{category.name}}</h4>\n\n <router-link\n :to=\"{\n name: 'Category Edit', \n params: { \n _id: route.params._id,\n category: category.url\n } \n }\"\n class=\"\n i-semi\n z-index-2\n cursor-pointer \n card-page-actions\n radius-extra pd-micro bg-second\n \"\n >\n <IconEdit\n class=\"w-100 h-100\" \n classes=\"fill-white\"\n />\n </router-link>\n\n <button\n @click=\"deleteCategory(category)\"\n class=\"\n i-semi\n z-index-2\n cursor-pointer \n card-page-actions\n radius-extra pd-micro bg-second\n \"\n >\n <IconAdd\n class=\"w-100 h-100\"\n :fill=\"'white'\"\n />\n </button>\n </div>\n\n <!-- <p v-if=\" category.children.length > 0\" class=\"w-100\">Subcategories:</p> -->\n <!-- <CardCategory\n v-for=\"(subcategory,index) in category.children\"\n :key=\"subcategory._id\"\n :category=\"subcategory\" \n class=\"pd-l-small bg-white w-100\"\n /> -->\n\n </div>\n</template>\n\n\n<script setup>\nimport { toRef, onMounted, defineEmits } from 'vue';\nimport { useRoute, useRouter } from 'vue-router';\n\nimport CardCategory from './CardCategory.vue'\n\nimport IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'\nimport IconAdd from '@pf/src/modules/icons/navigation/IconAdd.vue'\n\nconst props = defineProps({\n category: Object,\n});\n\nconst emits = defineEmits(['delete']);\n\nconst route = useRoute();\nconst router = useRouter();\n\nconst deleteCategory = (category) => {\n emits('delete', category);\n};\n\n</script>\n\n\n\n<style lang=\"scss\">\n.card-title {\n .card-page-actions {\n display: none;\n }\n\n &:hover {\n .card-page-actions {\n display: block;\n }\n }\n}\n</style>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAqEA,UAAM,QAAQ;AAEd,UAAM,QAAQ,SAAQ;AACP,cAAY;AAE3B,UAAM,iBAAiB,CAAC,aAAa;AACnC,YAAM,UAAU,QAAQ;AAAA,IAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
3
|
const vue = require("vue");
|
4
4
|
const Field = require("../../../../components/Field/Field.vue2.cjs");
|
5
|
-
const Select = require("../../../../components/Select/Select.
|
6
|
-
;/* empty css
|
5
|
+
const Select = require("../../../../components/Select/Select.vue.cjs");
|
6
|
+
;/* empty css */
|
7
7
|
const IconAdd = require("../../../icons/navigation/IconAdd.vue.cjs");
|
8
8
|
const IconDelete = require("../../../icons/navigation/IconDelete.vue.cjs");
|
9
9
|
const _hoisted_1 = { class: "gap-thin" };
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref, computed, watch, openBlock, createElementBlock, createElementVNode, toDisplayString, createBlock, withCtx, createVNode, createCommentVNode, unref } from "vue";
|
2
2
|
import Field from "../../../../components/Field/Field.vue2.js";
|
3
|
-
import Select from "../../../../components/Select/Select.
|
4
|
-
/* empty css
|
3
|
+
import Select from "../../../../components/Select/Select.vue.js";
|
4
|
+
/* empty css */
|
5
5
|
import _sfc_main$1 from "../../../icons/navigation/IconAdd.vue.js";
|
6
6
|
import _sfc_main$2 from "../../../icons/navigation/IconDelete.vue.js";
|
7
7
|
const _hoisted_1 = { class: "gap-thin" };
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs
CHANGED
@@ -6,18 +6,27 @@ const IconEdit = require("../../../icons/navigation/IconEdit.vue.cjs");
|
|
6
6
|
const THC = require("../elements/THC.vue.cjs");
|
7
7
|
const Price = require("../elements/Price.vue.cjs");
|
8
8
|
const PlaceholderImage = require("../../../icons/placeholders/PlaceholderImage.vue.cjs");
|
9
|
-
|
9
|
+
;/* empty css */
|
10
|
+
const _hoisted_1 = { class: "radius-medium cols-1 o-hidden pos-relative" };
|
10
11
|
const _hoisted_2 = ["src"];
|
11
12
|
const _hoisted_3 = {
|
12
13
|
key: 2,
|
13
14
|
class: "pos-absolute bg-white t-black pd-thin radius-big p-small t-medium pos-t-medium pos-l-medium"
|
14
15
|
};
|
15
|
-
const _hoisted_4 = { class: "pd-
|
16
|
-
const _hoisted_5 = {
|
16
|
+
const _hoisted_4 = { class: "pd-small t-left product-card-content" };
|
17
|
+
const _hoisted_5 = {
|
18
|
+
style: { "hyphens": "auto" },
|
19
|
+
class: "word-break mn-b-thin w-100 w-max-100 t-regular h5"
|
20
|
+
};
|
17
21
|
const _hoisted_6 = {
|
18
22
|
key: 1,
|
19
23
|
class: "mn-b-small t-transp p-small"
|
20
24
|
};
|
25
|
+
const _hoisted_7 = { class: "flex-v-center flex-nowrap flex" };
|
26
|
+
const _hoisted_8 = {
|
27
|
+
key: 0,
|
28
|
+
class: "z-index-2 cursor-pointer radius-extra pd-thin bg-main"
|
29
|
+
};
|
21
30
|
const _sfc_main = {
|
22
31
|
__name: "CardProduct",
|
23
32
|
props: {
|
@@ -59,7 +68,7 @@ const _sfc_main = {
|
|
59
68
|
}, 8, ["to"])) : vue.createCommentVNode("", true),
|
60
69
|
vue.createElementVNode("div", {
|
61
70
|
class: vue.normalizeClass([
|
62
|
-
"o-hidden w-100 pos-relative aspect-1x1",
|
71
|
+
"o-hidden pd-thin pd-b-zero radius-medium o-hidden w-100 pos-relative aspect-1x1",
|
63
72
|
__props.product.information[2] && __props.product.information[2].value === "AAAA" ? "bg-dark" : "bg-light"
|
64
73
|
])
|
65
74
|
}, [
|
@@ -70,9 +79,9 @@ const _sfc_main = {
|
|
70
79
|
class: "pos-absolute object-fit-cover h-max-100 w-100"
|
71
80
|
}, null, 8, _hoisted_2)) : (vue.openBlock(), vue.createBlock(PlaceholderImage.default, {
|
72
81
|
key: 1,
|
73
|
-
class: "
|
82
|
+
class: "bg-white radius-medium h-100 w-100"
|
74
83
|
})),
|
75
|
-
__props.product.quantity <= 0 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3, "Out of Stock")) : vue.createCommentVNode("", true),
|
84
|
+
__props.product.quantity <= 0 && __props.product.listing === "rent" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3, "Out of Stock")) : vue.createCommentVNode("", true),
|
76
85
|
((_a = __props.product.information) == null ? void 0 : _a.length) > 0 && ((_b = __props.product.information[1]) == null ? void 0 : _b.name) === "THC" ? (vue.openBlock(), vue.createBlock(THC.default, {
|
77
86
|
key: 3,
|
78
87
|
product: __props.product
|
@@ -86,15 +95,30 @@ const _sfc_main = {
|
|
86
95
|
__props.product.information[2] && __props.product.information[2].value === "AAAA" ? "t-violet" : "t-main"
|
87
96
|
])
|
88
97
|
}, vue.toDisplayString(__props.product.information[0].value), 3)) : vue.createCommentVNode("", true),
|
89
|
-
vue.createElementVNode("
|
90
|
-
__props.product.description && !__props.product.localization ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_6, vue.toDisplayString(__props.product.description.substring(0, 99)) + "... ", 1)) : vue.createCommentVNode("", true),
|
91
|
-
vue.
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
)
|
97
|
-
|
98
|
+
vue.createElementVNode("span", _hoisted_5, vue.toDisplayString(__props.product.name.substring(0, 32)) + "... ", 1),
|
99
|
+
__props.product.description && !__props.product.localization && __props.product.listing !== "rent" ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_6, vue.toDisplayString(__props.product.description.substring(0, 99)) + "... ", 1)) : vue.createCommentVNode("", true),
|
100
|
+
vue.createElementVNode("div", _hoisted_7, [
|
101
|
+
vue.createVNode(Price.default, {
|
102
|
+
product: __props.product,
|
103
|
+
size: "small",
|
104
|
+
class: "mn-r-auto"
|
105
|
+
}, null, 8, ["product"]),
|
106
|
+
__props.user && __props.product.listing === "rent" ? (vue.openBlock(), vue.createElementBlock("button", _hoisted_8, _cache[0] || (_cache[0] = [
|
107
|
+
vue.createElementVNode("svg", {
|
108
|
+
class: "i-medium",
|
109
|
+
xmlns: "http://www.w3.org/2000/svg",
|
110
|
+
width: "26",
|
111
|
+
height: "21",
|
112
|
+
viewBox: "0 0 26 21",
|
113
|
+
fill: "none"
|
114
|
+
}, [
|
115
|
+
vue.createElementVNode("path", {
|
116
|
+
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",
|
117
|
+
fill: "white"
|
118
|
+
})
|
119
|
+
], -1)
|
120
|
+
]))) : vue.createCommentVNode("", true)
|
121
|
+
])
|
98
122
|
])
|
99
123
|
]);
|
100
124
|
};
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CardProduct.vue.cjs","sources":["../../../../../../../src/modules/products/components/blocks/CardProduct.vue"],"sourcesContent":["<template>\n\t<div \n\t\tclass=\"\n\t\t\tradius-
|
1
|
+
{"version":3,"file":"CardProduct.vue.cjs","sources":["../../../../../../../src/modules/products/components/blocks/CardProduct.vue"],"sourcesContent":["<template>\n\t<div \n\t\tclass=\"\n\t\t\tradius-medium \n\t\t\tcols-1\n\t\t\to-hidden\n\t\t\tpos-relative\n\t\t\"\n\t>\n\n\t\t<!-- listing/ -->\n\t\t<router-link\n\t\t\tv-if=\"access\"\n :to=\"organization ? { name: 'Organization_ProductEdit', params: { _id: organization, product: product._id\t} } : { name: 'ProductEdit' }\" \n class=\"\n \tz-index-2\n cursor-pointer \n pos-absolute pos-t-regular pos-r-regular\n radius-extra pd-thin bg-second\n \"\n >\n <IconEdit\n class=\"i-regular\"\n classes=\"fill-white\"\n />\n </router-link>\n\n\t\t<!-- Product Image Sqaure -->\n\n\n\t\t<div \n\t\t\tclass=\"o-hidden pd-thin pd-b-zero radius-medium o-hidden w-100 pos-relative aspect-1x1\"\n\t\t\t:class=\"\n\t\t\t\tproduct.information[2] \n\t\t\t\t&& product.information[2].value === 'AAAA' \n\t\t\t\t? 'bg-dark' \n\t\t\t\t: 'bg-light'\n\t\t\t\"\n\t\t>\n\n\t\t\t<!-- Image Wrappers -->\n\t\t\t<img loading=\"lazy\" \n\t\t\t\tv-if=\"product.images[0]\" \n\t\t\t\t:src=\"(FILE_SERVER_URL || '') + product.images[0].split('/').slice(0, -1).join('/') + '/thumbnail_' + product.images[0].split('/').pop()\"\n\t\t\t\tclass=\"pos-absolute object-fit-cover h-max-100 w-100\"\n\t\t\t>\n\n\t\t\t<PlaceholderImage\n\t\t\t\tv-else\n\t\t\t\tclass=\"bg-white radius-medium h-100 w-100\"\n\t\t\t/>\n\t\t\t<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>\n\t\t\t<THC v-if=\"product.information?.length > 0 && product.information[1]?.name === 'THC'\" :product=\"product\" />\n\t\t</div>\n\n\t\t<!-- Product Info Start -->\n\t\t<div class=\"pd-small t-left product-card-content\">\n\t\t\t<!-- Detail -->\n\t\t\t<p \n\t\t\t\tv-if=\"product.information.length > 0\" \n\t\t\t\tclass=\"t-semi h6\"\n\t\t\t\t:class=\"\n\t\t\t\t\tproduct.information[2] \n\t\t\t\t\t&& product.information[2].value === 'AAAA' \n\t\t\t\t\t? 't-violet' \n\t\t\t\t\t: 't-main'\n\t\t\t\t\" \n\t\t\t>\n\t\t\t\t{{product.information[0].value}}\n\t\t\t</p>\n\t\t\t<!-- Name -->\n\t\t\t<span style=\" hyphens: auto;\" class=\"word-break mn-b-thin w-100 w-max-100 t-regular h5\">\n\t\t\t\t{{product.name.substring(0,32)}}...\n\t\t\t</span>\n\n\t\t\t<p \n\t\t\t\tv-if=\"product.description && !product.localization && product.listing !== 'rent'\" \n\t\t\t\tclass=\"mn-b-small t-transp p-small\"\n\t\t\t>\n\t\t\t\t{{product.description.substring(0, 99)}}...\n\t\t\t</p>\n\n\t\t\t<!-- <p v-if=\"product.localization && product.localization.length > 1\" class=\"mn-b-small t-transp p-small\">\n\t\t\t\t<span v-if=\"$i18n.locale === 'en'\">{{product.localization[0].text.substring(0, 99)}}...</span>\n\t\t\t\t<span v-if=\"$i18n.locale === 'ru'\">{{product.localization[1].text.substring(0, 99)}}...</span>\n\t\t\t</p> -->\n\t\t\t\n\t\t\t<div class=\"flex-v-center flex-nowrap flex\">\n\t\t\t\t<Price \n\t\t\t\t\t:product=\"product\" \n\t\t\t\t\tsize=\"small\" \n\t\t\t\t\tclass=\"mn-r-auto\" \n\t\t\t\t/>\n\n\t\t\t\n\n\t\t\t\t<button\n\t\t\t\t\tv-if=\"user && product.listing === 'rent'\"\n\t\t class=\"\n\t\t \tz-index-2\n\t\t cursor-pointer \n\t\t radius-extra pd-thin bg-main\n\t\t \"\n\t\t >\n\t\t <svg class=\"i-medium\" xmlns=\"http://www.w3.org/2000/svg\" width=\"26\" height=\"21\" viewBox=\"0 0 26 21\" fill=\"none\">\n\t\t\t\t\t\t <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\"/>\n\t\t\t\t\t\t</svg>\n\t\t </button>\n\t\t </div>\n\t\t</div>\n\n\t</div>\n\n</template>\n\n\n<script setup=\"props\">\n\timport {computed } from 'vue'\n\timport { useI18n } from 'vue-i18n'\n\n\timport IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'\n\n\timport THC from '@pf/src/modules/products/components/elements/THC.vue'\n\timport Price from '@pf/src/modules/products/components/elements/Price.vue'\n\n\timport PlaceholderImage from '@pf/src/modules/icons/placeholders/PlaceholderImage.vue'\n\n\tconst props = defineProps({\n\t\tproduct: {\n\t\t\ttype: Object\n\t\t},\n\t\taccess: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false\n\t\t},\n\t\torganization: {\n\t\t\ttype: String\n\t\t},\n\t\tuser: {\n\t\t\ttype: [Object, String] \n\t\t},\n\t\ttype: {\n\t\t\ttype: Object\n\t\t}\n\t})\n\n const { t } = useI18n()\n</script>\n\n<style lang=\"scss\">\n.word-break {\n width: 100%; \n overflow: auto;\n overflow-wrap: break-word;\n word-break: break-all;\n white-space: -moz-pre-wrap;\n white-space: -hp-pre-wrap;\n white-space: -o-pre-wrap;\n white-space: -pre-wrap; \n white-space: pre-wrap; \n white-space: pre-line; \n word-wrap: break-word;\n}\n</style>\n\n\n"],"names":["useI18n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkJgBA,oBAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -4,18 +4,27 @@ import _sfc_main$1 from "../../../icons/navigation/IconEdit.vue.js";
|
|
4
4
|
import _sfc_main$2 from "../elements/THC.vue.js";
|
5
5
|
import _sfc_main$3 from "../elements/Price.vue.js";
|
6
6
|
import PlaceholderImage from "../../../icons/placeholders/PlaceholderImage.vue.js";
|
7
|
-
|
7
|
+
/* empty css */
|
8
|
+
const _hoisted_1 = { class: "radius-medium cols-1 o-hidden pos-relative" };
|
8
9
|
const _hoisted_2 = ["src"];
|
9
10
|
const _hoisted_3 = {
|
10
11
|
key: 2,
|
11
12
|
class: "pos-absolute bg-white t-black pd-thin radius-big p-small t-medium pos-t-medium pos-l-medium"
|
12
13
|
};
|
13
|
-
const _hoisted_4 = { class: "pd-
|
14
|
-
const _hoisted_5 = {
|
14
|
+
const _hoisted_4 = { class: "pd-small t-left product-card-content" };
|
15
|
+
const _hoisted_5 = {
|
16
|
+
style: { "hyphens": "auto" },
|
17
|
+
class: "word-break mn-b-thin w-100 w-max-100 t-regular h5"
|
18
|
+
};
|
15
19
|
const _hoisted_6 = {
|
16
20
|
key: 1,
|
17
21
|
class: "mn-b-small t-transp p-small"
|
18
22
|
};
|
23
|
+
const _hoisted_7 = { class: "flex-v-center flex-nowrap flex" };
|
24
|
+
const _hoisted_8 = {
|
25
|
+
key: 0,
|
26
|
+
class: "z-index-2 cursor-pointer radius-extra pd-thin bg-main"
|
27
|
+
};
|
19
28
|
const _sfc_main = {
|
20
29
|
__name: "CardProduct",
|
21
30
|
props: {
|
@@ -57,7 +66,7 @@ const _sfc_main = {
|
|
57
66
|
}, 8, ["to"])) : createCommentVNode("", true),
|
58
67
|
createElementVNode("div", {
|
59
68
|
class: normalizeClass([
|
60
|
-
"o-hidden w-100 pos-relative aspect-1x1",
|
69
|
+
"o-hidden pd-thin pd-b-zero radius-medium o-hidden w-100 pos-relative aspect-1x1",
|
61
70
|
__props.product.information[2] && __props.product.information[2].value === "AAAA" ? "bg-dark" : "bg-light"
|
62
71
|
])
|
63
72
|
}, [
|
@@ -68,9 +77,9 @@ const _sfc_main = {
|
|
68
77
|
class: "pos-absolute object-fit-cover h-max-100 w-100"
|
69
78
|
}, null, 8, _hoisted_2)) : (openBlock(), createBlock(PlaceholderImage, {
|
70
79
|
key: 1,
|
71
|
-
class: "
|
80
|
+
class: "bg-white radius-medium h-100 w-100"
|
72
81
|
})),
|
73
|
-
__props.product.quantity <= 0 ? (openBlock(), createElementBlock("span", _hoisted_3, "Out of Stock")) : createCommentVNode("", true),
|
82
|
+
__props.product.quantity <= 0 && __props.product.listing === "rent" ? (openBlock(), createElementBlock("span", _hoisted_3, "Out of Stock")) : createCommentVNode("", true),
|
74
83
|
((_a = __props.product.information) == null ? void 0 : _a.length) > 0 && ((_b = __props.product.information[1]) == null ? void 0 : _b.name) === "THC" ? (openBlock(), createBlock(_sfc_main$2, {
|
75
84
|
key: 3,
|
76
85
|
product: __props.product
|
@@ -84,15 +93,30 @@ const _sfc_main = {
|
|
84
93
|
__props.product.information[2] && __props.product.information[2].value === "AAAA" ? "t-violet" : "t-main"
|
85
94
|
])
|
86
95
|
}, toDisplayString(__props.product.information[0].value), 3)) : createCommentVNode("", true),
|
87
|
-
createElementVNode("
|
88
|
-
__props.product.description && !__props.product.localization ? (openBlock(), createElementBlock("p", _hoisted_6, toDisplayString(__props.product.description.substring(0, 99)) + "... ", 1)) : createCommentVNode("", true),
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
)
|
95
|
-
|
96
|
+
createElementVNode("span", _hoisted_5, toDisplayString(__props.product.name.substring(0, 32)) + "... ", 1),
|
97
|
+
__props.product.description && !__props.product.localization && __props.product.listing !== "rent" ? (openBlock(), createElementBlock("p", _hoisted_6, toDisplayString(__props.product.description.substring(0, 99)) + "... ", 1)) : createCommentVNode("", true),
|
98
|
+
createElementVNode("div", _hoisted_7, [
|
99
|
+
createVNode(_sfc_main$3, {
|
100
|
+
product: __props.product,
|
101
|
+
size: "small",
|
102
|
+
class: "mn-r-auto"
|
103
|
+
}, null, 8, ["product"]),
|
104
|
+
__props.user && __props.product.listing === "rent" ? (openBlock(), createElementBlock("button", _hoisted_8, _cache[0] || (_cache[0] = [
|
105
|
+
createElementVNode("svg", {
|
106
|
+
class: "i-medium",
|
107
|
+
xmlns: "http://www.w3.org/2000/svg",
|
108
|
+
width: "26",
|
109
|
+
height: "21",
|
110
|
+
viewBox: "0 0 26 21",
|
111
|
+
fill: "none"
|
112
|
+
}, [
|
113
|
+
createElementVNode("path", {
|
114
|
+
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",
|
115
|
+
fill: "white"
|
116
|
+
})
|
117
|
+
], -1)
|
118
|
+
]))) : createCommentVNode("", true)
|
119
|
+
])
|
96
120
|
])
|
97
121
|
]);
|
98
122
|
};
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CardProduct.vue.js","sources":["../../../../../../../src/modules/products/components/blocks/CardProduct.vue"],"sourcesContent":["<template>\n\t<div \n\t\tclass=\"\n\t\t\tradius-
|
1
|
+
{"version":3,"file":"CardProduct.vue.js","sources":["../../../../../../../src/modules/products/components/blocks/CardProduct.vue"],"sourcesContent":["<template>\n\t<div \n\t\tclass=\"\n\t\t\tradius-medium \n\t\t\tcols-1\n\t\t\to-hidden\n\t\t\tpos-relative\n\t\t\"\n\t>\n\n\t\t<!-- listing/ -->\n\t\t<router-link\n\t\t\tv-if=\"access\"\n :to=\"organization ? { name: 'Organization_ProductEdit', params: { _id: organization, product: product._id\t} } : { name: 'ProductEdit' }\" \n class=\"\n \tz-index-2\n cursor-pointer \n pos-absolute pos-t-regular pos-r-regular\n radius-extra pd-thin bg-second\n \"\n >\n <IconEdit\n class=\"i-regular\"\n classes=\"fill-white\"\n />\n </router-link>\n\n\t\t<!-- Product Image Sqaure -->\n\n\n\t\t<div \n\t\t\tclass=\"o-hidden pd-thin pd-b-zero radius-medium o-hidden w-100 pos-relative aspect-1x1\"\n\t\t\t:class=\"\n\t\t\t\tproduct.information[2] \n\t\t\t\t&& product.information[2].value === 'AAAA' \n\t\t\t\t? 'bg-dark' \n\t\t\t\t: 'bg-light'\n\t\t\t\"\n\t\t>\n\n\t\t\t<!-- Image Wrappers -->\n\t\t\t<img loading=\"lazy\" \n\t\t\t\tv-if=\"product.images[0]\" \n\t\t\t\t:src=\"(FILE_SERVER_URL || '') + product.images[0].split('/').slice(0, -1).join('/') + '/thumbnail_' + product.images[0].split('/').pop()\"\n\t\t\t\tclass=\"pos-absolute object-fit-cover h-max-100 w-100\"\n\t\t\t>\n\n\t\t\t<PlaceholderImage\n\t\t\t\tv-else\n\t\t\t\tclass=\"bg-white radius-medium h-100 w-100\"\n\t\t\t/>\n\t\t\t<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>\n\t\t\t<THC v-if=\"product.information?.length > 0 && product.information[1]?.name === 'THC'\" :product=\"product\" />\n\t\t</div>\n\n\t\t<!-- Product Info Start -->\n\t\t<div class=\"pd-small t-left product-card-content\">\n\t\t\t<!-- Detail -->\n\t\t\t<p \n\t\t\t\tv-if=\"product.information.length > 0\" \n\t\t\t\tclass=\"t-semi h6\"\n\t\t\t\t:class=\"\n\t\t\t\t\tproduct.information[2] \n\t\t\t\t\t&& product.information[2].value === 'AAAA' \n\t\t\t\t\t? 't-violet' \n\t\t\t\t\t: 't-main'\n\t\t\t\t\" \n\t\t\t>\n\t\t\t\t{{product.information[0].value}}\n\t\t\t</p>\n\t\t\t<!-- Name -->\n\t\t\t<span style=\" hyphens: auto;\" class=\"word-break mn-b-thin w-100 w-max-100 t-regular h5\">\n\t\t\t\t{{product.name.substring(0,32)}}...\n\t\t\t</span>\n\n\t\t\t<p \n\t\t\t\tv-if=\"product.description && !product.localization && product.listing !== 'rent'\" \n\t\t\t\tclass=\"mn-b-small t-transp p-small\"\n\t\t\t>\n\t\t\t\t{{product.description.substring(0, 99)}}...\n\t\t\t</p>\n\n\t\t\t<!-- <p v-if=\"product.localization && product.localization.length > 1\" class=\"mn-b-small t-transp p-small\">\n\t\t\t\t<span v-if=\"$i18n.locale === 'en'\">{{product.localization[0].text.substring(0, 99)}}...</span>\n\t\t\t\t<span v-if=\"$i18n.locale === 'ru'\">{{product.localization[1].text.substring(0, 99)}}...</span>\n\t\t\t</p> -->\n\t\t\t\n\t\t\t<div class=\"flex-v-center flex-nowrap flex\">\n\t\t\t\t<Price \n\t\t\t\t\t:product=\"product\" \n\t\t\t\t\tsize=\"small\" \n\t\t\t\t\tclass=\"mn-r-auto\" \n\t\t\t\t/>\n\n\t\t\t\n\n\t\t\t\t<button\n\t\t\t\t\tv-if=\"user && product.listing === 'rent'\"\n\t\t class=\"\n\t\t \tz-index-2\n\t\t cursor-pointer \n\t\t radius-extra pd-thin bg-main\n\t\t \"\n\t\t >\n\t\t <svg class=\"i-medium\" xmlns=\"http://www.w3.org/2000/svg\" width=\"26\" height=\"21\" viewBox=\"0 0 26 21\" fill=\"none\">\n\t\t\t\t\t\t <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\"/>\n\t\t\t\t\t\t</svg>\n\t\t </button>\n\t\t </div>\n\t\t</div>\n\n\t</div>\n\n</template>\n\n\n<script setup=\"props\">\n\timport {computed } from 'vue'\n\timport { useI18n } from 'vue-i18n'\n\n\timport IconEdit from '@pf/src/modules/icons/navigation/IconEdit.vue'\n\n\timport THC from '@pf/src/modules/products/components/elements/THC.vue'\n\timport Price from '@pf/src/modules/products/components/elements/Price.vue'\n\n\timport PlaceholderImage from '@pf/src/modules/icons/placeholders/PlaceholderImage.vue'\n\n\tconst props = defineProps({\n\t\tproduct: {\n\t\t\ttype: Object\n\t\t},\n\t\taccess: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false\n\t\t},\n\t\torganization: {\n\t\t\ttype: String\n\t\t},\n\t\tuser: {\n\t\t\ttype: [Object, String] \n\t\t},\n\t\ttype: {\n\t\t\ttype: Object\n\t\t}\n\t})\n\n const { t } = useI18n()\n</script>\n\n<style lang=\"scss\">\n.word-break {\n width: 100%; \n overflow: auto;\n overflow-wrap: break-word;\n word-break: break-all;\n white-space: -moz-pre-wrap;\n white-space: -hp-pre-wrap;\n white-space: -o-pre-wrap;\n white-space: -pre-wrap; \n white-space: pre-wrap; \n white-space: pre-line; \n word-wrap: break-word;\n}\n</style>\n\n\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkJgB,YAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -6,6 +6,11 @@ const _hoisted_1 = {
|
|
6
6
|
key: 0,
|
7
7
|
class: "pd-r-small t-transp t-transp p-medium line-through price"
|
8
8
|
};
|
9
|
+
const _hoisted_2 = {
|
10
|
+
key: 1,
|
11
|
+
class: "mn-r-auto"
|
12
|
+
};
|
13
|
+
const _hoisted_3 = { class: "t-second h5" };
|
9
14
|
const _sfc_main = {
|
10
15
|
__name: "Price",
|
11
16
|
props: {
|
@@ -14,7 +19,8 @@ const _sfc_main = {
|
|
14
19
|
},
|
15
20
|
setup(__props) {
|
16
21
|
return (_ctx, _cache) => {
|
17
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
22
|
+
return __props.product.listing !== "rent" ? (vue.openBlock(), vue.createElementBlock("div", {
|
23
|
+
key: 0,
|
18
24
|
class: vue.normalizeClass([
|
19
25
|
"price-tag radius-small",
|
20
26
|
{
|
@@ -31,9 +37,13 @@ const _sfc_main = {
|
|
31
37
|
"h3 t-semi pd-small": __props.size === "big"
|
32
38
|
}
|
33
39
|
)
|
34
|
-
}, vue.toDisplayString(__props.product.price) + " " + vue.toDisplayString(
|
35
|
-
__props.product.sale ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_1, vue.toDisplayString(__props.product.price / 100 * (100 + __props.product.sale)) + " " + vue.toDisplayString(
|
36
|
-
], 2)
|
40
|
+
}, vue.toDisplayString(__props.product.price) + " " + vue.toDisplayString(__props.product.price_currency) + " " + vue.toDisplayString(__props.product.listing === "rent" ? "per day" : ""), 3),
|
41
|
+
__props.product.sale ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_1, vue.toDisplayString(__props.product.price / 100 * (100 + __props.product.sale)) + " " + vue.toDisplayString(__props.product.price_currency), 1)) : vue.createCommentVNode("", true)
|
42
|
+
], 2)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
43
|
+
vue.createElementVNode("span", _hoisted_3, vue.toDisplayString(__props.product.price + __props.product.price_currency), 1),
|
44
|
+
_cache[0] || (_cache[0] = vue.createTextVNode()),
|
45
|
+
_cache[1] || (_cache[1] = vue.createElementVNode("span", { class: "p-small t-transp" }, "/ per day ", -1))
|
46
|
+
]));
|
37
47
|
};
|
38
48
|
}
|
39
49
|
};
|
package/dist/prometheus-framework/src/modules/products/components/elements/Price.vue.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Price.vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Price.vue.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -1,9 +1,14 @@
|
|
1
|
-
import { openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode } from "vue";
|
1
|
+
import { openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, createTextVNode } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
const _hoisted_1 = {
|
4
4
|
key: 0,
|
5
5
|
class: "pd-r-small t-transp t-transp p-medium line-through price"
|
6
6
|
};
|
7
|
+
const _hoisted_2 = {
|
8
|
+
key: 1,
|
9
|
+
class: "mn-r-auto"
|
10
|
+
};
|
11
|
+
const _hoisted_3 = { class: "t-second h5" };
|
7
12
|
const _sfc_main = {
|
8
13
|
__name: "Price",
|
9
14
|
props: {
|
@@ -12,7 +17,8 @@ const _sfc_main = {
|
|
12
17
|
},
|
13
18
|
setup(__props) {
|
14
19
|
return (_ctx, _cache) => {
|
15
|
-
return openBlock(), createElementBlock("div", {
|
20
|
+
return __props.product.listing !== "rent" ? (openBlock(), createElementBlock("div", {
|
21
|
+
key: 0,
|
16
22
|
class: normalizeClass([
|
17
23
|
"price-tag radius-small",
|
18
24
|
{
|
@@ -29,9 +35,13 @@ const _sfc_main = {
|
|
29
35
|
"h3 t-semi pd-small": __props.size === "big"
|
30
36
|
}
|
31
37
|
)
|
32
|
-
}, toDisplayString(__props.product.price) + " " + toDisplayString(
|
33
|
-
__props.product.sale ? (openBlock(), createElementBlock("p", _hoisted_1, toDisplayString(__props.product.price / 100 * (100 + __props.product.sale)) + " " + toDisplayString(
|
34
|
-
], 2)
|
38
|
+
}, toDisplayString(__props.product.price) + " " + toDisplayString(__props.product.price_currency) + " " + toDisplayString(__props.product.listing === "rent" ? "per day" : ""), 3),
|
39
|
+
__props.product.sale ? (openBlock(), createElementBlock("p", _hoisted_1, toDisplayString(__props.product.price / 100 * (100 + __props.product.sale)) + " " + toDisplayString(__props.product.price_currency), 1)) : createCommentVNode("", true)
|
40
|
+
], 2)) : (openBlock(), createElementBlock("div", _hoisted_2, [
|
41
|
+
createElementVNode("span", _hoisted_3, toDisplayString(__props.product.price + __props.product.price_currency), 1),
|
42
|
+
_cache[0] || (_cache[0] = createTextVNode()),
|
43
|
+
_cache[1] || (_cache[1] = createElementVNode("span", { class: "p-small t-transp" }, "/ per day ", -1))
|
44
|
+
]));
|
35
45
|
};
|
36
46
|
}
|
37
47
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Price.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Price.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -18,7 +18,9 @@ const _sfc_main = {
|
|
18
18
|
"onUpdate:sort": _cache[0] || (_cache[0] = ($event) => marketplace.state.sort = $event),
|
19
19
|
filter: marketplace.state.filter,
|
20
20
|
"onUpdate:filter": _cache[1] || (_cache[1] = ($event) => marketplace.state.filter = $event),
|
21
|
-
search:
|
21
|
+
search: {
|
22
|
+
autofocus: true
|
23
|
+
},
|
22
24
|
showLoadMore: false,
|
23
25
|
states: {
|
24
26
|
empty: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Catalog.vue.cjs","sources":["../../../../../../../src/modules/products/components/pages/Catalog.vue"],"sourcesContent":["<template>\n\t<Feed\n\t\tv-model:sort=\"marketplace.state.sort\"\n\t\tv-model:filter=\"marketplace.state.filter\"\n :search=\"true\"\n :showLoadMore=\"false\"\n :states=\"{\n empty: {\n title: 'No Shops Found',\n description: 'Currently, there are no shops.'\n },\n }\"\n :store=\"{\n read: (options) => organization.actions.read(options)\n }\"\n :options=\"{\n country: route.params.country,\n\t state: route.params.state,\n\t city: route.params.city,\n\t categories: route.query.categories,\n\t prices: route.query.prices,\n\t delivery: route.query.delivery,\n\t location: globals.state.position?.location,\n\t lookup: ['products'],\n\t contain: ['products'],\n }\"\n v-slot=\"{ \n items \n }\"\n class=\"rows-1 gap-thin\"\n >\n <CardOrganization \n\t v-for=\"organization in items\" \n\t :key=\"organization._id\"\n\t :organization=\"organization\"\n\t :showRating=\"true\"\n\t :showFollowers=\"false\"\n\t :showProducts=\"true\"\n\t class=\"bg-light w-100 o-hidden radius-big pd-small \"\n\t />\n </Feed>\n</template>\n\n<script setup>\n\timport { computed,reactive,ref, onMounted,watch } from 'vue'\n\timport { useRoute } from 'vue-router'\n\t\n\timport * as organization from '@pf/src/modules/organizations/store/organizations'\n\timport * as marketplace from '@pf/src/modules/products/store/marketplace';\n\timport * as globals from '@pf/src/modules/globals/views/store/globals'\n\n\timport Feed from '@pf/src/components/Feed/Feed.vue'\n\n\timport CardOrganization from '@pf/src/modules/organizations/components/blocks/CardOrganization.vue'\n\t\n\tconst route = useRoute()\n</script>\n\n<style lang=\"scss\">\n</style>\n"],"names":["useRoute"],"mappings":";;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"Catalog.vue.cjs","sources":["../../../../../../../src/modules/products/components/pages/Catalog.vue"],"sourcesContent":["<template>\n\t<Feed\n\t\tv-model:sort=\"marketplace.state.sort\"\n\t\tv-model:filter=\"marketplace.state.filter\"\n :search=\"{\n \tautofocus:true\n }\"\n :showLoadMore=\"false\"\n :states=\"{\n empty: {\n title: 'No Shops Found',\n description: 'Currently, there are no shops.'\n },\n }\"\n :store=\"{\n read: (options) => organization.actions.read(options)\n }\"\n :options=\"{\n country: route.params.country,\n\t state: route.params.state,\n\t city: route.params.city,\n\t categories: route.query.categories,\n\t prices: route.query.prices,\n\t delivery: route.query.delivery,\n\t location: globals.state.position?.location,\n\t lookup: ['products'],\n\t contain: ['products'],\n }\"\n v-slot=\"{ \n items \n }\"\n class=\"rows-1 gap-thin\"\n >\n <CardOrganization \n\t v-for=\"organization in items\" \n\t :key=\"organization._id\"\n\t :organization=\"organization\"\n\t :showRating=\"true\"\n\t :showFollowers=\"false\"\n\t :showProducts=\"true\"\n\t class=\"bg-light w-100 o-hidden radius-big pd-small \"\n\t />\n </Feed>\n</template>\n\n<script setup>\n\timport { computed,reactive,ref, onMounted,watch } from 'vue'\n\timport { useRoute } from 'vue-router'\n\t\n\timport * as organization from '@pf/src/modules/organizations/store/organizations'\n\timport * as marketplace from '@pf/src/modules/products/store/marketplace';\n\timport * as globals from '@pf/src/modules/globals/views/store/globals'\n\n\timport Feed from '@pf/src/components/Feed/Feed.vue'\n\n\timport CardOrganization from '@pf/src/modules/organizations/components/blocks/CardOrganization.vue'\n\t\n\tconst route = useRoute()\n</script>\n\n<style lang=\"scss\">\n</style>\n"],"names":["useRoute"],"mappings":";;;;;;;;;;;;AAyDC,UAAM,QAAQA,UAAAA,SAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|