@feedmepos/mf-menu 0.31.17 → 0.31.18-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 (60) hide show
  1. package/dist/{App-C0zWv8Bb.js → App-CA9Sl2_e.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BlBfa-ly.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DXC06G_p.js} +2 -2
  3. package/dist/Catalog-DO0Z3SSz.js +666 -0
  4. package/dist/{Category-BTpAWhsI.js → Category-B1kXrXpy.js} +5 -5
  5. package/dist/{Category-CxDoeXi_.js → Category-DTh_5WI5.js} +4 -4
  6. package/dist/{CookingGuide-C87lhZ67.js → CookingGuide-eHhSbisd.js} +3 -3
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BEKiJBLy.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DKGEMS0s.js} +1 -1
  8. package/dist/{Group-D1kUgRjF.js → Group-Bd61FXOa.js} +3 -3
  9. package/dist/{Group-Dad3CsPD.js → Group-Dh5RNyxf.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-C-AS_gUD.js → Group.vue_vue_type_script_setup_true_lang-p3ZeU8Ad.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-Dz9BUoZe.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CuR3HOn4.js} +3 -3
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BfZuETkY.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BjwTTR43.js} +6 -6
  13. package/dist/{Ingredient-CL0V9EvP.js → Ingredient-BLfFgX0g.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-BFTt-8OI.js → InventoryBinding.vue_vue_type_script_setup_true_lang-C2f4oQV_.js} +2 -2
  15. package/dist/{LinkProductSideSheet-CWMNlFCF.js → LinkProductSideSheet-DPIxXikN.js} +1 -1
  16. package/dist/{MenuSetting-DA35bTTq.js → MenuSetting-UVUYswl1.js} +4 -4
  17. package/dist/{PrintRoute-B49FDrP6.js → PrintRoute-B4WpCa5j.js} +3 -3
  18. package/dist/{Product-CBGfSsYA.js → Product-DMqUEuUP.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-B3kyqD2S.js → Product.vue_vue_type_script_setup_true_lang-DvqDdaNh.js} +11 -11
  20. package/dist/{ProductInternalTools-DiISILIn.js → ProductInternalTools-BjQILwqA.js} +5 -5
  21. package/dist/{Products-BDvqmjZI.js → Products-BR612MbF.js} +10 -10
  22. package/dist/{Publish-1zBRSD7U.js → Publish-HQprte7i.js} +3 -3
  23. package/dist/{Recipe-D0VAcSN-.js → Recipe-CW8DpUib.js} +4 -4
  24. package/dist/{Scheduler-8BDLlHCV.js → Scheduler-jwxuWWBc.js} +3 -3
  25. package/dist/{ServingSequence-Bh3DhN3i.js → ServingSequence-DILOiy8d.js} +3 -3
  26. package/dist/{Setting-BdSJCn6q.js → Setting-DtHcu5eE.js} +4 -4
  27. package/dist/{Subcategory-CBfEsTKy.js → Subcategory-BuBhmpHK.js} +4 -4
  28. package/dist/{Takeaway-WPQ-ow5H.js → Takeaway-CFH-2jGX.js} +1 -1
  29. package/dist/{Takeaway-aLJ1QKbm.js → Takeaway-Dadg_p4p.js} +4 -4
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-ZYP7hH6p.js → Takeaway.vue_vue_type_script_setup_true_lang-Ccm340Do.js} +5 -5
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-aHMZigPA.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BO_RY7Nb.js} +13 -13
  32. package/dist/{Unit-Csan3-PW.js → Unit-BhC7HKdj.js} +2 -2
  33. package/dist/{Variant-aYCqqz9A.js → Variant-op1jI8lu.js} +3 -3
  34. package/dist/{_id_-BL-Q5Nck.js → _id_-C8aH00wO.js} +9 -9
  35. package/dist/{app-CV3Y87bf.js → app-CgdrcHjA.js} +24 -24
  36. package/dist/{app-CngqdPlx.js → app-DTuhoxK_.js} +1 -1
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/src/components/feature/TreeEditor/fmtree/dragging.d.ts +1 -1
  39. package/dist/assets/{linked-status-CQPFAl1J.js → linked-status-DjuegQzl.js} +2 -2
  40. package/dist/assets/{override-menu-DP9T_24q.js → override-menu-SwLrxhgz.js} +2 -2
  41. package/dist/assets/{validate-menu-CcOso72D.js → validate-menu-kf0hkaus.js} +2 -2
  42. package/dist/{catalog-ClQJMV9X.js → catalog-C_ivwYaQ.js} +1 -1
  43. package/dist/{catalogSetting-CXeRg55T.js → catalogSetting-DZueIrzX.js} +1 -1
  44. package/dist/{category-_lR1fIWU.js → category-B3iKQFQ-.js} +1 -1
  45. package/dist/{currency-x_SA4GNt.js → currency-CA5FQbXi.js} +1 -1
  46. package/dist/{dayjs.min-JzYVBtTX.js → dayjs.min-B5JdMy-O.js} +1 -1
  47. package/dist/{index-Cjo_VHIT.js → index-BFdAL_N3.js} +3 -3
  48. package/dist/{index-BaLeGLHZ.js → index-g0Su2v11.js} +2 -2
  49. package/dist/{index-Cb7zxMMe.js → index-jZfKRlag.js} +1 -1
  50. package/dist/{item-E-Egz6v8.js → item-SVoStXDW.js} +14 -14
  51. package/dist/{jszip.min-8UVTn3ZT.js → jszip.min-DYjqumCW.js} +2 -2
  52. package/dist/{menu-CrEs_Qy-.js → menu-CTQtotYO.js} +1 -1
  53. package/dist/{menu-DYMiA6Oc.js → menu-GZ7mL7Mu.js} +5 -5
  54. package/dist/{priceTier-Bs3jL4nk.js → priceTier-D7hqwCP7.js} +1 -1
  55. package/dist/{scheduler-DxMNHPSa.js → scheduler-sOWjTP9q.js} +3 -3
  56. package/dist/{subcategory-h4VL-0kK.js → subcategory-DzOnwchb.js} +37 -37
  57. package/dist/{toExcel-DRJ3j3P7.js → toExcel-CXiBEHW2.js} +2 -2
  58. package/dist/{unit-D4v2m10X.js → unit-CejxJLsQ.js} +1 -1
  59. package/package.json +1 -1
  60. package/dist/Catalog-hTR0c1zS.js +0 -641
@@ -1,9 +1,9 @@
1
- import { shallowRef as Z, ref as R, computed as h, shallowReactive as Te, effectScope as Re, watch as H, defineComponent as Pe, resolveComponent as B, createBlock as Ve, openBlock as Ne, unref as V, withCtx as Oe, createVNode as xe } from "vue";
2
- import { H as k, A as N, aj as ee, G as I, ak as G, J as S, I as te, a9 as M, c as D, Y as E, ai as L, al as Ae, am as Ue, z as Ke, ab as De, an as $e, a8 as J, u as qe } from "./menu-DYMiA6Oc.js";
1
+ import { shallowRef as Z, ref as R, computed as h, shallowReactive as Te, effectScope as Re, watch as H, defineComponent as Ve, resolveComponent as B, createBlock as Ne, openBlock as Oe, unref as N, withCtx as Pe, createVNode as xe } from "vue";
2
+ import { H as k, A as O, aj as ee, G as I, ak as G, J as S, I as te, a9 as C, c as D, Y as E, ai as L, al as Ae, am as Ue, z as Ke, ab as De, an as $e, a8 as J, u as qe } from "./menu-GZ7mL7Mu.js";
3
3
  import { useCoreStore as Q, useI18n as ne } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as He, useDialogChild as Ye } from "@feedmepos/ui-library";
5
5
  import { defineStore as We } from "pinia";
6
- const je = "/assets/linked-status-CQPFAl1J.js", ze = "/assets/override-menu-DP9T_24q.js";
6
+ const je = "/assets/linked-status-DjuegQzl.js", ze = "/assets/override-menu-SwLrxhgz.js";
7
7
  function Be(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 Le(e, n) {
85
85
  if (u)
86
86
  return T(u, n, 1);
87
87
  const s = {
88
- ...N.generator.initMenuV4ItemOverrider(),
88
+ ...O.generator.initMenuV4ItemOverrider(),
89
89
  _id: m._id,
90
90
  combinationKey: m.combinationKey
91
91
  };
@@ -93,7 +93,7 @@ function Le(e, n) {
93
93
  });
94
94
  return { ...f, items: i };
95
95
  }), o = e.variant ? e.variant.variantCombinations.map((f) => T(f, n, 1)) : [], r = {
96
- ...N.generator.initMenuV4ItemOverrider(),
96
+ ...O.generator.initMenuV4ItemOverrider(),
97
97
  _id: e._id,
98
98
  name: e.name,
99
99
  code: e.code,
@@ -153,7 +153,7 @@ async function lt(e, n, a, o, r, f = !0) {
153
153
  const d = k(a), i = f ? Ge(n, d, o, r) : d, m = n.reduce((p, _) => (p[_._id] = i.modules.item.find((y) => y._id === _._id), p), {}), u = n.reduce((p, _) => {
154
154
  const y = _._id;
155
155
  return p[y] = Le(m[y], e), p;
156
- }, {}), s = N.getFallbackPrices({
156
+ }, {}), s = O.getFallbackPrices({
157
157
  rawMenu: i,
158
158
  items: u,
159
159
  catalogId: o || void 0,
@@ -251,8 +251,8 @@ async function _t(e, n, a) {
251
251
  const u = (d = m.items) == null ? void 0 : d.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 = m.items) == null ? void 0 : i.filter((y) => y._id === a && y.combinationKey), _ = [u, ...p].map((y) => {
254
- var P, O;
255
- const b = y.combinationKey ? (O = (P = s == null ? void 0 : s.variant) == null ? void 0 : P.variantCombinations) == null ? void 0 : O.find(
254
+ var V, P;
255
+ const b = y.combinationKey ? (P = (V = s == null ? void 0 : s.variant) == null ? void 0 : V.variantCombinations) == null ? void 0 : P.find(
256
256
  (x) => x.combinationKey === y.combinationKey
257
257
  ) : s, F = b && s ? f(s, b) : y;
258
258
  return f(F, y);
@@ -341,15 +341,15 @@ function et() {
341
341
  const tt = We(
342
342
  "mf-menu-store-v2",
343
343
  () => {
344
- const e = Te(et()), n = Q(), a = He(), o = h(() => e.menu.modules.serveSequence ? M(e.menu.modules.serveSequence, {
344
+ const e = Te(et()), n = Q(), a = He(), o = h(() => e.menu.modules.serveSequence ? C(e.menu.modules.serveSequence, {
345
345
  selector: "position"
346
346
  }) : []), r = h(() => {
347
347
  var t;
348
348
  return ((t = n.currentBusiness.value) == null ? void 0 : t.menuVersion) || D.F_MENU_VERSION.v3;
349
349
  }), f = h(() => r.value === D.F_MENU_VERSION.v4), d = h(() => {
350
350
  const t = e.menu.modules.catalog;
351
- return M(t, { selector: "name" });
352
- }), i = h(() => e.menu.modules.catalog.find((t) => t._id === e.currentCatalogId)), m = h(() => M(p.value.modules.scheduler, { selector: "name" })), u = h(() => e.menu.modules.scheduler.find(
351
+ return C(t, { selector: "name" });
352
+ }), i = h(() => e.menu.modules.catalog.find((t) => t._id === e.currentCatalogId)), m = h(() => C(p.value.modules.scheduler, { selector: "name" })), u = h(() => e.menu.modules.scheduler.find(
353
353
  (t) => t._id === e.currentSchedulerId
354
354
  ));
355
355
  function s(t, l = !0) {
@@ -373,12 +373,12 @@ const tt = We(
373
373
  }
374
374
  return p.value = t, _.value = !1, y.value = y.value + 1, t;
375
375
  }
376
- const P = te.debounce(b, 200);
376
+ const V = te.debounce(b, 200);
377
377
  Re(!0).run(() => {
378
378
  H(
379
379
  () => [e.menu, e.currentCatalogId, e.currentSchedulerId],
380
380
  () => {
381
- _.value || P();
381
+ _.value || V();
382
382
  }
383
383
  );
384
384
  });
@@ -412,8 +412,8 @@ const tt = We(
412
412
  if (i.value) {
413
413
  const c = (l = i.value) == null ? void 0 : l.override.items;
414
414
  t = t.filter((g) => {
415
- var C;
416
- const v = (C = c == null ? void 0 : c[g._id]) == null ? void 0 : C.find(
415
+ var M;
416
+ const v = (M = c == null ? void 0 : c[g._id]) == null ? void 0 : M.find(
417
417
  (Fe) => !Fe.combinationKey
418
418
  );
419
419
  return (v == null ? void 0 : v.orderFrom) !== I.F_ORDER_FROM.enum.NONE;
@@ -422,13 +422,13 @@ const tt = We(
422
422
  return E(t, (c) => c.code || c.name);
423
423
  }), se = h(() => {
424
424
  const t = e.menu.modules.category, l = E(t, (g) => g.name).reduce(
425
- (g, v, C) => (g[v._id] = C, g),
425
+ (g, v, M) => (g[v._id] = M, g),
426
426
  { "": 0 }
427
427
  ), c = e.menu.modules.item;
428
428
  return E(
429
429
  c,
430
430
  (g) => g.code || g.name
431
- ).reduce((g, v, C) => (g[v._id] = C + l[v.category || ""], g), {});
431
+ ).reduce((g, v, M) => (g[v._id] = M + l[v.category || ""], g), {});
432
432
  }), ue = h(() => L(A.value, W.value, j.value)), ie = h(() => {
433
433
  const t = U.value.item.addon ? [
434
434
  {
@@ -445,19 +445,19 @@ const tt = We(
445
445
  );
446
446
  }), A = h(() => {
447
447
  const t = p.value.modules.variant;
448
- return M(t, { selector: "name" });
448
+ return C(t, { selector: "name" });
449
449
  });
450
450
  function ce(t = []) {
451
451
  const l = t.map((g) => A.value.find((v) => v._id === g)).filter((g) => !!g);
452
- return N.fullVariantCombination(l).reduce((g, v) => (g[v.combinationKey] = v.selectionName.join(" / "), g), {});
452
+ return O.fullVariantCombination(l).reduce((g, v) => (g[v.combinationKey] = v.selectionName.join(" / "), g), {});
453
453
  }
454
- const le = h(() => E(p.value.modules.group, (t) => t.name)), de = h(() => M(p.value.modules.takeaway, { selector: "name" })), me = h(() => M(e.menu.modules.printDepartment || [], {
454
+ const le = h(() => E(p.value.modules.group, (t) => t.name)), de = h(() => C(p.value.modules.takeaway, { selector: "name" })), me = h(() => C(e.menu.modules.printDepartment || [], {
455
455
  selector: "name"
456
- })), fe = h(() => M(e.menu.modules.unit, { selector: "name" })), pe = h(() => M(Ae(e.menu.modules.recipe, e.menu.modules.sku), {
456
+ })), fe = h(() => C(e.menu.modules.unit, { selector: "name" })), pe = h(() => C(Ae(e.menu.modules.recipe, e.menu.modules.sku), {
457
457
  selector: "name"
458
458
  })), _e = h(() => e.menu.modules.cookingGuide), ge = h(() => {
459
459
  const t = Ue(e.menu.modules.sku);
460
- return M(t, { selector: "code" });
460
+ return C(t, { selector: "code" });
461
461
  }), U = h(() => {
462
462
  const t = !e.currentCatalogId, l = r.value === D.F_MENU_VERSION.v4, c = !e.currentSchedulerId, g = {
463
463
  create: t && c,
@@ -555,12 +555,12 @@ const tt = We(
555
555
  }), be = async () => {
556
556
  const t = await J.readMenu();
557
557
  e.menu = t ?? e.menu, z(null);
558
- }, Ce = async () => {
558
+ }, Me = async () => {
559
559
  const t = await J.readRestaurantsWithMenu();
560
- e.restaurants = M(t, { selector: "name" });
560
+ e.restaurants = C(t, { selector: "name" });
561
561
  }, z = (t) => {
562
562
  e.currentCatalogId = t;
563
- }, Me = (t) => {
563
+ }, Ce = (t) => {
564
564
  e.currentSchedulerId = t;
565
565
  }, Se = (t) => {
566
566
  e.currentCategoryIds = t;
@@ -574,10 +574,10 @@ const tt = We(
574
574
  }));
575
575
  try {
576
576
  if (l || g.some(
577
- (C) => [S.F_OPERATION_TYPE.delete, S.F_OPERATION_TYPE.deleteMany].includes(C.operation)
577
+ (M) => [S.F_OPERATION_TYPE.delete, S.F_OPERATION_TYPE.deleteMany].includes(M.operation)
578
578
  )) {
579
- const C = await $e(g, e.menu.modules);
580
- if (C !== !0) throw new Error(C);
579
+ const M = await $e(g, e.menu.modules);
580
+ if (M !== !0) throw new Error(M);
581
581
  }
582
582
  const v = await Ze.updateMenuModule(e.menu, g);
583
583
  return s(v.menu), v;
@@ -632,9 +632,9 @@ const tt = We(
632
632
  // Action
633
633
  setMenu: s,
634
634
  readMenu: be,
635
- readRestaurants: Ce,
635
+ readRestaurants: Me,
636
636
  selectCatalog: z,
637
- selectScheduler: Me,
637
+ selectScheduler: Ce,
638
638
  selectCategory: Se,
639
639
  updateMenu: we,
640
640
  updateMenuSetting: Ee,
@@ -660,7 +660,7 @@ const tt = We(
660
660
  }
661
661
  };
662
662
  }
663
- ), X = /* @__PURE__ */ Pe({
663
+ ), X = /* @__PURE__ */ Ve({
664
664
  __name: "AddSubcategoryDialogContentComponent",
665
665
  props: {
666
666
  initialValue: {}
@@ -684,17 +684,17 @@ const tt = We(
684
684
  }
685
685
  ), (d, i) => {
686
686
  const m = B("fm-text-field"), u = B("FmForm");
687
- return Ne(), Ve(u, {
688
- onValidationSuccess: i[1] || (i[1] = (s) => V(f)("primary"))
687
+ return Oe(), Ne(u, {
688
+ onValidationSuccess: i[1] || (i[1] = (s) => N(f)("primary"))
689
689
  }, {
690
- default: Oe(() => [
690
+ default: Pe(() => [
691
691
  xe(m, {
692
692
  modelValue: o.value,
693
693
  "onUpdate:modelValue": i[0] || (i[0] = (s) => o.value = s),
694
- rules: [(s) => !!s || V(a)("menu.subcategory.dialog.add.name.required")],
694
+ rules: [(s) => !!s || N(a)("menu.subcategory.dialog.add.name.required")],
695
695
  autofocus: "",
696
- label: V(a)("menu.subcategory.dialog.add.name.label"),
697
- placeholder: V(a)("menu.subcategory.dialog.add.name.placeholder")
696
+ label: N(a)("menu.subcategory.dialog.add.name.label"),
697
+ placeholder: N(a)("menu.subcategory.dialog.add.name.placeholder")
698
698
  }, null, 8, ["modelValue", "rules", "label", "placeholder"])
699
699
  ]),
700
700
  _: 1
@@ -1,5 +1,5 @@
1
- import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BfZuETkY.js";
2
- import "./menu-DYMiA6Oc.js";
1
+ import { b as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BjwTTR43.js";
2
+ import "./menu-GZ7mL7Mu.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 { a6 as B, a7 as te, a4 as P, H as k, O as $, B as I, A as E, I as ne, a5 as ae, J as C, G as D, u as oe } from "./menu-DYMiA6Oc.js";
3
+ import { a6 as B, a7 as te, a4 as P, H as k, O as $, B as I, A as E, I as ne, a5 as ae, J as C, G as D, u as oe } from "./menu-GZ7mL7Mu.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.17",
3
+ "version": "0.31.18-prod",
4
4
  "files": [
5
5
  "dist"
6
6
  ],