@feedmepos/mf-settings 0.0.66-beta.4 → 0.0.66-beta.6

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,7 +3,7 @@ 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-bf594259.js";
6
+ import { r as lr } from "./app-a332692c.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
9
  import "@feedmepos/ui-library";
@@ -14,7 +14,7 @@ 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-bf594259.js";
17
+ import { u as Y_ } from "./app-a332692c.js";
18
18
  import { r as Rn } from "./rules-2bee6632.js";
19
19
  import "pinia";
20
20
  import "@feedmepos/mf-mdm";
@@ -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-bf594259.js";
5
+ import { _ as eE } from "./app-a332692c.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";
@@ -1,12 +1,12 @@
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";
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 k, defineAsyncComponent as x } from "vue";
3
+ import { useBreakpoints as I } from "@feedmepos/ui-library";
4
4
  import "vue-router";
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";
5
+ import { withPermission as p, Permission as g } from "@feedmepos/mf-common";
6
+ import { FmApp as N, routers as P } from "@feedmepos/mf-e-invoice";
7
+ import { FmApp as $, routers as F } from "@feedmepos/mf-order-setting";
8
8
  function D(e, o) {
9
- const n = _({ top: 0, bottom: 0, left: 0, right: 0 });
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,50 +18,50 @@ function D(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
- }), w(() => {
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
- }), L(() => {
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 = N(), n = _(null), a = D(n), i = U(() => {
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(), q("div", {
41
+ return (l, d) => (h(), U("div", {
42
42
  ref_key: "wrapper",
43
43
  ref: n,
44
- style: O(i.value)
44
+ style: q(i.value)
45
45
  }, [
46
- S(d.$slots, "default")
46
+ O(l.$slots, "default")
47
47
  ], 4));
48
48
  }
49
- }), M = { class: "flex justify-center items-center h-full w-full" }, E = /* @__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 = T("FmCircularProgress");
54
- return y(), A(B, null, {
55
- default: C(() => [
56
- k("div", M, [
57
- x(a, { size: "xl" })
53
+ const a = S("FmCircularProgress");
54
+ return h(), T(B, null, {
55
+ default: A(() => [
56
+ C("div", M, [
57
+ k(a, { size: "xl" })
58
58
  ])
59
59
  ]),
60
60
  _: 1
61
61
  });
62
62
  };
63
63
  }
64
- }), t = (e) => I({
64
+ }), t = (e) => x({
65
65
  loader: e,
66
66
  loadingComponent: E
67
67
  }), j = {
@@ -1674,14 +1674,11 @@ const B = /* @__PURE__ */ h({
1674
1674
  }
1675
1675
  }, Y = {
1676
1676
  settings: G
1677
- };
1678
- l.map((e) => console.log({ ...e, path: `/order-setting${e.path}` }));
1679
- console.log(l.filter((e) => e.name === "Kiosk"));
1680
- const r = [
1677
+ }, r = [
1681
1678
  {
1682
1679
  path: "/business",
1683
1680
  name: "$settings-my-business",
1684
- component: t(() => import("./Business-127f67d8.js")),
1681
+ component: t(() => import("./Business-401f0aad.js")),
1685
1682
  meta: {
1686
1683
  i18nKey: "settings.business.title"
1687
1684
  }
@@ -1705,8 +1702,8 @@ const r = [
1705
1702
  {
1706
1703
  path: "/devices",
1707
1704
  name: "$settings-device",
1708
- component: f,
1709
- children: R.map((e) => ({ ...e, path: `/device${e.path}` })),
1705
+ component: y,
1706
+ children: f.map((e) => ({ ...e, path: `/device${e.path}` })),
1710
1707
  meta: {
1711
1708
  i18nKey: "settings.device.title",
1712
1709
  hideNavigation: !0
@@ -1732,7 +1729,7 @@ const r = [
1732
1729
  {
1733
1730
  path: "/e-invoice",
1734
1731
  name: "$settings-e-invoice",
1735
- component: $,
1732
+ component: N,
1736
1733
  children: P.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
1737
1734
  meta: {
1738
1735
  i18nKey: "settings.eInvoice.title"
@@ -1741,7 +1738,7 @@ const r = [
1741
1738
  {
1742
1739
  path: "/tagging",
1743
1740
  name: "$settings-tagging",
1744
- component: g(t(() => import("./Tagging-0306111c.js"))),
1741
+ component: p(t(() => import("./Tagging-6769900d.js"))),
1745
1742
  meta: {
1746
1743
  i18nKey: "settings.tagging.title",
1747
1744
  validationManifest: {
@@ -1762,29 +1759,29 @@ const r = [
1762
1759
  {
1763
1760
  path: "/devices/order-setting",
1764
1761
  name: "$pos-order-setting",
1765
- component: g(F),
1766
- children: l.filter((e) => e.name === "Kiosk"),
1762
+ component: p($),
1763
+ children: F.filter((e) => e.name === "Kiosk"),
1767
1764
  meta: {
1768
1765
  hideNavigation: !0,
1769
1766
  validationManifest: {
1770
1767
  requiredCaslPermissions: [
1771
1768
  {
1772
- action: b.Action.manage,
1773
- subject: b.Subject.Business.restaurant
1769
+ action: g.Action.manage,
1770
+ subject: g.Subject.Business.restaurant
1774
1771
  }
1775
1772
  ]
1776
1773
  }
1777
1774
  }
1778
1775
  }
1779
1776
  ];
1780
- var v;
1777
+ var b;
1781
1778
  r.push({
1782
1779
  path: "/",
1783
1780
  redirect: {
1784
- name: ((v = r[0].children) == null ? void 0 : v[0].name) || r[0].name
1781
+ name: ((b = r[0].children) == null ? void 0 : b[0].name) || r[0].name
1785
1782
  }
1786
1783
  });
1787
- const ie = t(() => import("./App-c137ca69.js")), ne = {
1784
+ const ie = t(() => import("./App-b4403e0a.js")), ne = {
1788
1785
  "en-US": {
1789
1786
  ...K,
1790
1787
  ...s["en-US"]
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "@feedmepos/mf-mdm";
2
- import { F as n, R as F, i as R, r as f } from "./app-bf594259.js";
2
+ import { F as n, R as F, i as R, r as f } from "./app-a332692c.js";
3
3
  import "vue";
4
4
  import "@feedmepos/ui-library";
5
5
  import "vue-router";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-settings",
3
- "version": "0.0.66-beta.4",
3
+ "version": "0.0.66-beta.6",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"