@feedmepos/mf-settings 0.0.65 → 0.0.66-beta.2
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-58466af2.js → App-22dab87e.js} +1 -1
- package/dist/Business-8f3269f4.js +11921 -0
- package/dist/{Tagging-7c0e3126.js → Tagging-70f2ec19.js} +1 -1
- package/dist/{app-b0e8ba91.js → app-0f84be73.js} +42 -35
- package/dist/app.js +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/packages/shared/src/components/info/CustomAttributeChip.vue.d.ts +29 -0
- package/package.json +3 -2
- package/dist/Business-4c140fb5.js +0 -3948
|
@@ -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"
|
|
@@ -98,6 +98,7 @@ const B = /* @__PURE__ */ h({
|
|
|
98
98
|
title: "Tax No",
|
|
99
99
|
not_set: "Not set"
|
|
100
100
|
},
|
|
101
|
+
tagging: "Tag",
|
|
101
102
|
actions: {
|
|
102
103
|
discard: "Discard"
|
|
103
104
|
},
|
|
@@ -462,8 +463,8 @@ const B = /* @__PURE__ */ h({
|
|
|
462
463
|
message: 'Are you sure you want to delete the reason template for "{action}"? This action cannot be undone.'
|
|
463
464
|
}
|
|
464
465
|
}
|
|
465
|
-
},
|
|
466
|
-
settings:
|
|
466
|
+
}, z = {
|
|
467
|
+
settings: K
|
|
467
468
|
}, V = {
|
|
468
469
|
title: "การตั้งค่า",
|
|
469
470
|
eInvoice: {
|
|
@@ -498,6 +499,7 @@ const B = /* @__PURE__ */ h({
|
|
|
498
499
|
title: "เลขประจำตัวผู้เสียภาษี",
|
|
499
500
|
not_set: "ไม่ได้ตั้งค่า"
|
|
500
501
|
},
|
|
502
|
+
tagging: "แท็ก",
|
|
501
503
|
actions: {
|
|
502
504
|
discard: "ยกเลิก"
|
|
503
505
|
},
|
|
@@ -898,6 +900,7 @@ const B = /* @__PURE__ */ h({
|
|
|
898
900
|
title: "税号",
|
|
899
901
|
not_set: "未设置"
|
|
900
902
|
},
|
|
903
|
+
tagging: "标签",
|
|
901
904
|
actions: {
|
|
902
905
|
discard: "丢弃"
|
|
903
906
|
},
|
|
@@ -1301,6 +1304,7 @@ const B = /* @__PURE__ */ h({
|
|
|
1301
1304
|
title: "税號",
|
|
1302
1305
|
not_set: "未設置"
|
|
1303
1306
|
},
|
|
1307
|
+
tagging: "標籤",
|
|
1304
1308
|
actions: {
|
|
1305
1309
|
discard: "丟棄"
|
|
1306
1310
|
},
|
|
@@ -1670,11 +1674,14 @@ const B = /* @__PURE__ */ h({
|
|
|
1670
1674
|
}
|
|
1671
1675
|
}, Q = {
|
|
1672
1676
|
settings: Y
|
|
1673
|
-
}
|
|
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 = [
|
|
1674
1681
|
{
|
|
1675
1682
|
path: "/business",
|
|
1676
1683
|
name: "$settings-my-business",
|
|
1677
|
-
component: t(() => import("./Business-
|
|
1684
|
+
component: t(() => import("./Business-8f3269f4.js")),
|
|
1678
1685
|
meta: {
|
|
1679
1686
|
i18nKey: "settings.business.title"
|
|
1680
1687
|
}
|
|
@@ -1698,8 +1705,8 @@ const B = /* @__PURE__ */ h({
|
|
|
1698
1705
|
{
|
|
1699
1706
|
path: "/devices",
|
|
1700
1707
|
name: "$settings-device",
|
|
1701
|
-
component:
|
|
1702
|
-
children:
|
|
1708
|
+
component: R,
|
|
1709
|
+
children: w.map((e) => ({ ...e, path: `/device${e.path}` })),
|
|
1703
1710
|
meta: {
|
|
1704
1711
|
i18nKey: "settings.device.title",
|
|
1705
1712
|
hideNavigation: !0
|
|
@@ -1734,7 +1741,7 @@ const B = /* @__PURE__ */ h({
|
|
|
1734
1741
|
{
|
|
1735
1742
|
path: "/tagging",
|
|
1736
1743
|
name: "$settings-tagging",
|
|
1737
|
-
component:
|
|
1744
|
+
component: b(t(() => import("./Tagging-70f2ec19.js"))),
|
|
1738
1745
|
meta: {
|
|
1739
1746
|
i18nKey: "settings.tagging.title",
|
|
1740
1747
|
validationManifest: {
|
|
@@ -1755,31 +1762,31 @@ const B = /* @__PURE__ */ h({
|
|
|
1755
1762
|
{
|
|
1756
1763
|
path: "/devices/order-setting",
|
|
1757
1764
|
name: "$pos-order-setting",
|
|
1758
|
-
component:
|
|
1759
|
-
children:
|
|
1765
|
+
component: b(L),
|
|
1766
|
+
children: d.filter((e) => e.name === "Kiosk"),
|
|
1760
1767
|
meta: {
|
|
1761
1768
|
hideNavigation: !0,
|
|
1762
1769
|
validationManifest: {
|
|
1763
1770
|
requiredCaslPermissions: [
|
|
1764
1771
|
{
|
|
1765
|
-
action:
|
|
1766
|
-
subject:
|
|
1772
|
+
action: v.Action.manage,
|
|
1773
|
+
subject: v.Subject.Business.restaurant
|
|
1767
1774
|
}
|
|
1768
1775
|
]
|
|
1769
1776
|
}
|
|
1770
1777
|
}
|
|
1771
1778
|
}
|
|
1772
1779
|
];
|
|
1773
|
-
var
|
|
1780
|
+
var _;
|
|
1774
1781
|
l.push({
|
|
1775
1782
|
path: "/",
|
|
1776
1783
|
redirect: {
|
|
1777
|
-
name: ((
|
|
1784
|
+
name: ((_ = l[0].children) == null ? void 0 : _[0].name) || l[0].name
|
|
1778
1785
|
}
|
|
1779
1786
|
});
|
|
1780
|
-
const ne = t(() => import("./App-
|
|
1787
|
+
const ne = t(() => import("./App-22dab87e.js")), oe = {
|
|
1781
1788
|
"en-US": {
|
|
1782
|
-
...
|
|
1789
|
+
...z,
|
|
1783
1790
|
...s["en-US"],
|
|
1784
1791
|
...r["en-US"]
|
|
1785
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";
|