@feedmepos/mf-menu 0.32.50-dev.1 → 0.32.51-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 (69) hide show
  1. package/dist/{App-fvdXsBmD.js → App-DJ_boY0P.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DH4-Olmt.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BVafiq6l.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-DzROC59N.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-CruH5AF9.js} +2 -2
  4. package/dist/{Catalog-jkEr63nT.js → Catalog-C_7GyzOz.js} +7 -8
  5. package/dist/{Category-DrwaNYcu.js → Category-B8c8AO0C.js} +4 -4
  6. package/dist/{Category-B_gO4xPF.js → Category-CJRttg5g.js} +4 -4
  7. package/dist/{CookingGuide-C33Z5hUV.js → CookingGuide-B-oXAful.js} +4 -4
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Be7Z3I_Q.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DwwMOoQx.js} +1 -1
  9. package/dist/{Group-B5T6WfRm.js → Group-DZrcYfeC.js} +3 -3
  10. package/dist/{Group-BugcY3vS.js → Group-iHKwYfVS.js} +1 -1
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-BAIexmig.js → Group.vue_vue_type_script_setup_true_lang-UrT9_Dv_.js} +7 -7
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BOQahWyN.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BljvPVAz.js} +5 -5
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-YS1YynNn.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-Cu2_U6gg.js} +7 -7
  14. package/dist/{Ingredient-DJVD7ZRE.js → Ingredient-EEsIgWLG.js} +3 -3
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CXFhzaMf.js → InventoryBinding.vue_vue_type_script_setup_true_lang-B_ItCbTf.js} +2 -2
  16. package/dist/{LinkProductSideSheet-CzpnAdjg.js → LinkProductSideSheet-DwVODI1U.js} +3 -3
  17. package/dist/{MenuSetting-CkzrUn-g.js → MenuSetting-CP7Vx_cV.js} +6 -6
  18. package/dist/{OrderPacing-E25vzd0i.js → OrderPacing-Dej0Cp3E.js} +5 -5
  19. package/dist/{PrintRoute-D_E6EFdK.js → PrintRoute-DOJJ82mH.js} +4 -4
  20. package/dist/{Product-B65o3iNI.js → Product-BpH2gXii.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-DPzs_gu_.js → Product.vue_vue_type_script_setup_true_lang-BhOdWTlM.js} +12 -12
  22. package/dist/{ProductInternalTools-CK-PGnNo.js → ProductInternalTools-CjoC9z79.js} +5 -5
  23. package/dist/{Products-Dg1hvUwW.js → Products-BaH1UUlM.js} +44 -44
  24. package/dist/Publish-D-xjezFx.js +1429 -0
  25. package/dist/{Recipe-DIF_OoVX.js → Recipe-Dv38pLls.js} +4 -4
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-845QukTh.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-CJwwJ87D.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-DjKbPdjk.js → RuleView.vue_vue_type_script_setup_true_lang-a6W_3fVO.js} +2 -2
  28. package/dist/{Scheduler-Cp16XDHA.js → Scheduler-DEgUjACU.js} +3 -3
  29. package/dist/{ServingSequence-HG1Uq8jR.js → ServingSequence-C-XRskmz.js} +3 -3
  30. package/dist/{Setting-BjmlJwG0.js → Setting-C4zIGhS4.js} +5 -5
  31. package/dist/{Subcategory-COSfYpK6.js → Subcategory-0e7ZQXZl.js} +5 -5
  32. package/dist/{Takeaway-xH6lMjQI.js → Takeaway-BR6Jm6tq.js} +1 -1
  33. package/dist/{Takeaway-8UTX6xY6.js → Takeaway-Bk9u-h1u.js} +4 -4
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-DEnn6Uhy.js → Takeaway.vue_vue_type_script_setup_true_lang-DXCVV-UI.js} +5 -5
  35. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-C12J-MHi.js → Thumbnail.vue_vue_type_script_setup_true_lang-BZRHb8G7.js} +4 -4
  36. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-CyAvat5t.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-BrhjUvFq.js} +1 -1
  37. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-DUfRksjD.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-BKD-EAO3.js} +2 -2
  38. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C8RYs2oh.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Ch5KY_XM.js} +13 -13
  39. package/dist/{Unit-B0LxjfWX.js → Unit-BdV3zkYP.js} +2 -2
  40. package/dist/{Variant-CPBzZOv3.js → Variant-CtcqyPKe.js} +3 -3
  41. package/dist/{_id_-CM7JtSii.js → _id_-Fo7FbggZ.js} +9 -9
  42. package/dist/{app-DtexRwSb.js → app-BirB2oNz.js} +1 -1
  43. package/dist/{app-yVJIrlSz.js → app-DtMGo-8a.js} +32 -32
  44. package/dist/app.js +1 -1
  45. package/dist/apps/mf-menu/src/helper/setting/catalogSetting.d.ts +2 -1
  46. package/dist/assets/{linked-status-CbCxRkaM.js → linked-status-B6SJq-v-.js} +2 -2
  47. package/dist/assets/{menu-export-BrLAkWSp.js → menu-export-CwiCpw67.js} +2 -2
  48. package/dist/assets/{override-menu-BrLa8Jm9.js → override-menu-Fx3w0bSY.js} +2 -2
  49. package/dist/assets/{validate-menu-CsSkhovY.js → validate-menu-BGTp-oO7.js} +2 -2
  50. package/dist/{catalog-vPinxddm.js → catalog-DtioUeQr.js} +1 -1
  51. package/dist/{catalogSetting-h7qqtQIw.js → catalogSetting-BRAVGHiH.js} +26 -14
  52. package/dist/{currency-CcNf-QTk.js → currency-Dntgj8R7.js} +1 -1
  53. package/dist/{dayjs.min-Cocgeu87.js → dayjs.min-CwKTySXQ.js} +2 -2
  54. package/dist/{index-CCBv0ODD.js → index-b5UraR94.js} +4 -4
  55. package/dist/{index-H48-bCoT.js → index-vHMVgpgg.js} +5 -5
  56. package/dist/{index.vue_vue_type_script_setup_true_lang-BUccfB8b.js → index.vue_vue_type_script_setup_true_lang-CbJ4htzZ.js} +5 -5
  57. package/dist/{item-BsZG_f4A.js → item-CAdH9ZRb.js} +17 -17
  58. package/dist/{jszip.min-BnMXGnPr.js → jszip.min-q5-4AKN4.js} +3 -3
  59. package/dist/{memberPricing-OCuDHRxA.js → memberPricing-BK7Y-pUK.js} +1 -1
  60. package/dist/{menu-Bw4tAzfN.js → menu-CSDflKWK.js} +1 -1
  61. package/dist/{menuV2-DI1Os0Vq.js → menuV2-Cf_zeTsx.js} +32 -32
  62. package/dist/{order_pacing-EeEkEnwJ.js → order_pacing-gM1ob6dp.js} +5 -5
  63. package/dist/{priceTier-BkoZvNui.js → priceTier-qp7ZHYG1.js} +1 -1
  64. package/dist/{rules-Ou7rW1c3.js → rules-Bvgey7qo.js} +3 -3
  65. package/dist/{scheduler-DXQsrkEf.js → scheduler-CLvNHt4g.js} +4 -4
  66. package/dist/{toExcel-Dngn6umb.js → toExcel-CDs_GgCA.js} +2 -2
  67. package/dist/{unit-BQ4FpCT5.js → unit-CR4GvsD0.js} +2 -2
  68. package/package.json +1 -1
  69. package/dist/Publish-DOZPb_5N.js +0 -1417
@@ -1,21 +1,21 @@
1
- import { defineComponent as A, computed as m, ref as J, resolveComponent as w, createBlock as c, openBlock as l, unref as e, withCtx as f, createElementVNode as d, toDisplayString as Z, createVNode as u, createCommentVNode as M, createElementBlock as P, Fragment as j } from "vue";
2
- import { D as V } from "./dayjs.min-Cocgeu87.js";
3
- import { J as re, F as ie } from "./jszip.min-BnMXGnPr.js";
4
- import { u as K, B as Q, z as U, D as H, y as X, A as le, G as ue, H as R, I as ce } from "./index.vue_vue_type_script_setup_true_lang-BUccfB8b.js";
5
- import { w as me } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-YS1YynNn.js";
6
- import { h as F, A as q } from "./app-yVJIrlSz.js";
1
+ import { defineComponent as A, computed as m, ref as W, resolveComponent as w, createBlock as c, openBlock as l, unref as e, withCtx as f, createElementVNode as d, toDisplayString as Z, createVNode as u, createCommentVNode as M, createElementBlock as j, Fragment as L } from "vue";
2
+ import { D as V } from "./dayjs.min-CwKTySXQ.js";
3
+ import { J as re, F as ie } from "./jszip.min-q5-4AKN4.js";
4
+ import { u as K, B as Q, z as U, D as H, y as X, A as le, G as ue, H as R, I as ce } from "./index.vue_vue_type_script_setup_true_lang-CbJ4htzZ.js";
5
+ import { w as me } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-Cu2_U6gg.js";
6
+ import { h as F, A as q } from "./app-DtMGo-8a.js";
7
7
  import { useCoreStore as ee, useI18n as de } from "@feedmepos/mf-common";
8
- import { useDialog as te, useDialogChild as pe, useSnackbar as ne, useBreakpoints as fe, FmButtonVariant as E, FmButtonColorThemeVariant as h } from "@feedmepos/ui-library";
8
+ import { useDialog as te, useDialogChild as pe, useSnackbar as ne, useBreakpoints as fe, FmButtonVariant as E, FmButtonColorThemeVariant as S } from "@feedmepos/ui-library";
9
9
  import { _ as T } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
10
10
  import { _ as _e, a as G } from "./BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js";
11
11
  import { _ as ve } from "./PageLayout.vue_vue_type_script_setup_true_lang-BFxSjqqP.js";
12
- import { u as ge, a as be } from "./menu-Bw4tAzfN.js";
13
- import { u as ye } from "./item-BsZG_f4A.js";
14
- import { _ as O, a as ke } from "./Product.vue_vue_type_script_setup_true_lang-DPzs_gu_.js";
15
- import { L as W } from "./LinkProductSideSheet-CzpnAdjg.js";
16
- import { _ as xe } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C8RYs2oh.js";
17
- import { u as Se } from "./Thumbnail.vue_vue_type_script_setup_true_lang-C12J-MHi.js";
18
- import { m as he } from "./toExcel-Dngn6umb.js";
12
+ import { u as ge, a as be } from "./menu-CSDflKWK.js";
13
+ import { u as ye } from "./item-CAdH9ZRb.js";
14
+ import { _ as O, a as ke } from "./Product.vue_vue_type_script_setup_true_lang-BhOdWTlM.js";
15
+ import { L as J } from "./LinkProductSideSheet-DwVODI1U.js";
16
+ import { _ as xe } from "./TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Ch5KY_XM.js";
17
+ import { u as he } from "./Thumbnail.vue_vue_type_script_setup_true_lang-BZRHb8G7.js";
18
+ import { m as Se } from "./toExcel-CDs_GgCA.js";
19
19
  const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "flex justify-end gap-8" }, Fe = /* @__PURE__ */ A({
20
20
  __name: "ConfirmActionDialog",
21
21
  props: {
@@ -24,11 +24,11 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
24
24
  message: { default: "To confirm your action, type <b>[[value]]</b> in the text field." }
25
25
  },
26
26
  setup($) {
27
- const n = $, y = m(() => n.message.replace("[[value]]", n.value)), x = J(""), o = te(), { emitAction: S } = pe();
27
+ const n = $, y = m(() => n.message.replace("[[value]]", n.value)), x = W(""), o = te(), { emitAction: h } = pe();
28
28
  return (_, i) => {
29
29
  const v = w("FmTextField"), g = w("FmButton"), b = w("FmForm");
30
30
  return l(), c(b, {
31
- "on-validation-success": () => e(S)("primary"),
31
+ "on-validation-success": () => e(h)("primary"),
32
32
  "blame-form-child-on-validation-failed": ""
33
33
  }, {
34
34
  default: f(() => [
@@ -67,9 +67,9 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
67
67
  }), $e = /* @__PURE__ */ A({
68
68
  __name: "Migrate",
69
69
  setup($) {
70
- const n = K(), y = ee(), x = ne(), { minor: o } = Q(x), S = J(!1), _ = te();
70
+ const n = K(), y = ee(), x = ne(), { minor: o } = Q(x), h = W(!1), _ = te();
71
71
  async function i() {
72
- v.value || S.value || _.open({
72
+ v.value || h.value || _.open({
73
73
  title: "Migrate to new version",
74
74
  contentComponent: Fe,
75
75
  contentComponentProps: {
@@ -84,7 +84,7 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
84
84
  }, 2e3);
85
85
  },
86
86
  {
87
- isLoading: S,
87
+ isLoading: h,
88
88
  customId: n.state.menu._id,
89
89
  message: "Migrating menu",
90
90
  successMessage: "Migration completed"
@@ -112,10 +112,10 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
112
112
  })) : M("", !0);
113
113
  };
114
114
  }
115
- }), Ve = "/assets/menu-export-BrLAkWSp.js", Ee = { class: "flex-1 flex justify-between gap-8 pl-8" }, Te = { class: "flex items-center" }, Ae = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ie = { class: "fm-typo-en-body-md-600 font-semibold" }, Be = { class: "flex gap-8" }, Xe = /* @__PURE__ */ A({
115
+ }), Ve = "/assets/menu-export-CwiCpw67.js", Ee = { class: "flex-1 flex justify-between gap-8 pl-8" }, Te = { class: "flex items-center" }, Ae = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Ie = { class: "fm-typo-en-body-md-600 font-semibold" }, De = { class: "flex gap-8" }, Xe = /* @__PURE__ */ A({
116
116
  __name: "Products",
117
117
  setup($) {
118
- const { t: n } = de(), y = ee(), x = Q(ne()), o = K(), S = m(() => o.rules.item), _ = ye(), i = m(() => !o.state.currentSchedulerId), { selectedCategories: v } = ge(), g = m(() => ({
118
+ const { t: n } = de(), y = ee(), x = Q(ne()), o = K(), h = m(() => o.rules.item), _ = ye(), i = m(() => !o.state.currentSchedulerId), { selectedCategories: v } = ge(), g = m(() => ({
119
119
  ...le.menuV4ToV3(ue(o.state.menu)),
120
120
  _id: o.state.menu._id,
121
121
  _rev: o.state.menu._rev
@@ -149,7 +149,7 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
149
149
  );
150
150
  await p(s, a);
151
151
  } else {
152
- const r = he(g.value), t = `menu_${V().format("DD-MM-YYYY_HH-mm")}`;
152
+ const r = Se(g.value), t = `menu_${V().format("DD-MM-YYYY_HH-mm")}`;
153
153
  await me(r, `${t}.xlsx`, {
154
154
  bookType: "xlsx",
155
155
  bookSST: !0,
@@ -163,19 +163,19 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
163
163
  }
164
164
  const {
165
165
  menuItems: I,
166
- categories: B,
167
- linkItemRules: D,
166
+ categories: D,
167
+ linkItemRules: B,
168
168
  handleSubmit: Y,
169
169
  catalogManager: N,
170
170
  schedulerManager: z
171
- } = Se(!1), oe = fe(), ae = m(() => oe.breakpoints.value.xs), se = m(() => {
171
+ } = he(!1), oe = fe(), ae = m(() => oe.breakpoints.value.xs), se = m(() => {
172
172
  var a;
173
173
  const r = ((a = y.sessionUser.value) == null ? void 0 : a.permissions) ?? [], t = {
174
174
  action: F.Action.manage,
175
175
  subject: F.Subject.Business.menu_menuManagement
176
176
  };
177
177
  return q([t], r).granted;
178
- }), L = m(() => {
178
+ }), P = m(() => {
179
179
  var a;
180
180
  const r = ((a = y.sessionUser.value) == null ? void 0 : a.permissions) ?? [], t = {
181
181
  action: F.Action.manage,
@@ -199,7 +199,7 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
199
199
  d("p", Ie, Z(b.value), 1)
200
200
  ])
201
201
  ]),
202
- d("div", Be, [
202
+ d("div", De, [
203
203
  ae.value ? (l(), c(O, { key: 1 }, {
204
204
  default: f(({ trigger: s }) => [
205
205
  u(_e, null, {
@@ -217,32 +217,32 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
217
217
  }, 1024)
218
218
  ]),
219
219
  _: 1
220
- })) : (l(), P(j, { key: 0 }, [
220
+ })) : (l(), j(L, { key: 0 }, [
221
221
  se.value ? (l(), c(xe, { key: 0 }, {
222
222
  default: f(({ trigger: s }) => [
223
223
  u(a, {
224
224
  label: e(n)("menu.tree_editor.title"),
225
- "bg-color": e(h).NeutralGray100,
226
- "text-color": e(h).TypoSecondary,
225
+ "bg-color": e(S).NeutralGray100,
226
+ "text-color": e(S).TypoSecondary,
227
227
  variant: e(E).Primary,
228
228
  onClick: s
229
229
  }, null, 8, ["label", "bg-color", "text-color", "variant", "onClick"])
230
230
  ]),
231
231
  _: 1
232
232
  })) : M("", !0),
233
- L.value ? (l(), c(a, {
233
+ P.value ? (l(), c(a, {
234
234
  key: 1,
235
- "bg-color": e(h).NeutralGray100,
236
- "text-color": e(h).TypoSecondary,
235
+ "bg-color": e(S).NeutralGray100,
236
+ "text-color": e(S).TypoSecondary,
237
237
  variant: e(E).Primary,
238
238
  label: e(n)("menu.products.actions.export"),
239
239
  onClick: k
240
240
  }, null, 8, ["bg-color", "text-color", "variant", "label"])) : M("", !0),
241
- L.value ? (l(), c(O, { key: 2 }, {
241
+ P.value ? (l(), c(O, { key: 2 }, {
242
242
  default: f(({ trigger: s }) => [
243
243
  u(a, {
244
- "bg-color": e(h).NeutralGray100,
245
- "text-color": e(h).TypoSecondary,
244
+ "bg-color": e(S).NeutralGray100,
245
+ "text-color": e(S).TypoSecondary,
246
246
  variant: e(E).Primary,
247
247
  label: e(n)("menu.products.actions.import"),
248
248
  onClick: s
@@ -251,20 +251,20 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
251
251
  _: 1
252
252
  })) : M("", !0)
253
253
  ], 64)),
254
- b.value > 0 ? (l(), P(j, { key: 2 }, [
255
- S.value.create ? (l(), c(T, {
254
+ b.value > 0 ? (l(), j(L, { key: 2 }, [
255
+ h.value.create ? (l(), c(T, {
256
256
  key: 0,
257
257
  label: e(n)("menu.products.actions.add"),
258
258
  "prepend-icon": "add",
259
259
  onClick: t[0] || (t[0] = (s) => e(_).create(null))
260
- }, null, 8, ["label"])) : i.value ? (l(), c(W, {
260
+ }, null, 8, ["label"])) : i.value ? (l(), c(J, {
261
261
  key: 1,
262
262
  "categorized-items": e(N).linkableItems.value,
263
263
  "initial-value": e(N).currentItems.value,
264
264
  "show-variant": !1,
265
265
  "menu-items": e(I),
266
- categories: e(B),
267
- "link-item-rules": e(D),
266
+ categories: e(D),
267
+ "link-item-rules": e(B),
268
268
  "no-scheduler": i.value,
269
269
  onSubmit: e(Y)
270
270
  }, {
@@ -276,14 +276,14 @@ const Me = { class: "space-y-24 mb-24" }, we = ["innerHTML"], Ce = { class: "fle
276
276
  }, null, 8, ["label", "onClick"])
277
277
  ]),
278
278
  _: 1
279
- }, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (l(), c(W, {
279
+ }, 8, ["categorized-items", "initial-value", "menu-items", "categories", "link-item-rules", "no-scheduler", "onSubmit"])) : (l(), c(J, {
280
280
  key: 2,
281
281
  "categorized-items": e(z).linkableItems.value,
282
282
  "initial-value": e(z).currentItems.value,
283
283
  "show-variant": !1,
284
284
  "menu-items": e(I),
285
- categories: e(B),
286
- "link-item-rules": e(D),
285
+ categories: e(D),
286
+ "link-item-rules": e(B),
287
287
  "no-scheduler": i.value,
288
288
  onSubmit: e(Y)
289
289
  }, {