@feedmepos/mf-menu 0.32.45 → 0.32.46-dev.3

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 (72) hide show
  1. package/dist/{App-CczmyQeJ.js → App-npeQTqd2.js} +7 -7
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BscsJpMV.js → ApplyProduct.vue_vue_type_script_setup_true_lang--prlJD_G.js} +3 -3
  3. package/dist/{Catalog-RU_6keJm.js → Catalog-jPzJ-CrL.js} +44 -44
  4. package/dist/{Category-CwEXbsDv.js → Category-B7pQ08QL.js} +24 -24
  5. package/dist/{Category-7Fg2kD0h.js → Category-BWZpgiNC.js} +19 -19
  6. package/dist/{CookingGuide-DFu5VStf.js → CookingGuide-BFEE1EJc.js} +105 -105
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-CeNfLbfq.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-D69zZiPR.js} +1 -1
  8. package/dist/{Group-C6vQeBnj.js → Group-DvZUfjSC.js} +1 -1
  9. package/dist/{Group-l-YpAi6B.js → Group-M4tXSj5P.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-1UdOBdv-.js → Group.vue_vue_type_script_setup_true_lang-DeVE8KLf.js} +19 -19
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-C309DrLU.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-pbZw9da3.js} +30 -30
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C903fhuj.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Byzowjkm.js} +3105 -3104
  13. package/dist/{Ingredient-CHqDo-GY.js → Ingredient-BdHJVta5.js} +20 -20
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CXHHlrI0.js → InventoryBinding.vue_vue_type_script_setup_true_lang-BSwR_wpJ.js} +2 -2
  15. package/dist/{LinkProductSideSheet-DY32g33Q.js → LinkProductSideSheet-B03Oabpv.js} +45 -45
  16. package/dist/{MenuSetting-DhbxlKuU.js → MenuSetting-DTWJOTMd.js} +47 -47
  17. package/dist/{PrintRoute-CToZ0ClG.js → PrintRoute-CPux5kB3.js} +39 -39
  18. package/dist/{Product-Cpg32wpg.js → Product-laMGJ8d-.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-BC2KG1q4.js → Product.vue_vue_type_script_setup_true_lang-41pkSI-X.js} +93 -93
  20. package/dist/{ProductInternalTools-wH9BN1NK.js → ProductInternalTools-zNNMVjtn.js} +66 -66
  21. package/dist/Products-BwKBLOcx.js +307 -0
  22. package/dist/{Publish-CJS_836k.js → Publish-DVWIjGI_.js} +29 -29
  23. package/dist/{Recipe-Cz7hivmM.js → Recipe-DfDGxruI.js} +24 -24
  24. package/dist/RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-Dqec903W.js +144 -0
  25. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-CRLzqgQe.js → RuleView.vue_vue_type_script_setup_true_lang-COsEN8g1.js} +176 -176
  26. package/dist/{Scheduler-QuWCnEJw.js → Scheduler-Cai-wMn7.js} +11 -11
  27. package/dist/{ServingSequence-CqK5Sjmq.js → ServingSequence-Do-C3Sn4.js} +44 -44
  28. package/dist/{Setting-C3tKUfsm.js → Setting-DSjLtPBJ.js} +17 -17
  29. package/dist/{Subcategory-DCtTOPUj.js → Subcategory-DSeuxOGy.js} +54 -54
  30. package/dist/{Takeaway-BnB1OFnK.js → Takeaway-C1srIF8q.js} +1 -1
  31. package/dist/{Takeaway-Fi8SAH2t.js → Takeaway-DwSbGolk.js} +13 -13
  32. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Cbz7Qt_g.js → Takeaway.vue_vue_type_script_setup_true_lang-Bx8gpmLd.js} +33 -33
  33. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-CPM_muXB.js → Thumbnail.vue_vue_type_script_setup_true_lang-DDjpVFJj.js} +27 -27
  34. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-BpL8UrFY.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-Cd4RGHXf.js} +1 -1
  35. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DtkzQeq4.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-Bwo49sg8.js} +5 -5
  36. package/dist/{TranslationViewChip.vue_vue_type_script_setup_true_lang-CHT7Xozn.js → TranslationViewChip.vue_vue_type_script_setup_true_lang-COt8eJR8.js} +1 -1
  37. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BG9vXVnJ.js +5767 -0
  38. package/dist/{Unit-5yE2-y9D.js → Unit-CLIdovqU.js} +8 -8
  39. package/dist/{Variant-C7lIdRID.js → Variant-CbX_HaWr.js} +14 -14
  40. package/dist/{_id_-08ykp97a.js → _id_-CF6hSxMn.js} +28 -28
  41. package/dist/{app-DPovSnb_.js → app-DXWLC6wZ.js} +1 -1
  42. package/dist/app-jYjowude.js +2286 -0
  43. package/dist/app.js +1 -1
  44. package/dist/apps/mf-menu/src/api/index.d.ts +1 -1
  45. package/dist/apps/mf-menu/src/api/menu.d.ts +14 -5
  46. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  47. package/dist/assets/{linked-status-WT6deoPw.js → linked-status-Dz4kVy3U.js} +5 -5
  48. package/dist/assets/{menu-export-DxtFXMED.js → menu-export-Bjrlg38p.js} +2 -2
  49. package/dist/assets/{override-menu-BJGRdWWE.js → override-menu-h6635NTp.js} +5 -5
  50. package/dist/assets/{validate-menu-B_tmkHe7.js → validate-menu-ILBC_n35.js} +2 -2
  51. package/dist/{catalog-D7Jjqj3-.js → catalog-ByziW0k0.js} +1 -1
  52. package/dist/{catalogSetting-Bg_zMUrV.js → catalogSetting-DFtnnh_u.js} +1 -1
  53. package/dist/{currency-DDxFMjAI.js → currency-Dow_7SjH.js} +1 -1
  54. package/dist/dayjs.min-J4d4ye_W.js +7 -0
  55. package/dist/{index-BlLRjkMF.js → index-Bx_mNoGq.js} +31 -31
  56. package/dist/{index-Cq2MVpMv.js → index-Cud1HVR_.js} +30 -30
  57. package/dist/{index.vue_vue_type_script_setup_true_lang-C6IVvAua.js → index.vue_vue_type_script_setup_true_lang-BBIM8-iI.js} +6958 -6901
  58. package/dist/{item-Bq6SCc7D.js → item-CFhsU4ZX.js} +16 -16
  59. package/dist/{jszip.min-1MrCGuHF.js → jszip.min-C6M7_p-M.js} +7 -6
  60. package/dist/{menu-CKA9uouu.js → menu-ByysjB4i.js} +1 -1
  61. package/dist/{menuV2-DBkrmeha.js → menuV2-Clp-zydr.js} +164 -164
  62. package/dist/{priceTier-Cxr9IcVP.js → priceTier-DMPEyXYB.js} +1 -1
  63. package/dist/{rules-DFWR7a3m.js → rules-D7jis1av.js} +12 -12
  64. package/dist/{scheduler-HKff8Ty2.js → scheduler-Cdam4laD.js} +29 -29
  65. package/dist/{toExcel-DopYrxBW.js → toExcel-B2mXomTF.js} +2 -2
  66. package/dist/{unit-5G600HMJ.js → unit-BWhsHi2q.js} +35 -35
  67. package/package.json +1 -1
  68. package/dist/Products-CpINHaH6.js +0 -291
  69. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DoIgiwHh.js +0 -6130
  70. package/dist/app-CA4g3v2n.js +0 -363
  71. package/dist/dayjs.min-BVOO8wJG.js +0 -6
  72. package/dist/index-CG7GFWlC.js +0 -246
@@ -1,11 +1,11 @@
1
- import { computed as d, defineComponent as x, ref as F, resolveComponent as b, createElementBlock as L, openBlock as w, normalizeClass as R, createVNode as K, normalizeStyle as $, withCtx as B, createBlock as U, createCommentVNode as j } from "vue";
2
- import { A as h, M as E, G as C, Q as O, al as Y, u as y, a as G } from "./index.vue_vue_type_script_setup_true_lang-C6IVvAua.js";
3
- import { u as S } from "./menuV2-DBkrmeha.js";
4
- import { C as v, h as N } from "./catalog-D7Jjqj3-.js";
5
- import { useSnackbar as P, useDialog as z } from "@feedmepos/ui-library";
6
- import { a as T } from "./LinkProductSideSheet-DY32g33Q.js";
7
- import { useI18n as Q } from "@feedmepos/mf-common";
8
- function q() {
1
+ import { computed as d, defineComponent as x, ref as F, resolveComponent as b, createElementBlock as L, openBlock as w, normalizeClass as O, createVNode as K, normalizeStyle as B, withCtx as $, createBlock as U, createCommentVNode as j } from "vue";
2
+ import { y as h, J as E, B as R, O as C, ai as z, u as y, c as J } from "./index.vue_vue_type_script_setup_true_lang-BBIM8-iI.js";
3
+ import { u as S } from "./menuV2-Clp-zydr.js";
4
+ import { C as v, h as N } from "./catalog-ByziW0k0.js";
5
+ import { useSnackbar as P, useDialog as A } from "@feedmepos/ui-library";
6
+ import { a as T } from "./LinkProductSideSheet-B03Oabpv.js";
7
+ import { useI18n as q } from "@feedmepos/mf-common";
8
+ function G() {
9
9
  const t = S(), o = d(() => t.categorizedRawMenuItems.filter((u) => u.items.length > 0)), i = d(() => {
10
10
  const u = t.currentCatalog;
11
11
  return u ? v.getItemAvailable(u).map((n) => ({ _id: n })) : [];
@@ -43,10 +43,10 @@ function q() {
43
43
  });
44
44
  }
45
45
  async function g(u) {
46
- await A(u, !0);
46
+ await Y(u, !0);
47
47
  }
48
48
  async function p(u) {
49
- await A(u, !1);
49
+ await Y(u, !1);
50
50
  }
51
51
  async function _(u) {
52
52
  const n = t.currentCatalog;
@@ -70,7 +70,7 @@ function q() {
70
70
  saveLinkItemRules: _
71
71
  };
72
72
  }
73
- async function A(t, o) {
73
+ async function Y(t, o) {
74
74
  var u;
75
75
  const i = S(), c = i.currentCatalog;
76
76
  if (!c || t.length === 0) return;
@@ -97,7 +97,7 @@ async function A(t, o) {
97
97
  });
98
98
  }
99
99
  function H() {
100
- const t = S(), o = P(), i = z(), c = C(o), g = O(c), p = d(() => {
100
+ const t = S(), o = P(), i = A(), c = R(o), g = C(c), p = d(() => {
101
101
  const n = t.categorizedRawMenuItems, a = new Set(
102
102
  t.currentCatalog ? v.getItemAvailable(t.currentCatalog) : t.state.menu.modules.item.map((e) => e._id)
103
103
  );
@@ -135,7 +135,7 @@ function H() {
135
135
  (l, m) => {
136
136
  const f = a.items.filter((I) => I._id == m) ?? [];
137
137
  return l = l.concat(
138
- Y(m, f, (I) => ({
138
+ z(m, f, (I) => ({
139
139
  ...I,
140
140
  orderFrom: null
141
141
  }))
@@ -159,8 +159,8 @@ function H() {
159
159
  applyProduct: u
160
160
  };
161
161
  }
162
- const J = () => {
163
- const t = y(), o = P(), i = C(o), c = O(i), g = d(() => t.categorizedRawMenuItems.filter((n) => n.items.length > 0)), p = d(() => {
162
+ const Q = () => {
163
+ const t = y(), o = P(), i = R(o), c = C(i), g = d(() => t.categorizedRawMenuItems.filter((n) => n.items.length > 0)), p = d(() => {
164
164
  const n = t.currentCatalog;
165
165
  return n ? v.getItemAvailable(n).map((a) => ({ _id: a })) : [];
166
166
  });
@@ -174,7 +174,7 @@ const J = () => {
174
174
  f,
175
175
  I,
176
176
  e.has(f),
177
- t.version === G.F_MENU_VERSION.v3
177
+ t.version === J.F_MENU_VERSION.v3
178
178
  ), m;
179
179
  },
180
180
  {}
@@ -219,7 +219,7 @@ const J = () => {
219
219
  saveLinkItemRules: u
220
220
  };
221
221
  }, W = () => {
222
- const t = y(), o = P(), i = z(), c = C(o), g = O(c), p = d(() => {
222
+ const t = y(), o = P(), i = A(), c = R(o), g = C(c), p = d(() => {
223
223
  const n = t.categorizedRawMenuItems, a = new Set(
224
224
  t.currentCatalog ? v.getItemAvailable(t.currentCatalog) : t.state.menu.modules.item.map((e) => e._id)
225
225
  );
@@ -248,7 +248,7 @@ const J = () => {
248
248
  (l, m) => {
249
249
  const f = a.items.filter((I) => I._id == m) ?? [];
250
250
  return l = l.concat(
251
- Y(m, f, (I) => ({
251
+ z(m, f, (I) => ({
252
252
  ...I,
253
253
  orderFrom: null
254
254
  }))
@@ -287,7 +287,7 @@ function se(t) {
287
287
  const e = y(), r = d(() => e.state.menu.modules.item ?? []), s = d(() => {
288
288
  var M;
289
289
  return ((M = e.currentCatalog) == null ? void 0 : M.linkItemRules) ?? null;
290
- }), l = W(), m = J(), f = d(() => !e.state.currentSchedulerId), I = (M) => {
290
+ }), l = W(), m = Q(), f = d(() => !e.state.currentSchedulerId), I = (M) => {
291
291
  if (M.mode === T.Rules)
292
292
  m.saveLinkItemRules(M.linkItemRules);
293
293
  else {
@@ -308,7 +308,7 @@ function se(t) {
308
308
  const i = S(), c = d(() => i.state.menu.modules.item ?? []), g = d(() => {
309
309
  var e;
310
310
  return ((e = i.currentCatalog) == null ? void 0 : e.linkItemRules) ?? null;
311
- }), p = H(), _ = q(), u = d(() => !i.state.currentSchedulerId), n = (e) => {
311
+ }), p = H(), _ = G(), u = d(() => !i.state.currentSchedulerId), n = (e) => {
312
312
  if (e.mode === T.Rules)
313
313
  _.saveLinkItemRules(e.linkItemRules);
314
314
  else {
@@ -336,7 +336,7 @@ const X = ["alt", "src", "crossorigin"], ue = /* @__PURE__ */ x({
336
336
  crossorigin: { type: Boolean, default: !0 }
337
337
  },
338
338
  setup(t) {
339
- const o = t, { t: i } = Q(), c = F(!1), g = F(!o.src), p = () => {
339
+ const o = t, { t: i } = q(), c = F(!1), g = F(!o.src), p = () => {
340
340
  c.value = !1, g.value = !0;
341
341
  }, _ = () => {
342
342
  c.value = !0, g.value = !0;
@@ -357,18 +357,18 @@ const X = ["alt", "src", "crossorigin"], ue = /* @__PURE__ */ x({
357
357
  return (e, r) => {
358
358
  const s = b("fm-icon"), l = b("fm-card");
359
359
  return w(), L("div", {
360
- class: R([e.className, "flex items-center justify-center"])
360
+ class: O([e.className, "flex items-center justify-center"])
361
361
  }, [
362
362
  K(l, {
363
- class: R(["flex items-center justify-center", "rounded-md"]),
364
- style: $({ width: `${n.value.width}px`, height: `${n.value.height}px` }),
363
+ class: O(["flex items-center justify-center", "rounded-md"]),
364
+ style: B({ width: `${n.value.width}px`, height: `${n.value.height}px` }),
365
365
  variant: "outlined"
366
366
  }, {
367
- default: B(() => [
367
+ default: $(() => [
368
368
  a.value && !c.value ? (w(), L("img", {
369
369
  key: 0,
370
370
  alt: u.value,
371
- class: R(["w-full h-full", "object-cover", g.value ? "" : "hidden"]),
371
+ class: O(["w-full h-full", "object-cover", g.value ? "" : "hidden"]),
372
372
  src: a.value,
373
373
  crossorigin: o.crossorigin ? "anonymous" : void 0,
374
374
  onError: _,
@@ -394,6 +394,6 @@ const X = ["alt", "src", "crossorigin"], ue = /* @__PURE__ */ x({
394
394
  });
395
395
  export {
396
396
  ue as _,
397
- q as a,
397
+ G as a,
398
398
  se as u
399
399
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as v, createElementBlock as c, openBlock as t, normalizeClass as h, toDisplayString as y, unref as i, resolveComponent as u, createVNode as _, createElementVNode as d, computed as b, createBlock as g, createCommentVNode as B, Fragment as k, renderList as F, withCtx as x } from "vue";
2
2
  import { useI18n as N } from "@feedmepos/mf-common";
3
- import { u as S } from "./index.vue_vue_type_script_setup_true_lang-C6IVvAua.js";
3
+ import { u as S } from "./index.vue_vue_type_script_setup_true_lang-BBIM8-iI.js";
4
4
  const T = {
5
5
  "en-US": {
6
6
  icon: "EN",
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as z, ref as p, watch as L, computed as k, resolveComponent as v, createBlock as w, openBlock as f, unref as n, withCtx as _, createElementVNode as i, createVNode as r, toDisplayString as h, createElementBlock as x, createCommentVNode as F, Fragment as I, renderList as A } from "vue";
2
- import { J as S } from "./index.vue_vue_type_script_setup_true_lang-C6IVvAua.js";
2
+ import { H as S } from "./index.vue_vue_type_script_setup_true_lang-BBIM8-iI.js";
3
3
  import { useI18n as q } from "@feedmepos/mf-common";
4
- import { u as J } from "./discardConfirm-BHni0LNu.js";
5
- import { _ as G, a as H, b as K, c as M } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-BpL8UrFY.js";
4
+ import { u as H } from "./discardConfirm-BHni0LNu.js";
5
+ import { _ as G, a as J, b as K, c as M } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-Cd4RGHXf.js";
6
6
  const P = { class: "fm-typo-en-title-md-600" }, Q = { class: "pt-8 space-y-24" }, R = { class: "flex flex-col gap-16 border p-16 rounded-lg" }, W = { class: "flex items-center gap-16" }, X = { class: "fm-typo-en-body-lg-600" }, Y = { class: "flex flex-col gap-32 pl-32" }, Z = {
7
7
  key: 0,
8
8
  class: "space-y-8"
@@ -66,7 +66,7 @@ const P = { class: "fm-typo-en-title-md-600" }, Q = { class: "pt-8 space-y-24" }
66
66
  function O() {
67
67
  u("update:modelValue", !1);
68
68
  }
69
- const C = J(B, O), b = k({
69
+ const C = H(B, O), b = k({
70
70
  get: () => l.modelValue,
71
71
  set: (e) => u("update:modelValue", e)
72
72
  });
@@ -109,7 +109,7 @@ const P = { class: "fm-typo-en-title-md-600" }, Q = { class: "pt-8 space-y-24" }
109
109
  i("p", X, h(n(s)("menu.common.translation.name_section", { entity: e.title })), 1)
110
110
  ]),
111
111
  i("div", Y, [
112
- r(H, {
112
+ r(J, {
113
113
  label: n(s)("menu.common.translation.default"),
114
114
  modelValue: c.value,
115
115
  "onUpdate:modelValue": a[0] || (a[0] = (t) => c.value = t)
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, computed as a, resolveComponent as x, createElementBlock as o, openBlock as e, Fragment as p, renderList as v, createBlock as g, withCtx as m, createElementVNode as l, toDisplayString as t, createCommentVNode as k, createVNode as L } from "vue";
2
- import { g as w } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-BpL8UrFY.js";
2
+ import { g as w } from "./TranslationFieldSection.vue_vue_type_script_setup_true_lang-Cd4RGHXf.js";
3
3
  const N = {
4
4
  key: 0,
5
5
  class: "flex gap-8"