@feedmepos/mf-order-setting 0.0.108 → 0.0.109

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 (57) hide show
  1. package/dist/{DisplaySystemView-ChGTO4v2.js → DisplaySystemView-hHA7fMQR.js} +4 -4
  2. package/dist/{FoodCourtInvitationsView-F1LiGOR8.js → FoodCourtInvitationsView-C_x0pvnB.js} +4 -4
  3. package/dist/{FoodCourtOrderSettingsView-D5M5kFAl.js → FoodCourtOrderSettingsView-BMRJe6tf.js} +1 -1
  4. package/dist/FoodCourtOrdersView-DlGJnMOd.js +1433 -0
  5. package/dist/{FoodCourtStallsView-jz1xnZus.js → FoodCourtStallsView-BAzlMqlj.js} +2 -2
  6. package/dist/{FoodCourtStatusView-DC3qHL1L.js → FoodCourtStatusView-CRkk2f66.js} +1 -1
  7. package/dist/{KioskDevicesView-B9w4izOk.js → KioskDevicesView-COuR39YQ.js} +1 -1
  8. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-XJm-f2JF.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CAcDjPbk.js} +5 -5
  9. package/dist/{KioskSettingView-Bmfvz0Kz.js → KioskSettingView-DsIzIbYf.js} +3 -3
  10. package/dist/{KioskView-B0WlDEsG.js → KioskView-B1sn-D6k.js} +8 -8
  11. package/dist/{OrderSettingsView-BF89-eSB.js → OrderSettingsView-BvYGRXfI.js} +10 -10
  12. package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang-BqPQnAVb.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-COUKtg5k.js} +1 -1
  13. package/dist/{app-B4ew9SMz.js → app-utsChJtE.js} +71 -15
  14. package/dist/app.js +1 -1
  15. package/dist/{dayjs.min-BsZk4QHK.js → dayjs.min-C9WrpSe-.js} +1 -1
  16. package/dist/{featureFlag-CFlCo4uv.js → featureFlag-CHPFyNAw.js} +1 -1
  17. package/dist/frontend/mf-order/src/api/food-court/index.d.ts +29 -2
  18. package/dist/frontend/mf-order/src/app.d.ts +56 -0
  19. package/dist/frontend/mf-order/src/main.d.ts +56 -0
  20. package/dist/frontend/mf-order/src/views/food-court/food-court-order.d.ts +12 -1
  21. package/dist/frontend/mf-order/src/views/food-court/orders/FoodCourtOrderSheet.vue.d.ts +3 -1
  22. package/dist/frontend/mf-order/src/views/food-court/orders/FoodCourtReceiptDialog.vue.d.ts +17 -0
  23. package/dist/frontend/mf-order/src/views/food-court/orders/food-court-receipt.d.ts +20 -0
  24. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  25. package/dist/index--4Q-LHMq.js +6854 -0
  26. package/dist/{index-D0vTvoQN.js → index-BaABuG0J.js} +1 -1
  27. package/dist/{index-Z1ZA897U.js → index-CVxg__RB.js} +1 -1
  28. package/dist/index-Ck6Ef5sR.js +5 -0
  29. package/dist/{index-C6c28uBZ.js → index-D349Zd9k.js} +35 -23
  30. package/dist/{index-DLeX1p1o.js → index-DC8V_7zz.js} +2 -2
  31. package/dist/{index-D4_zVJPi.js → index-DVJkdWEG.js} +4 -4
  32. package/dist/index-iSsU83r4.js +46278 -0
  33. package/dist/{order.dto-DrlhCvYK.js → order.dto-D4yp5hGF.js} +47 -43
  34. package/dist/package/entity/alert/suggestion.dto.d.ts +2 -2
  35. package/dist/package/entity/food-court/order-v2.dto.d.ts +5 -5
  36. package/dist/package/entity/kiosk/kiosk.do.d.ts +16 -16
  37. package/dist/package/entity/kiosk/kiosk.dto.d.ts +19 -19
  38. package/dist/package/entity/order/order.do.d.ts +3 -3
  39. package/dist/package/entity/order/order.dto.d.ts +10 -10
  40. package/dist/package/entity/order/order.enum.d.ts +1 -1
  41. package/dist/package/entity/order-platform/deliveroo/deliveroo.menu.dto.d.ts +30 -30
  42. package/dist/{useInternalUser-BaSqwN4K.js → useInternalUser-CeoNePyw.js} +1 -1
  43. package/package.json +4 -1
  44. package/src/api/food-court/index.ts +42 -4
  45. package/src/locales/en-US.json +15 -1
  46. package/src/locales/ja-JP.json +15 -1
  47. package/src/locales/th-TH.json +15 -1
  48. package/src/locales/zh-CN.json +15 -1
  49. package/src/views/food-court/FoodCourtOrdersView.vue +135 -16
  50. package/src/views/food-court/food-court-order.spec.ts +16 -1
  51. package/src/views/food-court/food-court-order.ts +23 -1
  52. package/src/views/food-court/orders/FoodCourtOrderSheet.vue +29 -11
  53. package/src/views/food-court/orders/FoodCourtReceiptDialog.vue +113 -0
  54. package/src/views/food-court/orders/food-court-receipt.spec.ts +43 -0
  55. package/src/views/food-court/orders/food-court-receipt.ts +49 -0
  56. package/vite.config.ts +13 -0
  57. package/dist/FoodCourtOrdersView-BQrESoTH.js +0 -1190
@@ -1,7 +1,7 @@
1
1
  var dn = Object.defineProperty;
2
2
  var pn = (e, t, n) => t in e ? dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var je = (e, t, n) => pn(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { e as Ct } from "./app-B4ew9SMz.js";
4
+ import { e as Ct } from "./app-utsChJtE.js";
5
5
  import { useCoreStore as Y } from "@feedmepos/mf-common";
6
6
  function Ut(e, t) {
7
7
  return function() {
@@ -1,4 +1,4 @@
1
- import { c as Le, j as ea } from "./app-B4ew9SMz.js";
1
+ import { c as Le, j as ea } from "./app-utsChJtE.js";
2
2
  function Ct(me) {
3
3
  throw new Error('Could not dynamically require "' + me + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }
@@ -0,0 +1,5 @@
1
+ import { x as r } from "./app-utsChJtE.js";
2
+ var t = r();
3
+ export {
4
+ t as d
5
+ };
@@ -1,24 +1,24 @@
1
- import { g as a, b as o } from "./index-D0vTvoQN.js";
2
- const n = (t) => o(`/food-court-v2/${t}`), u = {
1
+ import { g as a, b as i } from "./index-BaABuG0J.js";
2
+ const s = (t) => i(`/food-court-v2/${t}`), u = {
3
3
  async getDineIn(t) {
4
- return a(await n(t).get("/dine-in"));
4
+ return a(await s(t).get("/dine-in"));
5
5
  },
6
6
  async updateDineIn(t, e) {
7
7
  return a(
8
- await n(t).put("/dine-in", e)
8
+ await s(t).put("/dine-in", e)
9
9
  );
10
10
  },
11
11
  async getOrderNumber(t) {
12
12
  return a(
13
- await n(t).get("/order-number")
13
+ await s(t).get("/order-number")
14
14
  );
15
15
  },
16
16
  async updateOrderNumber(t, e) {
17
17
  return a(
18
- await n(t).put("/order-number", e)
18
+ await s(t).put("/order-number", e)
19
19
  );
20
20
  }
21
- }, r = (t) => o(`/foodcourt-v2/${t}`), c = {
21
+ }, r = (t) => i(`/foodcourt-v2/${t}`), c = {
22
22
  /** Every row of the court, any status, in court order. */
23
23
  async listMembers(t) {
24
24
  return a(
@@ -42,7 +42,7 @@ const n = (t) => o(`/food-court-v2/${t}`), u = {
42
42
  await r(t).post("/members/remove", { memberId: e })
43
43
  );
44
44
  }
45
- }, d = {
45
+ }, p = {
46
46
  /** Every code of the court, any status, newest first. */
47
47
  async listJoinCodes(t) {
48
48
  return a(
@@ -70,11 +70,11 @@ const n = (t) => o(`/food-court-v2/${t}`), u = {
70
70
  * them), while it is unused or its request waits for approval; the stall
71
71
  * joins with them when approved. Any other code is 400 JOIN_CODE_NOT_EDITABLE.
72
72
  */
73
- async updateJoinCode(t, e, s) {
73
+ async updateJoinCode(t, e, n) {
74
74
  return a(
75
75
  await r(t).post("/join-codes/update", {
76
76
  joinCodeId: e,
77
- stall: s
77
+ stall: n
78
78
  })
79
79
  );
80
80
  },
@@ -96,7 +96,7 @@ const n = (t) => o(`/food-court-v2/${t}`), u = {
96
96
  await r(t).post("/join-codes/decline", { joinCodeId: e })
97
97
  );
98
98
  }
99
- }, p = {
99
+ }, m = {
100
100
  async getStatus(t) {
101
101
  return a(
102
102
  await r(t).get("/status")
@@ -111,37 +111,49 @@ const n = (t) => o(`/food-court-v2/${t}`), u = {
111
111
  await r(t).put("/status", { status: e })
112
112
  );
113
113
  }
114
- }, m = {
114
+ }, w = {
115
115
  async listOrders(t, e) {
116
- return a(
117
- await n(t).get("/orders", {
118
- params: { ...e, status: e.status.join(",") }
116
+ var n, o;
117
+ return a(
118
+ await s(t).get("/orders", {
119
+ params: {
120
+ ...e,
121
+ status: e.status.join(","),
122
+ restaurantId: (n = e.restaurantId) != null && n.length ? e.restaurantId.join(",") : void 0,
123
+ search: ((o = e.search) == null ? void 0 : o.trim()) || void 0
124
+ }
119
125
  })
120
126
  );
121
127
  },
122
128
  async getOrder(t, e) {
123
129
  return a(
124
- await n(t).get(`/orders/${e}`)
130
+ await s(t).get(`/orders/${e}`)
125
131
  );
126
132
  },
127
133
  /**
128
- * Every order the list's filters match, one row per stall order (KDI-4942).
134
+ * Every order the list's filters match, one row per stall order (KDI-4942);
135
+ * with stalls picked, only those stalls' rows (KDI-4941).
129
136
  * Refused (400) past 31 days with code EXPORT_RANGE_TOO_LONG, or past 50,000
130
137
  * rows with EXPORT_TOO_MANY_ROWS.
131
138
  */
132
139
  async exportOrders(t, e) {
133
- return a(
134
- await n(t).get("/order-export", {
135
- params: { ...e, status: e.status.join(",") }
140
+ var n;
141
+ return a(
142
+ await s(t).get("/order-export", {
143
+ params: {
144
+ ...e,
145
+ status: e.status.join(","),
146
+ restaurantId: (n = e.restaurantId) != null && n.length ? e.restaurantId.join(",") : void 0
147
+ }
136
148
  })
137
149
  );
138
150
  }
139
151
  };
140
152
  export {
141
153
  u as F,
142
- d as a,
154
+ p as a,
143
155
  c as b,
144
- p as c,
145
- m as d,
156
+ m as c,
157
+ w as d,
146
158
  r as f
147
159
  };
@@ -1,5 +1,5 @@
1
- import { g as s, s as o, S as g, r as u } from "./index-D0vTvoQN.js";
2
- import "./order.dto-DrlhCvYK.js";
1
+ import { g as s, s as o, S as g, r as u } from "./index-BaABuG0J.js";
2
+ import "./order.dto-D4yp5hGF.js";
3
3
  function S(t, n = () => !1) {
4
4
  var i;
5
5
  const e = (i = t.queueSettings) == null ? void 0 : i.codeSettings;
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as Q, ref as V, resolveComponent as R, openBlock as f, createElementBlock as T, createElementVNode as w, toDisplayString as S, createVNode as $, unref as x, createBlock as z, computed as U, watch as oe, onMounted as re, withCtx as N, createTextVNode as se, createCommentVNode as E, Fragment as ie, renderList as ue, renderSlot as ae } from "vue";
2
- import { e as g } from "./app-B4ew9SMz.js";
2
+ import { e as g } from "./app-utsChJtE.js";
3
3
  import { useDialog as le } from "@feedmepos/ui-library";
4
4
  import { useI18n as Y, useCoreStore as ne } from "@feedmepos/mf-common";
5
5
  import { defineStore as de } from "pinia";
6
- import { r as O, g as a, b as F, S as H } from "./index-D0vTvoQN.js";
7
- import "./order.dto-DrlhCvYK.js";
8
- import { a as q } from "./index-Z1ZA897U.js";
6
+ import { r as O, g as a, b as F, S as H } from "./index-BaABuG0J.js";
7
+ import "./order.dto-D4yp5hGF.js";
8
+ import { a as q } from "./index-CVxg__RB.js";
9
9
  const ce = /* @__PURE__ */ Q({
10
10
  __name: "OfflinePaymentTypeDialogContent",
11
11
  props: {