@feedmepos/mf-settings 0.0.48-beta.0-ex → 0.0.48-beta.1-ex
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 +4351 -0
- package/dist/{Business-c2cc9ee7.js → Business-2da2ffc4.js} +237 -238
- package/dist/{CreateBusiness-e05859f6.js → CreateBusiness-fc4661b1.js} +11 -14
- package/dist/{FoodCourt-b9e42611.js → FoodCourt-17a5dadd.js} +4 -7
- package/dist/Tagging-0a2c6a6b.js +6694 -0
- package/dist/actionButton-6b6e9e60.js +88 -0
- package/dist/app.js +719 -14
- package/dist/apps/mf-settings/src/app.d.ts +1 -2
- package/dist/apps/mf-settings/src/components/business/RestaurantForm.vue.d.ts +1 -1
- package/dist/apps/mf-settings/src/components/tagging/TaggingForm.vue.d.ts +3 -3
- package/dist/apps/mf-settings/src/init.d.ts +1 -0
- 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-8b22c801.js +31 -0
- package/dist/createForm-ad247a74.js +92 -0
- package/dist/index.esm2017-c60b1ce5.js +3147 -0
- package/dist/loading-eb019aa4.js +2385 -0
- package/package.json +3 -3
- package/dist/app-29117ada.js +0 -17441
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
};
|