@feedmepos/mf-menu 0.31.28-beta.3 → 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-JT3apZxV.js → App-BqPCLCHm.js} +20 -20
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-3GZupnr5.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CkbWwRP-.js} +2 -2
  3. package/dist/{Catalog-kAI60cdJ.js → Catalog-Zov4-dwR.js} +5 -5
  4. package/dist/{Category-CkAn_OV_.js → Category-BGA5SZdf.js} +5 -5
  5. package/dist/{Category-DQjWYgVj.js → Category-Dz-X_LuD.js} +4 -4
  6. package/dist/{CookingGuide-Bthk1y77.js → CookingGuide-2dJudXzG.js} +3 -3
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-NpRnwCY7.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-xXZOEPQW.js} +1 -1
  8. package/dist/{Group-BkosIIKm.js → Group-BX40aucL.js} +1 -1
  9. package/dist/{Group-BGGn1Cm2.js → Group-D1pORlQ7.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-wJdVCYYu.js → Group.vue_vue_type_script_setup_true_lang-X-9SAuN-.js} +43 -43
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DnS02X6c.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CgYCkrDC.js} +3 -3
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-B_82rlxL.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DbQz7p_Q.js} +215 -215
  13. package/dist/{Ingredient-CFTQ0Bfc.js → Ingredient-BJeQERGb.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-Ibea3-vX.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BkOS1W4B.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-BecKfPsC.js → LinkProductSideSheet-B56bKAIq.js} +1 -1
  16. package/dist/{MenuSetting-DuIDUokD.js → MenuSetting-Ca7Wo36k.js} +4 -4
  17. package/dist/{PrintRoute-BcnNriE8.js → PrintRoute-RqNaVJt8.js} +3 -3
  18. package/dist/{Product-BOOAm4a0.js → Product-BrIWo_FB.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-CTIrwGpO.js → Product.vue_vue_type_script_setup_true_lang-C9OdOqg2.js} +11 -11
  20. package/dist/{ProductInternalTools-CLAl51zu.js → ProductInternalTools-mUvrLuKC.js} +6 -6
  21. package/dist/{Products-DVKuBS8J.js → Products-CizZs-P6.js} +10 -10
  22. package/dist/{Publish-CNg_VIIx.js → Publish-DSJZ3VV6.js} +3 -3
  23. package/dist/{Recipe-BcrMcQeV.js → Recipe-Duvb_OsL.js} +4 -4
  24. package/dist/{Scheduler-NByYPuMo.js → Scheduler-CVZk4QP1.js} +3 -3
  25. package/dist/{ServingSequence-BoyIqIYh.js → ServingSequence-BBhEvasg.js} +3 -3
  26. package/dist/{Setting-WbjnZJVn.js → Setting-C7Ag0HbH.js} +4 -4
  27. package/dist/{Subcategory-CEv5BrCf.js → Subcategory-DXtINdbf.js} +4 -4
  28. package/dist/{Takeaway-CfPmTA0E.js → Takeaway-B5kHzfE9.js} +4 -4
  29. package/dist/{Takeaway-Cc1bVUje.js → Takeaway-B8kbwYG3.js} +1 -1
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Bs50mb8k.js → Takeaway.vue_vue_type_script_setup_true_lang-ODlseSlR.js} +5 -5
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CClYMK28.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-U7oDaAua.js} +13 -13
  32. package/dist/{Unit-DQsNQ73i.js → Unit-OgeZYRPC.js} +2 -2
  33. package/dist/{Variant-BbotXK2d.js → Variant-C67j8a3k.js} +3 -3
  34. package/dist/{_id_-2-upiNil.js → _id_-B5x96VR9.js} +9 -9
  35. package/dist/{app-CbnHCo8C.js → app-BV2WlTrF.js} +1 -1
  36. package/dist/{app-CbNCInHo.js → app-goVTJlsi.js} +24 -24
  37. package/dist/app.js +1 -1
  38. package/dist/assets/{linked-status-DQrcb0dN.js → linked-status-C17yvM8S.js} +2 -2
  39. package/dist/assets/{override-menu-ABYeceI6.js → override-menu-O37U8foX.js} +2 -2
  40. package/dist/assets/{validate-menu-BUUUwe6X.js → validate-menu-mHykOEii.js} +2 -2
  41. package/dist/{catalog-n3cxFx7B.js → catalog-COvddVLe.js} +1 -1
  42. package/dist/{catalogSetting-Coex2wx4.js → catalogSetting-BwuC5pR_.js} +1 -1
  43. package/dist/{category-DDDCcevC.js → category-DXi2kgK2.js} +1 -1
  44. package/dist/{currency-YRHxgBh7.js → currency-xck86dpi.js} +1 -1
  45. package/dist/{dayjs.min-Bwk93uaZ.js → dayjs.min-BzpXFxbA.js} +1 -1
  46. package/dist/{index-BPAfFydt.js → index-BJsGl_i5.js} +1 -1
  47. package/dist/{index-CbWCuRqD.js → index-Bof0KM9q.js} +2 -2
  48. package/dist/{index-CcHAK_Wv.js → index-aEb3b0Lr.js} +3 -3
  49. package/dist/{item-BIRYK1Ue.js → item-DwrA5hHv.js} +15 -15
  50. package/dist/{jszip.min-CRbsELup.js → jszip.min-CLxaWHgI.js} +245 -245
  51. package/dist/{menu-DFzGLWUA.js → menu-BJkYBFmC.js} +1 -1
  52. package/dist/{menu-ipD3lXXk.js → menu-BsztpJyR.js} +410 -410
  53. package/dist/{priceTier-DB6-pxHE.js → priceTier-D1S7SEE0.js} +1 -1
  54. package/dist/{scheduler-vy0G0HXI.js → scheduler-Cr4Y7RAY.js} +3 -3
  55. package/dist/{subcategory-YqL6bVw8.js → subcategory-DK5pTwjA.js} +38 -38
  56. package/dist/{toExcel-CsQHeX96.js → toExcel-B5foSdpU.js} +2 -2
  57. package/dist/{unit-CuKfQHtl.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-ipD3lXXk.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-ipD3lXXk.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-DFzGLWUA.js";
9
- import { L as ge } from "./LinkProductSideSheet-BecKfPsC.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 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 w, aj as L, am as Pe, an as Ae, A as Ue, ac as Ke, ao as De, ap as $e, a9 as Ye, u as qe } from "./menu-ipD3lXXk.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
- import { useSnackbar as He, useDialogChild as Be } from "@feedmepos/ui-library";
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-DQrcb0dN.js", ze = "/assets/override-menu-ABYeceI6.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;
@@ -85,7 +85,7 @@ function Je(e, n) {
85
85
  if (u)
86
86
  return R(u, n, 1);
87
87
  const s = {
88
- ...O.generator.initMenuV4ItemOverrider(),
88
+ ...N.generator.initMenuV4ItemOverrider(),
89
89
  _id: d._id,
90
90
  combinationKey: d.combinationKey
91
91
  };
@@ -93,7 +93,7 @@ function Je(e, n) {
93
93
  });
94
94
  return { ...f, items: i };
95
95
  }), o = e.variant ? e.variant.variantCombinations.map((f) => R(f, n, 1)) : [], r = {
96
- ...O.generator.initMenuV4ItemOverrider(),
96
+ ...N.generator.initMenuV4ItemOverrider(),
97
97
  _id: e._id,
98
98
  name: e.name,
99
99
  code: e.code,
@@ -101,7 +101,7 @@ function Je(e, n) {
101
101
  };
102
102
  return [...o, r];
103
103
  }
104
- function H(e, n) {
104
+ function Y(e, n) {
105
105
  var o;
106
106
  if (!n)
107
107
  return e;
@@ -114,11 +114,11 @@ function H(e, n) {
114
114
  const u = (s = f == null ? void 0 : f.items) == null ? void 0 : s.find(
115
115
  (p) => p._id === d._id && p.combinationKey === d.combinationKey
116
116
  );
117
- return H(d, u);
117
+ return Y(d, u);
118
118
  }), r;
119
119
  }), a;
120
120
  }
121
- function Qe(e, n) {
121
+ function Xe(e, n) {
122
122
  const a = e.items[n._id];
123
123
  n.variant && (n.variant = {
124
124
  ...n.variant,
@@ -128,7 +128,7 @@ function Qe(e, n) {
128
128
  );
129
129
  if (!f)
130
130
  throw new Error(`Item overrider not found - ${r._id} - ${r.combinationKey}`);
131
- return H(f, r);
131
+ return Y(f, r);
132
132
  })
133
133
  });
134
134
  const o = a.find((r) => !r.combinationKey);
@@ -142,7 +142,7 @@ function Qe(e, n) {
142
142
  const d = (u = f == null ? void 0 : f.items) == null ? void 0 : u.find(
143
143
  (s) => s._id === i._id && s.combinationKey === i.combinationKey
144
144
  );
145
- return H(i, d);
145
+ return Y(i, d);
146
146
  }), r;
147
147
  }), {
148
148
  ...n,
@@ -153,7 +153,7 @@ async function dt(e, n, a, o, r, f = !0) {
153
153
  const l = k(a), i = f ? Le(n, l, o, r) : l, d = n.reduce((p, g) => (p[g._id] = i.modules.item.find((y) => y._id === g._id), p), {}), u = n.reduce((p, g) => {
154
154
  const y = g._id;
155
155
  return p[y] = Je(d[y], e), p;
156
- }, {}), s = O.getFallbackPrices({
156
+ }, {}), s = N.getFallbackPrices({
157
157
  rawMenu: i,
158
158
  items: u,
159
159
  catalogId: o || void 0,
@@ -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
- ...Qe(s, y),
165
+ ...Xe(s, y),
166
166
  category: o || r ? y == null ? void 0 : y.category : null
167
167
  };
168
168
  });
@@ -231,17 +231,17 @@ function _t(e, n, a) {
231
231
  }
232
232
  return r(n, a);
233
233
  }
234
- const Y = /* @__PURE__ */ new Map();
235
- async function Xe(e, n, a) {
234
+ const q = /* @__PURE__ */ new Map();
235
+ async function Qe(e, n, a) {
236
236
  const o = `${e._id}-${e.updatedAt}-${n || "null"}-${a || "null"}`;
237
- if (Y.has(o))
238
- return Y.get(o);
237
+ if (q.has(o))
238
+ return q.get(o);
239
239
  const r = await ne(e, n, a);
240
- return Y.set(o, r), r;
240
+ return q.set(o, r), r;
241
241
  }
242
242
  async function gt(e, n, a) {
243
243
  var l, i;
244
- const o = await Xe(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]);
@@ -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 = 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
  }
@@ -341,7 +341,7 @@ function tt() {
341
341
  const nt = We(
342
342
  "mf-menu-store-v2",
343
343
  () => {
344
- const e = Fe(tt()), n = J(), a = He(), o = h(() => e.menu.modules.serveSequence ? M(e.menu.modules.serveSequence, {
344
+ const e = Fe(tt()), n = J(), a = Ye(), o = h(() => e.menu.modules.serveSequence ? M(e.menu.modules.serveSequence, {
345
345
  selector: "position"
346
346
  }) : []), r = h(() => {
347
347
  var t;
@@ -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 = X(oe()), g = T(!1), y = T(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(
@@ -375,7 +375,7 @@ const nt = We(
375
375
  }
376
376
  const V = ee.debounce(b, 200);
377
377
  Re(!0).run(() => {
378
- q(
378
+ H(
379
379
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
380
380
  () => {
381
381
  g.value || V();
@@ -449,7 +449,7 @@ const nt = We(
449
449
  });
450
450
  function ie(t = []) {
451
451
  const c = t.map((v) => A.value.find((_) => _._id === v)).filter((v) => !!v);
452
- return O.fullVariantCombination(c).reduce((v, _) => (v[_.combinationKey] = _.selectionName.join(" / "), v), {});
452
+ return N.fullVariantCombination(c).reduce((v, _) => (v[_.combinationKey] = _.selectionName.join(" / "), v), {});
453
453
  }
454
454
  const ce = h(() => w(p.value.modules.group, (t) => t.name)), le = h(() => M(p.value.modules.takeaway, { selector: "name" })), de = h(() => M(e.menu.modules.printDepartment || [], {
455
455
  selector: "name"
@@ -553,7 +553,7 @@ const nt = We(
553
553
  countryTaxOptions: m
554
554
  };
555
555
  }), he = async () => {
556
- const t = await Ye.readMenu();
556
+ const t = await qe.readMenu();
557
557
  e.menu = t ?? e.menu, j(null);
558
558
  }, be = async () => {
559
559
  const { fetchAllRestaurants: t } = $e();
@@ -664,21 +664,21 @@ const nt = We(
664
664
  }
665
665
  };
666
666
  }
667
- ), Q = /* @__PURE__ */ Te({
667
+ ), X = /* @__PURE__ */ Te({
668
668
  __name: "AddSubcategoryDialogContentComponent",
669
669
  props: {
670
670
  initialValue: {}
671
671
  },
672
672
  setup(e) {
673
673
  const n = e, { t: a } = te();
674
- q(
674
+ H(
675
675
  () => n.initialValue,
676
676
  (l) => {
677
677
  o.value = l ?? "";
678
678
  }
679
679
  );
680
680
  const o = T(n.initialValue), { emitData: r, emitAction: f } = Be();
681
- return q(
681
+ return H(
682
682
  o,
683
683
  (l) => {
684
684
  r(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 Ne(), Ve(u, {
692
- onValidationSuccess: i[1] || (i[1] = (s) => N(f)("primary"))
691
+ return Oe(), Ve(u, {
692
+ onValidationSuccess: i[1] || (i[1] = (s) => O(f)("primary"))
693
693
  }, {
694
- default: Oe(() => [
694
+ default: Ne(() => [
695
695
  xe(d, {
696
696
  modelValue: o.value,
697
697
  "onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s),
698
- rules: [(s) => !!s || N(a)("menu.subcategory.dialog.add.name.required")],
698
+ rules: [(s) => !!s || O(a)("menu.subcategory.dialog.add.name.required")],
699
699
  autofocus: "",
700
- label: N(a)("menu.subcategory.dialog.add.name.label"),
701
- placeholder: N(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
@@ -715,7 +715,7 @@ const nt = We(
715
715
  const u = T(!1);
716
716
  e.open({
717
717
  title: o("menu.subcategory.manager.dialog.add.title"),
718
- contentComponent: Q,
718
+ contentComponent: X,
719
719
  primaryActions: {
720
720
  text: o("menu.subcategory.manager.dialog.add.action"),
721
721
  close: !1,
@@ -734,7 +734,7 @@ const nt = We(
734
734
  operation: S.F_OPERATION_TYPE.create,
735
735
  data: {
736
736
  name: s,
737
- position: qe().subcategories.length
737
+ position: He().subcategories.length
738
738
  }
739
739
  };
740
740
  a ? await r(p) : await n.updateMenu(p, s), e.close();
@@ -746,7 +746,7 @@ const nt = We(
746
746
  function l(u) {
747
747
  e.open({
748
748
  title: o("menu.subcategory.manager.dialog.update.title"),
749
- contentComponent: Q,
749
+ contentComponent: X,
750
750
  contentComponentProps: {
751
751
  initialValue: u.name
752
752
  },
@@ -812,6 +812,6 @@ export {
812
812
  gt as f,
813
813
  mt as g,
814
814
  dt as m,
815
- Xe as o,
815
+ Qe as o,
816
816
  nt as u
817
817
  };
@@ -1,5 +1,5 @@
1
- import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-B_82rlxL.js";
2
- import "./menu-ipD3lXXk.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-ipD3lXXk.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.3",
3
+ "version": "0.31.28-prod",
4
4
  "files": [
5
5
  "dist"
6
6
  ],