@feedmepos/mf-settings 0.0.64-beta.1 → 0.0.65

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.
@@ -4,9 +4,9 @@ import { useSnackbar as Sn, components as Tn, useBreakpoints as Cn, useDialog as
4
4
  import { _ as In } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-8f929a2d.js";
5
5
  import { _ as On, c as xt } from "./createForm-d3b97d2e.js";
6
6
  import { _ as It, c as Fn } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
7
- import { u as An, r as Pn, s as Nn } from "./index-064cf2cd.js";
7
+ import { u as An, r as Pn, s as Nn } from "./index-3f4c8817.js";
8
+ import "./index-b9ef9a01.js";
8
9
  import { r as kn } from "./rules-2bee6632.js";
9
- import "./index-79b36905.js";
10
10
  import "pinia";
11
11
  /**!
12
12
  * Sortable 1.14.0
@@ -2,15 +2,16 @@ import { defineComponent as Mr, h as xl, getCurrentInstance as Mi, inject as Bm,
2
2
  import "@vue/devtools-api";
3
3
  import { useI18n as Fl, useCoreStore as Ml } from "@feedmepos/mf-common";
4
4
  import { useDialog as Ul, useSnackbar as kl, components as Qm, useBreakpoints as zm, FmButtonVariant as jm } from "@feedmepos/ui-library";
5
- import { _ as eE } from "./app-51a50e28.js";
5
+ import { _ as eE } from "./app-b0e8ba91.js";
6
6
  import { _ as nE, c as rl } from "./createForm-d3b97d2e.js";
7
- import { u as Wl } from "./index-064cf2cd.js";
7
+ import { u as Wl } from "./index-3f4c8817.js";
8
8
  import { _ as il, c as tE } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
9
- import { c as Cr } from "./index-79b36905.js";
9
+ import { c as Cr } from "./index-b9ef9a01.js";
10
10
  import { c as wi } from "./object-27ce045b.js";
11
11
  import { defineStore as rE } from "pinia";
12
- import { b as rs } from "./business-0b74f773.js";
12
+ import { b as rs } from "./business-7684bcec.js";
13
13
  import "@feedmepos/mf-mdm";
14
+ import "@feedmepos/mf-order-setting";
14
15
  import "vue-router";
15
16
  import "@feedmepos/mf-e-invoice";
16
17
  /*!
@@ -6644,7 +6645,7 @@ const sf = rE("mf-settings-attribute-settings", () => {
6644
6645
  ], 64);
6645
6646
  };
6646
6647
  }
6647
- }), O0 = { class: "flex flex-1" }, I0 = { class: "space-y-8" }, y0 = { class: "flex justify-end" }, $0 = /* @__PURE__ */ Mr({
6648
+ }), O0 = { class: "flex flex-1" }, I0 = { class: "space-y-8" }, y0 = { class: "flex justify-end" }, G0 = /* @__PURE__ */ Mr({
6648
6649
  __name: "Tagging",
6649
6650
  setup(r) {
6650
6651
  const { t: s } = Vi(), u = Ml(), f = Mi(), _ = sf(), d = Ul(), v = kl(), L = Wl(v), A = ir(""), I = je(() => _.customAttributes.filter((N) => N.key.toLowerCase().includes(A.value.toLowerCase()))), F = je(() => [
@@ -6774,5 +6775,5 @@ const sf = rE("mf-settings-attribute-settings", () => {
6774
6775
  }
6775
6776
  });
6776
6777
  export {
6777
- $0 as default
6778
+ G0 as default
6778
6779
  };
@@ -1,15 +1,16 @@
1
- import { FmApp as b, routers as _, i18nMessages as s } from "@feedmepos/mf-mdm";
2
- import { ref as m, watch as c, nextTick as u, onMounted as v, onBeforeUnmount as h, defineComponent as p, computed as y, openBlock as g, createElementBlock as f, normalizeStyle as R, renderSlot as w, resolveComponent as L, createBlock as U, withCtx as q, createElementVNode as O, createVNode as S, defineAsyncComponent as T } from "vue";
3
- import { useBreakpoints as C } from "@feedmepos/ui-library";
1
+ import { FmApp as f, routers as R, i18nMessages as s } from "@feedmepos/mf-mdm";
2
+ import { FmApp as w, routers as L, i18nMessages as r } from "@feedmepos/mf-order-setting";
3
+ import { ref as _, watch as m, nextTick as p, onMounted as U, onBeforeUnmount as q, defineComponent as h, computed as O, openBlock as y, createElementBlock as S, normalizeStyle as T, renderSlot as A, resolveComponent as C, createBlock as x, withCtx as k, createElementVNode as I, createVNode as N, defineAsyncComponent as $ } from "vue";
4
+ import { useBreakpoints as P } from "@feedmepos/ui-library";
4
5
  import "vue-router";
5
- import { withPermission as A } from "@feedmepos/mf-common";
6
- import { FmApp as x, routers as k } from "@feedmepos/mf-e-invoice";
7
- function I(e, n) {
8
- const o = m({ top: 0, bottom: 0, left: 0, right: 0 });
6
+ import { withPermission as g, Permission as b } from "@feedmepos/mf-common";
7
+ import { FmApp as F, routers as D } from "@feedmepos/mf-e-invoice";
8
+ function M(e, o) {
9
+ const n = _({ top: 0, bottom: 0, left: 0, right: 0 });
9
10
  function a() {
10
11
  if (e.value) {
11
12
  const i = e.value.getBoundingClientRect();
12
- o.value = {
13
+ n.value = {
13
14
  top: i.top,
14
15
  bottom: i.bottom,
15
16
  left: i.left,
@@ -17,53 +18,53 @@ function I(e, n) {
17
18
  };
18
19
  }
19
20
  }
20
- return c(n, async () => {
21
- await u(), a();
22
- }), c(e, async (i) => {
23
- i && (await u(), a());
24
- }), v(() => {
21
+ return m(o, async () => {
22
+ await p(), a();
23
+ }), m(e, async (i) => {
24
+ i && (await p(), a());
25
+ }), U(() => {
25
26
  window.addEventListener("resize", a);
26
- }), h(() => {
27
+ }), q(() => {
27
28
  window.removeEventListener("resize", a);
28
- }), o;
29
+ }), n;
29
30
  }
30
- const N = /* @__PURE__ */ p({
31
+ const B = /* @__PURE__ */ h({
31
32
  __name: "FullWrapper",
32
33
  setup(e) {
33
- const n = C(), o = m(null), a = I(o), i = y(() => {
34
- var d;
35
- const r = n.isAtMost("sm") ? 56 : 0;
34
+ const o = P(), n = _(null), a = M(n), i = O(() => {
35
+ var u;
36
+ const c = o.isAtMost("sm") ? 56 : 0;
36
37
  return {
37
- height: `calc(100dvh - ${((d = a.value) == null ? void 0 : d.top) + 24 + r}px)`
38
+ height: `calc(100dvh - ${((u = a.value) == null ? void 0 : u.top) + 24 + c}px)`
38
39
  };
39
40
  });
40
- return (l, r) => (g(), f("div", {
41
+ return (d, c) => (y(), S("div", {
41
42
  ref_key: "wrapper",
42
- ref: o,
43
- style: R(i.value)
43
+ ref: n,
44
+ style: T(i.value)
44
45
  }, [
45
- w(l.$slots, "default")
46
+ A(d.$slots, "default")
46
47
  ], 4));
47
48
  }
48
- }), P = { class: "flex justify-center items-center h-full w-full" }, $ = /* @__PURE__ */ p({
49
+ }), E = { class: "flex justify-center items-center h-full w-full" }, j = /* @__PURE__ */ h({
49
50
  __name: "PageLoading",
50
51
  setup(e) {
51
- return (n, o) => {
52
- const a = L("FmCircularProgress");
53
- return g(), U(N, null, {
54
- default: q(() => [
55
- O("div", P, [
56
- S(a, { size: "xl" })
52
+ return (o, n) => {
53
+ const a = C("FmCircularProgress");
54
+ return y(), x(B, null, {
55
+ default: k(() => [
56
+ I("div", E, [
57
+ N(a, { size: "xl" })
57
58
  ])
58
59
  ]),
59
60
  _: 1
60
61
  });
61
62
  };
62
63
  }
63
- }), t = (e) => T({
64
+ }), t = (e) => $({
64
65
  loader: e,
65
- loadingComponent: $
66
- }), D = {
66
+ loadingComponent: j
67
+ }), z = {
67
68
  title: "Settings",
68
69
  eInvoice: {
69
70
  title: "E-invoice"
@@ -74,6 +75,7 @@ const N = /* @__PURE__ */ p({
74
75
  templateBuilder: {
75
76
  title: "Receipt builder"
76
77
  },
78
+ deviceManagement: "Device Management",
77
79
  device: {
78
80
  title: "Device"
79
81
  },
@@ -460,9 +462,9 @@ const N = /* @__PURE__ */ p({
460
462
  message: 'Are you sure you want to delete the reason template for "{action}"? This action cannot be undone.'
461
463
  }
462
464
  }
463
- }, F = {
464
- settings: D
465
- }, B = {
465
+ }, K = {
466
+ settings: z
467
+ }, V = {
466
468
  title: "การตั้งค่า",
467
469
  eInvoice: {
468
470
  title: "ใบแจ้งหนี้อิเล็กทรอนิกส์"
@@ -473,6 +475,7 @@ const N = /* @__PURE__ */ p({
473
475
  templateBuilder: {
474
476
  title: "เครื่องมือสร้างใบเสร็จ"
475
477
  },
478
+ deviceManagement: "การจัดการอุปกรณ์",
476
479
  device: {
477
480
  title: "อุปกรณ์"
478
481
  },
@@ -859,9 +862,9 @@ const N = /* @__PURE__ */ p({
859
862
  message: 'คุณแน่ใจหรือไม่ว่าต้องการลบเทมเพลตเหตุผลสำหรับ "{action}"? การดำเนินการนี้ไม่สามารถยกเลิกได้'
860
863
  }
861
864
  }
862
- }, E = {
863
- settings: B
864
- }, j = {
865
+ }, H = {
866
+ settings: V
867
+ }, W = {
865
868
  title: "设置",
866
869
  eInvoice: {
867
870
  title: "电子发票"
@@ -872,6 +875,7 @@ const N = /* @__PURE__ */ p({
872
875
  templateBuilder: {
873
876
  title: "模板生成器"
874
877
  },
878
+ deviceManagement: "设备管理",
875
879
  device: {
876
880
  title: "设备"
877
881
  },
@@ -1261,9 +1265,9 @@ const N = /* @__PURE__ */ p({
1261
1265
  message: '确定要删除"{action}"的原因模板吗?此操作无法撤销。'
1262
1266
  }
1263
1267
  }
1264
- }, M = {
1265
- settings: j
1266
- }, K = {
1268
+ }, G = {
1269
+ settings: W
1270
+ }, Y = {
1267
1271
  title: "設置",
1268
1272
  eInvoice: {
1269
1273
  title: "電子發票"
@@ -1274,6 +1278,7 @@ const N = /* @__PURE__ */ p({
1274
1278
  templateBuilder: {
1275
1279
  title: "模板生成器"
1276
1280
  },
1281
+ deviceManagement: "设备管理",
1277
1282
  device: {
1278
1283
  title: "設備"
1279
1284
  },
@@ -1663,17 +1668,13 @@ const N = /* @__PURE__ */ p({
1663
1668
  message: '確定要刪除"{action}"的原因模板嗎?此操作無法撤銷。'
1664
1669
  }
1665
1670
  }
1666
- }, z = {
1667
- settings: K
1668
- }, J = [
1669
- {
1670
- path: "/",
1671
- redirect: "$settings-my-business"
1672
- },
1671
+ }, Q = {
1672
+ settings: Y
1673
+ }, l = [
1673
1674
  {
1674
1675
  path: "/business",
1675
1676
  name: "$settings-my-business",
1676
- component: t(() => import("./Business-c9dd77d6.js")),
1677
+ component: t(() => import("./Business-4c140fb5.js")),
1677
1678
  meta: {
1678
1679
  i18nKey: "settings.business.title"
1679
1680
  }
@@ -1681,7 +1682,7 @@ const N = /* @__PURE__ */ p({
1681
1682
  {
1682
1683
  path: "/create-business",
1683
1684
  name: "$settings-create-business",
1684
- component: t(() => import("./CreateBusiness-84a4e891.js")),
1685
+ component: t(() => import("./CreateBusiness-af1ec0c0.js")),
1685
1686
  meta: {
1686
1687
  hideNavigation: !0
1687
1688
  }
@@ -1689,7 +1690,7 @@ const N = /* @__PURE__ */ p({
1689
1690
  {
1690
1691
  path: "/foodcourt",
1691
1692
  name: "$settings-food-court",
1692
- component: t(() => import("./FoodCourt-1e83edbf.js")),
1693
+ component: t(() => import("./FoodCourt-c9b603d6.js")),
1693
1694
  meta: {
1694
1695
  i18nKey: "settings.food_court.list.title"
1695
1696
  }
@@ -1697,10 +1698,11 @@ const N = /* @__PURE__ */ p({
1697
1698
  {
1698
1699
  path: "/devices",
1699
1700
  name: "$settings-device",
1700
- component: b,
1701
- children: _.map((e) => ({ ...e, path: `/device${e.path}` })),
1701
+ component: f,
1702
+ children: R.map((e) => ({ ...e, path: `/device${e.path}` })),
1702
1703
  meta: {
1703
- i18nKey: "settings.device.title"
1704
+ i18nKey: "settings.device.title",
1705
+ hideNavigation: !0
1704
1706
  }
1705
1707
  },
1706
1708
  {
@@ -1708,7 +1710,8 @@ const N = /* @__PURE__ */ p({
1708
1710
  name: "$settings-template-builder",
1709
1711
  component: t(() => import("./TemplateBuilder-54a34178.js")),
1710
1712
  meta: {
1711
- i18nKey: "settings.templateBuilder.title"
1713
+ i18nKey: "settings.templateBuilder.title",
1714
+ hideNavigation: !0
1712
1715
  }
1713
1716
  },
1714
1717
  {
@@ -1722,8 +1725,8 @@ const N = /* @__PURE__ */ p({
1722
1725
  {
1723
1726
  path: "/e-invoice",
1724
1727
  name: "$settings-e-invoice",
1725
- component: x,
1726
- children: k.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
1728
+ component: F,
1729
+ children: D.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
1727
1730
  meta: {
1728
1731
  i18nKey: "settings.eInvoice.title"
1729
1732
  }
@@ -1731,7 +1734,7 @@ const N = /* @__PURE__ */ p({
1731
1734
  {
1732
1735
  path: "/tagging",
1733
1736
  name: "$settings-tagging",
1734
- component: A(t(() => import("./Tagging-6d46c6db.js"))),
1737
+ component: g(t(() => import("./Tagging-7c0e3126.js"))),
1735
1738
  meta: {
1736
1739
  i18nKey: "settings.tagging.title",
1737
1740
  validationManifest: {
@@ -1743,35 +1746,64 @@ const N = /* @__PURE__ */ p({
1743
1746
  {
1744
1747
  path: "/reason-template",
1745
1748
  name: "$settings-reason-template",
1746
- component: t(() => import("./ReasonTemplate-9eab651a.js")),
1749
+ component: t(() => import("./ReasonTemplate-c39df454.js")),
1747
1750
  meta: {
1748
1751
  i18nKey: "settings.reasonTemplate.title",
1749
1752
  hideNavigation: !0
1750
1753
  }
1754
+ },
1755
+ {
1756
+ path: "/devices/order-setting",
1757
+ name: "$pos-order-setting",
1758
+ component: g(w),
1759
+ children: L.map((e) => ({ ...e, path: `/order-setting${e.path}` })),
1760
+ meta: {
1761
+ hideNavigation: !0,
1762
+ validationManifest: {
1763
+ requiredCaslPermissions: [
1764
+ {
1765
+ action: b.Action.manage,
1766
+ subject: b.Subject.Business.restaurant
1767
+ }
1768
+ ]
1769
+ }
1770
+ }
1771
+ }
1772
+ ];
1773
+ var v;
1774
+ l.push({
1775
+ path: "/",
1776
+ redirect: {
1777
+ name: ((v = l[0].children) == null ? void 0 : v[0].name) || l[0].name
1751
1778
  }
1752
- ], X = t(() => import("./App-e0bba2b7.js")), Z = {
1779
+ });
1780
+ const ne = t(() => import("./App-58466af2.js")), oe = {
1753
1781
  "en-US": {
1754
- ...F,
1755
- ...s["en-US"]
1782
+ ...K,
1783
+ ...s["en-US"],
1784
+ ...r["en-US"]
1756
1785
  },
1757
1786
  "zh-CN": {
1758
- ...M,
1759
- ...s["zh-CN"]
1787
+ ...G,
1788
+ ...s["zh-CN"],
1789
+ ...r["zh-CN"]
1760
1790
  },
1761
1791
  "th-TH": {
1762
- ...E,
1763
- ...s["th-TH"]
1792
+ ...H,
1793
+ ...s["th-TH"],
1794
+ ...r["th-TH"]
1764
1795
  },
1765
1796
  "zh-Hant": {
1766
- ...z,
1767
- ...s["zh-Hant"] || {}
1797
+ ...Q,
1798
+ ...s["zh-Hant"] || {},
1799
+ ...r["zh-Hant"] || {}
1768
1800
  }
1769
- }, ee = t(() => import("./ReasonTemplate-9eab651a.js"));
1801
+ }, se = t(() => import("./ReasonTemplate-c39df454.js"));
1770
1802
  export {
1771
- X as F,
1772
- ee as R,
1773
- N as _,
1774
- Z as i,
1775
- J as r,
1776
- I as u
1803
+ ne as F,
1804
+ se as R,
1805
+ B as _,
1806
+ oe as i,
1807
+ l as r,
1808
+ M as u
1777
1809
  };
package/dist/app.js CHANGED
@@ -1,13 +1,14 @@
1
1
  import "@feedmepos/mf-mdm";
2
- import { F as a, R as n, i as F, r as R } from "./app-51a50e28.js";
2
+ import "@feedmepos/mf-order-setting";
3
+ import { F as n, R as F, i as R, r as f } from "./app-b0e8ba91.js";
3
4
  import "vue";
4
5
  import "@feedmepos/ui-library";
5
6
  import "vue-router";
6
7
  import "@feedmepos/mf-common";
7
8
  import "@feedmepos/mf-e-invoice";
8
9
  export {
9
- a as FmApp,
10
- n as ReasonTemplateView,
11
- F as i18nMessages,
12
- R as routers
10
+ n as FmApp,
11
+ F as ReasonTemplateView,
12
+ R as i18nMessages,
13
+ f as routers
13
14
  };