@feedmepos/mf-order-setting 0.0.106 → 0.0.107

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 (50) hide show
  1. package/dist/{DisplaySystemView-aLqc6lz9.js → DisplaySystemView-D4I6fQwr.js} +4 -4
  2. package/dist/{FoodCourtInvitationsView-B30qld2i.js → FoodCourtInvitationsView-DODbUcup.js} +4 -4
  3. package/dist/{FoodCourtOrderSettingsView-CWmaKgbe.js → FoodCourtOrderSettingsView-BPb_clxQ.js} +1 -1
  4. package/dist/{FoodCourtOrdersView-FfrganVo.js → FoodCourtOrdersView-B4jGHCvq.js} +4 -4
  5. package/dist/{FoodCourtStallsView-CpGZNP6p.js → FoodCourtStallsView-Yo5imZIL.js} +2 -2
  6. package/dist/{FoodCourtStatusView-ljQUwIwk.js → FoodCourtStatusView-Qmg07OHi.js} +1 -1
  7. package/dist/{KioskDevicesView-BwDAYIhX.js → KioskDevicesView-gnKpLlRc.js} +1 -1
  8. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-VidDJfGG.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-BvLOXC6b.js} +5 -5
  9. package/dist/{KioskSettingView-mfhi9vuf.js → KioskSettingView-CarJ2tfl.js} +3 -3
  10. package/dist/{KioskView-6p5h92fk.js → KioskView-BQxmKeWX.js} +8 -8
  11. package/dist/{OrderSettingsView-Cf_Ye9U_.js → OrderSettingsView-DvThEQW-.js} +38157 -32660
  12. package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang-TJJ3PBlq.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-CiZeQGB6.js} +1 -1
  13. package/dist/{app-BorqCaJT.js → app-BvIV73_P.js} +312 -300
  14. package/dist/app.js +1 -1
  15. package/dist/{dayjs.min-CTTY2vkL.js → dayjs.min-B5uDRIkW.js} +1 -1
  16. package/dist/{featureFlag-DFenoxmg.js → featureFlag-BYngu4rF.js} +1 -1
  17. package/dist/frontend/mf-order/src/app.d.ts +12 -0
  18. package/dist/frontend/mf-order/src/main.d.ts +12 -0
  19. package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +134 -0
  20. package/dist/frontend/mf-order/src/views/order-settings/components/SmsCreditCard.vue.d.ts +15 -0
  21. package/dist/frontend/mf-order/src/views/order-settings/pos-status/pos-status.d.ts +19 -0
  22. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  23. package/dist/{index-BZkJr7iu.js → index-BBXEB6tY.js} +1 -1
  24. package/dist/{index-C4Isv-r7.js → index-BWR9_xAj.js} +1 -1
  25. package/dist/{index-tLkJL436.js → index-CGf3YUfs.js} +2 -2
  26. package/dist/{index-nUvyt9Wm.js → index-DWIzd_V1.js} +1 -1
  27. package/dist/{index-DuJOWWP8.js → index-Mnxpcwdy.js} +4 -4
  28. package/dist/{order.dto-nVwtcdX2.js → order.dto-DBYyEQ7c.js} +82 -78
  29. package/dist/package/entity/order/order.do.d.ts +21 -0
  30. package/dist/style.css +1 -1
  31. package/dist/{useInternalUser-HhxjbzGl.js → useInternalUser-DxmgUn4T.js} +1 -1
  32. package/package.json +2 -2
  33. package/src/locales/en-US.json +10 -7
  34. package/src/locales/ja-JP.json +5 -2
  35. package/src/locales/th-TH.json +10 -7
  36. package/src/locales/zh-CN.json +5 -2
  37. package/src/views/all-orders/UpdateDeliveryOrderDialog.vue +9 -9
  38. package/src/views/order-settings/components/NotifyChannelEditor.vue +1 -1
  39. package/src/views/order-settings/components/SmsCreditCard.vue +31 -0
  40. package/src/views/order-settings/components/push-availability.ts +1 -1
  41. package/src/views/order-settings/delivery/DeliverySetting.vue +2 -1
  42. package/src/views/order-settings/delivery/inhouse/InHouseDelivery.vue +2 -2
  43. package/src/views/order-settings/discount-rule/DiscountRuleSetting.vue +1 -1
  44. package/src/views/order-settings/pos-status/PosOrderingStatus.spec.ts +96 -1
  45. package/src/views/order-settings/pos-status/PosOrderingStatus.vue +24 -2
  46. package/src/views/order-settings/pos-status/pos-status.spec.ts +22 -0
  47. package/src/views/order-settings/pos-status/pos-status.ts +23 -0
  48. package/src/views/order-settings/reservation/ReservationSetting.vue +36 -1
  49. package/src/views/order-settings/reservation/reservation-sms-credit.source.spec.ts +66 -0
  50. package/src/views/order-settings/sms/SmsSetting.vue +11 -23
@@ -2,13 +2,13 @@ import { ref as H, defineComponent as ke, computed as U, watch as we, resolveCom
2
2
  import { useRoute as os, useRouter as as } from "vue-router";
3
3
  import { useI18n as Te, useCoreStore as ht, RestaurantSelector as ns } from "@feedmepos/mf-common";
4
4
  import { u as Za } from "./snackbar-DZQ0_reQ.js";
5
- import { D as Ya, u as ss, v as rs } from "./order.dto-nVwtcdX2.js";
5
+ import { D as Ya, u as ss, v as rs } from "./order.dto-DBYyEQ7c.js";
6
6
  import { defineStore as ls } from "pinia";
7
- import { g as pt, S as Xa, d as is, c as ro } from "./index-C4Isv-r7.js";
7
+ import { g as pt, S as Xa, d as is, c as ro } from "./index-BWR9_xAj.js";
8
8
  import { useDialogChild as ds, useDialog as Qa } from "@feedmepos/ui-library";
9
9
  import { _ as tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- import { v as en } from "./app-BorqCaJT.js";
11
- import { u as us, e as cs } from "./featureFlag-DFenoxmg.js";
10
+ import { v as en } from "./app-BvIV73_P.js";
11
+ import { u as us, e as cs } from "./featureFlag-BYngu4rF.js";
12
12
  function tn(e) {
13
13
  return JSON.parse(JSON.stringify(e));
14
14
  }
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as P, resolveComponent as C, openBlock as l, createBlock as T, withCtx as E, createVNode as f, unref as a, createCommentVNode as I, ref as g, computed as S, watch as Y, createElementVNode as u, toDisplayString as v, createElementBlock as m, Fragment as J, withKeys as O, h as H, isRef as W } from "vue";
2
- import { d as Q } from "./dayjs.min-CTTY2vkL.js";
2
+ import { d as Q } from "./dayjs.min-B5uDRIkW.js";
3
3
  import { useI18n as R, useCoreStore as X } from "@feedmepos/mf-common";
4
4
  import { useDialog as Z, components as ee } from "@feedmepos/ui-library";
5
5
  import { u as te } from "./snackbar-DZQ0_reQ.js";
6
6
  import { u as oe } from "./search-BAPEUu1R.js";
7
- import { g as B, b as q } from "./index-C4Isv-r7.js";
8
- import { f as ae } from "./index-BZkJr7iu.js";
7
+ import { g as B, b as q } from "./index-BWR9_xAj.js";
8
+ import { f as ae } from "./index-BBXEB6tY.js";
9
9
  import { i as ne, n as D, k as re, l as se, e as K, M as le, m as ie, o as ue } from "./food-court-member-joC8tmsI.js";
10
- import { _ as de } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-TJJ3PBlq.js";
10
+ import { _ as de } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CiZeQGB6.js";
11
11
  const U = () => q("/foodcourt-v2/join-codes"), V = {
12
12
  /** One item per court that has a row for this restaurant. */
13
13
  async listMemberships(p) {
@@ -5,7 +5,7 @@ import { u as re } from "./useFoodCourtContext-2p5sJMcB.js";
5
5
  import { onBeforeRouteLeave as ne } from "vue-router";
6
6
  import { u as W } from "./index-Cmb4sEqq.js";
7
7
  import { u as Q } from "./snackbar-DZQ0_reQ.js";
8
- import { F as D } from "./index-BZkJr7iu.js";
8
+ import { F as D } from "./index-BBXEB6tY.js";
9
9
  function le(r, n) {
10
10
  async function o() {
11
11
  return !r.value || await n();
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as We, ref as H, computed as ie, watch as Te, resolveComponent as G, openBlock as T, createBlock as ce, unref as h, withCtx as ne, createElementBlock as U, createElementVNode as _, toDisplayString as I, createVNode as j, Fragment as re, renderList as ve, createCommentVNode as le, createTextVNode as Le, normalizeClass as ur, h as fr } from "vue";
2
- import { d as X } from "./dayjs.min-CTTY2vkL.js";
2
+ import { d as X } from "./dayjs.min-B5uDRIkW.js";
3
3
  import { useRoute as cr, useRouter as mr } from "vue-router";
4
4
  import { useI18n as Qe } from "@feedmepos/mf-common";
5
5
  import { components as vr } from "@feedmepos/ui-library";
6
6
  import { u as Ze } from "./snackbar-DZQ0_reQ.js";
7
7
  import { u as pr } from "./useFoodCourtContext-2p5sJMcB.js";
8
- import { d as De } from "./index-BZkJr7iu.js";
8
+ import { d as De } from "./index-BBXEB6tY.js";
9
9
  import { e as Se } from "./food-court-member-joC8tmsI.js";
10
- import { a as hr } from "./index-nUvyt9Wm.js";
11
- import { a as yr } from "./index-C4Isv-r7.js";
10
+ import { a as hr } from "./index-DWIzd_V1.js";
11
+ import { a as yr } from "./index-BWR9_xAj.js";
12
12
  const we = ["PAID", "PENDING_PAYMENT", "CANCELLED"], pe = {
13
13
  PAID: { variant: "success", labelKey: "order.foodCourt.orders.statusPaid" },
14
14
  PENDING_PAYMENT: { variant: "warning", labelKey: "order.foodCourt.orders.statusPendingPayment" },
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as G, computed as $, resolveComponent as w, openBlock as u, createBlock as P, withCtx as R, createElementBlock as _, Fragment as X, renderList as ne, unref as t, createVNode as C, createCommentVNode as z, ref as N, watch as ee, createElementVNode as b, toDisplayString as T, nextTick as ie, h as D, isRef as ue } from "vue";
2
- import { d as se } from "./dayjs.min-CTTY2vkL.js";
2
+ import { d as se } from "./dayjs.min-B5uDRIkW.js";
3
3
  import { useI18n as K } from "@feedmepos/mf-common";
4
4
  import { useDialog as ce, components as te } from "@feedmepos/ui-library";
5
5
  import { u as oe } from "./snackbar-DZQ0_reQ.js";
6
6
  import { u as me } from "./useFoodCourtContext-2p5sJMcB.js";
7
7
  import { u as fe } from "./search-BAPEUu1R.js";
8
- import { a as U, b as O } from "./index-BZkJr7iu.js";
8
+ import { a as U, b as O } from "./index-BBXEB6tY.js";
9
9
  import { S as pe, a as ve, b as le, J as q, c as ae, f as Ce, j as ye, d as ge, e as Q, r as re, s as be, g as Z, h as _e, t as xe } from "./food-court-member-joC8tmsI.js";
10
10
  const he = /* @__PURE__ */ G({
11
11
  __name: "StallRowActions",
@@ -2,7 +2,7 @@ import { defineComponent as B, ref as c, watch as N, resolveComponent as u, open
2
2
  import { useI18n as H } from "@feedmepos/mf-common";
3
3
  import { u as z } from "./snackbar-DZQ0_reQ.js";
4
4
  import { u as D } from "./useFoodCourtContext-2p5sJMcB.js";
5
- import { c as b } from "./index-BZkJr7iu.js";
5
+ import { c as b } from "./index-BBXEB6tY.js";
6
6
  import { e as x } from "./food-court-member-joC8tmsI.js";
7
7
  const K = { class: "py-[1.5rem]" }, L = {
8
8
  key: 0,
@@ -1,4 +1,4 @@
1
- import { d as f } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-VidDJfGG.js";
1
+ import { d as f } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-BvLOXC6b.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,12 +1,12 @@
1
1
  import { ref as M, defineComponent as H, resolveComponent as T, openBlock as i, createElementBlock as u, createElementVNode as r, toDisplayString as l, unref as o, createVNode as h, computed as g, createBlock as C, withCtx as Y, createCommentVNode as k, Fragment as F, renderList as q, createTextVNode as K, watch as Pe, normalizeClass as $e, renderSlot as nt } from "vue";
2
2
  import { useI18n as Z, useCoreStore as at } from "@feedmepos/mf-common";
3
3
  import { defineStore as Le } from "pinia";
4
- import { r as ee, g as oe, S as Fe, p as Ke } from "./index-C4Isv-r7.js";
5
- import "./order.dto-nVwtcdX2.js";
4
+ import { r as ee, g as oe, S as Fe, p as Ke } from "./index-BWR9_xAj.js";
5
+ import "./order.dto-DBYyEQ7c.js";
6
6
  import { useSnackbar as Me, useDialog as ot } from "@feedmepos/ui-library";
7
- import { d as G } from "./dayjs.min-CTTY2vkL.js";
8
- import { c as rt, g as st, a as Be } from "./app-BorqCaJT.js";
9
- import { s as Se, u as it } from "./useInternalUser-HhxjbzGl.js";
7
+ import { d as G } from "./dayjs.min-B5uDRIkW.js";
8
+ import { c as rt, g as st, a as Be } from "./app-BvIV73_P.js";
9
+ import { s as Se, u as it } from "./useInternalUser-DxmgUn4T.js";
10
10
  async function lt() {
11
11
  const e = await ee().get("/kiosk/otp");
12
12
  return oe(e);
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as Re, computed as C, ref as R, onMounted as ge, resolveComponent as O, openBlock as S, createBlock as le, withCtx as M, createVNode as i, unref as a, createElementVNode as l, withDirectives as P, vShow as T, toDisplayString as u, reactive as da, watch as Pe, nextTick as fe, onBeforeUnmount as ia, createElementBlock as V, normalizeStyle as Te, Fragment as H, renderList as G, normalizeClass as ae, createCommentVNode as W, toRaw as ua } from "vue";
2
- import { e as Ne, b as Oe, s as Fe, d as ca, r as Ae, f as Ue, h as ma } from "./app-BorqCaJT.js";
3
- import { b as _, K as pa, c as ya, d as fa } from "./order.dto-nVwtcdX2.js";
4
- import { _ as va, u as ba } from "./index-DuJOWWP8.js";
2
+ import { e as Ne, b as Oe, s as Fe, d as ca, r as Ae, f as Ue, h as ma } from "./app-BvIV73_P.js";
3
+ import { b as _, K as pa, c as ya, d as fa } from "./order.dto-DBYyEQ7c.js";
4
+ import { _ as va, u as ba } from "./index-Mnxpcwdy.js";
5
5
  import { useI18n as Le, FeedMeAuth as Me, useCoreStore as ga } from "@feedmepos/mf-common";
6
6
  import { u as xa } from "./index-Cmb4sEqq.js";
7
7
  import { useSnackbar as ha } from "@feedmepos/ui-library";
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as z, computed as I, h as L, resolveComponent as C, openBlock as b, createElementBlock as h, createElementVNode as y, toDisplayString as _, unref as i, createVNode as P, Fragment as g, renderList as de, createBlock as A, resolveDynamicComponent as Le, createCommentVNode as F, normalizeClass as Ae, ref as x, defineAsyncComponent as Ee, watch as j, withDirectives as Re, withCtx as X, vShow as Ke } from "vue";
2
- import { s as re, l as N, _ as Fe, a as De, b as Ue, u as ge, c as Ne, d as $e, e as oe } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-VidDJfGG.js";
3
- import { d as qe } from "./dayjs.min-CTTY2vkL.js";
2
+ import { s as re, l as N, _ as Fe, a as De, b as Ue, u as ge, c as Ne, d as $e, e as oe } from "./KioskDevicesView.vue_vue_type_script_setup_true_lang-BvLOXC6b.js";
3
+ import { d as qe } from "./dayjs.min-B5uDRIkW.js";
4
4
  import { useI18n as Q, useCoreStore as Be } from "@feedmepos/mf-common";
5
5
  import { components as Me, useDialog as Ve, useSnackbar as je } from "@feedmepos/ui-library";
6
6
  import { onBeforeRouteLeave as Xe } from "vue-router";
7
- import { S as H, a as se } from "./index-C4Isv-r7.js";
7
+ import { S as H, a as se } from "./index-BWR9_xAj.js";
8
8
  import { defineStore as We } from "pinia";
9
- import { O as W } from "./index-tLkJL436.js";
10
- import { F as Ge, a as He } from "./order.dto-nVwtcdX2.js";
11
- import { u as Ye } from "./app-BorqCaJT.js";
12
- import { u as ze } from "./useInternalUser-HhxjbzGl.js";
9
+ import { O as W } from "./index-CGf3YUfs.js";
10
+ import { F as Ge, a as He } from "./order.dto-DBYyEQ7c.js";
11
+ import { u as Ye } from "./app-BvIV73_P.js";
12
+ import { u as ze } from "./useInternalUser-DxmgUn4T.js";
13
13
  import { _ as Qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
14
  const Je = { class: "flex flex-col gap-4" }, Ze = { class: "fm-typo-en-title-sm-600 block" }, Se = {
15
15
  class: "hidden xs:flex flex-col gap-8",
@@ -523,7 +523,7 @@ const Ba = { class: "py-[1.5rem]" }, Ma = { class: "px-[1.5rem]" }, Va = { class
523
523
  setup(e) {
524
524
  var ne;
525
525
  const { t: a } = Q(), { canManageOrderSetting: l } = Ye(), { isInternal: o } = ze(), t = Ee(
526
- () => import("./KioskSettingView-mfhi9vuf.js")
526
+ () => import("./KioskSettingView-CarJ2tfl.js")
527
527
  ), n = x("device"), r = ge(), u = Ta(), p = Ne(), s = Ve(), { currentRestaurant: d, restaurants: f, changeRestaurant: T } = Be(), w = je(), v = x(((ne = d.value) == null ? void 0 : ne._id) ?? void 0), E = x(null), $ = x(""), J = x(null), Z = I(() => {
528
528
  const c = $.value.trim().toLowerCase();
529
529
  return f.value.filter(