@feedmepos/mf-settings 0.0.67-alpha.0 → 0.0.67
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.
- package/dist/{App-dd9dd400.js → App-6e5fbd63.js} +555 -564
- package/dist/Business-dec5afb0.js +20044 -0
- package/dist/{CreateBusiness-af1ec0c0.js → CreateBusiness-4681642d.js} +2 -2
- package/dist/{FoodCourt-c9b603d6.js → FoodCourt-e0c2e5fa.js} +1 -1
- package/dist/{ReasonTemplate-c39df454.js → ReasonTemplate-bb794018.js} +1 -1
- package/dist/{Tagging-fcbb1569.js → Tagging-1db96361.js} +4 -4
- package/dist/TemplateBuilder-3e34e9e8.js +27 -0
- package/dist/{app-a060d858.js → app-ccf4472c.js} +71 -75
- package/dist/app.js +2 -2
- package/dist/apps/mf-settings/src/app.d.ts +1343 -2
- package/dist/{business-7684bcec.js → business-f296dbaa.js} +1 -1
- package/dist/{index-3f4c8817.js → index-86d32a84.js} +374 -374
- package/dist/{map-695afd6f.js → map-54b71412.js} +527 -410
- package/package.json +1 -1
- package/dist/Business-d8e4f7d1.js +0 -11921
- package/dist/TemplateBuilder-54a34178.js +0 -27
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { unref as a, openBlock as Q, createBlock as N, createCommentVNode as m, withScopeId as Z, defineComponent as L, createElementBlock as S, ref as c, watch as W, computed as w, watchEffect as E, onBeforeUnmount as G, resolveComponent as B, createVNode as b, withCtx as Y, createElementVNode as e, toDisplayString as l, Fragment as M, renderList as _, normalizeClass as $ } from "vue";
|
|
2
|
-
import { u as AA, F as oA } from "./index-
|
|
2
|
+
import { u as AA, F as oA } from "./index-86d32a84.js";
|
|
3
3
|
import { useCoreStore as nA, useI18n as gA, useCountry as fA } from "@feedmepos/mf-common";
|
|
4
4
|
import { useSnackbar as aA } from "@feedmepos/ui-library";
|
|
5
5
|
import { r as eA } from "./rules-2bee6632.js";
|
|
6
|
-
import { b as v } from "./business-
|
|
6
|
+
import { b as v } from "./business-f296dbaa.js";
|
|
7
7
|
import { _ as pA } from "./_plugin-vue_export-helper-dad06003.js";
|
|
8
8
|
import "pinia";
|
|
9
9
|
import "./index-b9ef9a01.js";
|
|
@@ -9,7 +9,7 @@ import { d as j1, u as C1 } from "./dayjs.min-6eec923a.js";
|
|
|
9
9
|
import { components as zs, useSnackbar as Ec, useDialogChild as k1, useDialog as Tb, useBreakpoints as M1 } from "@feedmepos/ui-library";
|
|
10
10
|
import { _ as D1 } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-8f929a2d.js";
|
|
11
11
|
import { _ as N1, c as ip } from "./createForm-d3b97d2e.js";
|
|
12
|
-
import { g as Rr, c as Ia, b as l$, u as zm } from "./index-
|
|
12
|
+
import { g as Rr, c as Ia, b as l$, u as zm } from "./index-86d32a84.js";
|
|
13
13
|
import { c as Ob } from "./object-27ce045b.js";
|
|
14
14
|
import "pinia";
|
|
15
15
|
var d$ = {}, qn = {}, Fc = {};
|
|
@@ -4,7 +4,7 @@ import { useSnackbar as Sn, components as Tn, useBreakpoints as Cn, useDialog as
|
|
|
4
4
|
import { _ as In } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-8f929a2d.js";
|
|
5
5
|
import { _ as On, c as xt } from "./createForm-d3b97d2e.js";
|
|
6
6
|
import { _ as It, c as Fn } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
|
|
7
|
-
import { u as An, r as Pn, s as Nn } from "./index-
|
|
7
|
+
import { u as An, r as Pn, s as Nn } from "./index-86d32a84.js";
|
|
8
8
|
import "./index-b9ef9a01.js";
|
|
9
9
|
import { r as kn } from "./rules-2bee6632.js";
|
|
10
10
|
import "pinia";
|
|
@@ -2,18 +2,18 @@ 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-ccf4472c.js";
|
|
6
6
|
import { _ as nE, c as rl } from "./createForm-d3b97d2e.js";
|
|
7
|
-
import { u as Wl } from "./index-
|
|
7
|
+
import { u as Wl } from "./index-86d32a84.js";
|
|
8
8
|
import { _ as il, c as tE } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
|
|
9
9
|
import { c as Cr } from "./index-b9ef9a01.js";
|
|
10
10
|
import { c as wi } from "./object-27ce045b.js";
|
|
11
11
|
import { defineStore as rE } from "pinia";
|
|
12
|
-
import { b as rs } from "./business-
|
|
12
|
+
import { b as rs } from "./business-f296dbaa.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
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as o, computed as n, resolveComponent as d, openBlock as s, createElementBlock as c, createVNode as m } from "vue";
|
|
2
|
+
import { useCoreStore as u, FeedMeAuth as i } from "@feedmepos/mf-common";
|
|
3
|
+
const l = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "w-full h-full flex items-center justify-center"
|
|
6
|
+
}, p = ["src"], h = /* @__PURE__ */ o({
|
|
7
|
+
__name: "TemplateBuilder",
|
|
8
|
+
setup(f) {
|
|
9
|
+
const e = u(), t = n(() => {
|
|
10
|
+
var r;
|
|
11
|
+
return e.currentBusiness.value ? `https://print-template-builder.feedme.cc//#/receipt-info?businessId=${(r = e.currentBusiness.value) == null ? void 0 : r.id}&country=${e.currentCountry.value}&token=${i.token}` : "";
|
|
12
|
+
});
|
|
13
|
+
return (r, b) => {
|
|
14
|
+
const a = d("FmCircularProgress");
|
|
15
|
+
return t.value ? (s(), c("iframe", {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "w-full h-full",
|
|
18
|
+
src: t.value
|
|
19
|
+
}, null, 8, p)) : (s(), c("div", l, [
|
|
20
|
+
m(a, { size: "lg" })
|
|
21
|
+
]));
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
h as default
|
|
27
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { FmApp as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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
|
|
7
|
-
import { FmApp as
|
|
8
|
-
|
|
9
|
-
|
|
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
|
|
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
|
-
}),
|
|
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
|
+
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:
|
|
67
|
-
}),
|
|
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:
|
|
468
|
-
},
|
|
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
|
-
},
|
|
1676
|
-
settings:
|
|
1677
|
-
},
|
|
1675
|
+
}, Y = {
|
|
1676
|
+
settings: G
|
|
1677
|
+
}, r = [
|
|
1678
1678
|
{
|
|
1679
1679
|
path: "/business",
|
|
1680
1680
|
name: "$settings-my-business",
|
|
1681
|
-
component: t(() => import("./Business-
|
|
1681
|
+
component: t(() => import("./Business-dec5afb0.js")),
|
|
1682
1682
|
meta: {
|
|
1683
1683
|
i18nKey: "settings.business.title"
|
|
1684
1684
|
}
|
|
@@ -1686,7 +1686,7 @@ const B = /* @__PURE__ */ h({
|
|
|
1686
1686
|
{
|
|
1687
1687
|
path: "/create-business",
|
|
1688
1688
|
name: "$settings-create-business",
|
|
1689
|
-
component: t(() => import("./CreateBusiness-
|
|
1689
|
+
component: t(() => import("./CreateBusiness-4681642d.js")),
|
|
1690
1690
|
meta: {
|
|
1691
1691
|
hideNavigation: !0
|
|
1692
1692
|
}
|
|
@@ -1694,7 +1694,7 @@ const B = /* @__PURE__ */ h({
|
|
|
1694
1694
|
{
|
|
1695
1695
|
path: "/foodcourt",
|
|
1696
1696
|
name: "$settings-food-court",
|
|
1697
|
-
component: t(() => import("./FoodCourt-
|
|
1697
|
+
component: t(() => import("./FoodCourt-e0c2e5fa.js")),
|
|
1698
1698
|
meta: {
|
|
1699
1699
|
i18nKey: "settings.food_court.list.title"
|
|
1700
1700
|
}
|
|
@@ -1702,8 +1702,8 @@ const B = /* @__PURE__ */ h({
|
|
|
1702
1702
|
{
|
|
1703
1703
|
path: "/devices",
|
|
1704
1704
|
name: "$settings-device",
|
|
1705
|
-
component:
|
|
1706
|
-
children:
|
|
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
|
|
@@ -1712,7 +1712,7 @@ const B = /* @__PURE__ */ h({
|
|
|
1712
1712
|
{
|
|
1713
1713
|
path: "/template-builder",
|
|
1714
1714
|
name: "$settings-template-builder",
|
|
1715
|
-
component: t(() => import("./TemplateBuilder-
|
|
1715
|
+
component: t(() => import("./TemplateBuilder-3e34e9e8.js")),
|
|
1716
1716
|
meta: {
|
|
1717
1717
|
i18nKey: "settings.templateBuilder.title",
|
|
1718
1718
|
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:
|
|
1733
|
-
children:
|
|
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:
|
|
1741
|
+
component: p(t(() => import("./Tagging-1db96361.js"))),
|
|
1742
1742
|
meta: {
|
|
1743
1743
|
i18nKey: "settings.tagging.title",
|
|
1744
1744
|
validationManifest: {
|
|
@@ -1750,7 +1750,7 @@ const B = /* @__PURE__ */ h({
|
|
|
1750
1750
|
{
|
|
1751
1751
|
path: "/reason-template",
|
|
1752
1752
|
name: "$settings-reason-template",
|
|
1753
|
-
component: t(() => import("./ReasonTemplate-
|
|
1753
|
+
component: t(() => import("./ReasonTemplate-bb794018.js")),
|
|
1754
1754
|
meta: {
|
|
1755
1755
|
i18nKey: "settings.reasonTemplate.title",
|
|
1756
1756
|
hideNavigation: !0
|
|
@@ -1759,55 +1759,51 @@ const B = /* @__PURE__ */ h({
|
|
|
1759
1759
|
{
|
|
1760
1760
|
path: "/devices/order-setting",
|
|
1761
1761
|
name: "$pos-order-setting",
|
|
1762
|
-
component:
|
|
1763
|
-
children:
|
|
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:
|
|
1770
|
-
subject:
|
|
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
|
|
1778
|
-
|
|
1777
|
+
var b;
|
|
1778
|
+
r.push({
|
|
1779
1779
|
path: "/",
|
|
1780
1780
|
redirect: {
|
|
1781
|
-
name: ((
|
|
1781
|
+
name: ((b = r[0].children) == null ? void 0 : b[0].name) || r[0].name
|
|
1782
1782
|
}
|
|
1783
1783
|
});
|
|
1784
|
-
const
|
|
1784
|
+
const ie = t(() => import("./App-6e5fbd63.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
|
-
...
|
|
1792
|
-
...s["zh-CN"]
|
|
1793
|
-
...r["zh-CN"]
|
|
1790
|
+
...W,
|
|
1791
|
+
...s["zh-CN"]
|
|
1794
1792
|
},
|
|
1795
1793
|
"th-TH": {
|
|
1796
|
-
...
|
|
1797
|
-
...s["th-TH"]
|
|
1798
|
-
...r["th-TH"]
|
|
1794
|
+
...V,
|
|
1795
|
+
...s["th-TH"]
|
|
1799
1796
|
},
|
|
1800
1797
|
"zh-Hant": {
|
|
1801
|
-
...
|
|
1802
|
-
...s["zh-Hant"] || {}
|
|
1803
|
-
...r["zh-Hant"] || {}
|
|
1798
|
+
...Y,
|
|
1799
|
+
...s["zh-Hant"] || {}
|
|
1804
1800
|
}
|
|
1805
|
-
},
|
|
1801
|
+
}, oe = t(() => import("./ReasonTemplate-bb794018.js"));
|
|
1806
1802
|
export {
|
|
1807
|
-
|
|
1808
|
-
|
|
1803
|
+
ie as F,
|
|
1804
|
+
oe as R,
|
|
1809
1805
|
B as _,
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
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 "
|
|
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-ccf4472c.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,
|