@ozdao/prometheus-framework 0.2.70 → 0.2.73
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/auth.server.js +8 -21
- package/dist/auth.server.mjs +8 -21
- package/dist/community.server.js +1 -1
- package/dist/community.server.mjs +1 -1
- package/dist/events.server.js +306 -48
- package/dist/events.server.mjs +306 -48
- package/dist/files.server.js +9 -9
- package/dist/files.server.mjs +9 -9
- package/dist/gallery.server.js +2 -2
- package/dist/gallery.server.mjs +2 -2
- package/dist/globals.server.js +1 -1
- package/dist/globals.server.mjs +1 -1
- package/dist/mailing-BX0q8DIs.js +77 -0
- package/dist/mailing-Cdp8NXhP.mjs +78 -0
- package/dist/main-C0wbYN41.mjs +13744 -0
- package/dist/main-vACUb_p5.js +91 -0
- package/dist/main.css +1 -1
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.cjs +3 -0
- package/dist/node_modules/vue-qrcode-reader/dist/vue-qrcode-reader.js +3174 -0
- package/dist/organizations.server.js +1 -1
- package/dist/organizations.server.mjs +1 -1
- package/dist/ownership.schema-BQmRnCsc.mjs +184 -0
- package/dist/ownership.schema-D13NqEgo.js +183 -0
- package/dist/products.server.js +1 -1
- package/dist/products.server.mjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +1 -225
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +225 -1
- package/dist/prometheus-framework/src/components/Completion/Completion.vue.cjs +1 -0
- package/dist/prometheus-framework/src/components/Completion/Completion.vue.js +53 -0
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Feed/Feed.vue.js +56 -57
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +1 -84
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +84 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue.js +373 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone2.vue2.js +1 -4
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue.js +51 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Loader/Loader.vue2.js +1 -51
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue2.js +1 -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 +36 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Spoiler/Spoiler.vue2.js +1 -36
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +1 -46
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.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/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
- 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 +19 -20
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
- 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/router/backoffice.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/router/backoffice.js +3 -3
- 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 +2 -2
- 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.js +3 -3
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -5
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +0 -66
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +5 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +66 -0
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue.js +81 -0
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonCheck.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.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 +3 -3
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEventTickets.vue.js +127 -83
- 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 +2 -2
- 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 +8 -5
- package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.js +24 -24
- 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 +2 -2
- 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 +2 -2
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/BlockSearch.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 +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/icons/entities/IconEvents.vue.js +21 -14
- 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 +3 -3
- 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/OrderCreateBackoffice.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js +205 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue2.js +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/components/pages/Orders.vue.js +157 -72
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js +65 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormDelivery.vue.js +79 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/orders/components/sections/FormPayment.vue.js +34 -0
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +27 -22
- 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/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.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 +4 -4
- 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 +4 -4
- 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 +2 -2
- 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 +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- 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 +3 -3
- 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/blocks/LeftoverPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/LeftoverPositions.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ListPositions.vue.js +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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/CategoryEdit.vue.js +2 -2
- 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 +1 -1
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +3 -3
- 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 +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditModifications.vue.js +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 +2 -2
- 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/products/components/sections/SectionProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/SectionProduct.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 +24 -20
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/sections/ProfileCompletion.vue.js +39 -27
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Payments.vue.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Payments.vue.js +57 -0
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Payments.vue2.cjs +1 -0
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Payments.vue2.js +1 -0
- 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 +1 -1
- package/dist/prometheus-framework.cjs.js +1 -1
- package/dist/prometheus-framework.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/users.server.js +5 -5
- package/dist/users.server.mjs +5 -5
- package/dist/web-BJSg7vH_.js +1 -0
- package/dist/web-DOXRo6XB.mjs +54 -0
- package/package.json +1 -1
- package/src/modules/users/users.server.js +0 -1
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue.js
ADDED
@@ -0,0 +1,205 @@
|
|
1
|
+
import { computed as D, ref as b, onMounted as I, openBlock as n, createElementBlock as u, createVNode as s, withCtx as o, createElementVNode as t, createTextVNode as S, unref as x, Fragment as P, renderList as y, createBlock as l, createCommentVNode as h, toDisplayString as C } from "vue";
|
2
|
+
import { useRoute as T, useRouter as q } from "vue-router";
|
3
|
+
import z from "../../../../components/Feed/Feed.vue.js";
|
4
|
+
import "../../../../components/Field/Field.vue.js";
|
5
|
+
import E from "../../../../components/Button/Button.vue2.js";
|
6
|
+
import k from "../../../../components/Popup/Popup.vue.js";
|
7
|
+
import c from "../../../../components/Block/Block.vue.js";
|
8
|
+
import v from "../blocks/CardOrderItem.vue.js";
|
9
|
+
import "../../../../components/Select/Select.vue2.js";
|
10
|
+
import "../../../../components/SelectMulti/SelectMulti.vue2.js";
|
11
|
+
import F from "../sections/FormClientDetails.vue.js";
|
12
|
+
import L from "../sections/FormDelivery.vue.js";
|
13
|
+
import M from "../sections/FormPayment.vue.js";
|
14
|
+
import { state as j } from "../../../auth/store/auth.js";
|
15
|
+
import { actions as m } from "../../../globals/store/globals.js";
|
16
|
+
import { state as e, actions as G } from "../../store/orders.js";
|
17
|
+
import { actions as H } from "../../../products/store/products.js";
|
18
|
+
import "./OrderCreateBackoffice.vue2.js";
|
19
|
+
const J = { class: "flex-v-center flex-nowrap flex" }, K = /* @__PURE__ */ t("h2", { class: "mn-r-auto" }, "Create Order", -1), Q = /* @__PURE__ */ t("h3", { class: "mn-b-small" }, "Add to order", -1), U = { class: "bg-grey mn-b-thin h-min-20r h-max-20r o-scroll pd-medium radius-big" }, W = {
|
20
|
+
key: 0,
|
21
|
+
class: "w-100"
|
22
|
+
}, X = { class: "flex-nowrap flex" }, Y = /* @__PURE__ */ t("button", { class: "w-100 bg-main pd-small flex-center flex uppercase t-medium" }, "Select", -1), Z = /* @__PURE__ */ t("h3", { class: "mn-b-small" }, "Add New Client", -1), ee = { class: "h3 flex" }, te = /* @__PURE__ */ t("span", { class: "mn-r-auto t-transp" }, "In total", -1), ye = {
|
23
|
+
__name: "OrderCreateBackoffice",
|
24
|
+
setup(re) {
|
25
|
+
const d = T(), $ = q();
|
26
|
+
let O = D(() => Number(e.current.positions.reduce((_, i) => _ + i.price * i.quantity, 0)));
|
27
|
+
const p = b(!1);
|
28
|
+
function N() {
|
29
|
+
p.value = !0;
|
30
|
+
}
|
31
|
+
function g() {
|
32
|
+
p.value = !1;
|
33
|
+
}
|
34
|
+
const f = b(!1);
|
35
|
+
function B() {
|
36
|
+
f.value = !0;
|
37
|
+
}
|
38
|
+
function A() {
|
39
|
+
f.value = !1;
|
40
|
+
}
|
41
|
+
b(null);
|
42
|
+
function R() {
|
43
|
+
e.current.creator = {
|
44
|
+
type: "user",
|
45
|
+
target: j.user._id
|
46
|
+
}, e.current.owner = {
|
47
|
+
type: "organization",
|
48
|
+
target: d.params._id
|
49
|
+
}, G.create(e.current);
|
50
|
+
}
|
51
|
+
function V() {
|
52
|
+
$.push({
|
53
|
+
name: "Backoffice Orders",
|
54
|
+
params: {
|
55
|
+
_id: d.params._id
|
56
|
+
}
|
57
|
+
});
|
58
|
+
}
|
59
|
+
return I(async () => {
|
60
|
+
}), (_, i) => (n(), u("div", null, [
|
61
|
+
s(c, { class: "mn-b-thin" }, {
|
62
|
+
default: o(() => [
|
63
|
+
t("header", J, [
|
64
|
+
K,
|
65
|
+
s(E, {
|
66
|
+
submit: R,
|
67
|
+
callback: V,
|
68
|
+
class: "pd-small radius-big bg-main t-black uppercase t-medium"
|
69
|
+
}, {
|
70
|
+
default: o(() => [
|
71
|
+
S(" Add Order ")
|
72
|
+
]),
|
73
|
+
_: 1
|
74
|
+
})
|
75
|
+
])
|
76
|
+
]),
|
77
|
+
_: 1
|
78
|
+
}),
|
79
|
+
s(k, {
|
80
|
+
title: "Добавить участника",
|
81
|
+
onClosePopup: g,
|
82
|
+
isPopupOpen: p.value,
|
83
|
+
class: "bg-white w-min-30r w-max-30r radius-big pd-medium"
|
84
|
+
}, {
|
85
|
+
default: o(() => [
|
86
|
+
Q,
|
87
|
+
t("div", U, [
|
88
|
+
s(z, {
|
89
|
+
search: !0,
|
90
|
+
states: {
|
91
|
+
empty: {
|
92
|
+
title: "No Products Found",
|
93
|
+
description: "Currently, there are no such products available."
|
94
|
+
}
|
95
|
+
},
|
96
|
+
store: {
|
97
|
+
read: (r) => H.read(r),
|
98
|
+
state: null
|
99
|
+
},
|
100
|
+
options: {
|
101
|
+
organization: x(d).params._id
|
102
|
+
},
|
103
|
+
class: ""
|
104
|
+
}, {
|
105
|
+
default: o(({
|
106
|
+
items: r
|
107
|
+
}) => [
|
108
|
+
(n(!0), u(P, null, y(r, (a, se) => (n(), l(v, {
|
109
|
+
key: a._id,
|
110
|
+
editable: !1,
|
111
|
+
product: a,
|
112
|
+
onClick: () => {
|
113
|
+
let w = { ...a };
|
114
|
+
w.quantity = 1, m.add(e.current.positions, w), g();
|
115
|
+
},
|
116
|
+
class: "bg-white pd-thin radius-medium w-100 mn-b-thin"
|
117
|
+
}, null, 8, ["product", "onClick"]))), 128))
|
118
|
+
]),
|
119
|
+
_: 1
|
120
|
+
}, 8, ["states", "store", "options"])
|
121
|
+
])
|
122
|
+
]),
|
123
|
+
_: 1
|
124
|
+
}, 8, ["isPopupOpen"]),
|
125
|
+
s(c, {
|
126
|
+
title: "Positions",
|
127
|
+
actions: [{
|
128
|
+
label: "+",
|
129
|
+
function: () => N()
|
130
|
+
}],
|
131
|
+
class: "mn-b-semi"
|
132
|
+
}, {
|
133
|
+
default: o(() => [
|
134
|
+
e.current.positions.length === 0 ? (n(), u("span", W, " No positions added yet ")) : h("", !0),
|
135
|
+
(n(!0), u(P, null, y(e.current.positions, (r, a) => (n(), l(v, {
|
136
|
+
key: r._id,
|
137
|
+
editable: !0,
|
138
|
+
product: r,
|
139
|
+
onIncrease: () => {
|
140
|
+
m.increment(e.current.positions, r);
|
141
|
+
},
|
142
|
+
onDecrease: () => {
|
143
|
+
m.decrement(e.current.positions, r);
|
144
|
+
},
|
145
|
+
onRemove: () => {
|
146
|
+
m.delete(e.current.positions, r);
|
147
|
+
},
|
148
|
+
class: "mn-b-thin pd-thin radius-medium bg-white"
|
149
|
+
}, null, 8, ["product", "onIncrease", "onDecrease", "onRemove"]))), 128))
|
150
|
+
]),
|
151
|
+
_: 1
|
152
|
+
}, 8, ["actions"]),
|
153
|
+
s(c, {
|
154
|
+
title: "Customer",
|
155
|
+
class: "mn-b-semi"
|
156
|
+
}, {
|
157
|
+
default: o(() => [
|
158
|
+
t("div", X, [
|
159
|
+
Y,
|
160
|
+
t("button", {
|
161
|
+
onClick: i[0] || (i[0] = (r) => B()),
|
162
|
+
class: "w-100 bg-main pd-small flex-center flex uppercase t-medium"
|
163
|
+
}, "Add new")
|
164
|
+
])
|
165
|
+
]),
|
166
|
+
_: 1
|
167
|
+
}),
|
168
|
+
e.current.status !== !0 ? (n(), l(L, {
|
169
|
+
key: 0,
|
170
|
+
order: e.current
|
171
|
+
}, null, 8, ["order"])) : h("", !0),
|
172
|
+
e.current.status !== !0 ? (n(), l(M, {
|
173
|
+
key: 1,
|
174
|
+
order: e.current
|
175
|
+
}, null, 8, ["order"])) : h("", !0),
|
176
|
+
s(k, {
|
177
|
+
title: "Добавить участника",
|
178
|
+
onClosePopup: A,
|
179
|
+
isPopupOpen: f.value,
|
180
|
+
class: "bg-white w-min-30r w-max-30r radius-big pd-medium"
|
181
|
+
}, {
|
182
|
+
default: o(() => [
|
183
|
+
Z,
|
184
|
+
s(F, {
|
185
|
+
order: e.current,
|
186
|
+
class: "bg-grey"
|
187
|
+
}, null, 8, ["order"])
|
188
|
+
]),
|
189
|
+
_: 1
|
190
|
+
}, 8, ["isPopupOpen"]),
|
191
|
+
s(c, { class: "mn-b-semi" }, {
|
192
|
+
default: o(() => [
|
193
|
+
t("div", ee, [
|
194
|
+
te,
|
195
|
+
t("span", null, C(x(O)) + " " + C(_.returnCurrency()), 1)
|
196
|
+
])
|
197
|
+
]),
|
198
|
+
_: 1
|
199
|
+
})
|
200
|
+
]));
|
201
|
+
}
|
202
|
+
};
|
203
|
+
export {
|
204
|
+
ye as default
|
205
|
+
};
|
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue2.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";
|
package/dist/prometheus-framework/src/modules/orders/components/pages/OrderCreateBackoffice.vue2.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -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"),u=require("vue-router");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs");require("../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.cjs");const p=require("../../../../components/Tab/Tab.vue2.cjs"),m=require("../../store/orders.cjs"),h=require("../../../auth/store/auth.cjs");require("../blocks/CardOrder.vue.cjs");const _=require("../../../globals/components/blocks/CardHeader.vue.cjs"),g=require("../../../../components/Feed/Feed.vue.cjs"),y=require("../../../icons/entities/IconEvents.vue.cjs"),v={class:"pd-thin"},b={class:"mn-b-small bg-grey bg-grey radius-big"},f={class:"br-b br-solid br-black-transp-10 pd-medium flex-v-center flex-nowrap flex"},k=e.createElementVNode("h1",{class:"mn-r-small"},"Orders",-1),N={class:"mn-b-small pd-small bg-white radius-small flex-nowrap flex"},V={class:"w-100"},E={class:"mn-b-thin"},x={class:"t-truncate"},w={class:"w-100 t-right"},B={class:"mn-b-thin"},S={class:"cols-1 mn-b-small gap-thin pd-small bg-white radius-small"},D={class:"mn-r-auto"},C={class:"t-right"},q={class:"t-transp"},T={key:0},O={class:"mn-r-auto"},F={class:"t-right"},A={class:"t-transp"},M={class:"pd-small bg-white radius-small gap-micro flex-v-center flex-nowrap flex"},L=e.createElementVNode("p",{class:"t-medium mn-r-auto"},"16:40, 21.04",-1),P={class:"flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin bg-main"},R=e.createElementVNode("span",{class:"flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin t-white bg-red"}," Unpaid ",-1),z={key:0,class:"pos-relative radius-small bg-fifth-transp-10 mn-t-thin pd-small"},H=e.createElementVNode("p",{class:"mn-b-thin t-transp uppercase p-small t-medium"},"Comment",-1),I={__name:"Orders",setup(U){const o=u.useRoute();u.useRouter();const n=e.ref(!1),l=e.ref(o.query.tab?o.query.tab:"posts");return e.onMounted(async()=>{}),(i,r)=>{const d=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("div",v,[e.createElementVNode("div",b,[e.createElementVNode("header",f,[k,e.createVNode(d,{to:{name:"AdminOrderAdd"},class:"radius-100 i-big hover-scale-1 transition-ease cursor-pointer t-white bg-second flex-center flex"},{default:e.withCtx(()=>[e.createTextVNode(" + ")]),_:1})]),e.createVNode(p.default,{selected:l.value,"onUpdate:selected":r[0]||(r[0]=a=>l.value=a),tabs:[{name:"All",value:"all"},{name:"Created",value:"stock-in"},{name:"Confirmed",value:"stock-out"},{name:"Preparing",value:"stock-out"},{name:"Prepared",value:"stock-out"},{name:"In delivery",value:"stock-out"},{name:"Delivered",value:"stock-out"},{name:"Closed",value:"stock-out"}],class:"w-100 t-nowrap o-scroll h5"},null,8,["selected"])]),e.createVNode(g.default,{search:!0,states:{empty:{title:"No Orders Found",description:"Currently, there are no orders."}},store:{read:a=>m.actions.read(a)},options:{limit:15,owner:e.unref(o).params._id,...l.value!=="all"&&{type:l.value}},class:"gap-thin cols-3"},{default:e.withCtx(({items:a})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,t=>(e.openBlock(),e.createBlock(d,{to:{name:"Order Edit",params:{order:t._id}},class:"bg-grey pos-relative pd-medium radius-big"},{default:e.withCtx(()=>[e.createVNode(_.default,{entity:t,entityType:"order",user:h.state.user,owner:t.creator,creator:t.creator,date:t.createdAt,class:"mn-b-small"},null,8,["entity","user","owner","creator","date"]),e.createElementVNode("div",N,[e.createElementVNode("div",V,[e.createElementVNode("h3",E,e.toDisplayString(t.customer.target.slice(0,8)),1),e.createElementVNode("p",x,e.toDisplayString(t.delivery.address),1)]),e.createElementVNode("div",w,[e.createElementVNode("h3",B,e.toDisplayString(i.returnCurrency())+e.toDisplayString(m.getters.getTotal(t.positions)),1),e.createElementVNode("p",null,"#"+e.toDisplayString(t._id.slice(0,4)+"..."+t._id.slice(-4)),1)])]),e.createElementVNode("div",S,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.positions.slice(0,2),(s,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:"w-100 flex"},[e.createElementVNode("p",D,e.toDisplayString(s.name),1),e.createElementVNode("p",C,[e.createTextVNode(e.toDisplayString(s.quantity)+" "+e.toDisplayString(s.type)+" x "+e.toDisplayString(s.price)+" ",1),e.createElementVNode("span",q,e.toDisplayString(i.returnCurrency()),1)])]))),128)),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[n.value&&t.positions.length>2?(e.openBlock(),e.createElementBlock("div",T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.positions.slice(2),(s,c)=>(e.openBlock(),e.createElementBlock("div",{key:c+2,class:"w-100 flex"},[e.createElementVNode("p",O,e.toDisplayString(s.name),1),e.createElementVNode("p",F,[e.createTextVNode(e.toDisplayString(s.quantity)+" "+e.toDisplayString(s.type)+" x "+e.toDisplayString(s.price)+" ",1),e.createElementVNode("span",A,e.toDisplayString(i.returnCurrency()),1)])]))),128))])):e.createCommentVNode("",!0)]),_:2},1024),t.positions.length>2?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:r[1]||(r[1]=e.withModifiers(s=>n.value=!n.value,["prevent"])),class:"radius-big bg-grey-transp-50 pd-nano w-100 flex-center flex"},e.toDisplayString(n.value?"Hide":`+${t.positions.length-2} more`),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",M,[e.createVNode(y.default,{class:"i-semi t-transp",fill:"rgb(var(--black)"}),L,e.createElementVNode("span",P,e.toDisplayString(t.status),1),R]),t.comment?(e.openBlock(),e.createElementBlock("div",z,[H,e.createElementVNode("p",null,e.toDisplayString(t.comment),1)])):e.createCommentVNode("",!0)]),_:2},1032,["to"]))),256))]),_:1},8,["states","store","options"])])}}};exports.default=I;
|
@@ -1,80 +1,165 @@
|
|
1
|
-
import { ref as
|
2
|
-
import { useRoute as
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import
|
1
|
+
import { ref as y, onMounted as x, resolveComponent as k, openBlock as n, createElementBlock as l, createElementVNode as e, createVNode as i, withCtx as m, createTextVNode as h, unref as w, Fragment as f, renderList as v, createBlock as C, toDisplayString as s, Transition as $, createCommentVNode as b, withModifiers as N } from "vue";
|
2
|
+
import { useRoute as O, useRouter as q } from "vue-router";
|
3
|
+
import "../../../../../node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
|
4
|
+
import "../../../../../node_modules/@vuepic/vue-datepicker/dist/main.css.js";
|
5
|
+
import A from "../../../../components/Tab/Tab.vue2.js";
|
6
|
+
import { actions as T, getters as V } from "../../store/orders.js";
|
7
|
+
import { state as B } from "../../../auth/store/auth.js";
|
6
8
|
import "../blocks/CardOrder.vue.js";
|
7
|
-
import
|
8
|
-
|
9
|
+
import E from "../../../globals/components/blocks/CardHeader.vue.js";
|
10
|
+
import z from "../../../../components/Feed/Feed.vue.js";
|
11
|
+
import D from "../../../icons/entities/IconEvents.vue.js";
|
12
|
+
const F = { class: "pd-thin" }, M = { class: "mn-b-small bg-grey bg-grey radius-big" }, P = { class: "br-b br-solid br-black-transp-10 pd-medium flex-v-center flex-nowrap flex" }, R = /* @__PURE__ */ e("h1", { class: "mn-r-small" }, "Orders", -1), U = { class: "mn-b-small pd-small bg-white radius-small flex-nowrap flex" }, H = { class: "w-100" }, I = { class: "mn-b-thin" }, L = { class: "t-truncate" }, S = { class: "w-100 t-right" }, j = { class: "mn-b-thin" }, G = { class: "cols-1 mn-b-small gap-thin pd-small bg-white radius-small" }, J = { class: "mn-r-auto" }, K = { class: "t-right" }, Q = { class: "t-transp" }, W = { key: 0 }, X = { class: "mn-r-auto" }, Y = { class: "t-right" }, Z = { class: "t-transp" }, ee = { class: "pd-small bg-white radius-small gap-micro flex-v-center flex-nowrap flex" }, te = /* @__PURE__ */ e("p", { class: "t-medium mn-r-auto" }, "16:40, 21.04", -1), se = { class: "flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin bg-main" }, ae = /* @__PURE__ */ e("span", { class: "flex-child flex-child-shrink-0 capitalize w-max t-medium radius-big pd-b-nano pd-t-nano pd-r-thin pd-l-thin t-white bg-red" }, " Unpaid ", -1), ne = {
|
13
|
+
key: 0,
|
14
|
+
class: "pos-relative radius-small bg-fifth-transp-10 mn-t-thin pd-small"
|
15
|
+
}, le = /* @__PURE__ */ e("p", { class: "mn-b-thin t-transp uppercase p-small t-medium" }, "Comment", -1), be = {
|
9
16
|
__name: "Orders",
|
10
|
-
setup(
|
11
|
-
const
|
12
|
-
|
13
|
-
const o =
|
14
|
-
return
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
17
|
+
setup(ie) {
|
18
|
+
const u = O();
|
19
|
+
q();
|
20
|
+
const o = y(!1), c = y(u.query.tab ? u.query.tab : "posts");
|
21
|
+
return x(async () => {
|
22
|
+
}), (p, d) => {
|
23
|
+
const g = k("router-link");
|
24
|
+
return n(), l("div", F, [
|
25
|
+
e("div", M, [
|
26
|
+
e("header", P, [
|
27
|
+
R,
|
28
|
+
i(g, {
|
29
|
+
to: {
|
30
|
+
name: "AdminOrderAdd"
|
31
|
+
},
|
32
|
+
class: "radius-100 i-big hover-scale-1 transition-ease cursor-pointer t-white bg-second flex-center flex"
|
33
|
+
}, {
|
34
|
+
default: m(() => [
|
35
|
+
h(" + ")
|
36
|
+
]),
|
37
|
+
_: 1
|
38
|
+
})
|
39
|
+
]),
|
40
|
+
i(A, {
|
41
|
+
selected: c.value,
|
42
|
+
"onUpdate:selected": d[0] || (d[0] = (r) => c.value = r),
|
43
|
+
tabs: [
|
44
|
+
{ name: "All", value: "all" },
|
45
|
+
{ name: "Created", value: "stock-in" },
|
46
|
+
{ name: "Confirmed", value: "stock-out" },
|
47
|
+
{ name: "Preparing", value: "stock-out" },
|
48
|
+
{ name: "Prepared", value: "stock-out" },
|
49
|
+
{ name: "In delivery", value: "stock-out" },
|
50
|
+
{ name: "Delivered", value: "stock-out" },
|
51
|
+
{ name: "Closed", value: "stock-out" }
|
52
|
+
],
|
53
|
+
class: "w-100 t-nowrap o-scroll h5"
|
54
|
+
}, null, 8, ["selected"])
|
27
55
|
]),
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
}
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
}
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
56
|
+
i(z, {
|
57
|
+
search: !0,
|
58
|
+
states: {
|
59
|
+
empty: {
|
60
|
+
title: "No Orders Found",
|
61
|
+
description: "Currently, there are no orders."
|
62
|
+
}
|
63
|
+
},
|
64
|
+
store: {
|
65
|
+
read: (r) => T.read(r)
|
66
|
+
},
|
67
|
+
options: {
|
68
|
+
limit: 15,
|
69
|
+
owner: w(u).params._id,
|
70
|
+
...c.value !== "all" && { type: c.value }
|
71
|
+
},
|
72
|
+
class: "gap-thin cols-3"
|
73
|
+
}, {
|
74
|
+
default: m(({
|
75
|
+
items: r
|
76
|
+
}) => [
|
77
|
+
(n(!0), l(f, null, v(r, (t) => (n(), C(g, {
|
78
|
+
to: {
|
79
|
+
name: "Order Edit",
|
80
|
+
params: {
|
81
|
+
order: t._id
|
82
|
+
}
|
83
|
+
},
|
84
|
+
class: "bg-grey pos-relative pd-medium radius-big"
|
85
|
+
}, {
|
86
|
+
default: m(() => [
|
87
|
+
i(E, {
|
88
|
+
entity: t,
|
89
|
+
entityType: "order",
|
90
|
+
user: B.user,
|
91
|
+
owner: t.creator,
|
92
|
+
creator: t.creator,
|
93
|
+
date: t.createdAt,
|
94
|
+
class: "mn-b-small"
|
95
|
+
}, null, 8, ["entity", "user", "owner", "creator", "date"]),
|
96
|
+
e("div", U, [
|
97
|
+
e("div", H, [
|
98
|
+
e("h3", I, s(t.customer.target.slice(0, 8)), 1),
|
99
|
+
e("p", L, s(t.delivery.address), 1)
|
100
|
+
]),
|
101
|
+
e("div", S, [
|
102
|
+
e("h3", j, s(p.returnCurrency()) + s(V.getTotal(t.positions)), 1),
|
103
|
+
e("p", null, "#" + s(t._id.slice(0, 4) + "..." + t._id.slice(-4)), 1)
|
104
|
+
])
|
105
|
+
]),
|
106
|
+
e("div", G, [
|
107
|
+
(n(!0), l(f, null, v(t.positions.slice(0, 2), (a, _) => (n(), l("div", {
|
108
|
+
key: _,
|
109
|
+
class: "w-100 flex"
|
110
|
+
}, [
|
111
|
+
e("p", J, s(a.name), 1),
|
112
|
+
e("p", K, [
|
113
|
+
h(s(a.quantity) + " " + s(a.type) + " x " + s(a.price) + " ", 1),
|
114
|
+
e("span", Q, s(p.returnCurrency()), 1)
|
115
|
+
])
|
116
|
+
]))), 128)),
|
117
|
+
i($, { name: "fade" }, {
|
118
|
+
default: m(() => [
|
119
|
+
o.value && t.positions.length > 2 ? (n(), l("div", W, [
|
120
|
+
(n(!0), l(f, null, v(t.positions.slice(2), (a, _) => (n(), l("div", {
|
121
|
+
key: _ + 2,
|
122
|
+
class: "w-100 flex"
|
123
|
+
}, [
|
124
|
+
e("p", X, s(a.name), 1),
|
125
|
+
e("p", Y, [
|
126
|
+
h(s(a.quantity) + " " + s(a.type) + " x " + s(a.price) + " ", 1),
|
127
|
+
e("span", Z, s(p.returnCurrency()), 1)
|
128
|
+
])
|
129
|
+
]))), 128))
|
130
|
+
])) : b("", !0)
|
131
|
+
]),
|
132
|
+
_: 2
|
133
|
+
}, 1024),
|
134
|
+
t.positions.length > 2 ? (n(), l("button", {
|
135
|
+
key: 0,
|
136
|
+
onClick: d[1] || (d[1] = N((a) => o.value = !o.value, ["prevent"])),
|
137
|
+
class: "radius-big bg-grey-transp-50 pd-nano w-100 flex-center flex"
|
138
|
+
}, s(o.value ? "Hide" : `+${t.positions.length - 2} more`), 1)) : b("", !0)
|
139
|
+
]),
|
140
|
+
e("div", ee, [
|
141
|
+
i(D, {
|
142
|
+
class: "i-semi t-transp",
|
143
|
+
fill: "rgb(var(--black)"
|
144
|
+
}),
|
145
|
+
te,
|
146
|
+
e("span", se, s(t.status), 1),
|
147
|
+
ae
|
148
|
+
]),
|
149
|
+
t.comment ? (n(), l("div", ne, [
|
150
|
+
le,
|
151
|
+
e("p", null, s(t.comment), 1)
|
152
|
+
])) : b("", !0)
|
153
|
+
]),
|
154
|
+
_: 2
|
155
|
+
}, 1032, ["to"]))), 256))
|
156
|
+
]),
|
157
|
+
_: 1
|
158
|
+
}, 8, ["states", "store", "options"])
|
159
|
+
]);
|
75
160
|
};
|
76
161
|
}
|
77
162
|
};
|
78
163
|
export {
|
79
|
-
|
164
|
+
be as default
|
80
165
|
};
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),o=require("../../../../components/Block/Block.vue.cjs"),a=require("../../../../components/Field/Field.vue2.cjs"),n=require("../../../../components/FieldPhone/FieldPhone2.vue.cjs"),s=require("../../../../components/Select/Select.vue.cjs"),u={class:"flex-nowrap flex"},d={__name:"FormClientDetails",props:{order:Object},setup(r){return(i,e)=>(l.openBlock(),l.createBlock(o.default,{title:"Personal Data",class:"mn-b-thin"},{default:l.withCtx(()=>[l.createVNode(a.default,{field:r.order.customer.name,"onUpdate:field":e[0]||(e[0]=t=>r.order.customer.name=t),label:"Name*",placeholder:"Enter your name",class:"bg-white pd-medium radius-small mn-b-thin"},null,8,["field"]),l.createElementVNode("div",u,[l.createVNode(s.default,{options:[{name:"Phone",value:"phone"},{name:"Telegram",value:"telegram"},{name:"WhatsApp",value:"whatsapp"},{name:"Line",value:"line"}],"onUpdate:select":e[1]||(e[1]=t=>r.order.customer.messenger.type=t.value),placeholder:"Messenger",size:"small",class:"bg-white pd-medium radius-small mn-r-small"}),l.createVNode(n.default,{modelValue:r.order.customer.phone,"onUpdate:modelValue":e[2]||(e[2]=t=>r.order.customer.phone=t),onCountry:e[3]||(e[3]=t=>{r.order.customer.number=t}),inputOptions:{placeholder:"Enter contact phone number",type:"tel"},defaultCountry:"TH",validCharactersOnly:!0,dropdownOptions:{showDialCodeInSelection:!0,showFlags:!0,showDialCodeInList:!0},mode:"national",class:"bg-white pd-small radius-small mn-b-thin"},null,8,["modelValue"])])]),_:1}))}};exports.default=d;
|
package/dist/prometheus-framework/src/modules/orders/components/sections/FormClientDetails.vue.js
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
import { openBlock as r, createBlock as n, withCtx as a, createVNode as o, createElementVNode as m } from "vue";
|
2
|
+
import s from "../../../../components/Block/Block.vue.js";
|
3
|
+
import d from "../../../../components/Field/Field.vue2.js";
|
4
|
+
import i from "../../../../components/FieldPhone/FieldPhone2.vue.js";
|
5
|
+
import u from "../../../../components/Select/Select.vue.js";
|
6
|
+
const p = { class: "flex-nowrap flex" }, v = {
|
7
|
+
__name: "FormClientDetails",
|
8
|
+
props: {
|
9
|
+
order: Object
|
10
|
+
},
|
11
|
+
setup(t) {
|
12
|
+
return (c, e) => (r(), n(s, {
|
13
|
+
title: "Personal Data",
|
14
|
+
class: "mn-b-thin"
|
15
|
+
}, {
|
16
|
+
default: a(() => [
|
17
|
+
o(d, {
|
18
|
+
field: t.order.customer.name,
|
19
|
+
"onUpdate:field": e[0] || (e[0] = (l) => t.order.customer.name = l),
|
20
|
+
label: "Name*",
|
21
|
+
placeholder: "Enter your name",
|
22
|
+
class: "bg-white pd-medium radius-small mn-b-thin"
|
23
|
+
}, null, 8, ["field"]),
|
24
|
+
m("div", p, [
|
25
|
+
o(u, {
|
26
|
+
options: [
|
27
|
+
{ name: "Phone", value: "phone" },
|
28
|
+
{ name: "Telegram", value: "telegram" },
|
29
|
+
{ name: "WhatsApp", value: "whatsapp" },
|
30
|
+
{ name: "Line", value: "line" }
|
31
|
+
],
|
32
|
+
"onUpdate:select": e[1] || (e[1] = (l) => t.order.customer.messenger.type = l.value),
|
33
|
+
placeholder: "Messenger",
|
34
|
+
size: "small",
|
35
|
+
class: "bg-white pd-medium radius-small mn-r-small"
|
36
|
+
}),
|
37
|
+
o(i, {
|
38
|
+
modelValue: t.order.customer.phone,
|
39
|
+
"onUpdate:modelValue": e[2] || (e[2] = (l) => t.order.customer.phone = l),
|
40
|
+
onCountry: e[3] || (e[3] = (l) => {
|
41
|
+
t.order.customer.number = l;
|
42
|
+
}),
|
43
|
+
inputOptions: {
|
44
|
+
placeholder: "Enter contact phone number",
|
45
|
+
type: "tel"
|
46
|
+
},
|
47
|
+
defaultCountry: "TH",
|
48
|
+
validCharactersOnly: !0,
|
49
|
+
dropdownOptions: {
|
50
|
+
showDialCodeInSelection: !0,
|
51
|
+
showFlags: !0,
|
52
|
+
showDialCodeInList: !0
|
53
|
+
},
|
54
|
+
mode: "national",
|
55
|
+
class: "bg-white pd-small radius-small mn-b-thin"
|
56
|
+
}, null, 8, ["modelValue"])
|
57
|
+
])
|
58
|
+
]),
|
59
|
+
_: 1
|
60
|
+
}));
|
61
|
+
}
|
62
|
+
};
|
63
|
+
export {
|
64
|
+
v as default
|
65
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),t=require("../../../globals/store/globals.cjs"),s=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Address/Address.vue2.cjs"),u=require("../../../../components/LocationMarker/LocationMarker.vue2.cjs"),a=require("../../../../components/Radio/Radio.vue.cjs"),m=require("../../../../components/Field/Field.vue2.cjs"),y={class:"mn-b-small flex-nowrap flex"},c={__name:"FormDelivery",props:{order:Object},setup(e){const i=e;return l.onMounted(()=>{t.state.position&&(i.order.delivery.address=t.state.position.address),t.state.position&&(i.order.delivery.location=t.state.position.location)}),(o,d)=>(l.openBlock(),l.createBlock(s.default,{title:"Delivery",class:"mn-b-thin",tooltip:"Delivery by mail takes 3-5 days."},{default:l.withCtx(()=>[l.createElementVNode("div",y,[l.createVNode(a.default,{radio:e.order.delivery.type,"onUpdate:radio":d[0]||(d[0]=r=>e.order.delivery.type=r),label:"Courier",value:"courier",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"]),l.createVNode(a.default,{radio:e.order.delivery.type,"onUpdate:radio":d[1]||(d[1]=r=>e.order.delivery.type=r),label:"Post",value:"Post",class:"bg-white pd-medium radius-small w-100 mn-r-small"},null,8,["radio"])]),l.createVNode(n.default,{label:"Address",apiKey:o.GOOGLE_MAPS_API_KEY,address:e.order.delivery.address,location:e.order.delivery.location,placeholder:"Enter your address",class:"bg-white radius-tl-medium radius-tr-medium t-black br-grey br-solid br-2px pd-medium","onUpdate:location":d[2]||(d[2]=r=>{e.order.delivery.location=r}),"onUpdate:address":d[3]||(d[3]=r=>{e.order.delivery.address=r})},null,8,["apiKey","address","location"]),l.createVNode(u.default,{apiKey:o.GOOGLE_MAPS_API_KEY,address:e.order.delivery.address,location:e.order.delivery.location,class:"mn-b-thin radius-bl-medium radius-br-medium h-15r o-hidden","onUpdate:location":d[4]||(d[4]=r=>{e.order.delivery.location=r}),"onUpdate:address":d[5]||(d[5]=r=>{e.order.delivery.address=r})},null,8,["apiKey","address","location"]),l.createVNode(m.default,{field:e.order.comment,"onUpdate:field":d[6]||(d[6]=r=>e.order.comment=r),placeholder:"Comments regarding the address (apartment unit, floor level, building section)",type:"textarea",class:"bg-white pd-medium radius-small"},null,8,["field"])]),_:1},8,["tooltip"]))}};exports.default=c;
|
@@ -0,0 +1,79 @@
|
|
1
|
+
import { onMounted as s, openBlock as n, createBlock as m, withCtx as u, createElementVNode as y, createVNode as i } from "vue";
|
2
|
+
import { state as o } from "../../../globals/store/globals.js";
|
3
|
+
import v from "../../../../components/Block/Block.vue.js";
|
4
|
+
import f from "../../../../components/Address/Address.vue2.js";
|
5
|
+
import b from "../../../../components/LocationMarker/LocationMarker.vue2.js";
|
6
|
+
import a from "../../../../components/Radio/Radio.vue.js";
|
7
|
+
import p from "../../../../components/Field/Field.vue2.js";
|
8
|
+
const c = { class: "mn-b-small flex-nowrap flex" }, k = {
|
9
|
+
__name: "FormDelivery",
|
10
|
+
props: {
|
11
|
+
order: Object
|
12
|
+
},
|
13
|
+
setup(e) {
|
14
|
+
const l = e;
|
15
|
+
return s(() => {
|
16
|
+
o.position && (l.order.delivery.address = o.position.address), o.position && (l.order.delivery.location = o.position.location);
|
17
|
+
}), (t, r) => (n(), m(v, {
|
18
|
+
title: "Delivery",
|
19
|
+
class: "mn-b-thin",
|
20
|
+
tooltip: "Delivery by mail takes 3-5 days."
|
21
|
+
}, {
|
22
|
+
default: u(() => [
|
23
|
+
y("div", c, [
|
24
|
+
i(a, {
|
25
|
+
radio: e.order.delivery.type,
|
26
|
+
"onUpdate:radio": r[0] || (r[0] = (d) => e.order.delivery.type = d),
|
27
|
+
label: "Courier",
|
28
|
+
value: "courier",
|
29
|
+
class: "bg-white pd-medium radius-small w-100 mn-r-small"
|
30
|
+
}, null, 8, ["radio"]),
|
31
|
+
i(a, {
|
32
|
+
radio: e.order.delivery.type,
|
33
|
+
"onUpdate:radio": r[1] || (r[1] = (d) => e.order.delivery.type = d),
|
34
|
+
label: "Post",
|
35
|
+
value: "Post",
|
36
|
+
class: "bg-white pd-medium radius-small w-100 mn-r-small"
|
37
|
+
}, null, 8, ["radio"])
|
38
|
+
]),
|
39
|
+
i(f, {
|
40
|
+
label: "Address",
|
41
|
+
apiKey: t.GOOGLE_MAPS_API_KEY,
|
42
|
+
address: e.order.delivery.address,
|
43
|
+
location: e.order.delivery.location,
|
44
|
+
placeholder: "Enter your address",
|
45
|
+
class: "bg-white radius-tl-medium radius-tr-medium t-black br-grey br-solid br-2px pd-medium",
|
46
|
+
"onUpdate:location": r[2] || (r[2] = (d) => {
|
47
|
+
e.order.delivery.location = d;
|
48
|
+
}),
|
49
|
+
"onUpdate:address": r[3] || (r[3] = (d) => {
|
50
|
+
e.order.delivery.address = d;
|
51
|
+
})
|
52
|
+
}, null, 8, ["apiKey", "address", "location"]),
|
53
|
+
i(b, {
|
54
|
+
apiKey: t.GOOGLE_MAPS_API_KEY,
|
55
|
+
address: e.order.delivery.address,
|
56
|
+
location: e.order.delivery.location,
|
57
|
+
class: "mn-b-thin radius-bl-medium radius-br-medium h-15r o-hidden",
|
58
|
+
"onUpdate:location": r[4] || (r[4] = (d) => {
|
59
|
+
e.order.delivery.location = d;
|
60
|
+
}),
|
61
|
+
"onUpdate:address": r[5] || (r[5] = (d) => {
|
62
|
+
e.order.delivery.address = d;
|
63
|
+
})
|
64
|
+
}, null, 8, ["apiKey", "address", "location"]),
|
65
|
+
i(p, {
|
66
|
+
field: e.order.comment,
|
67
|
+
"onUpdate:field": r[6] || (r[6] = (d) => e.order.comment = d),
|
68
|
+
placeholder: "Comments regarding the address (apartment unit, floor level, building section)",
|
69
|
+
type: "textarea",
|
70
|
+
class: "bg-white pd-medium radius-small"
|
71
|
+
}, null, 8, ["field"])
|
72
|
+
]),
|
73
|
+
_: 1
|
74
|
+
}, 8, ["tooltip"]));
|
75
|
+
}
|
76
|
+
};
|
77
|
+
export {
|
78
|
+
k as default
|
79
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../../../components/Block/Block.vue.cjs"),n=require("../../../../components/Select/Select.vue.cjs"),o={class:"mn-b-small flex-nowrap flex"},s={__name:"FormPayment",props:{order:Object},setup(t){return(c,l)=>(e.openBlock(),e.createBlock(r.default,{title:"Payment"},{default:e.withCtx(()=>[e.createElementVNode("div",o,[e.createVNode(n.default,{select:t.order.payment.type,"onUpdate:select":l[0]||(l[0]=a=>t.order.payment.type=a),property:"value",options:[{name:"Cash On Delivery",value:"cash"},{name:"Bank Transfer",value:"bank"},{name:"Crypto",value:"crypto"}],placeholder:"Select type of payment",size:"small",class:"bg-white pd-medium radius-small w-100"},null,8,["select"])])]),_:1}))}};exports.default=s;
|