@feedmepos/mf-brand-app-builder 0.5.14-alpha.5 → 0.5.14
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-DZzvEb1n.js +101 -0
- package/dist/{AssetsSettings-5n_2qRjG.js → AssetsSettings-BNqB22rl.js} +102 -91
- package/dist/BuilderView-CdxiU_5V.js +5498 -0
- package/dist/ColorPicker-Bz8yOMlS.js +22 -0
- package/dist/{ImageUpload-DvKlHwuV.js → ImageUpload-Cpkzp4iS.js} +16 -16
- package/dist/{LinkButton-B7xgRAIw.js → LinkButton-D0MS93kZ.js} +44 -44
- package/dist/{ListRepeater-BzQ8mXTq.js → ListRepeater-B_aON8eJ.js} +1 -1
- package/dist/{ManagementSettings-Bh-VD7aw.js → ManagementSettings-ljpWqE-1.js} +57 -74
- package/dist/StepperField-xVvcmxNx.js +29 -0
- package/dist/{app-Bo6B3rU3.js → app-BSofsfPH.js} +72 -131
- package/dist/app.js +1 -1
- package/dist/components/src/components/Homepage.vue.d.ts +0 -2
- package/dist/components/src/components/atoms/Container.vue.d.ts +0 -1
- package/dist/components/src/main.d.ts +1 -10
- package/dist/{image-CgXjWyqN.js → image-Dm7AsBZX.js} +8 -8
- package/dist/{index-BakrTyC_.js → index-B0O5NxWl.js} +1 -2
- package/dist/{index-DKsLsGlf.js → index-BZ63ygCw.js} +1 -1
- package/dist/{vue-sonner-CBFYmm8_.js → index-CAfpg2Eg.js} +326 -256
- package/dist/index-CJXFGv-u.js +188 -0
- package/dist/main-BnnUrWK-.js +6725 -0
- package/dist/merchant/src/api/template/index.d.ts +2 -2
- package/dist/merchant/src/app.d.ts +1 -1
- package/dist/merchant/src/components/inputs/ColorPicker.vue.d.ts +0 -1
- package/dist/merchant/src/composables/useNode/index.d.ts +1 -1
- package/dist/merchant/src/node-configs/branch-list/props.d.ts +0 -1
- package/dist/merchant/src/node-configs/button-list/props.d.ts +0 -1
- package/dist/merchant/src/node-configs/carousel/props.d.ts +0 -1
- package/dist/merchant/src/node-configs/container/props.d.ts +0 -28
- package/dist/merchant/src/node-configs/display-image/props.d.ts +0 -1
- package/dist/merchant/src/node-configs/display-text/props.d.ts +0 -1
- package/dist/merchant/src/node-configs/member-card/props.d.ts +0 -1
- package/dist/merchant/src/node-configs/mock-data.d.ts +1 -5
- package/dist/merchant/src/node-configs/order-history-card/props.d.ts +0 -1
- package/dist/merchant/src/node-configs/order-method/props.d.ts +0 -1
- package/dist/merchant/src/node-configs/props.d.ts +1 -9
- package/dist/merchant/src/node-configs/schema.d.ts +1 -9
- package/dist/merchant/src/stores/editor/index.d.ts +1 -1
- package/dist/merchant/src/stores/template/index.d.ts +9 -88
- package/dist/package.json +2 -5
- package/dist/style.css +1 -1
- package/package.json +2 -5
- package/dist/App-CUirOWJD.js +0 -109
- package/dist/BaDivider-Cp9gfB4r.js +0 -10
- package/dist/BuilderView-BvpHVeY0.js +0 -9317
- package/dist/ColorPicker-CD7uePb_.js +0 -590
- package/dist/ProjectView-CFmp5F_4.js +0 -680
- package/dist/StepperField-nyaUK9ht.js +0 -30
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/components/src/components/Member/MemberAchievements.vue.d.ts +0 -33
- package/dist/components/src/components/Member/MemberButtonList.vue.d.ts +0 -21
- package/dist/components/src/components/Member/MemberCards.vue.d.ts +0 -19
- package/dist/components/src/components/Member/MemberSummary.vue.d.ts +0 -24
- package/dist/components/src/components/Member/TransactionList.vue.d.ts +0 -5
- package/dist/components/src/components/NavigationBar.vue.d.ts +0 -17
- package/dist/components/src/utils/date.d.ts +0 -22
- package/dist/components/src/views/_Credit.vue.d.ts +0 -20
- package/dist/components/src/views/_MemberProfile.vue.d.ts +0 -46
- package/dist/components/src/views/_Point.vue.d.ts +0 -20
- package/dist/components/src/views/_Referral.vue.d.ts +0 -31
- package/dist/components/src/views/_ReferralTutorial.vue.d.ts +0 -23
- package/dist/index-BAS2oeyj.js +0 -198
- package/dist/index-XrsRjG_o.js +0 -73
- package/dist/main-B7vr23OR.js +0 -7982
- package/dist/merchant/src/components/template/TemplatePreview.vue.d.ts +0 -8
- package/dist/merchant/src/node-configs/member-achievements/mock-data.d.ts +0 -15
- package/dist/merchant/src/node-configs/member-achievements/props.d.ts +0 -40
- package/dist/merchant/src/node-configs/member-achievements/schema.d.ts +0 -2
- package/dist/merchant/src/node-configs/member-button-list/props.d.ts +0 -31
- package/dist/merchant/src/node-configs/member-button-list/schema.d.ts +0 -2
- package/dist/merchant/src/node-configs/member-cards/mock-data.d.ts +0 -3
- package/dist/merchant/src/node-configs/member-cards/props.d.ts +0 -24
- package/dist/merchant/src/node-configs/member-cards/schema.d.ts +0 -2
- package/dist/merchant/src/node-configs/member-history/mock-data.d.ts +0 -843
- package/dist/merchant/src/node-configs/member-history/props.d.ts +0 -1692
- package/dist/merchant/src/node-configs/member-history/schema.d.ts +0 -3
- package/dist/merchant/src/node-configs/member-profile/props.d.ts +0 -449
- package/dist/merchant/src/node-configs/member-profile/schema.d.ts +0 -2
- package/dist/merchant/src/node-configs/member-referral/props.d.ts +0 -98
- package/dist/merchant/src/node-configs/member-referral/schema.d.ts +0 -2
- package/dist/merchant/src/node-configs/member-referral-tutorial/props.d.ts +0 -8
- package/dist/merchant/src/node-configs/member-referral-tutorial/schema.d.ts +0 -2
- package/dist/merchant/src/node-configs/member-summary/mock-data.d.ts +0 -9
- package/dist/merchant/src/node-configs/member-summary/props.d.ts +0 -32
- package/dist/merchant/src/node-configs/member-summary/schema.d.ts +0 -2
- package/dist/merchant/src/views/ProjectView.vue.d.ts +0 -2
- package/dist/merchant/src/views/views.d.ts +0 -101
- package/dist/views-BDWw3w14.js +0 -119
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { defineComponent as d, computed as v, resolveComponent as u, createElementBlock as m, openBlock as l, Fragment as f, renderList as w, createVNode as r, unref as p, withCtx as _, ref as x, onMounted as b, onBeforeMount as y, watch as B, createElementVNode as c, createBlock as k, createCommentVNode as S } from "vue";
|
|
2
|
+
import { useCoreStore as C } from "@feedmepos/mf-common";
|
|
3
|
+
import { V as F } from "./index-CAfpg2Eg.js";
|
|
4
|
+
import { useRoute as R, RouterLink as V, RouterView as L } from "vue-router";
|
|
5
|
+
import { g as P } from "./index-B0O5NxWl.js";
|
|
6
|
+
import { u as A } from "./index-BZ63ygCw.js";
|
|
7
|
+
const N = { class: "shrink-0 w-64 h-full bg-fm-color-neutral-white border-r border-fm-color-neutral-gray-100 p-[10px] flex flex-col gap-12" }, $ = /* @__PURE__ */ d({
|
|
8
|
+
__name: "NavigationSidebar",
|
|
9
|
+
setup(g) {
|
|
10
|
+
const e = R(), i = [
|
|
11
|
+
// {
|
|
12
|
+
// name: 'home',
|
|
13
|
+
// icon: 'style',
|
|
14
|
+
// },
|
|
15
|
+
{
|
|
16
|
+
name: "builder",
|
|
17
|
+
icon: "build"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "settings",
|
|
21
|
+
icon: "settings"
|
|
22
|
+
}
|
|
23
|
+
], t = v(
|
|
24
|
+
() => (s) => e.matched.map((o) => o.name).includes(s)
|
|
25
|
+
);
|
|
26
|
+
return (s, o) => {
|
|
27
|
+
const a = u("FmButton");
|
|
28
|
+
return l(), m("div", N, [
|
|
29
|
+
(l(), m(f, null, w(i, (n) => r(p(V), {
|
|
30
|
+
to: { name: n.name }
|
|
31
|
+
}, {
|
|
32
|
+
default: _(() => [
|
|
33
|
+
r(a, {
|
|
34
|
+
class: "w-[44px] !h-[44px]",
|
|
35
|
+
size: "lg",
|
|
36
|
+
icon: n.icon,
|
|
37
|
+
"icon-color": t.value(n.name) ? "primary" : "neutral-gray-400",
|
|
38
|
+
"bg-color": t.value(n.name) ? "system-warning-100" : "neutral-white"
|
|
39
|
+
}, null, 8, ["icon", "icon-color", "bg-color"])
|
|
40
|
+
]),
|
|
41
|
+
_: 2
|
|
42
|
+
}, 1032, ["to"])), 64))
|
|
43
|
+
]);
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}), z = { class: "relative h-[calc(100vh-56px)] w-screen" }, M = { class: "flex w-full h-full" }, j = /* @__PURE__ */ d({
|
|
47
|
+
__name: "App",
|
|
48
|
+
setup(g) {
|
|
49
|
+
const e = C(), i = A(), t = x(!0);
|
|
50
|
+
async function s() {
|
|
51
|
+
var o;
|
|
52
|
+
t.value = !0, (o = e.currentBusiness.value) != null && o._id && (await P(), await i.getPremiumStatus(e.currentBusiness.value._id), t.value = !1);
|
|
53
|
+
}
|
|
54
|
+
return b(async () => {
|
|
55
|
+
console.log(
|
|
56
|
+
`Running v0.5.14 on ${e.namespace.value}`
|
|
57
|
+
), e.hideSidebar.value = !0;
|
|
58
|
+
}), y(() => {
|
|
59
|
+
e.hideSidebar.value = !1;
|
|
60
|
+
}), B(
|
|
61
|
+
() => e.currentBusiness.value,
|
|
62
|
+
() => s(),
|
|
63
|
+
{ immediate: !0 }
|
|
64
|
+
), (o, a) => {
|
|
65
|
+
const n = u("FmCircularProgress"), h = u("FmOverlay");
|
|
66
|
+
return l(), m(f, null, [
|
|
67
|
+
a[0] || (a[0] = c("link", {
|
|
68
|
+
href: "https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0..1,0",
|
|
69
|
+
rel: "stylesheet"
|
|
70
|
+
}, null, -1)),
|
|
71
|
+
c("div", z, [
|
|
72
|
+
r(p(F), {
|
|
73
|
+
position: "top-right",
|
|
74
|
+
"rich-colors": "",
|
|
75
|
+
"close-button": "",
|
|
76
|
+
duration: 3e3
|
|
77
|
+
}),
|
|
78
|
+
t.value ? (l(), k(h, {
|
|
79
|
+
key: 0,
|
|
80
|
+
"dismiss-away": !1,
|
|
81
|
+
"prevent-backdrop-event": !1,
|
|
82
|
+
transparent: !1,
|
|
83
|
+
"center-content": ""
|
|
84
|
+
}, {
|
|
85
|
+
default: _(() => [
|
|
86
|
+
r(n, { size: "xxl" })
|
|
87
|
+
]),
|
|
88
|
+
_: 1
|
|
89
|
+
})) : S("", !0),
|
|
90
|
+
c("div", M, [
|
|
91
|
+
r($),
|
|
92
|
+
r(p(L), { class: "flex-1" })
|
|
93
|
+
])
|
|
94
|
+
])
|
|
95
|
+
], 64);
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
export {
|
|
100
|
+
j as default
|
|
101
|
+
};
|