@feedmepos/mf-menu 0.32.8-dev → 0.32.8

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 (62) hide show
  1. package/dist/{App-B5S9byVJ.js → App-C8wS3ShV.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-bSXFWpq_.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BNpRxwxr.js} +3 -3
  3. package/dist/{Catalog-CTfF5FmI.js → Catalog-BFd1AM_V.js} +6 -6
  4. package/dist/{Category-BntCVeoT.js → Category-DBWqpshQ.js} +6 -6
  5. package/dist/{Category-Z3bphlCX.js → Category-dmAlwuez.js} +4 -4
  6. package/dist/{CookingGuide-CoPo2Alx.js → CookingGuide-jIeAIeh0.js} +4 -4
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-DJ3sb3XV.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-B64i08zq.js} +1 -1
  8. package/dist/{Group-CblWJOl1.js → Group-D1ydkrLs.js} +1 -1
  9. package/dist/{Group-B7rZfFlT.js → Group-FF5Hjlxe.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-wX7yqw0Z.js → Group.vue_vue_type_script_setup_true_lang-DAD-k-wo.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DW1gBCBA.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-G6f6Nmpp.js} +5 -5
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CcQBD0I8.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BZPytpjY.js} +3127 -3127
  13. package/dist/{Ingredient-Bn-jeNeI.js → Ingredient-Dd5DxV-y.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DbGNFA3D.js → InventoryBinding.vue_vue_type_script_setup_true_lang-giegQwr5.js} +2 -2
  15. package/dist/{LinkProductSideSheet-BjcQDT4U.js → LinkProductSideSheet-CCSmzw8I.js} +3 -3
  16. package/dist/{MenuSetting-BT5YSMgK.js → MenuSetting-DUoenWGs.js} +5 -5
  17. package/dist/{PrintRoute-B0j0eqNM.js → PrintRoute-BnC6HtKs.js} +4 -4
  18. package/dist/{Product-BOMprFhc.js → Product-CHQio6L_.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-q9xFzQ0v.js → Product.vue_vue_type_script_setup_true_lang-jjHqJtPH.js} +13 -13
  20. package/dist/{ProductInternalTools-O5d2jMAH.js → ProductInternalTools-FxIUEUXl.js} +6 -6
  21. package/dist/{Products-BnMrK40x.js → Products-B4G9pxFp.js} +11 -11
  22. package/dist/{Publish-dTP5mQS3.js → Publish-CQgttpHh.js} +3 -3
  23. package/dist/{Recipe-DnftcZPO.js → Recipe-CTDKKfsd.js} +4 -4
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DSfiVSBV.js → RuleView.vue_vue_type_script_setup_true_lang-B9BRYMTj.js} +2 -2
  25. package/dist/{Scheduler-DRLaQK_V.js → Scheduler-DFHMH-x_.js} +3 -3
  26. package/dist/{ServingSequence-CPIyJ7T8.js → ServingSequence-BR9xYWGr.js} +3 -3
  27. package/dist/{Setting-CLtISC4c.js → Setting-UnXT4s-d.js} +5 -5
  28. package/dist/{Subcategory-b0bXCYYY.js → Subcategory-okheUt4z.js} +4 -4
  29. package/dist/{Takeaway-CCIKDCoF.js → Takeaway-BVPCos7g.js} +4 -4
  30. package/dist/{Takeaway-h9uUxFJd.js → Takeaway-BqnNk-34.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BOG_W-2a.js → Takeaway.vue_vue_type_script_setup_true_lang-DOIkhJuQ.js} +5 -5
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-D4KcX3XQ.js → Thumbnail.vue_vue_type_script_setup_true_lang-BFG6dtwc.js} +4 -4
  33. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B3EByLES.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CrGYJDpK.js} +15 -15
  34. package/dist/{Unit-B0kiwrN6.js → Unit-B6KaHkaQ.js} +2 -2
  35. package/dist/{Variant-CJSk0kTW.js → Variant-DyQvzOM1.js} +3 -3
  36. package/dist/{_id_-108G3lsv.js → _id_-C38gTgwi.js} +10 -10
  37. package/dist/{app-CPJH5bgs.js → app-CgTo5Mn2.js} +26 -26
  38. package/dist/{app-BTn28hDr.js → app-eCkD4rhw.js} +1 -1
  39. package/dist/app.js +1 -1
  40. package/dist/assets/{validate-menu-YuXYm9iE.js → linked-status-jp8Wgf8m.js} +7 -7
  41. package/dist/assets/{override-menu-D47qVZAi.js → override-menu-Y7KA9W5q.js} +2 -2
  42. package/dist/assets/{linked-status-Bp5piT25.js → validate-menu-BKtf8I-m.js} +7 -7
  43. package/dist/{catalog-CpFTifAS.js → catalog-CAwAsANl.js} +1 -1
  44. package/dist/{catalogSetting-DjGqI2Vf.js → catalogSetting-DBYK5i1A.js} +1 -1
  45. package/dist/{category-DaRWiQd8.js → category-sUsBd0Fp.js} +1 -1
  46. package/dist/{currency-DbURufyM.js → currency-aUeOA6Sh.js} +1 -1
  47. package/dist/{index-kjRAsH_h.js → index-BOfpmGre.js} +3 -3
  48. package/dist/{index-D67GKEzf.js → index-BgofvuRO.js} +1 -1
  49. package/dist/{index-C6AkIinM.js → index-CEQnejlh.js} +1 -1
  50. package/dist/{index-pJtym1c6.js → index-D2v0niii.js} +4 -4
  51. package/dist/{index.vue_vue_type_script_setup_true_lang-BvohjQ00.js → index.vue_vue_type_script_setup_true_lang-D_YxZIKW.js} +154 -154
  52. package/dist/{item-2WoPAnNJ.js → item-Cp2Y6SVB.js} +14 -14
  53. package/dist/{iteration-BGItxpWj.js → iteration-Su0utDgZ.js} +1 -1
  54. package/dist/{jszip.min-D8NeBCPG.js → jszip.min-D--hravX.js} +353 -353
  55. package/dist/{menu-DVdMR0zo.js → menu-Ca7L4Rag.js} +1 -1
  56. package/dist/{menuV2-CcBdUc80.js → menuV2-CjV6wIPJ.js} +23 -23
  57. package/dist/{priceTier-CTfRyTuS.js → priceTier-DwLiGawi.js} +1 -1
  58. package/dist/{scheduler-DOMDX4d7.js → scheduler-mtesIJHS.js} +4 -4
  59. package/dist/{subcategory-NsslZ1my.js → subcategory-Cjjc11DF.js} +2 -2
  60. package/dist/{toExcel-Bdne-Dw_.js → toExcel-m4AG-THf.js} +2 -2
  61. package/dist/{unit-DKyvdauo.js → unit-DM0AOsGB.js} +2 -2
  62. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { computed as n, onMounted as d, onBeforeUnmount as m } from "vue";
2
- import { u as c } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
2
+ import { u as c } from "./index.vue_vue_type_script_setup_true_lang-D_YxZIKW.js";
3
3
  import "@feedmepos/mf-common";
4
4
  import "@feedmepos/ui-library";
5
5
  function p() {
@@ -1,12 +1,12 @@
1
1
  var We = Object.defineProperty;
2
2
  var qe = (e, t, n) => t in e ? We(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var ne = (e, t, n) => qe(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { ao as ae, I as C, D as T, A as ue, ap as re, K as B, J as ie, ac as x, a as q, Y as V, am as oe, aq as Le, ar as ze, B as Be, ae as Ge, as as He, at as Je, ab as Ye } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
5
- import { defineStore as Ze } from "pinia";
6
- import { shallowRef as j, ref as G, computed as S, shallowReactive as Qe, effectScope as Xe, watch as et } from "vue";
4
+ import { ao as ae, I as C, D as T, A as ue, ap as re, K as G, J as ie, ac as x, a as q, Y as V, am as oe, aq as Le, ar as ze, B as Ge, ae as Be, as as He, at as Je, ab as Ye } from "./index.vue_vue_type_script_setup_true_lang-D_YxZIKW.js";
5
+ import { defineStore as Qe } from "pinia";
6
+ import { shallowRef as j, ref as B, computed as S, shallowReactive as Xe, effectScope as Ze, watch as et } from "vue";
7
7
  import { useCoreStore as se } from "@feedmepos/mf-common";
8
8
  import { useSnackbar as tt } from "@feedmepos/ui-library";
9
- const nt = "/assets/linked-status-Bp5piT25.js", rt = "/assets/override-menu-D47qVZAi.js";
9
+ const nt = "/assets/linked-status-jp8Wgf8m.js", rt = "/assets/override-menu-Y7KA9W5q.js";
10
10
  function ot(e) {
11
11
  var o;
12
12
  const t = C(e), n = (o = t.variant) == null ? void 0 : o.variantCombinations;
@@ -491,7 +491,7 @@ function pt(e) {
491
491
  if (Array.isArray(r) && r.length === 1)
492
492
  t[`_${o}`] = [r[0], M, M];
493
493
  else {
494
- const u = Z(r);
494
+ const u = Q(r);
495
495
  u !== void 0 && (t[n] = u);
496
496
  }
497
497
  }
@@ -504,13 +504,13 @@ function ht(e) {
504
504
  if (Array.isArray(o))
505
505
  o.length === 1 ? t[n] = [o[0], M, M] : o.length === 3 && o[2] === M ? t[n] = [o[0]] : o.length === 2 && (t[n] = [o[1], o[0]]);
506
506
  else {
507
- const r = Z(o);
507
+ const r = Q(o);
508
508
  r !== void 0 && (t[n] = r);
509
509
  }
510
510
  }
511
511
  return t;
512
512
  }
513
- function Z(e) {
513
+ function Q(e) {
514
514
  if (e !== void 0) {
515
515
  if (Array.isArray(e)) {
516
516
  if (e.length === 1)
@@ -526,7 +526,7 @@ function Z(e) {
526
526
  }
527
527
  }
528
528
  function de(e) {
529
- return Z(e);
529
+ return Q(e);
530
530
  }
531
531
  function gt(e, t, n) {
532
532
  const o = de(t);
@@ -566,7 +566,7 @@ function bt({
566
566
  includeValueOnMove: !1
567
567
  },
568
568
  cloneDiffValues: !1
569
- }), n = j(null), o = j([]), r = G(-1), u = j(null), l = S(() => r.value > 0), a = S(() => r.value < o.value.length - 1);
569
+ }), n = j(null), o = j([]), r = B(-1), u = j(null), l = S(() => r.value > 0), a = S(() => r.value < o.value.length - 1);
570
570
  function c(y) {
571
571
  if (n.value === null) {
572
572
  n.value = C(y), u.value = C(y), o.value = [{ delta: null }], r.value = 0;
@@ -616,7 +616,7 @@ function bt({
616
616
  }
617
617
  const wt = {
618
618
  async updateMenuModule(e, t) {
619
- const n = B.RequestRunner.operation(t, e.modules);
619
+ const n = G.RequestRunner.operation(t, e.modules);
620
620
  if (n.validateError.length > 0)
621
621
  throw new Error(n.validateError.join(`
622
622
  `));
@@ -664,10 +664,10 @@ function Mt() {
664
664
  }
665
665
  };
666
666
  }
667
- const $t = Ze(
667
+ const $t = Qe(
668
668
  "mf-menu-store-v2",
669
669
  () => {
670
- const e = Qe(Mt()), t = se(), n = tt(), o = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
670
+ const e = Xe(Mt()), t = se(), n = tt(), o = S(() => e.menu.modules.serveSequence ? x(e.menu.modules.serveSequence, {
671
671
  selector: "position"
672
672
  }) : []), r = S(() => {
673
673
  var s;
@@ -692,7 +692,7 @@ const $t = Ze(
692
692
  function f(s, d = !0) {
693
693
  e.menu = { ...s, _rev: e.menu._rev }, d && D.push(e.menu);
694
694
  }
695
- const p = j(fe()), v = G(!1), y = G(1);
695
+ const p = j(fe()), v = B(!1), y = B(1);
696
696
  async function h() {
697
697
  var m;
698
698
  v.value = !0;
@@ -729,15 +729,15 @@ const $t = Ze(
729
729
  }
730
730
  const w = ie.debounce(h, 200);
731
731
  let I = null, E = null;
732
- function Q() {
733
- E && (E(), E = null), I && I.stop(), I = Xe(!0), E = I.run(() => et(
732
+ function X() {
733
+ E && (E(), E = null), I && I.stop(), I = Ze(!0), E = I.run(() => et(
734
734
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
735
735
  () => {
736
736
  v.value || w();
737
737
  }
738
738
  )) || null;
739
739
  }
740
- Q();
740
+ X();
741
741
  const me = S(() => [
742
742
  {
743
743
  label: "Main",
@@ -747,7 +747,7 @@ const $t = Ze(
747
747
  label: s.name,
748
748
  value: s._id
749
749
  }))
750
- ]), X = S(() => {
750
+ ]), Z = S(() => {
751
751
  const s = p.value.modules.category;
752
752
  return [
753
753
  ...U.value.item.addon ? [
@@ -785,7 +785,7 @@ const $t = Ze(
785
785
  m,
786
786
  (g) => g.code || g.name
787
787
  ).reduce((g, _, A) => (g[_._id] = A + d[_.category || ""], g), {});
788
- }), pe = S(() => oe(N.value, X.value, ee.value)), he = S(() => {
788
+ }), pe = S(() => oe(N.value, Z.value, ee.value)), he = S(() => {
789
789
  const s = U.value.item.addon ? [
790
790
  {
791
791
  _id: e.currentCatalogId ? "" : null,
@@ -904,10 +904,10 @@ const $t = Ze(
904
904
  }
905
905
  const ke = S(() => {
906
906
  var g;
907
- const s = ["SV5", "SV10"], d = Be.Country.getCountryFlattenTaxes(
907
+ const s = ["SV5", "SV10"], d = Ge.Country.getCountryFlattenTaxes(
908
908
  se().currentCountry.value
909
909
  ), m = d.filter((_) => u.value || !s.includes(_.taxCode)).map((_) => ({
910
- label: `${_.name} (${Ge(_.rate)}%)`,
910
+ label: `${_.name} (${Be(_.rate)}%)`,
911
911
  value: W(_),
912
912
  meta: {
913
913
  rate: _.rate
@@ -945,7 +945,7 @@ const $t = Ze(
945
945
  }));
946
946
  try {
947
947
  if (d || g.some(
948
- (A) => [B.F_OPERATION_TYPE.delete, B.F_OPERATION_TYPE.deleteMany].includes(A.operation)
948
+ (A) => [G.F_OPERATION_TYPE.delete, G.F_OPERATION_TYPE.deleteMany].includes(A.operation)
949
949
  )) {
950
950
  const A = await He(g, e.menu.modules);
951
951
  if (A !== !0) throw new Error(A);
@@ -992,7 +992,7 @@ const $t = Ze(
992
992
  schedulers: c,
993
993
  currentScheduler: i,
994
994
  catalogOptions: me,
995
- categories: X,
995
+ categories: Z,
996
996
  subcategories: ve,
997
997
  items: ee,
998
998
  sortedItems: ye,
@@ -1035,7 +1035,7 @@ const $t = Ze(
1035
1035
  w.cancel(), E && (E(), E = null), I && (I.stop(), I = null), Ue();
1036
1036
  },
1037
1037
  $reinitialize: () => {
1038
- Q();
1038
+ X();
1039
1039
  }
1040
1040
  };
1041
1041
  }
@@ -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, G as M } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
4
+ import { u as k, G as M } from "./index.vue_vue_type_script_setup_true_lang-D_YxZIKW.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 L, 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 { I as S, A as r, u as pe, J as ve, K as ue } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
2
+ import { I as S, A as r, u as pe, J as ve, K as ue } from "./index.vue_vue_type_script_setup_true_lang-D_YxZIKW.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
- import { _ as ne } from "./RuleView.vue_vue_type_script_setup_true_lang-DSfiVSBV.js";
6
+ import { _ as ne } from "./RuleView.vue_vue_type_script_setup_true_lang-B9BRYMTj.js";
7
7
  import { u as ye } from "./discardConfirm-BHni0LNu.js";
8
- import { u as he } from "./menu-DVdMR0zo.js";
9
- import { L as ge } from "./LinkProductSideSheet-BjcQDT4U.js";
8
+ import { u as he } from "./menu-Ca7L4Rag.js";
9
+ import { L as ge } from "./LinkProductSideSheet-CCSmzw8I.js";
10
10
  const Ve = { class: "space-y-8" }, Fe = {
11
11
  key: 0,
12
12
  class: "space-y-16"
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as A, unref as c, withCtx as C, createVNode as V } from "vue";
2
- import { K as l, A as d, u as F } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
2
+ import { K as l, A as d, u as F } from "./index.vue_vue_type_script_setup_true_lang-D_YxZIKW.js";
3
3
  import { useI18n as b } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as P } from "@feedmepos/ui-library";
5
- import { u as v } from "./menuV2-CcBdUc80.js";
5
+ import { u as v } from "./menuV2-CjV6wIPJ.js";
6
6
  const y = /* @__PURE__ */ M({
7
7
  __name: "AddSubcategoryDialogContentComponent",
8
8
  props: {
@@ -1,5 +1,5 @@
1
- import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CcQBD0I8.js";
2
- import "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BZPytpjY.js";
2
+ import "./index.vue_vue_type_script_setup_true_lang-D_YxZIKW.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -1,12 +1,12 @@
1
1
  import { defineStore as W } from "pinia";
2
2
  import { defineComponent as T, computed as U, ref as h, watch as L, resolveComponent as V, createBlock as H, 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 P, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
- import { a6 as q, a7 as te, a4 as B, I as k, P as $, G as I, D as E, a5 as ne, K as C, A as D, J as oe, u as ae } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
3
+ import { a6 as q, a7 as te, a4 as B, I as k, P as $, G as I, D as E, a5 as ne, K as C, A as D, J as oe, u as ae } from "./index.vue_vue_type_script_setup_true_lang-D_YxZIKW.js";
4
4
  import { useI18n as N } 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";
7
7
  import { c as re } from "./check-C9mY6LiX.js";
8
8
  import "./vuedraggable-CK8z7qA8.js";
9
- import "./menuV2-CcBdUc80.js";
9
+ import "./menuV2-CjV6wIPJ.js";
10
10
  import "./app-5fxKLAzS.js";
11
11
  /* empty css */
12
12
  import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.32.8-dev",
3
+ "version": "0.32.8",
4
4
  "files": [
5
5
  "dist"
6
6
  ],