@feedmepos/mf-settings 0.0.69 → 0.0.70-prod
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-3360c969.js → App-f8b754e4.js} +851 -859
- package/dist/Business-849a8dc1.js +20044 -0
- package/dist/{CreateBusiness-af1ec0c0.js → CreateBusiness-ea235dd4.js} +2 -2
- package/dist/{FoodCourt-c9b603d6.js → FoodCourt-3e855d46.js} +9098 -9115
- package/dist/{ReasonTemplate-c39df454.js → ReasonTemplate-b4e2346e.js} +1 -1
- package/dist/{Tagging-e233bc93.js → Tagging-1e64a223.js} +4 -4
- package/dist/TemplateBuilder-3e34e9e8.js +27 -0
- package/dist/{app-bfaa4ee9.js → app-78c02498.js} +91 -87
- package/dist/app.js +2 -2
- package/dist/apps/mf-settings/src/app.d.ts +2 -1343
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{business-7684bcec.js → business-9cbfc828.js} +1 -1
- package/dist/{index-3f4c8817.js → index-6d139c6d.js} +398 -398
- package/dist/{map-695afd6f.js → map-54b71412.js} +527 -410
- package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +121 -0
- package/dist/packages/shared/src/composable/filterSelector.d.ts +1 -1
- package/package.json +2 -2
- package/dist/Business-9ac30155.js +0 -11921
- package/dist/TemplateBuilder-54a34178.js +0 -27
|
@@ -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-6d139c6d.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-78c02498.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-6d139c6d.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-9cbfc828.js";
|
|
13
13
|
import "@feedmepos/mf-mdm";
|
|
14
|
+
import "@feedmepos/mf-order-setting";
|
|
14
15
|
import "vue-router";
|
|
15
16
|
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 {
|
|
1
|
+
import { FmApp as f, routers as R, i18nMessages as s } from "@feedmepos/mf-mdm";
|
|
2
|
+
import { FmApp as w, routers as L, i18nMessages as r } from "@feedmepos/mf-order-setting";
|
|
3
|
+
import { ref as _, watch as m, nextTick as p, onMounted as U, onBeforeUnmount as q, defineComponent as h, computed as O, openBlock as y, 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";
|
|
4
5
|
import "vue-router";
|
|
5
|
-
import { withPermission as
|
|
6
|
-
import { FmApp as
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const n = v({ top: 0, bottom: 0, left: 0, right: 0 });
|
|
6
|
+
import { withPermission as g, Permission as b } 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 = _({ 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 D(e, o) {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
return
|
|
22
|
-
await
|
|
23
|
-
}),
|
|
24
|
-
i && (await
|
|
25
|
-
}),
|
|
21
|
+
return m(o, async () => {
|
|
22
|
+
await p(), a();
|
|
23
|
+
}), m(e, async (i) => {
|
|
24
|
+
i && (await p(), a());
|
|
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__ */ h({
|
|
32
32
|
__name: "FullWrapper",
|
|
33
33
|
setup(e) {
|
|
34
|
-
const o =
|
|
35
|
-
var
|
|
36
|
-
const
|
|
34
|
+
const o = P(), n = _(null), a = M(n), i = O(() => {
|
|
35
|
+
var u;
|
|
36
|
+
const c = o.isAtMost("sm") ? 56 : 0;
|
|
37
37
|
return {
|
|
38
|
-
height: `calc(100dvh - ${((
|
|
38
|
+
height: `calc(100dvh - ${((u = a.value) == null ? void 0 : u.top) + 24 + c}px)`
|
|
39
39
|
};
|
|
40
40
|
});
|
|
41
|
-
return (
|
|
41
|
+
return (d, c) => (y(), S("div", {
|
|
42
42
|
ref_key: "wrapper",
|
|
43
43
|
ref: n,
|
|
44
|
-
style:
|
|
44
|
+
style: T(i.value)
|
|
45
45
|
}, [
|
|
46
|
-
|
|
46
|
+
A(d.$slots, "default")
|
|
47
47
|
], 4));
|
|
48
48
|
}
|
|
49
|
-
}),
|
|
49
|
+
}), E = { class: "flex justify-center items-center h-full w-full" }, j = /* @__PURE__ */ h({
|
|
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 = C("FmCircularProgress");
|
|
54
|
+
return y(), k(B, null, {
|
|
55
|
+
default: x(() => [
|
|
56
|
+
I("div", E, [
|
|
57
|
+
N(a, { size: "xl" })
|
|
58
58
|
])
|
|
59
59
|
]),
|
|
60
60
|
_: 1
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
}), t = (e) =>
|
|
64
|
+
}), t = (e) => $({
|
|
65
65
|
loader: e,
|
|
66
|
-
loadingComponent:
|
|
67
|
-
}),
|
|
66
|
+
loadingComponent: j
|
|
67
|
+
}), z = {
|
|
68
68
|
title: "Settings",
|
|
69
69
|
eInvoice: {
|
|
70
70
|
title: "E-invoice"
|
|
@@ -464,8 +464,8 @@ const B = /* @__PURE__ */ _({
|
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
466
|
}, K = {
|
|
467
|
-
settings:
|
|
468
|
-
},
|
|
467
|
+
settings: z
|
|
468
|
+
}, V = {
|
|
469
469
|
title: "การตั้งค่า",
|
|
470
470
|
eInvoice: {
|
|
471
471
|
title: "ใบแจ้งหนี้อิเล็กทรอนิกส์"
|
|
@@ -864,9 +864,9 @@ const B = /* @__PURE__ */ _({
|
|
|
864
864
|
message: 'คุณแน่ใจหรือไม่ว่าต้องการลบเทมเพลตเหตุผลสำหรับ "{action}"? การดำเนินการนี้ไม่สามารถยกเลิกได้'
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
|
-
}, V = {
|
|
868
|
-
settings: z
|
|
869
867
|
}, H = {
|
|
868
|
+
settings: V
|
|
869
|
+
}, W = {
|
|
870
870
|
title: "设置",
|
|
871
871
|
eInvoice: {
|
|
872
872
|
title: "电子发票"
|
|
@@ -1268,9 +1268,9 @@ const B = /* @__PURE__ */ _({
|
|
|
1268
1268
|
message: '确定要删除"{action}"的原因模板吗?此操作无法撤销。'
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
|
-
}, W = {
|
|
1272
|
-
settings: H
|
|
1273
1271
|
}, G = {
|
|
1272
|
+
settings: W
|
|
1273
|
+
}, Y = {
|
|
1274
1274
|
title: "設置",
|
|
1275
1275
|
eInvoice: {
|
|
1276
1276
|
title: "電子發票"
|
|
@@ -1672,13 +1672,13 @@ const B = /* @__PURE__ */ _({
|
|
|
1672
1672
|
message: '確定要刪除"{action}"的原因模板嗎?此操作無法撤銷。'
|
|
1673
1673
|
}
|
|
1674
1674
|
}
|
|
1675
|
-
},
|
|
1676
|
-
settings:
|
|
1677
|
-
},
|
|
1675
|
+
}, Q = {
|
|
1676
|
+
settings: Y
|
|
1677
|
+
}, l = [
|
|
1678
1678
|
{
|
|
1679
1679
|
path: "/business",
|
|
1680
1680
|
name: "$settings-my-business",
|
|
1681
|
-
component: t(() => import("./Business-
|
|
1681
|
+
component: t(() => import("./Business-849a8dc1.js")),
|
|
1682
1682
|
meta: {
|
|
1683
1683
|
i18nKey: "settings.business.title"
|
|
1684
1684
|
}
|
|
@@ -1686,7 +1686,7 @@ const B = /* @__PURE__ */ _({
|
|
|
1686
1686
|
{
|
|
1687
1687
|
path: "/create-business",
|
|
1688
1688
|
name: "$settings-create-business",
|
|
1689
|
-
component: t(() => import("./CreateBusiness-
|
|
1689
|
+
component: t(() => import("./CreateBusiness-ea235dd4.js")),
|
|
1690
1690
|
meta: {
|
|
1691
1691
|
hideNavigation: !0
|
|
1692
1692
|
}
|
|
@@ -1694,30 +1694,11 @@ const B = /* @__PURE__ */ _({
|
|
|
1694
1694
|
{
|
|
1695
1695
|
path: "/foodcourt",
|
|
1696
1696
|
name: "$settings-food-court",
|
|
1697
|
-
component: t(() => import("./FoodCourt-
|
|
1697
|
+
component: t(() => import("./FoodCourt-3e855d46.js")),
|
|
1698
1698
|
meta: {
|
|
1699
1699
|
i18nKey: "settings.food_court.list.title"
|
|
1700
1700
|
}
|
|
1701
1701
|
},
|
|
1702
|
-
{
|
|
1703
|
-
path: "/devices",
|
|
1704
|
-
name: "$settings-device",
|
|
1705
|
-
component: y,
|
|
1706
|
-
children: f.map((e) => ({ ...e, path: `/device${e.path}` })),
|
|
1707
|
-
meta: {
|
|
1708
|
-
i18nKey: "settings.device.title",
|
|
1709
|
-
hideNavigation: !0
|
|
1710
|
-
}
|
|
1711
|
-
},
|
|
1712
|
-
{
|
|
1713
|
-
path: "/template-builder",
|
|
1714
|
-
name: "$settings-template-builder",
|
|
1715
|
-
component: t(() => import("./TemplateBuilder-54a34178.js")),
|
|
1716
|
-
meta: {
|
|
1717
|
-
i18nKey: "settings.templateBuilder.title",
|
|
1718
|
-
hideNavigation: !0
|
|
1719
|
-
}
|
|
1720
|
-
},
|
|
1721
1702
|
{
|
|
1722
1703
|
path: "/license-order",
|
|
1723
1704
|
name: "$settings-license-order",
|
|
@@ -1729,8 +1710,8 @@ const B = /* @__PURE__ */ _({
|
|
|
1729
1710
|
{
|
|
1730
1711
|
path: "/e-invoice",
|
|
1731
1712
|
name: "$settings-e-invoice",
|
|
1732
|
-
component:
|
|
1733
|
-
children:
|
|
1713
|
+
component: F,
|
|
1714
|
+
children: D.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
|
|
1734
1715
|
meta: {
|
|
1735
1716
|
i18nKey: "settings.eInvoice.title"
|
|
1736
1717
|
}
|
|
@@ -1738,7 +1719,7 @@ const B = /* @__PURE__ */ _({
|
|
|
1738
1719
|
{
|
|
1739
1720
|
path: "/tagging",
|
|
1740
1721
|
name: "$settings-tagging",
|
|
1741
|
-
component:
|
|
1722
|
+
component: g(t(() => import("./Tagging-1e64a223.js"))),
|
|
1742
1723
|
meta: {
|
|
1743
1724
|
i18nKey: "settings.tagging.title",
|
|
1744
1725
|
validationManifest: {
|
|
@@ -1750,60 +1731,83 @@ const B = /* @__PURE__ */ _({
|
|
|
1750
1731
|
{
|
|
1751
1732
|
path: "/reason-template",
|
|
1752
1733
|
name: "$settings-reason-template",
|
|
1753
|
-
component: t(() => import("./ReasonTemplate-
|
|
1734
|
+
component: t(() => import("./ReasonTemplate-b4e2346e.js")),
|
|
1754
1735
|
meta: {
|
|
1755
1736
|
i18nKey: "settings.reasonTemplate.title",
|
|
1756
1737
|
hideNavigation: !0
|
|
1757
1738
|
}
|
|
1758
1739
|
},
|
|
1740
|
+
{
|
|
1741
|
+
path: "/devices",
|
|
1742
|
+
name: "$settings-device",
|
|
1743
|
+
component: f,
|
|
1744
|
+
children: R.map((e) => ({ ...e, path: `/device${e.path}` })),
|
|
1745
|
+
meta: {
|
|
1746
|
+
i18nKey: "settings.device.title",
|
|
1747
|
+
hideNavigation: !0
|
|
1748
|
+
}
|
|
1749
|
+
},
|
|
1759
1750
|
{
|
|
1760
1751
|
path: "/devices/order-setting",
|
|
1761
1752
|
name: "$pos-order-setting",
|
|
1762
|
-
component:
|
|
1763
|
-
children:
|
|
1753
|
+
component: g(w),
|
|
1754
|
+
children: L.filter((e) => e.path === "/kiosk"),
|
|
1764
1755
|
meta: {
|
|
1765
1756
|
hideNavigation: !0,
|
|
1766
1757
|
validationManifest: {
|
|
1767
1758
|
requiredCaslPermissions: [
|
|
1768
1759
|
{
|
|
1769
|
-
action:
|
|
1770
|
-
subject:
|
|
1760
|
+
action: b.Action.manage,
|
|
1761
|
+
subject: b.Subject.Business.restaurant
|
|
1771
1762
|
}
|
|
1772
1763
|
]
|
|
1773
1764
|
}
|
|
1774
1765
|
}
|
|
1766
|
+
},
|
|
1767
|
+
{
|
|
1768
|
+
path: "/devices/template-builder",
|
|
1769
|
+
name: "$settings-template-builder",
|
|
1770
|
+
component: t(() => import("./TemplateBuilder-3e34e9e8.js")),
|
|
1771
|
+
meta: {
|
|
1772
|
+
i18nKey: "settings.templateBuilder.title",
|
|
1773
|
+
hideNavigation: !0
|
|
1774
|
+
}
|
|
1775
1775
|
}
|
|
1776
1776
|
];
|
|
1777
|
-
var
|
|
1778
|
-
|
|
1777
|
+
var v;
|
|
1778
|
+
l.push({
|
|
1779
1779
|
path: "/",
|
|
1780
1780
|
redirect: {
|
|
1781
|
-
name: ((
|
|
1781
|
+
name: ((v = l[0].children) == null ? void 0 : v[0].name) || l[0].name
|
|
1782
1782
|
}
|
|
1783
1783
|
});
|
|
1784
|
-
const
|
|
1784
|
+
const ne = t(() => import("./App-f8b754e4.js")), oe = {
|
|
1785
1785
|
"en-US": {
|
|
1786
1786
|
...K,
|
|
1787
|
-
...s["en-US"]
|
|
1787
|
+
...s["en-US"],
|
|
1788
|
+
...r["en-US"]
|
|
1788
1789
|
},
|
|
1789
1790
|
"zh-CN": {
|
|
1790
|
-
...
|
|
1791
|
-
...s["zh-CN"]
|
|
1791
|
+
...G,
|
|
1792
|
+
...s["zh-CN"],
|
|
1793
|
+
...r["zh-CN"]
|
|
1792
1794
|
},
|
|
1793
1795
|
"th-TH": {
|
|
1794
|
-
...
|
|
1795
|
-
...s["th-TH"]
|
|
1796
|
+
...H,
|
|
1797
|
+
...s["th-TH"],
|
|
1798
|
+
...r["th-TH"]
|
|
1796
1799
|
},
|
|
1797
1800
|
"zh-Hant": {
|
|
1798
|
-
...
|
|
1799
|
-
...s["zh-Hant"] || {}
|
|
1801
|
+
...Q,
|
|
1802
|
+
...s["zh-Hant"] || {},
|
|
1803
|
+
...r["zh-Hant"] || {}
|
|
1800
1804
|
}
|
|
1801
|
-
},
|
|
1805
|
+
}, se = t(() => import("./ReasonTemplate-b4e2346e.js"));
|
|
1802
1806
|
export {
|
|
1803
|
-
|
|
1804
|
-
|
|
1807
|
+
ne as F,
|
|
1808
|
+
se as R,
|
|
1805
1809
|
B as _,
|
|
1806
|
-
|
|
1807
|
-
r,
|
|
1808
|
-
|
|
1810
|
+
oe as i,
|
|
1811
|
+
l as r,
|
|
1812
|
+
M as u
|
|
1809
1813
|
};
|
package/dist/app.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "@feedmepos/mf-mdm";
|
|
2
|
-
import
|
|
2
|
+
import "@feedmepos/mf-order-setting";
|
|
3
|
+
import { F as n, R as F, i as R, r as f } from "./app-78c02498.js";
|
|
3
4
|
import "vue";
|
|
4
5
|
import "@feedmepos/ui-library";
|
|
5
6
|
import "vue-router";
|
|
6
7
|
import "@feedmepos/mf-common";
|
|
7
8
|
import "@feedmepos/mf-e-invoice";
|
|
8
|
-
import "@feedmepos/mf-order-setting";
|
|
9
9
|
export {
|
|
10
10
|
n as FmApp,
|
|
11
11
|
F as ReasonTemplateView,
|