@feedmepos/mf-order-setting 0.0.74-dev → 0.0.75-dev.20260721T080807Z.29812992895
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-CW7nDXi2.js → KioskDevicesView-CqyTDI1x.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-CPDkls2i.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-DZkir0K_.js} +32 -32
- package/dist/{KioskSettingView-DErXeFIt.js → KioskSettingView-DyCVWm7r.js} +188 -190
- package/dist/KioskView-DYtrx8Qe.js +420 -0
- package/dist/{OrderSettingsView-asfw4cYT.js → OrderSettingsView-DkxKkzbt.js} +10353 -10414
- package/dist/{app-DrWO2wkv.js → app-11No87EZ.js} +1363 -1352
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-Fu6ejRAr.js → dayjs.min-D_adqybn.js} +12 -12
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +3 -3
- package/dist/frontend/mf-order/src/version.d.ts +7 -0
- package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +4 -2
- package/dist/frontend/mf-order/src/views/order-settings/pickup/PickUpSetting.vue.d.ts +0 -17
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-DJLCZHNZ.js → index-JbCnNX9Q.js} +2 -2
- package/dist/index-x8Mu3VDv.js +23 -0
- package/dist/{lineman-settings.dto-DS4tgxBJ.js → lineman-settings.dto-C8boe82Z.js} +22163 -20754
- package/dist/package/entity/delivery/gateway/pandago.dto.d.ts +6 -6
- package/dist/package/entity/food-court/order.do.d.ts +24 -4
- package/dist/package/entity/food-court/order.dto.d.ts +2675 -2675
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +14332 -1
- package/dist/package/entity/member/member.dto.d.ts +799 -0
- package/dist/package/entity/order/order.do.d.ts +6763 -1
- package/dist/package/entity/order/order.dto.d.ts +12596 -1599
- package/dist/package/entity/order/payment/payment.dto.d.ts +191 -191
- package/dist/package/entity/order/queue-transfer.dto.d.ts +33 -9
- package/dist/package/entity/order-platform/external/menu/external-master-menu.do.d.ts +12 -12
- package/dist/package/entity/order-platform/external/menu/external-menu.do.d.ts +4 -1
- package/dist/package/entity/order-platform/external/menu/external-menu.dto.d.ts +3 -3
- package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +11 -8
- package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +32 -19
- package/dist/package/entity/order-platform/external/order/external-order.enum.d.ts +1 -1
- package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +16 -3
- package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +8 -3
- package/dist/package/entity/order-platform/order-platform.dto.d.ts +2 -2
- package/dist/package/entity/order-platform/order-platform.enum.d.ts +1 -1
- package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +3 -3
- package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +2 -2
- package/dist/package/entity/order-setting/order-setting.do.d.ts +5 -5
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +8 -8
- package/dist/package/entity/payment/payment.dto.d.ts +3 -3
- package/dist/package/entity/payment/transaction.d.ts +63 -63
- package/dist/package/entity/queue/queue.dto.d.ts +160 -160
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +91 -91
- package/dist/package/entity/websocket/websocket.dto.d.ts +10 -10
- package/dist/style.css +1 -1
- package/env.d.ts +3 -0
- package/package.json +1 -1
- package/src/app.ts +4 -0
- package/src/main.ts +3 -0
- package/src/modules/order-setting/kiosk/interface.ts +1 -1
- package/src/stores/order-setting/mapper.ts +94 -94
- package/src/version.ts +21 -0
- package/src/views/kiosk/settings/KioskPaymentTypeSection.vue +1 -19
- package/src/views/order-settings/delivery/DeliverySetting.vue +21 -3
- package/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue +2 -1
- package/src/views/order-settings/dine-in/DineInSetting.vue +1 -1
- package/src/views/order-settings/drive-thru/DriveThruSetting.vue +4 -4
- package/src/views/order-settings/pickup/PickUpSetting.vue +131 -191
- package/src/views/order-settings/pickup/PickUpSettingDialogContent.vue +1 -8
- package/src/views/order-settings/servicecharge/ServiceChargeRule.vue +5 -1
- package/vite.config.ts +10 -0
- package/dist/KioskView-d1YjttbD.js +0 -362
- package/dist/frontend/mf-order/src/views/order-settings/pickup/PickUpSettingDialog.vue.d.ts +0 -16
- package/dist/frontend/mf-order/src/views/order-settings/pickup/PickupList.vue.d.ts +0 -16
- package/dist/index-DEKeP24S.js +0 -86
- package/src/views/order-settings/pickup/PickUpSettingDialog.vue +0 -118
- package/src/views/order-settings/pickup/PickupList.vue +0 -49
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { ref as P, defineComponent as ee, resolveComponent as S, openBlock as l, createElementBlock as u, createElementVNode as a, toDisplayString as i, unref as s, createVNode as m, computed as T, watch as pe, createCommentVNode as D, withCtx as H, Fragment as W, renderList as Z, normalizeClass as we, createBlock as L, createTextVNode as X, renderSlot as Ae } from "vue";
|
|
2
2
|
import { useI18n as le } from "@feedmepos/mf-common";
|
|
3
3
|
import { defineStore as Pe } from "pinia";
|
|
4
|
-
import { r as Y, g as ve } from "./lineman-settings.dto-
|
|
4
|
+
import { r as Y, g as ve } from "./lineman-settings.dto-C8boe82Z.js";
|
|
5
5
|
import { useDialog as De, useSnackbar as Se } from "@feedmepos/ui-library";
|
|
6
|
-
import { d as ie } from "./dayjs.min-
|
|
7
|
-
import { g as Ce, c as Fe, a as fe } from "./app-
|
|
6
|
+
import { d as ie } from "./dayjs.min-D_adqybn.js";
|
|
7
|
+
import { g as Ce, c as Fe, a as fe } from "./app-11No87EZ.js";
|
|
8
8
|
async function Me() {
|
|
9
9
|
const n = await Y().get("/kiosk/otp");
|
|
10
10
|
return ve(n);
|
|
11
11
|
}
|
|
12
|
-
async function
|
|
12
|
+
async function Ee() {
|
|
13
13
|
const n = await Y().get("/kiosk/devices");
|
|
14
14
|
return ve(n);
|
|
15
15
|
}
|
|
16
|
-
async function
|
|
16
|
+
async function Ve(n) {
|
|
17
17
|
await Y().delete(`/kiosk/unbind/${n}`);
|
|
18
18
|
}
|
|
19
|
-
async function
|
|
19
|
+
async function $e(n, e) {
|
|
20
20
|
await Y().put(`/kiosk/updateDevicePin/${e}`, { pinInfo: n });
|
|
21
21
|
}
|
|
22
22
|
async function Be(n, e) {
|
|
@@ -24,9 +24,9 @@ async function Be(n, e) {
|
|
|
24
24
|
}
|
|
25
25
|
const z = {
|
|
26
26
|
requestOtp: Me,
|
|
27
|
-
getDevices:
|
|
28
|
-
unbind:
|
|
29
|
-
updateDevicePin:
|
|
27
|
+
getDevices: Ee,
|
|
28
|
+
unbind: Ve,
|
|
29
|
+
updateDevicePin: $e,
|
|
30
30
|
updateDeviceRemark: Be
|
|
31
31
|
}, Re = (n) => ({
|
|
32
32
|
name: n.name ?? "N/A",
|
|
@@ -97,20 +97,20 @@ var ye = { exports: {} };
|
|
|
97
97
|
return c.fromToBase(r, d, f, A);
|
|
98
98
|
}
|
|
99
99
|
k.en.relativeTime = p, c.fromToBase = function(r, d, f, A, B) {
|
|
100
|
-
for (var h,
|
|
101
|
-
var F = O[
|
|
100
|
+
for (var h, E, C, R = f.$locale().relativeTime || p, O = v.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], te = O.length, V = 0; V < te; V += 1) {
|
|
101
|
+
var F = O[V];
|
|
102
102
|
F.d && (h = A ? k(r).diff(f, F.d, !0) : f.diff(r, F.d, !0));
|
|
103
|
-
var
|
|
104
|
-
if (C = h > 0,
|
|
105
|
-
|
|
103
|
+
var $ = (v.rounding || Math.round)(Math.abs(h));
|
|
104
|
+
if (C = h > 0, $ <= F.r || !F.r) {
|
|
105
|
+
$ <= 1 && V > 0 && (F = O[V - 1]);
|
|
106
106
|
var U = R[F.l];
|
|
107
|
-
B && (
|
|
107
|
+
B && ($ = B("" + $)), E = typeof U == "string" ? U.replace("%d", $) : U($, d, F.l, C);
|
|
108
108
|
break;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
if (d) return
|
|
111
|
+
if (d) return E;
|
|
112
112
|
var M = C ? R.future : R.past;
|
|
113
|
-
return typeof M == "function" ? M(
|
|
113
|
+
return typeof M == "function" ? M(E) : M.replace("%s", E);
|
|
114
114
|
}, c.to = function(r, d) {
|
|
115
115
|
return y(r, d, this, !0);
|
|
116
116
|
}, c.from = function(r, d) {
|
|
@@ -196,7 +196,7 @@ const Ke = /* @__PURE__ */ Ce(Ue), je = /* @__PURE__ */ ee({
|
|
|
196
196
|
const b = [
|
|
197
197
|
{
|
|
198
198
|
label: "Type",
|
|
199
|
-
value:
|
|
199
|
+
value: E(t.type)
|
|
200
200
|
}
|
|
201
201
|
];
|
|
202
202
|
return t.type === "CAPACITOR" && t.lensFacing && b.push({
|
|
@@ -234,7 +234,7 @@ const Ke = /* @__PURE__ */ Ce(Ue), je = /* @__PURE__ */ ee({
|
|
|
234
234
|
}
|
|
235
235
|
return g.push({ label: "Encoder Type", value: x.encoderConfig.type }), g.push({ label: "DPI", value: String(x.encoderConfig.dpi) }), g.push({ label: "Paper Width (mm)", value: String(x.encoderConfig.paperWidthInMm) }), x.encoderConfig.type === "TSPL" && g.push({ label: "Paper Height (mm)", value: String(x.encoderConfig.paperHeightInMm) }), t.backup && (g.push({ label: "Backup Type", value: t.backup.type }), t.backup.type === "PRINTER_ID" && g.push({ label: "Backup Printer ID", value: t.backup.printerId })), g;
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function E(t) {
|
|
238
238
|
switch (t) {
|
|
239
239
|
case "IMIN":
|
|
240
240
|
return "IMIN";
|
|
@@ -273,7 +273,7 @@ const Ke = /* @__PURE__ */ Ce(Ue), je = /* @__PURE__ */ ee({
|
|
|
273
273
|
function te(t) {
|
|
274
274
|
return ie(t).fromNow();
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function V(t) {
|
|
277
277
|
return ie(t).format("DD MMM YYYY HH:mm:ss");
|
|
278
278
|
}
|
|
279
279
|
function F() {
|
|
@@ -309,7 +309,7 @@ const Ke = /* @__PURE__ */ Ce(Ue), je = /* @__PURE__ */ ee({
|
|
|
309
309
|
});
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
|
-
const
|
|
312
|
+
const $ = T(() => {
|
|
313
313
|
var t;
|
|
314
314
|
return (t = o.device) == null ? void 0 : t.pinInfo;
|
|
315
315
|
}), U = T(() => M.value ? e("order.reEnterNewPin") : e("order.enterNewPin")), M = P(!1), G = P(), ne = P(), oe = P(!1), K = P(o.device.remarkInfo ?? ""), N = P("app"), he = T(() => {
|
|
@@ -347,11 +347,11 @@ const Ke = /* @__PURE__ */ Ce(Ue), je = /* @__PURE__ */ ee({
|
|
|
347
347
|
},
|
|
348
348
|
{
|
|
349
349
|
label: e("order.devicePinCode"),
|
|
350
|
-
value:
|
|
350
|
+
value: $.value ? e("order.pinSet") : e("order.noPin")
|
|
351
351
|
},
|
|
352
352
|
{
|
|
353
353
|
label: e("order.activatedDate"),
|
|
354
|
-
value:
|
|
354
|
+
value: V(o.device.activatedAt)
|
|
355
355
|
},
|
|
356
356
|
{
|
|
357
357
|
label: e("order.webviewVersion"),
|
|
@@ -371,7 +371,7 @@ const Ke = /* @__PURE__ */ Ce(Ue), je = /* @__PURE__ */ ee({
|
|
|
371
371
|
value: o.device.slotInfo || e("order.notSet")
|
|
372
372
|
}), o.device.lastStartup && t.push({
|
|
373
373
|
label: e("order.lastStartupAt"),
|
|
374
|
-
value:
|
|
374
|
+
value: V(o.device.lastStartup)
|
|
375
375
|
}), t;
|
|
376
376
|
}), ae = T(() => K.value.trim()), ce = T(() => ae.value !== Q.value);
|
|
377
377
|
pe(
|
|
@@ -590,12 +590,12 @@ const Ke = /* @__PURE__ */ Ce(Ue), je = /* @__PURE__ */ ee({
|
|
|
590
590
|
])) : D("", !0),
|
|
591
591
|
a("span", It, [
|
|
592
592
|
m(q, { name: "lock" }),
|
|
593
|
-
X(" " + i(
|
|
593
|
+
X(" " + i($.value ? s(e)("order.pinSet") : s(e)("order.noPin")), 1)
|
|
594
594
|
]),
|
|
595
595
|
n.device.lastStartup ? (l(), u("span", {
|
|
596
596
|
key: 1,
|
|
597
597
|
class: "flex items-center gap-1",
|
|
598
|
-
title:
|
|
598
|
+
title: V(n.device.lastStartup)
|
|
599
599
|
}, [
|
|
600
600
|
m(q, { name: "schedule" }),
|
|
601
601
|
X(" " + i(te(n.device.lastStartup)), 1)
|
|
@@ -633,7 +633,7 @@ const Ke = /* @__PURE__ */ Ce(Ue), je = /* @__PURE__ */ ee({
|
|
|
633
633
|
]);
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
}), Ft = { class: "flex flex-col gap-4" }, Mt = { class: "flex items-center justify-between" },
|
|
636
|
+
}), Ft = { class: "flex flex-col gap-4" }, Mt = { class: "flex items-center justify-between" }, Et = { class: "flex flex-col gap-2" }, Vt = { class: "fm-typo-en-title-sm-600 block" }, $t = { class: "fm-typo-en-body-md-400 block" }, Bt = { class: "flex items-center gap-3 flex-wrap" }, Rt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, Ot = { class: "grid grid-cols-2 gap-2 py-8" }, Lt = {
|
|
637
637
|
key: 0,
|
|
638
638
|
class: "text-center py-8 text-fm-color-typo-tertiary fm-typo-en-body-md-400 col-span-2"
|
|
639
639
|
}, Nt = {
|
|
@@ -661,8 +661,8 @@ const Ke = /* @__PURE__ */ Ce(Ue), je = /* @__PURE__ */ ee({
|
|
|
661
661
|
c.value === "tablet" ? o = o.filter((d) => d.deviceAppType === "TABLET_APP") : c.value === "kiosk" && (o = o.filter((d) => d.deviceAppType !== "TABLET_APP"));
|
|
662
662
|
const r = k.value.toLowerCase().trim();
|
|
663
663
|
return r && (o = o.filter((d) => {
|
|
664
|
-
var
|
|
665
|
-
const f = ((
|
|
664
|
+
var E, C, R, O;
|
|
665
|
+
const f = ((E = d.name) == null ? void 0 : E.toLowerCase()) || "", A = ((C = d.machineId) == null ? void 0 : C.toLowerCase()) || "", B = ((R = d.slotInfo) == null ? void 0 : R.toLowerCase()) || "", h = ((O = d.remarkInfo) == null ? void 0 : O.toLowerCase()) || "";
|
|
666
666
|
return f.includes(r) || A.includes(r) || B.includes(r) || h.includes(r);
|
|
667
667
|
})), o.sort((d, f) => d.deviceAppType === "TABLET_APP" && f.deviceAppType !== "TABLET_APP" ? -1 : d.deviceAppType !== "TABLET_APP" && f.deviceAppType === "TABLET_APP" ? 1 : d.deviceAppType === "TABLET_APP" && f.deviceAppType === "TABLET_APP" ? (d.slotInfo || "").localeCompare(f.slotInfo || "") : (d.name || "").localeCompare(f.name || ""));
|
|
668
668
|
});
|
|
@@ -671,9 +671,9 @@ const Ke = /* @__PURE__ */ Ce(Ue), je = /* @__PURE__ */ ee({
|
|
|
671
671
|
return l(), u("div", null, [
|
|
672
672
|
a("div", Ft, [
|
|
673
673
|
a("div", Mt, [
|
|
674
|
-
a("div",
|
|
675
|
-
a("span",
|
|
676
|
-
a("span",
|
|
674
|
+
a("div", Et, [
|
|
675
|
+
a("span", Vt, i(s(e)("order.kioskDisplay")), 1),
|
|
676
|
+
a("span", $t, i(s(e)("order.kioskDisplayDescription")), 1)
|
|
677
677
|
]),
|
|
678
678
|
s(v) ? (l(), L(d, {
|
|
679
679
|
key: 0,
|