@feedmepos/mf-menu 0.32.43 → 0.32.44

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 (71) hide show
  1. package/dist/{App-C9b4SjED.js → App-BXkiQoTM.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C1T4Ewek.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BoSL4dm7.js} +3 -3
  3. package/dist/{Catalog-BVrf3VaX.js → Catalog-CLFVLyor.js} +44 -44
  4. package/dist/{Category-BkReM5IG.js → Category-BdyouDU8.js} +24 -24
  5. package/dist/{Category-BMzIQqIE.js → Category-CNuVHuI3.js} +25 -25
  6. package/dist/{CookingGuide-CvctI1TH.js → CookingGuide-Bed7bUt1.js} +105 -105
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-bYSEp6Wb.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CZDL2xJC.js} +1 -1
  8. package/dist/{Group-CHkNuuHE.js → Group-D4UTsIxI.js} +3 -3
  9. package/dist/{Group-BQzmXagr.js → Group-TUqCPmO3.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-BkruJTpL.js → Group.vue_vue_type_script_setup_true_lang-BJPT8flL.js} +19 -19
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CBz83Qd1.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D83liryu.js} +30 -30
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Dpx4meDa.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CRIRinHB.js} +10 -11
  13. package/dist/{Ingredient-BNsKYrQB.js → Ingredient-CcxoeuDd.js} +20 -20
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DzzwwdA_.js → InventoryBinding.vue_vue_type_script_setup_true_lang-58tyxdVh.js} +2 -2
  15. package/dist/{LinkProductSideSheet-C6-wef-M.js → LinkProductSideSheet-DazOkwkd.js} +45 -45
  16. package/dist/{MenuSetting-DRaw7b6m.js → MenuSetting-B3oLll4C.js} +47 -47
  17. package/dist/{PrintRoute-BKB-thVp.js → PrintRoute-D878qPu8.js} +39 -39
  18. package/dist/{Product-vviXmBR1.js → Product-DOC8y_mW.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-5h-k6zad.js → Product.vue_vue_type_script_setup_true_lang-tZyBhWYT.js} +140 -140
  20. package/dist/{ProductInternalTools-DtLk3xFR.js → ProductInternalTools-9TgIc2bR.js} +66 -66
  21. package/dist/Products-DfUGnHmD.js +1568 -0
  22. package/dist/{Publish-jx0_H_26.js → Publish-BktK_PKq.js} +29 -29
  23. package/dist/{Recipe-Dk04ge-_.js → Recipe-eA0xrGYk.js} +24 -24
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DaCVUn1i.js → RuleView.vue_vue_type_script_setup_true_lang-t8M7z09s.js} +2 -2
  25. package/dist/{Scheduler-vFTvCVcY.js → Scheduler-CKSqPZLQ.js} +11 -11
  26. package/dist/{ServingSequence-DiBqQ_iS.js → ServingSequence-Ea20baNj.js} +44 -44
  27. package/dist/{Setting-CtzJ_pVM.js → Setting-u6lX_Dzg.js} +17 -17
  28. package/dist/{Subcategory-Cmv2W67T.js → Subcategory-C6s7OMOb.js} +51 -51
  29. package/dist/{Takeaway-DBW4UPFZ.js → Takeaway-B9kr-Nf4.js} +13 -13
  30. package/dist/{Takeaway-ChaYk0Ix.js → Takeaway-lWxS9oWe.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-C7RL3ITP.js → Takeaway.vue_vue_type_script_setup_true_lang-oA0e9oI5.js} +54 -54
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-edwJ1203.js → Thumbnail.vue_vue_type_script_setup_true_lang-T40ChY7j.js} +27 -27
  33. package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-CcIGCUwk.js +194 -0
  34. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B1e3d-uX.js +6130 -0
  35. package/dist/{Unit-BgLqPMLe.js → Unit-DkQlUg2l.js} +8 -8
  36. package/dist/{Variant-B8yxF5mJ.js → Variant-BF5r2WLL.js} +25 -25
  37. package/dist/{_id_-CDN7as0K.js → _id_-_oqk-OhC.js} +28 -28
  38. package/dist/app-CfCYl2pO.js +363 -0
  39. package/dist/{app-0AQBxO0B.js → app-DIYHNWEw.js} +1 -1
  40. package/dist/app.js +1 -1
  41. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/assets/{linked-status-DTIHdzDw.js → linked-status-AoXjo9FF.js} +2 -2
  43. package/dist/assets/{menu-export-CpcyYnR-.js → menu-export-BHcaWhM3.js} +2 -2
  44. package/dist/assets/{override-menu-CASoFjhZ.js → override-menu-B9xQcjuJ.js} +2 -2
  45. package/dist/assets/{validate-menu-C5AkexWv.js → validate-menu-D-ezd4W8.js} +2 -2
  46. package/dist/{catalog-BA1e4WAu.js → catalog-CvN9Wu8V.js} +1 -1
  47. package/dist/{catalogSetting-DE5rjVfj.js → catalogSetting-qS5Np22q.js} +1 -1
  48. package/dist/{currency-D5qYOpxI.js → currency-Nxod6uwl.js} +1 -1
  49. package/dist/dayjs.min-B1AjAGva.js +6 -0
  50. package/dist/index-C0Zw1cSS.js +545 -0
  51. package/dist/{index-vPs04fVf.js → index-Cq-czJjU.js} +31 -31
  52. package/dist/index-nKlYiotY.js +246 -0
  53. package/dist/{index.vue_vue_type_script_setup_true_lang-DSZsSghE.js → index.vue_vue_type_script_setup_true_lang-YXKayPEp.js} +103 -78
  54. package/dist/{item-Dp17qTYi.js → item-CUZSonzT.js} +2587 -2587
  55. package/dist/{jszip.min-DlpCmtaR.js → jszip.min-BnkZQ6lD.js} +6 -7
  56. package/dist/{menu-BOVrJ7di.js → menu-BP_ArXCI.js} +1 -1
  57. package/dist/{menuV2-BHnldQiM.js → menuV2-BGEYgQ8-.js} +59 -59
  58. package/dist/{priceTier-BRQz1GRF.js → priceTier-B-Qa0xaO.js} +1 -1
  59. package/dist/{rules-CO49kqfr.js → rules-Dchd_ilF.js} +12 -12
  60. package/dist/{scheduler-BDHjl8t7.js → scheduler-DN7ZGLk8.js} +29 -29
  61. package/dist/{toExcel-DGdZKSxT.js → toExcel-jHmkDqcm.js} +2 -2
  62. package/dist/{translation-BCZ1Ruvv.js → translation-Cdap0IVg.js} +21 -35
  63. package/dist/{unit-D7QVgTp_.js → unit-DgL56pkI.js} +35 -35
  64. package/package.json +1 -1
  65. package/dist/Products-BR3iBVFd.js +0 -307
  66. package/dist/RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-I6qrPmxY.js +0 -144
  67. package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-Cs6s_csi.js +0 -196
  68. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DIbjlDVn.js +0 -5767
  69. package/dist/app-BU6wILmn.js +0 -2286
  70. package/dist/dayjs.min-BFDAHpA8.js +0 -7
  71. package/dist/index--nQbIQ0d.js +0 -545
@@ -1,14 +1,14 @@
1
- import { defineComponent as H, ref as T, computed as p, resolveComponent as g, createBlock as k, openBlock as c, unref as l, withCtx as _, createElementVNode as d, createVNode as m, createCommentVNode as J, toDisplayString as P, createElementBlock as S, Fragment as A, renderList as R, h as f, withModifiers as q } from "vue";
2
- import { useI18n as Q } from "@feedmepos/mf-common";
1
+ import { defineComponent as J, ref as T, computed as p, resolveComponent as g, createBlock as k, openBlock as c, unref as l, withCtx as _, createElementVNode as d, createVNode as m, createCommentVNode as Q, toDisplayString as P, createElementBlock as M, Fragment as A, renderList as R, h as f, withModifiers as q } from "vue";
2
+ import { useI18n as H } from "@feedmepos/mf-common";
3
3
  import { components as W, useBreakpoints as te, useSnackbar as oe, useDialog as ne } from "@feedmepos/ui-library";
4
4
  import { _ as ae } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { _ as le } from "./app-BU6wILmn.js";
6
- import { G as j, H as re, J as Y, y as V, u as se, O as ie, B as ue, a2 as de } from "./index.vue_vue_type_script_setup_true_lang-DSZsSghE.js";
7
- import { _ as G } from "./RuleView.vue_vue_type_script_setup_true_lang-DaCVUn1i.js";
5
+ import { _ as le } from "./app-CfCYl2pO.js";
6
+ import { I as j, J as re, M as Y, A as V, u as se, Q as ie, G as ue, a4 as de } from "./index.vue_vue_type_script_setup_true_lang-YXKayPEp.js";
7
+ import { _ as G } from "./RuleView.vue_vue_type_script_setup_true_lang-t8M7z09s.js";
8
8
  import { u as ce } from "./discardConfirm-BHni0LNu.js";
9
- import { L as me } from "./LinkProductSideSheet-C6-wef-M.js";
9
+ import { L as me } from "./LinkProductSideSheet-DazOkwkd.js";
10
10
  import { _ as pe } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
11
- const _e = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, ve = { class: "space-y-16" }, ye = { class: "flex items-center gap-8" }, ge = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, he = { class: "flex-1" }, be = { class: "grow overflow-y-auto" }, ke = { 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" }, Fe = { class: "py-8" }, Ie = { class: "flex gap-8 items-center justify-start" }, Ce = /* @__PURE__ */ H({
11
+ const _e = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, ve = { class: "space-y-16" }, ye = { class: "flex items-center gap-8" }, ge = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, he = { class: "flex-1" }, be = { class: "grow overflow-y-auto" }, ke = { 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" }, Fe = { class: "py-8" }, Ie = { class: "flex gap-8 items-center justify-start" }, Ce = /* @__PURE__ */ J({
12
12
  __name: "PrintDepartmentDialog",
13
13
  props: {
14
14
  categorizedItems: {
@@ -22,10 +22,10 @@ const _e = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, v
22
22
  },
23
23
  emits: ["onSave"],
24
24
  setup(v, { expose: t, emit: x }) {
25
- const B = v;
25
+ const N = v;
26
26
  t({
27
27
  showModal: O,
28
- hideModal: L
28
+ hideModal: S
29
29
  });
30
30
  function w() {
31
31
  return {
@@ -38,7 +38,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, v
38
38
  function O(s) {
39
39
  h.value = s ? j(s) : w(), r.value = j(h.value), F.value = !0;
40
40
  }
41
- function L() {
41
+ function S() {
42
42
  F.value = !1;
43
43
  }
44
44
  const r = T(w());
@@ -48,17 +48,17 @@ const _e = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, v
48
48
  applyToItems: s.map((o) => o._id)
49
49
  };
50
50
  }
51
- function M(s) {
51
+ function L(s) {
52
52
  r.value = {
53
53
  ...r.value,
54
54
  applyToItems: r.value.applyToItems.filter((o) => o !== s)
55
55
  };
56
56
  }
57
- const { t: a } = Q(), z = p(() => r.value._id ? a("menu.print_route.department_dialog.update.title") : a("menu.print_route.department_dialog.add.title")), N = p(() => r.value._id ? a("menu.print_route.department_dialog.update.action") : a("menu.print_route.department_dialog.add.action")), D = p(() => r.value.applyToItems.length), I = p(
57
+ const { t: a } = H(), z = p(() => r.value._id ? a("menu.print_route.department_dialog.update.title") : a("menu.print_route.department_dialog.add.title")), $ = p(() => r.value._id ? a("menu.print_route.department_dialog.update.action") : a("menu.print_route.department_dialog.add.action")), D = p(() => r.value.applyToItems.length), I = p(
58
58
  () => r.value.applyToItems.reduce((s, o) => (s[o] = [], s), {})
59
- ), C = T(""), $ = p(() => {
59
+ ), C = T(""), B = p(() => {
60
60
  const s = C.value.toLowerCase();
61
- return B.categorizedItems.reduce((o, b) => {
61
+ return N.categorizedItems.reduce((o, b) => {
62
62
  const E = b.items.filter(
63
63
  (i) => (!s || i.name.toLowerCase().includes(s)) && !!I.value[i._id]
64
64
  );
@@ -71,7 +71,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, v
71
71
  }
72
72
  );
73
73
  function y() {
74
- L(), e("onSave", r.value);
74
+ S(), e("onSave", r.value);
75
75
  }
76
76
  return (s, o) => {
77
77
  const b = g("FmTextField"), E = g("FmSpacer"), i = g("FmButton"), X = g("FmSearch"), Z = g("FmSideSheet");
@@ -94,7 +94,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, v
94
94
  "side-sheet-footer": _(() => [
95
95
  d("div", Ie, [
96
96
  m(i, {
97
- label: N.value,
97
+ label: $.value,
98
98
  size: "lg",
99
99
  variant: "primary",
100
100
  type: "submit"
@@ -103,7 +103,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, v
103
103
  label: l(a)("menu.print_route.department_dialog.actions.cancel"),
104
104
  size: "lg",
105
105
  variant: "tertiary",
106
- onClick: L
106
+ onClick: S
107
107
  }, null, 8, ["label"])
108
108
  ])
109
109
  ]),
@@ -167,11 +167,11 @@ const _e = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, v
167
167
  ])
168
168
  ]),
169
169
  d("div", be, [
170
- (c(!0), S(A, null, R($.value, (u, ee) => (c(), S("div", {
170
+ (c(!0), M(A, null, R(B.value, (u, ee) => (c(), M("div", {
171
171
  key: u.id || ee
172
172
  }, [
173
173
  d("div", ke, P(u.name), 1),
174
- (c(!0), S(A, null, R(u.items, (K) => (c(), S("div", {
174
+ (c(!0), M(A, null, R(u.items, (K) => (c(), M("div", {
175
175
  key: K._id,
176
176
  class: "flex items-center border-b border-b-fm-color-neutral-gray-100"
177
177
  }, [
@@ -181,7 +181,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, v
181
181
  icon: "delete",
182
182
  variant: "tertiary",
183
183
  "text-color": "neutral-gray-400",
184
- onClick: () => M(K._id)
184
+ onClick: () => L(K._id)
185
185
  }, null, 8, ["onClick"])
186
186
  ])
187
187
  ]))), 128))
@@ -190,7 +190,7 @@ const _e = { class: "fm-typo-en-title-md-600" }, fe = { class: "space-y-32" }, v
190
190
  ])
191
191
  ]),
192
192
  _: 1
193
- }, 8, ["title"])) : J("", !0)
193
+ }, 8, ["title"])) : Q("", !0)
194
194
  ])
195
195
  ]),
196
196
  _: 1
@@ -231,18 +231,18 @@ const Te = {
231
231
  class: "flex flex-1 justify-end"
232
232
  }, Pe = {
233
233
  class: "flex justify-end items-center"
234
- }, Se = {
234
+ }, Me = {
235
235
  class: "grow space-y-4"
236
- }, Le = {
236
+ }, Se = {
237
237
  class: "fm-typo-en-body-lg-600"
238
- }, Me = {
238
+ }, Le = {
239
239
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
240
- }, Ye = /* @__PURE__ */ H({
240
+ }, Ye = /* @__PURE__ */ J({
241
241
  __name: "PrintRoute",
242
242
  setup(v) {
243
243
  const {
244
244
  t
245
- } = Q(), x = te(), B = p(() => x.breakpoints.value.xs), w = se(), F = p(() => w.categorizedItems), h = p(() => {
245
+ } = H(), x = te(), N = p(() => x.breakpoints.value.xs), w = se(), F = p(() => w.categorizedItems), h = p(() => {
246
246
  const e = w.state.menu.modules.item;
247
247
  return w.printDepartments.map((y) => ({
248
248
  ...y,
@@ -251,7 +251,7 @@ const Te = {
251
251
  return (b = o.print) != null && b.department.includes(y._id) && s.push(o), s;
252
252
  }, [])
253
253
  }), []);
254
- }), O = p(() => h.value.length > 0), L = p(() => [{
254
+ }), O = p(() => h.value.length > 0), S = p(() => [{
255
255
  accessorKey: "name",
256
256
  header: () => t("menu.print_route.table.columns.name"),
257
257
  cell: (e) => e.getValue(),
@@ -299,12 +299,12 @@ const Te = {
299
299
  }) => y)
300
300
  });
301
301
  }
302
- const M = ie(ue(oe())), a = p(() => M.checkMenuIsLoading());
302
+ const L = ie(ue(oe())), a = p(() => L.checkMenuIsLoading());
303
303
  async function z(e) {
304
304
  const n = e._id ? we(e, e.applyToItems) : Ve(e, e.applyToItems);
305
- await M.updateMenu(n, e.name);
305
+ await L.updateMenu(n, e.name);
306
306
  }
307
- const N = ne();
307
+ const $ = ne();
308
308
  function D(e) {
309
309
  let n = [f("span", t("menu.print_route.dialogs.remove.message.prefix")), f("span", {
310
310
  class: "fm-typo-en-body-lg-600"
@@ -315,7 +315,7 @@ const Te = {
315
315
  class: "mt-8 fm-typo-en-body-md-400"
316
316
  }, e.applyToItems.map((y) => f("li", {
317
317
  class: "mt-4"
318
- }, y.name)))]), N.open({
318
+ }, y.name)))]), $.open({
319
319
  title: t("menu.print_route.dialogs.remove.title"),
320
320
  contentComponent: f("div", n),
321
321
  primaryActions: {
@@ -328,10 +328,10 @@ const Te = {
328
328
  close: !0
329
329
  }
330
330
  }).onPrimary(async () => {
331
- await M.updateMenu(Ee(e), e.name, !0);
331
+ await L.updateMenu(Ee(e), e.name, !0);
332
332
  });
333
333
  }
334
- const I = T(""), C = T(), $ = p(() => {
334
+ const I = T(""), C = T(), B = p(() => {
335
335
  if (!I.value) return h.value;
336
336
  const e = I.value.toLowerCase();
337
337
  return h.value.filter((n) => n.name.toLowerCase().includes(e));
@@ -348,8 +348,8 @@ const Te = {
348
348
  label: l(t)("menu.print_route.actions.add"),
349
349
  variant: "primary",
350
350
  onClick: r
351
- }, null, 8, ["disabled", "label"])) : J("", !0)])]),
352
- default: _(() => [O.value ? (c(), S(A, {
351
+ }, null, 8, ["disabled", "label"])) : Q("", !0)])]),
352
+ default: _(() => [O.value ? (c(), M(A, {
353
353
  key: 1
354
354
  }, [d("div", Pe, [m(y, {
355
355
  autofocus: "",
@@ -357,12 +357,12 @@ const Te = {
357
357
  "onUpdate:modelValue": n[0] || (n[0] = (i) => I.value = i),
358
358
  class: "my-8 w-[320px] xs:w-full xs:px-16",
359
359
  placeholder: l(t)("menu.print_route.table.search.placeholder")
360
- }, null, 8, ["modelValue", "placeholder"])]), B.value ? (c(), k(E, {
360
+ }, null, 8, ["modelValue", "placeholder"])]), N.value ? (c(), k(E, {
361
361
  key: 1,
362
362
  class: "w-full px-16 flex-1 min-h-0 overflow-scroll pb-64",
363
363
  separator: ""
364
364
  }, {
365
- default: _(() => [(c(!0), S(A, null, R($.value, (i) => (c(), k(b, {
365
+ default: _(() => [(c(!0), M(A, null, R(B.value, (i) => (c(), k(b, {
366
366
  key: i._id,
367
367
  label: i.name,
368
368
  style: {
@@ -370,7 +370,7 @@ const Te = {
370
370
  },
371
371
  onClick: () => U(i)
372
372
  }, {
373
- default: _(() => [d("div", Se, [d("div", Le, P(i.name), 1), d("div", Me, P(l(t)("menu.print_route.table.mobile.products_linked", {
373
+ default: _(() => [d("div", Me, [d("div", Se, P(i.name), 1), d("div", Le, P(l(t)("menu.print_route.table.mobile.products_linked", {
374
374
  count: i.applyToItems.length
375
375
  })), 1)]), m(o, {
376
376
  disabled: a.value,
@@ -386,7 +386,7 @@ const Te = {
386
386
  key: 0
387
387
  }, {
388
388
  default: _(() => [m(s, {
389
- "column-defs": L.value,
389
+ "column-defs": S.value,
390
390
  loading: a.value,
391
391
  "page-size": h.value.length,
392
392
  "row-data": h.value,
@@ -1,4 +1,4 @@
1
- import { a as f } from "./Product.vue_vue_type_script_setup_true_lang-5h-k6zad.js";
1
+ import { a as f } from "./Product.vue_vue_type_script_setup_true_lang-tZyBhWYT.js";
2
2
  export {
3
3
  f as default
4
4
  };