@feedmepos/mf-order-setting 0.0.24 → 0.0.25

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.
Files changed (55) hide show
  1. package/dist/{KioskDevicesView-DGkvW2mH.js → KioskDevicesView-gzH9-zL_.js} +1 -1
  2. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-BGZLd8T_.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CLpClo-r.js} +3 -3
  3. package/dist/{KioskSettingView-DLb5nnCu.js → KioskSettingView-D1WdpaQN.js} +1 -1
  4. package/dist/{KioskView-kZZYSfUh.js → KioskView-D6-1bn1n.js} +38 -28
  5. package/dist/{OrderSettingsView-Cil4j9G5.js → OrderSettingsView-CqZREmjo.js} +6155 -6096
  6. package/dist/{app-D47VRl5B.js → app-i4N2c7ms.js} +38 -26
  7. package/dist/app.js +1 -1
  8. package/dist/{dayjs.min-R4180ukF.js → dayjs.min-CA-XbgTY.js} +36 -36
  9. package/dist/frontend/mf-order/src/app.d.ts +12 -0
  10. package/dist/frontend/mf-order/src/main.d.ts +797 -0
  11. package/dist/frontend/mf-order/src/stores/iframe/index.d.ts +6 -6
  12. package/dist/frontend/mf-order/src/stores/kiosk/index.d.ts +8 -260
  13. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +17 -722
  14. package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +1456 -2239
  15. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  16. package/dist/{index-DgLlDwJK.js → index-C4HI1NS4.js} +2 -2
  17. package/dist/package/entity/delivery/delivery.dto.d.ts +11 -6
  18. package/dist/package/entity/food-court/food-court.dto.d.ts +1 -1
  19. package/dist/package/entity/food-court/order.dto.d.ts +727 -378
  20. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +6 -6
  21. package/dist/package/entity/incoming-order/incoming-order.do.d.ts +8 -8
  22. package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +16 -16
  23. package/dist/package/entity/index.d.ts +1 -0
  24. package/dist/package/entity/kiosk/marketing/marketing.dto.d.ts +1337 -656
  25. package/dist/package/entity/order/order.dto.d.ts +4942 -2401
  26. package/dist/package/entity/order/order.enum.d.ts +1 -1
  27. package/dist/package/entity/order/payment/payment.dto.d.ts +2899 -1419
  28. package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +9 -21
  29. package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +19 -51
  30. package/dist/package/entity/order-setting/order-setting.do.d.ts +8 -0
  31. package/dist/package/entity/order-setting/order-setting.dto.d.ts +16 -0
  32. package/dist/package/entity/order-setting/v3/v3.do.d.ts +3 -0
  33. package/dist/package/entity/order-setting/v3/v3.dto.d.ts +3 -0
  34. package/dist/package/entity/order-setting/v3/v3.enum.d.ts +3 -0
  35. package/dist/package/entity/payment/payment.dto.d.ts +3 -3
  36. package/dist/package/entity/restaurant/restaurant.dto.d.ts +19 -11
  37. package/dist/{queue.do-CNMuossU.js → queue.do-DcOVgeUq.js} +17139 -16655
  38. package/package.json +3 -3
  39. package/src/Entry.vue +3 -3
  40. package/src/locales/en-US.json +6 -0
  41. package/src/locales/th-TH.json +257 -0
  42. package/src/locales/zh-CN.json +6 -0
  43. package/src/main.ts +9 -1
  44. package/src/stores/iframe/index.ts +1 -1
  45. package/src/stores/kiosk/index.ts +1 -1
  46. package/src/stores/order-setting/index.ts +1 -1
  47. package/src/stores/order-setting/mapper.ts +12 -2
  48. package/src/stores/restaurant/index.ts +106 -85
  49. package/src/views/order-settings/delivery/DeliverySetting.vue +12 -12
  50. package/src/views/order-settings/delivery/inhouse/InHouseDelivery.vue +39 -35
  51. package/src/views/order-settings/dine-in/DineInSetting.vue +158 -24
  52. package/src/views/order-settings/general/GeneralSetting.vue +29 -33
  53. package/src/views/order-settings/pickup/PickUpSetting.vue +4 -2
  54. package/src/views/order-settings/pickup/PickUpSettingDialogContent.vue +23 -10
  55. package/src/views/order-settings/servicecharge/ServiceChargeSetting.vue +17 -8
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-BGZLd8T_.js";
1
+ import { _ as f } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-CLpClo-r.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -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-R4180ukF.js";
6
- import "./queue.do-CNMuossU.js";
5
+ import { r as w, g as K, D as T } from "./dayjs.min-CA-XbgTY.js";
6
+ import "./queue.do-DcOVgeUq.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-CNMuossU.js";
3
+ import { F as $, c as P } from "./queue.do-DcOVgeUq.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 T, defineAsyncComponent as te, watch as ae, resolveComponent as x, 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-BGZLd8T_.js";
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-CLpClo-r.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-CNMuossU.js";
4
+ import { F as V, a as ie, b as ce } from "./queue.do-DcOVgeUq.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-DgLlDwJK.js";
7
+ import { O as B, c as D } from "./index-C4HI1NS4.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 }, ke = { key: 1 }, Se = { key: 0 }, xe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Te = { class: "fm-typo-en-body-lg-600 block" }, we = { key: 1 }, Oe = { 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({
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", ke, "-"))
60
+ ])) : (c(), y("div", we, "-"))
61
61
  ]),
62
- l.value === d(e)("order.activated") ? (c(), y("div", Se, [
63
- o("span", xe, m(d(e)("order.dineIn")), 1),
64
- o("div", Te, [
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", we, [
69
- o("span", Oe, m(d(e)("order.dineInType")), 1),
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 = 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-DLb5nnCu.js")
302
- ), l = T("device"), n = re(), s = Le(), u = ue(), { currentRestaurant: i, restaurants: a, changeRestaurant: p } = de(), v = pe(), h = me(), K = b(() => h.breakpoints.value.xs), k = T(((F = i.value) == null ? void 0 : F._id) ?? void 0), j = b(() => a.value.map((f) => ({
311
+ () => import("./KioskSettingView-D1WdpaQN.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
- }))), S = T(((q = i.value) == null ? void 0 : q._id) ?? "");
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((w) => w._id == f);
321
- await p(g), await s.getSetting(), await n.getDevices(), k.value = f, S.value = f;
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
- k.value === void 0 && a.value.length > 0 && await U(a.value[0]._id);
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 w = x("FmButton"), G = x("FmPageHead"), J = x("FmTabs"), Q = x("FmSelect");
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(w, {
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] = (O) => l.value = O),
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: k.value,
402
+ modelValue: w.value,
393
403
  "onUpdate:modelValue": [
394
- g[1] || (g[1] = (O) => k.value = O),
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-${S.value}`,
408
- "restaurant-id": S.value,
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": S.value,
427
+ "restaurant-id": O.value,
418
428
  devices: $.value,
419
429
  "kiosk-order-setting": d(s).state.kiosk,
420
430
  dialogType: !1