@feedmepos/mf-menu 0.31.20-prod → 0.31.21-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 (80) hide show
  1. package/dist/{App-DYCbSkbA.js → App-DRR7HZ6I.js} +20 -20
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BNYiizMM.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DT7Hs2nW.js} +2 -2
  3. package/dist/{Catalog-Cl8JCoA2.js → Catalog-DsTE7QhY.js} +5 -5
  4. package/dist/{Category-DYSqq7up.js → Category-BuK4trwv.js} +5 -5
  5. package/dist/{Category-GRP8Rp7n.js → Category-C3u8uXeg.js} +4 -4
  6. package/dist/{CookingGuide-ChgYVIuo.js → CookingGuide-DBLbte5d.js} +3 -3
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-tN0DPdSE.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DfyMJmsv.js} +1 -1
  8. package/dist/{Group-BiZt4XHC.js → Group-CPyzwqlx.js} +1 -1
  9. package/dist/{Group-b5yCTxMB.js → Group-DC-E7FC8.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-dWm6ex2t.js → Group.vue_vue_type_script_setup_true_lang-D02WjavV.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-c9NU88_t.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DPLXlGmY.js} +3 -3
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-cFVj1CKD.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CqYS1XC1.js} +6 -6
  13. package/dist/{Ingredient-6GjB4nmq.js → Ingredient-cMJM9i7k.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CaBXfb5-.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BK3c3Iut.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-BQz_lIYv.js → LinkProductSideSheet-mgVwSGW3.js} +1 -1
  16. package/dist/{MenuSetting-C4Aq6ooW.js → MenuSetting-CjZEVFiM.js} +4 -4
  17. package/dist/{PrintRoute-DWmlbkwR.js → PrintRoute-BcEFPcvq.js} +3 -3
  18. package/dist/{Product-D6xehZ0l.js → Product-Cfq89d03.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DWZ7HOmE.js → Product.vue_vue_type_script_setup_true_lang-7gBz3nL9.js} +11 -11
  20. package/dist/{ProductInternalTools-CDCeo3gj.js → ProductInternalTools-DpfpKGdc.js} +6 -6
  21. package/dist/{Products-BJkmoOC8.js → Products-nwcvdLlp.js} +10 -10
  22. package/dist/{Publish-CyjsZWck.js → Publish-CDzxRyID.js} +3 -3
  23. package/dist/{Recipe-DhIJaDO9.js → Recipe-B_oCUH5s.js} +4 -4
  24. package/dist/{Scheduler-nJWhxGd4.js → Scheduler-CSnE2PQx.js} +3 -3
  25. package/dist/{ServingSequence-BT4f_Hh9.js → ServingSequence-BaixwZVX.js} +3 -3
  26. package/dist/{Setting-BF4CdTMX.js → Setting-m-kZYCEc.js} +4 -4
  27. package/dist/{Subcategory-DeYME7HI.js → Subcategory-pyqLELsj.js} +4 -4
  28. package/dist/{Takeaway-DUDq_41B.js → Takeaway-Ctx8_jMh.js} +1 -1
  29. package/dist/{Takeaway-D5ouwPE9.js → Takeaway-DDy8midM.js} +4 -4
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Dov6BhB_.js → Takeaway.vue_vue_type_script_setup_true_lang-22VEfBZm.js} +5 -5
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DpL-tq27.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CfA2eeP2.js} +13 -13
  32. package/dist/{Unit-D_Ird2an.js → Unit-oLLAs_tp.js} +2 -2
  33. package/dist/{Variant-C-yqFGmt.js → Variant-BH-zBOUV.js} +3 -3
  34. package/dist/{_id_-BvJdq5ZG.js → _id_-CLNTV6z6.js} +9 -9
  35. package/dist/{app-CxEocWBk.js → app-CmvA_jjL.js} +1 -1
  36. package/dist/{app-B8iuFLnY.js → app-x-GPH94V.js} +24 -24
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +4 -4
  39. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +4 -4
  40. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +4 -4
  41. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +4 -4
  42. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +2 -2
  43. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +2 -2
  44. package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +6 -6
  45. package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +2 -2
  46. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +6 -6
  47. package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +4 -4
  48. package/dist/apps/mf-menu/src/helper/import-export.d.ts +6 -6
  49. package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +2 -2
  50. package/dist/apps/mf-menu/src/helper/menu.d.ts +8 -8
  51. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +6 -6
  52. package/dist/apps/mf-menu/src/stores/manager/item.d.ts +6 -6
  53. package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +2 -2
  54. package/dist/apps/mf-menu/src/stores/menu.d.ts +6 -6
  55. package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +4 -4
  56. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  57. package/dist/assets/linked-status-BX65n8sX.js +24 -0
  58. package/dist/assets/override-menu-xs80Wejs.js +24 -0
  59. package/dist/assets/validate-menu-CGf0DM7K.js +24 -0
  60. package/dist/{catalog-Cto94JaO.js → catalog-BuwTwgu7.js} +1 -1
  61. package/dist/{catalogSetting-ByoGvysT.js → catalogSetting-DU8prOsY.js} +1 -1
  62. package/dist/{category-uBjIJb76.js → category--aKXbY6Y.js} +1 -1
  63. package/dist/{currency-C1Ppozms.js → currency-Cv0-GwLE.js} +1 -1
  64. package/dist/{dayjs.min-B_1l58q2.js → dayjs.min-nHG3lszD.js} +1 -1
  65. package/dist/{index-B7sXhgMx.js → index-DePGqbzr.js} +2 -2
  66. package/dist/{index-CN1mzsNU.js → index-NU-ucfQp.js} +1 -1
  67. package/dist/{index-BpbcArZG.js → index-a7MIwKhT.js} +3 -3
  68. package/dist/{item-BHgMhke0.js → item-DucGD_fL.js} +643 -643
  69. package/dist/{jszip.min-D0PDanmi.js → jszip.min-CUjvtkE4.js} +245 -245
  70. package/dist/{menu-BetRJ4QU.js → menu-CBvj9fi9.js} +1 -1
  71. package/dist/{menu-BJE_lVhN.js → menu-D27IbIyw.js} +17817 -18430
  72. package/dist/{priceTier-6El8rKww.js → priceTier-CEKeHJAo.js} +1 -1
  73. package/dist/{scheduler-hXvwHbcP.js → scheduler-CCQJAh-e.js} +3 -3
  74. package/dist/{subcategory-BTccRQGv.js → subcategory-C0W9-09B.js} +22 -22
  75. package/dist/{toExcel-D2bru5mp.js → toExcel-BahXiTvF.js} +2 -2
  76. package/dist/{unit-DJuo62fT.js → unit-C9GxYYaD.js} +1 -1
  77. package/package.json +2 -2
  78. package/dist/assets/linked-status-DDJX4ZD2.js +0 -24
  79. package/dist/assets/override-menu-cx5DqfTh.js +0 -24
  80. package/dist/assets/validate-menu-D0frdex8.js +0 -24
@@ -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-BJE_lVhN.js";
4
+ import { u as k, D as M } from "./menu-D27IbIyw.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-BJE_lVhN.js";
2
+ import { H as b, G as d, u as ie, I as de, J as X } from "./menu-D27IbIyw.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-BetRJ4QU.js";
9
- import { L as _e } from "./LinkProductSideSheet-BQz_lIYv.js";
8
+ import { u as pe } from "./menu-CBvj9fi9.js";
9
+ import { L as _e } from "./LinkProductSideSheet-mgVwSGW3.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 Z, 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 xe, unref as x, withCtx as Ne, createVNode as Oe } from "vue";
2
- import { H as k, B as N, ak as Q, 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-BJE_lVhN.js";
1
+ import { shallowRef as Q, 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 xe, unref as x, withCtx as Ne, createVNode as Oe } from "vue";
2
+ import { H as k, B as N, 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-D27IbIyw.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-DDJX4ZD2.js", ze = "/assets/override-menu-cx5DqfTh.js";
6
+ const je = "/assets/linked-status-BX65n8sX.js", ze = "/assets/override-menu-xs80Wejs.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
  ...N.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
  ...N.generator.initMenuV4ItemOverrider(),
97
97
  _id: e._id,
98
98
  name: e.name,
@@ -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 Q(
188
+ const o = await Z(
189
189
  je,
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 Q(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 Ze(e, n, a) {
235
+ async function Qe(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 Ze(e, n, a) {
241
241
  }
242
242
  async function gt(e, n, a) {
243
243
  var l, i;
244
- const o = await Ze(e, n, null), r = [], f = (d, u) => {
244
+ const o = await Qe(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 Qe({
268
+ function Ze({
269
269
  maxHistorySize: e = 50
270
270
  }) {
271
- const n = Z([]), a = R(-1), o = h(() => a.value > 0), r = h(() => a.value < n.value.length - 1);
271
+ const n = Q([]), 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 = 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 = Z(oe()), g = R(!1), y = R(1);
358
+ const p = Q(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 = 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
- Te(!0).run(() => {
377
+ Re(!0).run(() => {
378
378
  H(
379
379
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
380
380
  () => {
@@ -596,7 +596,7 @@ const nt = We(
596
596
  priceTierSettings: t.priceTierSettings
597
597
  };
598
598
  return s(c), c;
599
- }, w = Qe({ maxHistorySize: 50 }), Ee = h(() => w.canUndo.value), Ie = h(() => w.canRedo.value);
599
+ }, w = Ze({ maxHistorySize: 50 }), Ee = h(() => w.canUndo.value), Ie = h(() => w.canRedo.value);
600
600
  return {
601
601
  state: e,
602
602
  // loading state
@@ -660,7 +660,7 @@ const nt = We(
660
660
  }
661
661
  };
662
662
  }
663
- ), X = /* @__PURE__ */ Re({
663
+ ), X = /* @__PURE__ */ Te({
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 = R(n.initialValue), { emitData: r, emitAction: f } = Be();
676
+ const o = T(n.initialValue), { emitData: r, emitAction: f } = Be();
677
677
  return H(
678
678
  o,
679
679
  (l) => {
@@ -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 = R(!1);
711
+ const u = T(!1);
712
712
  e.open({
713
713
  title: o("menu.subcategory.manager.dialog.add.title"),
714
714
  contentComponent: X,
@@ -808,6 +808,6 @@ export {
808
808
  gt as f,
809
809
  mt as g,
810
810
  dt as m,
811
- Ze as o,
811
+ Qe as o,
812
812
  nt as u
813
813
  };
@@ -1,5 +1,5 @@
1
- import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-cFVj1CKD.js";
2
- import "./menu-BJE_lVhN.js";
1
+ import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CqYS1XC1.js";
2
+ import "./menu-D27IbIyw.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-BJE_lVhN.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-D27IbIyw.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.20-prod",
3
+ "version": "0.31.21-beta.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -21,7 +21,7 @@
21
21
  "@feedmepos/core-legacy": "file:../../core-legacy-0.7.tar.gz",
22
22
  "@feedmepos/custom-attributes": "0.0.0-rc.6",
23
23
  "@feedmepos/inventory-core": "^0.2.6",
24
- "@feedmepos/menu": "1.5.26",
24
+ "@feedmepos/menu": "1.6.4",
25
25
  "@feedmepos/mf-inventory-portal": "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz",
26
26
  "@feedmepos/remy-vue-client": "0.1.3-beta.8",
27
27
  "@feedmepos/ui-library": "1.7.0",