@ozdao/prometheus-framework 0.2.60 → 0.2.62
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +8 -190
- package/dist/auth.server.mjs +8 -190
- package/dist/community.server.js +3 -2
- package/dist/community.server.mjs +2 -1
- package/dist/events.server.js +101 -29
- package/dist/events.server.mjs +100 -28
- package/dist/files.server.js +7 -7
- package/dist/files.server.mjs +7 -7
- package/dist/gallery.server.js +2 -2
- package/dist/gallery.server.mjs +2 -2
- package/dist/main-DsseFd2d.mjs +13753 -0
- package/dist/main-U466Gwzt.js +91 -0
- package/dist/main.css +1 -1
- package/dist/metadata.schema-CS6_9GLU.js +174 -0
- package/dist/metadata.schema-D88c1Ebp.mjs +175 -0
- package/dist/organizations.server.js +212 -16
- package/dist/organizations.server.mjs +212 -16
- package/dist/ownership.schema-DN0SlQL6.js +36 -0
- package/dist/ownership.schema-oyx6eNkZ.mjs +37 -0
- package/dist/products.server.js +8 -5
- package/dist/products.server.mjs +8 -5
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Chips/Chips.vue.js +19 -14
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue.js +1 -55
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Dropdown/Dropdown.vue2.js +55 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +27 -27
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +1 -51
- package/dist/prometheus-framework/src/components/Loader/Loader.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue2.js +51 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +1 -97
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +97 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Slider/Slider.vue.js +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue.js +1 -36
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +36 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/auth.client.js +12 -14
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +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/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/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/HotPosts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.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 +197 -183
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +168 -0
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue2.js +1 -0
- 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/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/Feed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/sections/List.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/router/events.js +11 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +67 -64
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +13 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +1 -13
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/EditOrder.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/CardDepartment.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Department.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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/DetailsTab.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Feed.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 +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/organizations.client.js +40 -38
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +19 -19
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +5 -5
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +36 -27
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/Images360.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.js +7 -7
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Leftovers.vue.js +20 -20
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductRecommmendation.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/Products.vue.js +36 -50
- 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/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/PopularProducts.vue.js +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/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +2 -2
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/web-D7bW32Ul.mjs +54 -0
- package/dist/web-DpE9HxA3.js +1 -0
- package/package.json +1 -1
- package/src/components/Chips/Chips.vue +2 -2
- package/src/components/Feed/Feed.vue +2 -1
- package/src/modules/auth/auth.client.js +0 -2
- package/src/modules/auth/auth.server.js +1 -6
- package/src/modules/auth/components/pages/Invite.vue +1 -1
- package/src/modules/events/components/pages/EditEvent.vue +19 -0
- package/src/modules/events/components/pages/EditEventTickets.vue +194 -0
- package/src/modules/events/controllers/tickets.controller.js +103 -28
- package/src/modules/events/models/ticket.model.js +22 -4
- package/src/modules/events/router/events.js +5 -0
- package/src/modules/events/routes/tickets.routes.js +2 -2
- package/src/modules/events/store/tickets.js +1 -0
- package/src/modules/globals/components/blocks/CardHeader.vue +6 -6
- package/src/modules/organizations/components/pages/Members.vue +1 -1
- package/src/modules/organizations/components/pages/Organization.vue +4 -4
- package/src/modules/organizations/components/sections/MembersAdd.vue +1 -1
- package/src/modules/organizations/controllers/departments.controller.js +14 -1
- package/src/modules/organizations/models/department.model.js +5 -1
- package/src/modules/organizations/organizations.client.js +2 -0
- package/src/modules/organizations/organizations.server.js +6 -2
- package/src/modules/organizations/routes/departments.routes.js +1 -1
- package/src/modules/organizations/store/departments.js +3 -2
- package/src/modules/products/components/blocks/CardLeftover.vue +19 -7
- package/src/modules/products/components/pages/EditLeftover.vue +1 -1
- package/src/modules/products/components/pages/Leftovers.vue +14 -3
- package/src/modules/products/components/pages/Products.vue +8 -8
- package/src/modules/products/models/leftover.model.js +9 -5
- package/src/modules/users/models/client.model.js +60 -0
- /package/src/modules/{auth → organizations}/controllers/invites.controller.js +0 -0
- /package/src/modules/{auth → organizations}/models/invite.model.js +0 -0
- /package/src/modules/{auth → organizations}/routes/invites.routes.js +0 -0
- /package/src/modules/{auth → organizations}/store/invites.js +0 -0
package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js
CHANGED
@@ -1,24 +1,33 @@
|
|
1
|
-
import { ref as f, openBlock as
|
2
|
-
import { useRouter as
|
3
|
-
import g from "../../../
|
4
|
-
import
|
1
|
+
import { ref as f, openBlock as a, createElementBlock as n, createVNode as c, createElementVNode as e, toDisplayString as l, Transition as u, withCtx as v, Fragment as m, renderList as p, createTextVNode as _, createCommentVNode as h } from "vue";
|
2
|
+
import { useRouter as w } from "vue-router";
|
3
|
+
import g from "../../../globals/components/blocks/CardHeader.vue.js";
|
4
|
+
import x from "../../../icons/navigation/IconEdit.vue.js";
|
5
|
+
import y from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
5
6
|
import "./CardLeftover.vue2.js";
|
6
|
-
const
|
7
|
+
const C = { class: "flex-column pos-relative flex-wrap" }, b = { class: "w-100 mn-b-thin flex" }, k = { class: "p-big" }, N = { class: "w-100 bg-white radius-small pd-small spoiler" }, $ = { key: 0 }, L = { class: "mn-t-small w-100 mn-b-thin flex" }, V = { class: "w-50 flex" }, E = { class: "t-right w-50 flex" }, T = { class: "w-100" }, q = { class: "t-transp" }, B = {
|
7
8
|
__name: "CardLeftover",
|
8
9
|
props: {
|
9
10
|
leftover: Object
|
10
11
|
},
|
11
12
|
setup(t) {
|
12
|
-
|
13
|
+
w();
|
13
14
|
const i = f(!1);
|
14
|
-
function d(
|
15
|
-
return
|
15
|
+
function d(o, r) {
|
16
|
+
return r[o % 100 > 4 && o % 100 < 20 ? 2 : [2, 0, 1, 1, 1, 2][o % 10 < 5 ? o % 10 : 5]];
|
16
17
|
}
|
17
|
-
return (
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
return (o, r) => (a(), n("div", C, [
|
19
|
+
c(g, {
|
20
|
+
entity: t.leftover,
|
21
|
+
entityType: "leftover",
|
22
|
+
user: o.user,
|
23
|
+
owner: t.leftover.creator,
|
24
|
+
creator: t.leftover.creator,
|
25
|
+
date: t.leftover.createdAt
|
26
|
+
}, null, 8, ["entity", "user", "owner", "creator", "date"]),
|
27
|
+
e("div", b, [
|
28
|
+
e("p", k, l(t.leftover.type), 1),
|
29
|
+
c(x, {
|
30
|
+
onClick: r[0] || (r[0] = (s) => o.$router.push({
|
22
31
|
name: "LeftoverEdit",
|
23
32
|
params: {
|
24
33
|
_id: t.leftover.organization,
|
@@ -30,22 +39,22 @@ const k = { class: "flex-column pos-relative flex-wrap block" }, C = { class: "w
|
|
30
39
|
]),
|
31
40
|
e("div", N, [
|
32
41
|
e("div", {
|
33
|
-
onClick:
|
34
|
-
class: "
|
42
|
+
onClick: r[1] || (r[1] = (s) => i.value = !i.value),
|
43
|
+
class: "flex"
|
35
44
|
}, [
|
36
|
-
e("span", null, "Всего товаров " +
|
45
|
+
e("span", null, "Всего товаров " + l(t.leftover.positions.length), 1)
|
37
46
|
]),
|
38
|
-
c(
|
39
|
-
default:
|
40
|
-
i.value ? (
|
41
|
-
(
|
47
|
+
c(u, { name: "fade" }, {
|
48
|
+
default: v(() => [
|
49
|
+
i.value ? (a(), n("div", $, [
|
50
|
+
(a(!0), n(m, null, p(t.leftover.positions, (s) => (a(), n("div", L, [
|
42
51
|
e("div", V, [
|
43
|
-
e("span", null,
|
52
|
+
e("span", null, l(s.name), 1)
|
44
53
|
]),
|
45
|
-
e("div",
|
46
|
-
e("span",
|
47
|
-
_(
|
48
|
-
e("span", q,
|
54
|
+
e("div", E, [
|
55
|
+
e("span", T, [
|
56
|
+
_(l(s.quantity) + " ", 1),
|
57
|
+
e("span", q, l(d(s.quantity, ["единица", " единицы", " единиц"])), 1)
|
49
58
|
])
|
50
59
|
])
|
51
60
|
]))), 256))
|
@@ -56,7 +65,7 @@ const k = { class: "flex-column pos-relative flex-wrap block" }, C = { class: "w
|
|
56
65
|
])
|
57
66
|
]));
|
58
67
|
}
|
59
|
-
},
|
68
|
+
}, I = /* @__PURE__ */ y(B, [["__scopeId", "data-v-3ab265b0"]]);
|
60
69
|
export {
|
61
|
-
|
70
|
+
I as default
|
62
71
|
};
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../components/Field/Field.vue.cjs"),y=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../../../../components/Field/Field.vue.cjs"),y=require("../../../../components/Select/Select.vue2.cjs"),b=require("../../../../components/SelectMulti/SelectMulti.vue.cjs"),g=require("../../../icons/navigation/IconAdd.vue.cjs"),V=require("../../../icons/navigation/IconDelete.vue.cjs"),q={class:"gap-thin flex-nowrap flex"},k=["disabled"],N={__name:"CardPosition",props:{product:Object,array:Array,products:Array},emits:["add","delete","update"],setup(c,{emit:n}){const t=c,s=n,l=e.ref(null),a=e.ref(1),d=e.ref("pcs"),u=e.ref(0),p=e.computed(()=>l.value&&a.value>0&&u.value>0);e.watch(t.array,()=>{l.value=t.product,a.value=t.product.quantity||1,u.value=t.product.price,d.value=t.product.type}),t.product&&(l.value=t.product,a.value=t.product.quantity||1,u.value=t.product.price,d.value=t.product.type),e.watch([l,a,u,d],()=>{s("update",{...l.value,price:u.value,quantity:a.value||1,type:d.value})});function m(){s("add",{...l.value,price:u.value,quantity:a.value||1,type:d.value})}function v(){s("delete",{...l.value,price:u.value,quantity:a.value||1,type:d.value})}return(f,r)=>(e.openBlock(),e.createElementBlock("div",q,[e.createVNode(b.default,{modelValue:l.value,"onUpdate:modelValue":r[0]||(r[0]=o=>l.value=o),options:c.products,label:"name",multiple:!1,taggable:!1,placeholder:"Select a product",class:"bg-white pd-small radius-small"},null,8,["modelValue","options"]),e.createVNode(i.default,{field:u.value,"onUpdate:field":r[1]||(r[1]=o=>u.value=o),type:"number",label:"Price",symbol:f.returnCurrency(),class:"bg-white pd-small radius-small"},null,8,["field","symbol"]),e.createVNode(i.default,{field:a.value,"onUpdate:field":r[3]||(r[3]=o=>a.value=o),type:"number",label:"Qty",class:"bg-white pd-small radius-small"},{default:e.withCtx(()=>[e.createVNode(y.default,{select:d.value,"onUpdate:select":r[2]||(r[2]=o=>d.value=o),options:["pcs","g","ml"],class:"bg-grey pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),c.product?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("button",{key:0,disabled:!p.value,onClick:m,class:"bg-main aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(g.default),{class:"i-semi"})],8,k)),c.product?(e.openBlock(),e.createElementBlock("button",{key:1,onClick:v,class:"bg-red aspect-1x1 radius-small pd-small"},[e.createVNode(e.unref(V.default),{class:"i-semi"})])):e.createCommentVNode("",!0)]))}};exports.default=N;
|
package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ref as i, computed as C, watch as m, openBlock as c, createElementBlock as n, createVNode as d, withCtx as P, unref as v, createCommentVNode as f } from "vue";
|
2
2
|
import y from "../../../../components/Field/Field.vue.js";
|
3
|
-
import V from "../../../../components/Select/Select.
|
3
|
+
import V from "../../../../components/Select/Select.vue2.js";
|
4
4
|
import q from "../../../../components/SelectMulti/SelectMulti.vue.js";
|
5
5
|
import h from "../../../icons/navigation/IconAdd.vue.js";
|
6
6
|
import S from "../../../icons/navigation/IconDelete.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),M=require("../../../../components/Loader/Loader.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),M=require("../../../../components/Loader/Loader.vue2.cjs");require("./Images360.vue2.cjs");const b=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),k={class:"product-360-viewer"},y=e.createStaticVNode('<svg class="pos-absolute z-index-2 pos-b-0 pd-small" width="73" height="50" viewBox="0 0 73 50" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-c6fa6581><path d="M42.5934 17.2017C42.5934 20.8208 39.8428 23.7544 36.45 23.7544C33.0573 23.7544 30.3066 20.8208 30.3066 17.2017C30.3066 13.5826 33.0573 10.6484 36.45 10.6484C39.8428 10.6484 42.5934 13.5826 42.5934 17.2017Z" fill="rgb(var(--black))" fill-opacity="0.1" data-v-c6fa6581></path><path d="M22.5953 29.4883H50.3053C53.7389 29.4883 56.5197 26.778 56.5197 23.4405V10.8396C56.5197 7.49996 53.739 4.79176 50.3053 4.79176H48.8712C48.2747 2.05313 45.7826 0 42.7962 0H30.1063C27.1179 0 24.6257 2.053 24.0313 4.78967H22.5971C19.1656 4.78967 16.3828 7.49788 16.3828 10.8375V23.4384C16.3807 26.778 19.1634 29.4882 22.595 29.4882L22.5953 29.4883ZM36.449 8.31471C41.4535 8.31471 45.5123 12.2648 45.5123 17.1352C45.5123 22.0062 41.4535 25.9582 36.449 25.9582C31.4445 25.9582 27.3856 22.0081 27.3856 17.1377C27.3856 12.2673 31.4445 8.31471 36.449 8.31471ZM20.9092 9.32597H24.0182C24.9472 9.32597 25.7019 10.0584 25.7019 10.9625C25.7019 11.8686 24.9493 12.6011 24.0182 12.6011H20.9092C19.9823 12.6011 19.2254 11.8707 19.2254 10.9625C19.2275 10.0604 19.9822 9.32597 20.9092 9.32597Z" fill="rgb(var(--black))" fill-opacity="0.1" data-v-c6fa6581></path><path d="M58.8645 12.2878C58.8645 12.2878 77.1839 21.8549 65.5604 32.0445C63.6718 33.6967 55.2747 38.9138 42.5947 39.9368V45.0519C50.0424 44.2514 61.7635 41.887 68.4037 34.9253C82.5323 20.1097 58.8657 12.2871 58.8657 12.2871L58.8645 12.2878Z" fill="rgb(var(--black))" fill-opacity="0.1" data-v-c6fa6581></path><path d="M37.6664 41.209L29.1818 35.5097C28.077 34.7658 27.1702 35.2358 27.1702 36.5516V39.5855C16.2598 38.0408 9.07761 33.565 7.35125 32.0517C-4.2894 21.858 14.0557 12.2871 14.0557 12.2871C14.0557 12.2871 -9.64257 20.1134 4.5039 34.9343C10.2723 40.9769 19.8619 43.5552 27.1712 44.656V44.952V48.5701C27.1712 49.8901 28.078 50.3554 29.1827 49.6141L37.6673 43.9127C38.7757 43.1683 38.7757 41.9525 37.6673 41.2092L37.6664 41.209Z" fill="rgb(var(--black))" fill-opacity="0.1" data-v-c6fa6581></path></svg>',1),V={key:0,class:"h-100 w-100 transition-ease"},I=["src"],B={__name:"Images360",props:{imagePath:{type:String,required:!0},imageCount:{type:Number,default:36},autoRotateSpeed:{type:Number,default:100}},setup(m){const n=m,r=e.ref(0),c=e.ref(!1),u=e.ref(0),v=e.ref(0);e.ref(!0);const g=async()=>{const t=[];for(let a=1;a<=n.imageCount;a++){const l=new Image;l.src=`${n.imagePath}/${a}.jpg`;try{await l.decode(),v.value++}catch(d){console.warn(`Failed to decode ${n.imagePath}/${a}.jpg:`,d)}t.push(l)}return t},C=e.computed(()=>Math.round(v.value/n.imageCount*100)),s=e.ref([]),o=e.ref(""),h=e.ref(null);e.watch(r,t=>{o.value=s.value[t]||""});function p(t){c.value=!0,u.value=t.clientX||t.touches[0].clientX}function f(t){if(!c.value)return;const a=t.clientX||t.touches[0].clientX,l=a-u.value;if(Math.abs(l)>=5){const d=l>0?1:-1;r.value=(r.value+d)%n.imageCount,r.value<0&&(r.value=n.imageCount-1),u.value=a}}function i(){c.value=!1}let _=null;const w=()=>{s.value=[]};return e.onMounted(async()=>{s.value=await g(),o.value=s.value[0]||""}),e.onUnmounted(()=>{clearInterval(_),w()}),(t,a)=>(e.openBlock(),e.createElementBlock("div",k,[y,e.createVNode(e.Transition,{name:"scale5",css:!h.value,appear:""},{default:e.withCtx(()=>[o.value?(e.openBlock(),e.createElementBlock("div",V,[o.value?(e.openBlock(),e.createElementBlock("img",{key:o.value,class:"h-100 w-100 transition-ease",src:(t.FILE_SERVER_URL||"")+o.value.src,alt:"360 product view",onMousedown:p,onMousemove:f,onMouseup:i,onMouseleave:i,onTouchstart:p,onTouchmove:f,onTouchend:i,onDragstart:a[0]||(a[0]=e.withModifiers(()=>{},["prevent"]))},null,40,I)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["css"]),e.createVNode(e.Transition,{name:"scale5"},{default:e.withCtx(()=>[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(M.default,{key:0,progress:C.value,class:"center z-index-5"},null,8,["progress"]))]),_:1})]))}},L=b.default(B,[["__scopeId","data-v-c6fa6581"]]);exports.default=L;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ref as a, computed as L, watch as x, onMounted as R, onUnmounted as H, openBlock as c, createElementBlock as p, createVNode as h, Transition as _, withCtx as w, withModifiers as X, createCommentVNode as m, createBlock as Z, createStaticVNode as N } from "vue";
|
2
|
-
import B from "../../../../components/Loader/Loader.
|
2
|
+
import B from "../../../../components/Loader/Loader.vue2.js";
|
3
3
|
import "./Images360.vue2.js";
|
4
4
|
import E from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
5
5
|
const P = { class: "product-360-viewer" }, S = /* @__PURE__ */ N('<svg class="pos-absolute z-index-2 pos-b-0 pd-small" width="73" height="50" viewBox="0 0 73 50" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-c6fa6581><path d="M42.5934 17.2017C42.5934 20.8208 39.8428 23.7544 36.45 23.7544C33.0573 23.7544 30.3066 20.8208 30.3066 17.2017C30.3066 13.5826 33.0573 10.6484 36.45 10.6484C39.8428 10.6484 42.5934 13.5826 42.5934 17.2017Z" fill="rgb(var(--black))" fill-opacity="0.1" data-v-c6fa6581></path><path d="M22.5953 29.4883H50.3053C53.7389 29.4883 56.5197 26.778 56.5197 23.4405V10.8396C56.5197 7.49996 53.739 4.79176 50.3053 4.79176H48.8712C48.2747 2.05313 45.7826 0 42.7962 0H30.1063C27.1179 0 24.6257 2.053 24.0313 4.78967H22.5971C19.1656 4.78967 16.3828 7.49788 16.3828 10.8375V23.4384C16.3807 26.778 19.1634 29.4882 22.595 29.4882L22.5953 29.4883ZM36.449 8.31471C41.4535 8.31471 45.5123 12.2648 45.5123 17.1352C45.5123 22.0062 41.4535 25.9582 36.449 25.9582C31.4445 25.9582 27.3856 22.0081 27.3856 17.1377C27.3856 12.2673 31.4445 8.31471 36.449 8.31471ZM20.9092 9.32597H24.0182C24.9472 9.32597 25.7019 10.0584 25.7019 10.9625C25.7019 11.8686 24.9493 12.6011 24.0182 12.6011H20.9092C19.9823 12.6011 19.2254 11.8707 19.2254 10.9625C19.2275 10.0604 19.9822 9.32597 20.9092 9.32597Z" fill="rgb(var(--black))" fill-opacity="0.1" data-v-c6fa6581></path><path d="M58.8645 12.2878C58.8645 12.2878 77.1839 21.8549 65.5604 32.0445C63.6718 33.6967 55.2747 38.9138 42.5947 39.9368V45.0519C50.0424 44.2514 61.7635 41.887 68.4037 34.9253C82.5323 20.1097 58.8657 12.2871 58.8657 12.2871L58.8645 12.2878Z" fill="rgb(var(--black))" fill-opacity="0.1" data-v-c6fa6581></path><path d="M37.6664 41.209L29.1818 35.5097C28.077 34.7658 27.1702 35.2358 27.1702 36.5516V39.5855C16.2598 38.0408 9.07761 33.565 7.35125 32.0517C-4.2894 21.858 14.0557 12.2871 14.0557 12.2871C14.0557 12.2871 -9.64257 20.1134 4.5039 34.9343C10.2723 40.9769 19.8619 43.5552 27.1712 44.656V44.952V48.5701C27.1712 49.8901 28.078 50.3554 29.1827 49.6141L37.6673 43.9127C38.7757 43.1683 38.7757 41.9525 37.6673 41.2092L37.6664 41.209Z" fill="rgb(var(--black))" fill-opacity="0.1" data-v-c6fa6581></path></svg>', 1), T = {
|
package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router"),i=require("../../../icons/navigation/IconDelete.vue.cjs"),f=require("../../../../components/Button/Button.vue.cjs"),g=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("vue-router"),i=require("../../../icons/navigation/IconDelete.vue.cjs"),f=require("../../../../components/Button/Button.vue.cjs"),g=require("../../../../components/Select/Select.vue2.cjs"),d=require("../../../../components/Field/Field.vue.cjs"),n=require("../../../../components/Block/Block.vue.cjs"),l=require("../../store/categories.cjs");require("./CategoryEdit.vue2.cjs");const b={class:"mn-r-auto"},h={class:"mn-b-medium w-100 flex-nowrap gap-thin flex"},w={class:"flex-v-center flex-nowrap flex"},x=e.createElementVNode("h4",{class:"mn-r-thin t-medium"},"Localization",-1),N=["onClick"],k=["onClick"],V=["onClick"],y={__name:"CategoryEdit",setup(C){const o=c.useRoute(),u=c.useRouter();o.params.category?l.actions.fetchCategory(o.params.category):l.actions.resetCategory(),e.computed(()=>l.state.current),e.computed(()=>o.name);function m(){o.params.category?l.actions.updateCategory(o.params.category):l.actions.addCategory()}function p(){u.push({name:"Categories Organization",params:{_id:o.params._id}})}return(_,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(n.default,{class:"radius-big mn-b-thin flex-nowrap flex-v-center flex"},{default:e.withCtx(()=>[e.createElementVNode("h1",b,e.toDisplayString(e.unref(o).params.category?"Edit Category":"Add Category"),1),e.createVNode(f.default,{submit:m,callback:p,class:"pd-small radius-big bg-main t-black uppercase t-medium"},{default:e.withCtx(()=>[e.createTextVNode(" Save Category ")]),_:1})]),_:1}),e.createVNode(n.default,{title:"Profile",class:"mn-b-thin"},{default:e.withCtx(()=>[e.createElementVNode("div",h,[e.createVNode(d.default,{field:l.state.current.order,"onUpdate:field":r[0]||(r[0]=t=>l.state.current.order=t),label:"Order",disabled:!0,class:"w-25 bg-white radius-small pd-medium"},null,8,["field"]),e.createVNode(d.default,{field:l.state.current.url,"onUpdate:field":r[1]||(r[1]=t=>l.state.current.url=t),label:"URL",placeholder:"Enter category URL",class:"w-100 bg-white radius-small pd-medium"},null,8,["field"]),e.createVNode(d.default,{field:l.state.current.name,"onUpdate:field":r[2]||(r[2]=t=>l.state.current.name=t),label:"Name",placeholder:"Enter category name",class:"w-100 bg-white radius-small pd-medium"},null,8,["field"])]),e.createVNode(g.default,{select:l.state.current.status,"onUpdate:select":r[3]||(r[3]=t=>l.state.current.status=t),label:"Status",options:["draft","internal","published","removed"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),e.createElementVNode("div",w,[x,e.createElementVNode("button",{onClick:r[4]||(r[4]=()=>l.state.current.localization.push({locale:"",text:""})),class:"i-small pd-thin button-delete button"}," + ")]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.state.current.localization,(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:s},[e.createVNode(d.default,{field:t.locale,"onUpdate:field":a=>t.locale=a,placeholder:"Locale",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:t.text,"onUpdate:field":a=>t.text=a,placeholder:"Text",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",{onClick:()=>l.state.current.localization.splice(s,1),class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},[e.createVNode(i.default,{class:"i-medium"})],8,N)]))),128))]),_:1}),e.createVNode(n.default,{title:"Subcategories",placeholder:"No subcategories added yet",actions:[{label:"+",function:()=>l.state.current.subcategories.push({name:"",url:""})}],class:"mn-b-thin"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.state.current.subcategories,(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:s},[e.createVNode(d.default,{field:t.name,"onUpdate:field":a=>t.name=a,placeholder:"Subcategory name",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:t.url,"onUpdate:field":a=>t.url=a,placeholder:"Subcategory",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",{onClick:()=>l.state.current.subcategories.splice(s,1),class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},[e.createVNode(i.default,{class:"i-medium"})],8,k)]))),128))]),_:1},8,["actions"]),e.createVNode(n.default,{title:"Filters",placeholder:"No filters added yet",actions:[{label:"+",function:()=>l.state.current.filters.push({name:"",url:""})}]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.state.current.filters,(t,s)=>(e.openBlock(),e.createElementBlock("div",{class:"gap-thin mn-b-thin flex-nowrap flex",key:s},[e.createVNode(d.default,{field:t.name,"onUpdate:field":a=>t.name=a,placeholder:"Filter name",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createVNode(d.default,{field:t.options,"onUpdate:field":a=>t.options=a,placeholder:"Filter options divided by ,",class:"w-100 bg-white radius-small pd-medium"},null,8,["field","onUpdate:field"]),e.createElementVNode("div",{onClick:()=>l.state.current.filters.splice(s,1),class:"radius-small pd-small flex-center flex aspect-1x1 bg-red"},[e.createVNode(i.default,{class:"i-medium"})],8,V)]))),128))]),_:1},8,["actions"])],64))}};exports.default=y;
|
@@ -2,7 +2,7 @@ import { computed as h, openBlock as o, createElementBlock as c, Fragment as m,
|
|
2
2
|
import { useRoute as k, useRouter as v } from "vue-router";
|
3
3
|
import g from "../../../icons/navigation/IconDelete.vue.js";
|
4
4
|
import S from "../../../../components/Button/Button.vue.js";
|
5
|
-
import E from "../../../../components/Select/Select.
|
5
|
+
import E from "../../../../components/Select/Select.vue2.js";
|
6
6
|
import i from "../../../../components/Field/Field.vue.js";
|
7
7
|
import p from "../../../../components/Block/Block.vue.js";
|
8
8
|
import { actions as f, state as t } from "../../store/categories.js";
|
package/dist/prometheus-framework/src/modules/products/components/pages/EditLeftover.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Block/Block.vue.cjs");require("../../../../components/Field/Field.vue2.cjs");const _=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../../../components/Block/Block.vue.cjs");require("../../../../components/Field/Field.vue2.cjs");const _=require("../../../../components/Select/Select.vue2.cjs");require("../../../../components/SelectMulti/SelectMulti.vue2.cjs");const p=require("../blocks/CardPosition.vue.cjs"),m=require("vue-router"),l=require("../../../globals/store/globals.cjs"),t=require("../../store/leftovers.cjs"),f=require("../../store/products.cjs");require("./EditLeftover.vue2.cjs");const g={class:"mn-b-medium gap-small flex-v-center flex-nowrap flex"},N={class:""},h={class:"gap-thin flex-v-center flex-nojustify flex"},V={class:"mn-r-auto"},q={__name:"EditLeftover",setup(E){const o=m.useRoute(),i=m.useRouter(),c=e.ref(f.state.all);e.ref(null);const v=e.computed(()=>Number(t.state.current.positions.reduce((s,r)=>Number(s)+Number(r.price),0)));e.onMounted(async()=>{if(o.params.leftover)try{await t.actions.fetch(o.params.leftover)}catch{console.error("error")}else t.state.current={type:"",order:"",positions:[]};try{const s=await f.actions.read({organization:o.params._id,limit:100});c.value=s}catch{console.error("error")}});function b(){o.params.leftover?t.actions.fetch(o.params.leftover):t.state.current={type:"",order:"",positions:[]}}function y(){t.state.current.organization=o.params._id,o.params.leftover?t.actions.update(t.state.current).then(()=>i.push({name:"Leftovers",params:{_id:o.params._id}}),s=>console.error("error")):t.actions.create(t.state.current).then(()=>i.push({name:"Leftovers",params:{_id:o.params._id}}),s=>console.error("error"))}function k(){t.actions.delete(o.params.leftover).then(()=>i.push({name:"Leftovers",params:{_id:o.params._id}}),s=>console.error("error"))}return(s,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("header",g,[e.createElementVNode("h2",N,e.toDisplayString(e.unref(o).params.leftover?"Edit ":"Add ")+" Inventory",1),e.createVNode(_.default,{select:t.state.current.type,"onUpdate:select":r[0]||(r[0]=n=>t.state.current.type=n),options:["stock-in","stock-out","write-off"],placeholder:"Select type",class:"bg-main t-black w-max pd-small t-semi p-big uppercase radius-small"},null,8,["select"])]),e.createVNode(u.default,{title:"Add Position",class:"mn-b-semi"},{default:e.withCtx(()=>[e.createVNode(p.default,{onAdd:r[1]||(r[1]=n=>l.actions.add(t.state.current.positions,n)),products:c.value},null,8,["products"])]),_:1}),e.createVNode(u.default,{title:"Invetory Sheet",placeholder:"No positions added yet",class:"mn-b-semi"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.state.current.positions,(n,d)=>(e.openBlock(),e.createBlock(p.default,{key:n._id,product:n,array:t.state.current.positions,products:c.value,onAdd:r[2]||(r[2]=a=>l.actions.add(t.state.current.positions,a)),onUpdate:a=>l.actions.update(t.state.current.positions,a,d),onDelete:a=>l.actions.delete(t.state.current.positions,a,d)},null,8,["product","array","products","onUpdate","onDelete"]))),128))]),_:1}),e.createVNode(u.default,{class:""},{default:e.withCtx(()=>[e.createElementVNode("section",h,[e.createElementVNode("h3",V," In total: "+e.toDisplayString(s.formatPrice(v.value)),1),e.createElementVNode("a",{onClick:r[3]||(r[3]=n=>y()),class:"bg-main button"}," Save "),e.createElementVNode("a",{class:"t-white bg-second button",onClick:r[4]||(r[4]=n=>b())}," Reset "),e.unref(o).params.leftover?(e.openBlock(),e.createElementBlock("a",{key:0,onClick:r[5]||(r[5]=n=>k()),class:"t-white bg-red button"}," Delete ")):e.createCommentVNode("",!0)])]),_:1})],64))}};exports.default=q;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { ref as y, computed as
|
1
|
+
import { ref as y, computed as S, onMounted as C, openBlock as c, createElementBlock as d, Fragment as b, createElementVNode as n, toDisplayString as h, unref as g, createVNode as i, withCtx as f, renderList as D, createBlock as L, createCommentVNode as R } from "vue";
|
2
2
|
import v from "../../../../components/Block/Block.vue.js";
|
3
3
|
import "../../../../components/Field/Field.vue2.js";
|
4
|
-
import A from "../../../../components/Select/Select.
|
4
|
+
import A from "../../../../components/Select/Select.vue2.js";
|
5
5
|
import "../../../../components/SelectMulti/SelectMulti.vue2.js";
|
6
6
|
import k from "../blocks/CardPosition.vue.js";
|
7
7
|
import { useRoute as E, useRouter as P } from "vue-router";
|
@@ -14,8 +14,8 @@ const U = { class: "mn-b-medium gap-small flex-v-center flex-nowrap flex" }, V =
|
|
14
14
|
setup(F) {
|
15
15
|
const r = E(), u = P(), m = y(B.all);
|
16
16
|
y(null);
|
17
|
-
const w =
|
18
|
-
|
17
|
+
const w = S(() => Number(t.current.positions.reduce((o, e) => Number(o) + Number(e.price), 0)));
|
18
|
+
C(async () => {
|
19
19
|
if (r.params.leftover)
|
20
20
|
try {
|
21
21
|
await l.fetch(r.params.leftover);
|
@@ -46,7 +46,7 @@ const U = { class: "mn-b-medium gap-small flex-v-center flex-nowrap flex" }, V =
|
|
46
46
|
(o) => console.error("error")
|
47
47
|
);
|
48
48
|
}
|
49
|
-
function
|
49
|
+
function N() {
|
50
50
|
l.delete(r.params.leftover).then(
|
51
51
|
() => u.push({ name: "Leftovers", params: { _id: r.params._id } }),
|
52
52
|
(o) => console.error("error")
|
@@ -88,7 +88,7 @@ const U = { class: "mn-b-medium gap-small flex-v-center flex-nowrap flex" }, V =
|
|
88
88
|
class: "mn-b-semi"
|
89
89
|
}, {
|
90
90
|
default: f(() => [
|
91
|
-
(c(!0), d(b, null,
|
91
|
+
(c(!0), d(b, null, D(t.current.positions, (s, _) => (c(), L(k, {
|
92
92
|
key: s._id,
|
93
93
|
product: s,
|
94
94
|
array: t.current.positions,
|
@@ -125,7 +125,7 @@ const U = { class: "mn-b-medium gap-small flex-v-center flex-nowrap flex" }, V =
|
|
125
125
|
}, " Reset "),
|
126
126
|
g(r).params.leftover ? (c(), d("a", {
|
127
127
|
key: 0,
|
128
|
-
onClick: e[5] || (e[5] = (s) =>
|
128
|
+
onClick: e[5] || (e[5] = (s) => N()),
|
129
129
|
class: "t-white bg-red button"
|
130
130
|
}, " Delete ")) : R("", !0)
|
131
131
|
])
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("vue-router"),d=require("../../../../components/Tab/Tab.vue2.cjs"),m=require("../../../../components/Feed/Feed.vue.cjs"),f=require("../blocks/CardLeftover.vue.cjs"),u=require("../../store/leftovers.cjs");require("./Leftovers.vue2.cjs");const p={class:"pd-thin"},v={class:"mn-b-medium flex-v-center flex-nowrap flex"},b=e.createElementVNode("h2",{class:"mn-r-medium"},"Inventory",-1),_={class:"mn-b-semi pd-medium bg-grey radius-big"},g=e.createElementVNode("p",{class:"mn-b-thin"},"Spended:",-1),h={__name:"Leftovers",setup(k){const s=a.useRoute();a.useRouter();const l=e.ref(s.query.tab?s.query.tab:"all"),i=e.computed(()=>u.state.all.reduce((o,r)=>{const t=r.positions.reduce((n,c)=>n+c.price,0);return r.type==="stock-in"?o-t:r.type==="stock-out"?o+t:o},0));return(o,r)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("header",v,[b,e.createElementVNode("button",{onClick:r[0]||(r[0]=t=>o.$router.push({name:"LeftoverAdd"})),class:"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")]),e.createElementVNode("section",_,[g,e.createElementVNode("h3",null,e.toDisplayString(o.formatPrice(i.value)),1)]),e.createVNode(d.default,{selected:l.value,"onUpdate:selected":r[1]||(r[1]=t=>l.value=t),tabs:[{name:"All",value:"all"},{name:"Stock-In",value:"stock-in"},{name:"Stock-Out",value:"stock-out"},{name:"Write-Off",value:"write-off"}],class:"mn-b-small o-hidden h5 radius-big bg-grey"},null,8,["selected"]),e.createVNode(m.default,{states:{empty:{title:"No Leftovers Found",description:"Currently, there are no leftovers available."}},store:{read:t=>u.actions.read(t)},options:{limit:15,organization:e.unref(s).params._id}},{default:e.withCtx(({items:t})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,n=>(e.openBlock(),e.createBlock(f.default,{leftover:n,class:"bg-grey pd-small mn-b-thin radius-small"},null,8,["leftover"]))),256))]),_:1},8,["states","store","options"])]))}};exports.default=h;
|
@@ -1,34 +1,34 @@
|
|
1
|
-
import { ref as d, computed as p, openBlock as a, createElementBlock as
|
1
|
+
import { ref as d, computed as p, openBlock as a, createElementBlock as i, createElementVNode as o, toDisplayString as f, createVNode as u, unref as v, withCtx as b, Fragment as _, renderList as h, createBlock as g } from "vue";
|
2
2
|
import { useRoute as y, useRouter as k } from "vue-router";
|
3
3
|
import L from "../../../../components/Tab/Tab.vue2.js";
|
4
4
|
import w from "../../../../components/Feed/Feed.vue.js";
|
5
5
|
import x from "../blocks/CardLeftover.vue.js";
|
6
|
-
import { state as C, actions as
|
6
|
+
import { state as C, actions as $ } from "../../store/leftovers.js";
|
7
7
|
import "./Leftovers.vue2.js";
|
8
|
-
const
|
8
|
+
const B = { class: "pd-thin" }, N = { class: "mn-b-medium flex-v-center flex-nowrap flex" }, q = /* @__PURE__ */ o("h2", { class: "mn-r-medium" }, "Inventory", -1), A = { class: "mn-b-semi pd-medium bg-grey radius-big" }, E = /* @__PURE__ */ o("p", { class: "mn-b-thin" }, "Spended:", -1), D = {
|
9
9
|
__name: "Leftovers",
|
10
|
-
setup(
|
10
|
+
setup(F) {
|
11
11
|
const s = y();
|
12
12
|
k();
|
13
|
-
const l = d(s.query.tab ? s.query.tab : "all"), c = p(() => C.all.reduce((
|
14
|
-
const e = t.positions.reduce((n,
|
15
|
-
return
|
13
|
+
const l = d(s.query.tab ? s.query.tab : "all"), c = p(() => C.all.reduce((r, t) => {
|
14
|
+
const e = t.positions.reduce((n, m) => n + m.price, 0);
|
15
|
+
return t.type === "stock-in" ? r - e : t.type === "stock-out" ? r + e : r;
|
16
16
|
}, 0));
|
17
|
-
return (
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
onClick: t[0] || (t[0] = (e) =>
|
17
|
+
return (r, t) => (a(), i("div", B, [
|
18
|
+
o("header", N, [
|
19
|
+
q,
|
20
|
+
o("button", {
|
21
|
+
onClick: t[0] || (t[0] = (e) => r.$router.push({
|
22
22
|
name: "LeftoverAdd"
|
23
23
|
})),
|
24
24
|
class: "radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"
|
25
25
|
}, " + ")
|
26
26
|
]),
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
o("section", A, [
|
28
|
+
E,
|
29
|
+
o("h3", null, f(r.formatPrice(c.value)), 1)
|
30
30
|
]),
|
31
|
-
|
31
|
+
u(L, {
|
32
32
|
selected: l.value,
|
33
33
|
"onUpdate:selected": t[1] || (t[1] = (e) => l.value = e),
|
34
34
|
tabs: [
|
@@ -39,7 +39,7 @@ const $ = { class: "pd-thin" }, q = { class: "mn-b-medium flex-v-center flex-now
|
|
39
39
|
],
|
40
40
|
class: "mn-b-small o-hidden h5 radius-big bg-grey"
|
41
41
|
}, null, 8, ["selected"]),
|
42
|
-
|
42
|
+
u(w, {
|
43
43
|
states: {
|
44
44
|
empty: {
|
45
45
|
title: "No Leftovers Found",
|
@@ -47,7 +47,7 @@ const $ = { class: "pd-thin" }, q = { class: "mn-b-medium flex-v-center flex-now
|
|
47
47
|
}
|
48
48
|
},
|
49
49
|
store: {
|
50
|
-
read: (e) =>
|
50
|
+
read: (e) => $.read(e)
|
51
51
|
},
|
52
52
|
options: {
|
53
53
|
limit: 15,
|
@@ -58,9 +58,9 @@ const $ = { class: "pd-thin" }, q = { class: "mn-b-medium flex-v-center flex-now
|
|
58
58
|
default: b(({
|
59
59
|
items: e
|
60
60
|
}) => [
|
61
|
-
(a(!0),
|
61
|
+
(a(!0), i(_, null, h(e, (n) => (a(), g(x, {
|
62
62
|
leftover: n,
|
63
|
-
class: "bg-grey pd-small radius-
|
63
|
+
class: "bg-grey pd-small mn-b-thin radius-small"
|
64
64
|
}, null, 8, ["leftover"]))), 256))
|
65
65
|
]),
|
66
66
|
_: 1
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("vue-router"),f=require("vue-i18n"),h=require("../../../../components/Loader/Loader.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),b=require("vue-router"),f=require("vue-i18n"),h=require("../../../../components/Loader/Loader.vue2.cjs");require("../../../globals/localization/vue-i18n.cjs");require("../../../../components/Breadcrumbs/Breadcrumbs.vue.cjs");const g=require("../../../../components/FieldBig/FieldBig.vue.cjs"),_=require("../sections/SectionProduct.vue.cjs"),s=require("../../store/products.cjs");require("../sections/HeroRecommendation.vue2.cjs");require("./ProductRecommmendation.vue2.cjs");const I=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs"),q={id:"product-recommendation",class:"h-min-100vh t-white bg-black"},y={key:1,class:"section"},k={key:0,class:"mn-b-big"},R={__name:"ProductRecommmendation",setup(T){const r=b.useRouter(),t=e.ref(!0),m=e.ref(!1),u=e.ref(["Loading all we know about the buds","Processing the cannabis universe","Creating a strain of knowledge","Harvesting taste insights"]),p={messages:{en:{TITLE:"Increase Your High,<br><b class='t-white'>Powered by AI Budtender</b>",DESCRIPTION:"AI's got your chill, bro. We're picking out the most cosmic weed strains based on your desired vibe:",placeholder:"Describe your desired high, bro...",action:"Transmit Vibes →"},ru:{TITLE:"Персональный Накур,<br><b class='t-white'>Напрямую от AI</b>",DESCRIPTION:"AI на страже твоего релакса, бро. Мы подбираем самые космические сорта травы, исходя из твоего желаемого настроения:",placeholder:"Опиши свой желамый хай, bro...",action:"Передать Вайб →"}}},{t:o}=f.useI18n(p),a=e.ref(u.value[0]);let c=e.ref(r.currentRoute.value.query.mood||o("Recommend me something"));e.watchEffect(async()=>{c.value=r.currentRoute.value.query.mood||o("Recommend me something"),t.value=!0,await s.actions.submitMood(c.value),t.value=!1}),e.onMounted(async()=>{}),setInterval(()=>{const i=u.value.indexOf(a.value);a.value=u.value[(i+1)%u.value.length]},2e3);let n=e.ref(r.currentRoute.value.query.mood||o("Recommend me something"));function v(){r.push({name:"Product Recommmendation",query:{mood:n.value}})}return(i,l)=>(e.openBlock(),e.createElementBlock("div",q,[t.value?(e.openBlock(),e.createBlock(h.default,{key:0,status:a.value,class:"pos-fixed"},null,8,["status"])):e.createCommentVNode("",!0),!t.value&&!m.value?(e.openBlock(),e.createElementBlock("div",y,[t.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",k,[e.createVNode(g.default,{input:e.unref(n),loopTyping:!1,enableTyping:!1,placeholder:e.unref(o)("placeholder"),action:e.unref(o)("action"),"onUpdate:input":l[0]||(l[0]=d=>e.isRef(n)?n.value=d:n=d),onAction:v,class:"t-white bs-blur-regular w-100"},null,8,["input","placeholder","action"])])),e.createVNode(_.default,{product:s.state.current,recommendation:s.state.current.recommendation},null,8,["product","recommendation"])])):e.createCommentVNode("",!0)]))}},w=I.default(R,[["__scopeId","data-v-5fd744d4"]]);exports.default=w;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ref as e, watchEffect as I, onMounted as y, openBlock as s, createElementBlock as u, createBlock as w, createCommentVNode as c, createVNode as v, unref as l, isRef as R } from "vue";
|
2
2
|
import { useRouter as T } from "vue-router";
|
3
3
|
import { useI18n as k } from "vue-i18n";
|
4
|
-
import x from "../../../../components/Loader/Loader.
|
4
|
+
import x from "../../../../components/Loader/Loader.vue2.js";
|
5
5
|
import "../../../globals/localization/vue-i18n.js";
|
6
6
|
import "../../../../components/Breadcrumbs/Breadcrumbs.vue.js";
|
7
7
|
import P from "../../../../components/FieldBig/FieldBig.vue.js";
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router")
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("vue-router");require("../../../../components/Tab/Tab.vue.cjs");const l=require("../../../../components/Feed/Feed.vue.cjs"),d=require("../sections/FilterProducts.vue.cjs"),p=require("../../../globals/components/blocks/BlockSearch.vue.cjs"),m=require("../blocks/CardProduct.vue.cjs"),u=require("../../store/products.cjs"),h={key:0,class:"mn-b-medium flex-v-center flex-nowrap flex"},f=e.createElementVNode("h2",{class:"mn-r-medium"},"Products",-1),g={class:"cols-2-1_3 bg-grey pd-thin radius-big gap-thin"},b={__name:"Products",setup(y){const t=s.useRoute(),c=s.useRouter();function i(r){let o={...t.query};o.search=r,c.push({query:o})}return(r,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(t).name!=="Organization"?(e.openBlock(),e.createElementBlock("header",h,[f,e.createElementVNode("button",{onClick:o[0]||(o[0]=a=>r.$router.push({name:"AddProduct"})),class:"radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"}," + ")])):e.createCommentVNode("",!0),e.createElementVNode("div",g,[e.createVNode(d.default),e.createElementVNode("div",null,[e.createVNode(p.default,{onSearch:i,placeholder:"Enter product name",class:"bg-white mn-b-thin"}),e.createTextVNode(" "+e.toDisplayString(r.tab)+" ",1),e.createVNode(l.default,{states:{empty:{title:"No Products Found",description:"Currently, there are no products available."}},store:{read:a=>u.actions.read(a),state:u.state},options:{limit:15,organization:e.unref(t).params._id,categories:e.unref(t).query.categories,prices:e.unref(t).query.prices,delivery:e.unref(t).query.delivery,search:e.unref(t).query.search,status:r.tab==="all"?"":r.tab?r.tab:""},class:"cols-3 gap-thin"},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,n=>(e.openBlock(),e.createBlock(m.default,{key:n._id,product:n,class:"h-max",onClick:_=>r.$router.push({name:"Product Organization",params:{_id:e.unref(t).params._id,product:n._id}})},null,8,["product","onClick"]))),128))]),_:1},8,["states","store","options"])])])],64))}};exports.default=b;
|
@@ -1,56 +1,42 @@
|
|
1
|
-
import {
|
2
|
-
import { useRoute as
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
6
|
-
import
|
7
|
-
import
|
8
|
-
import { actions as
|
9
|
-
const
|
1
|
+
import { openBlock as s, createElementBlock as c, Fragment as l, unref as r, createElementVNode as i, createCommentVNode as p, createVNode as u, createTextVNode as h, toDisplayString as _, withCtx as f, renderList as g, createBlock as y } from "vue";
|
2
|
+
import { useRoute as b, useRouter as v } from "vue-router";
|
3
|
+
import "../../../../components/Tab/Tab.vue.js";
|
4
|
+
import k from "../../../../components/Feed/Feed.vue.js";
|
5
|
+
import $ from "../sections/FilterProducts.vue.js";
|
6
|
+
import q from "../../../globals/components/blocks/BlockSearch.vue.js";
|
7
|
+
import C from "../blocks/CardProduct.vue.js";
|
8
|
+
import { actions as N, state as P } from "../../store/products.js";
|
9
|
+
const w = {
|
10
10
|
key: 0,
|
11
11
|
class: "mn-b-medium flex-v-center flex-nowrap flex"
|
12
|
-
},
|
12
|
+
}, V = /* @__PURE__ */ i("h2", { class: "mn-r-medium" }, "Products", -1), z = { class: "cols-2-1_3 bg-grey pd-thin radius-big gap-thin" }, T = {
|
13
13
|
__name: "Products",
|
14
|
-
setup(
|
15
|
-
const e =
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
function _(s) {
|
20
|
-
let a = { ...e.query };
|
21
|
-
a.search = s, d.push({ query: a });
|
14
|
+
setup(B) {
|
15
|
+
const e = b(), m = v();
|
16
|
+
function d(t) {
|
17
|
+
let o = { ...e.query };
|
18
|
+
o.search = t, m.push({ query: o });
|
22
19
|
}
|
23
|
-
return (
|
24
|
-
r(e).name !== "Organization" ? (
|
25
|
-
|
20
|
+
return (t, o) => (s(), c(l, null, [
|
21
|
+
r(e).name !== "Organization" ? (s(), c("header", w, [
|
22
|
+
V,
|
26
23
|
i("button", {
|
27
|
-
onClick:
|
24
|
+
onClick: o[0] || (o[0] = (a) => t.$router.push({
|
28
25
|
name: "AddProduct"
|
29
26
|
})),
|
30
27
|
class: "radius-100 i-big hover-scale-1 cursor-pointer t-white bg-second"
|
31
28
|
}, " + ")
|
32
29
|
])) : p("", !0),
|
33
|
-
|
34
|
-
|
35
|
-
selected: t.value,
|
36
|
-
"onUpdate:selected": a[1] || (a[1] = (o) => t.value = o),
|
37
|
-
tabs: [
|
38
|
-
{ name: "All", value: "all" },
|
39
|
-
{ name: "Published", value: "published" },
|
40
|
-
{ name: "Unpublished", value: "unpublished" },
|
41
|
-
{ name: "Archivied", value: "archivied" }
|
42
|
-
],
|
43
|
-
class: "mn-b-small o-hidden h5 radius-big bg-grey"
|
44
|
-
}, null, 8, ["selected"])) : p("", !0),
|
45
|
-
i("div", B, [
|
46
|
-
c(C),
|
30
|
+
i("div", z, [
|
31
|
+
u($),
|
47
32
|
i("div", null, [
|
48
|
-
|
49
|
-
onSearch:
|
33
|
+
u(q, {
|
34
|
+
onSearch: d,
|
50
35
|
placeholder: "Enter product name",
|
51
36
|
class: "bg-white mn-b-thin"
|
52
37
|
}),
|
53
|
-
|
38
|
+
h(" " + _(t.tab) + " ", 1),
|
39
|
+
u(k, {
|
54
40
|
states: {
|
55
41
|
empty: {
|
56
42
|
title: "No Products Found",
|
@@ -58,8 +44,8 @@ const N = {
|
|
58
44
|
}
|
59
45
|
},
|
60
46
|
store: {
|
61
|
-
read: (
|
62
|
-
state:
|
47
|
+
read: (a) => N.read(a),
|
48
|
+
state: P
|
63
49
|
},
|
64
50
|
options: {
|
65
51
|
limit: 15,
|
@@ -68,23 +54,23 @@ const N = {
|
|
68
54
|
prices: r(e).query.prices,
|
69
55
|
delivery: r(e).query.delivery,
|
70
56
|
search: r(e).query.search,
|
71
|
-
status: t.
|
57
|
+
status: t.tab === "all" ? "" : t.tab ? t.tab : ""
|
72
58
|
// user: user
|
73
59
|
},
|
74
60
|
class: "cols-3 gap-thin"
|
75
61
|
}, {
|
76
|
-
default:
|
77
|
-
items:
|
62
|
+
default: f(({
|
63
|
+
items: a
|
78
64
|
}) => [
|
79
|
-
(
|
80
|
-
key:
|
81
|
-
product:
|
65
|
+
(s(!0), c(l, null, g(a, (n) => (s(), y(C, {
|
66
|
+
key: n._id,
|
67
|
+
product: n,
|
82
68
|
class: "h-max",
|
83
|
-
onClick: (
|
69
|
+
onClick: (E) => t.$router.push({
|
84
70
|
name: "Product Organization",
|
85
71
|
params: {
|
86
72
|
_id: r(e).params._id,
|
87
|
-
product:
|
73
|
+
product: n._id
|
88
74
|
}
|
89
75
|
})
|
90
76
|
}, null, 8, ["product", "onClick"]))), 128))
|
@@ -97,5 +83,5 @@ const N = {
|
|
97
83
|
}
|
98
84
|
};
|
99
85
|
export {
|
100
|
-
|
86
|
+
T as default
|
101
87
|
};
|
package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue");require("../../../../components/Button/Button.vue2.cjs");const r=require("../../../../components/Field/Field.vue.cjs"),u=require("../../../../components/Select/Select.
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("vue");require("../../../../components/Button/Button.vue2.cjs");const r=require("../../../../components/Field/Field.vue.cjs"),u=require("../../../../components/Select/Select.vue2.cjs"),i={__name:"EditProductInfo",props:{product:Object},setup(e){return(a,l)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createVNode(u.default,{select:e.product.status,"onUpdate:select":l[0]||(l[0]=t=>e.product.status=t),label:"Status",options:["unpublished","published","archivied"],placeholder:"Display product",class:"pos-relative w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["select"]),d.createVNode(r.default,{field:e.product.name,"onUpdate:field":l[1]||(l[1]=t=>e.product.name=t),label:"Name",placeholder:"Введите название",class:"w-100 mn-b-small bg-white radius-small pd-medium"},null,8,["field"]),d.createVNode(r.default,{field:e.product.price,"onUpdate:field":l[3]||(l[3]=t=>e.product.price=t),label:"Price",placeholder:"Введите цену",class:"w-100 mn-b-small bg-white radius-small pd-medium",type:"number"},{default:d.withCtx(()=>[d.createVNode(u.default,{select:e.product.price.currency,"onUpdate:select":l[2]||(l[2]=t=>e.product.price.currency=t),placeholder:"฿",options:["฿"],class:"pos-relative bg-grey pd-thin radius-thin"},null,8,["select"])]),_:1},8,["field"]),d.createVNode(r.default,{field:e.product.description,"onUpdate:field":l[4]||(l[4]=t=>e.product.description=t),label:"Description",placeholder:"Введите описание",class:"w-100 bg-white radius-small pd-medium",type:"textarea"},null,8,["field"])],64))}};exports.default=i;
|
package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { openBlock as a, createElementBlock as u, Fragment as s, createVNode as d, withCtx as o } from "vue";
|
2
2
|
import "../../../../components/Button/Button.vue2.js";
|
3
3
|
import i from "../../../../components/Field/Field.vue.js";
|
4
|
-
import r from "../../../../components/Select/Select.
|
4
|
+
import r from "../../../../components/Select/Select.vue2.js";
|
5
5
|
const f = {
|
6
6
|
__name: "EditProductInfo",
|
7
7
|
props: {
|