@feedmepos/mf-menu 0.32.43-dev.1 → 0.32.44

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 (71) hide show
  1. package/dist/{App-CiqMdAvF.js → App-BXkiQoTM.js} +7 -7
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-CVs7MfmX.js → ApplyProduct.vue_vue_type_script_setup_true_lang-BoSL4dm7.js} +3 -3
  3. package/dist/{Catalog-KzftKfOt.js → Catalog-CLFVLyor.js} +44 -44
  4. package/dist/{Category-pNQdkIvn.js → Category-BdyouDU8.js} +24 -24
  5. package/dist/{Category-em6K5yk3.js → Category-CNuVHuI3.js} +25 -25
  6. package/dist/{CookingGuide-Bp9CvTAi.js → CookingGuide-Bed7bUt1.js} +105 -105
  7. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-BbsxEs6O.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-CZDL2xJC.js} +1 -1
  8. package/dist/{Group-mIwdwq58.js → Group-D4UTsIxI.js} +3 -3
  9. package/dist/{Group-eE_snSRq.js → Group-TUqCPmO3.js} +1 -1
  10. package/dist/{Group.vue_vue_type_script_setup_true_lang-C5l4ycJB.js → Group.vue_vue_type_script_setup_true_lang-BJPT8flL.js} +19 -19
  11. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-B4PznWDZ.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-D83liryu.js} +30 -30
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-eS8pMvVG.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CRIRinHB.js} +1651 -1652
  13. package/dist/{Ingredient-BNvYYdb5.js → Ingredient-CcxoeuDd.js} +20 -20
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CzQIddna.js → InventoryBinding.vue_vue_type_script_setup_true_lang-58tyxdVh.js} +2 -2
  15. package/dist/{LinkProductSideSheet-BQQtUuCr.js → LinkProductSideSheet-DazOkwkd.js} +45 -45
  16. package/dist/{MenuSetting-s9syqMsT.js → MenuSetting-B3oLll4C.js} +47 -47
  17. package/dist/{PrintRoute-BqMxtnus.js → PrintRoute-D878qPu8.js} +39 -39
  18. package/dist/{Product-CHhpb-2E.js → Product-DOC8y_mW.js} +1 -1
  19. package/dist/{Product.vue_vue_type_script_setup_true_lang-DHny0uGc.js → Product.vue_vue_type_script_setup_true_lang-tZyBhWYT.js} +140 -140
  20. package/dist/{ProductInternalTools-DEB8Xhnv.js → ProductInternalTools-9TgIc2bR.js} +66 -66
  21. package/dist/Products-DfUGnHmD.js +1568 -0
  22. package/dist/{Publish-tnJY6n8r.js → Publish-BktK_PKq.js} +29 -29
  23. package/dist/{Recipe-DDPXv3AU.js → Recipe-eA0xrGYk.js} +24 -24
  24. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-roEHTZnU.js → RuleView.vue_vue_type_script_setup_true_lang-t8M7z09s.js} +366 -366
  25. package/dist/{Scheduler-CMKwUkNN.js → Scheduler-CKSqPZLQ.js} +11 -11
  26. package/dist/{ServingSequence-NA0yeDMF.js → ServingSequence-Ea20baNj.js} +44 -44
  27. package/dist/{Setting-BRfi_hxY.js → Setting-u6lX_Dzg.js} +17 -17
  28. package/dist/{Subcategory-W9faZY7n.js → Subcategory-C6s7OMOb.js} +51 -51
  29. package/dist/{Takeaway-fijUedLA.js → Takeaway-B9kr-Nf4.js} +13 -13
  30. package/dist/{Takeaway-5DKxdpZ3.js → Takeaway-lWxS9oWe.js} +1 -1
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-BhiFnON_.js → Takeaway.vue_vue_type_script_setup_true_lang-oA0e9oI5.js} +54 -54
  32. package/dist/{Thumbnail.vue_vue_type_script_setup_true_lang-BUNPf1OD.js → Thumbnail.vue_vue_type_script_setup_true_lang-T40ChY7j.js} +27 -27
  33. package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-CcIGCUwk.js +194 -0
  34. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-B1e3d-uX.js +6130 -0
  35. package/dist/{Unit-582FVjPq.js → Unit-DkQlUg2l.js} +8 -8
  36. package/dist/{Variant-Cb02SmoL.js → Variant-BF5r2WLL.js} +25 -25
  37. package/dist/{_id_-BYU1xwzB.js → _id_-_oqk-OhC.js} +28 -28
  38. package/dist/app-CfCYl2pO.js +363 -0
  39. package/dist/{app-CcPyLfvj.js → app-DIYHNWEw.js} +1 -1
  40. package/dist/app.js +1 -1
  41. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/assets/{linked-status-C1DHqpkR.js → linked-status-AoXjo9FF.js} +5 -5
  43. package/dist/assets/{menu-export-Ci-MXpn1.js → menu-export-BHcaWhM3.js} +2 -2
  44. package/dist/assets/{override-menu-CajXgOdO.js → override-menu-B9xQcjuJ.js} +5 -5
  45. package/dist/assets/{validate-menu-DDPswAia.js → validate-menu-D-ezd4W8.js} +2 -2
  46. package/dist/{catalog-Bs3SNL7n.js → catalog-CvN9Wu8V.js} +1 -1
  47. package/dist/{catalogSetting-BN4d_FvT.js → catalogSetting-qS5Np22q.js} +1 -1
  48. package/dist/{currency-Cma3AX0v.js → currency-Nxod6uwl.js} +1 -1
  49. package/dist/dayjs.min-B1AjAGva.js +6 -0
  50. package/dist/index-C0Zw1cSS.js +545 -0
  51. package/dist/{index-3wsuY29D.js → index-Cq-czJjU.js} +31 -31
  52. package/dist/index-nKlYiotY.js +246 -0
  53. package/dist/{index.vue_vue_type_script_setup_true_lang-DotsunNI.js → index.vue_vue_type_script_setup_true_lang-YXKayPEp.js} +269 -244
  54. package/dist/{item-DOcT7NVT.js → item-CUZSonzT.js} +2587 -2587
  55. package/dist/{jszip.min-h2cXUF_-.js → jszip.min-BnkZQ6lD.js} +6 -7
  56. package/dist/{menu-CAmS3pcT.js → menu-BP_ArXCI.js} +1 -1
  57. package/dist/{menuV2-COwLB3e1.js → menuV2-BGEYgQ8-.js} +128 -128
  58. package/dist/{priceTier-DrrQcFCh.js → priceTier-B-Qa0xaO.js} +1 -1
  59. package/dist/{rules-DGRdKiV6.js → rules-Dchd_ilF.js} +12 -12
  60. package/dist/{scheduler-BpEV0N8K.js → scheduler-DN7ZGLk8.js} +29 -29
  61. package/dist/{toExcel-eN1zgiqN.js → toExcel-jHmkDqcm.js} +2 -2
  62. package/dist/{translation-BCZ1Ruvv.js → translation-Cdap0IVg.js} +21 -35
  63. package/dist/{unit-BAcozp9s.js → unit-DgL56pkI.js} +35 -35
  64. package/package.json +2 -2
  65. package/dist/Products-C7UtJMGZ.js +0 -307
  66. package/dist/RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-PFRwBb1c.js +0 -144
  67. package/dist/TranslationSideSheet.vue_vue_type_script_setup_true_lang-DZp38dX4.js +0 -196
  68. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DC4naR16.js +0 -5767
  69. package/dist/app-0m01R0SM.js +0 -2286
  70. package/dist/dayjs.min-D-HR3H5W.js +0 -7
  71. package/dist/index-DXY5zcNA.js +0 -545
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as d, ref as g, watch as _, resolveComponent as S, createBlock as T, openBlock as f, unref as y, computed as h } from "vue";
2
2
  import { useI18n as m } from "@feedmepos/mf-common";
3
3
  import { useDialogChild as w, useDialog as x, useSnackbar as C } from "@feedmepos/ui-library";
4
- import { u as k, B as M } from "./index.vue_vue_type_script_setup_true_lang-DotsunNI.js";
4
+ import { u as k, G as M } from "./index.vue_vue_type_script_setup_true_lang-YXKayPEp.js";
5
5
  const v = /* @__PURE__ */ d({
6
6
  __name: "AddPriceGroupDialog",
7
7
  setup(s) {
@@ -1,10 +1,10 @@
1
- import { defineComponent as O, watch as T, ref as V, computed as N, resolveComponent as g, createElementBlock as F, openBlock as A, Fragment as P, createVNode as f, unref as _, withCtx as b, createElementVNode as Y, renderList as I, toDisplayString as h } from "vue";
2
- import { J as v, y as E, u as q } from "./index.vue_vue_type_script_setup_true_lang-DotsunNI.js";
1
+ import { defineComponent as O, watch as T, ref as M, computed as N, resolveComponent as g, createElementBlock as A, openBlock as F, Fragment as P, createVNode as f, unref as _, withCtx as b, createElementVNode as Y, renderList as I, toDisplayString as h } from "vue";
2
+ import { M as v, A as E, u as q } from "./index.vue_vue_type_script_setup_true_lang-YXKayPEp.js";
3
3
  import { useI18n as S } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as L } from "@feedmepos/ui-library";
5
- import { u as k } from "./menuV2-COwLB3e1.js";
6
- import { _ as K } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-DZp38dX4.js";
7
- import { g as w } from "./translation-BCZ1Ruvv.js";
5
+ import { u as k } from "./menuV2-BGEYgQ8-.js";
6
+ import { _ as K } from "./TranslationSideSheet.vue_vue_type_script_setup_true_lang-CcIGCUwk.js";
7
+ import { g as w } from "./translation-Cdap0IVg.js";
8
8
  const R = { class: "py-12 px-16 space-y-4" }, D = /* @__PURE__ */ O({
9
9
  __name: "AddSubcategoryDialogContentComponent",
10
10
  props: {
@@ -18,7 +18,7 @@ const R = { class: "py-12 px-16 space-y-4" }, D = /* @__PURE__ */ O({
18
18
  n.value = l ?? "";
19
19
  }
20
20
  );
21
- const n = V(r.initialValue), u = V(!1), s = V(void 0), { emitData: M, emitAction: C } = L(), U = N(() => !!n.value), o = N(() => {
21
+ const n = M(r.initialValue), u = M(!1), s = M(void 0), { emitData: V, emitAction: C } = L(), U = N(() => !!n.value), o = N(() => {
22
22
  var y;
23
23
  const l = [], a = "en-US", x = (y = s.value) == null ? void 0 : y[a];
24
24
  return n.value && !x && l.push({
@@ -42,14 +42,14 @@ const R = { class: "py-12 px-16 space-y-4" }, D = /* @__PURE__ */ O({
42
42
  return T(
43
43
  [n, s],
44
44
  ([l, a]) => {
45
- M({ name: l, name_locale: a });
45
+ V({ name: l, name_locale: a });
46
46
  },
47
47
  {
48
48
  immediate: !0
49
49
  }
50
50
  ), (l, a) => {
51
51
  const x = g("fm-button"), y = g("FmTooltip"), d = g("fm-text-field"), c = g("FmForm");
52
- return A(), F(P, null, [
52
+ return F(), A(P, null, [
53
53
  f(c, {
54
54
  onValidationSuccess: a[2] || (a[2] = (i) => _(C)("primary"))
55
55
  }, {
@@ -70,7 +70,7 @@ const R = { class: "py-12 px-16 space-y-4" }, D = /* @__PURE__ */ O({
70
70
  }, {
71
71
  content: b(() => [
72
72
  Y("div", R, [
73
- (A(!0), F(P, null, I(o.value, (i) => (A(), F("div", {
73
+ (F(!0), A(P, null, I(o.value, (i) => (F(), A("div", {
74
74
  key: i.locale
75
75
  }, h(i.name) + " (" + h(i.localeDisplay) + ") ", 1))), 128))
76
76
  ])
@@ -110,7 +110,7 @@ const R = { class: "py-12 px-16 space-y-4" }, D = /* @__PURE__ */ O({
110
110
  }) => {
111
111
  const { t: n } = S(), u = k().updateMenu;
112
112
  function s() {
113
- const o = V(!1);
113
+ const o = M(!1);
114
114
  t.open({
115
115
  title: n("menu.subcategory.manager.dialog.add.title"),
116
116
  contentComponent: D,
@@ -142,7 +142,7 @@ const R = { class: "py-12 px-16 space-y-4" }, D = /* @__PURE__ */ O({
142
142
  }
143
143
  });
144
144
  }
145
- function M(o) {
145
+ function V(o) {
146
146
  t.open({
147
147
  title: n("menu.subcategory.manager.dialog.update.title"),
148
148
  contentComponent: D,
@@ -202,7 +202,7 @@ const R = { class: "py-12 px-16 space-y-4" }, D = /* @__PURE__ */ O({
202
202
  }
203
203
  return {
204
204
  create: s,
205
- update: M,
205
+ update: V,
206
206
  deleteSubcategory: C,
207
207
  rearrange: U
208
208
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent as ie, computed as Y, resolveComponent as _, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as F, unref as n, toDisplayString as A, createElementVNode as h, withCtx as v, Fragment as N, renderList as M, createBlock as I, ref as H, Transition as se, createTextVNode as me } from "vue";
2
- import { G as S, y as r, u as pe, H as ve, J as ue } from "./index.vue_vue_type_script_setup_true_lang-DotsunNI.js";
1
+ import { defineComponent as ie, computed as Y, resolveComponent as _, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as F, unref as n, toDisplayString as L, createElementVNode as h, withCtx as v, Fragment as N, renderList as M, createBlock as I, ref as H, Transition as se, createTextVNode as me } from "vue";
2
+ import { I as S, A as r, u as pe, J as ve, M as ue } from "./index.vue_vue_type_script_setup_true_lang-YXKayPEp.js";
3
3
  import { useI18n as de } from "@feedmepos/mf-common";
4
4
  import { components as _e } from "@feedmepos/ui-library";
5
5
  import { _ as fe } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
6
- import { _ as ne } from "./RuleView.vue_vue_type_script_setup_true_lang-roEHTZnU.js";
6
+ import { _ as ne } from "./RuleView.vue_vue_type_script_setup_true_lang-t8M7z09s.js";
7
7
  import { u as ye } from "./discardConfirm-BHni0LNu.js";
8
- import { u as he } from "./menu-CAmS3pcT.js";
9
- import { L as ge } from "./LinkProductSideSheet-BQQtUuCr.js";
8
+ import { u as he } from "./menu-BP_ArXCI.js";
9
+ import { L as ge } from "./LinkProductSideSheet-DazOkwkd.js";
10
10
  const Ve = { class: "space-y-8" }, Fe = {
11
11
  key: 0,
12
12
  class: "space-y-16"
@@ -19,8 +19,8 @@ const Ve = { class: "space-y-8" }, Fe = {
19
19
  modelValue: {}
20
20
  },
21
21
  emits: ["update:modelValue"],
22
- setup(V, { emit: j }) {
23
- const f = V, e = j, { categories: J } = he(), W = Y(() => J.value.map((s) => s.id === null ? { label: s.name, value: "" } : {
22
+ setup(V, { emit: G }) {
23
+ const f = V, e = G, { categories: J } = he(), W = Y(() => J.value.map((s) => s.id === null ? { label: s.name, value: "" } : {
24
24
  label: s.name,
25
25
  value: s.id
26
26
  })), X = (s) => {
@@ -62,9 +62,9 @@ const Ve = { class: "space-y-8" }, Fe = {
62
62
  "onUpdate:modelValue": X
63
63
  }, null, 8, ["model-value", "label", "sublabel"]),
64
64
  f.modelValue ? (u(), d("div", Fe, [
65
- (($ = f.modelValue) == null ? void 0 : $.length) === 0 ? (u(), d("div", ke, A(n(p)("menu.scheduler.dialog.sections.autolink.all_items")), 1)) : F("", !0),
65
+ (($ = f.modelValue) == null ? void 0 : $.length) === 0 ? (u(), d("div", ke, L(n(p)("menu.scheduler.dialog.sections.autolink.all_items")), 1)) : F("", !0),
66
66
  ((K = f.modelValue) == null ? void 0 : K.length) > 0 ? (u(), d("div", be, [
67
- h("div", null, A(n(p)("menu.scheduler.dialog.sections.autolink.filter_message")), 1),
67
+ h("div", null, L(n(p)("menu.scheduler.dialog.sections.autolink.filter_message")), 1),
68
68
  t(te, {
69
69
  content: n(p)("menu.scheduler.dialog.sections.autolink.tooltip"),
70
70
  variant: "plain",
@@ -88,7 +88,7 @@ const Ve = { class: "space-y-8" }, Fe = {
88
88
  items: Z,
89
89
  "onUpdate:modelValue": (b) => z(k, b)
90
90
  }, null, 8, ["model-value", "onUpdate:modelValue"]),
91
- h("div", null, A(n(p)("menu.scheduler.dialog.sections.filter.matches")), 1),
91
+ h("div", null, L(n(p)("menu.scheduler.dialog.sections.filter.matches")), 1),
92
92
  T.type === "category" ? (u(), I(B, {
93
93
  key: 0,
94
94
  "model-value": T.value,
@@ -101,7 +101,7 @@ const Ve = { class: "space-y-8" }, Fe = {
101
101
  class: "flex items-center gap-4",
102
102
  key: U
103
103
  }, [
104
- U > 0 ? (u(), d("div", Ue, A(n(p)("menu.scheduler.dialog.sections.filter.or")), 1)) : F("", !0),
104
+ U > 0 ? (u(), d("div", Ue, L(n(p)("menu.scheduler.dialog.sections.filter.or")), 1)) : F("", !0),
105
105
  h("div", xe, [
106
106
  t(q, {
107
107
  "model-value": b,
@@ -148,10 +148,10 @@ const Ve = { class: "space-y-8" }, Fe = {
148
148
  }, Pe = { class: "flex flex-wrap gap-8" }, Te = {
149
149
  key: 0,
150
150
  class: "pl-32 flex flex-col items-start gap-16"
151
- }, Le = { class: "w-full" }, Ae = {
151
+ }, Ae = { class: "w-full" }, Le = {
152
152
  key: 0,
153
153
  class: "mt-8"
154
- }, Ne = { class: "text-red-500 text-sm" }, Re = { class: "bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-gray-200" }, Ye = { class: "px-16 py-8 flex-1" }, Me = { class: "px-16 py-8" }, Oe = { class: "flex gap-8 items-center justify-start" }, je = /* @__PURE__ */ ie({
154
+ }, Ne = { class: "text-red-500 text-sm" }, Re = { class: "bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-gray-200" }, Ye = { class: "px-16 py-8 flex-1" }, Me = { class: "px-16 py-8" }, Oe = { class: "flex gap-8 items-center justify-start" }, Ge = /* @__PURE__ */ ie({
155
155
  __name: "SchedulerDialog",
156
156
  props: {
157
157
  categorizedItems: {
@@ -164,9 +164,9 @@ const Ve = { class: "space-y-8" }, Fe = {
164
164
  }
165
165
  },
166
166
  emits: ["onComplete"],
167
- setup(V, { expose: j, emit: f }) {
167
+ setup(V, { expose: G, emit: f }) {
168
168
  const { t: e } = de(), J = V;
169
- j({
169
+ G({
170
170
  show: le,
171
171
  hide: O
172
172
  });
@@ -226,9 +226,9 @@ const Ve = { class: "space-y-8" }, Fe = {
226
226
  if (i.length <= 1) return null;
227
227
  for (let l = 0; l < i.length; l++)
228
228
  for (let y = l + 1; y < i.length; y++) {
229
- const g = i[l], L = i[y], ae = w(g.start, g.end), G = w(L.start, L.end);
229
+ const g = i[l], A = i[y], ae = w(g.start, g.end), j = w(A.start, A.end);
230
230
  for (const x of ae)
231
- for (const oe of G)
231
+ for (const oe of j)
232
232
  if (te(x, oe))
233
233
  return e("menu.scheduler.dialog.sections.period.overlap");
234
234
  }
@@ -251,7 +251,7 @@ const Ve = { class: "space-y-8" }, Fe = {
251
251
  }
252
252
  const b = Y(() => J.categorizedItems.reduce((i, l) => {
253
253
  const y = l.items.filter(
254
- (g) => a.value.items.some(({ _id: L }) => g._id === L)
254
+ (g) => a.value.items.some(({ _id: A }) => g._id === A)
255
255
  );
256
256
  return y.length && i.push({ ...l, items: y }), i;
257
257
  }, [])), U = Y(() => C.value === "custom" && a.value.timePeriod.length > 0 ? B(a.value.timePeriod) : null), Q = ye(
@@ -261,7 +261,7 @@ const Ve = { class: "space-y-8" }, Fe = {
261
261
  }
262
262
  );
263
263
  return (i, l) => {
264
- const y = _("FmTextField"), g = _("FmRadio"), L = _("FmRadioGroup"), ae = _("FmCheckbox"), G = _("FmTimePicker"), x = _("FmButton"), oe = _("FmSpacer"), re = _("FmForm"), ce = _("FmSideSheet");
264
+ const y = _("FmTextField"), g = _("FmRadio"), A = _("FmRadioGroup"), ae = _("FmCheckbox"), j = _("FmTimePicker"), x = _("FmButton"), oe = _("FmSpacer"), re = _("FmForm"), ce = _("FmSideSheet");
265
265
  return u(), I(ce, {
266
266
  modelValue: D.value,
267
267
  "onUpdate:modelValue": l[7] || (l[7] = (o) => D.value = o),
@@ -322,7 +322,7 @@ const Ve = { class: "space-y-8" }, Fe = {
322
322
  }, {
323
323
  default: v(() => [
324
324
  h("div", null, [
325
- t(L, {
325
+ t(A, {
326
326
  modelValue: a.value.repeat,
327
327
  "onUpdate:modelValue": l[1] || (l[1] = (o) => a.value.repeat = o)
328
328
  }, {
@@ -356,7 +356,7 @@ const Ve = { class: "space-y-8" }, Fe = {
356
356
  })
357
357
  ]),
358
358
  h("div", null, [
359
- t(L, {
359
+ t(A, {
360
360
  label: n(e)("menu.scheduler.dialog.sections.period.title"),
361
361
  modelValue: C.value,
362
362
  "onUpdate:modelValue": l[3] || (l[3] = (o) => C.value = o)
@@ -376,18 +376,18 @@ const Ve = { class: "space-y-8" }, Fe = {
376
376
  t(se, { name: "expand" }, {
377
377
  default: v(() => [
378
378
  C.value === "custom" ? (u(), d("div", Te, [
379
- h("div", Le, [
379
+ h("div", Ae, [
380
380
  (u(!0), d(N, null, M(a.value.timePeriod, (o, E) => (u(), d("div", {
381
381
  key: E,
382
382
  class: "w-full flex gap-8 items-center"
383
383
  }, [
384
- t(G, {
384
+ t(j, {
385
385
  modelValue: o.start,
386
386
  "onUpdate:modelValue": (R) => o.start = R,
387
387
  class: "flex-1"
388
388
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
389
389
  l[8] || (l[8] = me(" - ")),
390
- t(G, {
390
+ t(j, {
391
391
  modelValue: o.end,
392
392
  "onUpdate:modelValue": (R) => o.end = R,
393
393
  class: "flex-1"
@@ -398,8 +398,8 @@ const Ve = { class: "space-y-8" }, Fe = {
398
398
  onClick: (R) => c(E)
399
399
  }, null, 8, ["onClick"])
400
400
  ]))), 128)),
401
- U.value ? (u(), d("div", Ae, [
402
- h("div", Ne, A(U.value), 1)
401
+ U.value ? (u(), d("div", Le, [
402
+ h("div", Ne, L(U.value), 1)
403
403
  ])) : F("", !0)
404
404
  ]),
405
405
  t(x, {
@@ -458,12 +458,12 @@ const Ve = { class: "space-y-8" }, Fe = {
458
458
  (u(!0), d(N, null, M(b.value, (o) => (u(), d("div", {
459
459
  key: o.id
460
460
  }, [
461
- h("div", Re, A(o.name), 1),
461
+ h("div", Re, L(o.name), 1),
462
462
  (u(!0), d(N, null, M(o.items, (E) => (u(), d("div", {
463
463
  key: E._id,
464
464
  class: "flex border-b border-b-gray-100 items-center"
465
465
  }, [
466
- h("div", Ye, A(E.name), 1),
466
+ h("div", Ye, L(E.name), 1),
467
467
  h("div", Me, [
468
468
  t(x, {
469
469
  icon: "delete",
@@ -508,7 +508,7 @@ function Xe(V) {
508
508
  };
509
509
  }
510
510
  export {
511
- je as _,
511
+ Ge as _,
512
512
  Je as c,
513
513
  Xe as d,
514
514
  We as u
@@ -1,5 +1,5 @@
1
- import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-eS8pMvVG.js";
2
- import "./index.vue_vue_type_script_setup_true_lang-DotsunNI.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CRIRinHB.js";
2
+ import "./index.vue_vue_type_script_setup_true_lang-YXKayPEp.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -1,20 +1,20 @@
1
- import { defineComponent as p, createElementBlock as u, openBlock as t, normalizeClass as f, unref as c, toDisplayString as y, resolveComponent as s, createVNode as b, createBlock as d } from "vue";
1
+ import { defineComponent as p, createElementBlock as u, openBlock as t, normalizeClass as f, unref as m, toDisplayString as y, resolveComponent as d, createVNode as b, createBlock as s } from "vue";
2
2
  const g = /* @__PURE__ */ p({
3
3
  __name: "TranslationBadge",
4
4
  props: {
5
5
  label: {},
6
6
  spacing: { default: "md" }
7
7
  },
8
- setup(l) {
9
- const a = l.spacing === "sm" ? "mb-4" : "mb-8";
10
- return (e, o) => (t(), u("p", {
8
+ setup(a) {
9
+ const l = a.spacing === "sm" ? "mb-4" : "mb-8";
10
+ return (e, n) => (t(), u("p", {
11
11
  class: f([
12
12
  "fm-typo-en-body-sm-600 text-fm-color-typo-secondary border inline-block rounded-full px-8 py-4",
13
- c(a)
13
+ m(l)
14
14
  ])
15
15
  }, y(e.label), 3));
16
16
  }
17
- }), h = /* @__PURE__ */ p({
17
+ }), V = /* @__PURE__ */ p({
18
18
  __name: "TranslationFieldSection",
19
19
  props: {
20
20
  label: {},
@@ -25,36 +25,34 @@ const g = /* @__PURE__ */ p({
25
25
  readonly: { type: Boolean, default: !1 }
26
26
  },
27
27
  emits: ["update:modelValue"],
28
- setup(l, { emit: n }) {
29
- const a = n;
30
- return (e, o) => {
31
- const m = s("FmTextField"), i = s("fm-textarea");
28
+ setup(a, { emit: o }) {
29
+ const l = o;
30
+ return (e, n) => {
31
+ const c = d("FmTextField"), i = d("fm-textarea");
32
32
  return t(), u("div", null, [
33
33
  b(g, {
34
34
  label: e.label,
35
35
  spacing: e.spacing
36
36
  }, null, 8, ["label", "spacing"]),
37
- e.type === "text" ? (t(), d(m, {
37
+ e.type === "text" ? (t(), s(c, {
38
38
  key: 0,
39
39
  "model-value": e.modelValue,
40
40
  placeholder: e.placeholder,
41
41
  readonly: e.readonly,
42
- "onUpdate:modelValue": o[0] || (o[0] = (r) => a("update:modelValue", r))
43
- }, null, 8, ["model-value", "placeholder", "readonly"])) : (t(), d(i, {
42
+ "onUpdate:modelValue": n[0] || (n[0] = (r) => l("update:modelValue", r))
43
+ }, null, 8, ["model-value", "placeholder", "readonly"])) : (t(), s(i, {
44
44
  key: 1,
45
45
  "model-value": e.modelValue,
46
46
  placeholder: e.placeholder,
47
47
  readonly: e.readonly,
48
- "onUpdate:modelValue": o[1] || (o[1] = (r) => a("update:modelValue", r))
48
+ "onUpdate:modelValue": n[1] || (n[1] = (r) => l("update:modelValue", r))
49
49
  }, null, 8, ["model-value", "placeholder", "readonly"]))
50
50
  ]);
51
51
  };
52
52
  }
53
53
  });
54
- function k(l) {
55
- var a;
56
- const n = ((a = l.split("-")[1]) == null ? void 0 : a.toLowerCase()) ?? "";
57
- switch (l) {
54
+ function k(a) {
55
+ switch (a) {
58
56
  case "en-US":
59
57
  return "EN";
60
58
  case "zh-CN":
@@ -65,28 +63,16 @@ function k(l) {
65
63
  return "JP";
66
64
  case "zh-Hant":
67
65
  return "繁";
68
- case "id-ID":
69
- return "ID";
70
- case "vi-VN":
71
- return "VN";
72
- case "ms-MY":
73
- return "MY";
74
- case "ph-PH":
75
- return "PH";
76
- case "ko-KR":
77
- return "KR";
78
- case "fr-MA":
79
- return "FR";
80
66
  default:
81
- return n;
67
+ return "";
82
68
  }
83
69
  }
84
- function v(l, n) {
85
- const a = c(n).find((e) => e.code === l);
86
- return (a == null ? void 0 : a.name) || l;
70
+ function v(a, o) {
71
+ const l = m(o).find((e) => e.code === a);
72
+ return (l == null ? void 0 : l.name) || a;
87
73
  }
88
74
  export {
89
- h as _,
75
+ V as _,
90
76
  v as a,
91
77
  g as b,
92
78
  k as g
@@ -1,16 +1,16 @@
1
- import { defineStore as J } from "pinia";
2
- import { defineComponent as O, computed as U, ref as h, watch as T, resolveComponent as y, 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 { a5 as B, a6 as te, a3 as P, G as k, O as $, B as j, A as E, a4 as ne, J as C, y as D, H as oe, u as ae } from "./index.vue_vue_type_script_setup_true_lang-DotsunNI.js";
4
- import { useI18n as L } 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 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 { a7 as P, a8 as te, a5 as B, I as k, Q as $, G as I, D as E, a6 as ne, M as C, A as D, J as oe, u as ae } from "./index.vue_vue_type_script_setup_true_lang-YXKayPEp.js";
4
+ import { useI18n as N } 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
7
  import { c as re } from "./check-C9mY6LiX.js";
8
8
  import "./vuedraggable-CK8z7qA8.js";
9
- import "./menuV2-COwLB3e1.js";
9
+ import "./menuV2-BGEYgQ8-.js";
10
10
  import "./app-5fxKLAzS.js";
11
11
  /* empty css */
12
12
  import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
13
- const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
13
+ const de = ["value", "disabled"], ce = /* @__PURE__ */ T({
14
14
  __name: "NumberPrecisionInput",
15
15
  props: {
16
16
  modelValue: {},
@@ -21,9 +21,9 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
21
21
  disabled: { type: Boolean }
22
22
  },
23
23
  emits: ["update:modelValue"],
24
- setup(V, { emit: g }) {
25
- const t = V, n = g, c = U(() => B(t.step ?? 1).precision), d = h(t.modelValue.toString());
26
- T([() => d.value], ([e]) => {
24
+ setup(y, { emit: g }) {
25
+ const t = y, n = g, c = U(() => P(t.step ?? 1).precision), d = h(t.modelValue.toString());
26
+ L([() => d.value], ([e]) => {
27
27
  e === "-" || e === "." ? n("update:modelValue", 0) : n("update:modelValue", +e);
28
28
  });
29
29
  const b = (e) => {
@@ -33,13 +33,13 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
33
33
  return;
34
34
  const i = e.currentTarget, a = +`${i.value}${e.key}`;
35
35
  if (isFinite(a)) {
36
- B(a).precision > c.value && e.preventDefault();
36
+ P(a).precision > c.value && e.preventDefault();
37
37
  return;
38
38
  }
39
39
  i.value.length === 0 && (e.key === "-" || e.key === ".") || e.preventDefault();
40
40
  };
41
41
  return (e, i) => {
42
- const a = y("FmField"), o = y("FmFormGroup");
42
+ const a = V("FmField"), o = V("FmFormGroup");
43
43
  return F(), W(o, {
44
44
  disabled: e.disabled,
45
45
  modelValue: e.modelValue,
@@ -55,7 +55,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
55
55
  onInput: i[0] || (i[0] = (_) => d.value = _.target.value),
56
56
  onKeydown: b,
57
57
  inputmode: "numeric",
58
- class: Q({
58
+ class: H({
59
59
  "fm-text-field--input fm-typo-en-body-lg-400": !0,
60
60
  "text-fm-color-typo-primary": !e.disabled,
61
61
  "text-fm-color-typo-disabled": e.disabled
@@ -70,7 +70,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
70
70
  }, 8, ["disabled", "modelValue", "rules", "helper-text", "label"]);
71
71
  };
72
72
  }
73
- }), 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" }, ye = /* @__PURE__ */ O({
73
+ }), 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({
74
74
  __name: "UnitMeasurement",
75
75
  props: {
76
76
  title: {
@@ -91,28 +91,28 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
91
91
  }
92
92
  },
93
93
  emits: ["update:model-value", "delete"],
94
- setup(V, { emit: g }) {
95
- const { t } = L(), n = V, c = U(() => te(n.modelValue.conversion)), d = U(() => t("menu.unit.measurement.preview", {
94
+ setup(y, { emit: g }) {
95
+ const { t } = N(), n = y, c = U(() => te(n.modelValue.conversion)), d = U(() => t("menu.unit.measurement.preview", {
96
96
  name: n.modelValue.name,
97
97
  value: c.value,
98
98
  unit: n.unitName
99
99
  }));
100
100
  function b(a) {
101
- e("conversion", P(a, n.precision));
101
+ e("conversion", B(a, n.precision));
102
102
  }
103
103
  function e(a, o) {
104
104
  const p = k(n.modelValue);
105
105
  p[a] = o, i("update:model-value", p);
106
106
  }
107
107
  const i = g;
108
- return T(
108
+ return L(
109
109
  () => n.precision,
110
110
  () => b(c.value)
111
111
  ), (a, o) => {
112
- const p = y("FmButton"), _ = y("FmTextField");
112
+ const p = V("FmButton"), _ = V("FmTextField");
113
113
  return F(), A("div", pe, [
114
114
  f("div", ve, [
115
- f("div", fe, M(V.title), 1),
115
+ f("div", fe, M(y.title), 1),
116
116
  m(p, {
117
117
  icon: "delete",
118
118
  variant: "secondary",
@@ -151,13 +151,13 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
151
151
  ]);
152
152
  };
153
153
  }
154
- }), Ve = { 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
+ }), 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({
155
155
  __name: "Form",
156
156
  props: {
157
157
  initialValue: {}
158
158
  },
159
- setup(V, { expose: g }) {
160
- const { t } = L(), n = V, c = $(j(I())), d = U(() => n.initialValue ? t("menu.unit.update") : t("menu.unit.add")), b = U(
159
+ setup(y, { expose: g }) {
160
+ const { t } = N(), n = y, c = $(I(j())), d = U(() => n.initialValue ? t("menu.unit.update") : t("menu.unit.add")), b = U(
161
161
  () => n.initialValue ? t("menu.common.actions.update") : t("menu.common.actions.add")
162
162
  ), e = h(n.initialValue ? k(n.initialValue) : E.generator.initUnit()), i = h(!1), a = h(!1), o = (u) => {
163
163
  re.isBoolean(u) ? a.value = u : a.value = !a.value;
@@ -173,7 +173,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
173
173
  id: (/* @__PURE__ */ new Date()).toISOString(),
174
174
  name: "",
175
175
  abbrev: "",
176
- conversion: P(0, e.value.precision)
176
+ conversion: B(0, e.value.precision)
177
177
  });
178
178
  }
179
179
  function s(u) {
@@ -207,7 +207,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
207
207
  i.value = !1;
208
208
  }
209
209
  };
210
- return T(
210
+ return L(
211
211
  () => a.value,
212
212
  (u) => {
213
213
  u && (e.value = n.initialValue ? k(n.initialValue) : E.generator.initUnit());
@@ -216,7 +216,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
216
216
  show: a,
217
217
  trigger: o
218
218
  }), (u, v) => {
219
- const N = y("FmTextField"), R = y("FmStepperField"), z = y("FmButton"), S = y("fm-button"), G = y("fm-side-sheet");
219
+ const O = V("FmTextField"), R = V("FmStepperField"), z = V("FmButton"), S = V("fm-button"), G = V("fm-side-sheet");
220
220
  return F(), A(q, null, [
221
221
  X(u.$slots, "default", { trigger: o }),
222
222
  m(G, {
@@ -232,7 +232,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
232
232
  "onOn:clickedAway": l(K)
233
233
  }, {
234
234
  "side-sheet-header": w(() => [
235
- f("p", Ve, M(d.value), 1)
235
+ f("p", ye, M(d.value), 1)
236
236
  ]),
237
237
  "side-sheet-footer": w(() => [
238
238
  f("div", we, [
@@ -254,7 +254,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
254
254
  default: w(() => [
255
255
  f("div", ge, [
256
256
  f("div", Fe, [
257
- m(N, {
257
+ m(O, {
258
258
  class: "flex-2",
259
259
  label: l(t)("menu.unit.columns.name"),
260
260
  modelValue: e.value.name,
@@ -265,7 +265,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
265
265
  })
266
266
  ]
267
267
  }, null, 8, ["label", "modelValue", "rules"]),
268
- m(N, {
268
+ m(O, {
269
269
  class: "flex-1",
270
270
  label: l(t)("menu.unit.columns.symbol"),
271
271
  modelValue: e.value.abbrev,
@@ -299,9 +299,9 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
299
299
  (F(!0), A(q, null, Z(e.value.measurements, (r, x) => (F(), A("div", {
300
300
  key: r.id
301
301
  }, [
302
- m(ye, {
302
+ m(Ve, {
303
303
  modelValue: e.value.measurements[x],
304
- "onUpdate:modelValue": (H) => e.value.measurements[x] = H,
304
+ "onUpdate:modelValue": (J) => e.value.measurements[x] = J,
305
305
  "unit-name": e.value.name,
306
306
  title: l(t)("menu.unit.measurement.title", { number: x + 1 }),
307
307
  precision: e.value.precision,
@@ -315,10 +315,10 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
315
315
  ], 64);
316
316
  };
317
317
  }
318
- }), xe = Ue, qe = J("unit-manager", () => {
319
- const V = ue(), g = I(), t = j(g), n = $(t);
318
+ }), xe = Ue, qe = Q("unit-manager", () => {
319
+ const y = ue(), g = j(), t = I(g), n = $(t);
320
320
  ae();
321
- const c = ee(), { t: d } = L(), b = (o) => {
321
+ const c = ee(), { t: d } = N(), b = (o) => {
322
322
  var _, s;
323
323
  const { vNode: p } = me(
324
324
  xe,
@@ -336,7 +336,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
336
336
  });
337
337
  }
338
338
  async function a(o) {
339
- V.open({
339
+ y.open({
340
340
  title: d("menu.common.dialog.remove.unit.title"),
341
341
  message: d("menu.common.dialog.remove.unit.message", { name: o.name }),
342
342
  primaryActions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.32.43-dev.1",
3
+ "version": "0.32.44",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -55,7 +55,7 @@
55
55
  "vue3-lottie": "^3.3.0",
56
56
  "vuedraggable": "^4.1.0",
57
57
  "xlsx": "^0.18.5",
58
- "@feedmepos/mf-common": "^1.29.21"
58
+ "@feedmepos/mf-common": "^1.29.22"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@rollup/plugin-commonjs": "^28.0.2",