@feedmepos/mf-menu 0.31.31-beta.1 → 0.31.31-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 (101) hide show
  1. package/dist/{App-1TX8v7ZA.js → App-Cvgz2kQV.js} +22 -24
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CR7QrFUG.js → ApplyProduct.vue_vue_type_script_setup_true_lang-Bq84uuiq.js} +22 -22
  3. package/dist/{Catalog-DWClc58s.js → Catalog-Ye-KpQ31.js} +74 -75
  4. package/dist/{Category-BqKFvFam.js → Category-BPChBqVR.js} +60 -60
  5. package/dist/{Category-IYMtMoT-.js → Category-CHcxix2b.js} +28 -28
  6. package/dist/{CookingGuide-BayJ6zj4.js → CookingGuide-DgygBSoB.js} +101 -103
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-Ceq86b3d.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-ClV6LD2-.js} +1 -1
  8. package/dist/{Group-LqSX7ue6.js → Group-223G1Edd.js} +1 -1
  9. package/dist/{Group-RujTPTns.js → Group-B7EU1xmY.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-Dj9ZmkYe.js → Group.vue_vue_type_script_setup_true_lang-CAZuyOPy.js} +137 -138
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D5GWkh3G.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CdjRWC9z.js} +13 -13
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-C4IrA3es.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-BRQm-UTk.js} +5067 -5049
  13. package/dist/{Ingredient-_tc8llr1.js → Ingredient-Dl1Z5Qt2.js} +64 -65
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-DLFDf-VZ.js → InventoryBinding.vue_vue_type_script_setup_true_lang-CxuQTH0k.js} +1061 -1063
  15. package/dist/{LinkProductSideSheet-C6rF-G1v.js → LinkProductSideSheet-Y-Z9_9Kp.js} +12 -14
  16. package/dist/{MenuSetting-xDHeeROY.js → MenuSetting-Be44fmVj.js} +26 -27
  17. package/dist/{PrintRoute-B_TFMn5e.js → PrintRoute-BURAEZ6X.js} +15 -17
  18. package/dist/{Product-DdEEqrtc.js → Product-DSlVHbgr.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-zcistmwh.js → Product.vue_vue_type_script_setup_true_lang-DtYarO0L.js} +256 -257
  20. package/dist/{ProductInternalTools-BcC7BF6W.js → ProductInternalTools-gW57aUAO.js} +45 -45
  21. package/dist/{Products-Cu0cJshV.js → Products-Czr-70M8.js} +72 -74
  22. package/dist/{Publish-Bm3Xiks1.js → Publish-XCowNW_z.js} +32 -34
  23. package/dist/{Recipe-DWK-luIZ.js → Recipe-6oNz21AB.js} +63 -65
  24. package/dist/{Scheduler-Cb1TeBhW.js → Scheduler-UYFuFk5E.js} +19 -19
  25. package/dist/{ServingSequence-evSIET_8.js → ServingSequence-w66ujU4D.js} +34 -34
  26. package/dist/{Setting-Cn3kwC9F.js → Setting-Dgn3lOx7.js} +53 -54
  27. package/dist/{Subcategory-q4m4qHsU.js → Subcategory-lnzuxCCH.js} +34 -34
  28. package/dist/{Takeaway-ClepHYGu.js → Takeaway-C5Up5Odr.js} +14 -14
  29. package/dist/{Takeaway-D-rdUZuh.js → Takeaway-DP1GJUPF.js} +1 -1
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-y9Yxstu2.js → Takeaway.vue_vue_type_script_setup_true_lang-B45keXn7.js} +40 -41
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BSeLfoOA.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-yEIxG4F2.js} +1108 -1109
  32. package/dist/{Unit-IM8Naj82.js → Unit-Bt8aRidX.js} +12 -12
  33. package/dist/{Variant-fzGvwaMo.js → Variant-DXoOAa9M.js} +16 -16
  34. package/dist/{_id_-BsKNG9Qv.js → _id_-D9tvinax.js} +22 -22
  35. package/dist/{app-BzQRUMTK.js → app-Cnlv4rmj.js} +3 -3
  36. package/dist/{app-CoVUUCa_.js → app-DiizQWjo.js} +24 -24
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProduct.vue.d.ts +88 -16
  39. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/ApplyProductDialog.vue.d.ts +44 -8
  40. package/dist/apps/mf-menu/src/components/feature/ApplyProduct/index.d.ts +360 -184
  41. package/dist/apps/mf-menu/src/components/feature/GroupManager/OptionTable.vue.d.ts +80 -28
  42. package/dist/apps/mf-menu/src/components/feature/GroupManager/UpdateForm.vue.d.ts +44 -8
  43. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierButton.vue.d.ts +216 -148
  44. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierForm.vue.d.ts +216 -148
  45. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/category.d.ts +4 -4
  46. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/item.d.ts +218 -150
  47. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/scheduler.d.ts +142 -82
  48. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/useItemFormManagement.d.ts +108 -74
  49. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/OptionTable.vue.d.ts +80 -28
  50. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/UpdateForm.vue.d.ts +44 -8
  51. package/dist/apps/mf-menu/src/components/feature/TreeEditor/form/GroupManager/index.d.ts +176 -32
  52. package/dist/apps/mf-menu/src/components/feature/TreeEditor/item/ItemForm.vue.d.ts +324 -222
  53. package/dist/apps/mf-menu/src/components/feature/TreeEditor/menuUtils.d.ts +108 -74
  54. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +1374 -1040
  55. package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +216 -148
  56. package/dist/apps/mf-menu/src/helper/import-export.d.ts +1374 -1040
  57. package/dist/apps/mf-menu/src/helper/itemCategories.d.ts +108 -74
  58. package/dist/apps/mf-menu/src/helper/menu.d.ts +1523 -1155
  59. package/dist/apps/mf-menu/src/manager/menu/category.d.ts +4 -4
  60. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +1374 -1040
  61. package/dist/apps/mf-menu/src/manager/menu/subcategory.d.ts +4 -4
  62. package/dist/apps/mf-menu/src/stores/manager/item.d.ts +324 -222
  63. package/dist/apps/mf-menu/src/stores/manager/recipe.d.ts +12 -12
  64. package/dist/apps/mf-menu/src/stores/manager/scheduler.d.ts +142 -82
  65. package/dist/apps/mf-menu/src/stores/manager/sku.d.ts +60 -60
  66. package/dist/apps/mf-menu/src/stores/manager/takeaway.d.ts +6 -6
  67. package/dist/apps/mf-menu/src/stores/manager/unit.d.ts +12 -12
  68. package/dist/apps/mf-menu/src/stores/menu.d.ts +1375 -1041
  69. package/dist/apps/mf-menu/src/views/Catalog/Edit/AddProductPopup/Form.vue.d.ts +216 -148
  70. package/dist/apps/mf-menu/src/views/CookingGuide/CookingGuideDialog.vue.d.ts +4 -4
  71. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +352 -132
  72. package/dist/apps/mf-menu/src/views/Scheduler/FilterForm.vue.d.ts +84 -32
  73. package/dist/apps/mf-menu/src/views/Scheduler/SchedulerDialog.vue.d.ts +84 -32
  74. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  75. package/dist/assets/linked-status-D7AwcSC5.js +24 -0
  76. package/dist/assets/override-menu-Y9T4wxEn.js +24 -0
  77. package/dist/assets/validate-menu-DiAW2jY1.js +24 -0
  78. package/dist/{catalog-CaXceaA2.js → catalog-DUSCax4J.js} +1 -1
  79. package/dist/{catalogSetting-BGvckFdh.js → catalogSetting-18FJ5pkA.js} +1 -1
  80. package/dist/{category-u5eo_Vjd.js → category-B9XvlPFy.js} +3 -5
  81. package/dist/currency-Sno8fZYc.js +7 -0
  82. package/dist/{dayjs.min-Bsr3tJCn.js → dayjs.min-BsfKOrNo.js} +1 -1
  83. package/dist/{index-tRQb7RN_.js → index-BDpkSKDX.js} +1 -1
  84. package/dist/{index-Bbx4iZ6n.js → index-Eomwf2OO.js} +27 -27
  85. package/dist/{index-DSAG0yWh.js → index-ltyOwsRO.js} +20 -22
  86. package/dist/{item-BAqzKh4O.js → item-5Kkzf_eF.js} +1069 -1071
  87. package/dist/{jszip.min-BKJtvCjM.js → jszip.min-CRfpGjN8.js} +545 -545
  88. package/dist/menu-Btcr0nsk.js +108040 -0
  89. package/dist/{menu-CDrsBjmr.js → menu-DYs_VNfB.js} +9 -11
  90. package/dist/mf-menu.css +1 -1
  91. package/dist/{priceTier-DfbHonGe.js → priceTier-DvUjWwCM.js} +4 -4
  92. package/dist/{scheduler-DTWaBudB.js → scheduler-C76blUlS.js} +11 -13
  93. package/dist/{subcategory-D-R5r1Tr.js → subcategory-C44qN5Vk.js} +133 -135
  94. package/dist/{toExcel-84VTtSA7.js → toExcel--vNjpF-b.js} +2 -2
  95. package/dist/{unit-B4zscxzo.js → unit-C4ghZU8x.js} +23 -24
  96. package/package.json +5 -5
  97. package/dist/assets/linked-status-eQqjvOq_.js +0 -24
  98. package/dist/assets/override-menu-C8NTBJgN.js +0 -24
  99. package/dist/assets/validate-menu-Dn-OO7Ed.js +0 -24
  100. package/dist/currency-BPHwez-E.js +0 -7
  101. package/dist/menu-CsIzrBEr.js +0 -74044
@@ -1,15 +1,14 @@
1
- import { defineStore as W } from "pinia";
2
- import { defineComponent as T, computed as U, ref as h, watch as L, resolveComponent as V, createBlock as J, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as A, toDisplayString as M, unref as l, Fragment as q, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
- import { a5 as B, a6 as te, a3 as P, D as k, M as $, A as j, z as E, G as ne, a4 as ae, H as C, B as D, u as oe } from "./menu-CsIzrBEr.js";
4
- import { useI18n as N } from "@feedmepos/mf-common";
5
- import { useSnackbar as I, components as le, useDialog as ue, FmButtonVariant as ie } from "@feedmepos/ui-library";
1
+ import { defineStore as J } from "pinia";
2
+ import { defineComponent as O, computed as U, ref as h, watch as T, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as A, toDisplayString as M, unref as l, Fragment as q, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
+ import { a7 as B, a8 as te, a5 as P, H as k, O as $, D as I, B as E, I as ne, a6 as ae, J as C, G as D, u as oe } from "./menu-Btcr0nsk.js";
4
+ import { useI18n as L } from "@feedmepos/mf-common";
5
+ import { useSnackbar as j, components as le, useDialog as ue, FmButtonVariant as ie } from "@feedmepos/ui-library";
6
6
  import { u as se } from "./discardConfirm-BHni0LNu.js";
7
- import "@feedmepos/core/entity";
8
7
  import { c as re } from "./check-C9mY6LiX.js";
9
8
  import "./vuedraggable-CK8z7qA8.js";
10
9
  /* empty css */
11
10
  import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
12
- const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
11
+ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
13
12
  __name: "NumberPrecisionInput",
14
13
  props: {
15
14
  modelValue: {},
@@ -22,7 +21,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
22
21
  emits: ["update:modelValue"],
23
22
  setup(y, { emit: g }) {
24
23
  const t = y, n = g, c = U(() => B(t.step ?? 1).precision), d = h(t.modelValue.toString());
25
- L([() => d.value], ([e]) => {
24
+ T([() => d.value], ([e]) => {
26
25
  e === "-" || e === "." ? n("update:modelValue", 0) : n("update:modelValue", +e);
27
26
  });
28
27
  const b = (e) => {
@@ -39,7 +38,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
39
38
  };
40
39
  return (e, i) => {
41
40
  const o = V("FmField"), a = V("FmFormGroup");
42
- return F(), J(a, {
41
+ return F(), W(a, {
43
42
  disabled: e.disabled,
44
43
  modelValue: e.modelValue,
45
44
  rules: e.rules,
@@ -69,7 +68,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
69
68
  }, 8, ["disabled", "modelValue", "rules", "helper-text", "label"]);
70
69
  };
71
70
  }
72
- }), pe = { class: "flex flex-col gap-8" }, ve = { class: "flex justify-between" }, fe = { class: "col q-mb-sm t-body-bold" }, be = { class: "flex flex-row gap-8" }, _e = { class: "q-mt-xs q-pl-sm t-system text-fsecondary" }, Ve = /* @__PURE__ */ T({
71
+ }), pe = { class: "flex flex-col gap-8" }, ve = { class: "flex justify-between" }, fe = { class: "col q-mb-sm t-body-bold" }, be = { class: "flex flex-row gap-8" }, _e = { class: "q-mt-xs q-pl-sm t-system text-fsecondary" }, Ve = /* @__PURE__ */ O({
73
72
  __name: "UnitMeasurement",
74
73
  props: {
75
74
  title: {
@@ -91,7 +90,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
91
90
  },
92
91
  emits: ["update:model-value", "delete"],
93
92
  setup(y, { emit: g }) {
94
- const { t } = N(), n = y, c = U(() => te(n.modelValue.conversion)), d = U(() => t("menu.unit.measurement.preview", {
93
+ const { t } = L(), n = y, c = U(() => te(n.modelValue.conversion)), d = U(() => t("menu.unit.measurement.preview", {
95
94
  name: n.modelValue.name,
96
95
  value: c.value,
97
96
  unit: n.unitName
@@ -104,7 +103,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
104
103
  p[o] = a, i("update:model-value", p);
105
104
  }
106
105
  const i = g;
107
- return L(
106
+ return T(
108
107
  () => n.precision,
109
108
  () => b(c.value)
110
109
  ), (o, a) => {
@@ -150,13 +149,13 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
150
149
  ]);
151
150
  };
152
151
  }
153
- }), ye = { class: "fm-typo-en-title-md-600" }, ge = { class: "pt-8 space-y-40" }, Fe = { class: "flex flex-row gap-16" }, we = { class: "flex gap-8 items-center justify-start" }, Ue = /* @__PURE__ */ T({
152
+ }), ye = { class: "fm-typo-en-title-md-600" }, ge = { class: "pt-8 space-y-40" }, Fe = { class: "flex flex-row gap-16" }, we = { class: "flex gap-8 items-center justify-start" }, Ue = /* @__PURE__ */ O({
154
153
  __name: "Form",
155
154
  props: {
156
155
  initialValue: {}
157
156
  },
158
157
  setup(y, { expose: g }) {
159
- const { t } = N(), n = y, c = $(j(I())), d = U(() => n.initialValue ? t("menu.unit.update") : t("menu.unit.add")), b = U(
158
+ const { t } = L(), n = y, c = $(I(j())), d = U(() => n.initialValue ? t("menu.unit.update") : t("menu.unit.add")), b = U(
160
159
  () => n.initialValue ? t("menu.common.actions.update") : t("menu.common.actions.add")
161
160
  ), e = h(n.initialValue ? k(n.initialValue) : E.generator.initUnit()), i = h(!1), o = h(!1), a = (u) => {
162
161
  re.isBoolean(u) ? o.value = u : o.value = !o.value;
@@ -206,7 +205,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
206
205
  i.value = !1;
207
206
  }
208
207
  };
209
- return L(
208
+ return T(
210
209
  () => o.value,
211
210
  (u) => {
212
211
  u && (e.value = n.initialValue ? k(n.initialValue) : E.generator.initUnit());
@@ -215,7 +214,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
215
214
  show: o,
216
215
  trigger: a
217
216
  }), (u, v) => {
218
- const O = V("FmTextField"), z = V("FmStepperField"), R = V("FmButton"), S = V("fm-button"), G = V("fm-side-sheet");
217
+ const N = V("FmTextField"), R = V("FmStepperField"), z = V("FmButton"), S = V("fm-button"), G = V("fm-side-sheet");
219
218
  return F(), A(q, null, [
220
219
  X(u.$slots, "default", { trigger: a }),
221
220
  m(G, {
@@ -253,7 +252,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
253
252
  default: w(() => [
254
253
  f("div", ge, [
255
254
  f("div", Fe, [
256
- m(O, {
255
+ m(N, {
257
256
  class: "flex-2",
258
257
  label: l(t)("menu.unit.columns.name"),
259
258
  modelValue: e.value.name,
@@ -264,7 +263,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
264
263
  })
265
264
  ]
266
265
  }, null, 8, ["label", "modelValue", "rules"]),
267
- m(O, {
266
+ m(N, {
268
267
  class: "flex-1",
269
268
  label: l(t)("menu.unit.columns.symbol"),
270
269
  modelValue: e.value.abbrev,
@@ -277,7 +276,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
277
276
  }, null, 8, ["label", "modelValue", "rules"])
278
277
  ]),
279
278
  f("div", null, [
280
- m(z, {
279
+ m(R, {
281
280
  modelValue: e.value.precision,
282
281
  "onUpdate:modelValue": [
283
282
  v[2] || (v[2] = (r) => e.value.precision = r),
@@ -290,7 +289,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
290
289
  max: 5
291
290
  }, null, 8, ["modelValue", "label", "placeholder"])
292
291
  ]),
293
- m(R, {
292
+ m(z, {
294
293
  label: l(t)("menu.unit.measurement.add"),
295
294
  variant: "secondary",
296
295
  onClick: _
@@ -314,10 +313,10 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
314
313
  ], 64);
315
314
  };
316
315
  }
317
- }), xe = Ue, Se = W("unit-manager", () => {
318
- const y = ue(), g = I(), t = j(g), n = $(t);
316
+ }), xe = Ue, Ne = J("unit-manager", () => {
317
+ const y = ue(), g = j(), t = I(g), n = $(t);
319
318
  oe();
320
- const c = ee(), { t: d } = N(), b = (a) => {
319
+ const c = ee(), { t: d } = L(), b = (a) => {
321
320
  var _, s;
322
321
  const { vNode: p } = me(
323
322
  xe,
@@ -367,5 +366,5 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
367
366
  });
368
367
  export {
369
368
  xe as U,
370
- Se as u
369
+ Ne as u
371
370
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.31.31-beta.1",
3
+ "version": "0.31.31-prod",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -16,12 +16,12 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@feedmepos/auth": "^1.1.14",
19
- "@feedmepos/core": "2.14.32",
19
+ "@feedmepos/core": "2.14.36",
20
20
  "@feedmepos/core-dart": "^0.2.6",
21
- "@feedmepos/core-legacy": "file:../../core-legacy-0.8.tar.gz",
21
+ "@feedmepos/core-legacy": "file:../../core-legacy-1.1.tar.gz",
22
22
  "@feedmepos/custom-attributes": "0.0.0-rc.6",
23
23
  "@feedmepos/inventory-core": "^0.2.6",
24
- "@feedmepos/menu": "1.7.3",
24
+ "@feedmepos/menu": "1.7.8",
25
25
  "@feedmepos/mf-inventory-portal": "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz",
26
26
  "@feedmepos/remy-vue-client": "0.1.3-beta.8",
27
27
  "@feedmepos/ui-library": "1.7.0",
@@ -53,7 +53,7 @@
53
53
  "vue3-lottie": "^3.3.0",
54
54
  "vuedraggable": "^4.1.0",
55
55
  "xlsx": "^0.18.5",
56
- "@feedmepos/mf-common": "^1.26.14"
56
+ "@feedmepos/mf-common": "^1.26.17"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@rollup/plugin-commonjs": "^28.0.2",