@feedmepos/mf-order-setting 0.0.47 → 0.0.49
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-Dd3xcM5X.js → KioskDevicesView-Ch_mWJz9.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-D-epeOIx.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-DV2HYd8u.js} +19 -19
- package/dist/KioskSettingView-CaBhf48e.js +553 -0
- package/dist/{KioskView-BGiHHSjd.js → KioskView-BGm-emCw.js} +12 -8
- package/dist/OrderSettingsView-CRgoLOD2.js +51603 -0
- package/dist/app-CDTAjXj9.js +2930 -0
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-D-vfvSns.js → dayjs.min-dI_j30pv.js} +49 -49
- package/dist/frontend/mf-order/src/api/restaurant-setting/index.d.ts +2 -1
- package/dist/frontend/mf-order/src/app.d.ts +1785 -0
- package/dist/frontend/mf-order/src/composables/useDeprecationNotice.d.ts +7 -0
- package/dist/frontend/mf-order/src/main.d.ts +1785 -0
- package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +61 -0
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +18 -12
- package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +23 -8
- package/dist/frontend/mf-order/src/views/all-orders/ReflowOrder.vue.d.ts +12 -4
- package/dist/frontend/mf-order/src/views/kiosk/settings/KioskPaymentTypeSection.vue.d.ts +12 -8
- package/dist/frontend/mf-order/src/views/order-settings/delivery/components/FeedmeExpressDeprecationNotice.vue.d.ts +2 -0
- package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +8 -0
- package/dist/frontend/mf-order/src/views/order-settings/drive-thru/DriveThruSetting.vue.d.ts +2 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-DAruvcri.js → index-B8U5Sawr.js} +2 -2
- package/dist/menu.dto-qVeqpSdz.js +101810 -0
- package/dist/package/entity/booking/booking.do.d.ts +170 -40
- package/dist/package/entity/delivery/delivery.dto.d.ts +34 -8
- package/dist/package/entity/food-court/order.dto.d.ts +2890 -2890
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +222 -222
- package/dist/package/entity/incoming-order/incoming-order.do.d.ts +1053 -771
- package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +344 -344
- package/dist/package/entity/index.d.ts +1 -0
- package/dist/package/entity/kiosk/marketing/marketing.dto.d.ts +1302 -109
- package/dist/package/entity/order/effects/effect.dto.d.ts +10 -10
- package/dist/package/entity/order/order-item/order-item.dto.d.ts +118 -110
- package/dist/package/entity/order/order.do.d.ts +20 -20
- package/dist/package/entity/order/order.dto.d.ts +23756 -40781
- package/dist/package/entity/order/payment/payment.dto.d.ts +784 -10508
- package/dist/package/entity/order-platform/deliveroo/deliveroo-dto.d.ts +2 -2
- package/dist/package/entity/order-platform/deliveroo/deliveroo-order.do.d.ts +26 -26
- package/dist/package/entity/order-platform/deliveroo/deliveroo-setting.do.d.ts +2 -2
- package/dist/package/entity/order-platform/external/menu/external-master-menu.do.d.ts +158 -158
- package/dist/package/entity/order-platform/external/menu/external-menu.do.d.ts +196 -196
- package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +6 -0
- package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +6 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-order.dto.d.ts +34 -8
- package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.do.d.ts +4 -4
- package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.dto.d.ts +5 -5
- package/dist/package/entity/order-platform/grabfood/grabfood-order.do.d.ts +34 -8
- package/dist/package/entity/order-platform/grabfood/grabfood-settings.do.d.ts +2 -2
- package/dist/package/entity/order-platform/grabfood/grabfood.dto.d.ts +6 -6
- package/dist/package/entity/order-platform/menu.dto.d.ts +75 -44
- package/dist/package/entity/order-platform/shopeefood/shopeefood-order.do.d.ts +34 -8
- package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.do.d.ts +2 -2
- package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.dto.d.ts +2 -2
- package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +57 -42
- package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +44 -32
- package/dist/package/entity/order-setting/order-setting.do.d.ts +31 -22
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +62 -44
- package/dist/package/entity/payment/payment.dto.d.ts +2 -2
- package/dist/package/entity/payment/transaction.d.ts +1937 -0
- package/dist/package/entity/queue/queue.do.d.ts +12 -0
- package/dist/package/entity/queue/queue.dto.d.ts +2677 -7335
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +220 -144
- package/dist/package/entity/websocket/websocket.dto.d.ts +68 -48
- package/package.json +4 -4
- package/src/api/restaurant-setting/index.ts +6 -0
- package/src/app.ts +2 -0
- package/src/composables/useDeprecationNotice.ts +52 -0
- package/src/locales/en-US.json +10 -0
- package/src/locales/ja-JP.json +1755 -0
- package/src/locales/th-TH.json +10 -0
- package/src/locales/zh-CN.json +10 -0
- package/src/main.ts +4 -2
- package/src/stores/order-setting/mapper.ts +35 -23
- package/src/stores/restaurant/index.ts +6 -0
- package/src/views/kiosk/settings/KioskPaymentTypeSection.vue +27 -1
- package/src/views/order-settings/OrderSettingsView.vue +6 -1
- package/src/views/order-settings/delivery/DeliverySetting.vue +46 -2
- package/src/views/order-settings/delivery/components/FeedmeExpressDeprecationNotice.vue +16 -0
- package/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue +22 -1
- package/src/views/order-settings/delivery/integrated-delivery/FeedmeDelivery.vue +39 -39
- package/src/views/order-settings/drive-thru/DriveThruSetting.vue +101 -0
- package/dist/KioskSettingView-D50Gh7NR.js +0 -528
- package/dist/OrderSettingsView-DPYYH1zL.js +0 -74512
- package/dist/app-CAt1JfN3.js +0 -1145
- package/dist/menu.dto-B82ITnH5.js +0 -124296
|
@@ -2,8 +2,8 @@ import { defineComponent as S, ref as f, resolveComponent as b, createElementBlo
|
|
|
2
2
|
import { useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
|
|
3
3
|
import { useI18n as K } from "@feedmepos/mf-common";
|
|
4
4
|
import { defineStore as X } from "pinia";
|
|
5
|
-
import { r as
|
|
6
|
-
import "./menu.dto-
|
|
5
|
+
import { r as w, g as U, d as Z } from "./dayjs.min-dI_j30pv.js";
|
|
6
|
+
import "./menu.dto-qVeqpSdz.js";
|
|
7
7
|
const ee = /* @__PURE__ */ S({
|
|
8
8
|
__name: "KioskUnbindConfirm",
|
|
9
9
|
props: {
|
|
@@ -16,10 +16,10 @@ const ee = /* @__PURE__ */ S({
|
|
|
16
16
|
u("update:modelValue", i);
|
|
17
17
|
}
|
|
18
18
|
return (i, k) => {
|
|
19
|
-
const
|
|
19
|
+
const D = b("FmTextField");
|
|
20
20
|
return l(), d("div", null, [
|
|
21
21
|
n("span", null, r(y(c)("order.unbindKioskDeviceWarning", { machineId: i.machineId })), 1),
|
|
22
|
-
v(
|
|
22
|
+
v(D, {
|
|
23
23
|
"model-value": m.value,
|
|
24
24
|
"onUpdate:modelValue": s,
|
|
25
25
|
placeholder: i.machineId
|
|
@@ -29,18 +29,18 @@ const ee = /* @__PURE__ */ S({
|
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
async function ne() {
|
|
32
|
-
const e = await
|
|
32
|
+
const e = await w().get("/kiosk/otp");
|
|
33
33
|
return U(e);
|
|
34
34
|
}
|
|
35
35
|
async function te() {
|
|
36
|
-
const e = await
|
|
36
|
+
const e = await w().get("/kiosk/devices");
|
|
37
37
|
return U(e);
|
|
38
38
|
}
|
|
39
39
|
async function oe(e) {
|
|
40
|
-
await
|
|
40
|
+
await w().delete(`/kiosk/unbind/${e}`);
|
|
41
41
|
}
|
|
42
42
|
async function se(e, t) {
|
|
43
|
-
await
|
|
43
|
+
await w().put(`/kiosk/updateDevicePin/${t}`, { pinInfo: e });
|
|
44
44
|
}
|
|
45
45
|
const I = {
|
|
46
46
|
requestOtp: ne,
|
|
@@ -100,13 +100,13 @@ const le = {
|
|
|
100
100
|
}, pe = { class: "fm-typo-en-title-sm-600" }, ue = { class: "w-full border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2" }, me = { class: "flex flex-col gap-1 mb-2" }, fe = { class: "fm-typo-en-body-lg-600 block" }, ve = { class: "flex flex-col gap-1 mb-2" }, ye = { class: "fm-typo-en-body-lg-600 block" }, _e = { class: "flex flex-col gap-1 mb-2" }, be = { class: "fm-typo-en-body-lg-600 block" }, ke = { class: "flex flex-col gap-1 mb-2" }, ge = { class: "fm-typo-en-body-lg-600 block" }, he = { class: "w-full border p-[1.5rem] fm-corner-radius-lg flex flex-col gap-2" }, xe = {
|
|
101
101
|
key: 0,
|
|
102
102
|
class: "fm-typo-en-title-sm-600"
|
|
103
|
-
}, Ie = { class: "flex flex-col gap-1" },
|
|
103
|
+
}, Ie = { class: "flex flex-col gap-1" }, we = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, De = { class: "fm-typo-en-body-lg-600 block" }, Ae = { key: 1 }, Pe = { class: "py-[1rem] flex flex-col gap-6 text-center items-center" }, Fe = { class: "flex flex-col gap-1 mb-2" }, Ce = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ve = { class: "mt-5 block" }, Te = /* @__PURE__ */ S({
|
|
104
104
|
__name: "KioskDeviceCard",
|
|
105
105
|
props: {
|
|
106
106
|
device: {}
|
|
107
107
|
},
|
|
108
108
|
setup(e) {
|
|
109
|
-
const { t } = K(), c = J(), u = Q(), m = ce(), s = f(!1), i = e, k = f(""),
|
|
109
|
+
const { t } = K(), c = J(), u = Q(), m = ce(), s = f(!1), i = e, k = f(""), D = h(() => Object.entries(i.device.config)), E = h(() => {
|
|
110
110
|
var o;
|
|
111
111
|
return ((o = i.device) == null ? void 0 : o.deviceAppType) === "TABLET_APP" ? "Tablet App" : "Kiosk App";
|
|
112
112
|
});
|
|
@@ -146,8 +146,8 @@ const le = {
|
|
|
146
146
|
const Y = h(() => {
|
|
147
147
|
var o;
|
|
148
148
|
return (o = i.device) == null ? void 0 : o.pinInfo;
|
|
149
|
-
}),
|
|
150
|
-
function
|
|
149
|
+
}), j = h(() => _.value ? "Re-enter new PIN" : "Enter new PIN"), _ = f(!1), g = f(), A = f();
|
|
150
|
+
function L() {
|
|
151
151
|
s.value = !0;
|
|
152
152
|
}
|
|
153
153
|
function P() {
|
|
@@ -196,7 +196,7 @@ const le = {
|
|
|
196
196
|
s.value ? (l(), d("div", Ae, [
|
|
197
197
|
n("div", Pe, [
|
|
198
198
|
n("div", Fe, [
|
|
199
|
-
n("span", Ce, r(
|
|
199
|
+
n("span", Ce, r(j.value), 1),
|
|
200
200
|
n("span", Ve, [
|
|
201
201
|
_.value ? x("", !0) : (l(), N($, {
|
|
202
202
|
key: 0,
|
|
@@ -241,14 +241,14 @@ const le = {
|
|
|
241
241
|
class: "w-auto",
|
|
242
242
|
variant: "primary",
|
|
243
243
|
label: (B = o.device) != null && B.pinInfo ? "Reset Device PIN" : "Set Device PIN",
|
|
244
|
-
onClick:
|
|
244
|
+
onClick: L
|
|
245
245
|
}, null, 8, ["label"])
|
|
246
246
|
]),
|
|
247
|
-
(l(!0), d(V, null, T(
|
|
247
|
+
(l(!0), d(V, null, T(D.value.filter((p) => p[1]), (p) => (l(), d("div", he, [
|
|
248
248
|
p[1] ? (l(), d("span", xe, r(p[0]), 1)) : x("", !0),
|
|
249
249
|
p[1] ? (l(!0), d(V, { key: 1 }, T(Object.entries(p[1]), (C) => (l(), d("div", Ie, [
|
|
250
|
-
n("span",
|
|
251
|
-
n("span",
|
|
250
|
+
n("span", we, r(C[0]), 1),
|
|
251
|
+
n("span", De, r(C[1] == "" ? "-" : C[1]), 1)
|
|
252
252
|
]))), 256)) : x("", !0)
|
|
253
253
|
]))), 256))
|
|
254
254
|
]))
|
|
@@ -265,7 +265,7 @@ const le = {
|
|
|
265
265
|
]);
|
|
266
266
|
};
|
|
267
267
|
}
|
|
268
|
-
}), Ne = { class: "flex flex-col gap-2" }, Se = { class: "flex flex-col gap-2" }, Ke = { class: "fm-typo-en-title-sm-600 block" }, Oe = { class: "fm-typo-en-body-md-400 block" }, $e = { class: "flex flex-col gap-6" },
|
|
268
|
+
}), Ne = { class: "flex flex-col gap-2" }, Se = { class: "flex flex-col gap-2" }, Ke = { class: "fm-typo-en-title-sm-600 block" }, Oe = { class: "fm-typo-en-body-md-400 block" }, $e = { class: "flex flex-col gap-6" }, je = /* @__PURE__ */ S({
|
|
269
269
|
__name: "KioskDevicesView",
|
|
270
270
|
props: {
|
|
271
271
|
devices: {},
|
|
@@ -301,6 +301,6 @@ const le = {
|
|
|
301
301
|
}
|
|
302
302
|
});
|
|
303
303
|
export {
|
|
304
|
-
|
|
304
|
+
je as _,
|
|
305
305
|
ce as u
|
|
306
306
|
};
|