@feedmepos/mf-settings 0.0.67-alpha.0 → 0.0.67-alpha.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.
@@ -3,12 +3,12 @@ import { useRouter as zn, RouterView as Gn } from "vue-router";
3
3
  import { useI18n as Ln, useCoreStore as Qr, FeedMeAuth as Hn } from "@feedmepos/mf-common";
4
4
  import { c as ur } from "./_commonjs-dynamic-modules-bed80856.js";
5
5
  import { c as Oe, e as Jr } from "./index-b9ef9a01.js";
6
- import { r as lr } from "./app-a060d858.js";
6
+ import { r as lr } from "./app-6d1a848d.js";
7
7
  import { r as hr, g as Yr, i as Un, a as Vn, _ as Ar, C as Ir, b as Kn, S as Et, c as dt, E as $r, d as Wn, e as Xr, f as Qn, h as Jn, L as Zr, j as we, k as Yn, l as Xn, F as gr, q as jt, m as Zn, n as ea, o as ta, p as ra, s as na, t as aa, u as ia, v as sa } from "./map-695afd6f.js";
8
8
  import "@feedmepos/mf-mdm";
9
- import "@feedmepos/mf-order-setting";
10
9
  import "@feedmepos/ui-library";
11
10
  import "@feedmepos/mf-e-invoice";
11
+ import "@feedmepos/mf-order-setting";
12
12
  function mr(k, p) {
13
13
  var b = {};
14
14
  for (var j in k)
@@ -14,13 +14,13 @@ import { c as qr } from "./object-27ce045b.js";
14
14
  import { b as B_ } from "./business-7684bcec.js";
15
15
  import { t as so, w as oo, x as z_, y as K_, z as G_, A as q_, B as gi, u as dr, D as W_, G as H_ } from "./map-695afd6f.js";
16
16
  import { _ as dd } from "./_plugin-vue_export-helper-dad06003.js";
17
- import { u as Y_ } from "./app-a060d858.js";
17
+ import { u as Y_ } from "./app-6d1a848d.js";
18
18
  import { r as Rn } from "./rules-2bee6632.js";
19
19
  import "pinia";
20
20
  import "@feedmepos/mf-mdm";
21
- import "@feedmepos/mf-order-setting";
22
21
  import "vue-router";
23
22
  import "@feedmepos/mf-e-invoice";
23
+ import "@feedmepos/mf-order-setting";
24
24
  const X_ = { class: "px-8" }, J_ = { class: "max-h-[160px] overflow-y-auto" }, Q_ = /* @__PURE__ */ Ke({
25
25
  __name: "FilterEntry",
26
26
  props: {
@@ -2,7 +2,7 @@ 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-a060d858.js";
5
+ import { _ as eE } from "./app-6d1a848d.js";
6
6
  import { _ as nE, c as rl } from "./createForm-d3b97d2e.js";
7
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";
@@ -11,9 +11,9 @@ import { c as wi } from "./object-27ce045b.js";
11
11
  import { defineStore as rE } from "pinia";
12
12
  import { b as rs } from "./business-7684bcec.js";
13
13
  import "@feedmepos/mf-mdm";
14
- import "@feedmepos/mf-order-setting";
15
14
  import "vue-router";
16
15
  import "@feedmepos/mf-e-invoice";
16
+ import "@feedmepos/mf-order-setting";
17
17
  /*!
18
18
  * shared v10.0.5
19
19
  * (c) 2024 kazuya kawaguchi
@@ -1,12 +1,12 @@
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";
1
+ import { FmApp as y, routers as f, i18nMessages as s } from "@feedmepos/mf-mdm";
2
+ import { ref as v, watch as u, nextTick as m, onMounted as R, onBeforeUnmount as w, defineComponent as _, computed as L, openBlock as h, createElementBlock as U, normalizeStyle as q, renderSlot as O, resolveComponent as S, createBlock as T, withCtx as A, createElementVNode as C, createVNode as x, defineAsyncComponent as k } from "vue";
3
+ import { useBreakpoints as I } from "@feedmepos/ui-library";
5
4
  import "vue-router";
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 });
5
+ import { withPermission as p, Permission as g } from "@feedmepos/mf-common";
6
+ import { FmApp as N, routers as $ } from "@feedmepos/mf-e-invoice";
7
+ import { FmApp as P, routers as F } from "@feedmepos/mf-order-setting";
8
+ function D(e, o) {
9
+ const n = v({ top: 0, bottom: 0, left: 0, right: 0 });
10
10
  function a() {
11
11
  if (e.value) {
12
12
  const i = e.value.getBoundingClientRect();
@@ -18,53 +18,53 @@ function M(e, o) {
18
18
  };
19
19
  }
20
20
  }
21
- return m(o, async () => {
22
- await p(), a();
23
- }), m(e, async (i) => {
24
- i && (await p(), a());
25
- }), U(() => {
21
+ return u(o, async () => {
22
+ await m(), a();
23
+ }), u(e, async (i) => {
24
+ i && (await m(), a());
25
+ }), R(() => {
26
26
  window.addEventListener("resize", a);
27
- }), q(() => {
27
+ }), w(() => {
28
28
  window.removeEventListener("resize", a);
29
29
  }), n;
30
30
  }
31
- const B = /* @__PURE__ */ h({
31
+ const B = /* @__PURE__ */ _({
32
32
  __name: "FullWrapper",
33
33
  setup(e) {
34
- const o = P(), n = _(null), a = M(n), i = O(() => {
35
- var u;
36
- const c = o.isAtMost("sm") ? 56 : 0;
34
+ const o = I(), n = v(null), a = D(n), i = L(() => {
35
+ var c;
36
+ const d = o.isAtMost("sm") ? 56 : 0;
37
37
  return {
38
- height: `calc(100dvh - ${((u = a.value) == null ? void 0 : u.top) + 24 + c}px)`
38
+ height: `calc(100dvh - ${((c = a.value) == null ? void 0 : c.top) + 24 + d}px)`
39
39
  };
40
40
  });
41
- return (d, c) => (y(), S("div", {
41
+ return (l, d) => (h(), U("div", {
42
42
  ref_key: "wrapper",
43
43
  ref: n,
44
- style: T(i.value)
44
+ style: q(i.value)
45
45
  }, [
46
- A(d.$slots, "default")
46
+ O(l.$slots, "default")
47
47
  ], 4));
48
48
  }
49
- }), E = { class: "flex justify-center items-center h-full w-full" }, j = /* @__PURE__ */ h({
49
+ }), M = { class: "flex justify-center items-center h-full w-full" }, E = /* @__PURE__ */ _({
50
50
  __name: "PageLoading",
51
51
  setup(e) {
52
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" })
53
+ const a = S("FmCircularProgress");
54
+ return h(), T(B, null, {
55
+ default: A(() => [
56
+ C("div", M, [
57
+ x(a, { size: "xl" })
58
58
  ])
59
59
  ]),
60
60
  _: 1
61
61
  });
62
62
  };
63
63
  }
64
- }), t = (e) => $({
64
+ }), t = (e) => k({
65
65
  loader: e,
66
- loadingComponent: j
67
- }), z = {
66
+ loadingComponent: E
67
+ }), j = {
68
68
  title: "Settings",
69
69
  eInvoice: {
70
70
  title: "E-invoice"
@@ -464,8 +464,8 @@ const B = /* @__PURE__ */ h({
464
464
  }
465
465
  }
466
466
  }, K = {
467
- settings: z
468
- }, V = {
467
+ settings: j
468
+ }, z = {
469
469
  title: "การตั้งค่า",
470
470
  eInvoice: {
471
471
  title: "ใบแจ้งหนี้อิเล็กทรอนิกส์"
@@ -864,9 +864,9 @@ const B = /* @__PURE__ */ h({
864
864
  message: 'คุณแน่ใจหรือไม่ว่าต้องการลบเทมเพลตเหตุผลสำหรับ "{action}"? การดำเนินการนี้ไม่สามารถยกเลิกได้'
865
865
  }
866
866
  }
867
+ }, V = {
868
+ settings: z
867
869
  }, H = {
868
- settings: V
869
- }, W = {
870
870
  title: "设置",
871
871
  eInvoice: {
872
872
  title: "电子发票"
@@ -1268,9 +1268,9 @@ const B = /* @__PURE__ */ h({
1268
1268
  message: '确定要删除"{action}"的原因模板吗?此操作无法撤销。'
1269
1269
  }
1270
1270
  }
1271
+ }, W = {
1272
+ settings: H
1271
1273
  }, G = {
1272
- settings: W
1273
- }, Y = {
1274
1274
  title: "設置",
1275
1275
  eInvoice: {
1276
1276
  title: "電子發票"
@@ -1672,13 +1672,13 @@ const B = /* @__PURE__ */ h({
1672
1672
  message: '確定要刪除"{action}"的原因模板嗎?此操作無法撤銷。'
1673
1673
  }
1674
1674
  }
1675
- }, Q = {
1676
- settings: Y
1677
- }, l = [
1675
+ }, Y = {
1676
+ settings: G
1677
+ }, r = [
1678
1678
  {
1679
1679
  path: "/business",
1680
1680
  name: "$settings-my-business",
1681
- component: t(() => import("./Business-d8e4f7d1.js")),
1681
+ component: t(() => import("./Business-a8ef60aa.js")),
1682
1682
  meta: {
1683
1683
  i18nKey: "settings.business.title"
1684
1684
  }
@@ -1702,8 +1702,8 @@ const B = /* @__PURE__ */ h({
1702
1702
  {
1703
1703
  path: "/devices",
1704
1704
  name: "$settings-device",
1705
- component: f,
1706
- children: R.map((e) => ({ ...e, path: `/device${e.path}` })),
1705
+ component: y,
1706
+ children: f.map((e) => ({ ...e, path: `/device${e.path}` })),
1707
1707
  meta: {
1708
1708
  i18nKey: "settings.device.title",
1709
1709
  hideNavigation: !0
@@ -1729,8 +1729,8 @@ const B = /* @__PURE__ */ h({
1729
1729
  {
1730
1730
  path: "/e-invoice",
1731
1731
  name: "$settings-e-invoice",
1732
- component: F,
1733
- children: D.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
1732
+ component: N,
1733
+ children: $.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
1734
1734
  meta: {
1735
1735
  i18nKey: "settings.eInvoice.title"
1736
1736
  }
@@ -1738,7 +1738,7 @@ const B = /* @__PURE__ */ h({
1738
1738
  {
1739
1739
  path: "/tagging",
1740
1740
  name: "$settings-tagging",
1741
- component: g(t(() => import("./Tagging-fcbb1569.js"))),
1741
+ component: p(t(() => import("./Tagging-c200a99f.js"))),
1742
1742
  meta: {
1743
1743
  i18nKey: "settings.tagging.title",
1744
1744
  validationManifest: {
@@ -1759,55 +1759,51 @@ const B = /* @__PURE__ */ h({
1759
1759
  {
1760
1760
  path: "/devices/order-setting",
1761
1761
  name: "$pos-order-setting",
1762
- component: g(w),
1763
- children: L.map((e) => ({ ...e, path: `/order-setting${e.path}` })),
1762
+ component: p(P),
1763
+ children: F.map((e) => ({ ...e, path: `/order-setting${e.path}` })),
1764
1764
  meta: {
1765
1765
  hideNavigation: !0,
1766
1766
  validationManifest: {
1767
1767
  requiredCaslPermissions: [
1768
1768
  {
1769
- action: b.Action.manage,
1770
- subject: b.Subject.Business.restaurant
1769
+ action: g.Action.manage,
1770
+ subject: g.Subject.Business.restaurant
1771
1771
  }
1772
1772
  ]
1773
1773
  }
1774
1774
  }
1775
1775
  }
1776
1776
  ];
1777
- var v;
1778
- l.push({
1777
+ var b;
1778
+ r.push({
1779
1779
  path: "/",
1780
1780
  redirect: {
1781
- name: ((v = l[0].children) == null ? void 0 : v[0].name) || l[0].name
1781
+ name: ((b = r[0].children) == null ? void 0 : b[0].name) || r[0].name
1782
1782
  }
1783
1783
  });
1784
- const ne = t(() => import("./App-dd9dd400.js")), oe = {
1784
+ const ie = t(() => import("./App-ff996e59.js")), ne = {
1785
1785
  "en-US": {
1786
1786
  ...K,
1787
- ...s["en-US"],
1788
- ...r["en-US"]
1787
+ ...s["en-US"]
1789
1788
  },
1790
1789
  "zh-CN": {
1791
- ...G,
1792
- ...s["zh-CN"],
1793
- ...r["zh-CN"]
1790
+ ...W,
1791
+ ...s["zh-CN"]
1794
1792
  },
1795
1793
  "th-TH": {
1796
- ...H,
1797
- ...s["th-TH"],
1798
- ...r["th-TH"]
1794
+ ...V,
1795
+ ...s["th-TH"]
1799
1796
  },
1800
1797
  "zh-Hant": {
1801
- ...Q,
1802
- ...s["zh-Hant"] || {},
1803
- ...r["zh-Hant"] || {}
1798
+ ...Y,
1799
+ ...s["zh-Hant"] || {}
1804
1800
  }
1805
- }, se = t(() => import("./ReasonTemplate-c39df454.js"));
1801
+ }, oe = t(() => import("./ReasonTemplate-c39df454.js"));
1806
1802
  export {
1807
- ne as F,
1808
- se as R,
1803
+ ie as F,
1804
+ oe as R,
1809
1805
  B as _,
1810
- oe as i,
1811
- l as r,
1812
- M as u
1806
+ ne as i,
1807
+ r,
1808
+ D as u
1813
1809
  };
package/dist/app.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import "@feedmepos/mf-mdm";
2
- import "@feedmepos/mf-order-setting";
3
- import { F as n, R as F, i as R, r as f } from "./app-a060d858.js";
2
+ import { F as n, R as F, i as R, r as f } from "./app-6d1a848d.js";
4
3
  import "vue";
5
4
  import "@feedmepos/ui-library";
6
5
  import "vue-router";
7
6
  import "@feedmepos/mf-common";
8
7
  import "@feedmepos/mf-e-invoice";
8
+ import "@feedmepos/mf-order-setting";
9
9
  export {
10
10
  n as FmApp,
11
11
  F as ReasonTemplateView,