@feedmepos/mf-order-setting 0.0.98 → 0.0.99

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 (66) hide show
  1. package/dist/{DisplaySystemView-B3xrnpj3.js → DisplaySystemView-Brrexhuz.js} +4 -4
  2. package/dist/FoodCourtInvitationsView-wmZ1J7dm.js +402 -0
  3. package/dist/{FoodCourtOrderSettingsView-BR5PgIx5.js → FoodCourtOrderSettingsView-CNZs4q-x.js} +1 -1
  4. package/dist/{FoodCourtOrdersView-BZ8YxJ9y.js → FoodCourtOrdersView-DMvZ_Z_C.js} +4 -4
  5. package/dist/{FoodCourtStallsView-zZyzPDe2.js → FoodCourtStallsView-B3egjtKo.js} +3 -3
  6. package/dist/{FoodCourtStatusView-D42wymS-.js → FoodCourtStatusView-YdiL94wn.js} +2 -2
  7. package/dist/{KioskDevicesView-PuAwkC1s.js → KioskDevicesView-DsXy1LWl.js} +1 -1
  8. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-CUriyLui.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-Byoci4Fo.js} +5 -5
  9. package/dist/{KioskSettingView-CuA3Lvdr.js → KioskSettingView-DqUpOq_Y.js} +3 -3
  10. package/dist/{KioskView-E5ePu5Zf.js → KioskView-CdRnNSU0.js} +6 -6
  11. package/dist/{OrderSettingsView-DZP2aZ58.js → OrderSettingsView-CjXph68w.js} +21844 -21729
  12. package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-BG71fNkx.js +92 -0
  13. package/dist/{app-CWx14lJE.js → app-moKDIx07.js} +413 -353
  14. package/dist/app.js +1 -1
  15. package/dist/common/queue/called-sms.d.ts +45 -0
  16. package/dist/common/sms/sms-parts.d.ts +23 -0
  17. package/dist/{dayjs.min-sDkYDUoj.js → dayjs.min-DQqlQ2dX.js} +1 -1
  18. package/dist/{featureFlag-Dh37Fdlx.js → featureFlag-qLUdllY9.js} +1 -1
  19. package/dist/{food-court-member-piX3gesl.js → food-court-member-CfV5vmHz.js} +24 -20
  20. package/dist/frontend/mf-order/src/app.d.ts +60 -0
  21. package/dist/frontend/mf-order/src/main.d.ts +60 -0
  22. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +3 -0
  23. package/dist/frontend/mf-order/src/views/food-court/food-court-member.d.ts +5 -0
  24. package/dist/frontend/mf-order/src/views/order-settings/components/RestaurantSelector.vue.d.ts +7 -1
  25. package/dist/frontend/mf-order/src/views/order-settings/dine-in/reservation-pos.d.ts +8 -0
  26. package/dist/frontend/mf-order/src/views/order-settings/queue/auto-cancel-minutes.d.ts +2 -2
  27. package/dist/frontend/mf-order/src/views/order-settings/queue/called-message.d.ts +31 -0
  28. package/dist/frontend/mf-order/src/views/order-settings/reservation/CopySettingsSheet.vue.d.ts +8 -0
  29. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  30. package/dist/{index-dcHvfBC0.js → index-BDgJZqqD.js} +4 -4
  31. package/dist/{index-BsryfWF5.js → index-BthRwhFh.js} +1 -1
  32. package/dist/{index-EXn8TQyw.js → index-By3yKf-8.js} +1 -1
  33. package/dist/{index-EVX4Oil9.js → index-C44A5dgm.js} +1 -1
  34. package/dist/{index-D5bW0yrg.js → index-D5T7zJ3M.js} +1 -1
  35. package/dist/{index-DToeF1mu.js → index-Dy5GRKwA.js} +2 -2
  36. package/dist/{order.dto-DewGFVgb.js → order.dto-DvP9y_72.js} +850 -832
  37. package/dist/package/entity/order-setting/order-setting.do.d.ts +39 -0
  38. package/dist/package/entity/order-setting/order-setting.dto.d.ts +10 -0
  39. package/dist/package/entity/order-setting/queue/queue.do.d.ts +12 -0
  40. package/dist/package/entity/order-setting/queue/queue.dto.d.ts +3 -0
  41. package/dist/package/entity/order-setting/reservationV2/reservation.do.d.ts +56 -0
  42. package/dist/package/entity/queue/queue.dto.d.ts +2 -2
  43. package/dist/package/entity/reservation/reservation-pos.do.d.ts +5 -0
  44. package/dist/package/entity/reservation/reservation.dto.d.ts +9 -0
  45. package/dist/package/entity/restaurant/restaurant.dto.d.ts +10 -0
  46. package/package.json +1 -1
  47. package/src/locales/en-US.json +16 -1
  48. package/src/locales/ja-JP.json +16 -1
  49. package/src/locales/th-TH.json +16 -1
  50. package/src/locales/zh-CN.json +16 -1
  51. package/src/views/food-court/FoodCourtInvitationsView.vue +72 -38
  52. package/src/views/food-court/food-court-member.spec.ts +11 -0
  53. package/src/views/food-court/food-court-member.ts +10 -0
  54. package/src/views/order-settings/OrderSettingsView.vue +5 -2
  55. package/src/views/order-settings/components/RestaurantSelector.vue +11 -3
  56. package/src/views/order-settings/dine-in/DineInSetting.vue +19 -1
  57. package/src/views/order-settings/dine-in/reservation-pos.spec.ts +27 -0
  58. package/src/views/order-settings/dine-in/reservation-pos.ts +17 -0
  59. package/src/views/order-settings/queue/QueueSetting.source.spec.ts +1 -1
  60. package/src/views/order-settings/queue/QueueSetting.vue +111 -3
  61. package/src/views/order-settings/queue/auto-cancel-minutes.ts +2 -4
  62. package/src/views/order-settings/queue/called-message.spec.ts +124 -0
  63. package/src/views/order-settings/queue/called-message.ts +84 -0
  64. package/src/views/order-settings/reservation/CopySettingsSheet.vue +4 -1
  65. package/src/views/order-settings/reservation/ReservationSetting.vue +54 -1
  66. package/dist/FoodCourtInvitationsView-D9rNuL-B.js +0 -383
@@ -0,0 +1,92 @@
1
+ import { defineComponent as O, computed as u, ref as z, onMounted as L, onUnmounted as N, resolveComponent as i, openBlock as s, createBlock as D, withCtx as T, createElementVNode as n, createVNode as d, toDisplayString as k, unref as m, createElementBlock as p, isRef as U, Fragment as K, renderList as M, createCommentVNode as $ } from "vue";
2
+ import { useI18n as j, useCoreStore as q } from "@feedmepos/mf-common";
3
+ import { u as A } from "./search-BAPEUu1R.js";
4
+ import "./app-moKDIx07.js";
5
+ const G = { class: "relative w-full" }, H = { class: "flex-grow mx-2 min-w-0" }, J = { class: "inline-block w-full break-words fm-typo-en-body-md-400" }, P = {
6
+ key: 0,
7
+ class: "absolute w-full mt-2 bg-white border border-gray-200 rounded-lg shadow-lg min-w-[350px] z-[9999]"
8
+ }, Q = { class: "overflow-y-auto max-h-[60vh]" }, W = { class: "sticky top-0 z-10 bg-white pt-[0.5rem] px-[0.5rem]" }, X = ["onClick"], ne = /* @__PURE__ */ O({
9
+ __name: "RestaurantSelector",
10
+ props: {
11
+ fallbackToFirst: { type: Boolean, default: !0 }
12
+ },
13
+ setup(w) {
14
+ const { t: f } = j(), g = w, { restaurants: c, changeRestaurant: b, currentRestaurant: x } = q(), { searchKey: a, filter: y } = A(), C = u(() => {
15
+ let e = x.value;
16
+ return !e && g.fallbackToFirst && (e = c.value[0]), e;
17
+ }), F = u(
18
+ () => c.value.map((e) => ({
19
+ label: e.profile.name,
20
+ value: e._id
21
+ }))
22
+ ), o = z(!1), S = u(() => F.value.filter(({ label: e }) => y([e])));
23
+ function R() {
24
+ o.value = !o.value;
25
+ }
26
+ function V(e) {
27
+ const l = c.value.find((t) => t._id == e.value);
28
+ b(l), o.value = !1, a.value = "";
29
+ }
30
+ function _(e) {
31
+ var t;
32
+ !((t = document.getElementById("restaurantSelector")) != null && t.contains(e == null ? void 0 : e.target)) && (o.value = !1);
33
+ }
34
+ return L(() => {
35
+ window.addEventListener("click", _);
36
+ }), N(() => {
37
+ window.removeEventListener("click", _);
38
+ }), (e, l) => {
39
+ const t = i("FmIcon"), B = i("FmSearch"), E = i("FmChip");
40
+ return s(), D(E, {
41
+ class: "ml-5 inline-block max-w-full h-auto",
42
+ id: "restaurantSelector"
43
+ }, {
44
+ default: T(() => {
45
+ var h, v;
46
+ return [
47
+ n("div", G, [
48
+ n("div", {
49
+ class: "flex items-center",
50
+ onClick: R
51
+ }, [
52
+ d(t, {
53
+ name: "storefront",
54
+ size: "md",
55
+ outline: "",
56
+ class: "flex-shrink-0"
57
+ }),
58
+ n("div", H, [
59
+ n("span", J, k(((v = (h = C.value) == null ? void 0 : h.profile) == null ? void 0 : v.name) ?? m(f)("order.noRestaurantSelected")), 1)
60
+ ]),
61
+ d(t, {
62
+ class: "flex-shrink-0",
63
+ name: o.value ? "expand_less" : "expand_more"
64
+ }, null, 8, ["name"])
65
+ ]),
66
+ o.value ? (s(), p("div", P, [
67
+ n("ul", Q, [
68
+ n("li", W, [
69
+ d(B, {
70
+ modelValue: m(a),
71
+ "onUpdate:modelValue": l[0] || (l[0] = (r) => U(a) ? a.value = r : null),
72
+ placeholder: m(f)("order.searchRestaurant")
73
+ }, null, 8, ["modelValue", "placeholder"])
74
+ ]),
75
+ (s(!0), p(K, null, M(S.value, (r, I) => (s(), p("li", {
76
+ key: I,
77
+ class: "p-3 hover:bg-gray-100 cursor-pointer",
78
+ onClick: (Y) => V(r)
79
+ }, k(r.label), 9, X))), 128))
80
+ ])
81
+ ])) : $("", !0)
82
+ ])
83
+ ];
84
+ }),
85
+ _: 1
86
+ });
87
+ };
88
+ }
89
+ });
90
+ export {
91
+ ne as _
92
+ };