@feedmepos/mf-menu 0.31.30-beta.1 → 0.31.31-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 (62) hide show
  1. package/dist/{App-CrQBq4gc.js → App-1TX8v7ZA.js} +10 -8
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-D00UOSsK.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CR7QrFUG.js} +12 -12
  3. package/dist/{Catalog-D4m8x_f2.js → Catalog-DWClc58s.js} +75 -74
  4. package/dist/{Category-sQll5ITQ.js → Category-BqKFvFam.js} +60 -60
  5. package/dist/{Category-Ql1kDDH-.js → Category-IYMtMoT-.js} +28 -28
  6. package/dist/{CookingGuide-CSutufcu.js → CookingGuide-BayJ6zj4.js} +103 -101
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BqhYFXNG.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-Ceq86b3d.js} +1 -1
  8. package/dist/{Group-CnBE6CiB.js → Group-LqSX7ue6.js} +1 -1
  9. package/dist/{Group-YqVh5hC0.js → Group-RujTPTns.js} +3 -3
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-D9TSH4sS.js → Group.vue_vue_type_script_setup_true_lang-Dj9ZmkYe.js} +138 -137
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CqriuXVC.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D5GWkh3G.js} +16 -16
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-CaIU0RsG.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-C4IrA3es.js} +4616 -4610
  13. package/dist/{Ingredient-MhLxJzAU.js → Ingredient-_tc8llr1.js} +65 -64
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CIbExsMI.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DLFDf-VZ.js} +14 -12
  15. package/dist/{LinkProductSideSheet-D7vYZbFy.js → LinkProductSideSheet-C6rF-G1v.js} +14 -12
  16. package/dist/{MenuSetting-n0me5wY8.js → MenuSetting-xDHeeROY.js} +27 -26
  17. package/dist/{PrintRoute-CudZZYbe.js → PrintRoute-B_TFMn5e.js} +17 -15
  18. package/dist/{Product-DPZQgWET.js → Product-DdEEqrtc.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-CdaeZy_o.js → Product.vue_vue_type_script_setup_true_lang-zcistmwh.js} +257 -256
  20. package/dist/{ProductInternalTools-DgANHliV.js → ProductInternalTools-BcC7BF6W.js} +45 -45
  21. package/dist/{Products-Ez4R3jKW.js → Products-Cu0cJshV.js} +74 -72
  22. package/dist/{Publish-B4DEPe1I.js → Publish-Bm3Xiks1.js} +34 -32
  23. package/dist/{Recipe-Cripr-gY.js → Recipe-DWK-luIZ.js} +65 -63
  24. package/dist/{Scheduler-C-OV9d7d.js → Scheduler-Cb1TeBhW.js} +19 -19
  25. package/dist/{ServingSequence-DAumDXP1.js → ServingSequence-evSIET_8.js} +34 -34
  26. package/dist/{Setting-ByaHpIAN.js → Setting-Cn3kwC9F.js} +54 -53
  27. package/dist/{Subcategory-ro2aGt2H.js → Subcategory-q4m4qHsU.js} +34 -34
  28. package/dist/{Takeaway-CJb0ayDC.js → Takeaway-ClepHYGu.js} +14 -14
  29. package/dist/{Takeaway-AEg_0gKg.js → Takeaway-D-rdUZuh.js} +1 -1
  30. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-Cjj4bxoL.js → Takeaway.vue_vue_type_script_setup_true_lang-y9Yxstu2.js} +41 -40
  31. package/dist/{TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Drf4n4rj.js → TreeEditorOpenner.vue_vue_type_script_setup_true_lang-BSeLfoOA.js} +1108 -1106
  32. package/dist/{Unit-1wzUBplb.js → Unit-IM8Naj82.js} +12 -12
  33. package/dist/{Variant-Dnz2v5u0.js → Variant-fzGvwaMo.js} +16 -16
  34. package/dist/{_id_-C3rBZ6zL.js → _id_-BsKNG9Qv.js} +22 -22
  35. package/dist/{app-sDPxNF11.js → app-BzQRUMTK.js} +3 -3
  36. package/dist/{app-CLY6CoaV.js → app-CoVUUCa_.js} +24 -24
  37. package/dist/app.js +1 -1
  38. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  39. package/dist/assets/{linked-status-BZ4FSJ_Z.js → linked-status-eQqjvOq_.js} +2 -2
  40. package/dist/assets/{override-menu-C-fWJdVd.js → override-menu-C8NTBJgN.js} +2 -2
  41. package/dist/assets/{validate-menu-BDEM_Odz.js → validate-menu-Dn-OO7Ed.js} +2 -2
  42. package/dist/{catalog-bkFntZNz.js → catalog-CaXceaA2.js} +1 -1
  43. package/dist/{catalogSetting-zrKwGJ_C.js → catalogSetting-BGvckFdh.js} +1 -1
  44. package/dist/{category-BuPYaEsy.js → category-u5eo_Vjd.js} +5 -3
  45. package/dist/currency-BPHwez-E.js +7 -0
  46. package/dist/{dayjs.min-CR2NIyKn.js → dayjs.min-Bsr3tJCn.js} +1 -1
  47. package/dist/{index-BNORpjos.js → index-Bbx4iZ6n.js} +27 -27
  48. package/dist/{index-Dp_vLFQp.js → index-DSAG0yWh.js} +22 -20
  49. package/dist/{index-D20u0bCl.js → index-tRQb7RN_.js} +1 -1
  50. package/dist/{item-D4DcBt7N.js → item-BAqzKh4O.js} +801 -799
  51. package/dist/{jszip.min-CRJ61J9H.js → jszip.min-BKJtvCjM.js} +353 -353
  52. package/dist/{menu-Dw-Hpy07.js → menu-CDrsBjmr.js} +11 -9
  53. package/dist/menu-CsIzrBEr.js +74044 -0
  54. package/dist/packages/shared/src/permission/posPermission.d.ts +6 -0
  55. package/dist/{priceTier-EDLTGEjz.js → priceTier-DfbHonGe.js} +4 -4
  56. package/dist/{scheduler-CpPn2BlK.js → scheduler-DTWaBudB.js} +13 -11
  57. package/dist/{subcategory-B_W6vbM8.js → subcategory-D-R5r1Tr.js} +86 -84
  58. package/dist/{toExcel-D02OlDJu.js → toExcel-84VTtSA7.js} +2 -2
  59. package/dist/{unit-fro9wz1K.js → unit-B4zscxzo.js} +24 -23
  60. package/package.json +1 -1
  61. package/dist/currency-BISImIgX.js +0 -7
  62. package/dist/menu-ibc-yXVt.js +0 -107745
@@ -1,14 +1,15 @@
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-ibc-yXVt.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";
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";
6
6
  import { u as se } from "./discardConfirm-BHni0LNu.js";
7
+ import "@feedmepos/core/entity";
7
8
  import { c as re } from "./check-C9mY6LiX.js";
8
9
  import "./vuedraggable-CK8z7qA8.js";
9
10
  /* empty css */
10
11
  import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
11
- const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
12
+ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
12
13
  __name: "NumberPrecisionInput",
13
14
  props: {
14
15
  modelValue: {},
@@ -21,7 +22,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
21
22
  emits: ["update:modelValue"],
22
23
  setup(y, { emit: g }) {
23
24
  const t = y, n = g, c = U(() => B(t.step ?? 1).precision), d = h(t.modelValue.toString());
24
- T([() => d.value], ([e]) => {
25
+ L([() => d.value], ([e]) => {
25
26
  e === "-" || e === "." ? n("update:modelValue", 0) : n("update:modelValue", +e);
26
27
  });
27
28
  const b = (e) => {
@@ -38,7 +39,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
38
39
  };
39
40
  return (e, i) => {
40
41
  const o = V("FmField"), a = V("FmFormGroup");
41
- return F(), W(a, {
42
+ return F(), J(a, {
42
43
  disabled: e.disabled,
43
44
  modelValue: e.modelValue,
44
45
  rules: e.rules,
@@ -68,7 +69,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
68
69
  }, 8, ["disabled", "modelValue", "rules", "helper-text", "label"]);
69
70
  };
70
71
  }
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
+ }), 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({
72
73
  __name: "UnitMeasurement",
73
74
  props: {
74
75
  title: {
@@ -90,7 +91,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
90
91
  },
91
92
  emits: ["update:model-value", "delete"],
92
93
  setup(y, { emit: g }) {
93
- const { t } = L(), n = y, c = U(() => te(n.modelValue.conversion)), d = U(() => t("menu.unit.measurement.preview", {
94
+ const { t } = N(), n = y, c = U(() => te(n.modelValue.conversion)), d = U(() => t("menu.unit.measurement.preview", {
94
95
  name: n.modelValue.name,
95
96
  value: c.value,
96
97
  unit: n.unitName
@@ -103,7 +104,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
103
104
  p[o] = a, i("update:model-value", p);
104
105
  }
105
106
  const i = g;
106
- return T(
107
+ return L(
107
108
  () => n.precision,
108
109
  () => b(c.value)
109
110
  ), (o, a) => {
@@ -149,13 +150,13 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
149
150
  ]);
150
151
  };
151
152
  }
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
+ }), 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({
153
154
  __name: "Form",
154
155
  props: {
155
156
  initialValue: {}
156
157
  },
157
158
  setup(y, { expose: g }) {
158
- const { t } = L(), n = y, c = $(I(j())), d = U(() => n.initialValue ? t("menu.unit.update") : t("menu.unit.add")), b = U(
159
+ const { t } = N(), n = y, c = $(j(I())), d = U(() => n.initialValue ? t("menu.unit.update") : t("menu.unit.add")), b = U(
159
160
  () => n.initialValue ? t("menu.common.actions.update") : t("menu.common.actions.add")
160
161
  ), e = h(n.initialValue ? k(n.initialValue) : E.generator.initUnit()), i = h(!1), o = h(!1), a = (u) => {
161
162
  re.isBoolean(u) ? o.value = u : o.value = !o.value;
@@ -205,7 +206,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
205
206
  i.value = !1;
206
207
  }
207
208
  };
208
- return T(
209
+ return L(
209
210
  () => o.value,
210
211
  (u) => {
211
212
  u && (e.value = n.initialValue ? k(n.initialValue) : E.generator.initUnit());
@@ -214,7 +215,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
214
215
  show: o,
215
216
  trigger: a
216
217
  }), (u, v) => {
217
- const N = V("FmTextField"), R = V("FmStepperField"), z = V("FmButton"), S = V("fm-button"), G = V("fm-side-sheet");
218
+ const O = V("FmTextField"), z = V("FmStepperField"), R = V("FmButton"), S = V("fm-button"), G = V("fm-side-sheet");
218
219
  return F(), A(q, null, [
219
220
  X(u.$slots, "default", { trigger: a }),
220
221
  m(G, {
@@ -252,7 +253,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
252
253
  default: w(() => [
253
254
  f("div", ge, [
254
255
  f("div", Fe, [
255
- m(N, {
256
+ m(O, {
256
257
  class: "flex-2",
257
258
  label: l(t)("menu.unit.columns.name"),
258
259
  modelValue: e.value.name,
@@ -263,7 +264,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
263
264
  })
264
265
  ]
265
266
  }, null, 8, ["label", "modelValue", "rules"]),
266
- m(N, {
267
+ m(O, {
267
268
  class: "flex-1",
268
269
  label: l(t)("menu.unit.columns.symbol"),
269
270
  modelValue: e.value.abbrev,
@@ -276,7 +277,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
276
277
  }, null, 8, ["label", "modelValue", "rules"])
277
278
  ]),
278
279
  f("div", null, [
279
- m(R, {
280
+ m(z, {
280
281
  modelValue: e.value.precision,
281
282
  "onUpdate:modelValue": [
282
283
  v[2] || (v[2] = (r) => e.value.precision = r),
@@ -289,7 +290,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
289
290
  max: 5
290
291
  }, null, 8, ["modelValue", "label", "placeholder"])
291
292
  ]),
292
- m(z, {
293
+ m(R, {
293
294
  label: l(t)("menu.unit.measurement.add"),
294
295
  variant: "secondary",
295
296
  onClick: _
@@ -313,10 +314,10 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
313
314
  ], 64);
314
315
  };
315
316
  }
316
- }), xe = Ue, Ne = J("unit-manager", () => {
317
- const y = ue(), g = j(), t = I(g), n = $(t);
317
+ }), xe = Ue, Se = W("unit-manager", () => {
318
+ const y = ue(), g = I(), t = j(g), n = $(t);
318
319
  oe();
319
- const c = ee(), { t: d } = L(), b = (a) => {
320
+ const c = ee(), { t: d } = N(), b = (a) => {
320
321
  var _, s;
321
322
  const { vNode: p } = me(
322
323
  xe,
@@ -366,5 +367,5 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
366
367
  });
367
368
  export {
368
369
  xe as U,
369
- Ne as u
370
+ Se as u
370
371
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.31.30-beta.1",
3
+ "version": "0.31.31-beta.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -1,7 +0,0 @@
1
- import { A as e } from "./menu-ibc-yXVt.js";
2
- function n(r, o = !0) {
3
- return e.Dinero.fromFdoDinero(r).toFormat(o).replaceAll(" ", "");
4
- }
5
- export {
6
- n as f
7
- };