@feedmepos/mf-settings 0.0.66-beta.3 → 0.0.66-beta.5

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-0f84be73.js";
6
+ import { r as lr } from "./app-bf594259.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-0f84be73.js";
17
+ import { u as Y_ } from "./app-bf594259.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-0f84be73.js";
5
+ import { _ as eE } from "./app-bf594259.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 R, routers as w, i18nMessages as s } from "@feedmepos/mf-mdm";
2
- import { routers as d, FmApp as L, i18nMessages as r } from "@feedmepos/mf-order-setting";
3
- import { ref as h, watch as p, nextTick as g, onMounted as U, onBeforeUnmount as q, defineComponent as y, computed as O, openBlock as f, createElementBlock as S, normalizeStyle as T, renderSlot as A, resolveComponent as C, createBlock as k, withCtx as x, createElementVNode as I, createVNode as N, defineAsyncComponent as $ } from "vue";
4
- import { useBreakpoints as P } from "@feedmepos/ui-library";
1
+ import { FmApp as f, routers as R, i18nMessages as s } from "@feedmepos/mf-mdm";
2
+ import { ref as _, watch as m, nextTick as p, onMounted as w, onBeforeUnmount as L, defineComponent as h, computed as U, openBlock as y, createElementBlock as q, normalizeStyle as O, renderSlot as S, resolveComponent as T, createBlock as A, withCtx as C, createElementVNode as k, createVNode as x, defineAsyncComponent as I } from "vue";
3
+ import { useBreakpoints as N } from "@feedmepos/ui-library";
5
4
  import "vue-router";
6
- import { withPermission as b, Permission as v } 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 = h({ top: 0, bottom: 0, left: 0, right: 0 });
5
+ import { withPermission as g, Permission as b } from "@feedmepos/mf-common";
6
+ import { FmApp as $, routers as P } from "@feedmepos/mf-e-invoice";
7
+ import { routers as l, FmApp as F } from "@feedmepos/mf-order-setting";
8
+ function D(e, o) {
9
+ const n = _({ 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 p(o, async () => {
22
- await g(), a();
23
- }), p(e, async (i) => {
24
- i && (await g(), a());
25
- }), U(() => {
21
+ return m(o, async () => {
22
+ await p(), a();
23
+ }), m(e, async (i) => {
24
+ i && (await p(), a());
25
+ }), w(() => {
26
26
  window.addEventListener("resize", a);
27
- }), q(() => {
27
+ }), L(() => {
28
28
  window.removeEventListener("resize", a);
29
29
  }), n;
30
30
  }
31
- const B = /* @__PURE__ */ y({
31
+ const B = /* @__PURE__ */ h({
32
32
  __name: "FullWrapper",
33
33
  setup(e) {
34
- const o = P(), n = h(null), a = M(n), i = O(() => {
35
- var m;
36
- const u = o.isAtMost("sm") ? 56 : 0;
34
+ const o = N(), n = _(null), a = D(n), i = U(() => {
35
+ var u;
36
+ const c = o.isAtMost("sm") ? 56 : 0;
37
37
  return {
38
- height: `calc(100dvh - ${((m = a.value) == null ? void 0 : m.top) + 24 + u}px)`
38
+ height: `calc(100dvh - ${((u = a.value) == null ? void 0 : u.top) + 24 + c}px)`
39
39
  };
40
40
  });
41
- return (c, u) => (f(), S("div", {
41
+ return (d, c) => (y(), q("div", {
42
42
  ref_key: "wrapper",
43
43
  ref: n,
44
- style: T(i.value)
44
+ style: O(i.value)
45
45
  }, [
46
- A(c.$slots, "default")
46
+ S(d.$slots, "default")
47
47
  ], 4));
48
48
  }
49
- }), E = { class: "flex justify-center items-center h-full w-full" }, j = /* @__PURE__ */ y({
49
+ }), M = { class: "flex justify-center items-center h-full w-full" }, E = /* @__PURE__ */ h({
50
50
  __name: "PageLoading",
51
51
  setup(e) {
52
52
  return (o, n) => {
53
- const a = C("FmCircularProgress");
54
- return f(), k(B, null, {
55
- default: x(() => [
56
- I("div", E, [
57
- N(a, { size: "xl" })
53
+ const a = T("FmCircularProgress");
54
+ return y(), A(B, null, {
55
+ default: C(() => [
56
+ k("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) => I({
65
65
  loader: e,
66
- loadingComponent: j
67
- }), K = {
66
+ loadingComponent: E
67
+ }), j = {
68
68
  title: "Settings",
69
69
  eInvoice: {
70
70
  title: "E-invoice"
@@ -463,9 +463,9 @@ const B = /* @__PURE__ */ y({
463
463
  message: 'Are you sure you want to delete the reason template for "{action}"? This action cannot be undone.'
464
464
  }
465
465
  }
466
+ }, K = {
467
+ settings: j
466
468
  }, z = {
467
- settings: K
468
- }, V = {
469
469
  title: "การตั้งค่า",
470
470
  eInvoice: {
471
471
  title: "ใบแจ้งหนี้อิเล็กทรอนิกส์"
@@ -864,9 +864,9 @@ const B = /* @__PURE__ */ y({
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__ */ y({
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,16 +1672,16 @@ const B = /* @__PURE__ */ y({
1672
1672
  message: '確定要刪除"{action}"的原因模板嗎?此操作無法撤銷。'
1673
1673
  }
1674
1674
  }
1675
- }, Q = {
1676
- settings: Y
1675
+ }, Y = {
1676
+ settings: G
1677
1677
  };
1678
- d.map((e) => console.log({ ...e, path: `/order-setting${e.path}` }));
1679
- console.log(d.filter((e) => e.name === "Kiosk"));
1680
- const l = [
1678
+ l.map((e) => console.log({ ...e, path: `/order-setting${e.path}` }));
1679
+ console.log(l.filter((e) => e.name === "Kiosk"));
1680
+ const r = [
1681
1681
  {
1682
1682
  path: "/business",
1683
1683
  name: "$settings-my-business",
1684
- component: t(() => import("./Business-8f3269f4.js")),
1684
+ component: t(() => import("./Business-127f67d8.js")),
1685
1685
  meta: {
1686
1686
  i18nKey: "settings.business.title"
1687
1687
  }
@@ -1705,8 +1705,8 @@ const l = [
1705
1705
  {
1706
1706
  path: "/devices",
1707
1707
  name: "$settings-device",
1708
- component: R,
1709
- children: w.map((e) => ({ ...e, path: `/device${e.path}` })),
1708
+ component: f,
1709
+ children: R.map((e) => ({ ...e, path: `/device${e.path}` })),
1710
1710
  meta: {
1711
1711
  i18nKey: "settings.device.title",
1712
1712
  hideNavigation: !0
@@ -1732,8 +1732,8 @@ const l = [
1732
1732
  {
1733
1733
  path: "/e-invoice",
1734
1734
  name: "$settings-e-invoice",
1735
- component: F,
1736
- children: D.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
1735
+ component: $,
1736
+ children: P.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
1737
1737
  meta: {
1738
1738
  i18nKey: "settings.eInvoice.title"
1739
1739
  }
@@ -1741,7 +1741,7 @@ const l = [
1741
1741
  {
1742
1742
  path: "/tagging",
1743
1743
  name: "$settings-tagging",
1744
- component: b(t(() => import("./Tagging-70f2ec19.js"))),
1744
+ component: g(t(() => import("./Tagging-0306111c.js"))),
1745
1745
  meta: {
1746
1746
  i18nKey: "settings.tagging.title",
1747
1747
  validationManifest: {
@@ -1762,55 +1762,51 @@ const l = [
1762
1762
  {
1763
1763
  path: "/devices/order-setting",
1764
1764
  name: "$pos-order-setting",
1765
- component: b(L),
1766
- children: d.filter((e) => e.name === "Kiosk"),
1765
+ component: g(F),
1766
+ children: l.filter((e) => e.name === "Kiosk"),
1767
1767
  meta: {
1768
1768
  hideNavigation: !0,
1769
1769
  validationManifest: {
1770
1770
  requiredCaslPermissions: [
1771
1771
  {
1772
- action: v.Action.manage,
1773
- subject: v.Subject.Business.restaurant
1772
+ action: b.Action.manage,
1773
+ subject: b.Subject.Business.restaurant
1774
1774
  }
1775
1775
  ]
1776
1776
  }
1777
1777
  }
1778
1778
  }
1779
1779
  ];
1780
- var _;
1781
- l.push({
1780
+ var v;
1781
+ r.push({
1782
1782
  path: "/",
1783
1783
  redirect: {
1784
- name: ((_ = l[0].children) == null ? void 0 : _[0].name) || l[0].name
1784
+ name: ((v = r[0].children) == null ? void 0 : v[0].name) || r[0].name
1785
1785
  }
1786
1786
  });
1787
- const ne = t(() => import("./App-22dab87e.js")), oe = {
1787
+ const ie = t(() => import("./App-c137ca69.js")), ne = {
1788
1788
  "en-US": {
1789
- ...z,
1790
- ...s["en-US"],
1791
- ...r["en-US"]
1789
+ ...K,
1790
+ ...s["en-US"]
1792
1791
  },
1793
1792
  "zh-CN": {
1794
- ...G,
1795
- ...s["zh-CN"],
1796
- ...r["zh-CN"]
1793
+ ...W,
1794
+ ...s["zh-CN"]
1797
1795
  },
1798
1796
  "th-TH": {
1799
- ...H,
1800
- ...s["th-TH"],
1801
- ...r["th-TH"]
1797
+ ...V,
1798
+ ...s["th-TH"]
1802
1799
  },
1803
1800
  "zh-Hant": {
1804
- ...Q,
1805
- ...s["zh-Hant"] || {},
1806
- ...r["zh-Hant"] || {}
1801
+ ...Y,
1802
+ ...s["zh-Hant"] || {}
1807
1803
  }
1808
- }, se = t(() => import("./ReasonTemplate-c39df454.js"));
1804
+ }, oe = t(() => import("./ReasonTemplate-c39df454.js"));
1809
1805
  export {
1810
- ne as F,
1811
- se as R,
1806
+ ie as F,
1807
+ oe as R,
1812
1808
  B as _,
1813
- oe as i,
1814
- l as r,
1815
- M as u
1809
+ ne as i,
1810
+ r,
1811
+ D as u
1816
1812
  };
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-0f84be73.js";
2
+ import { F as n, R as F, i as R, r as f } from "./app-bf594259.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,