@feedmepos/mf-order-setting 0.0.24 → 0.0.26
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/{KioskDevicesView-DGkvW2mH.js → KioskDevicesView-BiF6v7Zj.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-BGZLd8T_.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-1r_DBAc-.js} +3 -3
- package/dist/{KioskSettingView-DLb5nnCu.js → KioskSettingView-COhGcRtP.js} +1 -1
- package/dist/{KioskView-kZZYSfUh.js → KioskView-C1T-n1MY.js} +38 -28
- package/dist/{OrderSettingsView-Cil4j9G5.js → OrderSettingsView-CI5bdVXr.js} +6297 -6251
- package/dist/{app-D47VRl5B.js → app-BfWp4ow3.js} +38 -26
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-R4180ukF.js → dayjs.min-BHDLv42p.js} +36 -36
- package/dist/frontend/mf-order/src/app.d.ts +12 -0
- package/dist/frontend/mf-order/src/main.d.ts +797 -0
- package/dist/frontend/mf-order/src/stores/iframe/index.d.ts +6 -6
- package/dist/frontend/mf-order/src/stores/kiosk/index.d.ts +8 -260
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +17 -722
- package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +449 -2369
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-DgLlDwJK.js → index-B5kfsi9C.js} +2 -2
- package/dist/package/entity/delivery/delivery.dto.d.ts +11 -6
- package/dist/package/entity/food-court/food-court.dto.d.ts +1 -1
- package/dist/package/entity/food-court/order.dto.d.ts +727 -378
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +6 -6
- package/dist/package/entity/incoming-order/incoming-order.do.d.ts +8 -8
- package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +16 -16
- package/dist/package/entity/index.d.ts +1 -0
- package/dist/package/entity/kiosk/marketing/marketing.dto.d.ts +1337 -656
- package/dist/package/entity/order/order.dto.d.ts +4942 -2401
- package/dist/package/entity/order/order.enum.d.ts +1 -1
- package/dist/package/entity/order/payment/payment.dto.d.ts +2899 -1419
- package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +9 -21
- package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +19 -51
- package/dist/package/entity/order-setting/order-setting.do.d.ts +8 -0
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +16 -0
- package/dist/package/entity/order-setting/v3/v3.do.d.ts +3 -0
- package/dist/package/entity/order-setting/v3/v3.dto.d.ts +3 -0
- package/dist/package/entity/order-setting/v3/v3.enum.d.ts +3 -0
- package/dist/package/entity/payment/payment.dto.d.ts +3 -3
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +19 -11
- package/dist/{queue.do-CNMuossU.js → queue.do-y-ubeoKZ.js} +17139 -16655
- package/package.json +3 -3
- package/src/Entry.vue +3 -3
- package/src/locales/en-US.json +6 -0
- package/src/locales/th-TH.json +257 -0
- package/src/locales/zh-CN.json +6 -0
- package/src/main.ts +9 -1
- package/src/stores/iframe/index.ts +1 -1
- package/src/stores/kiosk/index.ts +1 -1
- package/src/stores/order-setting/index.ts +1 -1
- package/src/stores/order-setting/mapper.ts +12 -2
- package/src/stores/restaurant/index.ts +92 -84
- package/src/views/order-settings/delivery/DeliverySetting.vue +11 -11
- package/src/views/order-settings/delivery/inhouse/InHouseDelivery.vue +39 -35
- package/src/views/order-settings/dine-in/DineInSetting.vue +158 -24
- package/src/views/order-settings/general/GeneralSetting.vue +29 -33
- package/src/views/order-settings/pickup/PickUpSetting.vue +4 -2
- package/src/views/order-settings/pickup/PickUpSettingDialogContent.vue +23 -12
- package/src/views/order-settings/servicecharge/ServiceChargeSetting.vue +20 -8
|
@@ -2,8 +2,8 @@ import { defineComponent as g, ref as D, resolveComponent as f, openBlock as i,
|
|
|
2
2
|
import { useDialog as O, useSnackbar as q } from "@feedmepos/ui-library";
|
|
3
3
|
import { useI18n as I } from "@feedmepos/mf-common";
|
|
4
4
|
import { defineStore as N } from "pinia";
|
|
5
|
-
import { r as w, g as K, D as T } from "./dayjs.min-
|
|
6
|
-
import "./queue.do-
|
|
5
|
+
import { r as w, g as K, D as T } from "./dayjs.min-BHDLv42p.js";
|
|
6
|
+
import "./queue.do-y-ubeoKZ.js";
|
|
7
7
|
const U = /* @__PURE__ */ g({
|
|
8
8
|
__name: "KioskUnbindConfirm",
|
|
9
9
|
props: {
|
|
@@ -76,7 +76,7 @@ const P = {
|
|
|
76
76
|
await k.unbind(o), await n();
|
|
77
77
|
}
|
|
78
78
|
return {
|
|
79
|
-
state: e,
|
|
79
|
+
state: e.value,
|
|
80
80
|
requestOtp: t,
|
|
81
81
|
getDevices: n,
|
|
82
82
|
unbind: l
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as A, resolveComponent as k, openBlock as c, createElementBlock as _, createElementVNode as m, toDisplayString as V, unref as t, Fragment as j, renderList as Q, createVNode as s, computed as C, withDirectives as M, vShow as W, createBlock as q, createCommentVNode as K, ref as N, onMounted as te, withCtx as U, createTextVNode as le } from "vue";
|
|
2
2
|
import { useI18n as R } from "@feedmepos/mf-common";
|
|
3
|
-
import { F as $, c as P } from "./queue.do-
|
|
3
|
+
import { F as $, c as P } from "./queue.do-y-ubeoKZ.js";
|
|
4
4
|
import { _ as ie, u as de } from "./index-DSCb3ndM.js";
|
|
5
5
|
import { useSnackbar as oe } from "@feedmepos/ui-library";
|
|
6
6
|
function se(v, g) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as I, computed as b, openBlock as c, createElementBlock as y, normalizeClass as X, toDisplayString as m, unref as d, createCommentVNode as _, createElementVNode as o, Fragment as Z, renderList as ee, ref as
|
|
2
|
-
import { u as re, _ as le } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as I, computed as b, openBlock as c, createElementBlock as y, normalizeClass as X, toDisplayString as m, unref as d, createCommentVNode as _, createElementVNode as o, Fragment as Z, renderList as ee, ref as x, defineAsyncComponent as te, watch as ae, resolveComponent as k, createVNode as P, withCtx as ne, withDirectives as se, vShow as oe, createBlock as R } from "vue";
|
|
2
|
+
import { u as re, _ as le } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-1r_DBAc-.js";
|
|
3
3
|
import { useI18n as A, useCoreStore as de } from "@feedmepos/mf-common";
|
|
4
|
-
import { F as V, a as ie, b as ce } from "./queue.do-
|
|
4
|
+
import { F as V, a as ie, b as ce } from "./queue.do-y-ubeoKZ.js";
|
|
5
5
|
import { useDialog as ue, useSnackbar as pe, useBreakpoints as me } from "@feedmepos/ui-library";
|
|
6
6
|
import { defineStore as ye } from "pinia";
|
|
7
|
-
import { O as B, c as D } from "./index-
|
|
7
|
+
import { O as B, c as D } from "./index-B5kfsi9C.js";
|
|
8
8
|
const fe = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "fm-typo-en-title-sm-600"
|
|
11
11
|
}, ve = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "my-[0.25rem]"
|
|
14
|
-
}, _e = { class: "flex flex-col gap-1" }, be = { class: "flex flex-col gap-1" }, he = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ge = { class: "fm-typo-en-body-lg-600" }, Pe = { key: 0 },
|
|
14
|
+
}, _e = { class: "flex flex-col gap-1" }, be = { class: "flex flex-col gap-1" }, he = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ge = { class: "fm-typo-en-body-lg-600" }, Pe = { key: 0 }, we = { key: 1 }, Oe = { key: 0 }, ke = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, xe = { class: "fm-typo-en-body-lg-600 block" }, Se = { key: 1 }, Te = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ce = { class: "fm-typo-en-body-lg-600 block" }, Ie = { key: 2 }, Ae = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ke = { class: "fm-typo-en-body-lg-600 block" }, Ue = { key: 3 }, $e = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Fe = { class: "fm-typo-en-body-lg-600 block" }, qe = { key: 0 }, E = /* @__PURE__ */ I({
|
|
15
15
|
__name: "KioskSummary",
|
|
16
16
|
props: {
|
|
17
17
|
restaurantId: {},
|
|
@@ -57,16 +57,16 @@ const fe = {
|
|
|
57
57
|
class: "block",
|
|
58
58
|
key: v.machineId
|
|
59
59
|
}, m(v.name), 1))), 128))
|
|
60
|
-
])) : (c(), y("div",
|
|
60
|
+
])) : (c(), y("div", we, "-"))
|
|
61
61
|
]),
|
|
62
|
-
l.value === d(e)("order.activated") ? (c(), y("div",
|
|
63
|
-
o("span",
|
|
64
|
-
o("div",
|
|
62
|
+
l.value === d(e)("order.activated") ? (c(), y("div", Oe, [
|
|
63
|
+
o("span", ke, m(d(e)("order.dineIn")), 1),
|
|
64
|
+
o("div", xe, [
|
|
65
65
|
o("div", null, m(l.value), 1)
|
|
66
66
|
])
|
|
67
67
|
])) : _("", !0),
|
|
68
|
-
l.value === d(e)("order.activated") && s.value !== d(e)("order.unknown") ? (c(), y("div",
|
|
69
|
-
o("span",
|
|
68
|
+
l.value === d(e)("order.activated") && s.value !== d(e)("order.unknown") ? (c(), y("div", Se, [
|
|
69
|
+
o("span", Te, m(d(e)("order.dineInType")), 1),
|
|
70
70
|
o("div", Ce, [
|
|
71
71
|
o("div", null, m(s.value), 1)
|
|
72
72
|
])
|
|
@@ -248,7 +248,17 @@ const fe = {
|
|
|
248
248
|
canTakeaway: t.takeaway.enabled,
|
|
249
249
|
dineIn: n,
|
|
250
250
|
menuItem: t.menuItem,
|
|
251
|
-
paymentSetting: l(t.paymentSetting)
|
|
251
|
+
paymentSetting: l(t.paymentSetting),
|
|
252
|
+
takeaway: t.takeaway.submitOrderInstruction ? {
|
|
253
|
+
submitOrderInstruction: {
|
|
254
|
+
payAtCounter: t.takeaway.submitOrderInstruction.payAtCounter ? {
|
|
255
|
+
en: t.takeaway.submitOrderInstruction.payAtCounter
|
|
256
|
+
} : null,
|
|
257
|
+
paid: t.takeaway.submitOrderInstruction.paid ? {
|
|
258
|
+
en: t.takeaway.submitOrderInstruction.paid
|
|
259
|
+
} : null
|
|
260
|
+
}
|
|
261
|
+
} : void 0
|
|
252
262
|
}), l = (n) => ({
|
|
253
263
|
paymentTypes: n.paymentTypes,
|
|
254
264
|
offlinePaymentTypes: n.offlinePaymentTypes,
|
|
@@ -264,7 +274,7 @@ const fe = {
|
|
|
264
274
|
convertOrderSettingDto: Me,
|
|
265
275
|
toOrderKioskSettingsDto: He
|
|
266
276
|
}, Le = ye("orderSetting", () => {
|
|
267
|
-
const t =
|
|
277
|
+
const t = x({});
|
|
268
278
|
async function e() {
|
|
269
279
|
const s = await B.getOrderSetting();
|
|
270
280
|
l(s);
|
|
@@ -285,7 +295,7 @@ const fe = {
|
|
|
285
295
|
t.value.kiosk = s;
|
|
286
296
|
}
|
|
287
297
|
return {
|
|
288
|
-
state: t,
|
|
298
|
+
state: t.value,
|
|
289
299
|
getSetting: e,
|
|
290
300
|
updateKioskSetting: r,
|
|
291
301
|
setKioskOrderSetting: n
|
|
@@ -298,11 +308,11 @@ const fe = {
|
|
|
298
308
|
setup(t) {
|
|
299
309
|
var F, q;
|
|
300
310
|
const { t: e } = A(), r = te(
|
|
301
|
-
() => import("./KioskSettingView-
|
|
302
|
-
), l =
|
|
311
|
+
() => import("./KioskSettingView-COhGcRtP.js")
|
|
312
|
+
), l = x("device"), n = re(), s = Le(), u = ue(), { currentRestaurant: i, restaurants: a, changeRestaurant: p } = de(), v = pe(), h = me(), K = b(() => h.breakpoints.value.xs), w = x(((F = i.value) == null ? void 0 : F._id) ?? void 0), j = b(() => a.value.map((f) => ({
|
|
303
313
|
label: f.profile.name,
|
|
304
314
|
value: f._id
|
|
305
|
-
}))),
|
|
315
|
+
}))), O = x(((q = i.value) == null ? void 0 : q._id) ?? "");
|
|
306
316
|
function H() {
|
|
307
317
|
var f;
|
|
308
318
|
u.open({
|
|
@@ -317,8 +327,8 @@ const fe = {
|
|
|
317
327
|
});
|
|
318
328
|
}
|
|
319
329
|
async function U(f) {
|
|
320
|
-
const g = a.value.find((
|
|
321
|
-
await p(g), await s.getSetting(), await n.getDevices(),
|
|
330
|
+
const g = a.value.find((S) => S._id == f);
|
|
331
|
+
await p(g), await s.getSetting(), await n.getDevices(), w.value = f, O.value = f;
|
|
322
332
|
}
|
|
323
333
|
const L = b(() => [
|
|
324
334
|
{
|
|
@@ -355,17 +365,17 @@ const fe = {
|
|
|
355
365
|
return ae(
|
|
356
366
|
() => a.value.length,
|
|
357
367
|
async (f) => {
|
|
358
|
-
|
|
368
|
+
w.value === void 0 && a.value.length > 0 && await U(a.value[0]._id);
|
|
359
369
|
},
|
|
360
370
|
{ immediate: !0 }
|
|
361
371
|
), (f, g) => {
|
|
362
|
-
const
|
|
372
|
+
const S = k("FmButton"), G = k("FmPageHead"), J = k("FmTabs"), Q = k("FmSelect");
|
|
363
373
|
return c(), y("div", Ye, [
|
|
364
374
|
P(G, {
|
|
365
375
|
title: d(e)("order.kiosk")
|
|
366
376
|
}, {
|
|
367
377
|
append: ne(() => [
|
|
368
|
-
se(P(
|
|
378
|
+
se(P(S, {
|
|
369
379
|
icon: "info",
|
|
370
380
|
variant: "tertiary",
|
|
371
381
|
onClick: H
|
|
@@ -379,7 +389,7 @@ const fe = {
|
|
|
379
389
|
o("div", Ge, [
|
|
380
390
|
P(J, {
|
|
381
391
|
"model-value": l.value,
|
|
382
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
392
|
+
"onUpdate:modelValue": g[0] || (g[0] = (T) => l.value = T),
|
|
383
393
|
items: L.value
|
|
384
394
|
}, null, 8, ["model-value", "items"]),
|
|
385
395
|
o("div", Je, [
|
|
@@ -389,9 +399,9 @@ const fe = {
|
|
|
389
399
|
o("span", et, m(d(e)("order.selectRestaurant")) + ": ", 1),
|
|
390
400
|
P(Q, {
|
|
391
401
|
class: "w-1/2",
|
|
392
|
-
modelValue:
|
|
402
|
+
modelValue: w.value,
|
|
393
403
|
"onUpdate:modelValue": [
|
|
394
|
-
g[1] || (g[1] = (
|
|
404
|
+
g[1] || (g[1] = (T) => w.value = T),
|
|
395
405
|
U
|
|
396
406
|
],
|
|
397
407
|
items: j.value,
|
|
@@ -404,8 +414,8 @@ const fe = {
|
|
|
404
414
|
"request-otp": Y
|
|
405
415
|
}, null, 8, ["devices"])) : _("", !0),
|
|
406
416
|
l.value == "setting" ? (c(), R(d(r), {
|
|
407
|
-
key: `KioskSettingView-${
|
|
408
|
-
"restaurant-id":
|
|
417
|
+
key: `KioskSettingView-${O.value}`,
|
|
418
|
+
"restaurant-id": O.value,
|
|
409
419
|
onUpdateKioskOrderSetting: z,
|
|
410
420
|
form: d(s).state.kiosk ?? d(Ne)
|
|
411
421
|
}, null, 8, ["restaurant-id", "form"])) : _("", !0)
|
|
@@ -414,7 +424,7 @@ const fe = {
|
|
|
414
424
|
]),
|
|
415
425
|
K.value ? _("", !0) : (c(), y("div", tt, [
|
|
416
426
|
P(E, {
|
|
417
|
-
"restaurant-id":
|
|
427
|
+
"restaurant-id": O.value,
|
|
418
428
|
devices: $.value,
|
|
419
429
|
"kiosk-order-setting": d(s).state.kiosk,
|
|
420
430
|
dialogType: !1
|