@feedmepos/mf-order-setting 0.0.95 → 0.0.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DisplaySystemView-rCw3DE0u.js → DisplaySystemView-BH8SkCOF.js} +4 -4
- package/dist/FoodCourtInvitationsView-3cA0Z-5m.js +383 -0
- package/dist/FoodCourtOrderSettingsView-DysrLZJD.js +294 -0
- package/dist/FoodCourtOrdersView-CbZqHIXO.js +544 -0
- package/dist/FoodCourtStallsView-CTZzPUQ6.js +635 -0
- package/dist/FoodCourtStatusView-C71y7ghx.js +113 -0
- package/dist/{KioskDevicesView-B4dgvMq_.js → KioskDevicesView-BJpbuSzp.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-B-Oi8ZLq.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CQFpwn28.js} +7 -6
- package/dist/{KioskSettingView-DXx6wQQQ.js → KioskSettingView-CJxhMf7N.js} +3 -3
- package/dist/{KioskView-BmSHCl13.js → KioskView-BZsdRID1.js} +6 -6
- package/dist/{OrderSettingsView-9NOSAxLf.js → OrderSettingsView-gnyXaJjf.js} +10631 -10601
- package/dist/{app-y20uA-tu.js → app-CeEFBB-w.js} +4484 -3672
- package/dist/app.js +1 -1
- package/dist/dayjs.min-zBHHlxAP.js +285 -0
- package/dist/{featureFlag-GHmH1G2d.js → featureFlag-BTY_R78k.js} +1 -1
- package/dist/food-court-member-piX3gesl.js +212 -0
- package/dist/frontend/mf-order/src/api/food-court/index.d.ts +269 -0
- package/dist/frontend/mf-order/src/api/food-court/invitation.d.ts +55 -0
- package/dist/frontend/mf-order/src/app.d.ts +676 -0
- package/dist/frontend/mf-order/src/main.d.ts +676 -0
- package/dist/frontend/mf-order/src/stores/business/index.d.ts +3 -3
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +6 -0
- package/dist/frontend/mf-order/src/utils/constants/route.d.ts +4 -0
- package/dist/frontend/mf-order/src/views/food-court/FoodCourtInvitationsView.vue.d.ts +2 -0
- package/dist/frontend/mf-order/src/views/food-court/FoodCourtOrdersView.vue.d.ts +2 -0
- package/dist/frontend/mf-order/src/views/food-court/FoodCourtStallsView.vue.d.ts +2 -0
- package/dist/frontend/mf-order/src/views/food-court/FoodCourtStatusView.vue.d.ts +2 -0
- package/dist/frontend/mf-order/src/views/food-court/food-court-member.d.ts +150 -0
- package/dist/frontend/mf-order/src/views/food-court/food-court-order.d.ts +66 -0
- package/dist/frontend/mf-order/src/views/food-court/invitations/JoinFoodCourtCard.vue.d.ts +13 -0
- package/dist/frontend/mf-order/src/views/food-court/invitations/MembershipRowActions.vue.d.ts +11 -0
- package/dist/frontend/mf-order/src/views/food-court/orders/FoodCourtOrderSheet.vue.d.ts +16 -0
- package/dist/frontend/mf-order/src/views/food-court/stalls/EditStallSheet.vue.d.ts +15 -0
- package/dist/frontend/mf-order/src/views/food-court/stalls/GenerateJoinCodeSheet.vue.d.ts +21 -0
- package/dist/frontend/mf-order/src/views/food-court/stalls/StallAssignmentFields.vue.d.ts +16 -0
- package/dist/frontend/mf-order/src/views/food-court/stalls/StallRowActions.vue.d.ts +11 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-CmdP_QXF.js → index-601eG3_R.js} +1 -1
- package/dist/index-BeBZTUcq.js +122 -0
- package/dist/index-BtudnkMi.js +1065 -0
- package/dist/{index-BlG6mIU4.js → index-CGiWgTn1.js} +38 -37
- package/dist/{index-wMygvJpP.js → index-D5nv3ncu.js} +2 -2
- package/dist/index-DLDihONy.js +25142 -0
- package/dist/order.dto-JM_fmWnQ.js +14842 -0
- package/dist/package/entity/food-court/food-court.do.d.ts +1 -1
- package/dist/package/entity/food-court/food-court.dto.d.ts +7 -7
- package/dist/package/entity/food-court/order-v2.dto.d.ts +4 -4
- package/dist/package/entity/order-platform/order-platform.dto.d.ts +190 -92
- package/dist/package/entity/order-setting/order-setting.do.d.ts +10 -0
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +20 -0
- package/dist/package/entity/order-setting/queue/queue.do.d.ts +22 -0
- package/dist/package/entity/order-setting/queue/queue.dto.d.ts +7 -0
- package/dist/package/entity/queue/queue.do.d.ts +1 -0
- package/dist/package/entity/queue/queue.dto.d.ts +8 -8
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +20 -0
- package/dist/search-BAPEUu1R.js +15 -0
- package/dist/useFoodCourtContext-2p5sJMcB.js +16 -0
- package/package.json +3 -3
- package/src/api/food-court/index.ts +357 -0
- package/src/api/food-court/invitation.ts +81 -0
- package/src/locales/en-US.json +171 -2
- package/src/locales/ja-JP.json +171 -2
- package/src/locales/th-TH.json +171 -2
- package/src/locales/zh-CN.json +171 -2
- package/src/router/routes.ts +44 -0
- package/src/utils/constants/route.ts +8 -0
- package/src/views/food-court/FoodCourtInvitationsView.vue +187 -0
- package/src/views/food-court/FoodCourtOrdersView.vue +263 -0
- package/src/views/food-court/FoodCourtStallsView.vue +369 -0
- package/src/views/food-court/FoodCourtStatusView.vue +111 -0
- package/src/views/food-court/food-court-member.spec.ts +339 -0
- package/src/views/food-court/food-court-member.ts +397 -0
- package/src/views/food-court/food-court-order.spec.ts +137 -0
- package/src/views/food-court/food-court-order.ts +206 -0
- package/src/views/food-court/invitations/JoinFoodCourtCard.vue +201 -0
- package/src/views/food-court/invitations/MembershipRowActions.vue +19 -0
- package/src/views/food-court/orders/FoodCourtOrderSheet.vue +226 -0
- package/src/views/food-court/stalls/EditStallSheet.vue +91 -0
- package/src/views/food-court/stalls/GenerateJoinCodeSheet.vue +281 -0
- package/src/views/food-court/stalls/StallAssignmentFields.vue +36 -0
- package/src/views/food-court/stalls/StallRowActions.vue +31 -0
- package/src/views/order-settings/OrderSettingsView.vue +2 -4
- package/src/views/order-settings/dine-in/DineInSetting.vue +1 -4
- package/src/views/order-settings/queue/QueueSetting.vue +27 -0
- package/src/views/order-settings/reservation/ReservationSetting.vue +8 -0
- package/dist/FoodCourtOrderSettingsView-DUQXCKzB.js +0 -323
- package/dist/index-CUI1lL9F.js +0 -1347
- package/dist/order.dto-CyHtvyly.js +0 -38829
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { defineComponent as B, ref as c, watch as N, resolveComponent as u, openBlock as l, createElementBlock as d, Fragment as T, createElementVNode as i, createVNode as p, unref as t, toDisplayString as m, createBlock as h, withCtx as P, createCommentVNode as F } from "vue";
|
|
2
|
+
import { useI18n as H } from "@feedmepos/mf-common";
|
|
3
|
+
import { u as z } from "./snackbar-DZQ0_reQ.js";
|
|
4
|
+
import { u as D } from "./useFoodCourtContext-2p5sJMcB.js";
|
|
5
|
+
import { c as b } from "./index-BeBZTUcq.js";
|
|
6
|
+
import { e as x } from "./food-court-member-piX3gesl.js";
|
|
7
|
+
const K = { class: "py-[1.5rem]" }, L = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "px-[1.5rem] fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
10
|
+
}, M = {
|
|
11
|
+
key: 2,
|
|
12
|
+
class: "p-[1.5rem] m-5 flex flex-col gap-3 items-start"
|
|
13
|
+
}, R = { class: "fm-typo-en-body-md-400" }, U = {
|
|
14
|
+
key: 3,
|
|
15
|
+
class: "px-[1.5rem] flex flex-col gap-4 max-w-3xl"
|
|
16
|
+
}, W = { class: "fm-typo-en-title-sm-600" }, j = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
19
|
+
}, q = { class: "flex items-center gap-2 p-3 rounded-lg bg-fm-color-system-warning-100 fm-typo-en-body-md-400 text-fm-color-typo-warning" }, $ = /* @__PURE__ */ B({
|
|
20
|
+
__name: "FoodCourtStatusView",
|
|
21
|
+
setup(G) {
|
|
22
|
+
const { t: e } = H(), { showSuccess: w, showError: y } = z(), o = D(), s = c(), v = c(!1), _ = c(!1), f = c(!1), C = c(0);
|
|
23
|
+
async function g() {
|
|
24
|
+
const r = o.value;
|
|
25
|
+
if (s.value = void 0, _.value = !1, !!r) {
|
|
26
|
+
v.value = !0;
|
|
27
|
+
try {
|
|
28
|
+
const a = await b.getStatus(r);
|
|
29
|
+
r === o.value && (s.value = a);
|
|
30
|
+
} catch (a) {
|
|
31
|
+
if (r !== o.value) return;
|
|
32
|
+
_.value = !0, y(x(a));
|
|
33
|
+
} finally {
|
|
34
|
+
r === o.value && (v.value = !1);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
N(o, g, { immediate: !0 });
|
|
39
|
+
async function I(r) {
|
|
40
|
+
const a = o.value;
|
|
41
|
+
if (!(!a || !s.value || f.value)) {
|
|
42
|
+
f.value = !0;
|
|
43
|
+
try {
|
|
44
|
+
const n = await b.updateStatus(a, r ? "ACTIVE" : "INACTIVE");
|
|
45
|
+
if (a !== o.value) return;
|
|
46
|
+
s.value = n, w(
|
|
47
|
+
e(
|
|
48
|
+
n.status === "ACTIVE" ? "order.foodCourt.status.activated" : "order.foodCourt.status.deactivated"
|
|
49
|
+
)
|
|
50
|
+
);
|
|
51
|
+
} catch (n) {
|
|
52
|
+
if (a !== o.value) return;
|
|
53
|
+
y(x(n)), C.value++;
|
|
54
|
+
} finally {
|
|
55
|
+
f.value = !1;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return (r, a) => {
|
|
60
|
+
const n = u("FmPageHead"), S = u("FmCircularProgress"), k = u("FmButton"), V = u("FmSwitch"), E = u("FmCard"), A = u("FmIcon");
|
|
61
|
+
return l(), d(T, null, [
|
|
62
|
+
i("div", K, [
|
|
63
|
+
p(n, {
|
|
64
|
+
title: t(e)("order.foodCourt.status.title"),
|
|
65
|
+
"line-height": 1.7
|
|
66
|
+
}, null, 8, ["title"])
|
|
67
|
+
]),
|
|
68
|
+
t(o) ? v.value ? (l(), h(S, {
|
|
69
|
+
key: 1,
|
|
70
|
+
size: "xxl"
|
|
71
|
+
})) : _.value ? (l(), d("div", M, [
|
|
72
|
+
i("span", R, m(t(e)("order.foodCourt.status.loadFailed")), 1),
|
|
73
|
+
p(k, {
|
|
74
|
+
variant: "secondary",
|
|
75
|
+
label: t(e)("order.foodCourt.retry"),
|
|
76
|
+
onClick: g
|
|
77
|
+
}, null, 8, ["label"])
|
|
78
|
+
])) : s.value ? (l(), d("div", U, [
|
|
79
|
+
i("div", W, m(t(e)("order.foodCourt.status.section")), 1),
|
|
80
|
+
p(E, {
|
|
81
|
+
variant: "outlined",
|
|
82
|
+
class: "p-4 flex flex-col gap-3"
|
|
83
|
+
}, {
|
|
84
|
+
default: P(() => [
|
|
85
|
+
(l(), h(V, {
|
|
86
|
+
key: C.value,
|
|
87
|
+
"model-value": s.value.status === "ACTIVE",
|
|
88
|
+
label: t(e)("order.foodCourt.status.operation"),
|
|
89
|
+
sublabel: t(e)("order.foodCourt.status.operationSublabel"),
|
|
90
|
+
"label-placement": "right",
|
|
91
|
+
disabled: f.value,
|
|
92
|
+
"onUpdate:modelValue": I
|
|
93
|
+
}, null, 8, ["model-value", "label", "sublabel", "disabled"])),
|
|
94
|
+
s.value.status === "INACTIVE" && !s.value.payoutReady ? (l(), d("span", j, m(t(e)("order.foodCourt.status.payoutHint")), 1)) : F("", !0)
|
|
95
|
+
]),
|
|
96
|
+
_: 1
|
|
97
|
+
}),
|
|
98
|
+
i("div", q, [
|
|
99
|
+
p(A, {
|
|
100
|
+
name: "warning",
|
|
101
|
+
size: "sm",
|
|
102
|
+
color: "typo-warning"
|
|
103
|
+
}),
|
|
104
|
+
i("span", null, m(t(e)("order.foodCourt.status.offWarning")), 1)
|
|
105
|
+
])
|
|
106
|
+
])) : F("", !0) : (l(), d("div", L, m(t(e)("order.foodCourt.noFoodCourtSelected")), 1))
|
|
107
|
+
], 64);
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
export {
|
|
112
|
+
$ as default
|
|
113
|
+
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ref as C, defineComponent as Q, resolveComponent as x, openBlock as l, createElementBlock as m, createElementVNode as a, toDisplayString as d, unref as s, createVNode as v, computed as _, createBlock as M, withCtx as K, createCommentVNode as D, Fragment as q, renderList as G, watch as he, normalizeClass as $e, createTextVNode as te, renderSlot as Me } from "vue";
|
|
2
2
|
import { useI18n as ne, useCoreStore as Ve } from "@feedmepos/mf-common";
|
|
3
3
|
import { defineStore as ge } from "pinia";
|
|
4
|
-
import { r as J, g as ue, a as Be, p as Re } from "./index-
|
|
5
|
-
import "./order.dto-
|
|
4
|
+
import { r as J, g as ue, a as Be, p as Re } from "./index-601eG3_R.js";
|
|
5
|
+
import "./order.dto-JM_fmWnQ.js";
|
|
6
6
|
import { useDialog as Oe, useSnackbar as Le } from "@feedmepos/ui-library";
|
|
7
|
-
import { d as ce
|
|
8
|
-
import { c as Ne, g as Ke, a as xe } from "./app-
|
|
7
|
+
import { d as ce } from "./dayjs.min-zBHHlxAP.js";
|
|
8
|
+
import { c as Ne, g as Ke, a as xe } from "./app-CeEFBB-w.js";
|
|
9
|
+
import { s as be } from "./index-BtudnkMi.js";
|
|
9
10
|
async function Ue() {
|
|
10
11
|
const t = await J().get("/kiosk/otp");
|
|
11
12
|
return ue(t);
|
|
@@ -812,7 +813,7 @@ const ct = ge("payment", () => {
|
|
|
812
813
|
}, dn = {
|
|
813
814
|
key: 1,
|
|
814
815
|
class: "text-center py-8 text-fm-color-typo-tertiary fm-typo-en-body-md-400 col-span-2"
|
|
815
|
-
},
|
|
816
|
+
}, _n = /* @__PURE__ */ Q({
|
|
816
817
|
__name: "KioskDevicesView",
|
|
817
818
|
props: {
|
|
818
819
|
devices: {},
|
|
@@ -930,7 +931,7 @@ const ct = ge("payment", () => {
|
|
|
930
931
|
}
|
|
931
932
|
});
|
|
932
933
|
export {
|
|
933
|
-
|
|
934
|
+
_n as _,
|
|
934
935
|
ct as a,
|
|
935
936
|
Qe as u
|
|
936
937
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as ve, computed as C, ref as Y, onMounted as Ue, resolveComponent as w, openBlock as V, createBlock as oe, withCtx as R, createVNode as i, unref as l, createElementVNode as s, withDirectives as F, vShow as N, toDisplayString as f, watch as Ee, createElementBlock as U, createCommentVNode as B, Fragment as te, renderList as ne, normalizeClass as Fe } from "vue";
|
|
2
|
-
import { e as me, b as be, s as ge, d as Ne, r as pe, f as ce, h as Oe } from "./app-
|
|
3
|
-
import { b as v, K as Le, c as Me } from "./order.dto-
|
|
4
|
-
import { _ as We, u as De } from "./index-
|
|
2
|
+
import { e as me, b as be, s as ge, d as Ne, r as pe, f as ce, h as Oe } from "./app-CeEFBB-w.js";
|
|
3
|
+
import { b as v, K as Le, c as Me } from "./order.dto-JM_fmWnQ.js";
|
|
4
|
+
import { _ as We, u as De } from "./index-CGiWgTn1.js";
|
|
5
5
|
import { useI18n as he, FeedMeAuth as Ie, useCoreStore as $e } from "@feedmepos/mf-common";
|
|
6
6
|
import { u as Ye } from "./index-Cmb4sEqq.js";
|
|
7
7
|
import { useSnackbar as Ge } from "@feedmepos/ui-library";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as Q, openBlock as C, createElementBlock as z, createElementVNode as f, toDisplayString as A, unref as i, ref as v, defineAsyncComponent as ce, computed as T, onMounted as re, watch as oe, resolveComponent as I, createVNode as U, withCtx as se, createBlock as L, createCommentVNode as E } from "vue";
|
|
2
|
-
import { u as pe, a as me, _ as de } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as pe, a as me, _ as de } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-CQFpwn28.js";
|
|
3
3
|
import { useDialog as ie, useSnackbar as fe } from "@feedmepos/ui-library";
|
|
4
4
|
import { useI18n as J, useCoreStore as ye } from "@feedmepos/mf-common";
|
|
5
|
-
import { S as j } from "./index-
|
|
5
|
+
import { S as j } from "./index-601eG3_R.js";
|
|
6
6
|
import { defineStore as ve } from "pinia";
|
|
7
|
-
import { O as F } from "./index-
|
|
8
|
-
import { F as be, a as he } from "./order.dto-
|
|
9
|
-
import { u as _e } from "./app-
|
|
7
|
+
import { O as F } from "./index-D5nv3ncu.js";
|
|
8
|
+
import { F as be, a as he } from "./order.dto-JM_fmWnQ.js";
|
|
9
|
+
import { u as _e } from "./app-CeEFBB-w.js";
|
|
10
10
|
const Ce = { class: "flex flex-col gap-5 pb-6" }, we = { class: "fm-typo-en-body-md-400 block" }, Pe = { class: "fm-typo-en-title-md-600" }, Ie = /* @__PURE__ */ Q({
|
|
11
11
|
__name: "KioskOtpDialog",
|
|
12
12
|
props: {
|
|
@@ -358,7 +358,7 @@ const He = { class: "py-[1.5rem]" }, Qe = { class: "px-[1.5rem]" }, ze = { class
|
|
|
358
358
|
setup(e) {
|
|
359
359
|
var M, W;
|
|
360
360
|
const { t: a } = J(), { canManageOrderSetting: n } = _e(), u = ce(
|
|
361
|
-
() => import("./KioskSettingView-
|
|
361
|
+
() => import("./KioskSettingView-CJxhMf7N.js")
|
|
362
362
|
), t = v("device"), l = pe(), r = De(), o = me(), p = ie(), { currentRestaurant: m, restaurants: d, changeRestaurant: w } = ye(), b = fe(), y = v(((M = m.value) == null ? void 0 : M._id) ?? void 0), h = v(null), x = v(""), q = v(null), B = T(() => {
|
|
363
363
|
const c = x.value.trim().toLowerCase();
|
|
364
364
|
return d.value.filter(
|