@feedmepos/mf-menu 0.31.74 → 0.31.75-prod

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 (88) hide show
  1. package/dist/{App-B6Hn5Wwr.js → App-Cw2D3IXT.js} +528 -585
  2. package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-CFtcqy58.js +161 -0
  3. package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-CnCoRLDg.js +74 -0
  4. package/dist/{Catalog-D-2hDU2I.js → Catalog-B5kAKdVW.js} +9 -9
  5. package/dist/{Category-hSOIgBkH.js → Category-CAd9BTRX.js} +8 -8
  6. package/dist/{Category-DjTbuAvE.js → Category-DKjU47aW.js} +5 -5
  7. package/dist/{CookingGuide-D7ruB7eP.js → CookingGuide-BN739JkB.js} +7 -7
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-mxVSGXAz.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-gii2CTYD.js} +3 -3
  9. package/dist/{Group-evJZbgZn.js → Group-DmII5Nwf.js} +4 -4
  10. package/dist/{Group-CjlhbhDV.js → Group-DnpVxZkN.js} +1 -1
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-DiKraPiw.js → Group.vue_vue_type_script_setup_true_lang-BEeCwmKt.js} +163 -163
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BYku8MAc.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-DB5B3PLx.js} +90 -90
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DScxctPb.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BEISm7uc.js} +3046 -3046
  14. package/dist/{Ingredient-jNDx1pUw.js → Ingredient-CpuyDF4n.js} +30 -30
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CuM_k-C3.js → InventoryBinding.vue_vue_type_script_setup_true_lang-GHiwD8VV.js} +1112 -1112
  16. package/dist/{LinkProductSideSheet-CAPIdf6P.js → LinkProductSideSheet-DrSKOBLg.js} +129 -129
  17. package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-Bm_hSelC.js +69 -0
  18. package/dist/{MenuSetting-C2MDgy57.js → MenuSetting-BNuIUnjz.js} +138 -138
  19. package/dist/{PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js → PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js} +8 -8
  20. package/dist/{PrintRoute-SmWbKr9Y.js → PrintRoute-Dl0oWYju.js} +6 -6
  21. package/dist/{Product-BCm49V9T.js → Product-IQBP1vvY.js} +1 -1
  22. package/dist/{Product.vue_vue_type_script_setup_true_lang-CTOjLqbF.js → Product.vue_vue_type_script_setup_true_lang-Bdss6VRj.js} +607 -607
  23. package/dist/{ProductInternalTools-DGsvvnIs.js → ProductInternalTools-Dkhbg1WE.js} +11 -11
  24. package/dist/{Products-D4qeSEfO.js → Products-Dcafs3Lk.js} +59 -59
  25. package/dist/{Publish-3A3EEQ9x.js → Publish-BTuO4AlR.js} +6 -6
  26. package/dist/{Recipe-CS7TZGA6.js → Recipe-Dx2ZkHsk.js} +6 -6
  27. package/dist/{Scheduler-BIwTUJMJ.js → Scheduler-Dh_0J2g9.js} +5 -5
  28. package/dist/{ServingSequence-C0N8wJfr.js → ServingSequence-DXhx9dcu.js} +5 -5
  29. package/dist/{Setting-fA6tvQK2.js → Setting-4x_w46t_.js} +5 -5
  30. package/dist/{Subcategory-BAFAmflQ.js → Subcategory-vztBpQnB.js} +6 -6
  31. package/dist/{Takeaway-D4aO8zzN.js → Takeaway-CDgIyUrN.js} +5 -5
  32. package/dist/{Takeaway-CLZouw1j.js → Takeaway-Dz5PxJk_.js} +1 -1
  33. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-1oN-i9bo.js → Takeaway.vue_vue_type_script_setup_true_lang-BMMXiDFL.js} +6 -6
  34. package/dist/{TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js → TextChip.vue_vue_type_script_setup_true_lang-BJMcI3U2.js} +5 -5
  35. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-Dwol_Lkd.js → Thumbnail.vue_vue_type_script_setup_true_lang-DJ8JMV28.js} +74 -74
  36. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-cTzWxjM4.js +5996 -0
  37. package/dist/{Unit-ByqUb4Po.js → Unit-z7OVmlSq.js} +4 -4
  38. package/dist/{Variant-BmqrUfen.js → Variant-CFRgvlXf.js} +5 -5
  39. package/dist/{_id_-RUWzOB0B.js → _id_-B9q3j4_m.js} +11 -11
  40. package/dist/{app-B1N2F0j8.js → app-CdsS_tMb.js} +1 -1
  41. package/dist/app-CkCBPor3.js +363 -0
  42. package/dist/{app-5fxKLAzS.js → app-CzXxFrl1.js} +447 -447
  43. package/dist/app.js +1 -1
  44. package/dist/apps/mf-menu/src/app.d.ts +0 -1
  45. package/dist/apps/mf-menu/src/components/feature/CategoryManager/CategoriesSelector.vue.d.ts +1 -1
  46. package/dist/apps/mf-menu/src/components/feature/MenuSelector.vue.d.ts +1 -1
  47. package/dist/apps/mf-menu/src/components/feature/SubcategoryManager/SubcategorySelector.vue.d.ts +1 -1
  48. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  49. package/dist/assets/linked-status-B8qYyYR6.js +13 -0
  50. package/dist/assets/override-menu-nmSTTTn7.js +13 -0
  51. package/dist/assets/validate-menu-CF1XZECU.js +13 -0
  52. package/dist/{catalog-CarmtheV.js → catalog-DBBEUpMo.js} +1 -1
  53. package/dist/{catalogSetting-BqrTpBP8.js → catalogSetting-DKvBjleU.js} +1 -1
  54. package/dist/{category-5R83ypNS.js → category-DILExwHL.js} +1 -1
  55. package/dist/{currency-CUl4r9rT.js → currency-B7Xm1xZJ.js} +1 -1
  56. package/dist/customAttributes-DrA0YC82.js +180 -0
  57. package/dist/{index-Ttqt4iFV.js → index-2lrKSO_O.js} +20 -20
  58. package/dist/{index-DlwLw-BQ.js → index-BoVEGKz7.js} +91 -91
  59. package/dist/{index-DAWSNP3G.js → index-Bu5LuO1j.js} +4 -4
  60. package/dist/{index-DUfYYdZ-.js → index-SNNvjtFa.js} +56 -56
  61. package/dist/{index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js → index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js} +16 -16
  62. package/dist/{item-B0UPYxsB.js → item-BnOnvN8x.js} +3091 -3174
  63. package/dist/{iteration-CfmAZiOO.js → iteration-Csz_aSxy.js} +3 -3
  64. package/dist/{jszip.min-zROpry0S.js → jszip.min-B0T3I-lE.js} +329 -329
  65. package/dist/{menu-DAac726D.js → menu-3XEn1C9F.js} +6402 -6332
  66. package/dist/{menu-DpYo8dYR.js → menu-DzbYSPGP.js} +1 -1
  67. package/dist/{menuV2-DZj_FPqR.js → menuV2-cXg54GYW.js} +93 -93
  68. package/dist/mf-menu.css +1 -1
  69. package/dist/packages/shared/src/components/form/SelectFilter.vue.d.ts +1 -1
  70. package/dist/{priceTier-BvDLl8v2.js → priceTier-DVd27LFd.js} +1 -1
  71. package/dist/{scheduler-pNUXG6En.js → scheduler-D8IgBrUX.js} +6 -6
  72. package/dist/{subcategory-DCDCQnAX.js → subcategory-BOpm3s8K.js} +2 -2
  73. package/dist/{toExcel-DqMa1Hn8.js → toExcel-BJM3fOB2.js} +2 -2
  74. package/dist/{unit-CuCXoWPG.js → unit-DF9d3piP.js} +151 -151
  75. package/dist/{vuedraggable-CK8z7qA8.js → vuedraggable-DnBIRDMr.js} +2 -2
  76. package/package.json +5 -5
  77. package/dist/ApplyProduct.vue_vue_type_script_setup_true_lang-CqGU3bJQ.js +0 -161
  78. package/dist/BottomSheetMenuItem.vue_vue_type_script_setup_true_lang-DhrXKy3b.js +0 -74
  79. package/dist/MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js +0 -69
  80. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CabQS55D.js +0 -6012
  81. package/dist/app-CHpw_EM1.js +0 -2101
  82. package/dist/apps/mf-menu/src/components/feature/RemyButton.vue.d.ts +0 -15
  83. package/dist/apps/mf-menu/src/components/feature/RemyDialog.vue.d.ts +0 -15
  84. package/dist/apps/mf-menu/src/helper/remy.d.ts +0 -5
  85. package/dist/assets/linked-status-CFdi7K3K.js +0 -13
  86. package/dist/assets/override-menu-CXOY8i3w.js +0 -13
  87. package/dist/assets/validate-menu-DLlrsx2f.js +0 -13
  88. package/dist/customAttributes-BkqKM_KW.js +0 -180
@@ -1,15 +1,15 @@
1
- import { defineComponent as ie, computed as b, ref as $, reactive as Ve, watch as Ce, resolveComponent as d, createElementBlock as y, openBlock as m, Fragment as V, renderSlot as Me, createVNode as s, unref as e, withCtx as k, createBlock as I, createCommentVNode as G, createElementVNode as v, renderList as j, normalizeClass as J, createTextVNode as we, toDisplayString as U, getCurrentInstance as Ee, h as te, withModifiers as oe } from "vue";
1
+ import { defineComponent as ie, computed as b, ref as $, reactive as Ve, watch as Ce, resolveComponent as d, createElementBlock as y, openBlock as m, Fragment as V, renderSlot as Me, createVNode as s, unref as e, withCtx as k, createBlock as T, createCommentVNode as G, createElementVNode as v, renderList as j, normalizeClass as J, createTextVNode as we, toDisplayString as U, getCurrentInstance as Ee, h as te, withModifiers as oe } from "vue";
2
2
  import { useI18n as Q } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as W, components as se, useDialog as $e, FmButtonVariant as ue, useBreakpoints as Ue } from "@feedmepos/ui-library";
4
4
  import { _ as Ne } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { O as re, D as X, u as Z, H as Oe, B as K, I as Be, G as le, J as q, z as H } from "./menu-DAac726D.js";
6
- import { _ as Ie } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
- import { _ as ce } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
5
+ import { O as re, D as X, u as Z, H as Oe, B as K, I as Be, G as le, J as q, z as H } from "./menu-3XEn1C9F.js";
6
+ import { _ as Ie } from "./PageLayout.vue_vue_type_script_setup_true_lang-vFqWGM6P.js";
7
+ import { _ as ce } from "./index.vue_vue_type_script_setup_true_lang-B1_JqsYF.js";
8
8
  import { defineStore as Te } from "pinia";
9
- import { _ as ae, g as Le } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-CuM_k-C3.js";
9
+ import { _ as ae, g as Le } from "./InventoryBinding.vue_vue_type_script_setup_true_lang-GHiwD8VV.js";
10
10
  import { u as De } from "./discardConfirm-BHni0LNu.js";
11
11
  import { c as Pe } from "./check-C9mY6LiX.js";
12
- import { u as Re } from "./unit-CuCXoWPG.js";
12
+ import { u as Re } from "./unit-DF9d3piP.js";
13
13
  import { c as Ae } from "./createComponentProgrammatically-Bt2rn1IQ.js";
14
14
  const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
15
15
  key: 0,
@@ -24,12 +24,12 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
24
24
  usedCodes: { default: () => [] },
25
25
  invalidSkuAndRecipe: {}
26
26
  },
27
- setup(T, { expose: N }) {
28
- const { t: l } = Q(), r = T, u = re(X(W())), S = Re(), h = b(() => r.initialValue ? l("menu.sku.update") : l("menu.sku.add")), x = b(
27
+ setup(N, { expose: O }) {
28
+ const { t: l } = Q(), r = N, u = re(X(W())), S = Re(), h = b(() => r.initialValue ? l("menu.sku.update") : l("menu.sku.add")), x = b(
29
29
  () => r.initialValue ? l("menu.common.actions.update") : l("menu.common.actions.add")
30
30
  ), C = $(!1), f = $(!1), M = (t) => {
31
31
  Pe.isBoolean(t) ? f.value = t : f.value = !f.value;
32
- }, O = Z(), a = b(() => O.units), i = b(() => a.value.map(({ name: t, _id: o, abbrev: g, measurements: B }) => ({
32
+ }, B = Z(), a = b(() => B.units), i = b(() => a.value.map(({ name: t, _id: o, abbrev: g, measurements: I }) => ({
33
33
  label: t,
34
34
  value: o,
35
35
  options: [
@@ -37,7 +37,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
37
37
  label: `${t} (${g})`,
38
38
  value: null
39
39
  },
40
- ...B.map(({ name: A, id: Y, abbrev: z }) => ({
40
+ ...I.map(({ name: A, id: Y, abbrev: z }) => ({
41
41
  label: `${A} (${z})`,
42
42
  value: Y
43
43
  }))
@@ -54,7 +54,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
54
54
  }), D = (t) => n.unit._id === t.value && n.trackingMeasurement === (t.value || null);
55
55
  function _(t, o) {
56
56
  const g = o || void 0;
57
- n.unit._id === t && n.trackingMeasurement === g || (n.unit = a.value.find((B) => B._id === t), n.trackingMeasurement = g, n.convert && (n.convert.measurement = g));
57
+ n.unit._id === t && n.trackingMeasurement === g || (n.unit = a.value.find((I) => I._id === t), n.trackingMeasurement = g, n.convert && (n.convert.measurement = g));
58
58
  }
59
59
  const de = b(() => {
60
60
  const t = i.value.find((o) => o.value === n.unit._id);
@@ -119,11 +119,11 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
119
119
  () => f.value,
120
120
  (t) => {
121
121
  }
122
- ), N({
122
+ ), O({
123
123
  show: f,
124
124
  trigger: M
125
125
  }), (t, o) => {
126
- const g = d("FmTextField"), B = d("FmLabel"), A = d("FmField"), Y = d("FmMenuHeader"), z = d("FmMenuDivider"), ge = d("FmMenuItem"), ye = d("FmMenu"), ke = d("FmFormGroup"), he = d("FmSwitch"), xe = d("FmSelect"), Fe = d("FmCard"), ne = d("fm-button"), Se = d("fm-side-sheet");
126
+ const g = d("FmTextField"), I = d("FmLabel"), A = d("FmField"), Y = d("FmMenuHeader"), z = d("FmMenuDivider"), ge = d("FmMenuItem"), ye = d("FmMenu"), ke = d("FmFormGroup"), he = d("FmSwitch"), xe = d("FmSelect"), Fe = d("FmCard"), ne = d("fm-button"), Se = d("fm-side-sheet");
127
127
  return m(), y(V, null, [
128
128
  Me(t.$slots, "default", { trigger: M }),
129
129
  s(Se, {
@@ -170,7 +170,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
170
170
  (p) => !!p || e(l)("menu.common.validation.required", {
171
171
  field: e(l)("menu.sku.columns.code").toLowerCase()
172
172
  }),
173
- (p) => !t.usedCodes.includes(p.trim()) || e(l)("menu.sku.validation.code_used")
173
+ (p) => !N.usedCodes.includes(p.trim()) || e(l)("menu.sku.validation.code_used")
174
174
  ]
175
175
  }, null, 8, ["label", "modelValue", "rules"]),
176
176
  s(g, {
@@ -191,7 +191,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
191
191
  "model-value": L.value
192
192
  }, {
193
193
  label: k(() => [
194
- s(B, {
194
+ s(I, {
195
195
  label: e(l)("menu.sku.columns.unit")
196
196
  }, null, 8, ["label"])
197
197
  ]),
@@ -211,8 +211,8 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
211
211
  default: k(() => [
212
212
  we(U(L.value), 1)
213
213
  ]),
214
- _: 2
215
- }, 1032, ["invalid"])
214
+ _: 1
215
+ }, 8, ["invalid"])
216
216
  ]),
217
217
  default: k(() => [
218
218
  v("div", je, [
@@ -221,7 +221,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
221
221
  label: w.label
222
222
  }, null, 8, ["label"]),
223
223
  s(z),
224
- (m(!0), y(V, null, j(w.options, (E, dn) => (m(), I(ge, {
224
+ (m(!0), y(V, null, j(w.options, (E, dn) => (m(), T(ge, {
225
225
  label: E.label,
226
226
  "model-value": D(E),
227
227
  onClick: (mn) => _(w.value, E.value),
@@ -277,7 +277,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
277
277
  _: 1
278
278
  })
279
279
  ])) : (m(), y("div", ze, [
280
- a.value.length === 0 ? (m(), I(e(ce), {
280
+ a.value.length === 0 ? (m(), T(e(ce), {
281
281
  key: 0,
282
282
  action: {
283
283
  text: e(l)("menu.unit.add"),
@@ -296,7 +296,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
296
296
  };
297
297
  }
298
298
  }), Je = He, Qe = Te("sku-manager", () => {
299
- const T = $e(), N = W(), l = X(N), r = re(l), u = Z(), S = Ee(), { t: h } = Q(), x = (a) => {
299
+ const N = $e(), O = W(), l = X(O), r = re(l), u = Z(), S = Ee(), { t: h } = Q(), x = (a) => {
300
300
  var c, n;
301
301
  const { vNode: i } = Ae(
302
302
  Je,
@@ -322,8 +322,8 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
322
322
  async function M(a) {
323
323
  C(a);
324
324
  }
325
- async function O(a) {
326
- T.open({
325
+ async function B(a) {
326
+ N.open({
327
327
  title: h("menu.common.dialog.remove.ingredient.title"),
328
328
  message: h("menu.common.dialog.remove.ingredient.message", { name: a.name }),
329
329
  primaryActions: {
@@ -350,7 +350,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
350
350
  return {
351
351
  createSku: f,
352
352
  updateSku: M,
353
- deleteSku: O
353
+ deleteSku: B
354
354
  };
355
355
  }), We = {
356
356
  key: 0,
@@ -379,9 +379,9 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
379
379
  class: "fm-typo-en-body-md-600 font-semibold"
380
380
  }, Cn = /* @__PURE__ */ ie({
381
381
  __name: "Ingredient",
382
- setup(T) {
383
- const N = W();
384
- X(N);
382
+ setup(N) {
383
+ const O = W();
384
+ X(O);
385
385
  const l = Z(), r = Qe(), {
386
386
  t: u
387
387
  } = Q(), S = b(() => l.skus), h = b(() => S.value.filter((i) => `${i.name} ${i.code} ${i._unit} (${i._abbrev})`.toLowerCase().includes(x.value.toLowerCase()))), x = $(""), C = $([{
@@ -425,13 +425,13 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
425
425
  function f(i) {
426
426
  r.updateSku(i);
427
427
  }
428
- const M = b(() => S.value.length), O = Ue(), a = b(() => O.breakpoints.value.xs);
428
+ const M = b(() => S.value.length), B = Ue(), a = b(() => B.breakpoints.value.xs);
429
429
  return (i, c) => {
430
430
  const n = d("FmSearch"), F = d("FmTable"), L = d("fm-button"), D = d("FmSpacer");
431
- return m(), I(Ie, {
431
+ return m(), T(Ie, {
432
432
  heading: e(u)("menu.ingredient.title")
433
433
  }, {
434
- default: k(() => [S.value.length === 0 ? (m(), I(e(ce), {
434
+ default: k(() => [S.value.length === 0 ? (m(), T(e(ce), {
435
435
  key: 0,
436
436
  action: {
437
437
  text: e(u)("menu.ingredient.empty.action"),
@@ -479,7 +479,7 @@ const Ye = { class: "fm-typo-en-title-md-600" }, ze = {
479
479
  "pin-header-row": "",
480
480
  onRowClick: c[1] || (c[1] = (_) => f(_.original))
481
481
  }, null, 8, ["column-defs", "row-data", "page-size"])]))], 64))]),
482
- "append-heading": k(() => [v("div", sn, [v("div", un, [v("div", rn, [v("p", cn, U(M.value), 1)])]), s(D), S.value.length > 0 ? (m(), I(Ne, {
482
+ "append-heading": k(() => [v("div", sn, [v("div", un, [v("div", rn, [v("p", cn, U(M.value), 1)])]), s(D), S.value.length > 0 ? (m(), T(Ne, {
483
483
  key: 0,
484
484
  label: e(u)("menu.ingredient.actions.add"),
485
485
  "prepend-icon": "add",