@feedmepos/mf-settings 0.0.66-beta.1 → 0.0.66-beta.3
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-0f84be73.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/mf-order-setting";
|
|
@@ -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-0f84be73.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-0f84be73.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 {
|
|
3
|
-
import { ref as
|
|
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
4
|
import { useBreakpoints as P } from "@feedmepos/ui-library";
|
|
5
5
|
import "vue-router";
|
|
6
|
-
import { withPermission as
|
|
6
|
+
import { withPermission as b, Permission as v } from "@feedmepos/mf-common";
|
|
7
7
|
import { FmApp as F, routers as D } from "@feedmepos/mf-e-invoice";
|
|
8
8
|
function M(e, o) {
|
|
9
|
-
const n =
|
|
9
|
+
const n = h({ 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,41 +18,41 @@ function M(e, o) {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
return
|
|
22
|
-
await
|
|
23
|
-
}),
|
|
24
|
-
i && (await
|
|
21
|
+
return p(o, async () => {
|
|
22
|
+
await g(), a();
|
|
23
|
+
}), p(e, async (i) => {
|
|
24
|
+
i && (await g(), a());
|
|
25
25
|
}), U(() => {
|
|
26
26
|
window.addEventListener("resize", a);
|
|
27
27
|
}), q(() => {
|
|
28
28
|
window.removeEventListener("resize", a);
|
|
29
29
|
}), n;
|
|
30
30
|
}
|
|
31
|
-
const B = /* @__PURE__ */
|
|
31
|
+
const B = /* @__PURE__ */ y({
|
|
32
32
|
__name: "FullWrapper",
|
|
33
33
|
setup(e) {
|
|
34
|
-
const o = P(), n =
|
|
35
|
-
var
|
|
36
|
-
const
|
|
34
|
+
const o = P(), n = h(null), a = M(n), i = O(() => {
|
|
35
|
+
var m;
|
|
36
|
+
const u = o.isAtMost("sm") ? 56 : 0;
|
|
37
37
|
return {
|
|
38
|
-
height: `calc(100dvh - ${((
|
|
38
|
+
height: `calc(100dvh - ${((m = a.value) == null ? void 0 : m.top) + 24 + u}px)`
|
|
39
39
|
};
|
|
40
40
|
});
|
|
41
|
-
return (
|
|
41
|
+
return (c, u) => (f(), S("div", {
|
|
42
42
|
ref_key: "wrapper",
|
|
43
43
|
ref: n,
|
|
44
44
|
style: T(i.value)
|
|
45
45
|
}, [
|
|
46
|
-
A(
|
|
46
|
+
A(c.$slots, "default")
|
|
47
47
|
], 4));
|
|
48
48
|
}
|
|
49
|
-
}), E = { class: "flex justify-center items-center h-full w-full" }, j = /* @__PURE__ */
|
|
49
|
+
}), E = { class: "flex justify-center items-center h-full w-full" }, j = /* @__PURE__ */ y({
|
|
50
50
|
__name: "PageLoading",
|
|
51
51
|
setup(e) {
|
|
52
52
|
return (o, n) => {
|
|
53
53
|
const a = C("FmCircularProgress");
|
|
54
|
-
return
|
|
55
|
-
default:
|
|
54
|
+
return f(), k(B, null, {
|
|
55
|
+
default: x(() => [
|
|
56
56
|
I("div", E, [
|
|
57
57
|
N(a, { size: "xl" })
|
|
58
58
|
])
|
|
@@ -64,7 +64,7 @@ const B = /* @__PURE__ */ h({
|
|
|
64
64
|
}), t = (e) => $({
|
|
65
65
|
loader: e,
|
|
66
66
|
loadingComponent: j
|
|
67
|
-
}),
|
|
67
|
+
}), K = {
|
|
68
68
|
title: "Settings",
|
|
69
69
|
eInvoice: {
|
|
70
70
|
title: "E-invoice"
|
|
@@ -463,8 +463,8 @@ const B = /* @__PURE__ */ h({
|
|
|
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
|
-
},
|
|
467
|
-
settings:
|
|
466
|
+
}, z = {
|
|
467
|
+
settings: K
|
|
468
468
|
}, V = {
|
|
469
469
|
title: "การตั้งค่า",
|
|
470
470
|
eInvoice: {
|
|
@@ -1674,11 +1674,14 @@ const B = /* @__PURE__ */ h({
|
|
|
1674
1674
|
}
|
|
1675
1675
|
}, Q = {
|
|
1676
1676
|
settings: Y
|
|
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
1681
|
{
|
|
1679
1682
|
path: "/business",
|
|
1680
1683
|
name: "$settings-my-business",
|
|
1681
|
-
component: t(() => import("./Business-
|
|
1684
|
+
component: t(() => import("./Business-8f3269f4.js")),
|
|
1682
1685
|
meta: {
|
|
1683
1686
|
i18nKey: "settings.business.title"
|
|
1684
1687
|
}
|
|
@@ -1702,8 +1705,8 @@ const B = /* @__PURE__ */ h({
|
|
|
1702
1705
|
{
|
|
1703
1706
|
path: "/devices",
|
|
1704
1707
|
name: "$settings-device",
|
|
1705
|
-
component:
|
|
1706
|
-
children:
|
|
1708
|
+
component: R,
|
|
1709
|
+
children: w.map((e) => ({ ...e, path: `/device${e.path}` })),
|
|
1707
1710
|
meta: {
|
|
1708
1711
|
i18nKey: "settings.device.title",
|
|
1709
1712
|
hideNavigation: !0
|
|
@@ -1738,7 +1741,7 @@ const B = /* @__PURE__ */ h({
|
|
|
1738
1741
|
{
|
|
1739
1742
|
path: "/tagging",
|
|
1740
1743
|
name: "$settings-tagging",
|
|
1741
|
-
component:
|
|
1744
|
+
component: b(t(() => import("./Tagging-70f2ec19.js"))),
|
|
1742
1745
|
meta: {
|
|
1743
1746
|
i18nKey: "settings.tagging.title",
|
|
1744
1747
|
validationManifest: {
|
|
@@ -1759,31 +1762,31 @@ const B = /* @__PURE__ */ h({
|
|
|
1759
1762
|
{
|
|
1760
1763
|
path: "/devices/order-setting",
|
|
1761
1764
|
name: "$pos-order-setting",
|
|
1762
|
-
component:
|
|
1763
|
-
children:
|
|
1765
|
+
component: b(L),
|
|
1766
|
+
children: d.filter((e) => e.name === "Kiosk"),
|
|
1764
1767
|
meta: {
|
|
1765
1768
|
hideNavigation: !0,
|
|
1766
1769
|
validationManifest: {
|
|
1767
1770
|
requiredCaslPermissions: [
|
|
1768
1771
|
{
|
|
1769
|
-
action:
|
|
1770
|
-
subject:
|
|
1772
|
+
action: v.Action.manage,
|
|
1773
|
+
subject: v.Subject.Business.restaurant
|
|
1771
1774
|
}
|
|
1772
1775
|
]
|
|
1773
1776
|
}
|
|
1774
1777
|
}
|
|
1775
1778
|
}
|
|
1776
1779
|
];
|
|
1777
|
-
var
|
|
1780
|
+
var _;
|
|
1778
1781
|
l.push({
|
|
1779
1782
|
path: "/",
|
|
1780
1783
|
redirect: {
|
|
1781
|
-
name: ((
|
|
1784
|
+
name: ((_ = l[0].children) == null ? void 0 : _[0].name) || l[0].name
|
|
1782
1785
|
}
|
|
1783
1786
|
});
|
|
1784
|
-
const ne = t(() => import("./App-
|
|
1787
|
+
const ne = t(() => import("./App-22dab87e.js")), oe = {
|
|
1785
1788
|
"en-US": {
|
|
1786
|
-
...
|
|
1789
|
+
...z,
|
|
1787
1790
|
...s["en-US"],
|
|
1788
1791
|
...r["en-US"]
|
|
1789
1792
|
},
|
package/dist/app.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "@feedmepos/mf-mdm";
|
|
2
2
|
import "@feedmepos/mf-order-setting";
|
|
3
|
-
import { F as n, R as F, i as R, r as f } from "./app-
|
|
3
|
+
import { F as n, R as F, i as R, r as f } from "./app-0f84be73.js";
|
|
4
4
|
import "vue";
|
|
5
5
|
import "@feedmepos/ui-library";
|
|
6
6
|
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.
|
|
3
|
+
"version": "0.0.66-beta.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"vue-pdf-embed": "2.1.0",
|
|
46
46
|
"vue-router": "^4.2.5",
|
|
47
47
|
"vuedraggable": "^4.1.0",
|
|
48
|
-
"@feedmepos/mf-common": "^1.27.1"
|
|
48
|
+
"@feedmepos/mf-common": "^1.27.1-alpha.4"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@rushstack/eslint-patch": "^1.3.3",
|