@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,11 +1,11 @@
1
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 { H as S, z as r, u as pe, I as ve, J as ue } from "./menu-DAac726D.js";
2
+ import { H as S, z as r, u as pe, I as ve, J as ue } from "./menu-3XEn1C9F.js";
3
3
  import { useI18n as de } from "@feedmepos/mf-common";
4
4
  import { components as _e } from "@feedmepos/ui-library";
5
- import { _ as ne, a as fe } from "./customAttributes-BkqKM_KW.js";
5
+ import { _ as ne, a as fe } from "./customAttributes-DrA0YC82.js";
6
6
  import { u as ye } from "./discardConfirm-BHni0LNu.js";
7
- import { u as he } from "./menu-DpYo8dYR.js";
8
- import { L as ge } from "./LinkProductSideSheet-CAPIdf6P.js";
7
+ import { u as he } from "./menu-DzbYSPGP.js";
8
+ import { L as ge } from "./LinkProductSideSheet-DrSKOBLg.js";
9
9
  const Ve = { class: "space-y-8" }, Fe = {
10
10
  key: 0,
11
11
  class: "space-y-16"
@@ -212,7 +212,7 @@ const Ve = { class: "space-y-8" }, Fe = {
212
212
  function w(i, l) {
213
213
  const y = m(i), g = m(l);
214
214
  return y <= g ? [{ start: y, end: g }] : [
215
- { start: y, end: 24 * 60 - 1 },
215
+ { start: y, end: 1439 },
216
216
  // Until end of day (23:59)
217
217
  { start: 0, end: g }
218
218
  // From start of next day
@@ -385,7 +385,7 @@ const Ve = { class: "space-y-8" }, Fe = {
385
385
  "onUpdate:modelValue": (R) => o.start = R,
386
386
  class: "flex-1"
387
387
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
388
- l[8] || (l[8] = me(" - ")),
388
+ l[8] || (l[8] = me(" - ", -1)),
389
389
  t(j, {
390
390
  modelValue: o.end,
391
391
  "onUpdate:modelValue": (R) => o.end = R,
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as M, watch as _, ref as E, resolveComponent as f, createBlock as x, openBlock as C, unref as c, withCtx as V, createVNode as A } from "vue";
2
- import { J as l, z as d, u as F } from "./menu-DAac726D.js";
2
+ import { J as l, z as d, u as F } from "./menu-3XEn1C9F.js";
3
3
  import { useI18n as b } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as P } from "@feedmepos/ui-library";
5
- import { u as v } from "./menuV2-DZj_FPqR.js";
5
+ import { u as v } from "./menuV2-cXg54GYW.js";
6
6
  const y = /* @__PURE__ */ M({
7
7
  __name: "AddSubcategoryDialogContentComponent",
8
8
  props: {
@@ -1,5 +1,5 @@
1
- import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DScxctPb.js";
2
- import "./menu-DAac726D.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-BEISm7uc.js";
2
+ import "./menu-3XEn1C9F.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -1,15 +1,15 @@
1
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 { a5 as B, a6 as te, a3 as P, H as k, O as $, D as I, B as E, a4 as ne, J as C, z as D, I as oe, u as ae } from "./menu-DAac726D.js";
2
+ import { defineComponent as O, computed as w, ref as h, watch as T, resolveComponent as _, createBlock as W, openBlock as F, withCtx as x, createVNode as d, createElementVNode as b, 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, H as k, O as $, D as I, B as E, a4 as ne, J as C, z as D, I as ae, u as oe } from "./menu-3XEn1C9F.js";
4
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
- import { c as re } from "./check-C9mY6LiX.js";
8
- import "./vuedraggable-CK8z7qA8.js";
9
- import "./app-5fxKLAzS.js";
10
- import "./menuV2-DZj_FPqR.js";
7
+ import { c as me } from "./check-C9mY6LiX.js";
8
+ import "./vuedraggable-DnBIRDMr.js";
9
+ import "./app-CzXxFrl1.js";
10
+ import "./menuV2-cXg54GYW.js";
11
11
  /* empty css */
12
- import { c as me } from "./createComponentProgrammatically-Bt2rn1IQ.js";
12
+ import { c as re } from "./createComponentProgrammatically-Bt2rn1IQ.js";
13
13
  const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
14
14
  __name: "NumberPrecisionInput",
15
15
  props: {
@@ -21,56 +21,56 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
21
21
  disabled: { type: Boolean }
22
22
  },
23
23
  emits: ["update:modelValue"],
24
- setup(y, { emit: g }) {
25
- const t = y, n = g, c = U(() => B(t.step ?? 1).precision), d = h(t.modelValue.toString());
26
- T([() => d.value], ([e]) => {
24
+ setup(u, { emit: g }) {
25
+ const t = u, n = g, p = w(() => B(t.step ?? 1).precision), c = h(t.modelValue.toString());
26
+ T([() => c.value], ([e]) => {
27
27
  e === "-" || e === "." ? n("update:modelValue", 0) : n("update:modelValue", +e);
28
28
  });
29
- const b = (e) => {
29
+ const V = (e) => {
30
30
  if (e.ctrlKey || e.altKey || e.metaKey || ["Backspace", "Tab", "Enter", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"].includes(
31
31
  e.key
32
32
  ))
33
33
  return;
34
- const i = e.currentTarget, a = +`${i.value}${e.key}`;
35
- if (isFinite(a)) {
36
- B(a).precision > c.value && e.preventDefault();
34
+ const s = e.currentTarget, o = +`${s.value}${e.key}`;
35
+ if (isFinite(o)) {
36
+ B(o).precision > p.value && e.preventDefault();
37
37
  return;
38
38
  }
39
- i.value.length === 0 && (e.key === "-" || e.key === ".") || e.preventDefault();
39
+ s.value.length === 0 && (e.key === "-" || e.key === ".") || e.preventDefault();
40
40
  };
41
- return (e, i) => {
42
- const a = V("FmField"), o = V("FmFormGroup");
43
- return F(), W(o, {
44
- disabled: e.disabled,
45
- modelValue: e.modelValue,
46
- rules: e.rules,
47
- "helper-text": e.helperText,
48
- label: e.label
41
+ return (e, s) => {
42
+ const o = _("FmField"), a = _("FmFormGroup");
43
+ return F(), W(a, {
44
+ disabled: u.disabled,
45
+ modelValue: u.modelValue,
46
+ rules: u.rules,
47
+ "helper-text": u.helperText,
48
+ label: u.label
49
49
  }, {
50
- default: w(({ invalid: p }) => [
51
- m(a, { invalid: p }, {
52
- default: w(() => [
53
- f("input", {
54
- value: d.value,
55
- onInput: i[0] || (i[0] = (_) => d.value = _.target.value),
56
- onKeydown: b,
50
+ default: x(({ invalid: v }) => [
51
+ d(o, { invalid: v }, {
52
+ default: x(() => [
53
+ b("input", {
54
+ value: c.value,
55
+ onInput: s[0] || (s[0] = (y) => c.value = y.target.value),
56
+ onKeydown: V,
57
57
  inputmode: "numeric",
58
58
  class: Q({
59
59
  "fm-text-field--input fm-typo-en-body-lg-400": !0,
60
- "text-fm-color-typo-primary": !e.disabled,
61
- "text-fm-color-typo-disabled": e.disabled
60
+ "text-fm-color-typo-primary": !u.disabled,
61
+ "text-fm-color-typo-disabled": u.disabled
62
62
  }),
63
- disabled: e.disabled
63
+ disabled: u.disabled
64
64
  }, null, 42, de)
65
65
  ]),
66
- _: 2
67
- }, 1032, ["invalid"])
66
+ _: 1
67
+ }, 8, ["invalid"])
68
68
  ]),
69
69
  _: 1
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" }, Ve = /* @__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" }, Ve = { class: "q-mt-xs q-pl-sm t-system text-fsecondary" }, ye = /* @__PURE__ */ O({
74
74
  __name: "UnitMeasurement",
75
75
  props: {
76
76
  title: {
@@ -91,84 +91,84 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
91
91
  }
92
92
  },
93
93
  emits: ["update:model-value", "delete"],
94
- setup(y, { emit: g }) {
95
- const { t } = L(), n = y, c = U(() => te(n.modelValue.conversion)), d = U(() => t("menu.unit.measurement.preview", {
94
+ setup(u, { emit: g }) {
95
+ const { t } = L(), n = u, p = w(() => te(n.modelValue.conversion)), c = w(() => t("menu.unit.measurement.preview", {
96
96
  name: n.modelValue.name,
97
- value: c.value,
97
+ value: p.value,
98
98
  unit: n.unitName
99
99
  }));
100
- function b(a) {
101
- e("conversion", P(a, n.precision));
100
+ function V(o) {
101
+ e("conversion", P(o, n.precision));
102
102
  }
103
- function e(a, o) {
104
- const p = k(n.modelValue);
105
- p[a] = o, i("update:model-value", p);
103
+ function e(o, a) {
104
+ const v = k(n.modelValue);
105
+ v[o] = a, s("update:model-value", v);
106
106
  }
107
- const i = g;
107
+ const s = g;
108
108
  return T(
109
109
  () => n.precision,
110
- () => b(c.value)
111
- ), (a, o) => {
112
- const p = V("FmButton"), _ = V("FmTextField");
110
+ () => V(p.value)
111
+ ), (o, a) => {
112
+ const v = _("FmButton"), y = _("FmTextField");
113
113
  return F(), A("div", pe, [
114
- f("div", ve, [
115
- f("div", fe, M(y.title), 1),
116
- m(p, {
114
+ b("div", ve, [
115
+ b("div", fe, M(u.title), 1),
116
+ d(v, {
117
117
  icon: "delete",
118
118
  variant: "secondary",
119
- onClick: o[0] || (o[0] = (s) => i("delete"))
119
+ onClick: a[0] || (a[0] = (m) => s("delete"))
120
120
  })
121
121
  ]),
122
- f("div", be, [
123
- m(_, {
122
+ b("div", be, [
123
+ d(y, {
124
124
  "model-value": n.modelValue.name,
125
125
  rules: [
126
- (s) => s ? !0 : l(t)("menu.common.validation.required", {
126
+ (m) => m ? !0 : l(t)("menu.common.validation.required", {
127
127
  field: l(t)("menu.unit.measurement.name").toLowerCase()
128
128
  })
129
129
  ],
130
130
  label: l(t)("menu.unit.measurement.name"),
131
- "onUpdate:modelValue": o[1] || (o[1] = (s) => e("name", s.trim()))
131
+ "onUpdate:modelValue": a[1] || (a[1] = (m) => e("name", m.trim()))
132
132
  }, null, 8, ["model-value", "rules", "label"]),
133
- m(_, {
133
+ d(y, {
134
134
  "model-value": n.modelValue.abbrev,
135
135
  rules: [
136
- (s) => s ? !0 : l(t)("menu.common.validation.required", {
136
+ (m) => m ? !0 : l(t)("menu.common.validation.required", {
137
137
  field: l(t)("menu.unit.measurement.symbol").toLowerCase()
138
138
  })
139
139
  ],
140
140
  label: l(t)("menu.unit.measurement.symbol"),
141
- "onUpdate:modelValue": o[2] || (o[2] = (s) => e("abbrev", s.trim()))
141
+ "onUpdate:modelValue": a[2] || (a[2] = (m) => e("abbrev", m.trim()))
142
142
  }, null, 8, ["model-value", "rules", "label"])
143
143
  ]),
144
- m(ce, {
144
+ d(ce, {
145
145
  label: l(t)("menu.unit.measurement.conversion"),
146
- "model-value": c.value,
147
- "onUpdate:modelValue": b,
146
+ "model-value": p.value,
147
+ "onUpdate:modelValue": V,
148
148
  step: 1 / Math.pow(10, n.precision)
149
149
  }, null, 8, ["label", "model-value", "step"]),
150
- f("div", _e, M(l(t)("menu.unit.measurement.preview_label")) + ": " + M(d.value), 1)
150
+ b("div", Ve, M(l(t)("menu.unit.measurement.preview_label")) + ": " + M(c.value), 1)
151
151
  ]);
152
152
  };
153
153
  }
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__ */ O({
154
+ }), _e = { class: "fm-typo-en-title-md-600" }, ge = { class: "pt-8 space-y-40" }, Fe = { class: "flex flex-row gap-16" }, xe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__ */ O({
155
155
  __name: "Form",
156
156
  props: {
157
157
  initialValue: {}
158
158
  },
159
- setup(y, { expose: g }) {
160
- const { t } = L(), n = y, c = $(I(j())), d = U(() => n.initialValue ? t("menu.unit.update") : t("menu.unit.add")), b = U(
159
+ setup(u, { expose: g }) {
160
+ const { t } = L(), n = u, p = $(I(j())), c = w(() => n.initialValue ? t("menu.unit.update") : t("menu.unit.add")), V = w(
161
161
  () => n.initialValue ? t("menu.common.actions.update") : t("menu.common.actions.add")
162
- ), e = h(n.initialValue ? k(n.initialValue) : E.generator.initUnit()), i = h(!1), a = h(!1), o = (u) => {
163
- re.isBoolean(u) ? a.value = u : a.value = !a.value;
162
+ ), e = h(n.initialValue ? k(n.initialValue) : E.generator.initUnit()), s = h(!1), o = h(!1), a = (i) => {
163
+ me.isBoolean(i) ? o.value = i : o.value = !o.value;
164
164
  };
165
- function p() {
166
- e.value.measurements = e.value.measurements.map((u) => ({
167
- ...u,
168
- conversion: ne(u.conversion, e.value.precision)
165
+ function v() {
166
+ e.value.measurements = e.value.measurements.map((i) => ({
167
+ ...i,
168
+ conversion: ne(i.conversion, e.value.precision)
169
169
  }));
170
170
  }
171
- function _() {
171
+ function y() {
172
172
  e.value.measurements.push({
173
173
  id: (/* @__PURE__ */ new Date()).toISOString(),
174
174
  name: "",
@@ -176,53 +176,53 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
176
176
  conversion: P(0, e.value.precision)
177
177
  });
178
178
  }
179
- function s(u) {
180
- e.value.measurements.splice(u, 1);
179
+ function m(i) {
180
+ e.value.measurements.splice(i, 1);
181
181
  }
182
182
  const K = se(
183
- () => !oe.isEqual(e.value, n.initialValue || E.generator.initUnit()),
183
+ () => !ae.isEqual(e.value, n.initialValue || E.generator.initUnit()),
184
184
  () => {
185
- a.value = !1;
185
+ o.value = !1;
186
186
  }
187
187
  ), Y = async () => {
188
188
  try {
189
- i.value = !0;
190
- const u = k(e.value);
191
- n.initialValue ? await c.updateMenu(
189
+ s.value = !0;
190
+ const i = k(e.value);
191
+ n.initialValue ? await p.updateMenu(
192
192
  {
193
193
  module: D.F_MENU_MODULE_V4_KEY.enum.unit,
194
194
  operation: C.F_OPERATION_TYPE.update,
195
- data: u
195
+ data: i
196
196
  },
197
- u.name
198
- ) : await c.updateMenu(
197
+ i.name
198
+ ) : await p.updateMenu(
199
199
  {
200
200
  module: D.F_MENU_MODULE_V4_KEY.enum.unit,
201
201
  operation: C.F_OPERATION_TYPE.create,
202
- data: u
202
+ data: i
203
203
  },
204
- u.name
205
- ), o(!1), e.value = E.generator.initUnit();
204
+ i.name
205
+ ), a(!1), e.value = E.generator.initUnit();
206
206
  } finally {
207
- i.value = !1;
207
+ s.value = !1;
208
208
  }
209
209
  };
210
210
  return T(
211
- () => a.value,
212
- (u) => {
213
- u && (e.value = n.initialValue ? k(n.initialValue) : E.generator.initUnit());
211
+ () => o.value,
212
+ (i) => {
213
+ i && (e.value = n.initialValue ? k(n.initialValue) : E.generator.initUnit());
214
214
  }
215
215
  ), g({
216
- show: a,
217
- trigger: o
218
- }), (u, v) => {
219
- const N = V("FmTextField"), z = V("FmStepperField"), R = V("FmButton"), S = V("fm-button"), G = V("fm-side-sheet");
216
+ show: o,
217
+ trigger: a
218
+ }), (i, f) => {
219
+ const N = _("FmTextField"), z = _("FmStepperField"), R = _("FmButton"), S = _("fm-button"), G = _("fm-side-sheet");
220
220
  return F(), A(q, null, [
221
- X(u.$slots, "default", { trigger: o }),
222
- m(G, {
221
+ X(i.$slots, "default", { trigger: a }),
222
+ d(G, {
223
223
  id: "unit-form",
224
- modelValue: a.value,
225
- "onUpdate:modelValue": v[4] || (v[4] = (r) => a.value = r),
224
+ modelValue: o.value,
225
+ "onUpdate:modelValue": f[4] || (f[4] = (r) => o.value = r),
226
226
  "is-container": l(le).FmForm,
227
227
  "is-container-props": {
228
228
  onValidationSuccess: Y,
@@ -231,45 +231,45 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
231
231
  "max-width": 560,
232
232
  "onOn:clickedAway": l(K)
233
233
  }, {
234
- "side-sheet-header": w(() => [
235
- f("p", ye, M(d.value), 1)
234
+ "side-sheet-header": x(() => [
235
+ b("p", _e, M(c.value), 1)
236
236
  ]),
237
- "side-sheet-footer": w(() => [
238
- f("div", we, [
239
- m(S, {
240
- label: b.value,
241
- loading: i.value,
237
+ "side-sheet-footer": x(() => [
238
+ b("div", xe, [
239
+ d(S, {
240
+ label: V.value,
241
+ loading: s.value,
242
242
  size: "lg",
243
243
  type: "submit",
244
244
  variant: "primary"
245
245
  }, null, 8, ["label", "loading"]),
246
- m(S, {
246
+ d(S, {
247
247
  label: l(t)("menu.common.actions.cancel"),
248
248
  size: "lg",
249
249
  variant: "tertiary",
250
- onClick: v[3] || (v[3] = () => a.value = !1)
250
+ onClick: f[3] || (f[3] = () => o.value = !1)
251
251
  }, null, 8, ["label"])
252
252
  ])
253
253
  ]),
254
- default: w(() => [
255
- f("div", ge, [
256
- f("div", Fe, [
257
- m(N, {
254
+ default: x(() => [
255
+ b("div", ge, [
256
+ b("div", Fe, [
257
+ d(N, {
258
258
  class: "flex-2",
259
259
  label: l(t)("menu.unit.columns.name"),
260
260
  modelValue: e.value.name,
261
- "onUpdate:modelValue": v[0] || (v[0] = (r) => e.value.name = r),
261
+ "onUpdate:modelValue": f[0] || (f[0] = (r) => e.value.name = r),
262
262
  rules: [
263
263
  (r) => r ? !0 : l(t)("menu.common.validation.required", {
264
264
  field: l(t)("menu.unit.columns.name").toLowerCase()
265
265
  })
266
266
  ]
267
267
  }, null, 8, ["label", "modelValue", "rules"]),
268
- m(N, {
268
+ d(N, {
269
269
  class: "flex-1",
270
270
  label: l(t)("menu.unit.columns.symbol"),
271
271
  modelValue: e.value.abbrev,
272
- "onUpdate:modelValue": v[1] || (v[1] = (r) => e.value.abbrev = r),
272
+ "onUpdate:modelValue": f[1] || (f[1] = (r) => e.value.abbrev = r),
273
273
  rules: [
274
274
  (r) => r ? !0 : l(t)("menu.common.validation.required", {
275
275
  field: l(t)("menu.unit.columns.symbol").toLowerCase()
@@ -277,12 +277,12 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
277
277
  ]
278
278
  }, null, 8, ["label", "modelValue", "rules"])
279
279
  ]),
280
- f("div", null, [
281
- m(z, {
280
+ b("div", null, [
281
+ d(z, {
282
282
  modelValue: e.value.precision,
283
283
  "onUpdate:modelValue": [
284
- v[2] || (v[2] = (r) => e.value.precision = r),
285
- p
284
+ f[2] || (f[2] = (r) => e.value.precision = r),
285
+ v
286
286
  ],
287
287
  label: l(t)("menu.unit.precision"),
288
288
  placeholder: l(t)("menu.unit.precision_placeholder"),
@@ -291,21 +291,21 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
291
291
  max: 5
292
292
  }, null, 8, ["modelValue", "label", "placeholder"])
293
293
  ]),
294
- m(R, {
294
+ d(R, {
295
295
  label: l(t)("menu.unit.measurement.add"),
296
296
  variant: "secondary",
297
- onClick: _
297
+ onClick: y
298
298
  }, null, 8, ["label"]),
299
- (F(!0), A(q, null, Z(e.value.measurements, (r, x) => (F(), A("div", {
299
+ (F(!0), A(q, null, Z(e.value.measurements, (r, U) => (F(), A("div", {
300
300
  key: r.id
301
301
  }, [
302
- m(Ve, {
303
- modelValue: e.value.measurements[x],
304
- "onUpdate:modelValue": (H) => e.value.measurements[x] = H,
302
+ d(ye, {
303
+ modelValue: e.value.measurements[U],
304
+ "onUpdate:modelValue": (H) => e.value.measurements[U] = H,
305
305
  "unit-name": e.value.name,
306
- title: l(t)("menu.unit.measurement.title", { number: x + 1 }),
306
+ title: l(t)("menu.unit.measurement.title", { number: U + 1 }),
307
307
  precision: e.value.precision,
308
- onDelete: () => s(x)
308
+ onDelete: () => m(U)
309
309
  }, null, 8, ["modelValue", "onUpdate:modelValue", "unit-name", "title", "precision", "onDelete"])
310
310
  ]))), 128))
311
311
  ])
@@ -315,37 +315,37 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
315
315
  ], 64);
316
316
  };
317
317
  }
318
- }), xe = Ue, qe = J("unit-manager", () => {
319
- const y = ue(), g = j(), t = I(g), n = $(t);
320
- ae();
321
- const c = ee(), { t: d } = L(), b = (o) => {
322
- var _, s;
323
- const { vNode: p } = me(
324
- xe,
325
- c,
326
- o
318
+ }), Ue = we, qe = J("unit-manager", () => {
319
+ const u = ue(), g = j(), t = I(g), n = $(t);
320
+ oe();
321
+ const p = ee(), { t: c } = L(), V = (a) => {
322
+ var y, m;
323
+ const { vNode: v } = re(
324
+ Ue,
325
+ p,
326
+ a
327
327
  );
328
- (s = (_ = p.component) == null ? void 0 : _.exposed) == null || s.trigger();
328
+ (m = (y = v.component) == null ? void 0 : y.exposed) == null || m.trigger();
329
329
  };
330
330
  async function e() {
331
- b({});
331
+ V({});
332
332
  }
333
- async function i(o) {
334
- b({
335
- initialValue: o
333
+ async function s(a) {
334
+ V({
335
+ initialValue: a
336
336
  });
337
337
  }
338
- async function a(o) {
339
- y.open({
340
- title: d("menu.common.dialog.remove.unit.title"),
341
- message: d("menu.common.dialog.remove.unit.message", { name: o.name }),
338
+ async function o(a) {
339
+ u.open({
340
+ title: c("menu.common.dialog.remove.unit.title"),
341
+ message: c("menu.common.dialog.remove.unit.message", { name: a.name }),
342
342
  primaryActions: {
343
- text: d("menu.common.actions.remove"),
343
+ text: c("menu.common.actions.remove"),
344
344
  close: !0,
345
345
  variant: ie.Destructive
346
346
  },
347
347
  secondaryActions: {
348
- text: d("menu.common.actions.cancel"),
348
+ text: c("menu.common.actions.cancel"),
349
349
  close: !0
350
350
  }
351
351
  }).onPrimary(async () => {
@@ -353,20 +353,20 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ O({
353
353
  {
354
354
  module: D.F_MENU_MODULE_V4_KEY.enum.unit,
355
355
  operation: C.F_OPERATION_TYPE.delete,
356
- data: o._id
356
+ data: a._id
357
357
  },
358
- o.name,
358
+ a.name,
359
359
  !0
360
360
  );
361
361
  });
362
362
  }
363
363
  return {
364
364
  createUnit: e,
365
- deleteUnit: a,
366
- updateUnit: i
365
+ deleteUnit: o,
366
+ updateUnit: s
367
367
  };
368
368
  });
369
369
  export {
370
- xe as U,
370
+ Ue as U,
371
371
  qe as u
372
372
  };
@@ -457,14 +457,14 @@ function A(e) {
457
457
  newDraggableIndex: Q
458
458
  }, e));
459
459
  }
460
- var c, D, m, _, at, Mt, S, J, ct, M, Dt, Q, Ot, x, ut = !1, Yt = !1, Bt = [], rt, Y, $t, zt, ge, ve, bt, st, St, Ct = !1, At = !1, Lt, I, Ut = [], ee = !1, Ht = [], Wt = typeof document < "u", Pt = Se, be = Tt || q ? "cssFloat" : "float", cn = Wt && !Je && !Se && "draggable" in document.createElement("div"), Ae = function() {
460
+ var c, D, m, _, at, Mt, S, J, ct, M, Dt, Q, Ot, x, ut = !1, Yt = !1, Bt = [], rt, Y, $t, zt, ge, ve, bt, st, St, Ct = !1, At = !1, Lt, I, Ut = [], ee = !1, Ht = [], Wt = typeof document < "u", Pt = Se, be = Tt || q ? "cssFloat" : "float", cn = Wt && !Je && !Se && "draggable" in document.createElement("div"), Ae = (function() {
461
461
  if (Wt) {
462
462
  if (q)
463
463
  return !1;
464
464
  var e = document.createElement("x");
465
465
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
466
466
  }
467
- }(), Pe = function(t, n) {
467
+ })(), Pe = function(t, n) {
468
468
  var o = h(t), r = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), i = ft(t, 0, n), a = ft(t, 1, n), l = i && h(i), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + T(i).width, d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + T(a).width;
469
469
  if (o.display === "flex")
470
470
  return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.31.74",
3
+ "version": "0.31.75-prod",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -23,7 +23,7 @@
23
23
  "@feedmepos/inventory-core": "^0.2.6",
24
24
  "@feedmepos/menu": "1.7.32",
25
25
  "@feedmepos/mf-inventory-portal": "https://registry.npmjs.org/@feedmepos/mf-inventory-portal/-/mf-inventory-portal-0.0.19-dev.6.tgz",
26
- "@feedmepos/remy-vue-client": "0.1.3-beta.8",
26
+ "@feedmepos/mf-remy-panel": "^0.1.0",
27
27
  "@feedmepos/ui-library": "1.8.7",
28
28
  "@feedmepos/zod-entity": "0.0.4-alpha.9",
29
29
  "@types/dinero.js": "^1.9.4",
@@ -46,14 +46,14 @@
46
46
  "uuid": "^10.0.0",
47
47
  "vite-svg-loader": "^5.1.0",
48
48
  "vue": "^3.5.16",
49
- "vue3-carousel": "0.16.0",
50
49
  "vue-advanced-cropper": "^2.8.9",
51
50
  "vue-i18n": "10.0.5",
52
51
  "vue-router": "^4.2.5",
52
+ "vue3-carousel": "0.16.0",
53
53
  "vue3-lottie": "^3.3.0",
54
54
  "vuedraggable": "^4.1.0",
55
55
  "xlsx": "^0.18.5",
56
- "@feedmepos/mf-common": "^1.28.2"
56
+ "@feedmepos/mf-common": "^1.28.6"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@rollup/plugin-commonjs": "^28.0.2",
@@ -65,8 +65,8 @@
65
65
  "@types/uuid": "^10.0.0",
66
66
  "@vitejs/plugin-vue": "^5.2.4",
67
67
  "@vitejs/plugin-vue-jsx": "^5.0.0",
68
- "@vue/tsconfig": "^0.4.0",
69
68
  "@vitest/ui": "^2.1.8",
69
+ "@vue/tsconfig": "^0.4.0",
70
70
  "autoprefixer": "^10.4.16",
71
71
  "eslint": "^8.49.0",
72
72
  "eslint-plugin-tailwindcss": "^3.14.0",