@feedmepos/mf-order-setting 0.0.95 → 0.0.96

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 (88) hide show
  1. package/dist/{DisplaySystemView-rCw3DE0u.js → DisplaySystemView-BH8SkCOF.js} +4 -4
  2. package/dist/FoodCourtInvitationsView-3cA0Z-5m.js +383 -0
  3. package/dist/FoodCourtOrderSettingsView-DysrLZJD.js +294 -0
  4. package/dist/FoodCourtOrdersView-CbZqHIXO.js +544 -0
  5. package/dist/FoodCourtStallsView-CTZzPUQ6.js +635 -0
  6. package/dist/FoodCourtStatusView-C71y7ghx.js +113 -0
  7. package/dist/{KioskDevicesView-B4dgvMq_.js → KioskDevicesView-BJpbuSzp.js} +1 -1
  8. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-B-Oi8ZLq.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CQFpwn28.js} +7 -6
  9. package/dist/{KioskSettingView-DXx6wQQQ.js → KioskSettingView-CJxhMf7N.js} +3 -3
  10. package/dist/{KioskView-BmSHCl13.js → KioskView-BZsdRID1.js} +6 -6
  11. package/dist/{OrderSettingsView-9NOSAxLf.js → OrderSettingsView-gnyXaJjf.js} +10631 -10601
  12. package/dist/{app-y20uA-tu.js → app-CeEFBB-w.js} +4484 -3672
  13. package/dist/app.js +1 -1
  14. package/dist/dayjs.min-zBHHlxAP.js +285 -0
  15. package/dist/{featureFlag-GHmH1G2d.js → featureFlag-BTY_R78k.js} +1 -1
  16. package/dist/food-court-member-piX3gesl.js +212 -0
  17. package/dist/frontend/mf-order/src/api/food-court/index.d.ts +269 -0
  18. package/dist/frontend/mf-order/src/api/food-court/invitation.d.ts +55 -0
  19. package/dist/frontend/mf-order/src/app.d.ts +676 -0
  20. package/dist/frontend/mf-order/src/main.d.ts +676 -0
  21. package/dist/frontend/mf-order/src/stores/business/index.d.ts +3 -3
  22. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +6 -0
  23. package/dist/frontend/mf-order/src/utils/constants/route.d.ts +4 -0
  24. package/dist/frontend/mf-order/src/views/food-court/FoodCourtInvitationsView.vue.d.ts +2 -0
  25. package/dist/frontend/mf-order/src/views/food-court/FoodCourtOrdersView.vue.d.ts +2 -0
  26. package/dist/frontend/mf-order/src/views/food-court/FoodCourtStallsView.vue.d.ts +2 -0
  27. package/dist/frontend/mf-order/src/views/food-court/FoodCourtStatusView.vue.d.ts +2 -0
  28. package/dist/frontend/mf-order/src/views/food-court/food-court-member.d.ts +150 -0
  29. package/dist/frontend/mf-order/src/views/food-court/food-court-order.d.ts +66 -0
  30. package/dist/frontend/mf-order/src/views/food-court/invitations/JoinFoodCourtCard.vue.d.ts +13 -0
  31. package/dist/frontend/mf-order/src/views/food-court/invitations/MembershipRowActions.vue.d.ts +11 -0
  32. package/dist/frontend/mf-order/src/views/food-court/orders/FoodCourtOrderSheet.vue.d.ts +16 -0
  33. package/dist/frontend/mf-order/src/views/food-court/stalls/EditStallSheet.vue.d.ts +15 -0
  34. package/dist/frontend/mf-order/src/views/food-court/stalls/GenerateJoinCodeSheet.vue.d.ts +21 -0
  35. package/dist/frontend/mf-order/src/views/food-court/stalls/StallAssignmentFields.vue.d.ts +16 -0
  36. package/dist/frontend/mf-order/src/views/food-court/stalls/StallRowActions.vue.d.ts +11 -0
  37. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  38. package/dist/{index-CmdP_QXF.js → index-601eG3_R.js} +1 -1
  39. package/dist/index-BeBZTUcq.js +122 -0
  40. package/dist/index-BtudnkMi.js +1065 -0
  41. package/dist/{index-BlG6mIU4.js → index-CGiWgTn1.js} +38 -37
  42. package/dist/{index-wMygvJpP.js → index-D5nv3ncu.js} +2 -2
  43. package/dist/index-DLDihONy.js +25142 -0
  44. package/dist/order.dto-JM_fmWnQ.js +14842 -0
  45. package/dist/package/entity/food-court/food-court.do.d.ts +1 -1
  46. package/dist/package/entity/food-court/food-court.dto.d.ts +7 -7
  47. package/dist/package/entity/food-court/order-v2.dto.d.ts +4 -4
  48. package/dist/package/entity/order-platform/order-platform.dto.d.ts +190 -92
  49. package/dist/package/entity/order-setting/order-setting.do.d.ts +10 -0
  50. package/dist/package/entity/order-setting/order-setting.dto.d.ts +20 -0
  51. package/dist/package/entity/order-setting/queue/queue.do.d.ts +22 -0
  52. package/dist/package/entity/order-setting/queue/queue.dto.d.ts +7 -0
  53. package/dist/package/entity/queue/queue.do.d.ts +1 -0
  54. package/dist/package/entity/queue/queue.dto.d.ts +8 -8
  55. package/dist/package/entity/restaurant/restaurant.dto.d.ts +20 -0
  56. package/dist/search-BAPEUu1R.js +15 -0
  57. package/dist/useFoodCourtContext-2p5sJMcB.js +16 -0
  58. package/package.json +3 -3
  59. package/src/api/food-court/index.ts +357 -0
  60. package/src/api/food-court/invitation.ts +81 -0
  61. package/src/locales/en-US.json +171 -2
  62. package/src/locales/ja-JP.json +171 -2
  63. package/src/locales/th-TH.json +171 -2
  64. package/src/locales/zh-CN.json +171 -2
  65. package/src/router/routes.ts +44 -0
  66. package/src/utils/constants/route.ts +8 -0
  67. package/src/views/food-court/FoodCourtInvitationsView.vue +187 -0
  68. package/src/views/food-court/FoodCourtOrdersView.vue +263 -0
  69. package/src/views/food-court/FoodCourtStallsView.vue +369 -0
  70. package/src/views/food-court/FoodCourtStatusView.vue +111 -0
  71. package/src/views/food-court/food-court-member.spec.ts +339 -0
  72. package/src/views/food-court/food-court-member.ts +397 -0
  73. package/src/views/food-court/food-court-order.spec.ts +137 -0
  74. package/src/views/food-court/food-court-order.ts +206 -0
  75. package/src/views/food-court/invitations/JoinFoodCourtCard.vue +201 -0
  76. package/src/views/food-court/invitations/MembershipRowActions.vue +19 -0
  77. package/src/views/food-court/orders/FoodCourtOrderSheet.vue +226 -0
  78. package/src/views/food-court/stalls/EditStallSheet.vue +91 -0
  79. package/src/views/food-court/stalls/GenerateJoinCodeSheet.vue +281 -0
  80. package/src/views/food-court/stalls/StallAssignmentFields.vue +36 -0
  81. package/src/views/food-court/stalls/StallRowActions.vue +31 -0
  82. package/src/views/order-settings/OrderSettingsView.vue +2 -4
  83. package/src/views/order-settings/dine-in/DineInSetting.vue +1 -4
  84. package/src/views/order-settings/queue/QueueSetting.vue +27 -0
  85. package/src/views/order-settings/reservation/ReservationSetting.vue +8 -0
  86. package/dist/FoodCourtOrderSettingsView-DUQXCKzB.js +0 -323
  87. package/dist/index-CUI1lL9F.js +0 -1347
  88. package/dist/order.dto-CyHtvyly.js +0 -38829
@@ -1,10 +1,11 @@
1
- import { defineComponent as H, ref as V, resolveComponent as R, openBlock as m, createElementBlock as T, createElementVNode as v, toDisplayString as S, createVNode as b, 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 le, renderSlot as ae } from "vue";
2
- import { e as g } from "./app-y20uA-tu.js";
1
+ import { defineComponent as H, ref as V, resolveComponent as R, openBlock as f, createElementBlock as T, createElementVNode as v, toDisplayString as S, createVNode as b, 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 le, renderSlot as ae } from "vue";
2
+ import { e as g } from "./app-CeEFBB-w.js";
3
3
  import { useDialog as ue } 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 F, g as a, b as O, a as Q } from "./index-CmdP_QXF.js";
7
- import { f as q } from "./order.dto-CyHtvyly.js";
6
+ import { r as F, g as a, b as O, a as Q } from "./index-601eG3_R.js";
7
+ import "./order.dto-JM_fmWnQ.js";
8
+ import { a as q } from "./index-DLDihONy.js";
8
9
  const ce = /* @__PURE__ */ H({
9
10
  __name: "OfflinePaymentTypeDialogContent",
10
11
  props: {
@@ -20,9 +21,9 @@ const ce = /* @__PURE__ */ H({
20
21
  function C(w) {
21
22
  i("update:instructionValue", w);
22
23
  }
23
- return (w, f) => {
24
+ return (w, m) => {
24
25
  const P = R("FmTextField"), c = R("FmTextarea");
25
- return m(), T("div", null, [
26
+ return f(), T("div", null, [
26
27
  v("span", null, S($.name), 1),
27
28
  b(P, {
28
29
  "model-value": y.value,
@@ -30,7 +31,7 @@ const ce = /* @__PURE__ */ H({
30
31
  placeholder: x(r)("order.enterPaymentName"),
31
32
  rules: [(u) => !!u || x(r)("order.fieldCannotBeEmpty")]
32
33
  }, null, 8, ["model-value", "placeholder", "rules"]),
33
- f[0] || (f[0] = v("div", { class: "mb-12" }, null, -1)),
34
+ m[0] || (m[0] = v("div", { class: "mb-12" }, null, -1)),
34
35
  v("span", null, S($.instruction), 1),
35
36
  b(c, {
36
37
  "model-value": y.value,
@@ -51,37 +52,37 @@ const ce = /* @__PURE__ */ H({
51
52
  contentComponentProps: {
52
53
  name: r("order.name"),
53
54
  instruction: r("order.instruction"),
54
- "onUpdate:nameValue": (f) => {
55
- i.value = f;
55
+ "onUpdate:nameValue": (m) => {
56
+ i.value = m;
56
57
  },
57
- "onUpdate:instructionValue": (f) => {
58
- y.value = f;
58
+ "onUpdate:instructionValue": (m) => {
59
+ y.value = m;
59
60
  }
60
61
  },
61
62
  primaryActions: { text: r("order.add"), close: !0 },
62
63
  secondaryActions: { text: r("order.cancel"), close: !0 }
63
64
  }).onPrimary(async () => {
64
- const f = {
65
+ const m = {
65
66
  name: i.value,
66
67
  instruction: y.value
67
68
  };
68
- await C(f);
69
+ await C(m);
69
70
  });
70
71
  };
71
- async function C(f) {
72
- w("add:offline-payment-type", f);
72
+ async function C(m) {
73
+ w("add:offline-payment-type", m);
73
74
  }
74
75
  const w = t;
75
- return (f, P) => {
76
+ return (m, P) => {
76
77
  const c = R("FmButton");
77
- return m(), z(c, {
78
+ return f(), z(c, {
78
79
  label: x(r)("order.editOfflinePayment"),
79
80
  onClick: D,
80
81
  variant: "plain"
81
82
  }, null, 8, ["label"]);
82
83
  };
83
84
  }
84
- }), ye = { class: "flex flex-col gap-3" }, fe = { class: "flex-grow fm-typo-en-title-sm-600" }, me = { class: "flex flex-row items-center" }, ge = { key: 0 }, ve = { key: 0 }, we = { class: "font-bold" }, Pe = { class: "mt-3" }, he = {
85
+ }), ye = { class: "flex flex-col gap-3" }, me = { class: "flex-grow fm-typo-en-title-sm-600" }, fe = { class: "flex flex-row items-center" }, ge = { key: 0 }, ve = { key: 0 }, we = { class: "font-bold" }, Pe = { class: "mt-3" }, he = {
85
86
  key: 1,
86
87
  class: "text-fm-color-secondary-salmon fm-typo-en-body-sm-600 ml-7"
87
88
  }, be = {
@@ -90,7 +91,7 @@ const ce = /* @__PURE__ */ H({
90
91
  }, $e = {
91
92
  key: 4,
92
93
  class: "text-fm-color-secondary-salmon fm-typo-en-body-sm-600 ml-7"
93
- }, Ve = /* @__PURE__ */ H({
94
+ }, Ie = /* @__PURE__ */ H({
94
95
  __name: "PaymentType",
95
96
  props: {
96
97
  paymentTypes: {
@@ -131,7 +132,7 @@ const ce = /* @__PURE__ */ H({
131
132
  i.offlinePaymentTypes.filter((d, p) => p !== l)
132
133
  );
133
134
  }
134
- const C = U(() => (i.paymentTypes || []).includes(g.F_ORDER_PAYMENT_TYPE.enum.ePayment)), w = U(() => (i.paymentTypes || []).includes(g.F_ORDER_PAYMENT_TYPE.enum.credit)), f = U(() => {
135
+ const C = U(() => (i.paymentTypes || []).includes(g.F_ORDER_PAYMENT_TYPE.enum.ePayment)), w = U(() => (i.paymentTypes || []).includes(g.F_ORDER_PAYMENT_TYPE.enum.credit)), m = U(() => {
135
136
  const l = i.paymentTypes || [], d = i.offlinePaymentTypes || [];
136
137
  return l.includes(g.F_ORDER_PAYMENT_TYPE.enum.cash) || d.length > 0;
137
138
  }), P = V(!1), c = V([]), u = U(() => [
@@ -156,7 +157,7 @@ const ce = /* @__PURE__ */ H({
156
157
  }
157
158
  ]), I = () => {
158
159
  const l = [];
159
- f.value && l.push("offline"), C.value && l.push("e-payment"), w.value && l.push("credit"), c.value = l;
160
+ m.value && l.push("offline"), C.value && l.push("e-payment"), w.value && l.push("credit"), c.value = l;
160
161
  let d = 0;
161
162
  i.showDisabledOptions ? d = u.value.length : d = u.value.filter((p) => !(p.value === "e-payment" && !i.allowEPayment || p.value === "credit" && !i.allowCredit)).length, P.value = l.length === d && l.length > 0;
162
163
  };
@@ -184,8 +185,8 @@ const ce = /* @__PURE__ */ H({
184
185
  }), (l, d) => {
185
186
  var L, J, K, W, X, Z, ee;
186
187
  const p = R("FmCheckbox"), o = R("FmCardSection"), s = R("FmCard"), G = R("FmButton");
187
- return m(), T("div", ye, [
188
- v("div", fe, S(x(r)("order.acceptedPayment")), 1),
188
+ return f(), T("div", ye, [
189
+ v("div", me, S(x(r)("order.acceptedPayment")), 1),
189
190
  b(p, {
190
191
  value: "",
191
192
  "model-value": P.value,
@@ -193,7 +194,7 @@ const ce = /* @__PURE__ */ H({
193
194
  indeterminate: c.value.length > 0 && !P.value,
194
195
  "onUpdate:modelValue": B
195
196
  }, null, 8, ["model-value", "label", "indeterminate"]),
196
- v("div", me, [
197
+ v("div", fe, [
197
198
  b(p, {
198
199
  modelValue: c.value,
199
200
  "onUpdate:modelValue": [
@@ -204,8 +205,8 @@ const ce = /* @__PURE__ */ H({
204
205
  value: u.value[0].value
205
206
  }, null, 8, ["modelValue", "label", "value"])
206
207
  ]),
207
- c.value.includes(u.value[0].value) ? (m(), T("div", ge, [
208
- ((L = e.offlinePaymentTypes) == null ? void 0 : L.length) === 0 ? (m(), T("div", ve, [
208
+ c.value.includes(u.value[0].value) ? (f(), T("div", ge, [
209
+ ((L = e.offlinePaymentTypes) == null ? void 0 : L.length) === 0 ? (f(), T("div", ve, [
209
210
  b(s, { variant: "outlined" }, {
210
211
  default: N(() => [
211
212
  b(o, null, {
@@ -218,7 +219,7 @@ const ce = /* @__PURE__ */ H({
218
219
  _: 1
219
220
  })
220
221
  ])) : E("", !0),
221
- (m(!0), T(ie, null, le(e.offlinePaymentTypes, (h, te) => (m(), T("p", { key: te }, [
222
+ (f(!0), T(ie, null, le(e.offlinePaymentTypes, (h, te) => (f(), T("p", { key: te }, [
222
223
  b(s, {
223
224
  variant: "outlined",
224
225
  class: "mb-3"
@@ -246,7 +247,7 @@ const ce = /* @__PURE__ */ H({
246
247
  }, 1024)
247
248
  ]))), 128)),
248
249
  v("div", Pe, [
249
- e.offlinePaymentTypes.length === 0 || e.showDisabledOptions ? (m(), z(pe, {
250
+ e.offlinePaymentTypes.length === 0 || e.showDisabledOptions ? (f(), z(pe, {
250
251
  key: 0,
251
252
  "onAdd:offlinePaymentType": d[1] || (d[1] = (h) => y("update:offlinePaymentTypes", [...i.offlinePaymentTypes, h]))
252
253
  })) : E("", !0)
@@ -262,12 +263,12 @@ const ce = /* @__PURE__ */ H({
262
263
  value: u.value[1].value,
263
264
  disabled: u.value[1].disable
264
265
  }, null, 8, ["modelValue", "label", "value", "disabled"]),
265
- u.value[1].suffix ? (m(), T("div", he, S((W = (K = (J = u.value) == null ? void 0 : J[1]) == null ? void 0 : K.suffix) == null ? void 0 : W.text), 1)) : E("", !0),
266
+ u.value[1].suffix ? (f(), T("div", he, S((W = (K = (J = u.value) == null ? void 0 : J[1]) == null ? void 0 : K.suffix) == null ? void 0 : W.text), 1)) : E("", !0),
266
267
  ae(l.$slots, "e-payment-note"),
267
- c.value.includes("e-payment") ? (m(), T("div", be, [
268
+ c.value.includes("e-payment") ? (f(), T("div", be, [
268
269
  ae(l.$slots, "e-payment-content")
269
270
  ])) : E("", !0),
270
- e.allowCredit || e.showDisabledOptions ? (m(), z(p, {
271
+ e.allowCredit || e.showDisabledOptions ? (f(), z(p, {
271
272
  key: 3,
272
273
  modelValue: c.value,
273
274
  "onUpdate:modelValue": [
@@ -278,7 +279,7 @@ const ce = /* @__PURE__ */ H({
278
279
  value: u.value[2].value,
279
280
  disabled: u.value[2].disable
280
281
  }, null, 8, ["modelValue", "label", "value", "disabled"])) : E("", !0),
281
- u.value[2].suffix ? (m(), T("div", $e, S((ee = (Z = (X = u.value) == null ? void 0 : X[2]) == null ? void 0 : Z.suffix) == null ? void 0 : ee.text), 1)) : E("", !0)
282
+ u.value[2].suffix ? (f(), T("div", $e, S((ee = (Z = (X = u.value) == null ? void 0 : X[2]) == null ? void 0 : Z.suffix) == null ? void 0 : ee.text), 1)) : E("", !0)
282
283
  ]);
283
284
  };
284
285
  }
@@ -661,7 +662,7 @@ function Te() {
661
662
  restaurantSettings: {}
662
663
  };
663
664
  }
664
- const Ie = de("restaurant", () => {
665
+ const ke = de("restaurant", () => {
665
666
  const e = ne(), t = V(Te()), r = U(
666
667
  () => {
667
668
  var o;
@@ -690,7 +691,7 @@ const Ie = de("restaurant", () => {
690
691
  async function w(o) {
691
692
  await A.updateDriveThruSetting(o);
692
693
  }
693
- async function f(o, s) {
694
+ async function m(o, s) {
694
695
  await _.integratedDelivery.updateInhouse(o, s);
695
696
  }
696
697
  async function P(o, s) {
@@ -738,7 +739,7 @@ const Ie = de("restaurant", () => {
738
739
  updateDineInSetting: D,
739
740
  updatePickupSetting: C,
740
741
  updateDriveThruSetting: w,
741
- updateInhouseDelivery: f,
742
+ updateInhouseDelivery: m,
742
743
  updateFeedmeDelivery: P,
743
744
  updateIntegratedFoodpandaDelivery: c,
744
745
  updateIntegratedGrabfoodDelivery: u,
@@ -751,8 +752,8 @@ const Ie = de("restaurant", () => {
751
752
  };
752
753
  });
753
754
  export {
754
- Ve as _,
755
+ Ie as _,
755
756
  A as a,
756
757
  _ as r,
757
- Ie as u
758
+ ke as u
758
759
  };
@@ -1,5 +1,5 @@
1
- import { g as n, s as a, a as r, r as e } from "./index-CmdP_QXF.js";
2
- import "./order.dto-CyHtvyly.js";
1
+ import { g as n, s as a, a as r, r as e } from "./index-601eG3_R.js";
2
+ import "./order.dto-JM_fmWnQ.js";
3
3
  async function i() {
4
4
  const t = await e().get("/order-settings");
5
5
  return n(t);