@feedmepos/mf-settings 0.0.54 → 0.0.55
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-e6b77ccd.js +4352 -0
- package/dist/{Business-efd67008.js → Business-557b464e.js} +1355 -1334
- package/dist/{CreateBusiness-a7386de7.js → CreateBusiness-fa4096f9.js} +3 -3
- package/dist/FoodCourt-0a28a67f.js +47791 -0
- package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang-e9712a4d.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-030a97dd.js} +1 -1
- package/dist/{Tagging-f578f89a.js → Tagging-3a7fb06e.js} +4 -4
- package/dist/{app-1f5f4a9b.js → app-a6247e67.js} +37 -25
- package/dist/app.js +1 -1
- package/dist/apps/mf-settings/src/app.d.ts +8 -0
- package/dist/apps/mf-settings/src/components/tagging/TaggingForm.vue.d.ts +3 -3
- package/dist/apps/mf-settings/src/store/attributeSettings.d.ts +15 -15
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{business-906742ba.js → business-ad1b9825.js} +1 -1
- package/dist/index-71e4b8aa.js +8413 -0
- package/dist/{index-f1e5e565.js → index-759f69a1.js} +304 -283
- package/dist/index-e68421c3.js +18030 -0
- package/package.json +3 -3
- package/dist/App-1dab65c3.js +0 -22098
- package/dist/FoodCourt-40732589.js +0 -71535
- package/dist/_commonjs-dynamic-modules-bed80856.js +0 -6
- package/dist/index-72d7bc88.js +0 -2384
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as K, computed as N, resolveComponent as z, openBlock as j, createBlock as P, normalizeProps as it, mergeProps as G, createElementBlock as X, createVNode as tt, mergeModels as ot, useModel as ut, watchEffect as ct, withCtx as Q, Fragment as lt, renderList as ft } from "vue";
|
|
2
2
|
import { useBreakpoints as dt, useSnackbar as ht } from "@feedmepos/ui-library";
|
|
3
|
-
import { c as mt, g as $t } from "./index-
|
|
3
|
+
import { c as mt, g as $t } from "./index-759f69a1.js";
|
|
4
4
|
import { useCoreStore as pt } from "@feedmepos/mf-common";
|
|
5
5
|
const vt = {
|
|
6
6
|
key: 1,
|
|
@@ -2,13 +2,13 @@ import { defineComponent as Fr, h as bo, getCurrentInstance as Pi, inject as Mm,
|
|
|
2
2
|
import "@vue/devtools-api";
|
|
3
3
|
import { useI18n as wo, useCoreStore as Do } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as Po, useSnackbar as xo, components as Ym, useBreakpoints as Xm, FmButtonVariant as qm } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as Jm } from "./app-
|
|
5
|
+
import { _ as Jm } from "./app-a6247e67.js";
|
|
6
6
|
import { c as Ci, _ as Zm, a as Qm } from "./object-8ac0c0d8.js";
|
|
7
|
-
import { u as Fo } from "./index-
|
|
7
|
+
import { u as Fo } from "./index-71e4b8aa.js";
|
|
8
8
|
import { _ as zm, c as jm } from "./FormSection.vue_vue_type_script_setup_true_lang-6aab82f2.js";
|
|
9
|
-
import { c as br } from "./index-
|
|
9
|
+
import { c as br } from "./index-759f69a1.js";
|
|
10
10
|
import { defineStore as eE } from "pinia";
|
|
11
|
-
import { b as es } from "./business-
|
|
11
|
+
import { b as es } from "./business-ad1b9825.js";
|
|
12
12
|
import "@feedmepos/mf-mdm";
|
|
13
13
|
import "vue-router";
|
|
14
14
|
import "@feedmepos/mf-e-invoice";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { FmApp as b, routers as _, i18nMessages as s } from "@feedmepos/mf-mdm";
|
|
2
|
-
import { ref as m, watch as c, nextTick as u, onMounted as v, onBeforeUnmount as h, defineComponent as p, computed as y, openBlock as g, createElementBlock as f, normalizeStyle as R, renderSlot as L, resolveComponent as w, createBlock as U, withCtx as
|
|
3
|
-
import { useBreakpoints as
|
|
2
|
+
import { ref as m, watch as c, nextTick as u, onMounted as v, onBeforeUnmount as h, defineComponent as p, computed as y, openBlock as g, createElementBlock as f, normalizeStyle as R, renderSlot as L, resolveComponent as w, createBlock as U, withCtx as C, createElementVNode as q, createVNode as T, defineAsyncComponent as A } from "vue";
|
|
3
|
+
import { useBreakpoints as x } from "@feedmepos/ui-library";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
import { withPermission as k } from "@feedmepos/mf-common";
|
|
6
|
-
import { FmApp as F, routers as
|
|
7
|
-
function
|
|
8
|
-
const
|
|
6
|
+
import { FmApp as F, routers as S } from "@feedmepos/mf-e-invoice";
|
|
7
|
+
function $(e, n) {
|
|
8
|
+
const o = m({ top: 0, bottom: 0, left: 0, right: 0 });
|
|
9
9
|
function t() {
|
|
10
10
|
if (e.value) {
|
|
11
11
|
const a = e.value.getBoundingClientRect();
|
|
12
|
-
|
|
12
|
+
o.value = {
|
|
13
13
|
top: a.top,
|
|
14
14
|
bottom: a.bottom,
|
|
15
15
|
left: a.left,
|
|
@@ -17,7 +17,7 @@ function S(e, o) {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
return c(
|
|
20
|
+
return c(n, async () => {
|
|
21
21
|
await u(), t();
|
|
22
22
|
}), c(e, async (a) => {
|
|
23
23
|
a && (await u(), t());
|
|
@@ -25,21 +25,21 @@ function S(e, o) {
|
|
|
25
25
|
window.addEventListener("resize", t);
|
|
26
26
|
}), h(() => {
|
|
27
27
|
window.removeEventListener("resize", t);
|
|
28
|
-
}),
|
|
28
|
+
}), o;
|
|
29
29
|
}
|
|
30
30
|
const I = /* @__PURE__ */ p({
|
|
31
31
|
__name: "FullWrapper",
|
|
32
32
|
setup(e) {
|
|
33
|
-
const
|
|
33
|
+
const n = x(), o = m(null), t = $(o), a = y(() => {
|
|
34
34
|
var d;
|
|
35
|
-
const l =
|
|
35
|
+
const l = n.isAtMost("sm") ? 56 : 0;
|
|
36
36
|
return {
|
|
37
37
|
height: `calc(100dvh - ${((d = t.value) == null ? void 0 : d.top) + 24 + l}px)`
|
|
38
38
|
};
|
|
39
39
|
});
|
|
40
40
|
return (r, l) => (g(), f("div", {
|
|
41
41
|
ref_key: "wrapper",
|
|
42
|
-
ref:
|
|
42
|
+
ref: o,
|
|
43
43
|
style: R(a.value)
|
|
44
44
|
}, [
|
|
45
45
|
L(r.$slots, "default")
|
|
@@ -48,11 +48,11 @@ const I = /* @__PURE__ */ p({
|
|
|
48
48
|
}), N = { class: "flex justify-center items-center h-full w-full" }, P = /* @__PURE__ */ p({
|
|
49
49
|
__name: "PageLoading",
|
|
50
50
|
setup(e) {
|
|
51
|
-
return (
|
|
51
|
+
return (n, o) => {
|
|
52
52
|
const t = w("FmCircularProgress");
|
|
53
53
|
return g(), U(I, null, {
|
|
54
|
-
default:
|
|
55
|
-
|
|
54
|
+
default: C(() => [
|
|
55
|
+
q("div", N, [
|
|
56
56
|
T(t, { size: "xl" })
|
|
57
57
|
])
|
|
58
58
|
]),
|
|
@@ -60,7 +60,7 @@ const I = /* @__PURE__ */ p({
|
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
}), i = (e) =>
|
|
63
|
+
}), i = (e) => A({
|
|
64
64
|
loader: e,
|
|
65
65
|
loadingComponent: P
|
|
66
66
|
}), B = {
|
|
@@ -179,6 +179,10 @@ const I = /* @__PURE__ */ p({
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
+
},
|
|
183
|
+
codeConfirmation: {
|
|
184
|
+
title: "Set code for this restaurant?",
|
|
185
|
+
message: 'Are you sure you want to set the code of restaurant "{name}" to "{code}"? You can only set the code once.'
|
|
182
186
|
}
|
|
183
187
|
},
|
|
184
188
|
form: {
|
|
@@ -493,6 +497,10 @@ const I = /* @__PURE__ */ p({
|
|
|
493
497
|
}
|
|
494
498
|
}
|
|
495
499
|
}
|
|
500
|
+
},
|
|
501
|
+
codeConfirmation: {
|
|
502
|
+
title: "ตั้งค่ารหัสสำหรับร้านอาหารนี้?",
|
|
503
|
+
message: "คุณแน่ใจหรือไม่ว่าต้องการตั้งค่ารหัสสำหรับร้านอาหาร {name} เป็น {code}? รหัสสามารถตั้งค่าได้เพียงครั้งเดียวเท่านั้น"
|
|
496
504
|
}
|
|
497
505
|
},
|
|
498
506
|
form: {
|
|
@@ -806,6 +814,10 @@ const I = /* @__PURE__ */ p({
|
|
|
806
814
|
label: "轮播图片"
|
|
807
815
|
}
|
|
808
816
|
}
|
|
817
|
+
},
|
|
818
|
+
codeConfirmation: {
|
|
819
|
+
title: "设置餐厅代码",
|
|
820
|
+
message: '确定要设置餐厅 "{name}" 的代码为 "{code}" 吗?代码只能设置一次。'
|
|
809
821
|
}
|
|
810
822
|
}
|
|
811
823
|
},
|
|
@@ -1004,7 +1016,7 @@ const I = /* @__PURE__ */ p({
|
|
|
1004
1016
|
}
|
|
1005
1017
|
}, K = {
|
|
1006
1018
|
settings: z
|
|
1007
|
-
},
|
|
1019
|
+
}, G = [
|
|
1008
1020
|
{
|
|
1009
1021
|
path: "/",
|
|
1010
1022
|
redirect: "$settings-my-business"
|
|
@@ -1012,7 +1024,7 @@ const I = /* @__PURE__ */ p({
|
|
|
1012
1024
|
{
|
|
1013
1025
|
path: "/business",
|
|
1014
1026
|
name: "$settings-my-business",
|
|
1015
|
-
component: i(() => import("./Business-
|
|
1027
|
+
component: i(() => import("./Business-557b464e.js")),
|
|
1016
1028
|
meta: {
|
|
1017
1029
|
i18nKey: "settings.business.title"
|
|
1018
1030
|
}
|
|
@@ -1020,7 +1032,7 @@ const I = /* @__PURE__ */ p({
|
|
|
1020
1032
|
{
|
|
1021
1033
|
path: "/create-business",
|
|
1022
1034
|
name: "$settings-create-business",
|
|
1023
|
-
component: i(() => import("./CreateBusiness-
|
|
1035
|
+
component: i(() => import("./CreateBusiness-fa4096f9.js")),
|
|
1024
1036
|
meta: {
|
|
1025
1037
|
hideNavigation: !0
|
|
1026
1038
|
}
|
|
@@ -1028,7 +1040,7 @@ const I = /* @__PURE__ */ p({
|
|
|
1028
1040
|
{
|
|
1029
1041
|
path: "/foodcourt",
|
|
1030
1042
|
name: "$settings-food-court",
|
|
1031
|
-
component: i(() => import("./FoodCourt-
|
|
1043
|
+
component: i(() => import("./FoodCourt-0a28a67f.js")),
|
|
1032
1044
|
meta: {
|
|
1033
1045
|
i18nKey: "settings.food_court.list.title"
|
|
1034
1046
|
}
|
|
@@ -1062,7 +1074,7 @@ const I = /* @__PURE__ */ p({
|
|
|
1062
1074
|
path: "/e-invoice",
|
|
1063
1075
|
name: "$settings-e-invoice",
|
|
1064
1076
|
component: F,
|
|
1065
|
-
children:
|
|
1077
|
+
children: S.map((e) => ({ ...e, path: `/e-invoice${e.path}` })),
|
|
1066
1078
|
meta: {
|
|
1067
1079
|
i18nKey: "settings.eInvoice.title"
|
|
1068
1080
|
}
|
|
@@ -1070,7 +1082,7 @@ const I = /* @__PURE__ */ p({
|
|
|
1070
1082
|
{
|
|
1071
1083
|
path: "/tagging",
|
|
1072
1084
|
name: "$settings-tagging",
|
|
1073
|
-
component: k(i(() => import("./Tagging-
|
|
1085
|
+
component: k(i(() => import("./Tagging-3a7fb06e.js"))),
|
|
1074
1086
|
meta: {
|
|
1075
1087
|
i18nKey: "settings.tagging.title",
|
|
1076
1088
|
validationManifest: {
|
|
@@ -1079,7 +1091,7 @@ const I = /* @__PURE__ */ p({
|
|
|
1079
1091
|
hideNavigation: !0
|
|
1080
1092
|
}
|
|
1081
1093
|
}
|
|
1082
|
-
],
|
|
1094
|
+
], Q = i(() => import("./App-e6b77ccd.js")), J = {
|
|
1083
1095
|
"en-US": {
|
|
1084
1096
|
...D,
|
|
1085
1097
|
...s["en-US"]
|
|
@@ -1094,9 +1106,9 @@ const I = /* @__PURE__ */ p({
|
|
|
1094
1106
|
}
|
|
1095
1107
|
};
|
|
1096
1108
|
export {
|
|
1097
|
-
|
|
1109
|
+
Q as F,
|
|
1098
1110
|
I as _,
|
|
1099
1111
|
J as i,
|
|
1100
|
-
|
|
1101
|
-
|
|
1112
|
+
G as r,
|
|
1113
|
+
$ as u
|
|
1102
1114
|
};
|
package/dist/app.js
CHANGED
|
@@ -388,6 +388,10 @@ export declare const i18nMessages: {
|
|
|
388
388
|
};
|
|
389
389
|
};
|
|
390
390
|
};
|
|
391
|
+
codeConfirmation: {
|
|
392
|
+
title: string;
|
|
393
|
+
message: string;
|
|
394
|
+
};
|
|
391
395
|
};
|
|
392
396
|
form: {
|
|
393
397
|
title: string;
|
|
@@ -971,6 +975,10 @@ export declare const i18nMessages: {
|
|
|
971
975
|
};
|
|
972
976
|
};
|
|
973
977
|
};
|
|
978
|
+
codeConfirmation: {
|
|
979
|
+
title: string;
|
|
980
|
+
message: string;
|
|
981
|
+
};
|
|
974
982
|
};
|
|
975
983
|
};
|
|
976
984
|
form: {
|
|
@@ -4,7 +4,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
4
4
|
type: PropType<{
|
|
5
5
|
type: "string" | "number" | "boolean" | "date";
|
|
6
6
|
key: string;
|
|
7
|
-
entity: "restaurant" | "item";
|
|
7
|
+
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
8
8
|
}>;
|
|
9
9
|
default: undefined;
|
|
10
10
|
};
|
|
@@ -16,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
16
16
|
type: PropType<{
|
|
17
17
|
type: "string" | "number" | "boolean" | "date";
|
|
18
18
|
key: string;
|
|
19
|
-
entity: "restaurant" | "item";
|
|
19
|
+
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
20
20
|
}>;
|
|
21
21
|
default: undefined;
|
|
22
22
|
};
|
|
@@ -24,7 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
24
24
|
initialValue: {
|
|
25
25
|
type: "string" | "number" | "boolean" | "date";
|
|
26
26
|
key: string;
|
|
27
|
-
entity: "restaurant" | "item";
|
|
27
|
+
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
28
28
|
};
|
|
29
29
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
30
30
|
default?(_: {
|
|
@@ -3,25 +3,25 @@ export declare const useAttributeSettingsStore: import("pinia").StoreDefinition<
|
|
|
3
3
|
customAttributes: import("vue").Ref<{
|
|
4
4
|
type: "string" | "number" | "boolean" | "date";
|
|
5
5
|
key: string;
|
|
6
|
-
entity: "restaurant" | "item";
|
|
6
|
+
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
7
7
|
}[], {
|
|
8
8
|
type: "string" | "number" | "boolean" | "date";
|
|
9
9
|
key: string;
|
|
10
|
-
entity: "restaurant" | "item";
|
|
10
|
+
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
11
11
|
}[] | {
|
|
12
12
|
type: "string" | "number" | "boolean" | "date";
|
|
13
13
|
key: string;
|
|
14
|
-
entity: "restaurant" | "item";
|
|
14
|
+
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
15
15
|
}[]>;
|
|
16
16
|
restaurantAttributes: import("vue").ComputedRef<{
|
|
17
17
|
type: "string" | "number" | "boolean" | "date";
|
|
18
18
|
key: string;
|
|
19
|
-
entity: "restaurant" | "item";
|
|
19
|
+
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
20
20
|
}[]>;
|
|
21
21
|
itemAttributes: import("vue").ComputedRef<{
|
|
22
22
|
type: "string" | "number" | "boolean" | "date";
|
|
23
23
|
key: string;
|
|
24
|
-
entity: "restaurant" | "item";
|
|
24
|
+
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
25
25
|
}[]>;
|
|
26
26
|
readAttributeSettings: () => Promise<void>;
|
|
27
27
|
addOrUpdateAttribute: (attribute: FdoCustomAttribute) => Promise<void>;
|
|
@@ -30,25 +30,25 @@ export declare const useAttributeSettingsStore: import("pinia").StoreDefinition<
|
|
|
30
30
|
customAttributes: import("vue").Ref<{
|
|
31
31
|
type: "string" | "number" | "boolean" | "date";
|
|
32
32
|
key: string;
|
|
33
|
-
entity: "restaurant" | "item";
|
|
33
|
+
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
34
34
|
}[], {
|
|
35
35
|
type: "string" | "number" | "boolean" | "date";
|
|
36
36
|
key: string;
|
|
37
|
-
entity: "restaurant" | "item";
|
|
37
|
+
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
38
38
|
}[] | {
|
|
39
39
|
type: "string" | "number" | "boolean" | "date";
|
|
40
40
|
key: string;
|
|
41
|
-
entity: "restaurant" | "item";
|
|
41
|
+
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
42
42
|
}[]>;
|
|
43
43
|
restaurantAttributes: import("vue").ComputedRef<{
|
|
44
44
|
type: "string" | "number" | "boolean" | "date";
|
|
45
45
|
key: string;
|
|
46
|
-
entity: "restaurant" | "item";
|
|
46
|
+
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
47
47
|
}[]>;
|
|
48
48
|
itemAttributes: import("vue").ComputedRef<{
|
|
49
49
|
type: "string" | "number" | "boolean" | "date";
|
|
50
50
|
key: string;
|
|
51
|
-
entity: "restaurant" | "item";
|
|
51
|
+
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
52
52
|
}[]>;
|
|
53
53
|
readAttributeSettings: () => Promise<void>;
|
|
54
54
|
addOrUpdateAttribute: (attribute: FdoCustomAttribute) => Promise<void>;
|
|
@@ -57,25 +57,25 @@ export declare const useAttributeSettingsStore: import("pinia").StoreDefinition<
|
|
|
57
57
|
customAttributes: import("vue").Ref<{
|
|
58
58
|
type: "string" | "number" | "boolean" | "date";
|
|
59
59
|
key: string;
|
|
60
|
-
entity: "restaurant" | "item";
|
|
60
|
+
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
61
61
|
}[], {
|
|
62
62
|
type: "string" | "number" | "boolean" | "date";
|
|
63
63
|
key: string;
|
|
64
|
-
entity: "restaurant" | "item";
|
|
64
|
+
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
65
65
|
}[] | {
|
|
66
66
|
type: "string" | "number" | "boolean" | "date";
|
|
67
67
|
key: string;
|
|
68
|
-
entity: "restaurant" | "item";
|
|
68
|
+
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
69
69
|
}[]>;
|
|
70
70
|
restaurantAttributes: import("vue").ComputedRef<{
|
|
71
71
|
type: "string" | "number" | "boolean" | "date";
|
|
72
72
|
key: string;
|
|
73
|
-
entity: "restaurant" | "item";
|
|
73
|
+
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
74
74
|
}[]>;
|
|
75
75
|
itemAttributes: import("vue").ComputedRef<{
|
|
76
76
|
type: "string" | "number" | "boolean" | "date";
|
|
77
77
|
key: string;
|
|
78
|
-
entity: "restaurant" | "item";
|
|
78
|
+
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
79
79
|
}[]>;
|
|
80
80
|
readAttributeSettings: () => Promise<void>;
|
|
81
81
|
addOrUpdateAttribute: (attribute: FdoCustomAttribute) => Promise<void>;
|