@feedmepos/mf-menu 0.31.35-beta.1 → 0.31.36-beta

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 (63) hide show
  1. package/dist/{App-BkDEqZHN.js → App-Cui-XStB.js} +30 -53
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-YeaxfcJN.js → ApplyProduct.vue_vue_type_script_setup_true_lang-cUYW6sW5.js} +2 -2
  3. package/dist/{Catalog-6pOytZU3.js → Catalog-MktLa55D.js} +68 -68
  4. package/dist/{Category-PtVyxTJZ.js → Category-C-s_lW3M.js} +14 -14
  5. package/dist/{Category-CXk98gto.js → Category-CEMqueNk.js} +29 -29
  6. package/dist/{CookingGuide-Cy8w8cd9.js → CookingGuide-eWdk6mho.js} +65 -65
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Bxn29Ylq.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CcKt1abw.js} +1 -1
  8. package/dist/{Group-D_fipwz6.js → Group-Bg2Ylu9p.js} +1 -1
  9. package/dist/{Group-DmNtEt9J.js → Group-VircdSF_.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-C8W8uPvN.js → Group.vue_vue_type_script_setup_true_lang-CyW8Gh6c.js} +7 -7
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DfgXJWUw.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-yQjS-X1R.js} +4 -4
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-KFWive_R.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-26ogJPxR.js} +7 -7
  13. package/dist/{Ingredient-BbGs11gS.js → Ingredient-CegrU_cQ.js} +23 -23
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-fNVMd9PS.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CzhbZPKE.js} +2 -2
  15. package/dist/{LinkProductSideSheet-CIUQw7oo.js → LinkProductSideSheet-BJlrPykg.js} +24 -24
  16. package/dist/{MenuSetting-BXSAAPma.js → MenuSetting-D70NMQWp.js} +20 -20
  17. package/dist/{PrintRoute-Bb25Wqx5.js → PrintRoute-bAS3UL9d.js} +18 -18
  18. package/dist/{Product-qNa1EPNM.js → Product-Cu2f-ZSs.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DI0d2huN.js → Product.vue_vue_type_script_setup_true_lang-CYfDGs7M.js} +65 -65
  20. package/dist/{ProductInternalTools-CyiAzThW.js → ProductInternalTools-6X6XUdH6.js} +16 -16
  21. package/dist/{Products-oCEkdzLE.js → Products-DYgr_65I.js} +11 -11
  22. package/dist/{Publish-CWGdR3nh.js → Publish-DhdYNYH2.js} +3 -3
  23. package/dist/{Recipe-DWlzfgXY.js → Recipe-Bb5gqrsE.js} +13 -13
  24. package/dist/{Scheduler-BGhRV9Yi.js → Scheduler-Tk0cPXz4.js} +7 -7
  25. package/dist/{ServingSequence-Dj6eZp3x.js → ServingSequence-DUghx8CU.js} +24 -24
  26. package/dist/{Setting-Di_Rn61o.js → Setting-DIl9WhmE.js} +11 -11
  27. package/dist/{Subcategory-CGinXMy8.js → Subcategory-C8Igjkze.js} +10 -10
  28. package/dist/{Takeaway-C1KdbLMw.js → Takeaway-ZfBLSZMG.js} +1 -1
  29. package/dist/{Takeaway-BSWrXSGI.js → Takeaway-xHGsoah-.js} +9 -9
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-wONUlNNM.js → Takeaway.vue_vue_type_script_setup_true_lang-DItRiL8J.js} +11 -11
  31. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-_pWcSpCk.js → Thumbnail.vue_vue_type_script_setup_true_lang-Dmk-5eGV.js} +7 -7
  32. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-ncoMfO1b.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-OJ0A70lo.js} +13 -13
  33. package/dist/{Unit-B71wMP-S.js → Unit-CfmYi7kG.js} +13 -13
  34. package/dist/{Variant-B14TfXg7.js → Variant-D6hyic1A.js} +14 -14
  35. package/dist/{_id_-CjlhUxyd.js → _id_-DT2EQjcY.js} +32 -32
  36. package/dist/{app-C0_ZxHle.js → app-Do8sOqMh.js} +362 -367
  37. package/dist/{app-NhsMLypF.js → app-jvyTuOVi.js} +1 -1
  38. package/dist/app.js +1 -1
  39. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1 -1
  40. package/dist/apps/mf-menu/src/router/shared.d.ts +1 -3
  41. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/assets/{linked-status-DaKKqv0U.js → linked-status-DQ161R27.js} +2 -2
  43. package/dist/assets/{override-menu-BzQzJzDM.js → override-menu-VGwIGccm.js} +2 -2
  44. package/dist/assets/{validate-menu-DH8daaxV.js → validate-menu-Dx9kwuMh.js} +2 -2
  45. package/dist/{catalog-DDA5CEEW.js → catalog-BL6h_DDN.js} +1 -1
  46. package/dist/{catalogSetting-B2UCaWJL.js → catalogSetting-DEabwfXZ.js} +1 -1
  47. package/dist/{category-B29E8Z6Z.js → category-CKujA-NM.js} +5 -5
  48. package/dist/{currency-D8F5PN67.js → currency-BFai41BQ.js} +1 -1
  49. package/dist/{dayjs.min-C5O_Xdlu.js → dayjs.min-B5ost3s4.js} +1 -1
  50. package/dist/{index-Chaiecso.js → index-D70F0uL_.js} +14 -14
  51. package/dist/{index-DzWK9GfE.js → index-D9PdlnOv.js} +14 -14
  52. package/dist/{index-D6qeYZH_.js → index-nSRvCNb9.js} +1 -1
  53. package/dist/{item-CRYbpxtN.js → item-DqdhjOW8.js} +15 -15
  54. package/dist/{jszip.min-CEFKmniH.js → jszip.min-_LmXapMc.js} +2 -2
  55. package/dist/{menu-CyVBU_ww.js → menu-Cj3d6im1.js} +9 -9
  56. package/dist/{menu-Bi0HvP-T.js → menu-S1W5eNCT.js} +1 -1
  57. package/dist/{menuV2-DUplflZy.js → menuV2-K6oaeFE4.js} +70 -70
  58. package/dist/{priceTier-BKUDkpVL.js → priceTier-Cnci8Hf5.js} +1 -1
  59. package/dist/{scheduler-BQnvljfv.js → scheduler-D7qY3sLN.js} +30 -30
  60. package/dist/{subcategory-DI_tttwh.js → subcategory-CHsH67ID.js} +6 -6
  61. package/dist/{toExcel-Cld55eZa.js → toExcel-DhVG55bK.js} +2 -2
  62. package/dist/{unit-DCXUBn-h.js → unit-C3zaQSoS.js} +6 -6
  63. package/package.json +2 -2
@@ -1,19 +1,19 @@
1
- import { getCurrentInstance as T, defineComponent as U, computed as g, onMounted as $, h as z, resolveComponent as k, createBlock as F, openBlock as m, unref as e, withCtx as p, createElementBlock as f, Fragment as V, createElementVNode as r, createVNode as i, isRef as I, normalizeClass as L, renderList as R, toDisplayString as C, withModifiers as w, createCommentVNode as G } from "vue";
2
- import { useI18n as N } from "@feedmepos/mf-common";
3
- import { useDialog as Y, useSnackbar as D, FmButtonVariant as M, components as J, useBreakpoints as q } from "@feedmepos/ui-library";
1
+ import { getCurrentInstance as U, defineComponent as $, computed as g, onMounted as A, h as z, resolveComponent as k, createBlock as F, openBlock as m, unref as e, withCtx as p, createElementBlock as f, Fragment as V, createElementVNode as r, createVNode as i, isRef as I, normalizeClass as L, renderList as R, toDisplayString as C, withModifiers as w, createCommentVNode as G } from "vue";
2
+ import { useI18n as D } from "@feedmepos/mf-common";
3
+ import { useDialog as Y, useSnackbar as N, FmButtonVariant as M, components as J, useBreakpoints as q } from "@feedmepos/ui-library";
4
4
  import { _ as H } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { _ as Q } from "./app-C0_ZxHle.js";
6
- import { G as K, u as P, O as j, J as W, A as X } from "./menu-CyVBU_ww.js";
5
+ import { _ as Q } from "./app-Do8sOqMh.js";
6
+ import { D as K, u as P, O as j, J as W, G as X } from "./menu-Cj3d6im1.js";
7
7
  import { _ as Z } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
8
- import { V as S } from "./index-Chaiecso.js";
8
+ import { V as S } from "./index-D70F0uL_.js";
9
9
  import { _ as ee } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
10
10
  import { u as te } from "./search-BAPEUu1R.js";
11
11
  import { defineStore as ae } from "pinia";
12
12
  import { c as ne } from "./createComponentProgrammatically-Bt2rn1IQ.js";
13
13
  const oe = ae("variant-manager", () => {
14
- const B = Y(), a = D(), _ = K(a), h = j(_);
14
+ const B = Y(), a = N(), _ = K(a), h = j(_);
15
15
  P();
16
- const d = T(), { t: c } = N(), x = (s) => {
16
+ const d = U(), { t: c } = D(), x = (s) => {
17
17
  var y, o;
18
18
  const { vNode: b } = ne(
19
19
  S,
@@ -78,12 +78,12 @@ const oe = ae("variant-manager", () => {
78
78
  }, _e = {
79
79
  key: 1,
80
80
  class: "xs:pt-16"
81
- }, Be = /* @__PURE__ */ U({
81
+ }, Be = /* @__PURE__ */ $({
82
82
  __name: "Variant",
83
83
  setup(B) {
84
84
  const {
85
85
  t: a
86
- } = N(), _ = P(), h = j(K(D())), d = oe(), c = g(() => _.variants.map((o) => ({
86
+ } = D(), _ = P(), h = j(K(N())), d = oe(), c = g(() => _.variants.map((o) => ({
87
87
  ...o,
88
88
  usedBy: _.items.filter((n) => {
89
89
  var u;
@@ -97,7 +97,7 @@ const oe = ae("variant-manager", () => {
97
97
  filter: x,
98
98
  searchKey: l
99
99
  } = te(), v = g(() => c.value.filter((o) => x([o.name])));
100
- $(() => _.selectCatalog(null));
100
+ A(() => _.selectCatalog(null));
101
101
  const s = g(() => [{
102
102
  accessorKey: "name",
103
103
  header: () => a("menu.variant.columns.name"),
@@ -139,7 +139,7 @@ const oe = ae("variant-manager", () => {
139
139
  })])
140
140
  }]), b = q(), y = g(() => b.breakpoints.value.xs);
141
141
  return (o, n) => {
142
- const u = k("fm-search"), A = k("fm-table"), E = k("fm-button");
142
+ const u = k("fm-search"), O = k("fm-table"), E = k("fm-button");
143
143
  return m(), F(ee, {
144
144
  heading: e(a)("menu.variant.title")
145
145
  }, {
@@ -174,7 +174,7 @@ const oe = ae("variant-manager", () => {
174
174
  }, [r("div", ue, [r("p", de, C(t.name), 1), r("div", null, [r("p", pe, C(e(a)("menu.common.labels.items_linked", {
175
175
  count: t.usedBy.length
176
176
  })), 1), r("p", fe, C(e(a)("menu.variant.mobile.value", {
177
- values: t.options.map((O) => O.name).join(", ")
177
+ values: t.options.map((T) => T.name).join(", ")
178
178
  })), 1)])]), i(E, {
179
179
  variant: e(M).Tertiary,
180
180
  "prepend-icon": "delete",
@@ -188,7 +188,7 @@ const oe = ae("variant-manager", () => {
188
188
  type: "variants"
189
189
  })
190
190
  }, null, 8, ["modelValue", "placeholder"])])]), i(Q, null, {
191
- default: p(() => [i(A, {
191
+ default: p(() => [i(O, {
192
192
  "column-defs": s.value,
193
193
  loading: e(h).checkMenuIsLoading(),
194
194
  "page-size": v.value.length,
@@ -1,28 +1,28 @@
1
- import { defineComponent as B, computed as g, ref as d, watch as I, onMounted as H, resolveComponent as i, createElementBlock as F, openBlock as b, Fragment as K, createVNode as n, withCtx as u, createElementVNode as m, toDisplayString as A, unref as e, createBlock as M } from "vue";
2
- import { D as W } from "./dayjs.min-C5O_Xdlu.js";
1
+ import { defineComponent as q, computed as d, ref as p, watch as I, onMounted as H, resolveComponent as i, createElementBlock as F, openBlock as b, Fragment as K, createVNode as n, withCtx as u, createElementVNode as m, toDisplayString as A, unref as e, createBlock as M } from "vue";
2
+ import { D as W } from "./dayjs.min-B5ost3s4.js";
3
3
  import { useRoute as j, useRouter as J } from "vue-router";
4
- import { _ as Q, w as X } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-KFWive_R.js";
5
- import { G as Z, u as ee, D as te, H as ae, O as oe } from "./menu-CyVBU_ww.js";
4
+ import { _ as Q, w as X } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-26ogJPxR.js";
5
+ import { D as Z, u as ee, B as te, H as ae, O as oe } from "./menu-Cj3d6im1.js";
6
6
  import { useI18n as ne } from "@feedmepos/mf-common";
7
7
  import { useSnackbar as le } from "@feedmepos/ui-library";
8
8
  import { _ as D } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
9
- import { L as R } from "./LinkProductSideSheet-CIUQw7oo.js";
10
- import { _ as se } from "./index-D6qeYZH_.js";
9
+ import { L as R } from "./LinkProductSideSheet-BJlrPykg.js";
10
+ import { _ as se } from "./index-nSRvCNb9.js";
11
11
  import { _ as ue } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
12
- import { u as re } from "./Thumbnail.vue_vue_type_script_setup_true_lang-_pWcSpCk.js";
13
- import { a as me } from "./menu-Bi0HvP-T.js";
14
- import { m as ie } from "./toExcel-Cld55eZa.js";
15
- import { _ as ce, u as de, c as pe } from "./scheduler-BQnvljfv.js";
16
- import { R as r } from "./app-C0_ZxHle.js";
17
- const _e = { class: "px-12 py-8" }, fe = { class: "px-12 py-8" }, ve = { class: "flex ml-auto space-x-8" }, ge = { class: "flex-1 flex flex-col overflow-hidden" }, Oe = /* @__PURE__ */ B({
12
+ import { u as re } from "./Thumbnail.vue_vue_type_script_setup_true_lang-Dmk-5eGV.js";
13
+ import { a as me } from "./menu-S1W5eNCT.js";
14
+ import { m as ie } from "./toExcel-DhVG55bK.js";
15
+ import { _ as ce, u as de, c as pe } from "./scheduler-D7qY3sLN.js";
16
+ import { R as r } from "./app-Do8sOqMh.js";
17
+ const _e = { class: "px-12 py-8" }, fe = { class: "px-12 py-8" }, ve = { class: "flex ml-auto space-x-8" }, ge = { class: "flex-1 flex flex-col overflow-hidden" }, Oe = /* @__PURE__ */ q({
18
18
  __name: "[id]",
19
19
  setup(be) {
20
- const V = j(), p = J(), k = Z(le()), E = oe(k), a = ee(), { t: l } = ne(), L = g(() => a.categorizedRawMenuItems), _ = g(() => !a.state.currentSchedulerId), O = d();
20
+ const V = j(), _ = J(), k = Z(le()), E = oe(k), a = ee(), { t: l } = ne(), L = d(() => a.categorizedRawMenuItems), f = d(() => !a.state.currentSchedulerId), O = p();
21
21
  async function G(o) {
22
22
  const t = o._id ? de(o) : pe(o);
23
23
  await E.updateMenu(t, o.name);
24
24
  }
25
- const h = [
25
+ const h = d(() => [
26
26
  {
27
27
  label: l("menu.catalog.edit.tabs.product"),
28
28
  value: r.EDIT_CATALOG_PRODUCT
@@ -43,13 +43,13 @@ const _e = { class: "px-12 py-8" }, fe = { class: "px-12 py-8" }, ve = { class:
43
43
  label: l("menu.catalog.edit.tabs.setting"),
44
44
  value: r.EDIT_CATALOG_SETTING
45
45
  }
46
- ], c = d(h[0].value);
46
+ ]), c = p(h.value[0].value);
47
47
  I(c, (o) => {
48
- p.replace({
48
+ _.replace({
49
49
  name: o
50
50
  });
51
51
  }), H(() => {
52
- p.currentRoute.value.name !== r.EDIT_CATALOG && (c.value = p.currentRoute.value.name);
52
+ _.currentRoute.value.name !== r.EDIT_CATALOG && (c.value = _.currentRoute.value.name);
53
53
  }), I(
54
54
  () => a.state.menu._id,
55
55
  (o) => {
@@ -57,7 +57,7 @@ const _e = { class: "px-12 py-8" }, fe = { class: "px-12 py-8" }, ve = { class:
57
57
  o && t !== "main" && a.selectCatalog(t);
58
58
  }
59
59
  );
60
- const z = g(() => ({
60
+ const z = d(() => ({
61
61
  ...te.menuV4ToV3(ae(a.state.menu)),
62
62
  _id: a.state.menu._id,
63
63
  _rev: a.state.menu._rev
@@ -76,7 +76,7 @@ const _e = { class: "px-12 py-8" }, fe = { class: "px-12 py-8" }, ve = { class:
76
76
  { successMessage: "Menu exported", customId: a.state.menu._id }
77
77
  );
78
78
  }
79
- const f = d(!1), v = d(!1), {
79
+ const v = p(!1), g = p(!1), {
80
80
  menuItems: x,
81
81
  linkItemRules: S,
82
82
  handleSubmit: T,
@@ -85,7 +85,7 @@ const _e = { class: "px-12 py-8" }, fe = { class: "px-12 py-8" }, ve = { class:
85
85
  } = re(!1);
86
86
  return me().resetOnUnmount(), (o, t) => {
87
87
  var w;
88
- const U = i("fm-bottom-sheet"), Y = i("fm-button"), N = i("router-link"), P = i("fm-tabs"), q = i("router-view");
88
+ const U = i("fm-bottom-sheet"), Y = i("fm-button"), N = i("router-link"), B = i("fm-tabs"), P = i("router-view");
89
89
  return b(), F(K, null, [
90
90
  n(ce, {
91
91
  ref_key: "schedulerDialogRef",
@@ -94,12 +94,12 @@ const _e = { class: "px-12 py-8" }, fe = { class: "px-12 py-8" }, ve = { class:
94
94
  onOnComplete: G
95
95
  }, null, 8, ["categorized-items"]),
96
96
  n(Q, {
97
- modelValue: f.value,
98
- "onUpdate:modelValue": t[0] || (t[0] = (s) => f.value = s)
97
+ modelValue: v.value,
98
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => v.value = s)
99
99
  }, null, 8, ["modelValue"]),
100
100
  n(U, {
101
- modelValue: v.value,
102
- "onUpdate:modelValue": t[2] || (t[2] = (s) => v.value = s),
101
+ modelValue: g.value,
102
+ "onUpdate:modelValue": t[2] || (t[2] = (s) => g.value = s),
103
103
  "no-header": ""
104
104
  }, {
105
105
  default: u(() => [
@@ -113,7 +113,7 @@ const _e = { class: "px-12 py-8" }, fe = { class: "px-12 py-8" }, ve = { class:
113
113
  m("p", {
114
114
  class: "fm-typo-en-body-md-400",
115
115
  onClick: t[1] || (t[1] = () => {
116
- f.value = !0, v.value = !1;
116
+ v.value = !0, g.value = !1;
117
117
  })
118
118
  }, A(e(l)("menu.catalog.edit.import")), 1)
119
119
  ])
@@ -141,14 +141,14 @@ const _e = { class: "px-12 py-8" }, fe = { class: "px-12 py-8" }, ve = { class:
141
141
  ]),
142
142
  "append-heading": u(() => [
143
143
  m("div", ve, [
144
- _.value ? (b(), M(R, {
144
+ f.value ? (b(), M(R, {
145
145
  key: 0,
146
146
  "categorized-items": e(y).linkableItems.value,
147
147
  "initial-value": e(y).currentItems.value,
148
148
  "show-variant": !1,
149
149
  "menu-items": e(x),
150
150
  "link-item-rules": e(S),
151
- "no-scheduler": _.value,
151
+ "no-scheduler": f.value,
152
152
  onSubmit: e(T)
153
153
  }, {
154
154
  default: u(({ trigger: s }) => [
@@ -166,7 +166,7 @@ const _e = { class: "px-12 py-8" }, fe = { class: "px-12 py-8" }, ve = { class:
166
166
  "show-variant": !1,
167
167
  "menu-items": e(x),
168
168
  "link-item-rules": e(S),
169
- "no-scheduler": _.value,
169
+ "no-scheduler": f.value,
170
170
  onSubmit: e(T)
171
171
  }, {
172
172
  default: u(({ trigger: s }) => [
@@ -180,15 +180,15 @@ const _e = { class: "px-12 py-8" }, fe = { class: "px-12 py-8" }, ve = { class:
180
180
  ])
181
181
  ]),
182
182
  default: u(() => [
183
- n(P, {
183
+ n(B, {
184
184
  modelValue: c.value,
185
185
  "onUpdate:modelValue": t[3] || (t[3] = (s) => c.value = s),
186
- items: h,
186
+ items: h.value,
187
187
  class: "mb-7 xs:mb-0 xs:px-32"
188
- }, null, 8, ["modelValue"]),
188
+ }, null, 8, ["modelValue", "items"]),
189
189
  m("div", ge, [
190
190
  n(se, { "menu-store": e(a) }, null, 8, ["menu-store"]),
191
- n(q)
191
+ n(P)
192
192
  ])
193
193
  ]),
194
194
  _: 1