@feedmepos/mf-menu 0.31.21-prod → 0.31.22-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 (59) hide show
  1. package/dist/{App-B3OCb5RR.js → App-Bs_gq8G8.js} +20 -20
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CT8VhwK5.js → ApplyProduct.vue_vue_type_script_setup_true_lang--Yo3nEyE.js} +2 -2
  3. package/dist/{Catalog-Crp77rcP.js → Catalog-DQRJasaD.js} +5 -5
  4. package/dist/{Category-BjvbQbZ7.js → Category-BMEOZPI9.js} +4 -4
  5. package/dist/{Category-BVu5UJrq.js → Category-CdyPdjXs.js} +5 -5
  6. package/dist/{CookingGuide-BHQGRbhU.js → CookingGuide-BP-btqcw.js} +3 -3
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Q9trC3FK.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DbfRwrUW.js} +1 -1
  8. package/dist/{Group-99bZ1CMh.js → Group-BeZ_Sh57.js} +3 -3
  9. package/dist/{Group-CW5zq8Yw.js → Group-DMN6va6z.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-bJYDfovT.js → Group.vue_vue_type_script_setup_true_lang-BdfsmcVD.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-GagxGiml.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BLl-giy-.js} +3 -3
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Cg9-bTqW.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Dn7QCG2L.js} +6 -6
  13. package/dist/{Ingredient-CpL3BT17.js → Ingredient-DgRd7Jag.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-VXqkBhcw.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DvQj8DEz.js} +2 -2
  15. package/dist/{LinkProductSideSheet-CVTvEime.js → LinkProductSideSheet-BKgJzkPL.js} +1 -1
  16. package/dist/{MenuSetting-rws3dmLt.js → MenuSetting-DJjbaKHe.js} +4 -4
  17. package/dist/{PrintRoute-D_xQlVrm.js → PrintRoute-bAZlFcX0.js} +3 -3
  18. package/dist/{Product-B4W4ytv_.js → Product-DmGB_exq.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-B3ADUwr4.js → Product.vue_vue_type_script_setup_true_lang-nR9tssh6.js} +11 -11
  20. package/dist/{ProductInternalTools-Diaj5lEd.js → ProductInternalTools-BnZ4D4Zn.js} +6 -6
  21. package/dist/{Products-BJNj0kUO.js → Products-Ciwg17cA.js} +10 -10
  22. package/dist/{Publish-DBoxL0FR.js → Publish-BKqy68uM.js} +3 -3
  23. package/dist/{Recipe-Bwyl4spZ.js → Recipe-Ci9k8tH2.js} +4 -4
  24. package/dist/{Scheduler-ckowO38_.js → Scheduler-CspZeCTf.js} +3 -3
  25. package/dist/{ServingSequence-DtqKL3vx.js → ServingSequence-CaFwESrB.js} +3 -3
  26. package/dist/{Setting-Csbqw4mB.js → Setting-CL3_3XtX.js} +4 -4
  27. package/dist/{Subcategory-BzQmw5gn.js → Subcategory-C7s99QHs.js} +4 -4
  28. package/dist/{Takeaway-Cu2Ncaon.js → Takeaway-Bvz1cTn7.js} +1 -1
  29. package/dist/{Takeaway-o1XqSpdS.js → Takeaway-DE8wTm3g.js} +4 -4
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DKU7nLcY.js → Takeaway.vue_vue_type_script_setup_true_lang-Cj2mW9A3.js} +5 -5
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CjByqxo7.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ot61ZHZ2.js} +13 -13
  32. package/dist/{Unit-AyF3opf9.js → Unit-D1kO9xQ1.js} +2 -2
  33. package/dist/{Variant-D4OU4Axt.js → Variant-DaPHw-hG.js} +3 -3
  34. package/dist/{_id_-B2WcZG_1.js → _id_-B6NpchUg.js} +9 -9
  35. package/dist/{app-BakElBS9.js → app-D9pMk7tW.js} +1 -1
  36. package/dist/{app-Fi3FV6XU.js → app-DthnziYV.js} +24 -24
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  39. package/dist/assets/{linked-status-DXVGHD9F.js → linked-status-CpQ-1DHU.js} +2 -2
  40. package/dist/assets/{override-menu-D354p4dS.js → override-menu-D1dKB9ko.js} +2 -2
  41. package/dist/assets/{validate-menu-DSU0Yo_w.js → validate-menu-BF1dCHiN.js} +2 -2
  42. package/dist/{catalog-BclJn-tJ.js → catalog-DCF63Bjk.js} +1 -1
  43. package/dist/{catalogSetting-DgNhmy1P.js → catalogSetting-BvJnQe7Q.js} +1 -1
  44. package/dist/{category--58oFtXa.js → category-Bzom9XMw.js} +1 -1
  45. package/dist/{currency-B6vV7YvN.js → currency-o2stTzq5.js} +1 -1
  46. package/dist/{dayjs.min-BHBf5xnE.js → dayjs.min-DXGCvibe.js} +1 -1
  47. package/dist/{index-BM67PLtA.js → index-BG8uzbYg.js} +2 -2
  48. package/dist/{index-Bd6N7ScE.js → index-CLjnahTc.js} +3 -3
  49. package/dist/{index-CA1VTjPo.js → index-CdNoWfcx.js} +1 -1
  50. package/dist/{item-P4Z9ajrd.js → item-4Jdx-jdA.js} +643 -643
  51. package/dist/{jszip.min-BFhB-Kfj.js → jszip.min-kJhQn2xH.js} +2 -2
  52. package/dist/{menu-DwfRaHd6.js → menu-C_ORO6n9.js} +866 -860
  53. package/dist/{menu-CM3LA64x.js → menu-CsyfIvpN.js} +1 -1
  54. package/dist/{priceTier-CfPsa35F.js → priceTier-D72Z5AFO.js} +1 -1
  55. package/dist/{scheduler-DL0twxji.js → scheduler-D_WSyJqf.js} +3 -3
  56. package/dist/{subcategory-D6wfrDM6.js → subcategory-YluprNtV.js} +19 -19
  57. package/dist/{toExcel-BAShvc1M.js → toExcel-aHIDKh8e.js} +2 -2
  58. package/dist/{unit-BXDFIbPg.js → unit-5WnoZjty.js} +1 -1
  59. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { computed as n, onMounted as d, onBeforeUnmount as g } from "vue";
2
- import { u as a } from "./menu-DwfRaHd6.js";
2
+ import { u as a } from "./menu-C_ORO6n9.js";
3
3
  import "@feedmepos/mf-common";
4
4
  import "@feedmepos/ui-library";
5
5
  function p() {
@@ -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-DwfRaHd6.js";
4
+ import { u as k, D as M } from "./menu-C_ORO6n9.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-DwfRaHd6.js";
2
+ import { H as b, G as d, u as ie, I as de, J as X } from "./menu-C_ORO6n9.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-CM3LA64x.js";
9
- import { L as _e } from "./LinkProductSideSheet-CVTvEime.js";
8
+ import { u as pe } from "./menu-CsyfIvpN.js";
9
+ import { L as _e } from "./LinkProductSideSheet-BKgJzkPL.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 Q, ref as T, computed as h, shallowReactive as Fe, effectScope as Re, watch as q, 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 He, u as qe } from "./menu-DwfRaHd6.js";
1
+ import { shallowRef as X, ref as T, computed as h, shallowReactive as Fe, effectScope as Re, watch as q, 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 E, aj as L, am as Pe, an as Ae, A as Ue, ac as Ke, ao as De, ap as $e, a9 as He, u as qe } from "./menu-C_ORO6n9.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-DXVGHD9F.js", Ge = "/assets/override-menu-D354p4dS.js";
7
- function ze(e) {
6
+ const je = "/assets/linked-status-CpQ-1DHU.js", ze = "/assets/override-menu-D1dKB9ko.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,
@@ -118,7 +118,7 @@ function Y(e, n) {
118
118
  }), r;
119
119
  }), a;
120
120
  }
121
- function Xe(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
- ...Xe(s, y),
165
+ ...Qe(s, y),
166
166
  category: o || r ? y == null ? void 0 : y.category : null
167
167
  };
168
168
  });
@@ -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
@@ -232,7 +232,7 @@ function _t(e, n, a) {
232
232
  return r(n, a);
233
233
  }
234
234
  const H = /* @__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 (H.has(o))
238
238
  return H.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]);
@@ -268,7 +268,7 @@ async function gt(e, n, a) {
268
268
  function Ze({
269
269
  maxHistorySize: e = 50
270
270
  }) {
271
- const n = Q([]), a = T(-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 = 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 = Q(oe()), g = T(!1), y = T(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(
@@ -660,7 +660,7 @@ const nt = We(
660
660
  }
661
661
  };
662
662
  }
663
- ), X = /* @__PURE__ */ Te({
663
+ ), Q = /* @__PURE__ */ Te({
664
664
  __name: "AddSubcategoryDialogContentComponent",
665
665
  props: {
666
666
  initialValue: {}
@@ -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
  }, {
@@ -711,7 +711,7 @@ const nt = We(
711
711
  const u = T(!1);
712
712
  e.open({
713
713
  title: o("menu.subcategory.manager.dialog.add.title"),
714
- contentComponent: X,
714
+ contentComponent: Q,
715
715
  primaryActions: {
716
716
  text: o("menu.subcategory.manager.dialog.add.action"),
717
717
  close: !1,
@@ -742,7 +742,7 @@ const nt = We(
742
742
  function l(u) {
743
743
  e.open({
744
744
  title: o("menu.subcategory.manager.dialog.update.title"),
745
- contentComponent: X,
745
+ contentComponent: Q,
746
746
  contentComponentProps: {
747
747
  initialValue: u.name
748
748
  },
@@ -808,6 +808,6 @@ export {
808
808
  gt as f,
809
809
  mt as g,
810
810
  dt as m,
811
- Qe as o,
811
+ Xe 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-Cg9-bTqW.js";
2
- import "./menu-DwfRaHd6.js";
1
+ import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-Dn7QCG2L.js";
2
+ import "./menu-C_ORO6n9.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-DwfRaHd6.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-C_ORO6n9.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.21-prod",
3
+ "version": "0.31.22-beta.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],