@feedmepos/mf-menu 0.31.16-beta.1 → 0.31.17-beta.1

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 (70) hide show
  1. package/dist/{App-Bsppf5CN.js → App-BUjwToat.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DTuPAGEJ.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CBPOCkmg.js} +2 -2
  3. package/dist/{Catalog-Bj3MNcLG.js → Catalog-BkfsckOV.js} +18 -18
  4. package/dist/{Category-CHvG2e6b.js → Category-C7EPAK0G.js} +36 -36
  5. package/dist/{Category-WLIH1Zyc.js → Category-DTKlxBpE.js} +24 -24
  6. package/dist/{CookingGuide-C8N45xnL.js → CookingGuide-DCazfCuz.js} +56 -56
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-GriZxAIw.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-2hApsFMq.js} +1 -1
  8. package/dist/{Group-CR3LWKXE.js → Group-DLjkPLk9.js} +1 -1
  9. package/dist/{Group-Byj3qEBv.js → Group-DNBFvwk-.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-tecpeqJT.js → Group.vue_vue_type_script_setup_true_lang-8Upt5al2.js} +54 -54
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BkLHDcZV.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BIWySrgb.js} +6 -6
  12. package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-YOzhk0a0.js +96257 -0
  13. package/dist/{Ingredient-BCfCDCFS.js → Ingredient-BUIIhzYV.js} +52 -52
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CpXnjduY.js → InventoryBinding.vue_vue_type_script_setup_true_lang-nqY-pxrW.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-BGlLnnm9.js → LinkProductSideSheet-xIuPAwp7.js} +14 -14
  16. package/dist/{MenuSetting-CdKhTxyc.js → MenuSetting-C3J66nHM.js} +11 -11
  17. package/dist/{PrintRoute-B-UlUlSD.js → PrintRoute-DnZrJ9IW.js} +26 -26
  18. package/dist/{Product-BggNPOwm.js → Product-jBcyCvO7.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DPOaafZ-.js → Product.vue_vue_type_script_setup_true_lang-CsaY9Kve.js} +113 -113
  20. package/dist/ProductInternalTools-CUZSrxvR.js +415 -0
  21. package/dist/Products-CRFXG-Du.js +270 -0
  22. package/dist/{Publish-BTPdN1Ub.js → Publish-Ch5QlJ9v.js} +37 -37
  23. package/dist/{Recipe-CibJRxHH.js → Recipe-BZJUndG3.js} +25 -25
  24. package/dist/{Scheduler-DAShXnol.js → Scheduler-BgMTPzhG.js} +13 -13
  25. package/dist/{ServingSequence-DFs7VR5V.js → ServingSequence-BISPWfTD.js} +36 -36
  26. package/dist/{Setting-aApApOKZ.js → Setting-4L-p0np0.js} +24 -24
  27. package/dist/{Subcategory-CGnGq5Kd.js → Subcategory-CptCl4cb.js} +39 -39
  28. package/dist/{Takeaway-rJDqoozq.js → Takeaway-BAM3XfIf.js} +1 -1
  29. package/dist/{Takeaway-C8M-Z4eK.js → Takeaway-DqiGDTfg.js} +12 -12
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CrFeCwvr.js → Takeaway.vue_vue_type_script_setup_true_lang-oZo0esEd.js} +25 -25
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CCVSPoDB.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C7QOuqzZ.js} +115 -115
  32. package/dist/{Unit-CcWjE73k.js → Unit-BYAvg037.js} +8 -8
  33. package/dist/{Variant-BDPjFaAa.js → Variant-uGUG4vH2.js} +18 -18
  34. package/dist/{_id_-mUBoDBKS.js → _id_-Uf140OcM.js} +19 -19
  35. package/dist/{app-BBoQR7rs.js → app-50bXo6rU.js} +262 -247
  36. package/dist/{app-sdhJyRKX.js → app-CUuWtEOn.js} +1 -1
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/src/app.d.ts +12 -0
  39. package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +1618 -0
  40. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUpdatePreview.vue.d.ts +33 -0
  41. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUploadDialog.vue.d.ts +28 -0
  42. package/dist/apps/mf-menu/src/helper/import-export.d.ts +15 -19
  43. package/dist/apps/mf-menu/src/utils/batchProcessor.d.ts +33 -0
  44. package/dist/apps/mf-menu/src/utils/images.d.ts +44 -0
  45. package/dist/apps/mf-menu/src/views/Product/ProductInternalTools.vue.d.ts +2 -0
  46. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  47. package/dist/assets/{linked-status-BkX3Y-ws.js → linked-status-Dsak7omL.js} +2 -2
  48. package/dist/assets/{override-menu-Bo0ZNZ-U.js → override-menu-COqLF5sS.js} +2 -2
  49. package/dist/assets/{validate-menu-CIWz9YXT.js → validate-menu-DkLBw23v.js} +2 -2
  50. package/dist/{catalog-BbukcamZ.js → catalog-x_NpHc5w.js} +1 -1
  51. package/dist/{catalogSetting-7ZMZjqGs.js → catalogSetting-DU_dUoSh.js} +1 -1
  52. package/dist/{category-Cq2MmCBq.js → category-DJRGfRhf.js} +1 -1
  53. package/dist/{currency-OQd6moI9.js → currency-ljvNxerM.js} +1 -1
  54. package/dist/{dayjs.min-m51FMJgI.js → dayjs.min-DsjutQjn.js} +1 -1
  55. package/dist/{index-b9FcXU4s.js → index-Bb7-YO3o.js} +23 -23
  56. package/dist/{index-DlTid7hh.js → index-C58VTE70.js} +14 -14
  57. package/dist/{index-B5uSVMTf.js → index-CBnsZeF8.js} +1 -1
  58. package/dist/{item-96CGb3Kx.js → item-Cerfyitf.js} +1521 -1485
  59. package/dist/jszip.min-Co4cqzOU.js +2393 -0
  60. package/dist/{menu-Bqiz6B2P.js → menu-B7KFi80A.js} +154 -154
  61. package/dist/{menu-BmBsIlGC.js → menu-Bpul41jT.js} +1 -1
  62. package/dist/mf-menu.css +1 -1
  63. package/dist/{priceTier-Ck8MqQWD.js → priceTier-CfW69h1F.js} +1 -1
  64. package/dist/{scheduler-DeOCwKnf.js → scheduler-DsO3qpTw.js} +3 -3
  65. package/dist/{subcategory-DbiQCCF5.js → subcategory-Cb_rqtHz.js} +84 -84
  66. package/dist/{toExcel-BsguLQA5.js → toExcel-P9X-WSN5.js} +15 -15
  67. package/dist/{unit-CnM6N-39.js → unit-Dej_sihQ.js} +24 -24
  68. package/package.json +3 -2
  69. package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-BRlU0arf.js +0 -73010
  70. package/dist/Products-DZFgAKxB.js +0 -2660
@@ -1,22 +1,22 @@
1
- import { getCurrentInstance as te, defineComponent as oe, computed as h, watch as ne, h as R, resolveComponent as S, createElementBlock as C, openBlock as _, Fragment as O, normalizeClass as D, createElementVNode as k, createVNode as V, unref as t, isRef as j, withCtx as P, renderList as ie, createBlock as G, createCommentVNode as $, toDisplayString as I, withModifiers as J } from "vue";
2
- import { G as q, u as H, Q as W, M as z, I as N, J as L, z as se, ar as Q } from "./menu-Bqiz6B2P.js";
1
+ import { getCurrentInstance as te, defineComponent as oe, computed as h, watch as ne, h as R, resolveComponent as S, createElementBlock as C, openBlock as _, Fragment as O, normalizeClass as D, createElementVNode as k, createVNode as V, unref as t, isRef as j, withCtx as P, renderList as ie, createBlock as G, createCommentVNode as $, toDisplayString as B, withModifiers as H } from "vue";
2
+ import { B as q, u as Q, O as W, J as z, G as N, H as L, z as se, ar as J } from "./menu-B7KFi80A.js";
3
3
  import { useI18n as X, useCoreStore as re } from "@feedmepos/mf-common";
4
4
  import { useDialog as le, useSnackbar as Z, FmButtonVariant as A, components as ce, useBreakpoints as de } from "@feedmepos/ui-library";
5
- import { _ as ue } from "./app-BBoQR7rs.js";
5
+ import { _ as ue } from "./app-50bXo6rU.js";
6
6
  import { _ as me } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
7
- import { a as ye, l as ee, T as pe } from "./index-DlTid7hh.js";
7
+ import { a as ye, l as ee, T as pe } from "./index-C58VTE70.js";
8
8
  import { u as fe } from "./search-BAPEUu1R.js";
9
- import { f as F } from "./currency-OQd6moI9.js";
9
+ import { f as F } from "./currency-ljvNxerM.js";
10
10
  import { defineStore as _e } from "pinia";
11
- import { C as ke } from "./catalog-BbukcamZ.js";
11
+ import { C as ke } from "./catalog-x_NpHc5w.js";
12
12
  import { c as ve } from "./createComponentProgrammatically-Bt2rn1IQ.js";
13
- function we(T, M, l, m) {
13
+ function we(T, U, l, m) {
14
14
  var y, v, w, g;
15
15
  const i = L(T);
16
16
  i.override.takeaway[l._id] = {
17
17
  price: l.price || void 0
18
18
  };
19
- const f = [...l.usedBy, ...M.usedBy];
19
+ const f = [...l.usedBy, ...U.usedBy];
20
20
  for (const r of f) {
21
21
  const c = l.usedBy.some(
22
22
  (e) => e._id == r._id && e.combinationKey == r.combinationKey
@@ -46,7 +46,7 @@ function we(T, M, l, m) {
46
46
  return i;
47
47
  }
48
48
  const ge = _e("takeaway-manager", () => {
49
- const T = le(), M = Z(), l = q(M), m = W(l), i = H(), f = te(), { t: y } = X(), v = (a) => {
49
+ const T = le(), U = Z(), l = q(U), m = W(l), i = Q(), f = te(), { t: y } = X(), v = (a) => {
50
50
  var e, u;
51
51
  const { vNode: d } = ve(
52
52
  ye,
@@ -56,8 +56,8 @@ const ge = _e("takeaway-manager", () => {
56
56
  (u = (e = d.component) == null ? void 0 : e.exposed) == null || u.trigger();
57
57
  };
58
58
  async function w(a) {
59
- var u, U;
60
- const e = ((U = (u = i.currentCatalog) == null ? void 0 : u.override.takeaway[a._id]) == null ? void 0 : U.price) ? null : i.state.menu.modules.takeaway.find((b) => b._id === a._id);
59
+ var u, M;
60
+ const e = ((M = (u = i.currentCatalog) == null ? void 0 : u.override.takeaway[a._id]) == null ? void 0 : M.price) ? null : i.state.menu.modules.takeaway.find((b) => b._id === a._id);
61
61
  v({
62
62
  initialValue: a,
63
63
  applyProduct: !0,
@@ -132,24 +132,24 @@ const ge = _e("takeaway-manager", () => {
132
132
  class: "px-16 pt-8"
133
133
  }, Ve = {
134
134
  class: /* @__PURE__ */ D(["flex-1", "overflow-scroll", "divide-y divide-fm-color-neutral-gray-100"])
135
- }, Te = ["onClick"], Me = {
135
+ }, Te = ["onClick"], Ue = {
136
136
  class: "flex-1"
137
- }, Ue = {
137
+ }, Me = {
138
138
  class: "fm-typo-en-body-lg-600 mb-4"
139
139
  }, Ee = {
140
140
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
141
141
  }, Ke = {
142
142
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
143
- }, Ie = {
143
+ }, Be = {
144
144
  key: 1,
145
145
  class: "xs:pt-24"
146
146
  }, je = /* @__PURE__ */ oe({
147
147
  __name: "Takeaway",
148
148
  emits: ["update:count"],
149
149
  setup(T, {
150
- emit: M
150
+ emit: U
151
151
  }) {
152
- const l = H(), m = ge(), i = h(() => l.rules.item.bindToVariant), f = h(() => l.rules.takeaway), y = W(q(Z())), v = re(), w = h(() => se.Country.getCountry(v.currentCountry.value).currency), g = h(() => l.takeaways.map((o) => ({
152
+ const l = Q(), m = ge(), i = h(() => l.rules.item.bindToVariant), f = h(() => l.rules.takeaway), y = W(q(Z())), v = re(), w = h(() => se.Country.getCountry(v.currentCountry.value).currency), g = h(() => l.takeaways.map((o) => ({
153
153
  ...o,
154
154
  usedBy: l.items.reduce((s, p) => {
155
155
  var n, E, Y;
@@ -170,7 +170,7 @@ const ge = _e("takeaway-manager", () => {
170
170
  }))), {
171
171
  filter: r,
172
172
  searchKey: c
173
- } = fe(), a = h(() => g.value.filter((o) => r([o.name, F(o.price, !1)]))), d = M;
173
+ } = fe(), a = h(() => g.value.filter((o) => r([o.name, F(o.price, !1)]))), d = U;
174
174
  ne(() => a.value.length, (o) => {
175
175
  d("update:count", o);
176
176
  }, {
@@ -203,7 +203,7 @@ const ge = _e("takeaway-manager", () => {
203
203
  enableSorting: !1,
204
204
  size: 200,
205
205
  cell: (o) => {
206
- const s = o.getValue(), p = Q(l.categorizedItems, s).flatMap((x) => x.items).length ?? 0;
206
+ const s = o.getValue(), p = J(l.categorizedItems, s).flatMap((x) => x.items).length ?? 0;
207
207
  return e("menu.takeaway.table.items_linked", {
208
208
  count: p
209
209
  });
@@ -225,9 +225,9 @@ const ge = _e("takeaway-manager", () => {
225
225
  s.stopPropagation(), m.deleteTakeaway(o.row.original);
226
226
  }
227
227
  }) : null])
228
- }]), U = de(), b = h(() => U.breakpoints.value.xs);
228
+ }]), M = de(), b = h(() => M.breakpoints.value.xs);
229
229
  return (o, s) => {
230
- const p = S("fm-search"), x = S("fm-table"), B = S("fm-button");
230
+ const p = S("fm-search"), x = S("fm-table"), I = S("fm-button");
231
231
  return g.value.length ? (_(), C(O, {
232
232
  key: 0
233
233
  }, [b.value ? (_(), C(O, {
@@ -244,12 +244,12 @@ const ge = _e("takeaway-manager", () => {
244
244
  onClick: () => {
245
245
  f.value.edit && t(m).updateTakeaway(n);
246
246
  }
247
- }, [k("div", Me, [k("p", Ue, I(n.name), 1), k("p", Ee, I(`${t(Q)(t(l).categorizedItems, n.usedBy).flatMap((E) => E.items).length ?? 0} items linked`), 1), k("p", Ke, " Price: " + I(w.value.symbol) + I(t(F)(n.price, !1)), 1)]), f.value.delete ? (_(), G(B, {
247
+ }, [k("div", Ue, [k("p", Me, B(n.name), 1), k("p", Ee, B(`${t(J)(t(l).categorizedItems, n.usedBy).flatMap((E) => E.items).length ?? 0} items linked`), 1), k("p", Ke, " Price: " + B(w.value.symbol) + B(t(F)(n.price, !1)), 1)]), f.value.delete ? (_(), G(I, {
248
248
  key: 0,
249
249
  variant: t(A).Tertiary,
250
250
  "text-color": "neutral-gray-400",
251
251
  "prepend-icon": "delete",
252
- onClick: J(() => t(m).deleteTakeaway(n), ["stop"])
252
+ onClick: H(() => t(m).deleteTakeaway(n), ["stop"])
253
253
  }, null, 8, ["variant", "onClick"])) : $("", !0)], 8, Te))), 128))])], 64)) : (_(), C("div", be, [k("div", he, [k("div", xe, [V(p, {
254
254
  autofocus: "",
255
255
  modelValue: t(c),
@@ -271,7 +271,7 @@ const ge = _e("takeaway-manager", () => {
271
271
  })
272
272
  }, null, 8, ["column-defs", "loading", "page-size", "row-data", "search-value"])]),
273
273
  _: 1
274
- })]))], 64)) : (_(), C("div", Ie, [V(t(me), {
274
+ })]))], 64)) : (_(), C("div", Be, [V(t(me), {
275
275
  subtitle: t(e)("menu.takeaway.empty.subtitle"),
276
276
  title: t(e)("menu.takeaway.empty.title")
277
277
  }, {
@@ -289,10 +289,10 @@ const ge = _e("takeaway-manager", () => {
289
289
  }, {
290
290
  default: P(({
291
291
  trigger: n
292
- }) => [V(B, {
292
+ }) => [V(I, {
293
293
  "prepend-icon": "add",
294
294
  label: t(e)("menu.takeaway.empty.action"),
295
- onClick: J(n, ["stop"])
295
+ onClick: H(n, ["stop"])
296
296
  }, null, 8, ["label", "onClick"])]),
297
297
  _: 1
298
298
  }, 8, ["bind-to-variant"])) : $("", !0)]),