@feedmepos/mf-settings 0.0.62-prod → 0.0.63-beta.1

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.
@@ -1,88 +0,0 @@
1
- import { defineComponent as b, computed as s, resolveComponent as u, openBlock as l, createBlock as p, normalizeProps as C, mergeProps as d, createElementBlock as _, createVNode as f, mergeModels as F, useModel as g, watchEffect as h, withCtx as v, Fragment as x, renderList as M } from "vue";
2
- import { useBreakpoints as I } from "@feedmepos/ui-library";
3
- import { useCoreStore as S } from "@feedmepos/mf-common";
4
- const w = {
5
- key: 1,
6
- class: "z-10 fixed bottom-72 right-16"
7
- }, P = /* @__PURE__ */ b({
8
- __name: "ResponsiveFabButton",
9
- props: {
10
- variant: {},
11
- label: {},
12
- icon: {},
13
- size: {},
14
- disabled: { type: Boolean },
15
- iconColor: {},
16
- borderColor: {},
17
- textColor: {},
18
- bgColor: {},
19
- type: {},
20
- iconPosition: {},
21
- prependIcon: {},
22
- appendIcon: {},
23
- loading: { type: Boolean },
24
- disableIconStatus: { type: Boolean },
25
- overwriteIconOutline: {}
26
- },
27
- setup(r) {
28
- const t = r, a = s(() => t.variant === "primary" || !t.variant ? "fab" : t.variant), i = I(), c = s(() => i.breakpoints.value.xs);
29
- return (o, e) => {
30
- const n = u("FmButton");
31
- return c.value ? (l(), _("div", w, [
32
- f(n, d(t, { variant: a.value }), null, 16, ["variant"])
33
- ])) : (l(), p(n, C(d({ key: 0 }, t)), null, 16));
34
- };
35
- }
36
- }), E = /* @__PURE__ */ b({
37
- __name: "RestaurantSelector",
38
- props: /* @__PURE__ */ F({
39
- managableOnly: { type: Boolean, default: !1 },
40
- excludeRestaurants: {},
41
- label: {},
42
- autoSelectFirst: { type: Boolean, default: !1 }
43
- }, {
44
- modelValue: {},
45
- modelModifiers: {}
46
- }),
47
- emits: ["update:modelValue"],
48
- setup(r) {
49
- const t = r, a = g(r, "modelValue"), { restaurants: i } = S(), c = s(() => {
50
- var e;
51
- return ((e = o.value.find((n) => n.value === a.value)) == null ? void 0 : e.label) || "Select restaurant";
52
- }), o = s(
53
- () => i.value.filter((e) => t.managableOnly ? e.managable : !0).map((e) => ({
54
- label: e.profile.name,
55
- value: e._id
56
- })).filter((e) => {
57
- var n;
58
- return !((n = t.excludeRestaurants) != null && n.includes(e.value));
59
- })
60
- );
61
- return h(() => {
62
- t.autoSelectFirst && o.value.length > 0 && (a.value = o.value[0].value);
63
- }), (e, n) => {
64
- const y = u("FmChip"), k = u("FmMenuItem"), B = u("FmMenu");
65
- return l(), p(B, null, {
66
- "menu-button": v(() => [
67
- f(y, {
68
- icon: "storefront",
69
- label: c.value,
70
- "right-icon": "keyboard_arrow_down"
71
- }, null, 8, ["label"])
72
- ]),
73
- default: v(() => [
74
- (l(!0), _(x, null, M(o.value, (m) => (l(), p(k, {
75
- key: m.value,
76
- label: m.label,
77
- onClick: (R) => a.value = m.value
78
- }, null, 8, ["label", "onClick"]))), 128))
79
- ]),
80
- _: 1
81
- });
82
- };
83
- }
84
- });
85
- export {
86
- P as _,
87
- E as a
88
- };
@@ -1,27 +0,0 @@
1
- import { defineComponent as o, computed as n, resolveComponent as d, openBlock as s, createElementBlock as c, createVNode as m } from "vue";
2
- import { useCoreStore as u, FeedMeAuth as i } from "@feedmepos/mf-common";
3
- const l = {
4
- key: 0,
5
- class: "w-full h-full flex items-center justify-center"
6
- }, p = ["src"], h = /* @__PURE__ */ o({
7
- __name: "TemplateBuilder",
8
- setup(f) {
9
- const e = u(), t = n(() => {
10
- var r;
11
- return e.currentBusiness.value ? `https://print-template-builder.feedme.cc//#/receipt-info?businessId=${(r = e.currentBusiness.value) == null ? void 0 : r.id}&country=${e.currentCountry.value}&token=${i.token}` : "";
12
- });
13
- return (r, b) => {
14
- const a = d("FmCircularProgress");
15
- return t.value ? (s(), c("iframe", {
16
- key: 1,
17
- class: "w-full h-full",
18
- src: t.value
19
- }, null, 8, p)) : (s(), c("div", l, [
20
- m(a, { size: "lg" })
21
- ]));
22
- };
23
- }
24
- });
25
- export {
26
- h as default
27
- };
@@ -1,37 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- modelValue: import("vue").PropType<string>;
3
- label: {
4
- type: import("vue").PropType<string>;
5
- };
6
- managableOnly: {
7
- type: import("vue").PropType<boolean>;
8
- default: boolean;
9
- };
10
- excludeRestaurants: {
11
- type: import("vue").PropType<string[]>;
12
- };
13
- autoSelectFirst: {
14
- type: import("vue").PropType<boolean>;
15
- default: boolean;
16
- };
17
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
- modelValue: import("vue").PropType<string>;
19
- label: {
20
- type: import("vue").PropType<string>;
21
- };
22
- managableOnly: {
23
- type: import("vue").PropType<boolean>;
24
- default: boolean;
25
- };
26
- excludeRestaurants: {
27
- type: import("vue").PropType<string[]>;
28
- };
29
- autoSelectFirst: {
30
- type: import("vue").PropType<boolean>;
31
- default: boolean;
32
- };
33
- }>> & Readonly<{}>, {
34
- managableOnly: boolean;
35
- autoSelectFirst: boolean;
36
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
37
- export default _default;
@@ -1,22 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- modelValue: import("vue").PropType<string[]>;
3
- managableOnly: {
4
- type: import("vue").PropType<boolean>;
5
- default: boolean;
6
- };
7
- excludeRestaurants: {
8
- type: import("vue").PropType<string[]>;
9
- };
10
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
- modelValue: import("vue").PropType<string[]>;
12
- managableOnly: {
13
- type: import("vue").PropType<boolean>;
14
- default: boolean;
15
- };
16
- excludeRestaurants: {
17
- type: import("vue").PropType<string[]>;
18
- };
19
- }>> & Readonly<{}>, {
20
- managableOnly: boolean;
21
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
22
- export default _default;