@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-
|
|
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-
|
|
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-
|
|
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
|
|
2
|
-
import { ref as
|
|
3
|
-
import { useBreakpoints as
|
|
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
|
|
6
|
-
import { FmApp as
|
|
7
|
-
import {
|
|
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 =
|
|
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
|
|
22
|
-
await
|
|
23
|
-
}),
|
|
24
|
-
i && (await
|
|
25
|
-
}),
|
|
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
|
-
}),
|
|
27
|
+
}), w(() => {
|
|
28
28
|
window.removeEventListener("resize", a);
|
|
29
29
|
}), n;
|
|
30
30
|
}
|
|
31
|
-
const B = /* @__PURE__ */
|
|
31
|
+
const B = /* @__PURE__ */ _({
|
|
32
32
|
__name: "FullWrapper",
|
|
33
33
|
setup(e) {
|
|
34
|
-
const o =
|
|
35
|
-
var
|
|
36
|
-
const
|
|
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 - ${((
|
|
38
|
+
height: `calc(100dvh - ${((c = a.value) == null ? void 0 : c.top) + 24 + d}px)`
|
|
39
39
|
};
|
|
40
40
|
});
|
|
41
|
-
return (
|
|
41
|
+
return (l, d) => (h(), U("div", {
|
|
42
42
|
ref_key: "wrapper",
|
|
43
43
|
ref: n,
|
|
44
|
-
style:
|
|
44
|
+
style: q(i.value)
|
|
45
45
|
}, [
|
|
46
|
-
|
|
46
|
+
O(l.$slots, "default")
|
|
47
47
|
], 4));
|
|
48
48
|
}
|
|
49
|
-
}), M = { class: "flex justify-center items-center h-full w-full" }, E = /* @__PURE__ */
|
|
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 =
|
|
54
|
-
return
|
|
55
|
-
default:
|
|
56
|
-
|
|
57
|
-
|
|
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) =>
|
|
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-
|
|
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:
|
|
1709
|
-
children:
|
|
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:
|
|
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:
|
|
1766
|
-
children:
|
|
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:
|
|
1773
|
-
subject:
|
|
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
|
|
1777
|
+
var b;
|
|
1781
1778
|
r.push({
|
|
1782
1779
|
path: "/",
|
|
1783
1780
|
redirect: {
|
|
1784
|
-
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-
|
|
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