@feedmepos/mf-settings 0.0.64-prod → 0.0.66-beta.1

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 (27) hide show
  1. package/dist/{App-dadb8bf9.js → App-dd9dd400.js} +9442 -9104
  2. package/dist/Business-d8e4f7d1.js +11921 -0
  3. package/dist/{CreateBusiness-8145d5b6.js → CreateBusiness-af1ec0c0.js} +3 -3
  4. package/dist/{FoodCourt-859c83b2.js → FoodCourt-c9b603d6.js} +19836 -19409
  5. package/dist/{ReasonTemplate-06a053d7.js → ReasonTemplate-c39df454.js} +2 -2
  6. package/dist/{Tagging-e96d855e.js → Tagging-fcbb1569.js} +7 -6
  7. package/dist/TemplateBuilder-54a34178.js +27 -0
  8. package/dist/{app-9c6363b3.js → app-a060d858.js} +114 -78
  9. package/dist/app.js +6 -5
  10. package/dist/apps/mf-settings/src/app.d.ts +2 -1339
  11. package/dist/apps/mf-settings/src/extensions/business.d.ts +1 -1
  12. package/dist/apps/mf-settings/src/extensions/profile.d.ts +1 -1
  13. package/dist/apps/mf-settings/src/router/shared.d.ts +2 -1
  14. package/dist/apps/mf-settings/src/types/reasonTemplate.d.ts +1 -1
  15. package/dist/apps/mf-settings/src/types/restaurant.d.ts +1 -1
  16. package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
  17. package/dist/{business-b5512a2c.js → business-7684bcec.js} +1 -1
  18. package/dist/{dayjs.min-1dcf0c5a.js → dayjs.min-6eec923a.js} +1 -1
  19. package/dist/index-3f4c8817.js +2395 -0
  20. package/dist/{index-79b36905.js → index-b9ef9a01.js} +2972 -2797
  21. package/dist/{map-54b71412.js → map-695afd6f.js} +410 -527
  22. package/dist/packages/shared/src/components/info/CustomAttributeChip.vue.d.ts +29 -0
  23. package/dist/packages/shared/src/permission/posPermission.d.ts +6 -0
  24. package/package.json +5 -3
  25. package/dist/Business-eafcd130.js +0 -12070
  26. package/dist/TemplateBuilder-3e34e9e8.js +0 -27
  27. package/dist/index-f1179ebc.js +0 -8424
@@ -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-f1179ebc.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-9c6363b3.js";
5
+ import { _ as eE } from "./app-a060d858.js";
6
6
  import { _ as nE, c as rl } from "./createForm-d3b97d2e.js";
7
- import { u as Wl } from "./index-f1179ebc.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-b5512a2c.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
  };
@@ -0,0 +1,27 @@
1
+ import { defineComponent as a, computed as c, resolveComponent as u, openBlock as s, createElementBlock as o, createVNode as d } from "vue";
2
+ import { useCoreStore as l, FeedMeAuth as m } from "@feedmepos/mf-common";
3
+ const i = {
4
+ key: 0,
5
+ class: "w-full h-full flex items-center justify-center"
6
+ }, p = ["src"], h = /* @__PURE__ */ a({
7
+ __name: "TemplateBuilder",
8
+ setup(f) {
9
+ const e = l(), t = c(() => {
10
+ var r;
11
+ return e.currentBusiness.value ? `https://print-template-builder.feedme.dev//#/receipt-info?businessId=${(r = e.currentBusiness.value) == null ? void 0 : r.id}&country=${e.currentCountry.value}&token=${m.token}` : "";
12
+ });
13
+ return (r, v) => {
14
+ const n = u("FmCircularProgress");
15
+ return t.value ? (s(), o("iframe", {
16
+ key: 1,
17
+ class: "w-full h-full",
18
+ src: t.value
19
+ }, null, 8, p)) : (s(), o("div", i, [
20
+ d(n, { size: "lg" })
21
+ ]));
22
+ };
23
+ }
24
+ });
25
+ export {
26
+ h as default
27
+ };
@@ -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
  },
@@ -96,6 +98,7 @@ const N = /* @__PURE__ */ p({
96
98
  title: "Tax No",
97
99
  not_set: "Not set"
98
100
  },
101
+ tagging: "Tag",
99
102
  actions: {
100
103
  discard: "Discard"
101
104
  },
@@ -460,9 +463,9 @@ const N = /* @__PURE__ */ p({
460
463
  message: 'Are you sure you want to delete the reason template for "{action}"? This action cannot be undone.'
461
464
  }
462
465
  }
463
- }, F = {
464
- settings: D
465
- }, B = {
466
+ }, K = {
467
+ settings: z
468
+ }, V = {
466
469
  title: "การตั้งค่า",
467
470
  eInvoice: {
468
471
  title: "ใบแจ้งหนี้อิเล็กทรอนิกส์"
@@ -473,6 +476,7 @@ const N = /* @__PURE__ */ p({
473
476
  templateBuilder: {
474
477
  title: "เครื่องมือสร้างใบเสร็จ"
475
478
  },
479
+ deviceManagement: "การจัดการอุปกรณ์",
476
480
  device: {
477
481
  title: "อุปกรณ์"
478
482
  },
@@ -495,6 +499,7 @@ const N = /* @__PURE__ */ p({
495
499
  title: "เลขประจำตัวผู้เสียภาษี",
496
500
  not_set: "ไม่ได้ตั้งค่า"
497
501
  },
502
+ tagging: "แท็ก",
498
503
  actions: {
499
504
  discard: "ยกเลิก"
500
505
  },
@@ -859,9 +864,9 @@ const N = /* @__PURE__ */ p({
859
864
  message: 'คุณแน่ใจหรือไม่ว่าต้องการลบเทมเพลตเหตุผลสำหรับ "{action}"? การดำเนินการนี้ไม่สามารถยกเลิกได้'
860
865
  }
861
866
  }
862
- }, E = {
863
- settings: B
864
- }, j = {
867
+ }, H = {
868
+ settings: V
869
+ }, W = {
865
870
  title: "设置",
866
871
  eInvoice: {
867
872
  title: "电子发票"
@@ -872,6 +877,7 @@ const N = /* @__PURE__ */ p({
872
877
  templateBuilder: {
873
878
  title: "模板生成器"
874
879
  },
880
+ deviceManagement: "设备管理",
875
881
  device: {
876
882
  title: "设备"
877
883
  },
@@ -894,6 +900,7 @@ const N = /* @__PURE__ */ p({
894
900
  title: "税号",
895
901
  not_set: "未设置"
896
902
  },
903
+ tagging: "标签",
897
904
  actions: {
898
905
  discard: "丢弃"
899
906
  },
@@ -1261,9 +1268,9 @@ const N = /* @__PURE__ */ p({
1261
1268
  message: '确定要删除"{action}"的原因模板吗?此操作无法撤销。'
1262
1269
  }
1263
1270
  }
1264
- }, M = {
1265
- settings: j
1266
- }, K = {
1271
+ }, G = {
1272
+ settings: W
1273
+ }, Y = {
1267
1274
  title: "設置",
1268
1275
  eInvoice: {
1269
1276
  title: "電子發票"
@@ -1274,6 +1281,7 @@ const N = /* @__PURE__ */ p({
1274
1281
  templateBuilder: {
1275
1282
  title: "模板生成器"
1276
1283
  },
1284
+ deviceManagement: "设备管理",
1277
1285
  device: {
1278
1286
  title: "設備"
1279
1287
  },
@@ -1296,6 +1304,7 @@ const N = /* @__PURE__ */ p({
1296
1304
  title: "税號",
1297
1305
  not_set: "未設置"
1298
1306
  },
1307
+ tagging: "標籤",
1299
1308
  actions: {
1300
1309
  discard: "丟棄"
1301
1310
  },
@@ -1663,17 +1672,13 @@ const N = /* @__PURE__ */ p({
1663
1672
  message: '確定要刪除"{action}"的原因模板嗎?此操作無法撤銷。'
1664
1673
  }
1665
1674
  }
1666
- }, z = {
1667
- settings: K
1668
- }, J = [
1669
- {
1670
- path: "/",
1671
- redirect: "$settings-my-business"
1672
- },
1675
+ }, Q = {
1676
+ settings: Y
1677
+ }, l = [
1673
1678
  {
1674
1679
  path: "/business",
1675
1680
  name: "$settings-my-business",
1676
- component: t(() => import("./Business-eafcd130.js")),
1681
+ component: t(() => import("./Business-d8e4f7d1.js")),
1677
1682
  meta: {
1678
1683
  i18nKey: "settings.business.title"
1679
1684
  }
@@ -1681,7 +1686,7 @@ const N = /* @__PURE__ */ p({
1681
1686
  {
1682
1687
  path: "/create-business",
1683
1688
  name: "$settings-create-business",
1684
- component: t(() => import("./CreateBusiness-8145d5b6.js")),
1689
+ component: t(() => import("./CreateBusiness-af1ec0c0.js")),
1685
1690
  meta: {
1686
1691
  hideNavigation: !0
1687
1692
  }
@@ -1689,7 +1694,7 @@ const N = /* @__PURE__ */ p({
1689
1694
  {
1690
1695
  path: "/foodcourt",
1691
1696
  name: "$settings-food-court",
1692
- component: t(() => import("./FoodCourt-859c83b2.js")),
1697
+ component: t(() => import("./FoodCourt-c9b603d6.js")),
1693
1698
  meta: {
1694
1699
  i18nKey: "settings.food_court.list.title"
1695
1700
  }
@@ -1697,18 +1702,20 @@ const N = /* @__PURE__ */ p({
1697
1702
  {
1698
1703
  path: "/devices",
1699
1704
  name: "$settings-device",
1700
- component: b,
1701
- children: _.map((e) => ({ ...e, path: `/device${e.path}` })),
1705
+ component: f,
1706
+ children: R.map((e) => ({ ...e, path: `/device${e.path}` })),
1702
1707
  meta: {
1703
- i18nKey: "settings.device.title"
1708
+ i18nKey: "settings.device.title",
1709
+ hideNavigation: !0
1704
1710
  }
1705
1711
  },
1706
1712
  {
1707
1713
  path: "/template-builder",
1708
1714
  name: "$settings-template-builder",
1709
- component: t(() => import("./TemplateBuilder-3e34e9e8.js")),
1715
+ component: t(() => import("./TemplateBuilder-54a34178.js")),
1710
1716
  meta: {
1711
- i18nKey: "settings.templateBuilder.title"
1717
+ i18nKey: "settings.templateBuilder.title",
1718
+ hideNavigation: !0
1712
1719
  }
1713
1720
  },
1714
1721
  {
@@ -1722,8 +1729,8 @@ const N = /* @__PURE__ */ p({
1722
1729
  {
1723
1730
  path: "/e-invoice",
1724
1731
  name: "$settings-e-invoice",
1725
- component: x,
1726
- children: k.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
1732
+ component: F,
1733
+ children: D.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
1727
1734
  meta: {
1728
1735
  i18nKey: "settings.eInvoice.title"
1729
1736
  }
@@ -1731,7 +1738,7 @@ const N = /* @__PURE__ */ p({
1731
1738
  {
1732
1739
  path: "/tagging",
1733
1740
  name: "$settings-tagging",
1734
- component: A(t(() => import("./Tagging-e96d855e.js"))),
1741
+ component: g(t(() => import("./Tagging-fcbb1569.js"))),
1735
1742
  meta: {
1736
1743
  i18nKey: "settings.tagging.title",
1737
1744
  validationManifest: {
@@ -1743,35 +1750,64 @@ const N = /* @__PURE__ */ p({
1743
1750
  {
1744
1751
  path: "/reason-template",
1745
1752
  name: "$settings-reason-template",
1746
- component: t(() => import("./ReasonTemplate-06a053d7.js")),
1753
+ component: t(() => import("./ReasonTemplate-c39df454.js")),
1747
1754
  meta: {
1748
1755
  i18nKey: "settings.reasonTemplate.title",
1749
1756
  hideNavigation: !0
1750
1757
  }
1758
+ },
1759
+ {
1760
+ path: "/devices/order-setting",
1761
+ name: "$pos-order-setting",
1762
+ component: g(w),
1763
+ children: L.map((e) => ({ ...e, path: `/order-setting${e.path}` })),
1764
+ meta: {
1765
+ hideNavigation: !0,
1766
+ validationManifest: {
1767
+ requiredCaslPermissions: [
1768
+ {
1769
+ action: b.Action.manage,
1770
+ subject: b.Subject.Business.restaurant
1771
+ }
1772
+ ]
1773
+ }
1774
+ }
1775
+ }
1776
+ ];
1777
+ var v;
1778
+ l.push({
1779
+ path: "/",
1780
+ redirect: {
1781
+ name: ((v = l[0].children) == null ? void 0 : v[0].name) || l[0].name
1751
1782
  }
1752
- ], X = t(() => import("./App-dadb8bf9.js")), Z = {
1783
+ });
1784
+ const ne = t(() => import("./App-dd9dd400.js")), oe = {
1753
1785
  "en-US": {
1754
- ...F,
1755
- ...s["en-US"]
1786
+ ...K,
1787
+ ...s["en-US"],
1788
+ ...r["en-US"]
1756
1789
  },
1757
1790
  "zh-CN": {
1758
- ...M,
1759
- ...s["zh-CN"]
1791
+ ...G,
1792
+ ...s["zh-CN"],
1793
+ ...r["zh-CN"]
1760
1794
  },
1761
1795
  "th-TH": {
1762
- ...E,
1763
- ...s["th-TH"]
1796
+ ...H,
1797
+ ...s["th-TH"],
1798
+ ...r["th-TH"]
1764
1799
  },
1765
1800
  "zh-Hant": {
1766
- ...z,
1767
- ...s["zh-Hant"] || {}
1801
+ ...Q,
1802
+ ...s["zh-Hant"] || {},
1803
+ ...r["zh-Hant"] || {}
1768
1804
  }
1769
- }, ee = t(() => import("./ReasonTemplate-06a053d7.js"));
1805
+ }, se = t(() => import("./ReasonTemplate-c39df454.js"));
1770
1806
  export {
1771
- X as F,
1772
- ee as R,
1773
- N as _,
1774
- Z as i,
1775
- J as r,
1776
- I as u
1807
+ ne as F,
1808
+ se as R,
1809
+ B as _,
1810
+ oe as i,
1811
+ l as r,
1812
+ M as u
1777
1813
  };
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-9c6363b3.js";
2
+ import "@feedmepos/mf-order-setting";
3
+ import { F as n, R as F, i as R, r as f } from "./app-a060d858.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
  };