@feedmepos/mf-settings 0.0.48-beta.0-ex → 0.0.49
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-358f23fc.js +53 -0
- package/dist/Business-618e5ec3.js +3888 -0
- package/dist/{CreateBusiness-e05859f6.js → CreateBusiness-8f569ca5.js} +17 -19
- package/dist/FoodCourt-b50a5495.js +47800 -0
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-664bb402.js +395 -0
- package/dist/app-050b47dd.js +34303 -0
- package/dist/app.js +5 -7
- package/dist/apps/mf-settings/src/app.d.ts +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/index-3dd7fe2c.js +17754 -0
- package/package.json +3 -3
- package/dist/Business-c2cc9ee7.js +0 -4182
- package/dist/FoodCourt-b9e42611.js +0 -12454
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-65f62fbb.js +0 -101
- package/dist/app-29117ada.js +0 -17441
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { defineComponent as l, computed as m, ref as S, watchEffect as b, resolveComponent as $, openBlock as u, createBlock as c, onMounted as B, unref as I } from "vue";
|
|
2
|
+
import { useRouter as U, RouterView as h } from "vue-router";
|
|
3
|
+
import { useI18n as N, useCoreStore as p } from "@feedmepos/mf-common";
|
|
4
|
+
import { e as R, r as V, i as x } from "./app-050b47dd.js";
|
|
5
|
+
import { c as C } from "./index-3dd7fe2c.js";
|
|
6
|
+
import "@feedmepos/mf-mdm";
|
|
7
|
+
import "@feedmepos/mf-e-invoice";
|
|
8
|
+
import "@feedmepos/ui-library";
|
|
9
|
+
import "pinia";
|
|
10
|
+
import "@vue/devtools-api";
|
|
11
|
+
const E = /* @__PURE__ */ l({
|
|
12
|
+
__name: "NavigationTab",
|
|
13
|
+
emits: ["close-navigation"],
|
|
14
|
+
setup(f, { emit: r }) {
|
|
15
|
+
const a = r, { t: i } = N(), o = U(), v = p(), _ = m(() => v.restaurants.value.some(({ posVersion: t }) => C.Pos.canUse({ feature: R.F_FEATURE.Enum.templateBuilder, posVersion: t ?? "" }))), d = m(() => V.filter((e) => {
|
|
16
|
+
var n;
|
|
17
|
+
return e.redirect || (n = e.meta) != null && n.hideNavigation ? !1 : !(e.name === "$settings-template-builder" && !_.value);
|
|
18
|
+
}).map((e) => {
|
|
19
|
+
var n;
|
|
20
|
+
return {
|
|
21
|
+
label: i((n = e.meta) == null ? void 0 : n.i18nKey),
|
|
22
|
+
value: e.name,
|
|
23
|
+
action: () => {
|
|
24
|
+
e.name === "$settings-e-invoice" ? o.push({ name: "SUBMISSION" }) : e.name === "$settings-device" ? o.push({ name: "$devices" }) : o.push({ name: e.name }), a("close-navigation");
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
})), s = S();
|
|
28
|
+
return b(() => {
|
|
29
|
+
var e;
|
|
30
|
+
const t = (e = o.currentRoute.value) == null ? void 0 : e.name;
|
|
31
|
+
t === "SUBMISSION" ? s.value = "$settings-e-invoice" : t === "$devices" ? s.value = "$settings-device" : s.value = t;
|
|
32
|
+
}), (t, e) => {
|
|
33
|
+
const n = $("fm-collapsible-tabs");
|
|
34
|
+
return u(), c(n, {
|
|
35
|
+
modelValue: s.value,
|
|
36
|
+
"onUpdate:modelValue": e[0] || (e[0] = (g) => s.value = g),
|
|
37
|
+
items: d.value,
|
|
38
|
+
class: "py-16 px-8"
|
|
39
|
+
}, null, 8, ["modelValue", "items"]);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}), j = /* @__PURE__ */ l({
|
|
43
|
+
__name: "App",
|
|
44
|
+
setup(f) {
|
|
45
|
+
const r = p();
|
|
46
|
+
return B(() => {
|
|
47
|
+
r.registerSidebarComponent(E), x();
|
|
48
|
+
}), (a, i) => (u(), c(I(h)));
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
export {
|
|
52
|
+
j as default
|
|
53
|
+
};
|