@feedmepos/mf-settings 0.0.48-beta.0-ex → 0.0.48-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.
Files changed (29) hide show
  1. package/dist/App-15361c1a.js +4352 -0
  2. package/dist/Business-1564c1b4.js +3893 -0
  3. package/dist/{CreateBusiness-e05859f6.js → CreateBusiness-138ac258.js} +12 -15
  4. package/dist/FoodCourt-561cd7e3.js +47798 -0
  5. package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-977372d5.js +395 -0
  6. package/dist/Tagging-9126557f.js +6680 -0
  7. package/dist/actionButton-cc6bcf01.js +66 -0
  8. package/dist/app-ce0bb813.js +782 -0
  9. package/dist/app.js +6 -11
  10. package/dist/apps/mf-settings/src/app.d.ts +1 -2
  11. package/dist/apps/mf-settings/src/components/business/RestaurantForm.vue.d.ts +1 -1
  12. package/dist/apps/mf-settings/src/components/tagging/TaggingForm.vue.d.ts +3 -3
  13. package/dist/apps/mf-settings/src/init.d.ts +1 -0
  14. package/dist/apps/mf-settings/src/store/attributeSettings.d.ts +15 -15
  15. package/dist/apps/mf-settings/tsconfig.app.tsbuildinfo +1 -1
  16. package/dist/business-9a4e5bd7.js +31 -0
  17. package/dist/createForm-681e977a.js +64 -0
  18. package/dist/index-1eb3cc0a.js +17754 -0
  19. package/dist/index-f1e5e565.js +10903 -0
  20. package/dist/index.esm2017-c60b1ce5.js +3147 -0
  21. package/dist/loading-84215dce.js +2385 -0
  22. package/dist/packages/shared/src/components/form/ImageDropField.vue.d.ts +1 -1
  23. package/dist/packages/shared/src/components/loading/PageLoading.vue.d.ts +2 -0
  24. package/dist/packages/shared/src/components/loading/index.d.ts +1 -0
  25. package/package.json +3 -3
  26. package/dist/Business-c2cc9ee7.js +0 -4182
  27. package/dist/FoodCourt-b9e42611.js +0 -12454
  28. package/dist/ResponsiveFabButton.vue_vue_type_script_setup_true_lang-65f62fbb.js +0 -101
  29. package/dist/app-29117ada.js +0 -17441
@@ -1,101 +0,0 @@
1
- import { defineComponent as v, mergeModels as g, useModel as B, computed as i, watchEffect as F, resolveComponent as c, openBlock as u, createBlock as m, withCtx as d, createVNode as f, createElementBlock as _, Fragment as x, renderList as h, normalizeProps as w, mergeProps as b } from "vue";
2
- import { useCoreStore as M } from "@feedmepos/mf-common";
3
- import { useSnackbar as I, useBreakpoints as S } from "@feedmepos/ui-library";
4
- const P = /* @__PURE__ */ v({
5
- __name: "RestaurantSelector",
6
- props: /* @__PURE__ */ g({
7
- managableOnly: { type: Boolean, default: !1 },
8
- excludeRestaurants: {},
9
- label: {},
10
- autoSelectFirst: { type: Boolean, default: !1 }
11
- }, {
12
- modelValue: {},
13
- modelModifiers: {}
14
- }),
15
- emits: ["update:modelValue"],
16
- setup(l) {
17
- const t = l, a = B(l, "modelValue"), { restaurants: r } = M(), s = i(() => {
18
- var e;
19
- return ((e = o.value.find((n) => n.value === a.value)) == null ? void 0 : e.label) || "Select restaurant";
20
- }), o = i(
21
- () => r.value.filter((e) => t.managableOnly ? e.managable : !0).map((e) => ({
22
- label: e.profile.name,
23
- value: e._id
24
- })).filter((e) => {
25
- var n;
26
- return !((n = t.excludeRestaurants) != null && n.includes(e.value));
27
- })
28
- );
29
- return F(() => {
30
- t.autoSelectFirst && o.value.length > 0 && (a.value = o.value[0].value);
31
- }), (e, n) => {
32
- const y = c("FmChip"), C = c("FmMenuItem"), k = c("FmMenu");
33
- return u(), m(k, null, {
34
- "menu-button": d(() => [
35
- f(y, {
36
- icon: "storefront",
37
- label: s.value,
38
- "right-icon": "keyboard_arrow_down"
39
- }, null, 8, ["label"])
40
- ]),
41
- default: d(() => [
42
- (u(!0), _(x, null, h(o.value, (p) => (u(), m(C, {
43
- key: p.value,
44
- label: p.label,
45
- onClick: (T) => a.value = p.value
46
- }, null, 8, ["label", "onClick"]))), 128))
47
- ]),
48
- _: 1
49
- });
50
- };
51
- }
52
- });
53
- function E() {
54
- const l = I();
55
- return { copyTextToClipboard: async (a, r = "Copied") => {
56
- const s = "text/plain", o = new Blob([a], { type: s }), e = [new ClipboardItem({ [s]: o })];
57
- await navigator.clipboard.write(e), r && l.open({
58
- title: r,
59
- message: a,
60
- type: "success"
61
- });
62
- } };
63
- }
64
- const R = {
65
- key: 1,
66
- class: "z-10 fixed bottom-72 right-16"
67
- }, L = /* @__PURE__ */ v({
68
- __name: "ResponsiveFabButton",
69
- props: {
70
- variant: {},
71
- label: {},
72
- icon: {},
73
- size: {},
74
- disabled: { type: Boolean },
75
- iconColor: {},
76
- borderColor: {},
77
- textColor: {},
78
- bgColor: {},
79
- type: {},
80
- iconPosition: {},
81
- prependIcon: {},
82
- appendIcon: {},
83
- loading: { type: Boolean },
84
- disableIconStatus: { type: Boolean },
85
- overwriteIconOutline: {}
86
- },
87
- setup(l) {
88
- const t = l, a = i(() => t.variant === "primary" || !t.variant ? "fab" : t.variant), r = S(), s = i(() => r.breakpoints.value.xs);
89
- return (o, e) => {
90
- const n = c("FmButton");
91
- return s.value ? (u(), _("div", R, [
92
- f(n, b(t, { variant: a.value }), null, 16, ["variant"])
93
- ])) : (u(), m(n, w(b({ key: 0 }, t)), null, 16));
94
- };
95
- }
96
- });
97
- export {
98
- P as _,
99
- L as a,
100
- E as u
101
- };