@feedmepos/mf-settings 0.0.48-beta.1-ex → 0.0.48
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-cddefb91.js → App-cc67c5c1.js} +89 -88
- package/dist/Business-e8c7eafc.js +3893 -0
- package/dist/{CreateBusiness-fc4661b1.js → CreateBusiness-178daa1b.js} +3 -3
- package/dist/FoodCourt-01cfd384.js +47798 -0
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-977372d5.js +395 -0
- package/dist/{Tagging-0a2c6a6b.js → Tagging-eca30670.js} +1326 -1340
- package/dist/TemplateBuilder-f9ef1e3b.js +27 -0
- package/dist/actionButton-cc6bcf01.js +66 -0
- package/dist/app-6da9af48.js +782 -0
- package/dist/app.js +9 -719
- package/dist/apps/mf-settings/src/app.d.ts +1 -1
- package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{business-8b22c801.js → business-5239a754.js} +1 -1
- package/dist/createForm-681e977a.js +64 -0
- package/dist/index-1eb3cc0a.js +17754 -0
- package/dist/index-f1e5e565.js +10903 -0
- package/dist/{loading-eb019aa4.js → loading-a9743d80.js} +152 -152
- package/dist/packages/shared/src/components/form/ImageDropField.vue.d.ts +1 -1
- package/dist/packages/shared/src/components/loading/PageLoading.vue.d.ts +2 -0
- package/dist/packages/shared/src/components/loading/index.d.ts +1 -0
- package/package.json +2 -2
- package/dist/Business-2da2ffc4.js +0 -4181
- package/dist/FoodCourt-17a5dadd.js +0 -12451
- package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-65f62fbb.js +0 -101
- package/dist/TemplateBuilder-54a34178.js +0 -27
- package/dist/actionButton-6b6e9e60.js +0 -88
- package/dist/createForm-ad247a74.js +0 -92
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { defineComponent as v, mergeModels as g, useModel as B, computed as i, watchEffect as F, resolveComponent as c, openBlock as u, createBlock as m, withCtx as d, createVNode as f, createElementBlock as _, Fragment as x, renderList as h, normalizeProps as w, mergeProps as b } from "vue";
|
|
2
|
-
import { useCoreStore as M } from "@feedmepos/mf-common";
|
|
3
|
-
import { useSnackbar as I, useBreakpoints as S } from "@feedmepos/ui-library";
|
|
4
|
-
const P = /* @__PURE__ */ v({
|
|
5
|
-
__name: "RestaurantSelector",
|
|
6
|
-
props: /* @__PURE__ */ g({
|
|
7
|
-
managableOnly: { type: Boolean, default: !1 },
|
|
8
|
-
excludeRestaurants: {},
|
|
9
|
-
label: {},
|
|
10
|
-
autoSelectFirst: { type: Boolean, default: !1 }
|
|
11
|
-
}, {
|
|
12
|
-
modelValue: {},
|
|
13
|
-
modelModifiers: {}
|
|
14
|
-
}),
|
|
15
|
-
emits: ["update:modelValue"],
|
|
16
|
-
setup(l) {
|
|
17
|
-
const t = l, a = B(l, "modelValue"), { restaurants: r } = M(), s = i(() => {
|
|
18
|
-
var e;
|
|
19
|
-
return ((e = o.value.find((n) => n.value === a.value)) == null ? void 0 : e.label) || "Select restaurant";
|
|
20
|
-
}), o = i(
|
|
21
|
-
() => r.value.filter((e) => t.managableOnly ? e.managable : !0).map((e) => ({
|
|
22
|
-
label: e.profile.name,
|
|
23
|
-
value: e._id
|
|
24
|
-
})).filter((e) => {
|
|
25
|
-
var n;
|
|
26
|
-
return !((n = t.excludeRestaurants) != null && n.includes(e.value));
|
|
27
|
-
})
|
|
28
|
-
);
|
|
29
|
-
return F(() => {
|
|
30
|
-
t.autoSelectFirst && o.value.length > 0 && (a.value = o.value[0].value);
|
|
31
|
-
}), (e, n) => {
|
|
32
|
-
const y = c("FmChip"), C = c("FmMenuItem"), k = c("FmMenu");
|
|
33
|
-
return u(), m(k, null, {
|
|
34
|
-
"menu-button": d(() => [
|
|
35
|
-
f(y, {
|
|
36
|
-
icon: "storefront",
|
|
37
|
-
label: s.value,
|
|
38
|
-
"right-icon": "keyboard_arrow_down"
|
|
39
|
-
}, null, 8, ["label"])
|
|
40
|
-
]),
|
|
41
|
-
default: d(() => [
|
|
42
|
-
(u(!0), _(x, null, h(o.value, (p) => (u(), m(C, {
|
|
43
|
-
key: p.value,
|
|
44
|
-
label: p.label,
|
|
45
|
-
onClick: (T) => a.value = p.value
|
|
46
|
-
}, null, 8, ["label", "onClick"]))), 128))
|
|
47
|
-
]),
|
|
48
|
-
_: 1
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
function E() {
|
|
54
|
-
const l = I();
|
|
55
|
-
return { copyTextToClipboard: async (a, r = "Copied") => {
|
|
56
|
-
const s = "text/plain", o = new Blob([a], { type: s }), e = [new ClipboardItem({ [s]: o })];
|
|
57
|
-
await navigator.clipboard.write(e), r && l.open({
|
|
58
|
-
title: r,
|
|
59
|
-
message: a,
|
|
60
|
-
type: "success"
|
|
61
|
-
});
|
|
62
|
-
} };
|
|
63
|
-
}
|
|
64
|
-
const R = {
|
|
65
|
-
key: 1,
|
|
66
|
-
class: "z-10 fixed bottom-72 right-16"
|
|
67
|
-
}, L = /* @__PURE__ */ v({
|
|
68
|
-
__name: "ResponsiveFabButton",
|
|
69
|
-
props: {
|
|
70
|
-
variant: {},
|
|
71
|
-
label: {},
|
|
72
|
-
icon: {},
|
|
73
|
-
size: {},
|
|
74
|
-
disabled: { type: Boolean },
|
|
75
|
-
iconColor: {},
|
|
76
|
-
borderColor: {},
|
|
77
|
-
textColor: {},
|
|
78
|
-
bgColor: {},
|
|
79
|
-
type: {},
|
|
80
|
-
iconPosition: {},
|
|
81
|
-
prependIcon: {},
|
|
82
|
-
appendIcon: {},
|
|
83
|
-
loading: { type: Boolean },
|
|
84
|
-
disableIconStatus: { type: Boolean },
|
|
85
|
-
overwriteIconOutline: {}
|
|
86
|
-
},
|
|
87
|
-
setup(l) {
|
|
88
|
-
const t = l, a = i(() => t.variant === "primary" || !t.variant ? "fab" : t.variant), r = S(), s = i(() => r.breakpoints.value.xs);
|
|
89
|
-
return (o, e) => {
|
|
90
|
-
const n = c("FmButton");
|
|
91
|
-
return s.value ? (u(), _("div", R, [
|
|
92
|
-
f(n, b(t, { variant: a.value }), null, 16, ["variant"])
|
|
93
|
-
])) : (u(), m(n, w(b({ key: 0 }, t)), null, 16));
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
export {
|
|
98
|
-
P as _,
|
|
99
|
-
L as a,
|
|
100
|
-
E as u
|
|
101
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { defineComponent as a, computed as c, resolveComponent as u, openBlock as s, createElementBlock as o, createVNode as d } from "vue";
|
|
2
|
-
import { useCoreStore as l, FeedMeAuth as m } from "@feedmepos/mf-common";
|
|
3
|
-
const i = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "w-full h-full flex items-center justify-center"
|
|
6
|
-
}, p = ["src"], h = /* @__PURE__ */ a({
|
|
7
|
-
__name: "TemplateBuilder",
|
|
8
|
-
setup(f) {
|
|
9
|
-
const e = l(), t = c(() => {
|
|
10
|
-
var r;
|
|
11
|
-
return e.currentBusiness.value ? `https://print-template-builder.feedme.dev//#/receipt-info?businessId=${(r = e.currentBusiness.value) == null ? void 0 : r.id}&country=${e.currentCountry.value}&token=${m.token}` : "";
|
|
12
|
-
});
|
|
13
|
-
return (r, v) => {
|
|
14
|
-
const n = u("FmCircularProgress");
|
|
15
|
-
return t.value ? (s(), o("iframe", {
|
|
16
|
-
key: 1,
|
|
17
|
-
class: "w-full h-full",
|
|
18
|
-
src: t.value
|
|
19
|
-
}, null, 8, p)) : (s(), o("div", i, [
|
|
20
|
-
d(n, { size: "lg" })
|
|
21
|
-
]));
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
export {
|
|
26
|
-
h as default
|
|
27
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { ref as f, watch as d, nextTick as h, onMounted as y, onBeforeUnmount as b, defineComponent as p, openBlock as s, createElementBlock as i, normalizeClass as m, renderSlot as r, createElementVNode as l, toDisplayString as a, createCommentVNode as c, createVNode as _, withCtx as k, h as u, withModifiers as v } from "vue";
|
|
2
|
-
import { components as w } from "@feedmepos/ui-library";
|
|
3
|
-
function z(t) {
|
|
4
|
-
const e = f({ top: 0, bottom: 0, left: 0, right: 0 });
|
|
5
|
-
function o() {
|
|
6
|
-
if (t.value) {
|
|
7
|
-
const n = t.value.getBoundingClientRect();
|
|
8
|
-
e.value = {
|
|
9
|
-
top: n.top,
|
|
10
|
-
bottom: n.bottom,
|
|
11
|
-
left: n.left,
|
|
12
|
-
right: n.right
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return d(t, async (n) => {
|
|
17
|
-
n && (await h(), o());
|
|
18
|
-
}), y(() => {
|
|
19
|
-
window.addEventListener("resize", o);
|
|
20
|
-
}), b(() => {
|
|
21
|
-
window.removeEventListener("resize", o);
|
|
22
|
-
}), e;
|
|
23
|
-
}
|
|
24
|
-
const C = /* @__PURE__ */ p({
|
|
25
|
-
__name: "FormColumn",
|
|
26
|
-
props: {
|
|
27
|
-
shrinkable: { type: Boolean }
|
|
28
|
-
},
|
|
29
|
-
setup(t) {
|
|
30
|
-
return (e, o) => (s(), i("div", {
|
|
31
|
-
class: m(["flex-1 flex flex-col space-y-24", { "min-h-0": e.shrinkable }])
|
|
32
|
-
}, [
|
|
33
|
-
r(e.$slots, "default")
|
|
34
|
-
], 2));
|
|
35
|
-
}
|
|
36
|
-
}), g = {
|
|
37
|
-
key: 0,
|
|
38
|
-
class: "flex flex-row justify-between items-center"
|
|
39
|
-
}, B = { class: "space-y-4" }, E = { class: "fm-typo-en-title-sm-600" }, x = {
|
|
40
|
-
key: 0,
|
|
41
|
-
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
42
|
-
}, F = /* @__PURE__ */ p({
|
|
43
|
-
__name: "FormSection",
|
|
44
|
-
props: {
|
|
45
|
-
title: {},
|
|
46
|
-
subTitle: {},
|
|
47
|
-
shrinkable: { type: Boolean }
|
|
48
|
-
},
|
|
49
|
-
setup(t) {
|
|
50
|
-
return (e, o) => (s(), i("div", {
|
|
51
|
-
class: m(["flex flex-col space-y-16", { "min-h-0": e.shrinkable }])
|
|
52
|
-
}, [
|
|
53
|
-
e.title ? (s(), i("div", g, [
|
|
54
|
-
l("div", B, [
|
|
55
|
-
l("p", E, a(e.title), 1),
|
|
56
|
-
e.subTitle ? (s(), i("p", x, a(e.subTitle), 1)) : c("", !0)
|
|
57
|
-
]),
|
|
58
|
-
r(e.$slots, "append-title")
|
|
59
|
-
])) : c("", !0),
|
|
60
|
-
_(C, { shrinkable: e.shrinkable }, {
|
|
61
|
-
default: k(() => [
|
|
62
|
-
r(e.$slots, "default")
|
|
63
|
-
]),
|
|
64
|
-
_: 3
|
|
65
|
-
}, 8, ["shrinkable"])
|
|
66
|
-
], 2));
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
function N(t) {
|
|
70
|
-
return u(
|
|
71
|
-
"div",
|
|
72
|
-
{
|
|
73
|
-
class: "flex justify-end"
|
|
74
|
-
},
|
|
75
|
-
t.map(({ name: e, onClick: o }) => u(w.FmButton, {
|
|
76
|
-
icon: e,
|
|
77
|
-
outline: !0,
|
|
78
|
-
variant: "tertiary",
|
|
79
|
-
iconColor: "neutral-gray-400",
|
|
80
|
-
onClick: v(o, ["stop", "prevent"])
|
|
81
|
-
}))
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
export {
|
|
85
|
-
F as _,
|
|
86
|
-
N as c,
|
|
87
|
-
z as u
|
|
88
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, openBlock as p, createElementBlock as f, createElementVNode as c, renderSlot as a, toDisplayString as m, normalizeClass as i, toRaw as g, markRaw as h, createVNode as y, render as b } from "vue";
|
|
2
|
-
var x = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
|
-
function N(e) {
|
|
4
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5
|
-
}
|
|
6
|
-
function j(e) {
|
|
7
|
-
if (e.__esModule)
|
|
8
|
-
return e;
|
|
9
|
-
var t = e.default;
|
|
10
|
-
if (typeof t == "function") {
|
|
11
|
-
var n = function o() {
|
|
12
|
-
return this instanceof o ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
|
|
13
|
-
};
|
|
14
|
-
n.prototype = t.prototype;
|
|
15
|
-
} else
|
|
16
|
-
n = {};
|
|
17
|
-
return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
|
|
18
|
-
var s = Object.getOwnPropertyDescriptor(e, o);
|
|
19
|
-
Object.defineProperty(n, o, s.get ? s : {
|
|
20
|
-
enumerable: !0,
|
|
21
|
-
get: function() {
|
|
22
|
-
return e[o];
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}), n;
|
|
26
|
-
}
|
|
27
|
-
const _ = {
|
|
28
|
-
class: /* @__PURE__ */ i([
|
|
29
|
-
"flex flex-col",
|
|
30
|
-
"p-24 xs:p-0",
|
|
31
|
-
"bg-fm-color-neutral-white",
|
|
32
|
-
"min-h-[calc(100dvh-56px)]",
|
|
33
|
-
"xs:max-h-[calc(100dvh-56px)]"
|
|
34
|
-
])
|
|
35
|
-
}, w = {
|
|
36
|
-
class: /* @__PURE__ */ i([
|
|
37
|
-
"flex items-center",
|
|
38
|
-
"mb-24 xs:mb-0 xs:p-16",
|
|
39
|
-
"xs:border-b border-fm-color-neutral-gray-100"
|
|
40
|
-
])
|
|
41
|
-
}, v = { class: "fm-typo-en-title-md-600" }, E = /* @__PURE__ */ u({
|
|
42
|
-
__name: "PageLayout",
|
|
43
|
-
props: {
|
|
44
|
-
heading: {}
|
|
45
|
-
},
|
|
46
|
-
setup(e) {
|
|
47
|
-
return (t, n) => (p(), f("div", _, [
|
|
48
|
-
c("div", w, [
|
|
49
|
-
a(t.$slots, "prepend-heading"),
|
|
50
|
-
c("div", null, [
|
|
51
|
-
c("h1", v, m(t.heading), 1),
|
|
52
|
-
a(t.$slots, "sub-heading")
|
|
53
|
-
]),
|
|
54
|
-
a(t.$slots, "append-heading")
|
|
55
|
-
]),
|
|
56
|
-
a(t.$slots, "default")
|
|
57
|
-
]));
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
function d(e) {
|
|
61
|
-
return JSON.parse(JSON.stringify(e));
|
|
62
|
-
}
|
|
63
|
-
function P(e) {
|
|
64
|
-
if (typeof structuredClone > "u")
|
|
65
|
-
return d(e);
|
|
66
|
-
try {
|
|
67
|
-
return structuredClone(g(e));
|
|
68
|
-
} catch {
|
|
69
|
-
return d(e);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
const C = (e, t, n) => {
|
|
73
|
-
if (!t)
|
|
74
|
-
throw new Error("No current instance found");
|
|
75
|
-
const o = document.createElement("div");
|
|
76
|
-
document.body.appendChild(o);
|
|
77
|
-
const s = h(e), r = y(s, n);
|
|
78
|
-
return r.appContext = t.appContext, b(r, o), { container: o, vNode: r };
|
|
79
|
-
};
|
|
80
|
-
function S(e, t, n) {
|
|
81
|
-
var l;
|
|
82
|
-
const { vNode: o, unmount: s } = C(t, e, n), r = (l = o.component) == null ? void 0 : l.exposed;
|
|
83
|
-
r == null || r.trigger();
|
|
84
|
-
}
|
|
85
|
-
export {
|
|
86
|
-
E as _,
|
|
87
|
-
P as a,
|
|
88
|
-
S as b,
|
|
89
|
-
x as c,
|
|
90
|
-
j as d,
|
|
91
|
-
N as g
|
|
92
|
-
};
|