@feedmepos/mf-order-setting 0.0.56-dev.1 → 0.0.56-dev.2
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/.tsbuildinfo +1 -1
- package/dist/{KioskDevicesView-CccsAZqK.js → KioskDevicesView-Qv-xd_kZ.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-dF1jgi53.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CCF1mKni.js} +2 -2
- package/dist/KioskSettingView-CvvrK6Bv.js +643 -0
- package/dist/{KioskView-DmaCjLcw.js → KioskView-CppTVBv-.js} +117 -117
- package/dist/OrderSettingsView-C38N61dM.js +36564 -0
- package/dist/{app-EGmxrjDM.js → app-Bss1GkKY.js} +4 -4
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-lCwCAXUZ.js → dayjs.min-DZfxGUk4.js} +1 -1
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +3 -0
- package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +1 -1
- package/dist/frontend/mf-order/src/views/kiosk/settings/KioskPaymentTypeSection.vue.d.ts +13 -3
- package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +12 -4
- package/dist/frontend/mf-order/src/views/order-settings/dine-in/OfflinePaymentTypeDialog.vue.d.ts +4 -4
- package/dist/frontend/mf-order/src/views/order-settings/dine-in/PaymentType.vue.d.ts +38 -4
- package/dist/frontend/mf-order/src/views/order-settings/pickup/PaymentSidesheet.vue.d.ts +1 -0
- package/dist/frontend/mf-order/src/views/order-settings/reservation/CustomTimePicker.vue.d.ts +1 -0
- package/dist/{index-CWrX79Jg.js → index-B6AGCsrw.js} +6 -6
- package/dist/index-BpKR-Cxd.js +19757 -0
- package/dist/{menu.dto-CgymySda.js → menu.dto-C_B3M2fs.js} +44222 -46755
- package/dist/package/entity/incoming-order/incoming-order.do.d.ts +22443 -3
- package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +3 -3
- package/dist/package/entity/incoming-order/incoming-order.enum.d.ts +1 -1
- package/dist/package/entity/index.d.ts +1 -0
- package/dist/package/entity/marketing/marketing.dto.d.ts +1 -1
- package/dist/package/entity/order/dine-in/qr.dto.d.ts +38 -0
- package/dist/package/entity/order/order.do.d.ts +6358 -2
- package/dist/package/entity/order/order.dto.d.ts +22 -0
- package/dist/package/entity/order-platform/deliveroo/deliveroo-dto.d.ts +3 -0
- package/dist/package/entity/order-platform/deliveroo/deliveroo-setting.do.d.ts +3 -0
- package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +12 -12
- package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +32 -32
- package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +21 -3
- package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +12 -2
- package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.do.d.ts +3 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.dto.d.ts +3 -0
- package/dist/package/entity/order-platform/grabfood/grabfood-edit-order.do.d.ts +9 -1
- 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 +3 -3
- package/dist/package/entity/order-platform/order-platform.dto.d.ts +2 -2
- package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.do.d.ts +3 -0
- package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.dto.d.ts +3 -0
- package/dist/package/entity/order-setting/order-setting.do.d.ts +3 -0
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +6 -0
- package/dist/package/entity/queue/queue.do.d.ts +3 -8
- package/dist/package/entity/queue/queue.dto.d.ts +10 -0
- package/dist/package/entity/reservation/reservation.do.d.ts +4 -0
- package/dist/package/entity/reservation/reservation.dto.d.ts +10 -0
- package/dist/package/entity/reservation/reservation.utils.d.ts +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/views/kiosk/KioskSummary.vue +3 -0
- package/src/views/kiosk/settings/KioskPaymentTypeSection.vue +99 -211
- package/src/views/kiosk/settings/KioskSettingView.vue +27 -11
- package/src/views/order-settings/dine-in/DineInSetting.vue +1 -0
- package/src/views/order-settings/dine-in/OfflinePaymentTypeDialog.vue +2 -3
- package/src/views/order-settings/dine-in/PaymentType.vue +151 -43
- package/src/views/order-settings/pickup/PaymentSidesheet.vue +33 -172
- package/src/views/order-settings/pickup/PickUpSettingDialogContent.vue +1 -0
- package/src/views/order-settings/reservation/CustomTimePicker.vue +129 -49
- package/src/views/order-settings/reservation/ReservationSetting.vue +547 -303
- package/dist/KioskSettingView-8GY7AT-N.js +0 -722
- package/dist/OrderSettingsView-BZcU4t9L.js +0 -56240
- package/dist/index-BXsnV_eO.js +0 -150
package/dist/index-BXsnV_eO.js
DELETED
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { defineComponent as V, ref as m, resolveComponent as y, createElementBlock as g, openBlock as P, createElementVNode as f, createVNode as _, toDisplayString as v, unref as c, createBlock as h } from "vue";
|
|
2
|
-
import { useDialog as x, useSnackbar as C } from "@feedmepos/ui-library";
|
|
3
|
-
import { useI18n as T } from "@feedmepos/mf-common";
|
|
4
|
-
const k = /* @__PURE__ */ V({
|
|
5
|
-
__name: "OfflinePaymentTypeDialogContent",
|
|
6
|
-
props: {
|
|
7
|
-
name: {},
|
|
8
|
-
instruction: {}
|
|
9
|
-
},
|
|
10
|
-
emits: ["update:nameValue", "update:instructionValue"],
|
|
11
|
-
setup(l, { emit: s }) {
|
|
12
|
-
const { t: e } = T(), n = l, a = s, r = m("");
|
|
13
|
-
function t(i) {
|
|
14
|
-
a("update:nameValue", i);
|
|
15
|
-
}
|
|
16
|
-
function u(i) {
|
|
17
|
-
a("update:instructionValue", i);
|
|
18
|
-
}
|
|
19
|
-
return (i, o) => {
|
|
20
|
-
const p = y("FmTextField"), d = y("FmTextarea");
|
|
21
|
-
return P(), g("div", null, [
|
|
22
|
-
f("span", null, v(n.name), 1),
|
|
23
|
-
_(p, {
|
|
24
|
-
"model-value": r.value,
|
|
25
|
-
"onUpdate:modelValue": t,
|
|
26
|
-
placeholder: c(e)("order.enterPaymentName"),
|
|
27
|
-
rules: [(b) => !!b || c(e)("order.fieldCannotBeEmpty")]
|
|
28
|
-
}, null, 8, ["model-value", "placeholder", "rules"]),
|
|
29
|
-
o[0] || (o[0] = f("div", { class: "mb-12" }, null, -1)),
|
|
30
|
-
f("span", null, v(n.instruction), 1),
|
|
31
|
-
_(d, {
|
|
32
|
-
"model-value": r.value,
|
|
33
|
-
"onUpdate:modelValue": u,
|
|
34
|
-
placeholder: c(e)("order.enterPaymentInstruction")
|
|
35
|
-
}, null, 8, ["model-value", "placeholder"])
|
|
36
|
-
]);
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
}), L = /* @__PURE__ */ V({
|
|
40
|
-
__name: "OfflinePaymentTypeDialog",
|
|
41
|
-
emits: ["update:offlinePaymentTypes"],
|
|
42
|
-
setup(l, { emit: s }) {
|
|
43
|
-
const { t: e } = T(), n = x(), a = m(""), r = m(""), t = () => {
|
|
44
|
-
a.value = "", r.value = "", n.open({
|
|
45
|
-
title: e("order.addCustomPayment"),
|
|
46
|
-
contentComponent: k,
|
|
47
|
-
contentComponentProps: {
|
|
48
|
-
name: e("order.name"),
|
|
49
|
-
instruction: e("order.instruction"),
|
|
50
|
-
"onUpdate:nameValue": (o) => {
|
|
51
|
-
a.value = o;
|
|
52
|
-
},
|
|
53
|
-
"onUpdate:instructionValue": (o) => {
|
|
54
|
-
r.value = o;
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
primaryActions: { text: e("order.add"), close: !0 },
|
|
58
|
-
secondaryActions: { text: e("order.cancel"), close: !0 }
|
|
59
|
-
}).onPrimary(async () => {
|
|
60
|
-
const o = {
|
|
61
|
-
name: a.value,
|
|
62
|
-
instruction: r.value
|
|
63
|
-
};
|
|
64
|
-
await u(o);
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
async function u(o) {
|
|
68
|
-
i("update:offlinePaymentTypes", [o]);
|
|
69
|
-
}
|
|
70
|
-
const i = s;
|
|
71
|
-
return (o, p) => {
|
|
72
|
-
const d = y("FmButton");
|
|
73
|
-
return P(), h(d, {
|
|
74
|
-
label: c(e)("order.editOfflinePayment"),
|
|
75
|
-
onClick: t,
|
|
76
|
-
variant: "plain"
|
|
77
|
-
}, null, 8, ["label"]);
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
function w() {
|
|
82
|
-
const l = C();
|
|
83
|
-
function s(t) {
|
|
84
|
-
l.open({
|
|
85
|
-
type: "success",
|
|
86
|
-
message: t,
|
|
87
|
-
position: "bottom"
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
function e(t) {
|
|
91
|
-
l.open({
|
|
92
|
-
type: "error",
|
|
93
|
-
message: t,
|
|
94
|
-
position: "bottom"
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
let n = null;
|
|
98
|
-
function a(t) {
|
|
99
|
-
return n = l.open({
|
|
100
|
-
type: "neutral",
|
|
101
|
-
spinner: !0,
|
|
102
|
-
message: t,
|
|
103
|
-
position: "bottom",
|
|
104
|
-
persistent: !0
|
|
105
|
-
// Ensure the snackbar stays visible until manually closed
|
|
106
|
-
}), n;
|
|
107
|
-
}
|
|
108
|
-
function r() {
|
|
109
|
-
n && (l.close(n), n = null);
|
|
110
|
-
}
|
|
111
|
-
return { showSuccess: s, showError: e, showLoading: a, closeLoadingSnackbar: r };
|
|
112
|
-
}
|
|
113
|
-
const O = () => {
|
|
114
|
-
const { showError: l } = w(), s = m(!1);
|
|
115
|
-
function e() {
|
|
116
|
-
s.value = !0;
|
|
117
|
-
}
|
|
118
|
-
function n() {
|
|
119
|
-
s.value = !1;
|
|
120
|
-
}
|
|
121
|
-
async function a(t) {
|
|
122
|
-
try {
|
|
123
|
-
return e(), await t();
|
|
124
|
-
} finally {
|
|
125
|
-
n();
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
async function r(t) {
|
|
129
|
-
try {
|
|
130
|
-
return e(), await t();
|
|
131
|
-
} catch (u) {
|
|
132
|
-
throw l(`${u}`), u;
|
|
133
|
-
} finally {
|
|
134
|
-
n();
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
return {
|
|
138
|
-
isLoading: s,
|
|
139
|
-
startLoading: e,
|
|
140
|
-
stopLoading: n,
|
|
141
|
-
startAsyncCall: a,
|
|
142
|
-
startAsyncCallWithErr: r
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
export {
|
|
146
|
-
L as _,
|
|
147
|
-
w as a,
|
|
148
|
-
k as b,
|
|
149
|
-
O as u
|
|
150
|
-
};
|