@feedmepos/mf-settings 0.0.48-beta.1 → 0.0.49-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-15361c1a.js → App-bcaf0e13.js} +86 -86
- package/dist/{Business-1564c1b4.js → Business-c745610e.js} +549 -549
- package/dist/{CreateBusiness-138ac258.js → CreateBusiness-178daa1b.js} +2 -2
- package/dist/{FoodCourt-561cd7e3.js → FoodCourt-01cfd384.js} +1 -1
- package/dist/{Tagging-9126557f.js → Tagging-9df6a224.js} +10 -7
- package/dist/TemplateBuilder-f9ef1e3b.js +27 -0
- package/dist/{app-ce0bb813.js → app-53ec4ba9.js} +38 -36
- package/dist/app.js +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{business-9a4e5bd7.js → business-5239a754.js} +1 -1
- package/dist/{loading-84215dce.js → loading-a9743d80.js} +111 -111
- package/dist/packages/shared/src/components/info/TextChip.vue.d.ts +1 -1
- package/dist/packages/shared/src/composable/elementPosition.d.ts +1 -1
- package/package.json +3 -3
- package/dist/TemplateBuilder-54a34178.js +0 -27
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { unref as n, defineComponent as A, openBlock as v, createElementBlock as y, ref as f, watch as $, computed as j, watchEffect as G, onBeforeUnmount as P, resolveComponent as h, createVNode as g, withCtx as W, createElementVNode as s, toDisplayString as b, Fragment as z, renderList as R, normalizeClass as Z, createBlock as q, createCommentVNode as Q } from "vue";
|
|
2
2
|
import { useCoreStore as Y, useI18n as J, CountryOptions as K } from "@feedmepos/mf-common";
|
|
3
3
|
import { _ as X, r as ee } from "./rules-c9fa22f8.js";
|
|
4
|
-
import { b as w } from "./business-
|
|
4
|
+
import { b as w } from "./business-5239a754.js";
|
|
5
5
|
import "./index-f1e5e565.js";
|
|
6
6
|
import { useSnackbar as te } from "@feedmepos/ui-library";
|
|
7
|
-
import { u as se, F as ne } from "./loading-
|
|
7
|
+
import { u as se, F as ne } from "./loading-a9743d80.js";
|
|
8
8
|
import { useRouter as oe } from "vue-router";
|
|
9
9
|
import "pinia";
|
|
10
10
|
function L(r) {
|
|
@@ -6,7 +6,7 @@ import { l as q, c as V, d as ze, a as Sc, e as Ei, b as Yf } from "./index-f1e5
|
|
|
6
6
|
import { c as Qg, a as zd } from "./index-1eb3cc0a.js";
|
|
7
7
|
import { d as Xg, _ as hc, u as Zg, a as xg } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-977372d5.js";
|
|
8
8
|
import { useSnackbar as ml, components as so, useDialogChild as ep, useDialog as Kf, useBreakpoints as tp } from "@feedmepos/ui-library";
|
|
9
|
-
import { g as Gn, r as la, b as Fd, u as Oc } from "./loading-
|
|
9
|
+
import { g as Gn, r as la, b as Fd, u as Oc } from "./loading-a9743d80.js";
|
|
10
10
|
import { useCoreStore as gl, useI18n as Tc } from "@feedmepos/mf-common";
|
|
11
11
|
import { c as Hf, _ as np, a as C$ } from "./createForm-681e977a.js";
|
|
12
12
|
import "pinia";
|
|
@@ -3,12 +3,12 @@ import { useCoreStore as wo, useI18n as Do } from "@feedmepos/mf-common";
|
|
|
3
3
|
import { useDialog as Po, useSnackbar as xo, components as Ym, useBreakpoints as Xm, FmButtonVariant as qm } from "@feedmepos/ui-library";
|
|
4
4
|
import { c as Ci, _ as Jm, a as Zm } from "./createForm-681e977a.js";
|
|
5
5
|
import { _ as Qm, c as zm } from "./actionButton-cc6bcf01.js";
|
|
6
|
-
import { u as Fo } from "./loading-
|
|
6
|
+
import { u as Fo } from "./loading-a9743d80.js";
|
|
7
7
|
import { c as br } from "./index-f1e5e565.js";
|
|
8
8
|
import { defineStore as jm } from "pinia";
|
|
9
|
-
import { b as es } from "./business-
|
|
9
|
+
import { b as es } from "./business-5239a754.js";
|
|
10
10
|
import "@vue/devtools-api";
|
|
11
|
-
import { _ as eE } from "./app-
|
|
11
|
+
import { _ as eE } from "./app-53ec4ba9.js";
|
|
12
12
|
import "@feedmepos/mf-mdm";
|
|
13
13
|
import "vue-router";
|
|
14
14
|
import "@feedmepos/mf-e-invoice";
|
|
@@ -32,11 +32,11 @@ function nE(r, s) {
|
|
|
32
32
|
const u = Po(), { t: f } = Do();
|
|
33
33
|
function _() {
|
|
34
34
|
r() ? u.open({
|
|
35
|
-
title: f("dismiss.title"),
|
|
36
|
-
message: f("dismiss.message"),
|
|
35
|
+
title: f("portalCommon.dismiss.title"),
|
|
36
|
+
message: f("portalCommon.dismiss.message"),
|
|
37
37
|
zIndex: 200,
|
|
38
38
|
primaryActions: {
|
|
39
|
-
text: f("dismiss.primaryActions"),
|
|
39
|
+
text: f("portalCommon.dismiss.primaryActions"),
|
|
40
40
|
variant: "primary",
|
|
41
41
|
close: !0
|
|
42
42
|
},
|
|
@@ -3755,7 +3755,10 @@ const rE = { class: "fm-typo-en-title-md-600" }, iE = { class: "py-16 space-y-32
|
|
|
3755
3755
|
{ label: "Number", value: "number" }
|
|
3756
3756
|
]), W = rn(() => [
|
|
3757
3757
|
{ label: "Restaurant", value: "restaurant" },
|
|
3758
|
-
{ label: "Item", value: "item" }
|
|
3758
|
+
{ label: "Item", value: "item" },
|
|
3759
|
+
{ label: "Warehouse", value: "warehouse" },
|
|
3760
|
+
{ label: "Inventory Sku", value: "inventorySku" },
|
|
3761
|
+
{ label: "Inventory Recipe", value: "inventoryRecipe" }
|
|
3759
3762
|
]), F = tr(!1), $ = tr(!1), J = (R) => {
|
|
3760
3763
|
$.value = !$.value;
|
|
3761
3764
|
}, X = nE(
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent as o, computed as c, resolveComponent as u, openBlock as s, createElementBlock as a, createVNode as m } from "vue";
|
|
2
|
+
import { useCoreStore as i, FeedMeAuth as l } from "@feedmepos/mf-common";
|
|
3
|
+
const d = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "w-full h-full flex items-center justify-center"
|
|
6
|
+
}, p = ["src"], b = /* @__PURE__ */ o({
|
|
7
|
+
__name: "TemplateBuilder",
|
|
8
|
+
setup(f) {
|
|
9
|
+
const e = i(), t = c(() => {
|
|
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=${l.token}` : "";
|
|
12
|
+
});
|
|
13
|
+
return (r, _) => {
|
|
14
|
+
const n = u("FmCircularProgress");
|
|
15
|
+
return t.value ? (s(), a("iframe", {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "w-full h-full",
|
|
18
|
+
src: t.value
|
|
19
|
+
}, null, 8, p)) : (s(), a("div", d, [
|
|
20
|
+
m(n, { size: "lg" })
|
|
21
|
+
]));
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
b as default
|
|
27
|
+
};
|
|
@@ -1,54 +1,56 @@
|
|
|
1
|
-
import { FmApp as
|
|
2
|
-
import { ref as
|
|
1
|
+
import { FmApp as b, routers as v, i18nMessages as d } from "@feedmepos/mf-mdm";
|
|
2
|
+
import { ref as m, watch as c, nextTick as u, onMounted as h, onBeforeUnmount as _, defineComponent as p, computed as y, openBlock as g, createElementBlock as f, normalizeStyle as R, renderSlot as w, resolveComponent as L, createBlock as C, withCtx as U, createElementVNode as q, createVNode as A, defineAsyncComponent as T } from "vue";
|
|
3
3
|
import { useBreakpoints as k } from "@feedmepos/ui-library";
|
|
4
4
|
import "vue-router";
|
|
5
5
|
import { FmApp as F, routers as x } from "@feedmepos/mf-e-invoice";
|
|
6
6
|
import { withPermission as S } from "@feedmepos/mf-common";
|
|
7
|
-
function $(e) {
|
|
8
|
-
const n =
|
|
9
|
-
function
|
|
7
|
+
function $(e, o) {
|
|
8
|
+
const n = m({ top: 0, bottom: 0, left: 0, right: 0 });
|
|
9
|
+
function t() {
|
|
10
10
|
if (e.value) {
|
|
11
|
-
const
|
|
11
|
+
const a = e.value.getBoundingClientRect();
|
|
12
12
|
n.value = {
|
|
13
|
-
top:
|
|
14
|
-
bottom:
|
|
15
|
-
left:
|
|
16
|
-
right:
|
|
13
|
+
top: a.top,
|
|
14
|
+
bottom: a.bottom,
|
|
15
|
+
left: a.left,
|
|
16
|
+
right: a.right
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
return
|
|
21
|
-
|
|
20
|
+
return c(o, async () => {
|
|
21
|
+
await u(), t();
|
|
22
|
+
}), c(e, async (a) => {
|
|
23
|
+
a && (await u(), t());
|
|
22
24
|
}), h(() => {
|
|
23
|
-
window.addEventListener("resize",
|
|
25
|
+
window.addEventListener("resize", t);
|
|
24
26
|
}), _(() => {
|
|
25
|
-
window.removeEventListener("resize",
|
|
27
|
+
window.removeEventListener("resize", t);
|
|
26
28
|
}), n;
|
|
27
29
|
}
|
|
28
|
-
const I = /* @__PURE__ */
|
|
30
|
+
const I = /* @__PURE__ */ p({
|
|
29
31
|
__name: "FullWrapper",
|
|
30
32
|
setup(e) {
|
|
31
|
-
const
|
|
32
|
-
var
|
|
33
|
-
const
|
|
33
|
+
const o = k(), n = m(null), t = $(n), a = y(() => {
|
|
34
|
+
var l;
|
|
35
|
+
const r = o.isAtMost("sm") ? 56 : 0;
|
|
34
36
|
return {
|
|
35
|
-
height: `calc(100dvh - ${((
|
|
37
|
+
height: `calc(100dvh - ${((l = t.value) == null ? void 0 : l.top) + 24 + r}px)`
|
|
36
38
|
};
|
|
37
39
|
});
|
|
38
|
-
return (
|
|
40
|
+
return (s, r) => (g(), f("div", {
|
|
39
41
|
ref_key: "wrapper",
|
|
40
|
-
ref:
|
|
41
|
-
style: R(
|
|
42
|
+
ref: n,
|
|
43
|
+
style: R(a.value)
|
|
42
44
|
}, [
|
|
43
|
-
w(
|
|
45
|
+
w(s.$slots, "default")
|
|
44
46
|
], 4));
|
|
45
47
|
}
|
|
46
|
-
}), N = { class: "flex justify-center items-center h-full w-full" }, P = /* @__PURE__ */
|
|
48
|
+
}), N = { class: "flex justify-center items-center h-full w-full" }, P = /* @__PURE__ */ p({
|
|
47
49
|
__name: "PageLoading",
|
|
48
50
|
setup(e) {
|
|
49
|
-
return (
|
|
51
|
+
return (o, n) => {
|
|
50
52
|
const t = L("FmCircularProgress");
|
|
51
|
-
return
|
|
53
|
+
return g(), C(I, null, {
|
|
52
54
|
default: U(() => [
|
|
53
55
|
q("div", N, [
|
|
54
56
|
A(t, { size: "xl" })
|
|
@@ -696,7 +698,7 @@ const I = /* @__PURE__ */ c({
|
|
|
696
698
|
{
|
|
697
699
|
path: "/business",
|
|
698
700
|
name: "$settings-my-business",
|
|
699
|
-
component: i(() => import("./Business-
|
|
701
|
+
component: i(() => import("./Business-c745610e.js")),
|
|
700
702
|
meta: {
|
|
701
703
|
i18nKey: "settings.business.title"
|
|
702
704
|
}
|
|
@@ -704,7 +706,7 @@ const I = /* @__PURE__ */ c({
|
|
|
704
706
|
{
|
|
705
707
|
path: "/create-business",
|
|
706
708
|
name: "$settings-create-business",
|
|
707
|
-
component: i(() => import("./CreateBusiness-
|
|
709
|
+
component: i(() => import("./CreateBusiness-178daa1b.js")),
|
|
708
710
|
meta: {
|
|
709
711
|
hideNavigation: !0
|
|
710
712
|
}
|
|
@@ -712,7 +714,7 @@ const I = /* @__PURE__ */ c({
|
|
|
712
714
|
{
|
|
713
715
|
path: "/foodcourt",
|
|
714
716
|
name: "$settings-food-court",
|
|
715
|
-
component: i(() => import("./FoodCourt-
|
|
717
|
+
component: i(() => import("./FoodCourt-01cfd384.js")),
|
|
716
718
|
meta: {
|
|
717
719
|
i18nKey: "settings.food_court.list.title"
|
|
718
720
|
}
|
|
@@ -720,8 +722,8 @@ const I = /* @__PURE__ */ c({
|
|
|
720
722
|
{
|
|
721
723
|
path: "/devices",
|
|
722
724
|
name: "$settings-device",
|
|
723
|
-
component:
|
|
724
|
-
children:
|
|
725
|
+
component: b,
|
|
726
|
+
children: v.map((e) => ({ ...e, path: `/device${e.path}` })),
|
|
725
727
|
meta: {
|
|
726
728
|
i18nKey: "settings.device.title"
|
|
727
729
|
}
|
|
@@ -729,7 +731,7 @@ const I = /* @__PURE__ */ c({
|
|
|
729
731
|
{
|
|
730
732
|
path: "/template-builder",
|
|
731
733
|
name: "$settings-template-builder",
|
|
732
|
-
component: i(() => import("./TemplateBuilder-
|
|
734
|
+
component: i(() => import("./TemplateBuilder-f9ef1e3b.js")),
|
|
733
735
|
meta: {
|
|
734
736
|
i18nKey: "settings.templateBuilder.title"
|
|
735
737
|
}
|
|
@@ -754,7 +756,7 @@ const I = /* @__PURE__ */ c({
|
|
|
754
756
|
{
|
|
755
757
|
path: "/tagging",
|
|
756
758
|
name: "$settings-tagging",
|
|
757
|
-
component: S(i(() => import("./Tagging-
|
|
759
|
+
component: S(i(() => import("./Tagging-9df6a224.js"))),
|
|
758
760
|
meta: {
|
|
759
761
|
i18nKey: "settings.tagging.title",
|
|
760
762
|
validationManifest: {
|
|
@@ -763,14 +765,14 @@ const I = /* @__PURE__ */ c({
|
|
|
763
765
|
hideNavigation: !0
|
|
764
766
|
}
|
|
765
767
|
}
|
|
766
|
-
], Q = i(() => import("./App-
|
|
768
|
+
], Q = i(() => import("./App-bcaf0e13.js")), Y = {
|
|
767
769
|
"en-US": {
|
|
768
770
|
...E,
|
|
769
|
-
...
|
|
771
|
+
...d["en-US"]
|
|
770
772
|
},
|
|
771
773
|
"zh-CN": {
|
|
772
774
|
...M,
|
|
773
|
-
...
|
|
775
|
+
...d["zh-CN"]
|
|
774
776
|
}
|
|
775
777
|
};
|
|
776
778
|
export {
|
package/dist/app.js
CHANGED