@feedmepos/mf-menu 0.32.3-beta.1 → 0.32.4-dev

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 (84) hide show
  1. package/dist/{App-DJBZBaaC.js → App-5YVGeojR.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-c9SlmPp2.js → ApplyProduct.vue_vue_type_script_setup_true_lang-DhoHYIHW.js} +20 -20
  3. package/dist/{Catalog-Ct9jk3A_.js → Catalog-BTNv5n_D.js} +18 -18
  4. package/dist/{Category-Cf5KfKdv.js → Category-BE-kkKcL.js} +22 -23
  5. package/dist/{Category-CTTAtG31.js → Category-DuLhbRxE.js} +21 -22
  6. package/dist/{CookingGuide-BaNzajgf.js → CookingGuide-JtE8QMC6.js} +92 -93
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CRodr6tr.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DdJ-o_PW.js} +1 -1
  8. package/dist/FormItem.vue_vue_type_script_setup_true_lang-B3Ixruh-.js +26 -0
  9. package/dist/{Group-BfRPCCbK.js → Group-BP-j3K6J.js} +1 -1
  10. package/dist/{Group-BJep-xq-.js → Group-DhS9e2E3.js} +3 -3
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-CoCq0edM.js → Group.vue_vue_type_script_setup_true_lang-DXUQrXXI.js} +33 -34
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DviXfima.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CXzz4ClS.js} +24 -23
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DSrxcKIK.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Bpt-8tbe.js} +11525 -11504
  14. package/dist/{Ingredient-BnzW69zW.js → Ingredient-NSl0x-0T.js} +5 -6
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-D8m1pyLp.js → InventoryBinding.vue_vue_type_script_setup_true_lang-ByrNVvzs.js} +2 -2
  16. package/dist/LinkProductSideSheet-B_R_2iH6.js +692 -0
  17. package/dist/MenuSetting-C7cpv4S3.js +580 -0
  18. package/dist/{PrintRoute-CLsiDIkn.js → PrintRoute-DmP7KH58.js} +10 -11
  19. package/dist/{Product-DHE0XtX1.js → Product-B6gwN4g0.js} +1 -1
  20. package/dist/{Product.vue_vue_type_script_setup_true_lang-CVR8j-XT.js → Product.vue_vue_type_script_setup_true_lang-BKhn8Txf.js} +15 -16
  21. package/dist/{ProductInternalTools-BQOXHzYp.js → ProductInternalTools-D5xIh2j2.js} +5 -5
  22. package/dist/Products-Cxx8pJGK.js +692 -0
  23. package/dist/{Publish-BlEcoJaI.js → Publish-ZCzRBB5V.js} +21 -22
  24. package/dist/{Recipe-CkcNxf7p.js → Recipe-DcHdr_5J.js} +9 -10
  25. package/dist/RuleView.vue_vue_type_script_setup_true_lang-edNbsZTq.js +3282 -0
  26. package/dist/{Scheduler-DV0s_qkV.js → Scheduler-ZhDXk5gQ.js} +18 -19
  27. package/dist/{ServingSequence-CFd8Nwws.js → ServingSequence-DcfMbHjn.js} +15 -16
  28. package/dist/{Setting-B55IsZCX.js → Setting-fqf_sOIc.js} +45 -44
  29. package/dist/{Subcategory-BXCcVdR3.js → Subcategory-BidmfEOK.js} +18 -19
  30. package/dist/{Takeaway-BDvcwBHP.js → Takeaway-C83SKEvl.js} +1 -1
  31. package/dist/{Takeaway--U_lsgYi.js → Takeaway-p6thRg74.js} +4 -4
  32. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DaYk2xdF.js → Takeaway.vue_vue_type_script_setup_true_lang-Dq6CjXCv.js} +48 -49
  33. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-VBpTghy9.js → Thumbnail.vue_vue_type_script_setup_true_lang-CjLOy2k9.js} +10 -10
  34. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-IBM6rC5M.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CWdsp9eo.js} +17 -16
  35. package/dist/{Unit-DkvTsQWA.js → Unit-CKIaBxVE.js} +7 -8
  36. package/dist/{Variant-tte76SbR.js → Variant-CE21vKC4.js} +38 -39
  37. package/dist/{_id_-AVMi3j91.js → _id_-BhWpg9Kj.js} +10 -10
  38. package/dist/{app-0s3jY-aE.js → app-BkcVM9nE.js} +1 -1
  39. package/dist/app-CEIhTuYG.js +363 -0
  40. package/dist/app.js +1 -1
  41. package/dist/apps/mf-menu/src/app.d.ts +250 -0
  42. package/dist/apps/mf-menu/src/components/rule_group/CatalogLinkItemRuleForm.vue.d.ts +146 -0
  43. package/dist/apps/mf-menu/src/components/rule_group/CatalogLinkItemRuleView.vue.d.ts +158 -0
  44. package/dist/apps/mf-menu/src/components/rule_group/RuleCondition.vue.d.ts +103 -0
  45. package/dist/apps/mf-menu/src/components/rule_group/RuleConditionListView.vue.d.ts +54 -0
  46. package/dist/apps/mf-menu/src/components/rule_group/RuleConditionSelector.vue.d.ts +50 -0
  47. package/dist/apps/mf-menu/src/components/rule_group/RuleForm.vue.d.ts +117 -0
  48. package/dist/apps/mf-menu/src/components/rule_group/RuleView.vue.d.ts +141 -0
  49. package/dist/apps/mf-menu/src/composable/attributes.d.ts +10 -0
  50. package/dist/apps/mf-menu/src/helper/import-export-utils.d.ts +2 -3
  51. package/dist/apps/mf-menu/src/helper/menuExport.d.ts +3 -1
  52. package/dist/apps/mf-menu/src/helper/menuImport.d.ts +3 -2
  53. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  54. package/dist/assets/{linked-status-DEGoFflv.js → linked-status-CStQ46Ze.js} +2 -2
  55. package/dist/assets/{override-menu-CZe07SCm.js → override-menu-DHTQAnIJ.js} +2 -2
  56. package/dist/assets/{validate-menu-BnHfAUEN.js → validate-menu-C_kUDOhd.js} +2 -2
  57. package/dist/{catalog-YE_knev1.js → catalog-WBrPmQwl.js} +1 -1
  58. package/dist/{catalogSetting-CeVHRHOo.js → catalogSetting-BAry7I_V.js} +1 -1
  59. package/dist/{category-Dph1iWr8.js → category-bW36h16p.js} +1 -1
  60. package/dist/{currency-Byslycrk.js → currency-vVxHIVBs.js} +1 -1
  61. package/dist/{index-C0T32LLy.js → index-Ba5-dCQA.js} +1 -1
  62. package/dist/{index-CUTY6cCm.js → index-C0EV3eSc.js} +20 -20
  63. package/dist/{index-DycbrG1l.js → index-XZlEgR2k.js} +8 -7
  64. package/dist/{index-Ddt_Nw9F.js → index-pxnQHVnU.js} +4 -4
  65. package/dist/{menu-tHhzkxDL.js → index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js} +18612 -18558
  66. package/dist/item-mFv0bFSn.js +7648 -0
  67. package/dist/{iteration-CcobmcUk.js → iteration-CaFp1Rtz.js} +3 -3
  68. package/dist/{jszip.min-DQrtMdm5.js → jszip.min-BkSmQKmf.js} +353 -353
  69. package/dist/{menu-DkRrqTVY.js → menu-ud-tWfIM.js} +1 -1
  70. package/dist/{menuV2-DJevKCqE.js → menuV2-xUMdUls0.js} +65 -65
  71. package/dist/mf-menu.css +1 -1
  72. package/dist/{priceTier-Bkogs1qc.js → priceTier-BVTab4k1.js} +1 -1
  73. package/dist/{scheduler-BGQ_lxUL.js → scheduler-CAt7sELO.js} +13 -12
  74. package/dist/{subcategory-DvxvLe8X.js → subcategory-DMZuedoM.js} +2 -2
  75. package/dist/{toExcel-DQ4jlZPI.js → toExcel-CczXOnKy.js} +2 -2
  76. package/dist/{unit-DoxpI5dG.js → unit-CbD3sYqC.js} +2 -2
  77. package/package.json +4 -3
  78. package/dist/LinkProductSideSheet-C4yBnJSM.js +0 -361
  79. package/dist/MenuSetting-Fxl8F6N5.js +0 -618
  80. package/dist/Products-BLvwrz9P.js +0 -689
  81. package/dist/app-CjfWVFOg.js +0 -363
  82. package/dist/customAttributes-DvbvCfOd.js +0 -180
  83. package/dist/index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js +0 -57
  84. package/dist/item-x1WWjISR.js +0 -9175
@@ -1,11 +1,10 @@
1
1
  import { defineComponent as V, computed as k, ref as C, resolveComponent as w, createElementBlock as g, openBlock as u, createElementVNode as i, createVNode as _, unref as a, withCtx as K, Fragment as P, renderList as U, toDisplayString as E, createBlock as S } from "vue";
2
2
  import { useI18n as L } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as M, useBreakpoints as $, useDialog as I } from "@feedmepos/ui-library";
4
- import { D as F, u as Y, X as j, O as D, J as q, z as A } from "./menu-tHhzkxDL.js";
5
- import { _ as J } from "./app-CjfWVFOg.js";
6
- import { u as O } from "./menu-DkRrqTVY.js";
7
- import { _ as R } from "./index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js";
8
- import { u as X } from "./category-Dph1iWr8.js";
4
+ import { D as F, u as Y, X as j, O as D, J as q, z as A, a3 as J } from "./index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js";
5
+ import { _ as R } from "./app-CEIhTuYG.js";
6
+ import { u as O } from "./menu-ud-tWfIM.js";
7
+ import { u as X } from "./category-bW36h16p.js";
9
8
  const G = {
10
9
  key: 0
11
10
  }, H = {
@@ -31,17 +30,17 @@ const G = {
31
30
  const f = M(), y = F(f), h = D(y), d = Y(), {
32
31
  categories: v
33
32
  } = O(), b = k(() => {
34
- var l, t;
35
- const r = ((t = (l = d.currentCatalog) == null ? void 0 : l.override) == null ? void 0 : t.category) ?? {}, o = v.value.map((e, c) => {
33
+ var r, t;
34
+ const l = ((t = (r = d.currentCatalog) == null ? void 0 : r.override) == null ? void 0 : t.category) ?? {}, o = v.value.map((e, c) => {
36
35
  var p;
37
36
  return {
38
37
  ...e,
39
38
  // Addon should be at the end of the list
40
- position: e.id ? ((p = r[e.id]) == null ? void 0 : p.position) ?? c + 1 : null
39
+ position: e.id ? ((p = l[e.id]) == null ? void 0 : p.position) ?? c + 1 : null
41
40
  };
42
41
  });
43
42
  return j(o, (e) => e.name);
44
- }), n = C(""), m = k(() => b.value.filter((r) => r.name.toLowerCase().includes(n.value.toLowerCase()))), {
43
+ }), n = C(""), m = k(() => b.value.filter((l) => l.name.toLowerCase().includes(n.value.toLowerCase()))), {
45
44
  t: s
46
45
  } = L(), x = C([{
47
46
  accessorKey: "name",
@@ -55,27 +54,27 @@ const G = {
55
54
  header: () => s("menu.category.columns.products"),
56
55
  enableSorting: !1,
57
56
  size: 200,
58
- cell: (r) => {
59
- const o = r.row.original;
57
+ cell: (l) => {
58
+ const o = l.row.original;
60
59
  return s(o.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
61
60
  count: o.items.length
62
61
  });
63
62
  }
64
63
  }]);
65
- async function z(r) {
64
+ async function z(l) {
66
65
  var e;
67
66
  const o = d.currentCatalog;
68
67
  if (!o)
69
68
  return;
70
69
  const {
71
- updateMenu: l
70
+ updateMenu: r
72
71
  } = h, t = ((e = o.override) == null ? void 0 : e.category) ?? {};
73
- r.forEach((c, p) => {
72
+ l.forEach((c, p) => {
74
73
  c.id && (t != null && t[c.id] ? t[c.id].position = p + 1 : t[c.id] = {
75
74
  position: p + 1,
76
75
  _id: c.id
77
76
  });
78
- }), await l({
77
+ }), await r({
79
78
  module: A.F_MENU_MODULE_V4_KEY.enum.catalog,
80
79
  operation: q.F_OPERATION_TYPE.update,
81
80
  data: {
@@ -88,9 +87,9 @@ const G = {
88
87
  }, "Category");
89
88
  }
90
89
  const B = $(), N = k(() => B.breakpoints.value.xs);
91
- return (r, o) => {
92
- const l = w("FmSearch"), t = w("FmTable");
93
- return N.value ? (u(), g("div", W, [i("div", Z, [_(l, {
90
+ return (l, o) => {
91
+ const r = w("FmSearch"), t = w("FmTable");
92
+ return N.value ? (u(), g("div", W, [i("div", Z, [_(r, {
94
93
  autofocus: "",
95
94
  modelValue: n.value,
96
95
  "onUpdate:modelValue": o[1] || (o[1] = (e) => n.value = e),
@@ -103,7 +102,7 @@ const G = {
103
102
  class: "flex flex-row py-12 px-16"
104
103
  }, [i("div", oe, [i("p", te, E(e.name), 1), i("p", ae, E(a(s)(e.items.length > 1 ? "menu.common.labels.product_linked_plural" : "menu.common.labels.product_linked_singular", {
105
104
  count: e.items.length
106
- })), 1)])]))), 128))])])) : (u(), g("div", G, [i("div", H, [i("div", Q, [_(l, {
105
+ })), 1)])]))), 128))])])) : (u(), g("div", G, [i("div", H, [i("div", Q, [_(r, {
107
106
  modelValue: n.value,
108
107
  "onUpdate:modelValue": o[0] || (o[0] = (e) => n.value = e),
109
108
  autofocus: "",
@@ -111,7 +110,7 @@ const G = {
111
110
  placeholder: a(s)("menu.common.labels.search_placeholder", {
112
111
  type: a(s)("menu.category.title")
113
112
  })
114
- }, null, 8, ["modelValue", "placeholder"])])]), _(J, null, {
113
+ }, null, 8, ["modelValue", "placeholder"])])]), _(R, null, {
115
114
  default: K(() => [_(t, {
116
115
  "column-defs": x.value,
117
116
  draggable: a(d).rules.category.overrideSequence,
@@ -127,7 +126,7 @@ const G = {
127
126
  })]));
128
127
  };
129
128
  }
130
- }), pe = /* @__PURE__ */ V({
129
+ }), me = /* @__PURE__ */ V({
131
130
  __name: "Category",
132
131
  setup(T) {
133
132
  const f = I(), y = M(), h = F(y), d = D(h), v = X({ dialog: f, menuLoader: d }), { categories: b } = O(), { t: n } = L();
@@ -137,7 +136,7 @@ const G = {
137
136
  return (s, x) => a(b).length > 0 ? (u(), S(ne, {
138
137
  key: 0,
139
138
  class: "pt-16"
140
- })) : (u(), S(a(R), {
139
+ })) : (u(), S(a(J), {
141
140
  key: 1,
142
141
  class: "pt-16",
143
142
  action: {
@@ -150,5 +149,5 @@ const G = {
150
149
  }
151
150
  });
152
151
  export {
153
- pe as default
152
+ me as default
154
153
  };
@@ -2,19 +2,18 @@ import { defineComponent as A, ref as F, computed as B, watch as se, resolveComp
2
2
  import { useI18n as j } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as Y, components as R, useDialog as ee, FmButtonVariant as X, useBreakpoints as de, FmButtonColorThemeVariant as me } from "@feedmepos/ui-library";
4
4
  import { _ as pe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { D as q, u as ge, Z as fe, X as _e, z as K, a2 as ye, O as G, J as te } from "./menu-tHhzkxDL.js";
6
- import { _ as ve } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
7
- import { _ as he } from "./app-CjfWVFOg.js";
8
- import { c as be } from "./createForm-BoUQeZTd.js";
9
- import { _ as Z } from "./customAttributes-DvbvCfOd.js";
10
- import { u as xe } from "./discardConfirm-BHni0LNu.js";
5
+ import { D as q, u as ge, Z as fe, X as _e, z as K, a2 as ye, O as G, J as te, a3 as ve } from "./index.vue_vue_type_script_setup_true_lang-CFPMPQFg.js";
6
+ import { _ as he } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
7
+ import { _ as be } from "./app-CEIhTuYG.js";
8
+ import { c as xe } from "./createForm-BoUQeZTd.js";
9
+ import { _ as Z } from "./RuleView.vue_vue_type_script_setup_true_lang-edNbsZTq.js";
10
+ import { u as Ce } from "./discardConfirm-BHni0LNu.js";
11
11
  import { c as H } from "./object-DVUNCr7w.js";
12
- import { r as Ce } from "./rules-CIWTZQfh.js";
13
- import { u as J, a as ke } from "./menu-DkRrqTVY.js";
14
- import { c as we } from "./check-C9mY6LiX.js";
15
- import { u as Fe } from "./item-x1WWjISR.js";
16
- import { u as oe } from "./category-Dph1iWr8.js";
17
- import { _ as Ve } from "./index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js";
12
+ import { r as ke } from "./rules-CIWTZQfh.js";
13
+ import { u as J, a as we } from "./menu-ud-tWfIM.js";
14
+ import { c as Fe } from "./check-C9mY6LiX.js";
15
+ import { u as Ve } from "./item-mFv0bFSn.js";
16
+ import { u as oe } from "./category-bW36h16p.js";
18
17
  const $e = {
19
18
  class: "fm-typo-en-title-md-600"
20
19
  }, Me = {
@@ -37,12 +36,12 @@ const $e = {
37
36
  setup(N, {
38
37
  expose: h
39
38
  }) {
40
- const _ = N, V = Y(), b = q(V), $ = G(b), m = ge(), r = Fe(), {
39
+ const _ = N, V = Y(), b = q(V), $ = G(b), m = ge(), r = Ve(), {
41
40
  categories: x
42
41
  } = J(), {
43
42
  t
44
43
  } = j(), O = F(!1), u = F(!1), M = (o) => {
45
- we.isBoolean(o) ? u.value = o : u.value = !u.value;
44
+ Fe.isBoolean(o) ? u.value = o : u.value = !u.value;
46
45
  }, i = F(H(_.initialValue)), C = F(""), S = B(() => {
47
46
  var k;
48
47
  const o = ((k = x.value.find((w) => w.id === i.value.id)) == null ? void 0 : k.items) || [], a = fe(i.value.id);
@@ -89,7 +88,7 @@ const $e = {
89
88
  const a = ye(o, i.value.id);
90
89
  await r.updateMany(a);
91
90
  }
92
- const D = xe(() => i.value.name !== _.initialValue.name, () => {
91
+ const D = Ce(() => i.value.name !== _.initialValue.name, () => {
93
92
  u.value = !1;
94
93
  });
95
94
  async function c() {
@@ -148,7 +147,7 @@ const $e = {
148
147
  modelValue: i.value.name,
149
148
  "onUpdate:modelValue": a[0] || (a[0] = (v) => i.value.name = v),
150
149
  disabled: !i.value.id,
151
- rules: [e(Ce)]
150
+ rules: [e(ke)]
152
151
  }, null, 8, ["label", "modelValue", "disabled", "rules"])]),
153
152
  _: 1
154
153
  }, 8, ["title"]), d(Z, {
@@ -295,7 +294,7 @@ const $e = {
295
294
  }
296
295
  const i = ie();
297
296
  async function C(l) {
298
- be(i, Le, {
297
+ xe(i, Le, {
299
298
  initialValue: l
300
299
  });
301
300
  }
@@ -330,7 +329,7 @@ const $e = {
330
329
  placeholder: e(t)("menu.common.labels.search_placeholder", {
331
330
  type: e(t)("menu.category.title")
332
331
  })
333
- }, null, 8, ["modelValue", "placeholder"])])]), d(he, null, {
332
+ }, null, 8, ["modelValue", "placeholder"])])]), d(be, null, {
334
333
  default: g(() => [d(z, {
335
334
  "column-defs": O.value,
336
335
  draggable: !0,
@@ -347,7 +346,7 @@ const $e = {
347
346
  })]));
348
347
  };
349
348
  }
350
- }), Ge = { class: "flex-1 flex justify-between gap-8 pl-8" }, Je = { class: "flex items-center" }, We = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Xe = { class: "fm-typo-en-body-md-600 font-semibold" }, gt = /* @__PURE__ */ A({
349
+ }), Ge = { class: "flex-1 flex justify-between gap-8 pl-8" }, Je = { class: "flex items-center" }, We = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Xe = { class: "fm-typo-en-body-md-600 font-semibold" }, pt = /* @__PURE__ */ A({
351
350
  __name: "Category",
352
351
  setup(N) {
353
352
  const h = ee(), _ = Y(), V = q(_), b = G(V), $ = oe({ dialog: h, menuLoader: b }), { categories: m } = J(), { t: r } = j();
@@ -355,11 +354,11 @@ const $e = {
355
354
  $.create();
356
355
  }
357
356
  const t = B(() => m.value.length);
358
- return ke().resetOnMount(), (O, u) => (f(), U(ve, {
357
+ return we().resetOnMount(), (O, u) => (f(), U(he, {
359
358
  heading: e(r)("menu.category.title")
360
359
  }, {
361
360
  default: g(() => [
362
- e(m).length > 0 ? (f(), U(qe, { key: 0 })) : (f(), U(e(Ve), {
361
+ e(m).length > 0 ? (f(), U(qe, { key: 0 })) : (f(), U(e(ve), {
363
362
  key: 1,
364
363
  action: {
365
364
  text: e(r)("menu.category.add"),
@@ -389,5 +388,5 @@ const $e = {
389
388
  }
390
389
  });
391
390
  export {
392
- gt as default
391
+ pt as default
393
392
  };