@feedmepos/mf-financing 0.0.5 → 0.0.6
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/Application-BULHvQmM.js +119 -0
- package/dist/app.js +1 -1
- package/dist/components/RestaurantSelector.vue.d.ts +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/Application.vue.d.ts +1 -1
- package/package.json +1 -1
- package/dist/Application-lADRz5Yu.js +0 -14
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { defineComponent as f, resolveComponent as a, openBlock as r, createElementBlock as p, createVNode as l, createElementVNode as o, renderSlot as C, ref as $, computed as g, withCtx as _, toDisplayString as w, unref as k, Fragment as S, renderList as x, createBlock as y } from "vue";
|
|
2
|
+
import "@feedmepos/ui-library";
|
|
3
|
+
import { useCoreStore as B, useI18n as I } from "@feedmepos/mf-common";
|
|
4
|
+
const M = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "flex items-center justify-center min-h-[80vh]"
|
|
7
|
+
}, P = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "m-6"
|
|
10
|
+
}, V = { class: "bg-white fm-corner-radius-md p-6" }, j = /* @__PURE__ */ f({
|
|
11
|
+
__name: "Layout",
|
|
12
|
+
props: {
|
|
13
|
+
loading: { type: Boolean },
|
|
14
|
+
title: {},
|
|
15
|
+
description: {},
|
|
16
|
+
onBack: { type: Function },
|
|
17
|
+
actions: {}
|
|
18
|
+
},
|
|
19
|
+
setup(v) {
|
|
20
|
+
return (t, n) => {
|
|
21
|
+
const m = a("FmCircularProgress"), d = a("FmPageHead");
|
|
22
|
+
return t.loading ? (r(), p("div", M, [
|
|
23
|
+
l(m, { size: "xxl" })
|
|
24
|
+
])) : (r(), p("div", P, [
|
|
25
|
+
l(d, {
|
|
26
|
+
class: "flex-grow mb-6",
|
|
27
|
+
title: t.title,
|
|
28
|
+
description: t.description,
|
|
29
|
+
"back-button": !!t.onBack,
|
|
30
|
+
actions: t.actions && t.actions.map((i, e) => ({ ...i, value: `cta-${e}` })),
|
|
31
|
+
"onClick:back": t.onBack,
|
|
32
|
+
"onClick:action": n[0] || (n[0] = (i) => {
|
|
33
|
+
var e, s;
|
|
34
|
+
return (s = (e = t.actions) == null ? void 0 : e.at(parseInt(i.substring(4)))) == null ? void 0 : s.fn();
|
|
35
|
+
})
|
|
36
|
+
}, null, 8, ["title", "description", "back-button", "actions", "onClick:back"]),
|
|
37
|
+
o("div", V, [
|
|
38
|
+
C(t.$slots, "default")
|
|
39
|
+
])
|
|
40
|
+
]));
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}), z = { class: "inline-flex" }, E = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer" }, H = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, N = { class: "relative" }, A = { class: "sticky top-0 py-8 bg-white translate-y-[-12px]" }, L = /* @__PURE__ */ f({
|
|
44
|
+
__name: "RestaurantSelector",
|
|
45
|
+
setup(v) {
|
|
46
|
+
const t = $(""), n = B(), { t: m } = I(), d = g(() => {
|
|
47
|
+
const e = n.currentRestaurant.value;
|
|
48
|
+
return (e == null ? void 0 : e.profile.name) + " (" + ((e == null ? void 0 : e.profile.code) ?? "--") + ")";
|
|
49
|
+
}), i = g(() => n.restaurants.value.filter((e) => e.managable).filter((e) => {
|
|
50
|
+
if (!t.value)
|
|
51
|
+
return !0;
|
|
52
|
+
const s = new RegExp(t.value, "i"), u = JSON.stringify(e.profile);
|
|
53
|
+
return s.test(u);
|
|
54
|
+
}).map((e) => ({
|
|
55
|
+
label: `${e.profile.name} (${e.profile.code ?? "--"})`,
|
|
56
|
+
key: e._id,
|
|
57
|
+
value: e
|
|
58
|
+
})));
|
|
59
|
+
return (e, s) => {
|
|
60
|
+
const u = a("FmIcon"), b = a("FmSearch"), h = a("FmMenuItem"), F = a("FmMenu");
|
|
61
|
+
return r(), p("div", z, [
|
|
62
|
+
l(F, { "close-on-click": !0 }, {
|
|
63
|
+
"menu-button": _(() => [
|
|
64
|
+
o("div", E, [
|
|
65
|
+
l(u, {
|
|
66
|
+
name: "store",
|
|
67
|
+
size: "sm"
|
|
68
|
+
}),
|
|
69
|
+
o("div", H, w(d.value), 1),
|
|
70
|
+
l(u, {
|
|
71
|
+
name: "expand_more",
|
|
72
|
+
size: "sm"
|
|
73
|
+
})
|
|
74
|
+
])
|
|
75
|
+
]),
|
|
76
|
+
default: _(() => [
|
|
77
|
+
o("div", N, [
|
|
78
|
+
o("div", A, [
|
|
79
|
+
l(b, {
|
|
80
|
+
"model-value": t.value,
|
|
81
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => t.value = c),
|
|
82
|
+
placeholder: k(m)("payment.components.select")
|
|
83
|
+
}, null, 8, ["model-value", "placeholder"])
|
|
84
|
+
]),
|
|
85
|
+
o("div", null, [
|
|
86
|
+
(r(!0), p(S, null, x(i.value, (c) => (r(), y(h, {
|
|
87
|
+
key: c.key,
|
|
88
|
+
label: c.label,
|
|
89
|
+
sublabel: "Restaurant",
|
|
90
|
+
onClick: () => k(n).changeRestaurant(c.value)
|
|
91
|
+
}, null, 8, ["label", "onClick"]))), 128))
|
|
92
|
+
])
|
|
93
|
+
])
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
})
|
|
97
|
+
]);
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
}), R = { class: "flex justify-left items-center mb-6" }, U = /* @__PURE__ */ f({
|
|
101
|
+
__name: "Application",
|
|
102
|
+
setup(v) {
|
|
103
|
+
return (t, n) => (r(), y(j, {
|
|
104
|
+
title: "Application",
|
|
105
|
+
loading: !1
|
|
106
|
+
}, {
|
|
107
|
+
default: _(() => [
|
|
108
|
+
o("div", R, [
|
|
109
|
+
l(L)
|
|
110
|
+
]),
|
|
111
|
+
n[0] || (n[0] = o("p", null, "Hehe Coming really soon.", -1))
|
|
112
|
+
]),
|
|
113
|
+
_: 1
|
|
114
|
+
}));
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
export {
|
|
118
|
+
U as default
|
|
119
|
+
};
|
package/dist/app.js
CHANGED
|
@@ -24,7 +24,7 @@ const Ln = {
|
|
|
24
24
|
{
|
|
25
25
|
path: "/application",
|
|
26
26
|
name: "mf-financing-application",
|
|
27
|
-
component: () => import("./Application-
|
|
27
|
+
component: () => import("./Application-BULHvQmM.js"),
|
|
28
28
|
meta: {
|
|
29
29
|
sidebarDisplay: "i18n:financing.routes.application"
|
|
30
30
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
2
|
export default _default;
|