@feedmepos/mf-menu 0.20.2-prod → 0.20.3

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 (54) hide show
  1. package/dist/App-DGK08eRV.js +18860 -0
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BR0tyj1e.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DY5ZAvXD.js} +10 -10
  3. package/dist/{ApplyProducts.vue_vue_type_script_setup_true_lang-CS5jZ10v.js → ApplyProducts.vue_vue_type_script_setup_true_lang-CTQXFXig.js} +2 -2
  4. package/dist/{Catalog-ChfYd5ti.js → Catalog-DDLkwHEl.js} +3 -3
  5. package/dist/{Category-D9RyJj_H.js → Category-Dvijo086.js} +6 -6
  6. package/dist/{CookingGuide-Dx15HnUJ.js → CookingGuide-CsE9_yha.js} +3 -3
  7. package/dist/{Group-DnLKrU8O.js → Group-BIQU7w0g.js} +1 -1
  8. package/dist/{Group-Bi5pIuo-.js → Group-CMMIHqaG.js} +6 -6
  9. package/dist/{Group.vue_vue_type_script_setup_true_lang-6CnMfg6V.js → Group.vue_vue_type_script_setup_true_lang-BTL9j3_B.js} +40 -40
  10. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CxWNtisO.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-pogjGaYM.js} +23 -23
  11. package/dist/{Ingredient-bRAhvspJ.js → Ingredient-m0hSAC1U.js} +15 -15
  12. package/dist/{LinkProductSideSheet-ARCMnzg0.js → LinkProductSideSheet-DfZrxiHw.js} +25 -24
  13. package/dist/{PrintRoute-Cj2CpIUZ.js → PrintRoute-iSOdrR8L.js} +27 -27
  14. package/dist/{Product-BW8bm-y8.js → Product-LV9usgIQ.js} +1 -1
  15. package/dist/{Product.vue_vue_type_script_setup_true_lang-DXAWFPal.js → Product.vue_vue_type_script_setup_true_lang-D2840VfX.js} +66 -66
  16. package/dist/{Products-GJ1fYNWv.js → Products-C3u76O52.js} +37 -37
  17. package/dist/{Publish-BoFgBWhu.js → Publish-_OkfKSnM.js} +39 -39
  18. package/dist/{Recipe-7FYyE7f3.js → Recipe-CB_uktjY.js} +4 -4
  19. package/dist/{Scheduler-DckZb3kE.js → Scheduler-DWIGrzZY.js} +2 -2
  20. package/dist/{SchedulerSelector.vue_vue_type_script_setup_true_lang-SI93VcSd.js → SchedulerSelector.vue_vue_type_script_setup_true_lang-BcruguLb.js} +1 -1
  21. package/dist/ServingSequence-Cq1ZZlrm.js +4 -0
  22. package/dist/{Setting-BhDHlNxV.js → Setting-N_eRQUsY.js} +1 -1
  23. package/dist/{Setting.vue_vue_type_script_setup_true_lang-DYEEfJ3O.js → Setting.vue_vue_type_script_setup_true_lang-WQ6hWgnm.js} +13 -13
  24. package/dist/{Takeaway-gwKz0UfW.js → Takeaway-DiOnksOz.js} +1 -1
  25. package/dist/{Takeaway-Ca5zwR46.js → Takeaway-NrqUpXFx.js} +9 -9
  26. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-dO6rD7A4.js → Takeaway.vue_vue_type_script_setup_true_lang-CHAbaRBT.js} +9 -9
  27. package/dist/{TaxSetting-wp3qYcZd.js → TaxSetting-V0dnzYo3.js} +6 -6
  28. package/dist/{Unit-CIySIISN.js → Unit-DOsZE2qJ.js} +15 -15
  29. package/dist/{Variant-BIHA0mS5.js → Variant-CYP1P6ns.js} +40 -40
  30. package/dist/{_id_-OYDy2hDm.js → _id_-B6Hne1hp.js} +34 -34
  31. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  32. package/dist/app-D2FqvCaC.js +127479 -0
  33. package/dist/app.js +4 -4
  34. package/dist/assets/{linked-status-NTK-mKny.js → linked-status-B-90MiJw.js} +4 -4
  35. package/dist/assets/{validate-menu-B0qfd_pR.js → validate-menu-C1LwcZzw.js} +8 -8
  36. package/dist/{catalog-DA59S1K1.js → catalog-Bq6JWNgk.js} +1 -1
  37. package/dist/{catalog-DEFSDlRZ.js → catalog-C8CFP-ny.js} +2403 -2403
  38. package/dist/{category-DmANWF_-.js → category-DJo3MbY6.js} +1 -1
  39. package/dist/{currency-2ixhQhct.js → currency-Ccc8KrCJ.js} +1 -1
  40. package/dist/{index-BQk7LnOr.js → index-BS64cx1H.js} +58 -58
  41. package/dist/{index-BkFctJwy.js → index-PJVryAUX.js} +43 -43
  42. package/dist/{item-BfLDwh_5.js → item-Dj35T3VU.js} +23 -21
  43. package/dist/{lodash-C1cV3B7u.js → lodash-MHSu1pkA.js} +1 -1
  44. package/dist/{menu-C1F28TL_.js → menu-CUXJ9cXY.js} +1 -1
  45. package/dist/{object-D6a8_l-h.js → object-BN9wCbKv.js} +1 -1
  46. package/dist/remy-BWBsUWuo.js +36 -0
  47. package/dist/{scheduler-CdDxeSSF.js → scheduler-DZwOVztH.js} +4 -4
  48. package/dist/style.css +1 -1
  49. package/dist/{takeaway-YC6D7J84.js → takeaway-PjB5BC80.js} +17 -17
  50. package/dist/{toExcel-C7ec1CP8.js → toExcel-D9nGg3_g.js} +2 -2
  51. package/dist/{unit-Ch9oSIKC.js → unit-97ZKmnbi.js} +11 -11
  52. package/package.json +2 -2
  53. package/dist/ServingSequence-DygT6rLK.js +0 -4
  54. package/dist/app-DLXBsyVX.js +0 -123184
@@ -1,13 +1,13 @@
1
1
  import { getCurrentInstance as $, defineComponent as A, computed as g, onMounted as O, h as E, resolveComponent as x, openBlock as m, createBlock as F, unref as e, withCtx as p, createVNode as i, withModifiers as V, createCommentVNode as R, createElementBlock as f, Fragment as C, createElementVNode as r, isRef as I, renderList as Y, normalizeClass as L, toDisplayString as w } from "vue";
2
- import { a as N, u as j, b as G, h as q, i as D, l as H, n as J, _ as Q, f as W, j as X, k as Z } from "./app-DLXBsyVX.js";
3
- import { useDialog as ee, useSnackbar as K, FmButtonVariant as M, components as ae, useBreakpoints as ne } from "@feedmepos/ui-library";
4
- import { V as S } from "./index-BkFctJwy.js";
2
+ import { b as N, u as D, f as q, k as G, l as K, p as H, q as J, _ as Q, i as W, n as X, o as Z } from "./app-D2FqvCaC.js";
3
+ import { useDialog as ee, useSnackbar as P, FmButtonVariant as M, components as ne, useBreakpoints as ae } from "@feedmepos/ui-library";
4
+ import { V as S } from "./index-PJVryAUX.js";
5
5
  import { defineStore as te } from "pinia";
6
- import { useI18n as P } from "@feedmepos/mf-common";
6
+ import { useI18n as j } from "@feedmepos/mf-common";
7
7
  const oe = te("variant-manager", () => {
8
- const B = ee(), n = K(), _ = N(n), h = D(_);
9
- j();
10
- const d = $(), { t: c } = P(), b = (s) => {
8
+ const B = ee(), a = P(), _ = N(a), h = K(_);
9
+ D();
10
+ const d = $(), { t: c } = j(), b = (s) => {
11
11
  var y, o;
12
12
  const { vNode: k } = H(
13
13
  S,
@@ -37,8 +37,8 @@ const oe = te("variant-manager", () => {
37
37
  }).onPrimary(async () => {
38
38
  await h.updateMenu(
39
39
  {
40
- module: G.F_MENU_MODULE_V4_KEY.enum.variant,
41
- operation: q.F_OPERATION_TYPE.delete,
40
+ module: q.F_MENU_MODULE_V4_KEY.enum.variant,
41
+ operation: G.F_OPERATION_TYPE.delete,
42
42
  data: s._id
43
43
  },
44
44
  s.name,
@@ -76,8 +76,8 @@ const oe = te("variant-manager", () => {
76
76
  __name: "Variant",
77
77
  setup(B) {
78
78
  const {
79
- t: n
80
- } = P(), _ = j(), h = D(N(K())), d = oe(), c = g(() => _.variants.map((o) => ({
79
+ t: a
80
+ } = j(), _ = D(), h = K(N(P())), d = oe(), c = g(() => _.variants.map((o) => ({
81
81
  ...o,
82
82
  usedBy: _.items.filter((t) => {
83
83
  var u;
@@ -94,12 +94,12 @@ const oe = te("variant-manager", () => {
94
94
  O(() => _.selectCatalog(null));
95
95
  const s = g(() => [{
96
96
  accessorKey: "name",
97
- header: () => n("menu.variant.columns.name"),
97
+ header: () => a("menu.variant.columns.name"),
98
98
  size: 360,
99
99
  enableSorting: !1
100
100
  }, {
101
101
  accessorKey: "options",
102
- header: () => n("menu.variant.columns.options"),
102
+ header: () => a("menu.variant.columns.options"),
103
103
  size: 560,
104
104
  enableSorting: !1,
105
105
  cell: (o) => {
@@ -108,10 +108,10 @@ const oe = te("variant-manager", () => {
108
108
  }
109
109
  }, {
110
110
  accessorKey: "usedBy",
111
- header: () => n("menu.variant.columns.applied_products"),
111
+ header: () => a("menu.variant.columns.applied_products"),
112
112
  enableSorting: !1,
113
113
  size: 180,
114
- cell: (o) => n("menu.common.labels.items_linked", {
114
+ cell: (o) => a("menu.common.labels.items_linked", {
115
115
  count: o.getValue().length
116
116
  })
117
117
  }, {
@@ -123,7 +123,7 @@ const oe = te("variant-manager", () => {
123
123
  },
124
124
  cell: (o) => E("div", {
125
125
  class: "w-full flex justify-end items-center"
126
- }, [E(ae.FmButton, {
126
+ }, [E(ne.FmButton, {
127
127
  prependIcon: "delete",
128
128
  variant: M.Tertiary,
129
129
  textColor: "neutral-gray-400",
@@ -131,22 +131,22 @@ const oe = te("variant-manager", () => {
131
131
  t.stopPropagation(), d.deleteVariant(o.row.original);
132
132
  }
133
133
  })])
134
- }]), k = ne(), y = g(() => k.breakpoints.value.xs);
134
+ }]), k = ae(), y = g(() => k.breakpoints.value.xs);
135
135
  return (o, t) => {
136
136
  const u = x("fm-search"), T = x("fm-table"), z = x("fm-button");
137
137
  return m(), F(Q, {
138
- heading: e(n)("menu.variant.title")
138
+ heading: e(a)("menu.variant.title")
139
139
  }, {
140
140
  "append-heading": p(() => [c.value.length ? (m(), F(e(S), {
141
141
  key: 0
142
142
  }, {
143
143
  default: p(({
144
- trigger: a
144
+ trigger: n
145
145
  }) => [i(W, {
146
146
  class: "ml-auto",
147
- label: e(n)("menu.variant.add"),
147
+ label: e(a)("menu.variant.add"),
148
148
  "prepend-icon": "add",
149
- onClick: V(a, ["stop"])
149
+ onClick: V(n, ["stop"])
150
150
  }, null, 8, ["label", "onClick"])]),
151
151
  _: 1
152
152
  })) : R("", !0)]),
@@ -157,28 +157,28 @@ const oe = te("variant-manager", () => {
157
157
  }, [r("div", re, [i(u, {
158
158
  autofocus: "",
159
159
  modelValue: e(l),
160
- "onUpdate:modelValue": t[2] || (t[2] = (a) => I(l) ? l.value = a : null),
161
- placeholder: e(n)("menu.common.labels.search_placeholder", {
160
+ "onUpdate:modelValue": t[2] || (t[2] = (n) => I(l) ? l.value = n : null),
161
+ placeholder: e(a)("menu.common.labels.search_placeholder", {
162
162
  type: "variants"
163
163
  })
164
- }, null, 8, ["modelValue", "placeholder"])]), r("div", ce, [(m(!0), f(C, null, Y(v.value, (a) => (m(), f("div", {
165
- key: a._id,
164
+ }, null, 8, ["modelValue", "placeholder"])]), r("div", ce, [(m(!0), f(C, null, Y(v.value, (n) => (m(), f("div", {
165
+ key: n._id,
166
166
  class: L(["py-12 px-16", "flex space-x-8", "items-center", "cursor-pointer"]),
167
- onClick: () => e(d).updateVariant(a)
168
- }, [r("div", ue, [r("p", de, w(a.name), 1), r("div", null, [r("p", pe, w(e(n)("menu.common.labels.items_linked", {
169
- count: a.usedBy.length
170
- })), 1), r("p", fe, w(e(n)("menu.variant.mobile.value", {
171
- values: a.options.map((U) => U.name).join(", ")
167
+ onClick: () => e(d).updateVariant(n)
168
+ }, [r("div", ue, [r("p", de, w(n.name), 1), r("div", null, [r("p", pe, w(e(a)("menu.common.labels.items_linked", {
169
+ count: n.usedBy.length
170
+ })), 1), r("p", fe, w(e(a)("menu.variant.mobile.value", {
171
+ values: n.options.map((U) => U.name).join(", ")
172
172
  })), 1)])]), i(z, {
173
173
  variant: e(M).Tertiary,
174
174
  "prepend-icon": "delete",
175
175
  "text-color": "neutral-gray-400",
176
- onClick: V(() => e(d).deleteVariant(a), ["stop"])
176
+ onClick: V(() => e(d).deleteVariant(n), ["stop"])
177
177
  }, null, 8, ["variant", "onClick"])], 8, me))), 128))])], 64)) : (m(), f("div", le, [r("div", se, [r("div", ie, [i(u, {
178
178
  autofocus: "",
179
179
  modelValue: e(l),
180
- "onUpdate:modelValue": t[0] || (t[0] = (a) => I(l) ? l.value = a : null),
181
- placeholder: e(n)("menu.common.labels.search_placeholder", {
180
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => I(l) ? l.value = n : null),
181
+ placeholder: e(a)("menu.common.labels.search_placeholder", {
182
182
  type: "variants"
183
183
  })
184
184
  }, null, 8, ["modelValue", "placeholder"])])]), i(X, null, {
@@ -192,22 +192,22 @@ const oe = te("variant-manager", () => {
192
192
  class: "flex-1 overflow-hidden",
193
193
  "hide-footer": "",
194
194
  "pin-header-row": "",
195
- onRowClick: t[1] || (t[1] = (a) => {
196
- e(d).updateVariant(a.original);
195
+ onRowClick: t[1] || (t[1] = (n) => {
196
+ e(d).updateVariant(n.original);
197
197
  })
198
198
  }, null, 8, ["column-defs", "loading", "page-size", "row-data", "search-value"])]),
199
199
  _: 1
200
200
  })]))], 64)) : (m(), f("div", _e, [i(Z, {
201
- subtitle: e(n)("menu.variant.empty.subtitle"),
202
- title: e(n)("menu.variant.empty.title")
201
+ subtitle: e(a)("menu.variant.empty.subtitle"),
202
+ title: e(a)("menu.variant.empty.title")
203
203
  }, {
204
204
  action: p(() => [i(e(S), null, {
205
205
  default: p(({
206
- trigger: a
206
+ trigger: n
207
207
  }) => [i(z, {
208
208
  "prepend-icon": "add",
209
- label: e(n)("menu.variant.add"),
210
- onClick: V(a, ["stop"])
209
+ label: e(a)("menu.variant.add"),
210
+ onClick: V(n, ["stop"])
211
211
  }, null, 8, ["label", "onClick"])]),
212
212
  _: 1
213
213
  })]),
@@ -1,33 +1,33 @@
1
1
  import { defineComponent as B, computed as u, ref as p, watch as C, onMounted as q, resolveComponent as c, openBlock as x, createElementBlock as F, Fragment as H, createVNode as l, withCtx as r, createElementVNode as i, toDisplayString as T, unref as n, createBlock as I } from "vue";
2
2
  import { useRoute as K, useRouter as W } from "vue-router";
3
- import { a as j, u as J, R as m, m as Q, d as X, _ as Z, f as M, i as ee, D as ae } from "./app-DLXBsyVX.js";
4
- import { useDialog as te, useSnackbar as oe, useBreakpoints as ne } from "@feedmepos/ui-library";
5
- import { _ as le, u as se, c as ue } from "./scheduler-CdDxeSSF.js";
6
- import { m as re } from "./toExcel-C7ec1CP8.js";
7
- import { u as ie, a as me, _ as ce, w as de } from "./catalog-DEFSDlRZ.js";
8
- import { L as A } from "./LinkProductSideSheet-ARCMnzg0.js";
9
- import { a as pe } from "./menu-C1F28TL_.js";
3
+ import { b as j, u as J, R as m, m as Q, h as X, _ as Z, i as M, l as ee, D as te } from "./app-D2FqvCaC.js";
4
+ import { useDialog as ae, useSnackbar as oe, useBreakpoints as ne } from "@feedmepos/ui-library";
5
+ import { _ as le, u as se, c as ue } from "./scheduler-DZwOVztH.js";
6
+ import { m as re } from "./toExcel-D9nGg3_g.js";
7
+ import { u as ie, a as me, _ as ce, w as de } from "./catalog-C8CFP-ny.js";
8
+ import { L as A } from "./LinkProductSideSheet-DfZrxiHw.js";
9
+ import { a as pe } from "./menu-CUXJ9cXY.js";
10
10
  import { useI18n as _e } from "@feedmepos/mf-common";
11
11
  const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class: "flex ml-auto space-x-8" }, be = { class: "flex-1 flex flex-col overflow-hidden" }, De = /* @__PURE__ */ B({
12
12
  __name: "[id]",
13
13
  setup(ke) {
14
14
  const D = K(), _ = W();
15
- te();
16
- const S = j(oe()), y = ee(S), t = J(), f = ie(), v = me(), { t: s } = _e(), R = u(() => t.categorizedRawMenuItems), V = u(() => !t.state.currentSchedulerId);
17
- u(() => t.rules.item.multiScheduler), u(() => y.checkMenuIsLoading()), u(() => [
15
+ ae();
16
+ const S = j(oe()), h = ee(S), a = J(), f = ie(), v = me(), { t: s } = _e(), R = u(() => a.categorizedRawMenuItems), V = u(() => !a.state.currentSchedulerId);
17
+ u(() => a.rules.item.multiScheduler), u(() => h.checkMenuIsLoading()), u(() => [
18
18
  { label: "All Day", value: "" },
19
- ...t.schedulers.map((a) => ({
20
- label: a.name.length > 15 ? `${a.name.substring(0, 15)}...` : a.name,
21
- value: a._id
19
+ ...a.schedulers.map((t) => ({
20
+ label: t.name.length > 15 ? `${t.name.substring(0, 15)}...` : t.name,
21
+ value: t._id
22
22
  }))
23
23
  ]);
24
24
  const L = p();
25
- u(() => t.state.currentSchedulerId);
26
- async function E(a) {
27
- const e = a._id ? se(a) : ue(a);
28
- await y.updateMenu(e, a.name);
25
+ u(() => a.state.currentSchedulerId);
26
+ async function E(t) {
27
+ const e = t._id ? se(t) : ue(t);
28
+ await h.updateMenu(e, t.name);
29
29
  }
30
- const h = [
30
+ const y = [
31
31
  {
32
32
  label: s("menu.catalog.edit.tabs.product"),
33
33
  value: m.EDIT_CATALOG_PRODUCT
@@ -44,41 +44,41 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
44
44
  label: s("menu.catalog.edit.tabs.setting"),
45
45
  value: m.EDIT_CATALOG_SETTING
46
46
  }
47
- ], d = p(h[0].value);
48
- C(d, (a) => {
47
+ ], d = p(y[0].value);
48
+ C(d, (t) => {
49
49
  _.replace({
50
- name: a
50
+ name: t
51
51
  });
52
52
  }), q(() => {
53
53
  _.currentRoute.value.name !== m.EDIT_CATALOG && (d.value = _.currentRoute.value.name);
54
54
  }), C(
55
- () => t.state.menu._id,
56
- (a) => {
55
+ () => a.state.menu._id,
56
+ (t) => {
57
57
  const e = D.params.id;
58
- a && e !== "main" && t.selectCatalog(e);
58
+ t && e !== "main" && a.selectCatalog(e);
59
59
  }
60
60
  );
61
61
  const O = u(() => ({
62
- ...Q.menuV4ToV3(X(t.state.menu)),
63
- _id: t.state.menu._id,
64
- _rev: t.state.menu._rev
62
+ ...Q.menuV4ToV3(X(a.state.menu)),
63
+ _id: a.state.menu._id,
64
+ _rev: a.state.menu._rev
65
65
  }));
66
66
  async function z() {
67
67
  await S.minor(
68
68
  async () => {
69
- await t.readMenu();
70
- const a = await re(O.value), e = `menu_${ae().format("DD-MM-YYYY_HH-mm")}`;
71
- await de(a, `${e}.xlsx`, {
69
+ await a.readMenu();
70
+ const t = await re(O.value), e = `menu_${te().format("DD-MM-YYYY_HH-mm")}`;
71
+ await de(t, `${e}.xlsx`, {
72
72
  bookType: "xlsx",
73
73
  bookSST: !1,
74
74
  type: "array"
75
75
  });
76
76
  },
77
- { successMessage: "Menu exported", customId: t.state.menu._id }
77
+ { successMessage: "Menu exported", customId: a.state.menu._id }
78
78
  );
79
79
  }
80
80
  const g = p(!1), b = p(!1), G = ne();
81
- return u(() => G.breakpoints.value.xs), pe().resetOnUnmount(), (a, e) => {
81
+ return u(() => G.breakpoints.value.xs), pe().resetOnUnmount(), (t, e) => {
82
82
  var w;
83
83
  const $ = c("fm-bottom-sheet"), U = c("fm-button"), N = c("router-link"), P = c("fm-tabs"), Y = c("router-view");
84
84
  return x(), F(H, null, [
@@ -116,7 +116,7 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
116
116
  _: 1
117
117
  }, 8, ["modelValue"]),
118
118
  l(Z, {
119
- heading: ((w = n(t).currentCatalog) == null ? void 0 : w.name) ?? "Main",
119
+ heading: ((w = n(a).currentCatalog) == null ? void 0 : w.name) ?? "Main",
120
120
  class: "flex flex-col max-h-[calc(100vh-56px)] overflow-hidden"
121
121
  }, {
122
122
  "prepend-heading": r(() => [
@@ -172,7 +172,7 @@ const fe = { class: "px-12 py-8" }, ve = { class: "px-12 py-8" }, ge = { class:
172
172
  l(P, {
173
173
  modelValue: d.value,
174
174
  "onUpdate:modelValue": e[5] || (e[5] = (o) => d.value = o),
175
- items: h,
175
+ items: y,
176
176
  class: "mb-7 xs:mb-0 xs:px-32"
177
177
  }, null, 8, ["modelValue"]),
178
178
  i("div", be, [
@@ -0,0 +1,9 @@
1
+ const s = (t, r) => {
2
+ const o = t.__vccOpts || t;
3
+ for (const [c, e] of r)
4
+ o[c] = e;
5
+ return o;
6
+ };
7
+ export {
8
+ s as _
9
+ };