@feedmepos/mf-menu 0.31.29-beta.3 → 0.31.29-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.
Files changed (58) hide show
  1. package/dist/{App-BIgeCno2.js → App-CMyk-4AP.js} +20 -20
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DZxkPcyl.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DUjX2e36.js} +2 -2
  3. package/dist/{Catalog-B0V8mSMI.js → Catalog-Cw5zYfIL.js} +5 -5
  4. package/dist/{Category-BteJwFMp.js → Category-D-QPYuce.js} +4 -4
  5. package/dist/{Category-DhGAZRnO.js → Category-HZX511Ux.js} +5 -5
  6. package/dist/{CookingGuide-Q_4N73B9.js → CookingGuide-Bt3yJKCA.js} +3 -3
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BV2HNNPR.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-BxXs-hTQ.js} +1 -1
  8. package/dist/{Group-CCEzb_O9.js → Group-2WjeuJCg.js} +1 -1
  9. package/dist/{Group-BNOTp-IO.js → Group-Q4qL57Y5.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-BzE0CJ1I.js → Group.vue_vue_type_script_setup_true_lang-CTmnzXb0.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B_w3uNE9.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-ChYyAvkk.js} +3 -3
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-M6dasm71.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CGqRGVlp.js} +6 -6
  13. package/dist/{Ingredient-BAIVKzh0.js → Ingredient-B70lpP-Q.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-I1wmG6Wx.js → InventoryBinding.vue_vue_type_script_setup_true_lang-KJ2LJBeb.js} +2 -2
  15. package/dist/{LinkProductSideSheet-BhrEH94g.js → LinkProductSideSheet-BLAl_qoF.js} +1 -1
  16. package/dist/{MenuSetting-HI-8eNQ4.js → MenuSetting-B8_mOqtt.js} +4 -4
  17. package/dist/{PrintRoute-CJkrexfS.js → PrintRoute-Bn2uLVtS.js} +3 -3
  18. package/dist/{Product-CpxOO6pE.js → Product-CZKM9NYe.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DugrLzAr.js → Product.vue_vue_type_script_setup_true_lang-B5GWCs2t.js} +11 -11
  20. package/dist/{ProductInternalTools-B95gR5jA.js → ProductInternalTools-CP0U2zKu.js} +6 -6
  21. package/dist/{Products-Cm03wAad.js → Products-CZndIzqL.js} +10 -10
  22. package/dist/{Publish-CbA_NEai.js → Publish-rWEr9KPU.js} +3 -3
  23. package/dist/{Recipe-yqYkBtGw.js → Recipe-DdsS8hD1.js} +4 -4
  24. package/dist/{Scheduler-BH2sTNIL.js → Scheduler-BJuQehh7.js} +3 -3
  25. package/dist/{ServingSequence-DPRm_jFa.js → ServingSequence-awf57m3o.js} +3 -3
  26. package/dist/{Setting-BdC47V96.js → Setting-5bgL09SA.js} +4 -4
  27. package/dist/{Subcategory-jE5RKOuO.js → Subcategory-DNNYtQIX.js} +4 -4
  28. package/dist/{Takeaway-CjzylcFl.js → Takeaway-Bk0WCnsw.js} +4 -4
  29. package/dist/{Takeaway-DK8Yr0tJ.js → Takeaway-CkPJs_VK.js} +1 -1
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Bq0kBgBs.js → Takeaway.vue_vue_type_script_setup_true_lang-Cic3lXSP.js} +5 -5
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-9E7_YKAn.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BgPho0ew.js} +13 -13
  32. package/dist/{Unit-BiG99yIa.js → Unit-ByI1kTCU.js} +2 -2
  33. package/dist/{Variant-Cbtw3d4P.js → Variant-CskfGYC0.js} +3 -3
  34. package/dist/{_id_-BDRTBz4T.js → _id_-ugAvUs79.js} +9 -9
  35. package/dist/{app-B8hQkNHG.js → app-DMCJ_R02.js} +24 -24
  36. package/dist/{app-DDwgv2_e.js → app-ppru9sUj.js} +1 -1
  37. package/dist/app.js +1 -1
  38. package/dist/assets/{linked-status-A9l__tit.js → linked-status-A42gjyVD.js} +2 -2
  39. package/dist/assets/{override-menu-m7jDlT4Z.js → override-menu-BN1IdF2m.js} +2 -2
  40. package/dist/assets/{validate-menu-Bf2tvkFi.js → validate-menu-s_h4-vy1.js} +8 -8
  41. package/dist/{catalog-BN-SX82P.js → catalog-BxSSNFKk.js} +1 -1
  42. package/dist/{catalogSetting-CpZQpqX5.js → catalogSetting-Bpw8xIpV.js} +1 -1
  43. package/dist/{category-C54IIG70.js → category-m2OV2dMK.js} +1 -1
  44. package/dist/{currency-C8QV7Vrl.js → currency-B8VqeFp4.js} +1 -1
  45. package/dist/{dayjs.min-DCZegFED.js → dayjs.min-EVvlo7LL.js} +1 -1
  46. package/dist/{index-DD3pWGRe.js → index-BnUmaguT.js} +3 -3
  47. package/dist/{index-CP12JSLA.js → index-Cd9pDskw.js} +2 -2
  48. package/dist/{index-D-626P99.js → index-Daqvv4mX.js} +1 -1
  49. package/dist/{item-C5YaNG-O.js → item-D03KCH0T.js} +15 -15
  50. package/dist/{jszip.min-CxpyAE4P.js → jszip.min-FyS79FZm.js} +545 -545
  51. package/dist/{menu-Dl5HVwpf.js → menu-DHpNXY4e.js} +1 -1
  52. package/dist/{menu-BQMyl6fX.js → menu-uqtS2o-w.js} +249 -249
  53. package/dist/{priceTier-mgauPU88.js → priceTier-DgPiKhhP.js} +1 -1
  54. package/dist/{scheduler-O0MLj0sn.js → scheduler-CZeKFAwZ.js} +3 -3
  55. package/dist/{subcategory-CIaCdLvz.js → subcategory-CkoGJkAy.js} +26 -26
  56. package/dist/{toExcel-D__xMRjE.js → toExcel-Cb2UzJ4N.js} +2 -2
  57. package/dist/{unit-XFJ4G3mz.js → unit-DiY2T4YH.js} +1 -1
  58. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as d, ref as g, watch as _, resolveComponent as S, createBlock as T, openBlock as f, unref as y, computed as h } from "vue";
2
2
  import { useI18n as m } from "@feedmepos/mf-common";
3
3
  import { useDialogChild as w, useDialog as x, useSnackbar as C } from "@feedmepos/ui-library";
4
- import { u as k, D as M } from "./menu-BQMyl6fX.js";
4
+ import { u as k, D as M } from "./menu-uqtS2o-w.js";
5
5
  const v = /* @__PURE__ */ d({
6
6
  __name: "AddPriceGroupDialog",
7
7
  setup(s) {
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as ie, computed as Y, resolveComponent as _, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as F, unref as n, toDisplayString as A, createElementVNode as h, withCtx as v, Fragment as N, renderList as M, createBlock as I, ref as H, Transition as se, createTextVNode as me } from "vue";
2
- import { H as S, G as r, u as pe, I as ve, J as ue } from "./menu-BQMyl6fX.js";
2
+ import { H as S, G as r, u as pe, I as ve, J as ue } from "./menu-uqtS2o-w.js";
3
3
  import { useI18n as de } from "@feedmepos/mf-common";
4
4
  import { components as _e } from "@feedmepos/ui-library";
5
5
  import { _ as fe } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
6
6
  import { _ as ne } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
7
7
  import { u as ye } from "./discardConfirm-BHni0LNu.js";
8
- import { u as he } from "./menu-Dl5HVwpf.js";
9
- import { L as ge } from "./LinkProductSideSheet-BhrEH94g.js";
8
+ import { u as he } from "./menu-DHpNXY4e.js";
9
+ import { L as ge } from "./LinkProductSideSheet-BLAl_qoF.js";
10
10
  const Ve = { class: "space-y-8" }, Fe = {
11
11
  key: 0,
12
12
  class: "space-y-16"
@@ -1,9 +1,9 @@
1
- import { shallowRef as Q, ref as R, computed as h, shallowReactive as Fe, effectScope as Te, watch as H, defineComponent as Re, resolveComponent as z, createBlock as Ve, openBlock as Ne, unref as N, withCtx as Oe, createVNode as xe } from "vue";
2
- import { H as k, B as O, ak as X, G as I, al as G, J as S, I as ee, aa as M, c as D, Y as w, aj as L, am as Pe, an as Ae, A as Ue, ac as Ke, ao as De, ap as $e, a9 as qe, u as He } from "./menu-BQMyl6fX.js";
1
+ import { shallowRef as X, ref as T, computed as h, shallowReactive as Fe, effectScope as Re, watch as H, defineComponent as Te, resolveComponent as z, createBlock as Ve, openBlock as Ne, unref as N, withCtx as Oe, createVNode as xe } from "vue";
2
+ import { H as k, B as O, ak as Z, G as I, al as G, J as S, I as ee, aa as M, c as D, Y as w, aj as L, am as Pe, an as Ae, A as Ue, ac as Ke, ao as De, ap as $e, a9 as qe, u as He } from "./menu-uqtS2o-w.js";
3
3
  import { useCoreStore as J, useI18n as te } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as Ye, useDialogChild as Be } from "@feedmepos/ui-library";
5
5
  import { defineStore as je } from "pinia";
6
- const We = "/assets/linked-status-A9l__tit.js", ze = "/assets/override-menu-m7jDlT4Z.js";
6
+ const We = "/assets/linked-status-A42gjyVD.js", ze = "/assets/override-menu-BN1IdF2m.js";
7
7
  function Ge(e) {
8
8
  var o;
9
9
  const n = k(e), a = (o = n.variant) == null ? void 0 : o.variantCombinations;
@@ -46,7 +46,7 @@ function Le(e, n, a, o) {
46
46
  _id: r._id
47
47
  };
48
48
  }
49
- function T(e, n, a) {
49
+ function R(e, n, a) {
50
50
  var f;
51
51
  if (a >= 3) return e;
52
52
  const o = n.modules.item.find((l) => l._id === e._id);
@@ -61,8 +61,8 @@ function T(e, n, a) {
61
61
  const y = (b = i.items) == null ? void 0 : b.find(
62
62
  (F) => F._id === g._id && F.combinationKey === g.combinationKey
63
63
  );
64
- return T(y || g, n, a + 1);
65
- })) ?? [] : d = ((p = l.items) == null ? void 0 : p.map((g) => T(g, n, a + 1))) ?? [], {
64
+ return R(y || g, n, a + 1);
65
+ })) ?? [] : d = ((p = l.items) == null ? void 0 : p.map((g) => R(g, n, a + 1))) ?? [], {
66
66
  ...l,
67
67
  items: d
68
68
  };
@@ -83,16 +83,16 @@ function Je(e, n) {
83
83
  (g) => g._id === d._id && g.combinationKey === d.combinationKey
84
84
  );
85
85
  if (u)
86
- return T(u, n, 1);
86
+ return R(u, n, 1);
87
87
  const s = {
88
88
  ...O.generator.initMenuV4ItemOverrider(),
89
89
  _id: d._id,
90
90
  combinationKey: d.combinationKey
91
91
  };
92
- return T(s, n, 1);
92
+ return R(s, n, 1);
93
93
  });
94
94
  return { ...f, items: i };
95
- }), o = e.variant ? e.variant.variantCombinations.map((f) => T(f, n, 1)) : [], r = {
95
+ }), o = e.variant ? e.variant.variantCombinations.map((f) => R(f, n, 1)) : [], r = {
96
96
  ...O.generator.initMenuV4ItemOverrider(),
97
97
  _id: e._id,
98
98
  name: e.name,
@@ -118,7 +118,7 @@ function Y(e, n) {
118
118
  }), r;
119
119
  }), a;
120
120
  }
121
- function Ze(e, n) {
121
+ function Qe(e, n) {
122
122
  const a = e.items[n._id];
123
123
  n.variant && (n.variant = {
124
124
  ...n.variant,
@@ -162,7 +162,7 @@ async function dt(e, n, a, o, r, f = !0) {
162
162
  return n.map((p) => {
163
163
  const g = p._id, y = d[g];
164
164
  return {
165
- ...Ze(s, y),
165
+ ...Qe(s, y),
166
166
  category: o || r ? y == null ? void 0 : y.category : null
167
167
  };
168
168
  });
@@ -185,7 +185,7 @@ async function ft(e, n) {
185
185
  const a = `${e._id}-${e.updatedAt}-${n}`;
186
186
  if ($.has(a))
187
187
  return $.get(a);
188
- const o = await X(
188
+ const o = await Z(
189
189
  We,
190
190
  JSON.stringify({
191
191
  menu: e,
@@ -195,7 +195,7 @@ async function ft(e, n) {
195
195
  return $.set(a, o), o;
196
196
  }
197
197
  async function ne(e, n, a) {
198
- return await X(ze, {
198
+ return await Z(ze, {
199
199
  menu: e,
200
200
  catalogId: n,
201
201
  schedulerId: a
@@ -232,7 +232,7 @@ function _t(e, n, a) {
232
232
  return r(n, a);
233
233
  }
234
234
  const q = /* @__PURE__ */ new Map();
235
- async function Qe(e, n, a) {
235
+ async function Xe(e, n, a) {
236
236
  const o = `${e._id}-${e.updatedAt}-${n || "null"}-${a || "null"}`;
237
237
  if (q.has(o))
238
238
  return q.get(o);
@@ -241,7 +241,7 @@ async function Qe(e, n, a) {
241
241
  }
242
242
  async function gt(e, n, a) {
243
243
  var l, i;
244
- const o = await Qe(e, n, null), r = [], f = (d, u) => {
244
+ const o = await Xe(e, n, null), r = [], f = (d, u) => {
245
245
  const s = k(d);
246
246
  for (const p in u)
247
247
  u[p] && (s[p] = u[p]);
@@ -265,10 +265,10 @@ async function gt(e, n, a) {
265
265
  }
266
266
  return r;
267
267
  }
268
- function Xe({
268
+ function Ze({
269
269
  maxHistorySize: e = 50
270
270
  }) {
271
- const n = Q([]), a = R(-1), o = h(() => a.value > 0), r = h(() => a.value < n.value.length - 1);
271
+ const n = X([]), a = T(-1), o = h(() => a.value > 0), r = h(() => a.value < n.value.length - 1);
272
272
  function f(u) {
273
273
  n.value.push(u), a.value++, n.value.length > e && (n.value.shift(), a.value--);
274
274
  }
@@ -355,7 +355,7 @@ const nt = je(
355
355
  function s(t, c = !0) {
356
356
  e.menu = { ...t, _rev: e.menu._rev }, c && E.push(e.menu);
357
357
  }
358
- const p = Q(oe()), g = R(!1), y = R(1);
358
+ const p = X(oe()), g = T(!1), y = T(1);
359
359
  async function b() {
360
360
  g.value = !0;
361
361
  const t = await ne(
@@ -374,7 +374,7 @@ const nt = je(
374
374
  return p.value = t, g.value = !1, y.value = y.value + 1, t;
375
375
  }
376
376
  const V = ee.debounce(b, 200);
377
- Te(!0).run(() => {
377
+ Re(!0).run(() => {
378
378
  H(
379
379
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
380
380
  () => {
@@ -600,7 +600,7 @@ const nt = je(
600
600
  priceTierSettings: t.priceTierSettings
601
601
  };
602
602
  return s(c), c;
603
- }, E = Xe({ maxHistorySize: 50 }), we = h(() => E.canUndo.value), Ie = h(() => E.canRedo.value);
603
+ }, E = Ze({ maxHistorySize: 50 }), we = h(() => E.canUndo.value), Ie = h(() => E.canRedo.value);
604
604
  return {
605
605
  state: e,
606
606
  // loading state
@@ -664,7 +664,7 @@ const nt = je(
664
664
  }
665
665
  };
666
666
  }
667
- ), Z = /* @__PURE__ */ Re({
667
+ ), Q = /* @__PURE__ */ Te({
668
668
  __name: "AddSubcategoryDialogContentComponent",
669
669
  props: {
670
670
  initialValue: {}
@@ -677,7 +677,7 @@ const nt = je(
677
677
  o.value = l ?? "";
678
678
  }
679
679
  );
680
- const o = R(n.initialValue), { emitData: r, emitAction: f } = Be();
680
+ const o = T(n.initialValue), { emitData: r, emitAction: f } = Be();
681
681
  return H(
682
682
  o,
683
683
  (l) => {
@@ -712,10 +712,10 @@ const nt = je(
712
712
  }) => {
713
713
  const { t: o } = te(), r = nt().updateMenu;
714
714
  function f() {
715
- const u = R(!1);
715
+ const u = T(!1);
716
716
  e.open({
717
717
  title: o("menu.subcategory.manager.dialog.add.title"),
718
- contentComponent: Z,
718
+ contentComponent: Q,
719
719
  primaryActions: {
720
720
  text: o("menu.subcategory.manager.dialog.add.action"),
721
721
  close: !1,
@@ -746,7 +746,7 @@ const nt = je(
746
746
  function l(u) {
747
747
  e.open({
748
748
  title: o("menu.subcategory.manager.dialog.update.title"),
749
- contentComponent: Z,
749
+ contentComponent: Q,
750
750
  contentComponentProps: {
751
751
  initialValue: u.name
752
752
  },
@@ -812,6 +812,6 @@ export {
812
812
  gt as f,
813
813
  mt as g,
814
814
  dt as m,
815
- Qe as o,
815
+ Xe as o,
816
816
  nt as u
817
817
  };
@@ -1,5 +1,5 @@
1
- import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-M6dasm71.js";
2
- import "./menu-BQMyl6fX.js";
1
+ import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CGqRGVlp.js";
2
+ import "./menu-uqtS2o-w.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -1,6 +1,6 @@
1
1
  import { defineStore as J } from "pinia";
2
2
  import { defineComponent as O, computed as U, ref as h, watch as T, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as A, toDisplayString as M, unref as l, Fragment as q, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
- import { a7 as B, a8 as te, a5 as P, H as k, O as $, D as I, B as E, I as ne, a6 as ae, J as C, G as D, u as oe } from "./menu-BQMyl6fX.js";
3
+ import { a7 as B, a8 as te, a5 as P, H as k, O as $, D as I, B as E, I as ne, a6 as ae, J as C, G as D, u as oe } from "./menu-uqtS2o-w.js";
4
4
  import { useI18n as L } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as j, components as le, useDialog as ue, FmButtonVariant as ie } from "@feedmepos/ui-library";
6
6
  import { u as se } from "./discardConfirm-BHni0LNu.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.31.29-beta.3",
3
+ "version": "0.31.29-prod",
4
4
  "files": [
5
5
  "dist"
6
6
  ],