@feedmepos/mf-settings 0.0.62-prod → 0.0.63-prod

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-settings",
3
- "version": "0.0.62-prod",
3
+ "version": "0.0.63-prod",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -43,7 +43,7 @@
43
43
  "vue-pdf-embed": "2.1.0",
44
44
  "vue-router": "^4.2.5",
45
45
  "vuedraggable": "^4.1.0",
46
- "@feedmepos/mf-common": "^1.26.9-beta.1"
46
+ "@feedmepos/mf-common": "^1.26.10"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@rushstack/eslint-patch": "^1.3.3",
@@ -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,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;