@feedmepos/mf-order-setting 0.0.37 → 0.0.38

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 (34) hide show
  1. package/dist/{KioskDevicesView-D9PQ22G6.js → KioskDevicesView-DoTQRyXe.js} +1 -1
  2. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-BuwHk_0a.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-DB0dvpBG.js} +2 -2
  3. package/dist/{KioskSettingView-C98iSa7q.js → KioskSettingView-DRpVR7Ij.js} +1 -1
  4. package/dist/{KioskView-C6s4u6vt.js → KioskView-4-s6RwC6.js} +4 -4
  5. package/dist/OrderSettingsView-BqgGXVhY.js +76752 -0
  6. package/dist/{app-86WCOyBO.js → app-BbOgWoeI.js} +16 -13
  7. package/dist/app.js +1 -1
  8. package/dist/{dayjs.min-BiuO1l2_.js → dayjs.min-COLd3dVw.js} +1 -1
  9. package/dist/frontend/mf-order/src/api/menu/index.d.ts +4 -0
  10. package/dist/frontend/mf-order/src/app.d.ts +3 -0
  11. package/dist/frontend/mf-order/src/main.d.ts +3 -0
  12. package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +13 -4
  13. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  14. package/dist/{index-DZKSDqn_.js → index-BewBuJGi.js} +2 -2
  15. package/dist/menu.dto-Bf0Evx6J.js +127224 -0
  16. package/dist/package/entity/food-court/order.dto.d.ts +1952 -1952
  17. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +6 -6
  18. package/dist/package/entity/incoming-order/incoming-order.do.d.ts +24 -24
  19. package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +16 -16
  20. package/dist/package/entity/order/order.dto.d.ts +3284 -3284
  21. package/dist/package/entity/order/payment/payment.dto.d.ts +1702 -1702
  22. package/dist/package/entity/payment/payment.dto.d.ts +3 -3
  23. package/dist/package/entity/queue/queue.dto.d.ts +868 -868
  24. package/dist/package/entity/restaurant/restaurant.dto.d.ts +282 -3
  25. package/package.json +4 -4
  26. package/src/api/menu/index.ts +4 -1
  27. package/src/locales/en-US.json +1 -0
  28. package/src/locales/th-TH.json +1 -0
  29. package/src/locales/zh-CN.json +1 -0
  30. package/src/stores/menu/menu.ts +33 -14
  31. package/src/views/order-settings/OrderSettingsView.vue +30 -3
  32. package/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue +0 -1
  33. package/dist/OrderSettingsView-DFB_C-VO.js +0 -50757
  34. package/dist/menu.dto-CT1XwUKO.js +0 -127978
@@ -1,4 +1,4 @@
1
- import { ref as g, defineComponent as S, onMounted as f, resolveComponent as b, createElementBlock as h, openBlock as P, createVNode as D } from "vue";
1
+ import { ref as v, defineComponent as S, onMounted as f, resolveComponent as b, createElementBlock as h, openBlock as P, createVNode as D } from "vue";
2
2
  import "vue-router";
3
3
  const k = {
4
4
  accept: "accept",
@@ -107,6 +107,7 @@ const k = {
107
107
  eWalletDescription: "Scan QR Code to make payment with phone",
108
108
  exclusive: "Exclulsive",
109
109
  failed: "FAILED",
110
+ failedToLoadCatalogOptions: "Failed to load catalog options, please refresh again",
110
111
  failedToUpdateSetting: "Failed to update setting",
111
112
  feedMeExpress: "FeedMe express",
112
113
  feedmeExpressNotApproved: "Your payout account is under review. Please contact our staff for further assistant.",
@@ -417,6 +418,7 @@ const k = {
417
418
  eWalletDescription: "使用手机扫描二维码进行支付",
418
419
  exclusive: "不包括",
419
420
  failed: "失败",
421
+ failedToLoadCatalogOptions: "目录选项加载失败,请重新刷新",
420
422
  failedToUpdateSetting: "设置更新失败",
421
423
  feedMeExpress: "FeedMe 外卖快递",
422
424
  feedmeExpressNotApproved: "您的支付账户正在审核中,请联系我们的工作人员获取进一步的帮助。",
@@ -619,7 +621,7 @@ const k = {
619
621
  }
620
622
  }, I = {
621
623
  order: A
622
- }, x = {
624
+ }, T = {
623
625
  accept: "ยอมรับ",
624
626
  acceptedPayment: "ยอมรับการชำระเงิน",
625
627
  acceptQueue: "ยอมรับคิว",
@@ -724,6 +726,7 @@ const k = {
724
726
  eWalletDescription: "สแกนรหัส QR เพื่อชำระเงินด้วยโทรศัพท์",
725
727
  exclusive: "พิเศษ",
726
728
  failed: "ล้มเหลว",
729
+ failedToLoadCatalogOptions: "ไม่สามารถโหลดตัวเลือกแค็ตตาล็อกได้ กรุณารีเฟรชอีกครั้ง",
727
730
  failedToUpdateSetting: "ไม่สามารถอัปเดตการตั้งค่า",
728
731
  feedMeExpress: "FeedMe express",
729
732
  feedmeExpressNotApproved: "บัญชีการจ่ายเงินของคุณอยู่ระหว่างการตรวจสอบ โปรดติดต่อเจ้าหน้าที่ของเราเพื่อรับความช่วยเหลือเพิ่มเติม",
@@ -920,9 +923,9 @@ const k = {
920
923
  promotion: "โปรโมชั่น",
921
924
  voucher: "บัตรกำนัล"
922
925
  }
923
- }, T = {
924
- order: x
925
- }, m = g(null), v = () => m.value;
926
+ }, x = {
927
+ order: T
928
+ }, m = v(null), g = () => m.value;
926
929
  function O(t) {
927
930
  m.value || (m.value = t);
928
931
  }
@@ -948,7 +951,7 @@ function V({
948
951
  }) {
949
952
  const e = [], a = i / 6371 * (180 / Math.PI), r = a / Math.cos(t.lat * (Math.PI / 180));
950
953
  for (let o = 0; o < 361; o += 45) {
951
- const c = o * (Math.PI / 180), n = t.lng + r * Math.cos(c), p = t.lat + a * Math.sin(c), s = v(), l = new s.maps.LatLng(p, n, !0);
954
+ const c = o * (Math.PI / 180), n = t.lng + r * Math.cos(c), p = t.lat + a * Math.sin(c), s = g(), l = new s.maps.LatLng(p, n, !0);
952
955
  e.push(l);
953
956
  }
954
957
  return e.map((o) => ({ lat: o.lat(), lng: o.lng() }));
@@ -1008,7 +1011,7 @@ const w = { class: "flex-1 overflow-auto" }, Q = /* @__PURE__ */ S({
1008
1011
  __name: "App",
1009
1012
  setup(t) {
1010
1013
  async function i() {
1011
- if (v()) return;
1014
+ if (g()) return;
1012
1015
  const a = await new d(M.googleMap, {
1013
1016
  libraries: ["places"]
1014
1017
  }).load();
@@ -1032,27 +1035,27 @@ const w = { class: "flex-1 overflow-auto" }, Q = /* @__PURE__ */ S({
1032
1035
  {
1033
1036
  path: u.KioskRoute,
1034
1037
  name: "Kiosk",
1035
- component: () => import("./KioskView-C6s4u6vt.js")
1038
+ component: () => import("./KioskView-4-s6RwC6.js")
1036
1039
  },
1037
1040
  {
1038
1041
  path: u.KioskDeviceRoute,
1039
1042
  name: "Kiosk Device",
1040
- component: () => import("./KioskDevicesView-D9PQ22G6.js")
1043
+ component: () => import("./KioskDevicesView-DoTQRyXe.js")
1041
1044
  },
1042
1045
  {
1043
1046
  path: u.KioskOrderSettingRoute,
1044
1047
  name: "Kiosk Order Setting",
1045
- component: () => import("./KioskSettingView-C98iSa7q.js")
1048
+ component: () => import("./KioskSettingView-DRpVR7Ij.js")
1046
1049
  },
1047
1050
  {
1048
1051
  path: u.OrderSettingView,
1049
1052
  name: "Order Setting View",
1050
- component: () => import("./OrderSettingsView-DFB_C-VO.js")
1053
+ component: () => import("./OrderSettingsView-BqgGXVhY.js")
1051
1054
  }
1052
1055
  ], q = {
1053
1056
  "en-US": C,
1054
1057
  "zh-CN": I,
1055
- "th-TH": T
1058
+ "th-TH": x
1056
1059
  };
1057
1060
  export {
1058
1061
  Q as _,
@@ -1061,7 +1064,7 @@ export {
1061
1064
  B as c,
1062
1065
  U as d,
1063
1066
  W as e,
1064
- v as g,
1067
+ g,
1065
1068
  q as i,
1066
1069
  _ as r
1067
1070
  };
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as a, i as e, r as o } from "./app-86WCOyBO.js";
1
+ import { _ as a, i as e, r as o } from "./app-BbOgWoeI.js";
2
2
  export {
3
3
  a as FmApp,
4
4
  e as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { g as nt, t as kt, j as Dt } from "./menu.dto-CT1XwUKO.js";
1
+ import { g as nt, u as kt, k as Dt } from "./menu.dto-Bf0Evx6J.js";
2
2
  import { useCoreStore as Q } from "@feedmepos/mf-common";
3
3
  function rt(e, t) {
4
4
  return function() {
@@ -4,5 +4,9 @@ interface MenuV4Doc extends FdoMenuV4 {
4
4
  }
5
5
  export declare const menuApi: {
6
6
  readMenu(): Promise<MenuV4Doc>;
7
+ readCatalogOptions(restaurantId: string): Promise<Record<string, Array<{
8
+ _id: string;
9
+ name: string;
10
+ }>>>;
7
11
  };
8
12
  export {};
@@ -109,6 +109,7 @@ export declare const i18nMessages: {
109
109
  eWalletDescription: string;
110
110
  exclusive: string;
111
111
  failed: string;
112
+ failedToLoadCatalogOptions: string;
112
113
  failedToUpdateSetting: string;
113
114
  feedMeExpress: string;
114
115
  feedmeExpressNotApproved: string;
@@ -420,6 +421,7 @@ export declare const i18nMessages: {
420
421
  eWalletDescription: string;
421
422
  exclusive: string;
422
423
  failed: string;
424
+ failedToLoadCatalogOptions: string;
423
425
  failedToUpdateSetting: string;
424
426
  feedMeExpress: string;
425
427
  feedmeExpressNotApproved: string;
@@ -728,6 +730,7 @@ export declare const i18nMessages: {
728
730
  eWalletDescription: string;
729
731
  exclusive: string;
730
732
  failed: string;
733
+ failedToLoadCatalogOptions: string;
731
734
  failedToUpdateSetting: string;
732
735
  feedMeExpress: string;
733
736
  feedmeExpressNotApproved: string;
@@ -108,6 +108,7 @@ export declare const i18nMessages: {
108
108
  eWalletDescription: string;
109
109
  exclusive: string;
110
110
  failed: string;
111
+ failedToLoadCatalogOptions: string;
111
112
  failedToUpdateSetting: string;
112
113
  feedMeExpress: string;
113
114
  feedmeExpressNotApproved: string;
@@ -419,6 +420,7 @@ export declare const i18nMessages: {
419
420
  eWalletDescription: string;
420
421
  exclusive: string;
421
422
  failed: string;
423
+ failedToLoadCatalogOptions: string;
422
424
  failedToUpdateSetting: string;
423
425
  feedMeExpress: string;
424
426
  feedmeExpressNotApproved: string;
@@ -727,6 +729,7 @@ export declare const i18nMessages: {
727
729
  eWalletDescription: string;
728
730
  exclusive: string;
729
731
  failed: string;
732
+ failedToLoadCatalogOptions: string;
730
733
  failedToUpdateSetting: string;
731
734
  feedMeExpress: string;
732
735
  feedmeExpressNotApproved: string;
@@ -8,6 +8,12 @@ interface MenuState {
8
8
  } & FdoMenuV4;
9
9
  currentCatalogId: string | null;
10
10
  currentSchedulerId: string;
11
+ catalogOptions: {
12
+ label: string;
13
+ value: string | null;
14
+ }[];
15
+ loadingCatalogOptions: boolean;
16
+ catalogOptionsError: string | null;
11
17
  }
12
18
  export declare function sortPosition<T extends FdoHasPosition>(arr: T[], elseIf: keyof T | ((v: T) => string)): T[];
13
19
  export declare function categorizedItems(categories: (Omit<FdoMenuV4Category, '_id'> & {
@@ -1138,11 +1144,13 @@ export declare const useMenuStore: import("pinia").StoreDefinition<"menu", MenuS
1138
1144
  };
1139
1145
  currentCatalogId: string | null;
1140
1146
  currentSchedulerId: string;
1147
+ catalogOptions: {
1148
+ label: string;
1149
+ value: string | null;
1150
+ }[];
1151
+ loadingCatalogOptions: boolean;
1152
+ catalogOptionsError: string | null;
1141
1153
  } & import("pinia").PiniaCustomStateProperties<MenuState>) => FdoMenuV4Catalog | undefined;
1142
- catalogOptions(): {
1143
- label: string;
1144
- value: string | null;
1145
- }[];
1146
1154
  categories(): (Omit<FdoMenuV4Category, '_id'> & {
1147
1155
  _id: string | null;
1148
1156
  })[];
@@ -1155,6 +1163,7 @@ export declare const useMenuStore: import("pinia").StoreDefinition<"menu", MenuS
1155
1163
  rules(): MenuRules;
1156
1164
  }, {
1157
1165
  readMenu(): Promise<void>;
1166
+ loadCatalogOptions(restaurantId: string): Promise<void>;
1158
1167
  selectCatalog(id: string | null): void;
1159
1168
  }>;
1160
1169
  export {};