@feedmepos/mf-menu 0.32.7-dev → 0.32.8-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 (67) hide show
  1. package/dist/{App-DCkQc7e4.js → App-B5S9byVJ.js} +5456 -4621
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-uzmq3vwy.js → ApplyProduct.vue_vue_type_script_setup_true_lang-bSXFWpq_.js} +3 -3
  3. package/dist/{Catalog-CUPoRid3.js → Catalog-CTfF5FmI.js} +52 -52
  4. package/dist/{Category-BkvhZ57Y.js → Category-BntCVeoT.js} +57 -57
  5. package/dist/{Category-Cdw0ikhP.js → Category-Z3bphlCX.js} +26 -26
  6. package/dist/{CookingGuide-BZ-4oULM.js → CookingGuide-CoPo2Alx.js} +127 -127
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CJvVFWdR.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DJ3sb3XV.js} +1 -1
  8. package/dist/{Group-Cec83DWm.js → Group-B7rZfFlT.js} +3 -3
  9. package/dist/{Group-C1FaXdUb.js → Group-CblWJOl1.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-2_lLBdX2.js → Group.vue_vue_type_script_setup_true_lang-wX7yqw0Z.js} +33 -33
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BEDyKWhK.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DW1gBCBA.js} +27 -27
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-BteTvMnx.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CcQBD0I8.js} +7 -7
  13. package/dist/{Ingredient-DulL8h2B.js → Ingredient-Bn-jeNeI.js} +46 -46
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DoBx7Dal.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DbGNFA3D.js} +2 -2
  15. package/dist/{LinkProductSideSheet-Br2eE8pC.js → LinkProductSideSheet-BjcQDT4U.js} +61 -61
  16. package/dist/{MenuSetting-DxW4LCW4.js → MenuSetting-BT5YSMgK.js} +14 -14
  17. package/dist/{PrintRoute-Da6Zkx-0.js → PrintRoute-B0j0eqNM.js} +34 -34
  18. package/dist/{Product-Cs76t18_.js → Product-BOMprFhc.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-C6SOu4Vv.js → Product.vue_vue_type_script_setup_true_lang-q9xFzQ0v.js} +142 -142
  20. package/dist/{ProductInternalTools-DPbeRvTM.js → ProductInternalTools-O5d2jMAH.js} +39 -39
  21. package/dist/{Products--7dGfuuT.js → Products-BnMrK40x.js} +15 -15
  22. package/dist/{Publish-COmZtiyX.js → Publish-dTP5mQS3.js} +26 -26
  23. package/dist/{Recipe-BaN_1zrP.js → Recipe-DnftcZPO.js} +26 -26
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js → RuleView.vue_vue_type_script_setup_true_lang-DSfiVSBV.js} +2 -2
  25. package/dist/{Scheduler-BSUpIAaK.js → Scheduler-DRLaQK_V.js} +22 -22
  26. package/dist/{ServingSequence-dXBb7e5d.js → ServingSequence-CPIyJ7T8.js} +39 -39
  27. package/dist/{Setting-CalEQW0n.js → Setting-CLtISC4c.js} +22 -22
  28. package/dist/{Subcategory-zPHtX7Vc.js → Subcategory-b0bXCYYY.js} +32 -32
  29. package/dist/{Takeaway-CRDj2Bpe.js → Takeaway-CCIKDCoF.js} +12 -12
  30. package/dist/{Takeaway-CcnmeTmu.js → Takeaway-h9uUxFJd.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Cj7vyOaP.js → Takeaway.vue_vue_type_script_setup_true_lang-BOG_W-2a.js} +26 -26
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-B0552qsN.js → Thumbnail.vue_vue_type_script_setup_true_lang-D4KcX3XQ.js} +26 -26
  33. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B3EByLES.js +6016 -0
  34. package/dist/{Unit-C7-Oj5S3.js → Unit-B0kiwrN6.js} +13 -13
  35. package/dist/{Variant-CYiMkE0q.js → Variant-CJSk0kTW.js} +18 -18
  36. package/dist/{_id_-D75ZcNlf.js → _id_-108G3lsv.js} +22 -22
  37. package/dist/{app-DzVMOviz.js → app-BTn28hDr.js} +1 -1
  38. package/dist/{app-BhLVpUSl.js → app-CPJH5bgs.js} +26 -26
  39. package/dist/app.js +1 -1
  40. package/dist/apps/mf-menu/src/stores/menu.d.ts +4 -0
  41. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/assets/{linked-status-BoIPm5hC.js → linked-status-Bp5piT25.js} +2 -2
  43. package/dist/assets/{override-menu-DfTrwWpR.js → override-menu-D47qVZAi.js} +2 -2
  44. package/dist/assets/{validate-menu-BhWvQ3T9.js → validate-menu-YuXYm9iE.js} +2 -2
  45. package/dist/{catalog-CudNSsIP.js → catalog-CpFTifAS.js} +1 -1
  46. package/dist/{catalogSetting-BVHO9tK3.js → catalogSetting-DjGqI2Vf.js} +1 -1
  47. package/dist/{category-BQpgz1lk.js → category-DaRWiQd8.js} +5 -5
  48. package/dist/{currency-BfS7H2KE.js → currency-DbURufyM.js} +1 -1
  49. package/dist/{index-aaoziUNI.js → index-C6AkIinM.js} +1 -1
  50. package/dist/{index-DmGJvREM.js → index-D67GKEzf.js} +1 -1
  51. package/dist/{index-DuLXS699.js → index-kjRAsH_h.js} +38 -38
  52. package/dist/{index-BHdPJta4.js → index-pJtym1c6.js} +21 -21
  53. package/dist/{index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js → index.vue_vue_type_script_setup_true_lang-BvohjQ00.js} +438 -428
  54. package/dist/item-2WoPAnNJ.js +6838 -0
  55. package/dist/{iteration-CaliNodx.js → iteration-BGItxpWj.js} +1 -1
  56. package/dist/{jszip.min-DXbkmgRD.js → jszip.min-D8NeBCPG.js} +2 -2
  57. package/dist/{menu-D-lUEuvX.js → menu-DVdMR0zo.js} +1 -1
  58. package/dist/{menuV2-D-6O36DO.js → menuV2-CcBdUc80.js} +41 -41
  59. package/dist/mf-menu.css +1 -1
  60. package/dist/{priceTier-DKnYaOA9.js → priceTier-CTfRyTuS.js} +1 -1
  61. package/dist/{scheduler-DEwfbYPL.js → scheduler-DOMDX4d7.js} +20 -20
  62. package/dist/{subcategory-CQKklgcd.js → subcategory-NsslZ1my.js} +6 -6
  63. package/dist/{toExcel-CRwL-QqF.js → toExcel-Bdne-Dw_.js} +2 -2
  64. package/dist/{unit-BzM1rmN7.js → unit-DKyvdauo.js} +29 -29
  65. package/package.json +1 -1
  66. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BwnyIDNH.js +0 -6038
  67. package/dist/item-BtKW0wdj.js +0 -7685
@@ -1,12 +1,12 @@
1
- import { defineComponent as J, ref as T, computed as f, resolveComponent as g, createBlock as P, openBlock as p, unref as l, withCtx as m, createElementVNode as i, createVNode as c, createCommentVNode as G, toDisplayString as S, createElementBlock as L, Fragment as A, renderList as B, h as _, withModifiers as q } from "vue";
1
+ import { defineComponent as J, ref as T, computed as f, resolveComponent as g, createBlock as P, openBlock as p, unref as l, withCtx as m, createElementVNode as i, createVNode as c, createCommentVNode as H, toDisplayString as S, createElementBlock as L, Fragment as A, renderList as B, h as _, withModifiers as q } from "vue";
2
2
  import { useI18n as Q } from "@feedmepos/mf-common";
3
3
  import { components as W, useSnackbar as te, useDialog as oe } from "@feedmepos/ui-library";
4
4
  import { _ as ne } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { _ as ae } from "./app-BhLVpUSl.js";
6
- import { H as j, I as le, J as Y, z as C, u as re, O as se, D as ie, a3 as ue } from "./index.vue_vue_type_script_setup_true_lang-Dje9kp-F.js";
7
- import { _ as H } from "./RuleView.vue_vue_type_script_setup_true_lang-DputprQj.js";
5
+ import { _ as ae } from "./app-CPJH5bgs.js";
6
+ import { I as j, J as le, K as Y, A as C, u as re, P as se, G as ie, a3 as ue } from "./index.vue_vue_type_script_setup_true_lang-BvohjQ00.js";
7
+ import { _ as G } from "./RuleView.vue_vue_type_script_setup_true_lang-DSfiVSBV.js";
8
8
  import { u as de } from "./discardConfirm-BHni0LNu.js";
9
- import { L as ce } from "./LinkProductSideSheet-Br2eE8pC.js";
9
+ import { L as ce } from "./LinkProductSideSheet-BjcQDT4U.js";
10
10
  import { _ as me } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
11
11
  const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, fe = { class: "space-y-16" }, ve = { class: "flex items-center gap-8" }, ye = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ge = { class: "flex-1" }, he = { class: "grow overflow-y-auto" }, be = { class: "text-fm-color-typo-secondary bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-fm-color-neutral-gray-200" }, xe = { class: "px-16 py-8 flex-1" }, ke = { class: "py-8" }, Fe = { class: "flex gap-8 items-center justify-start" }, Ie = /* @__PURE__ */ J({
12
12
  __name: "PrintDepartmentDialog",
@@ -22,9 +22,9 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
22
22
  },
23
23
  emits: ["onSave"],
24
24
  setup(v, { expose: t, emit: h }) {
25
- const N = v;
25
+ const K = v;
26
26
  t({
27
- showModal: D,
27
+ showModal: z,
28
28
  hideModal: V
29
29
  });
30
30
  function b() {
@@ -35,7 +35,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
35
35
  };
36
36
  }
37
37
  const x = T(!1), M = T(void 0);
38
- function D(r) {
38
+ function z(r) {
39
39
  M.value = r ? j(r) : b(), n.value = j(M.value), x.value = !0;
40
40
  }
41
41
  function V() {
@@ -48,21 +48,21 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
48
48
  applyToItems: r.map((a) => a._id)
49
49
  };
50
50
  }
51
- function $(r) {
51
+ function N(r) {
52
52
  n.value = {
53
53
  ...n.value,
54
54
  applyToItems: n.value.applyToItems.filter((a) => a !== r)
55
55
  };
56
56
  }
57
- const { t: u } = Q(), O = f(() => n.value._id ? u("menu.print_route.department_dialog.update.title") : u("menu.print_route.department_dialog.add.title")), F = f(() => n.value._id ? u("menu.print_route.department_dialog.update.action") : u("menu.print_route.department_dialog.add.action")), z = f(() => n.value.applyToItems.length), K = f(
57
+ const { t: u } = Q(), O = f(() => n.value._id ? u("menu.print_route.department_dialog.update.title") : u("menu.print_route.department_dialog.add.title")), F = f(() => n.value._id ? u("menu.print_route.department_dialog.update.action") : u("menu.print_route.department_dialog.add.action")), U = f(() => n.value.applyToItems.length), $ = f(
58
58
  () => n.value.applyToItems.reduce((r, a) => (r[a] = [], r), {})
59
59
  ), e = T(""), o = f(() => {
60
60
  const r = e.value.toLowerCase();
61
- return N.categorizedItems.reduce((a, d) => {
62
- const U = d.items.filter(
63
- (I) => (!r || I.name.toLowerCase().includes(r)) && !!K.value[I._id]
61
+ return K.categorizedItems.reduce((a, d) => {
62
+ const D = d.items.filter(
63
+ (I) => (!r || I.name.toLowerCase().includes(r)) && !!$.value[I._id]
64
64
  );
65
- return U.length && a.push({ ...d, items: U }), a;
65
+ return D.length && a.push({ ...d, items: D }), a;
66
66
  }, []);
67
67
  }), y = h, w = de(
68
68
  () => !le.isEqual(M.value, n.value),
@@ -74,7 +74,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
74
74
  V(), y("onSave", n.value);
75
75
  }
76
76
  return (r, a) => {
77
- const d = g("FmTextField"), U = g("FmSpacer"), I = g("FmButton"), X = g("FmSearch"), Z = g("FmSideSheet");
77
+ const d = g("FmTextField"), D = g("FmSpacer"), I = g("FmButton"), X = g("FmSearch"), Z = g("FmSideSheet");
78
78
  return p(), P(Z, {
79
79
  modelValue: x.value,
80
80
  "onUpdate:modelValue": a[3] || (a[3] = (s) => x.value = s),
@@ -109,7 +109,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
109
109
  ]),
110
110
  default: m(() => [
111
111
  i("div", _e, [
112
- c(H, {
112
+ c(G, {
113
113
  title: l(u)("menu.print_route.department_dialog.sections.route_detail.title")
114
114
  }, {
115
115
  default: m(() => [
@@ -126,12 +126,12 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
126
126
  ]),
127
127
  _: 1
128
128
  }, 8, ["title"]),
129
- v.canApplyItems ? (p(), P(H, {
129
+ v.canApplyItems ? (p(), P(G, {
130
130
  key: 0,
131
131
  title: l(u)("menu.print_route.department_dialog.sections.link_product.title")
132
132
  }, {
133
133
  "append-title": m(() => [
134
- c(U),
134
+ c(D),
135
135
  c(ce, {
136
136
  "categorized-items": v.categorizedItems,
137
137
  "initial-value": n.value.applyToItems.map((s) => ({
@@ -156,7 +156,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
156
156
  i("div", fe, [
157
157
  i("div", ve, [
158
158
  i("div", ye, S(l(u)("menu.print_route.department_dialog.sections.link_product.products_linked", {
159
- count: z.value
159
+ count: U.value
160
160
  })), 1),
161
161
  i("div", ge, [
162
162
  c(X, {
@@ -181,7 +181,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
181
181
  icon: "delete",
182
182
  variant: "tertiary",
183
183
  "text-color": "neutral-gray-400",
184
- onClick: () => $(R._id)
184
+ onClick: () => N(R._id)
185
185
  }, null, 8, ["onClick"])
186
186
  ])
187
187
  ]))), 128))
@@ -190,7 +190,7 @@ const pe = { class: "fm-typo-en-title-md-600" }, _e = { class: "space-y-32" }, f
190
190
  ])
191
191
  ]),
192
192
  _: 1
193
- }, 8, ["title"])) : G("", !0)
193
+ }, 8, ["title"])) : H("", !0)
194
194
  ])
195
195
  ]),
196
196
  _: 1
@@ -242,7 +242,7 @@ const Ee = {
242
242
  setup(v) {
243
243
  const {
244
244
  t
245
- } = Q(), h = re(), N = f(() => h.categorizedItems), b = f(() => {
245
+ } = Q(), h = re(), K = f(() => h.categorizedItems), b = f(() => {
246
246
  const e = h.state.menu.modules.item;
247
247
  return h.printDepartments.map((y) => ({
248
248
  ...y,
@@ -286,13 +286,13 @@ const Ee = {
286
286
  }, ["stop", "prevent"])
287
287
  })])
288
288
  }]);
289
- function D() {
289
+ function z() {
290
290
  var e;
291
- k.value || (e = z.value) == null || e.showModal();
291
+ k.value || (e = U.value) == null || e.showModal();
292
292
  }
293
293
  function V(e) {
294
294
  var o;
295
- k.value || (o = z.value) == null || o.showModal({
295
+ k.value || (o = U.value) == null || o.showModal({
296
296
  ...e,
297
297
  applyToItems: e.applyToItems.map(({
298
298
  _id: y
@@ -300,7 +300,7 @@ const Ee = {
300
300
  });
301
301
  }
302
302
  const n = se(ie(te())), k = f(() => n.checkMenuIsLoading());
303
- async function $(e) {
303
+ async function N(e) {
304
304
  const o = e._id ? Ve(e, e.applyToItems) : Ce(e, e.applyToItems);
305
305
  await n.updateMenu(o, e.name);
306
306
  }
@@ -331,7 +331,7 @@ const Ee = {
331
331
  await n.updateMenu(we(e), e.name, !0);
332
332
  });
333
333
  }
334
- const F = T(""), z = T(), K = f(() => {
334
+ const F = T(""), U = T(), $ = f(() => {
335
335
  if (!F.value) return b.value;
336
336
  const e = F.value.toLowerCase();
337
337
  return b.value.filter((o) => o.name.toLowerCase().includes(e));
@@ -347,8 +347,8 @@ const Ee = {
347
347
  icon: "add",
348
348
  label: l(t)("menu.print_route.actions.add"),
349
349
  variant: "primary",
350
- onClick: D
351
- }, null, 8, ["disabled", "label"])) : G("", !0)])]),
350
+ onClick: z
351
+ }, null, 8, ["disabled", "label"])) : H("", !0)])]),
352
352
  default: m(() => [x.value ? (p(), L(A, {
353
353
  key: 1
354
354
  }, [i("div", Te, [c(y, {
@@ -376,7 +376,7 @@ const Ee = {
376
376
  class: "w-full px-16 xs:block hidden flex-1 min-h-0 overflow-scroll pb-64",
377
377
  separator: ""
378
378
  }, {
379
- default: m(() => [(p(!0), L(A, null, B(K.value, (d) => (p(), P(r, {
379
+ default: m(() => [(p(!0), L(A, null, B($.value, (d) => (p(), P(r, {
380
380
  key: d._id,
381
381
  label: d.name,
382
382
  style: {
@@ -400,15 +400,15 @@ const Ee = {
400
400
  key: 0,
401
401
  action: {
402
402
  text: l(t)("menu.print_route.empty.action"),
403
- callback: D
403
+ callback: z
404
404
  },
405
405
  subtitle: l(t)("menu.print_route.empty.subtitle"),
406
406
  title: l(t)("menu.print_route.empty.title")
407
407
  }, null, 8, ["action", "subtitle", "title"])), c(Ie, {
408
408
  ref_key: "printDepartmentRef",
409
- ref: z,
410
- "categorized-items": N.value,
411
- onOnSave: $
409
+ ref: U,
410
+ "categorized-items": K.value,
411
+ onOnSave: N
412
412
  }, null, 8, ["categorized-items"])]),
413
413
  _: 1
414
414
  }, 8, ["heading"]);
@@ -1,4 +1,4 @@
1
- import { a as f } from "./Product.vue_vue_type_script_setup_true_lang-C6SOu4Vv.js";
1
+ import { a as f } from "./Product.vue_vue_type_script_setup_true_lang-q9xFzQ0v.js";
2
2
  export {
3
3
  f as default
4
4
  };