@feedmepos/mf-menu 0.31.16-beta.1 → 0.31.17-beta.1

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 (70) hide show
  1. package/dist/{App-Bsppf5CN.js → App-BUjwToat.js} +5 -5
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-DTuPAGEJ.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CBPOCkmg.js} +2 -2
  3. package/dist/{Catalog-Bj3MNcLG.js → Catalog-BkfsckOV.js} +18 -18
  4. package/dist/{Category-CHvG2e6b.js → Category-C7EPAK0G.js} +36 -36
  5. package/dist/{Category-WLIH1Zyc.js → Category-DTKlxBpE.js} +24 -24
  6. package/dist/{CookingGuide-C8N45xnL.js → CookingGuide-DCazfCuz.js} +56 -56
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-GriZxAIw.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-2hApsFMq.js} +1 -1
  8. package/dist/{Group-CR3LWKXE.js → Group-DLjkPLk9.js} +1 -1
  9. package/dist/{Group-Byj3qEBv.js → Group-DNBFvwk-.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-tecpeqJT.js → Group.vue_vue_type_script_setup_true_lang-8Upt5al2.js} +54 -54
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BkLHDcZV.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BIWySrgb.js} +6 -6
  12. package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-YOzhk0a0.js +96257 -0
  13. package/dist/{Ingredient-BCfCDCFS.js → Ingredient-BUIIhzYV.js} +52 -52
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CpXnjduY.js → InventoryBinding.vue_vue_type_script_setup_true_lang-nqY-pxrW.js} +1052 -1052
  15. package/dist/{LinkProductSideSheet-BGlLnnm9.js → LinkProductSideSheet-xIuPAwp7.js} +14 -14
  16. package/dist/{MenuSetting-CdKhTxyc.js → MenuSetting-C3J66nHM.js} +11 -11
  17. package/dist/{PrintRoute-B-UlUlSD.js → PrintRoute-DnZrJ9IW.js} +26 -26
  18. package/dist/{Product-BggNPOwm.js → Product-jBcyCvO7.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DPOaafZ-.js → Product.vue_vue_type_script_setup_true_lang-CsaY9Kve.js} +113 -113
  20. package/dist/ProductInternalTools-CUZSrxvR.js +415 -0
  21. package/dist/Products-CRFXG-Du.js +270 -0
  22. package/dist/{Publish-BTPdN1Ub.js → Publish-Ch5QlJ9v.js} +37 -37
  23. package/dist/{Recipe-CibJRxHH.js → Recipe-BZJUndG3.js} +25 -25
  24. package/dist/{Scheduler-DAShXnol.js → Scheduler-BgMTPzhG.js} +13 -13
  25. package/dist/{ServingSequence-DFs7VR5V.js → ServingSequence-BISPWfTD.js} +36 -36
  26. package/dist/{Setting-aApApOKZ.js → Setting-4L-p0np0.js} +24 -24
  27. package/dist/{Subcategory-CGnGq5Kd.js → Subcategory-CptCl4cb.js} +39 -39
  28. package/dist/{Takeaway-rJDqoozq.js → Takeaway-BAM3XfIf.js} +1 -1
  29. package/dist/{Takeaway-C8M-Z4eK.js → Takeaway-DqiGDTfg.js} +12 -12
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CrFeCwvr.js → Takeaway.vue_vue_type_script_setup_true_lang-oZo0esEd.js} +25 -25
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-CCVSPoDB.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-C7QOuqzZ.js} +115 -115
  32. package/dist/{Unit-CcWjE73k.js → Unit-BYAvg037.js} +8 -8
  33. package/dist/{Variant-BDPjFaAa.js → Variant-uGUG4vH2.js} +18 -18
  34. package/dist/{_id_-mUBoDBKS.js → _id_-Uf140OcM.js} +19 -19
  35. package/dist/{app-BBoQR7rs.js → app-50bXo6rU.js} +262 -247
  36. package/dist/{app-sdhJyRKX.js → app-CUuWtEOn.js} +1 -1
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/src/app.d.ts +12 -0
  39. package/dist/apps/mf-menu/src/components/import/PreviewAddonContent.vue.d.ts +1618 -0
  40. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUpdatePreview.vue.d.ts +33 -0
  41. package/dist/apps/mf-menu/src/components/productInternalTools/ImageUploadDialog.vue.d.ts +28 -0
  42. package/dist/apps/mf-menu/src/helper/import-export.d.ts +15 -19
  43. package/dist/apps/mf-menu/src/utils/batchProcessor.d.ts +33 -0
  44. package/dist/apps/mf-menu/src/utils/images.d.ts +44 -0
  45. package/dist/apps/mf-menu/src/views/Product/ProductInternalTools.vue.d.ts +2 -0
  46. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  47. package/dist/assets/{linked-status-BkX3Y-ws.js → linked-status-Dsak7omL.js} +2 -2
  48. package/dist/assets/{override-menu-Bo0ZNZ-U.js → override-menu-COqLF5sS.js} +2 -2
  49. package/dist/assets/{validate-menu-CIWz9YXT.js → validate-menu-DkLBw23v.js} +2 -2
  50. package/dist/{catalog-BbukcamZ.js → catalog-x_NpHc5w.js} +1 -1
  51. package/dist/{catalogSetting-7ZMZjqGs.js → catalogSetting-DU_dUoSh.js} +1 -1
  52. package/dist/{category-Cq2MmCBq.js → category-DJRGfRhf.js} +1 -1
  53. package/dist/{currency-OQd6moI9.js → currency-ljvNxerM.js} +1 -1
  54. package/dist/{dayjs.min-m51FMJgI.js → dayjs.min-DsjutQjn.js} +1 -1
  55. package/dist/{index-b9FcXU4s.js → index-Bb7-YO3o.js} +23 -23
  56. package/dist/{index-DlTid7hh.js → index-C58VTE70.js} +14 -14
  57. package/dist/{index-B5uSVMTf.js → index-CBnsZeF8.js} +1 -1
  58. package/dist/{item-96CGb3Kx.js → item-Cerfyitf.js} +1521 -1485
  59. package/dist/jszip.min-Co4cqzOU.js +2393 -0
  60. package/dist/{menu-Bqiz6B2P.js → menu-B7KFi80A.js} +154 -154
  61. package/dist/{menu-BmBsIlGC.js → menu-Bpul41jT.js} +1 -1
  62. package/dist/mf-menu.css +1 -1
  63. package/dist/{priceTier-Ck8MqQWD.js → priceTier-CfW69h1F.js} +1 -1
  64. package/dist/{scheduler-DeOCwKnf.js → scheduler-DsO3qpTw.js} +3 -3
  65. package/dist/{subcategory-DbiQCCF5.js → subcategory-Cb_rqtHz.js} +84 -84
  66. package/dist/{toExcel-BsguLQA5.js → toExcel-P9X-WSN5.js} +15 -15
  67. package/dist/{unit-CnM6N-39.js → unit-Dej_sihQ.js} +24 -24
  68. package/package.json +3 -2
  69. package/dist/ImportProductDialog.vue_vue_type_script_setup_true_lang-BRlU0arf.js +0 -73010
  70. package/dist/Products-DZFgAKxB.js +0 -2660
@@ -1,14 +1,14 @@
1
- import { defineStore as Q } from "pinia";
2
- import { defineComponent as T, computed as U, ref as h, watch as L, resolveComponent as V, createBlock as W, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as H, 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 { a6 as P, a7 as te, a4 as B, J as k, Q as $, G as I, A as E, K as ne, a5 as ae, M as C, I as D, u as oe } from "./menu-Bqiz6B2P.js";
4
- import { useI18n as N } from "@feedmepos/mf-common";
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 { a6 as B, a7 as te, a4 as P, H as k, O as $, B as I, A as E, I as ne, a5 as ae, J as C, G as D, u as oe } from "./menu-B7KFi80A.js";
4
+ import { useI18n as L } from "@feedmepos/mf-common";
5
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
7
  import { c as re } from "./check-C9mY6LiX.js";
8
8
  import "./vuedraggable-CK8z7qA8.js";
9
9
  /* empty css */
10
10
  import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
11
- const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
11
+ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
12
12
  __name: "NumberPrecisionInput",
13
13
  props: {
14
14
  modelValue: {},
@@ -20,8 +20,8 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
20
20
  },
21
21
  emits: ["update:modelValue"],
22
22
  setup(y, { emit: g }) {
23
- const t = y, n = g, c = U(() => P(t.step ?? 1).precision), d = h(t.modelValue.toString());
24
- L([() => d.value], ([e]) => {
23
+ const t = y, n = g, c = U(() => B(t.step ?? 1).precision), d = h(t.modelValue.toString());
24
+ T([() => d.value], ([e]) => {
25
25
  e === "-" || e === "." ? n("update:modelValue", 0) : n("update:modelValue", +e);
26
26
  });
27
27
  const b = (e) => {
@@ -31,7 +31,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
31
31
  return;
32
32
  const i = e.currentTarget, o = +`${i.value}${e.key}`;
33
33
  if (isFinite(o)) {
34
- P(o).precision > c.value && e.preventDefault();
34
+ B(o).precision > c.value && e.preventDefault();
35
35
  return;
36
36
  }
37
37
  i.value.length === 0 && (e.key === "-" || e.key === ".") || e.preventDefault();
@@ -53,7 +53,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
53
53
  onInput: i[0] || (i[0] = (_) => d.value = _.target.value),
54
54
  onKeydown: b,
55
55
  inputmode: "numeric",
56
- class: H({
56
+ class: Q({
57
57
  "fm-text-field--input fm-typo-en-body-lg-400": !0,
58
58
  "text-fm-color-typo-primary": !e.disabled,
59
59
  "text-fm-color-typo-disabled": e.disabled
@@ -68,7 +68,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
68
68
  }, 8, ["disabled", "modelValue", "rules", "helper-text", "label"]);
69
69
  };
70
70
  }
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__ */ 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({
72
72
  __name: "UnitMeasurement",
73
73
  props: {
74
74
  title: {
@@ -90,20 +90,20 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
90
90
  },
91
91
  emits: ["update:model-value", "delete"],
92
92
  setup(y, { emit: g }) {
93
- 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", {
94
94
  name: n.modelValue.name,
95
95
  value: c.value,
96
96
  unit: n.unitName
97
97
  }));
98
98
  function b(o) {
99
- e("conversion", B(o, n.precision));
99
+ e("conversion", P(o, n.precision));
100
100
  }
101
101
  function e(o, a) {
102
102
  const p = k(n.modelValue);
103
103
  p[o] = a, i("update:model-value", p);
104
104
  }
105
105
  const i = g;
106
- return L(
106
+ return T(
107
107
  () => n.precision,
108
108
  () => b(c.value)
109
109
  ), (o, a) => {
@@ -149,13 +149,13 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
149
149
  ]);
150
150
  };
151
151
  }
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__ */ 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({
153
153
  __name: "Form",
154
154
  props: {
155
155
  initialValue: {}
156
156
  },
157
157
  setup(y, { expose: g }) {
158
- const { t } = N(), n = y, c = $(I(j())), 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(
159
159
  () => n.initialValue ? t("menu.common.actions.update") : t("menu.common.actions.add")
160
160
  ), e = h(n.initialValue ? k(n.initialValue) : E.generator.initUnit()), i = h(!1), o = h(!1), a = (u) => {
161
161
  re.isBoolean(u) ? o.value = u : o.value = !o.value;
@@ -171,7 +171,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
171
171
  id: (/* @__PURE__ */ new Date()).toISOString(),
172
172
  name: "",
173
173
  abbrev: "",
174
- conversion: B(0, e.value.precision)
174
+ conversion: P(0, e.value.precision)
175
175
  });
176
176
  }
177
177
  function s(u) {
@@ -205,7 +205,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
205
205
  i.value = !1;
206
206
  }
207
207
  };
208
- return L(
208
+ return T(
209
209
  () => o.value,
210
210
  (u) => {
211
211
  u && (e.value = n.initialValue ? k(n.initialValue) : E.generator.initUnit());
@@ -214,7 +214,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
214
214
  show: o,
215
215
  trigger: a
216
216
  }), (u, v) => {
217
- const O = V("FmTextField"), R = V("FmStepperField"), z = 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");
218
218
  return F(), A(q, null, [
219
219
  X(u.$slots, "default", { trigger: a }),
220
220
  m(G, {
@@ -252,7 +252,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
252
252
  default: w(() => [
253
253
  f("div", ge, [
254
254
  f("div", Fe, [
255
- m(O, {
255
+ m(N, {
256
256
  class: "flex-2",
257
257
  label: l(t)("menu.unit.columns.name"),
258
258
  modelValue: e.value.name,
@@ -263,7 +263,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
263
263
  })
264
264
  ]
265
265
  }, null, 8, ["label", "modelValue", "rules"]),
266
- m(O, {
266
+ m(N, {
267
267
  class: "flex-1",
268
268
  label: l(t)("menu.unit.columns.symbol"),
269
269
  modelValue: e.value.abbrev,
@@ -299,7 +299,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
299
299
  }, [
300
300
  m(Ve, {
301
301
  modelValue: e.value.measurements[x],
302
- "onUpdate:modelValue": (J) => e.value.measurements[x] = J,
302
+ "onUpdate:modelValue": (H) => e.value.measurements[x] = H,
303
303
  "unit-name": e.value.name,
304
304
  title: l(t)("menu.unit.measurement.title", { number: x + 1 }),
305
305
  precision: e.value.precision,
@@ -313,10 +313,10 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
313
313
  ], 64);
314
314
  };
315
315
  }
316
- }), xe = Ue, Oe = Q("unit-manager", () => {
316
+ }), xe = Ue, Ne = J("unit-manager", () => {
317
317
  const y = ue(), g = j(), t = I(g), n = $(t);
318
318
  oe();
319
- const c = ee(), { t: d } = N(), b = (a) => {
319
+ const c = ee(), { t: d } = L(), b = (a) => {
320
320
  var _, s;
321
321
  const { vNode: p } = me(
322
322
  xe,
@@ -366,5 +366,5 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
366
366
  });
367
367
  export {
368
368
  xe as U,
369
- Oe as u
369
+ Ne as u
370
370
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.31.16-beta.1",
3
+ "version": "0.31.17-beta.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -35,6 +35,7 @@
35
35
  "dayjs": "^1.11.12",
36
36
  "dinero.js": "^1.9.1",
37
37
  "dotenv-cli": "^7.4.2",
38
+ "exceljs": "^4.4.0",
38
39
  "file-saver": "^2.0.5",
39
40
  "firebase": "^10.12.4",
40
41
  "i18next": "^23.11.5",
@@ -51,7 +52,7 @@
51
52
  "vue3-lottie": "^3.3.0",
52
53
  "vuedraggable": "^4.1.0",
53
54
  "xlsx": "^0.18.5",
54
- "@feedmepos/mf-common": "^1.26.10"
55
+ "@feedmepos/mf-common": "^1.26.11"
55
56
  },
56
57
  "devDependencies": {
57
58
  "@rollup/plugin-commonjs": "^28.0.2",