@feedmepos/mf-menu 0.31.28-beta.4 → 0.31.28-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-OYiQKBH8.js → App-BqPCLCHm.js} +20 -20
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-B9Yi7fpf.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CkbWwRP-.js} +2 -2
  3. package/dist/{Catalog-CJuCnAkc.js → Catalog-Zov4-dwR.js} +5 -5
  4. package/dist/{Category-BIGHSGD7.js → Category-BGA5SZdf.js} +5 -5
  5. package/dist/{Category-qmwRfE72.js → Category-Dz-X_LuD.js} +4 -4
  6. package/dist/{CookingGuide-CN-XKW3t.js → CookingGuide-2dJudXzG.js} +3 -3
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-D1Wb_3hj.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-xXZOEPQW.js} +1 -1
  8. package/dist/{Group-DGjwRxOl.js → Group-BX40aucL.js} +1 -1
  9. package/dist/{Group-CevExfBm.js → Group-D1pORlQ7.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-Dl8diX9V.js → Group.vue_vue_type_script_setup_true_lang-X-9SAuN-.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWXth3ZZ.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CgYCkrDC.js} +3 -3
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C00nzR5b.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DbQz7p_Q.js} +525 -525
  13. package/dist/{Ingredient-LeBFJoqX.js → Ingredient-BJeQERGb.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BaJP6UyM.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BkOS1W4B.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-CfjDBEka.js → LinkProductSideSheet-B56bKAIq.js} +1 -1
  16. package/dist/{MenuSetting-DC0oqUcP.js → MenuSetting-Ca7Wo36k.js} +4 -4
  17. package/dist/{PrintRoute-Dp6trGhb.js → PrintRoute-RqNaVJt8.js} +3 -3
  18. package/dist/{Product-Cu8HHrQZ.js → Product-BrIWo_FB.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-Bx0j-IiI.js → Product.vue_vue_type_script_setup_true_lang-C9OdOqg2.js} +11 -11
  20. package/dist/{ProductInternalTools-CaY2Ooqg.js → ProductInternalTools-mUvrLuKC.js} +6 -6
  21. package/dist/{Products-Cqd51_t9.js → Products-CizZs-P6.js} +10 -10
  22. package/dist/{Publish-CDa7DLWg.js → Publish-DSJZ3VV6.js} +3 -3
  23. package/dist/{Recipe-CH752Ij4.js → Recipe-Duvb_OsL.js} +4 -4
  24. package/dist/{Scheduler-C10gssgy.js → Scheduler-CVZk4QP1.js} +3 -3
  25. package/dist/{ServingSequence-B_lTgfmI.js → ServingSequence-BBhEvasg.js} +3 -3
  26. package/dist/{Setting-evnuVJSi.js → Setting-C7Ag0HbH.js} +4 -4
  27. package/dist/{Subcategory-J6zm0LPQ.js → Subcategory-DXtINdbf.js} +4 -4
  28. package/dist/{Takeaway-BcOoEVFn.js → Takeaway-B5kHzfE9.js} +4 -4
  29. package/dist/{Takeaway-CbzCu72G.js → Takeaway-B8kbwYG3.js} +1 -1
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Qzmd0Lru.js → Takeaway.vue_vue_type_script_setup_true_lang-ODlseSlR.js} +5 -5
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BsfiDWme.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-U7oDaAua.js} +13 -13
  32. package/dist/{Unit-DXvQRwOE.js → Unit-OgeZYRPC.js} +2 -2
  33. package/dist/{Variant-BrdiYbYw.js → Variant-C67j8a3k.js} +3 -3
  34. package/dist/{_id_-BB0S1WBJ.js → _id_-B5x96VR9.js} +9 -9
  35. package/dist/{app-m-RJeteY.js → app-BV2WlTrF.js} +1 -1
  36. package/dist/{app-ChGeo3LD.js → app-goVTJlsi.js} +24 -24
  37. package/dist/app.js +1 -1
  38. package/dist/assets/{linked-status-DHL7shzt.js → linked-status-C17yvM8S.js} +2 -2
  39. package/dist/assets/{override-menu-CPq9xiTX.js → override-menu-O37U8foX.js} +2 -2
  40. package/dist/assets/{validate-menu-Po_OtOkz.js → validate-menu-mHykOEii.js} +2 -2
  41. package/dist/{catalog-CB7SWQej.js → catalog-COvddVLe.js} +1 -1
  42. package/dist/{catalogSetting-CwlHKoRH.js → catalogSetting-BwuC5pR_.js} +1 -1
  43. package/dist/{category-DF_SanIL.js → category-DXi2kgK2.js} +1 -1
  44. package/dist/{currency-BUGlGHqr.js → currency-xck86dpi.js} +1 -1
  45. package/dist/{dayjs.min-CBz0Ydw3.js → dayjs.min-BzpXFxbA.js} +1 -1
  46. package/dist/{index-7VwVx85C.js → index-BJsGl_i5.js} +1 -1
  47. package/dist/{index-D3NIoF8G.js → index-Bof0KM9q.js} +2 -2
  48. package/dist/{index-3KgNNoAW.js → index-aEb3b0Lr.js} +3 -3
  49. package/dist/{item-DoZByICs.js → item-DwrA5hHv.js} +15 -15
  50. package/dist/{jszip.min-DGltpjZ9.js → jszip.min-CLxaWHgI.js} +245 -245
  51. package/dist/{menu-CVNzsVWF.js → menu-BJkYBFmC.js} +1 -1
  52. package/dist/{menu-CAymvpWj.js → menu-BsztpJyR.js} +410 -410
  53. package/dist/{priceTier-B1OBxCC9.js → priceTier-D1S7SEE0.js} +1 -1
  54. package/dist/{scheduler-DWLBMI0u.js → scheduler-Cr4Y7RAY.js} +3 -3
  55. package/dist/{subcategory-CkIC_HKl.js → subcategory-DK5pTwjA.js} +23 -23
  56. package/dist/{toExcel-0T3JK1E0.js → toExcel-B5foSdpU.js} +2 -2
  57. package/dist/{unit-CQXu9Owp.js → unit-Bg7AlIgu.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-CAymvpWj.js";
4
+ import { u as k, D as M } from "./menu-BsztpJyR.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-CAymvpWj.js";
2
+ import { H as S, G as r, u as pe, I as ve, J as ue } from "./menu-BsztpJyR.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-CVNzsVWF.js";
9
- import { L as ge } from "./LinkProductSideSheet-CfjDBEka.js";
8
+ import { u as he } from "./menu-BJkYBFmC.js";
9
+ import { L as ge } from "./LinkProductSideSheet-B56bKAIq.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 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 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-CAymvpWj.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 Oe, unref as O, withCtx as Ne, createVNode as xe } 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 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-BsztpJyR.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-DHL7shzt.js", ze = "/assets/override-menu-CPq9xiTX.js";
6
+ const je = "/assets/linked-status-C17yvM8S.js", ze = "/assets/override-menu-O37U8foX.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,
@@ -251,8 +251,8 @@ async function gt(e, n, a) {
251
251
  const u = (l = d.items) == null ? void 0 : l.find((p) => p._id === a && !p.combinationKey), s = e.modules.item.find((p) => p._id === a);
252
252
  if (u) {
253
253
  const p = (i = d.items) == null ? void 0 : i.filter((y) => y._id === a && y.combinationKey), g = [u, ...p].map((y) => {
254
- var V, O;
255
- const b = y.combinationKey ? (O = (V = s == null ? void 0 : s.variant) == null ? void 0 : V.variantCombinations) == null ? void 0 : O.find(
254
+ var V, x;
255
+ const b = y.combinationKey ? (x = (V = s == null ? void 0 : s.variant) == null ? void 0 : V.variantCombinations) == null ? void 0 : x.find(
256
256
  (P) => P.combinationKey === y.combinationKey
257
257
  ) : s, F = b && s ? f(s, b) : y;
258
258
  return f(F, y);
@@ -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 = 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 && E.push(e.menu);
357
357
  }
358
- const p = Q(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
  () => {
@@ -664,7 +664,7 @@ const nt = We(
664
664
  }
665
665
  };
666
666
  }
667
- ), X = /* @__PURE__ */ Re({
667
+ ), X = /* @__PURE__ */ Te({
668
668
  __name: "AddSubcategoryDialogContentComponent",
669
669
  props: {
670
670
  initialValue: {}
@@ -677,7 +677,7 @@ const nt = We(
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) => {
@@ -688,17 +688,17 @@ const nt = We(
688
688
  }
689
689
  ), (l, i) => {
690
690
  const d = z("fm-text-field"), u = z("FmForm");
691
- return xe(), Ve(u, {
692
- onValidationSuccess: i[1] || (i[1] = (s) => x(f)("primary"))
691
+ return Oe(), Ve(u, {
692
+ onValidationSuccess: i[1] || (i[1] = (s) => O(f)("primary"))
693
693
  }, {
694
694
  default: Ne(() => [
695
- Oe(d, {
695
+ xe(d, {
696
696
  modelValue: o.value,
697
697
  "onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s),
698
- rules: [(s) => !!s || x(a)("menu.subcategory.dialog.add.name.required")],
698
+ rules: [(s) => !!s || O(a)("menu.subcategory.dialog.add.name.required")],
699
699
  autofocus: "",
700
- label: x(a)("menu.subcategory.dialog.add.name.label"),
701
- placeholder: x(a)("menu.subcategory.dialog.add.name.placeholder")
700
+ label: O(a)("menu.subcategory.dialog.add.name.label"),
701
+ placeholder: O(a)("menu.subcategory.dialog.add.name.placeholder")
702
702
  }, null, 8, ["modelValue", "rules", "label", "placeholder"])
703
703
  ]),
704
704
  _: 1
@@ -712,7 +712,7 @@ const nt = We(
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
718
  contentComponent: X,
@@ -1,5 +1,5 @@
1
- import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-C00nzR5b.js";
2
- import "./menu-CAymvpWj.js";
1
+ import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DbQz7p_Q.js";
2
+ import "./menu-BsztpJyR.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-CAymvpWj.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-BsztpJyR.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.28-beta.4",
3
+ "version": "0.31.28-prod",
4
4
  "files": [
5
5
  "dist"
6
6
  ],