@feedmepos/mf-menu 0.31.23-prod → 0.31.24-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-DJYaG22M.js → App-kOmXvdKt.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CMctomEh.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CXIwvQEZ.js} +2 -2
  3. package/dist/{Catalog-CvAKnJX6.js → Catalog-6-AfEp-o.js} +5 -5
  4. package/dist/{Category-DH-Wh-cE.js → Category-B4386CLM.js} +5 -5
  5. package/dist/{Category-DuKbHX_a.js → Category-C5D_IwAQ.js} +4 -4
  6. package/dist/{CookingGuide-ruWE5CR7.js → CookingGuide-BPjaiHKf.js} +3 -3
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CUM43rW1.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CsDAdd72.js} +1 -1
  8. package/dist/{Group-CorFuet3.js → Group-B4n6hZOu.js} +3 -3
  9. package/dist/{Group-DgtAnNFS.js → Group-BoPGxYxO.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-srfCUP6a.js → Group.vue_vue_type_script_setup_true_lang-h75snble.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BHt95qtc.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D2ksfVtM.js} +3 -3
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Di5ITRsA.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CTtSoCMr.js} +6 -6
  13. package/dist/{Ingredient-YZJOV0UG.js → Ingredient-D_YvPA_A.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-uZkLQs-b.js → InventoryBinding.vue_vue_type_script_setup_true_lang-C_te_Tfg.js} +2 -2
  15. package/dist/{LinkProductSideSheet-DRJ-sYbM.js → LinkProductSideSheet-PKhJG8V0.js} +1 -1
  16. package/dist/{MenuSetting-6nNt4wPn.js → MenuSetting-C-EXuILd.js} +4 -4
  17. package/dist/{PrintRoute-DCTfjCJi.js → PrintRoute-DfHUO1Nv.js} +3 -3
  18. package/dist/{Product-CzCSHIOC.js → Product-CxeceUD0.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-jQs4xUmj.js → Product.vue_vue_type_script_setup_true_lang-BzqKSr_x.js} +11 -11
  20. package/dist/{ProductInternalTools-CWTJl1g7.js → ProductInternalTools-B9YNvVdg.js} +5 -5
  21. package/dist/{Products-CD4VucQC.js → Products-BG4NMuyc.js} +10 -10
  22. package/dist/{Publish-tZJlSfeE.js → Publish-CA5siSTy.js} +3 -3
  23. package/dist/{Recipe-BwvObWYK.js → Recipe-Cw5ftxEY.js} +4 -4
  24. package/dist/{Scheduler-DRHaOH5X.js → Scheduler-6ECGGXdQ.js} +3 -3
  25. package/dist/{ServingSequence-CL6ovJPc.js → ServingSequence-D6KFjkJb.js} +3 -3
  26. package/dist/{Setting-BMmkxEhb.js → Setting-BI-6akc1.js} +4 -4
  27. package/dist/{Subcategory-kwVB3haR.js → Subcategory-iLPhaDFx.js} +4 -4
  28. package/dist/{Takeaway-DRQKI9cD.js → Takeaway-BfncNTMr.js} +1 -1
  29. package/dist/{Takeaway-VAfS-v1v.js → Takeaway-COATvFnJ.js} +4 -4
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BX-RHTl9.js → Takeaway.vue_vue_type_script_setup_true_lang-iPl6uRN4.js} +5 -5
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-KP0lR_fT.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BzPy3IzR.js} +12 -12
  32. package/dist/{Unit-C2XUA3ZV.js → Unit-Dy8HKXqu.js} +2 -2
  33. package/dist/{Variant-ibBSu4u0.js → Variant-dbgw3E2c.js} +3 -3
  34. package/dist/{_id_-peGrIAdG.js → _id_-DwDe6wcC.js} +9 -9
  35. package/dist/{app-BAfbywN2.js → app-0OLYAdMu.js} +1 -1
  36. package/dist/{app-tKhKZO8e.js → app-E-NtJ3nJ.js} +24 -24
  37. package/dist/app.js +1 -1
  38. package/dist/assets/{linked-status-CKyAQ14q.js → linked-status-DUqvqqTN.js} +2 -2
  39. package/dist/assets/{override-menu-BWGUe-Ds.js → override-menu-32Do1ntN.js} +2 -2
  40. package/dist/assets/{validate-menu-BLscMlHh.js → validate-menu-BrJ6AYnH.js} +2 -2
  41. package/dist/{catalog-BRb3OqBO.js → catalog-BFnF1Rve.js} +1 -1
  42. package/dist/{catalogSetting-D4WVJDdG.js → catalogSetting-jBHe8ldH.js} +1 -1
  43. package/dist/{category-Df614h_D.js → category-BvRGV_11.js} +1 -1
  44. package/dist/{currency-BjTyZEAh.js → currency-Bc9hsM-_.js} +1 -1
  45. package/dist/{dayjs.min-BDmWh9jM.js → dayjs.min-CII9XdsK.js} +1 -1
  46. package/dist/{index-DDEgOTgT.js → index-B8oFV2Vm.js} +2 -2
  47. package/dist/{index-D7Vv8zpT.js → index-DsbfjIW8.js} +3 -3
  48. package/dist/{index-CqRKUawK.js → index-MnO8bhxR.js} +1 -1
  49. package/dist/{item-Vm4KGaaQ.js → item-Bfkhoqji.js} +14 -14
  50. package/dist/{jszip.min-CW5_vNOk.js → jszip.min-ByrW6VPY.js} +2 -2
  51. package/dist/{menu-DcNv7MsL.js → menu-N_pnhKPn.js} +1 -1
  52. package/dist/{menu-Jj1EC4nG.js → menu-k6AGnHz0.js} +126 -126
  53. package/dist/{priceTier-COa4cXXQ.js → priceTier-DELy47eg.js} +1 -1
  54. package/dist/{scheduler-D6GK1atn.js → scheduler-CvuuLfFD.js} +3 -3
  55. package/dist/{subcategory-Cf2Y1FxH.js → subcategory-B8azwS0c.js} +21 -21
  56. package/dist/{toExcel-DuEUH3fU.js → toExcel-CkrEopCN.js} +2 -2
  57. package/dist/{unit-BhUi5qtf.js → unit-CkEDb55m.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-Jj1EC4nG.js";
4
+ import { u as k, D as M } from "./menu-k6AGnHz0.js";
5
5
  const v = /* @__PURE__ */ d({
6
6
  __name: "AddPriceGroupDialog",
7
7
  setup(s) {
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as le, computed as Y, resolveComponent as v, createElementBlock as i, openBlock as u, createVNode as l, createCommentVNode as g, unref as a, toDisplayString as P, createElementVNode as y, withCtx as _, Fragment as D, renderList as A, createBlock as N, ref as T, Transition as ee, createTextVNode as se } from "vue";
2
- import { H as b, G as d, u as ie, I as de, J as X } from "./menu-Jj1EC4nG.js";
2
+ import { H as b, G as d, u as ie, I as de, J as X } from "./menu-k6AGnHz0.js";
3
3
  import { useI18n as te } from "@feedmepos/mf-common";
4
4
  import { components as re } from "@feedmepos/ui-library";
5
5
  import { _ as ce } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
6
6
  import { _ as W } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
7
7
  import { u as me } from "./discardConfirm-BHni0LNu.js";
8
- import { u as pe } from "./menu-DcNv7MsL.js";
9
- import { L as _e } from "./LinkProductSideSheet-DRJ-sYbM.js";
8
+ import { u as pe } from "./menu-N_pnhKPn.js";
9
+ import { L as _e } from "./LinkProductSideSheet-PKhJG8V0.js";
10
10
  const ve = { class: "space-y-8" }, fe = {
11
11
  key: 0,
12
12
  class: "space-y-16"
@@ -1,16 +1,16 @@
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 G, 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 z, J as S, I as ee, aa as M, c as D, Y as E, 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-Jj1EC4nG.js";
1
+ import { shallowRef as X, 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 Z, G as I, al as G, J as S, I as ee, aa as M, c as D, Y as E, 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-k6AGnHz0.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 We } from "pinia";
6
- const je = "/assets/linked-status-CKyAQ14q.js", Ge = "/assets/override-menu-BWGUe-Ds.js";
7
- function ze(e) {
6
+ const je = "/assets/linked-status-DUqvqqTN.js", ze = "/assets/override-menu-32Do1ntN.js";
7
+ function Ge(e) {
8
8
  var o;
9
9
  const n = k(e), a = (o = n.variant) == null ? void 0 : o.variantCombinations;
10
10
  return delete n.variant, delete n.thumbnail, [n, ...a || []];
11
11
  }
12
12
  function Le(e, n, a, o) {
13
- const r = k(n), f = a ? r.modules.catalog.find((g) => g._id === a) : null, l = o ? r.modules.scheduler.find((g) => g._id === o) : null, i = f ? k(f) : void 0, d = a ? r.modules.catalog.filter((g) => g._id !== a) : [], u = l ? k(l) : void 0, s = e.reduce((g, y) => (g[y._id] = ze(y), g), {});
13
+ const r = k(n), f = a ? r.modules.catalog.find((g) => g._id === a) : null, l = o ? r.modules.scheduler.find((g) => g._id === o) : null, i = f ? k(f) : void 0, d = a ? r.modules.catalog.filter((g) => g._id !== a) : [], u = l ? k(l) : void 0, s = e.reduce((g, y) => (g[y._id] = Ge(y), g), {});
14
14
  function p(g = []) {
15
15
  const y = e.map((b) => b._id);
16
16
  return [
@@ -35,9 +35,9 @@ function Le(e, n, a, o) {
35
35
  ...r.modules.scheduler.filter((g) => g._id !== o),
36
36
  u
37
37
  ], r) : {
38
- ...z(),
38
+ ...G(),
39
39
  modules: {
40
- ...z().modules,
40
+ ...G().modules,
41
41
  catalog: r.modules.catalog,
42
42
  item: r.modules.item,
43
43
  group: r.modules.group,
@@ -46,7 +46,7 @@ function Le(e, n, a, o) {
46
46
  _id: r._id
47
47
  };
48
48
  }
49
- function R(e, n, a) {
49
+ function T(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 R(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 R(y || g, n, a + 1);
65
- })) ?? [] : d = ((p = l.items) == null ? void 0 : p.map((g) => R(g, n, a + 1))) ?? [], {
64
+ return T(y || g, n, a + 1);
65
+ })) ?? [] : d = ((p = l.items) == null ? void 0 : p.map((g) => T(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 R(u, n, 1);
86
+ return T(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 R(s, n, 1);
92
+ return T(s, n, 1);
93
93
  });
94
94
  return { ...f, items: i };
95
- }), o = e.variant ? e.variant.variantCombinations.map((f) => R(f, n, 1)) : [], r = {
95
+ }), o = e.variant ? e.variant.variantCombinations.map((f) => T(f, n, 1)) : [], r = {
96
96
  ...O.generator.initMenuV4ItemOverrider(),
97
97
  _id: e._id,
98
98
  name: e.name,
@@ -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 Z(Ge, {
198
+ return await Z(ze, {
199
199
  menu: e,
200
200
  catalogId: n,
201
201
  schedulerId: a
@@ -268,7 +268,7 @@ async function gt(e, n, a) {
268
268
  function Ze({
269
269
  maxHistorySize: e = 50
270
270
  }) {
271
- const n = X([]), a = T(-1), o = h(() => a.value > 0), r = h(() => a.value < n.value.length - 1);
271
+ const n = X([]), a = R(-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 = We(
355
355
  function s(t, c = !0) {
356
356
  e.menu = { ...t, _rev: e.menu._rev }, c && w.push(e.menu);
357
357
  }
358
- const p = X(oe()), g = T(!1), y = T(1);
358
+ const p = X(oe()), g = R(!1), y = R(1);
359
359
  async function b() {
360
360
  g.value = !0;
361
361
  const t = await ne(
@@ -374,7 +374,7 @@ const nt = We(
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
- Re(!0).run(() => {
377
+ Te(!0).run(() => {
378
378
  H(
379
379
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
380
380
  () => {
@@ -660,7 +660,7 @@ const nt = We(
660
660
  }
661
661
  };
662
662
  }
663
- ), Q = /* @__PURE__ */ Te({
663
+ ), Q = /* @__PURE__ */ Re({
664
664
  __name: "AddSubcategoryDialogContentComponent",
665
665
  props: {
666
666
  initialValue: {}
@@ -673,7 +673,7 @@ const nt = We(
673
673
  o.value = l ?? "";
674
674
  }
675
675
  );
676
- const o = T(n.initialValue), { emitData: r, emitAction: f } = Be();
676
+ const o = R(n.initialValue), { emitData: r, emitAction: f } = Be();
677
677
  return H(
678
678
  o,
679
679
  (l) => {
@@ -683,7 +683,7 @@ const nt = We(
683
683
  immediate: !0
684
684
  }
685
685
  ), (l, i) => {
686
- const d = G("fm-text-field"), u = G("FmForm");
686
+ const d = z("fm-text-field"), u = z("FmForm");
687
687
  return Ne(), Ve(u, {
688
688
  onValidationSuccess: i[1] || (i[1] = (s) => N(f)("primary"))
689
689
  }, {
@@ -708,7 +708,7 @@ const nt = We(
708
708
  }) => {
709
709
  const { t: o } = te(), r = nt().updateMenu;
710
710
  function f() {
711
- const u = T(!1);
711
+ const u = R(!1);
712
712
  e.open({
713
713
  title: o("menu.subcategory.manager.dialog.add.title"),
714
714
  contentComponent: Q,
@@ -1,5 +1,5 @@
1
- import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-Di5ITRsA.js";
2
- import "./menu-Jj1EC4nG.js";
1
+ import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CTtSoCMr.js";
2
+ import "./menu-k6AGnHz0.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-Jj1EC4nG.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-k6AGnHz0.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.23-prod",
3
+ "version": "0.31.24-prod",
4
4
  "files": [
5
5
  "dist"
6
6
  ],