@feedmepos/mf-brand-app-builder 0.5.19-dev.1 → 0.5.19-dev.4

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.
Files changed (36) hide show
  1. package/README.md +37 -18
  2. package/dist/{App-djqaTpJK.js → App-DVLHiNG9.js} +3 -3
  3. package/dist/{AssetsSettings-DlxVE_kh.js → AssetsSettings-BvM-SP-0.js} +141 -140
  4. package/dist/{BrandkitView-okuZYwD5.js → BrandkitView-CblefL8X.js} +2614 -1739
  5. package/dist/{BuilderView-BYnQdLnw.js → BuilderView--q-5hMi3.js} +4043 -2393
  6. package/dist/ButtonGroup-Bj4keKPr.js +29 -0
  7. package/dist/{ColorPicker-BsSFgHSF.js → ColorPicker-I6CkNIxt.js} +50 -47
  8. package/dist/{ImageUpload-hoE0aTOn.js → ImageUpload-BjpONdvQ.js} +2 -2
  9. package/dist/{LinkButton-BGVmggik.js → LinkButton-DKtZH2cU.js} +1 -1
  10. package/dist/{ListRepeater-DCqV0LTM.js → ListRepeater-D4MyXNOt.js} +1 -1
  11. package/dist/{ManagementSettings-CuQCt7cj.js → ManagementSettings-DPBoHGLa.js} +73 -72
  12. package/dist/{ProjectView-D9Nlnspn.js → ProjectView-Crd-APxa.js} +393 -367
  13. package/dist/Select-DnIKki3a.js +95 -0
  14. package/dist/SettingsView-Cm0hTMsz.js +34 -0
  15. package/dist/app-BfAfuAYv.js +8693 -0
  16. package/dist/app.js +5 -4
  17. package/dist/client/components/src/views/_Credit.vue.d.ts +4 -0
  18. package/dist/client/components/src/views/_MemberProfile.vue.d.ts +5 -17
  19. package/dist/client/components/src/views/_Point.vue.d.ts +4 -0
  20. package/dist/client/merchant/src/app.d.ts +1544 -1
  21. package/dist/client/merchant/src/components/element-sidebar/ElementSidebar.vue.d.ts +1 -1
  22. package/dist/client/merchant/src/plugin/formkit-i18n.d.ts +2 -0
  23. package/dist/client/merchant/src/plugin/i18n.d.ts +2 -0
  24. package/dist/{image-Bi_ML0ft.js → image-CBUD2SnK.js} +1 -1
  25. package/dist/{index-D9RorkCV.js → index-B029PiqU.js} +1 -1
  26. package/dist/{index-nYUFS3mj.js → index-BNtn5C9X.js} +1 -1
  27. package/dist/{index-BxfIC7wL.js → index-Bzf4Ev8B.js} +1 -1
  28. package/dist/{index-aAXVQp3l.js → index-CHLideqw.js} +1 -1
  29. package/dist/{main-pKSbpQEA.js → main-DBrQC_KK.js} +968 -939
  30. package/dist/package.json +4 -2
  31. package/dist/style.css +1 -1
  32. package/package.json +4 -2
  33. package/dist/ButtonGroup-B3ba45VA.js +0 -25
  34. package/dist/Select-DQrjO2Su.js +0 -91
  35. package/dist/SettingsView-DFAxZPug.js +0 -33
  36. package/dist/app-CAYGmzf1.js +0 -4757
@@ -0,0 +1,95 @@
1
+ import { defineComponent as F, ref as y, computed as h, onMounted as I, resolveComponent as p, openBlock as n, createBlock as d, withCtx as v, createVNode as x, createElementVNode as B, createElementBlock as r, toDisplayString as _, createCommentVNode as c, Fragment as N, renderList as V, normalizeClass as z, createTextVNode as P } from "vue";
2
+ import { u as S } from "./app-BfAfuAYv.js";
3
+ const $ = { class: "min-w-[100px] w-full flex items-center justify-between" }, j = ["value"], E = {
4
+ key: 1,
5
+ class: "h-full fm-typo-en-body-lg-400 text-fm-color-typo-primary select-none cursor-pointer"
6
+ }, q = {
7
+ key: 0,
8
+ class: "flex flex-col gap-4 px-8 py-12 min-w-[150px] bg-white rounded-md"
9
+ }, D = ["onClick"], O = /* @__PURE__ */ F({
10
+ __name: "Select",
11
+ props: {
12
+ context: {}
13
+ },
14
+ setup(b) {
15
+ const u = b, { t: g } = S(), s = y(!1), l = y(!1), i = h(() => (u.context.selectItems ?? []).map((e) => ({
16
+ ...e,
17
+ label: g(e.label)
18
+ })));
19
+ function m(e) {
20
+ s.value = !1, u.context.node.input(e);
21
+ }
22
+ return I(() => {
23
+ u.context._value && (i.value.find(
24
+ (t) => t.value === u.context._value
25
+ ) || (l.value = !0));
26
+ }), (e, t) => {
27
+ const f = p("FmIcon"), k = p("FmButton"), w = p("FmField"), C = p("FmPopover");
28
+ return n(), d(C, {
29
+ "show-popover": s.value,
30
+ onPopoverChanged: t[3] || (t[3] = (o) => s.value = o)
31
+ }, {
32
+ "popover-button": v(() => [
33
+ x(w, {
34
+ size: "sm",
35
+ class: "hover:!border-fm-color-neutral-gray-200"
36
+ }, {
37
+ default: v(() => {
38
+ var o;
39
+ return [
40
+ B("div", $, [
41
+ l.value ? (n(), r("input", {
42
+ key: 0,
43
+ class: "fm-text-field--input fm-typo-en-body-lg-400 text-fm-color-typo-primary outline-none",
44
+ inputmode: "text",
45
+ placeholder: "",
46
+ type: "text",
47
+ value: e.context._value,
48
+ onChange: t[0] || (t[0] = (a) => m(a.target.value))
49
+ }, null, 40, j)) : (n(), r("div", E, _(((o = i.value.find((a) => a.value === e.context._value)) == null ? void 0 : o.label) || e.context._value), 1)),
50
+ l.value ? c("", !0) : (n(), d(f, {
51
+ key: 2,
52
+ outline: "",
53
+ name: s.value ? "keyboard_arrow_up" : "keyboard_arrow_down"
54
+ }, null, 8, ["name"])),
55
+ l.value ? (n(), d(k, {
56
+ key: 3,
57
+ variant: "plain",
58
+ icon: "undo",
59
+ onClick: t[1] || (t[1] = (a) => (m(i.value[0].value), l.value = !1))
60
+ })) : c("", !0)
61
+ ])
62
+ ];
63
+ }),
64
+ _: 1
65
+ })
66
+ ]),
67
+ default: v(() => [
68
+ l.value ? c("", !0) : (n(), r("div", q, [
69
+ (n(!0), r(N, null, V(i.value, (o) => (n(), r("div", {
70
+ onClick: (a) => (m(o.value), l.value = !1),
71
+ class: z(["hover:bg-fm-color-neutral-gray-100 px-8 py-4 cursor-pointer rounded-sm w-full", {
72
+ "!bg-fm-color-system-warning-100": o.value === e.context._value
73
+ }])
74
+ }, _(o.label), 11, D))), 256)),
75
+ e.context.editable ? (n(), r("div", {
76
+ key: 0,
77
+ onClick: t[2] || (t[2] = (o) => (l.value = !0, m(e.context._value))),
78
+ class: "hover:bg-fm-color-neutral-gray-100 px-8 py-4 cursor-pointer rounded-sm flex items-center justify-between gap-4 text-fm-color-primary w-[150px]"
79
+ }, [
80
+ t[4] || (t[4] = P(" Customize ")),
81
+ x(f, {
82
+ outline: "",
83
+ name: "edit_square"
84
+ })
85
+ ])) : c("", !0)
86
+ ]))
87
+ ]),
88
+ _: 1
89
+ }, 8, ["show-popover"]);
90
+ };
91
+ }
92
+ });
93
+ export {
94
+ O as default
95
+ };
@@ -0,0 +1,34 @@
1
+ import { defineComponent as u, resolveComponent as i, openBlock as c, createElementBlock as p, createElementVNode as f, toDisplayString as d, unref as e, createVNode as s } from "vue";
2
+ import { useRoute as b, useRouter as g, RouterView as _ } from "vue-router";
3
+ import { u as v } from "./app-BfAfuAYv.js";
4
+ const w = { class: "h-full w-full p-24 bg-fm-color-neutral-white overflow-auto flex flex-col gap-24" }, h = { class: "fm-typo-en-title-md-600 text-fm-color-typo-primary" }, B = /* @__PURE__ */ u({
5
+ __name: "SettingsView",
6
+ setup(x) {
7
+ const n = b(), a = g(), { t } = v(), l = [
8
+ {
9
+ label: t("brand.settings.tabs.assets"),
10
+ value: "settings-assets"
11
+ },
12
+ {
13
+ label: t("brand.settings.tabs.management"),
14
+ value: "settings-management"
15
+ }
16
+ ];
17
+ return (y, o) => {
18
+ const r = i("FmTabs");
19
+ return c(), p("div", w, [
20
+ f("h1", h, d(e(t)("brand.settings.title")), 1),
21
+ s(r, {
22
+ class: "border-b border-fm-color-neutral-gray-100 w-full",
23
+ items: l,
24
+ "model-value": e(n).name,
25
+ "onUpdate:modelValue": o[0] || (o[0] = (m) => e(a).push({ name: m }))
26
+ }, null, 8, ["model-value"]),
27
+ s(e(_), { class: "w-fit" })
28
+ ]);
29
+ };
30
+ }
31
+ });
32
+ export {
33
+ B as default
34
+ };