@feedmepos/mf-menu 0.32.63-dev.1 → 0.32.63-dev.2

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 (80) hide show
  1. package/dist/{App-DhfTGlgM.js → App-C1a1LT6q.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-C5-8qdJK.js → ApplyProduct.vue_vue_type_script_setup_true_lang-CRZjxBH8.js} +3 -3
  3. package/dist/{ApplyProductDialog.vue_vue_type_script_setup_true_lang-CXm-0H18.js → ApplyProductDialog.vue_vue_type_script_setup_true_lang-DsicZfqa.js} +3 -3
  4. package/dist/{Catalog-WuZJfM6l.js → Catalog-CFH82IzQ.js} +22 -22
  5. package/dist/{Category-BeIo7XWY.js → Category-Bmq8Dyqn.js} +4 -4
  6. package/dist/{Category-D-cQQCPS.js → Category-DcHgLPzL.js} +4 -4
  7. package/dist/{CookingGuide-B-yvD9ZA.js → CookingGuide-g7cIlLFa.js} +29 -29
  8. package/dist/{CustomAttributeChip.vue_vue_type_script_setup_true_lang-2_yzXoa4.js → CustomAttributeChip.vue_vue_type_script_setup_true_lang-DGMoRxxQ.js} +1 -1
  9. package/dist/{Group-13i5igrS.js → Group-CFxq6Jwg.js} +3 -3
  10. package/dist/{Group-CY8lUzQG.js → Group-DQ4S03dQ.js} +1 -1
  11. package/dist/{Group.vue_vue_type_script_setup_true_lang-DZhxy0tb.js → Group.vue_vue_type_script_setup_true_lang-Criwjsgq.js} +7 -7
  12. package/dist/{GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-CWqv-oUd.js → GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-nnzPpKcA.js} +19 -19
  13. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-DTs4Vpdi.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-CanCWSih.js} +4209 -4209
  14. package/dist/{Ingredient-vrUOW6gk.js → Ingredient-BUWk8yVD.js} +4 -4
  15. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-xcVjRjqD.js → InventoryBinding.vue_vue_type_script_setup_true_lang-DBMUbP3d.js} +2 -2
  16. package/dist/{LinkProductSideSheet-DMbJG6wf.js → LinkProductSideSheet-D_ewAtdl.js} +4 -4
  17. package/dist/{MenuSetting-Di2xwm00.js → MenuSetting-DgaIhn51.js} +7 -7
  18. package/dist/{OrderPacing-CCe-IcGO.js → OrderPacing-CUHfN9Hy.js} +7 -7
  19. package/dist/{PrintRoute-CcfObcHY.js → PrintRoute-CFxcyI3r.js} +10 -10
  20. package/dist/{Product-ChUVnMgG.js → Product-ChWP4DlN.js} +1 -1
  21. package/dist/{Product.vue_vue_type_script_setup_true_lang-C9Qp50hL.js → Product.vue_vue_type_script_setup_true_lang-Df0hOAaW.js} +58 -58
  22. package/dist/{ProductInternalTools-D9HXhgo5.js → ProductInternalTools--PMoNgk2.js} +14 -14
  23. package/dist/{Products-Bly2ktEC.js → Products-D3yOg_rD.js} +52 -52
  24. package/dist/{Publish-C8ubb8Qf.js → Publish-C5pI3ARw.js} +107 -107
  25. package/dist/{Recipe-BpMRLsyO.js → Recipe-ClV7xDMI.js} +5 -5
  26. package/dist/{RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BD5OCDRn.js → RestaurantAttributesSelector.vue_vue_type_script_setup_true_lang-BWZJOF7c.js} +1 -1
  27. package/dist/{RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js → RuleView.vue_vue_type_script_setup_true_lang-_lhdiLQO.js} +362 -362
  28. package/dist/{Scheduler-CiB4b2Fn.js → Scheduler-B4gXNQFu.js} +17 -17
  29. package/dist/{ServingSequence-BlcyW-dv.js → ServingSequence-DQ9LvurM.js} +3 -3
  30. package/dist/{Setting-DqkL6YYU.js → Setting-D659-DYQ.js} +5 -5
  31. package/dist/{Subcategory-B4Jg_wtT.js → Subcategory-CldSh8My.js} +10 -10
  32. package/dist/{Takeaway-5rFPYYNA.js → Takeaway-B5MvIP-7.js} +4 -4
  33. package/dist/{Takeaway-5G3f7jWT.js → Takeaway-za5OSOvm.js} +1 -1
  34. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-CVsOhg_E.js → Takeaway.vue_vue_type_script_setup_true_lang-BhoK4wib.js} +7 -7
  35. package/dist/{TranslationFieldSection.vue_vue_type_script_setup_true_lang-CPqxA6JD.js → TranslationFieldSection.vue_vue_type_script_setup_true_lang-Bl3WgQNK.js} +1 -1
  36. package/dist/{TranslationSideSheet.vue_vue_type_script_setup_true_lang-yrNuTD-3.js → TranslationSideSheet.vue_vue_type_script_setup_true_lang-DkWRL-y_.js} +2 -2
  37. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-Tox1yfD-.js +5858 -0
  38. package/dist/{Unit-CAkdmQLg.js → Unit-CMEF528D.js} +2 -2
  39. package/dist/{Variant-BbLQqbAK.js → Variant-37cAL8NO.js} +6 -6
  40. package/dist/{_id_-Dzacr40I.js → _id_-c4e1Ngjk.js} +12 -12
  41. package/dist/{app-Deov1985.js → app-Cb9EXiAF.js} +1 -1
  42. package/dist/{app-4yWs09Fr.js → app-Dafn3Z5r.js} +102 -102
  43. package/dist/app.js +1 -1
  44. package/dist/apps/mf-menu/src/api/media.d.ts +10 -3
  45. package/dist/apps/mf-menu/src/app.d.ts +60 -10
  46. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/productImages.d.ts +67 -21
  47. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ManageImageDrawer.vue.d.ts +15 -1
  48. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/ProductImageField.vue.d.ts +16 -1
  49. package/dist/apps/mf-menu/src/components/feature/TreeEditor/image/RegenerateImageDialog.vue.d.ts +10 -0
  50. package/dist/apps/mf-menu/src/helper/menuImport.d.ts +22 -0
  51. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  52. package/dist/assets/{override-menu-cBe2aMY6.js → linked-status-Cy7U6MR7.js} +4 -4
  53. package/dist/assets/{menu-export-Dcw5a_dN.js → menu-export-MsUq-m6i.js} +3 -3
  54. package/dist/assets/{linked-status-B2WLhKkV.js → override-menu-C21YmN7u.js} +4 -4
  55. package/dist/assets/{validate-menu-BM-5GK85.js → validate-menu-DO2qd1Ls.js} +4 -4
  56. package/dist/{catalog-DKygS2Cs.js → catalog-CZzcvExG.js} +1 -1
  57. package/dist/{catalogSetting-Bn2TplvM.js → catalogSetting-3iBsVbtC.js} +1 -1
  58. package/dist/{currency-DXgNHtK8.js → currency-C3o78W2S.js} +1 -1
  59. package/dist/dayjs.min-rFrrfcXf.js +7 -0
  60. package/dist/{discardConfirm-DZwzKO-Q.js → discardConfirm-DsprInGX.js} +1 -1
  61. package/dist/{index-K-MBqJJo.js → index-CD_omf3p.js} +1 -1
  62. package/dist/{index-BEocaqRK.js → index-CyeAgLyq.js} +6 -6
  63. package/dist/{index-B48KLyqg.js → index-DSIKxrZZ.js} +5 -5
  64. package/dist/{index.vue_vue_type_script_setup_true_lang-Nl505vPi.js → index.vue_vue_type_script_setup_true_lang-DKab6bV3.js} +8148 -8084
  65. package/dist/{item-Da3ArD-G.js → item-BbwU7bUM.js} +4432 -4192
  66. package/dist/{jszip.min-Cc2eR4Cq.js → jszip.min-B8gSnxra.js} +52 -52
  67. package/dist/{linkProducts-GNuUxFEE.js → linkProducts-DqErRFMk.js} +6 -6
  68. package/dist/{memberPricing-T-jr7tn1.js → memberPricing-BwmMrsfo.js} +1 -1
  69. package/dist/{menu-DSDRAil-.js → menu-umI9Z6Bd.js} +1 -1
  70. package/dist/{menuV2-fTlJdjxi.js → menuV2-Btcob7OV.js} +81 -81
  71. package/dist/mf-menu.css +1 -1
  72. package/dist/{order_pacing-Dgo1fySS.js → order_pacing-ByU4f3cV.js} +5 -5
  73. package/dist/{priceTier-aT_gIfrN.js → priceTier-vHrePqH1.js} +1 -1
  74. package/dist/{rules-Cx2hkV20.js → rules-B4FvBggj.js} +3 -3
  75. package/dist/{scheduler-Bd-q7yF8.js → scheduler-1ZBJNxij.js} +28 -28
  76. package/dist/{toExcel-qfjR83qT.js → toExcel-C8Nsh1v6.js} +2 -2
  77. package/dist/{unit-n1T9grbM.js → unit-RNGe0YzY.js} +24 -24
  78. package/package.json +1 -1
  79. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-T71R68sq.js +0 -5836
  80. package/dist/dayjs.min-DpX65tgj.js +0 -7
@@ -1,12 +1,12 @@
1
- import { defineComponent as re, computed as M, resolveComponent as v, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as V, unref as n, toDisplayString as O, createElementVNode as _, withCtx as p, Fragment as R, renderList as N, createBlock as q, ref as B, Transition as de, createTextVNode as fe } from "vue";
2
- import { u as ye, l as _e } from "./discardConfirm-DZwzKO-Q.js";
3
- import { d as w, v as $, u as he, F as ge, x as L, g as se, h as ie, M as ce } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
1
+ import { defineComponent as re, computed as N, resolveComponent as v, createElementBlock as d, openBlock as u, createVNode as t, createCommentVNode as V, unref as n, toDisplayString as O, createElementVNode as _, withCtx as p, Fragment as R, renderList as I, createBlock as q, ref as B, Transition as de, createTextVNode as fe } from "vue";
2
+ import { u as ye, l as _e } from "./discardConfirm-DsprInGX.js";
3
+ import { d as w, z as $, u as he, F as ge, A as L, g as se, h as ie, P as ce } from "./index.vue_vue_type_script_setup_true_lang-DKab6bV3.js";
4
4
  import { useI18n as me } from "@feedmepos/mf-common";
5
5
  import { components as Ve } from "@feedmepos/ui-library";
6
6
  import { _ as ke } from "./FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js";
7
- import { _ as ue } from "./RuleView.vue_vue_type_script_setup_true_lang-Ba3djmX1.js";
8
- import { u as Fe } from "./menu-DSDRAil-.js";
9
- import { L as be } from "./LinkProductSideSheet-DMbJG6wf.js";
7
+ import { _ as ue } from "./RuleView.vue_vue_type_script_setup_true_lang-_lhdiLQO.js";
8
+ import { u as Fe } from "./menu-umI9Z6Bd.js";
9
+ import { L as be } from "./LinkProductSideSheet-D_ewAtdl.js";
10
10
  const xe = { class: "space-y-8" }, Ce = {
11
11
  key: 0,
12
12
  class: "space-y-16"
@@ -20,7 +20,7 @@ const xe = { class: "space-y-8" }, Ce = {
20
20
  },
21
21
  emits: ["update:modelValue"],
22
22
  setup(g, { emit: J }) {
23
- const f = g, e = J, { categories: W } = Fe(), X = M(() => W.value.map((s) => s.id === null ? { label: s.name, value: "" } : {
23
+ const f = g, e = J, { categories: W } = Fe(), X = N(() => W.value.map((s) => s.id === null ? { label: s.name, value: "" } : {
24
24
  label: s.name,
25
25
  value: s.id
26
26
  })), Z = (s) => {
@@ -45,7 +45,7 @@ const xe = { class: "space-y-8" }, Ce = {
45
45
  }, te = (s, r) => {
46
46
  const c = w(f.modelValue || []);
47
47
  c[s].value = r, e("update:modelValue", c);
48
- }, I = (s, r, c) => {
48
+ }, M = (s, r, c) => {
49
49
  const E = w(f.modelValue || []);
50
50
  E[s].value[r] = c, e("update:modelValue", E);
51
51
  };
@@ -80,7 +80,7 @@ const xe = { class: "space-y-8" }, Ce = {
80
80
  _: 1
81
81
  }, 8, ["content"])
82
82
  ])) : V("", !0),
83
- (u(!0), d(R, null, N(f.modelValue || [], (T, k) => (u(), d("div", { key: k }, [
83
+ (u(!0), d(R, null, I(f.modelValue || [], (T, k) => (u(), d("div", { key: k }, [
84
84
  _("div", Pe, [
85
85
  _("div", Ee, [
86
86
  t(K, {
@@ -97,7 +97,7 @@ const xe = { class: "space-y-8" }, Ce = {
97
97
  multiselect: "",
98
98
  placeholder: n(m)("menu.scheduler.dialog.sections.filter.placeholder.category")
99
99
  }, null, 8, ["model-value", "onUpdate:modelValue", "items", "placeholder"])) : (u(), d(R, { key: 1 }, [
100
- (u(!0), d(R, null, N(T.value, (F, C) => (u(), d("div", {
100
+ (u(!0), d(R, null, I(T.value, (F, C) => (u(), d("div", {
101
101
  class: "flex items-center gap-4",
102
102
  key: C
103
103
  }, [
@@ -105,7 +105,7 @@ const xe = { class: "space-y-8" }, Ce = {
105
105
  _("div", Te, [
106
106
  t(j, {
107
107
  "model-value": F,
108
- "onUpdate:modelValue": (H) => I(k, C, H)
108
+ "onUpdate:modelValue": (H) => M(k, C, H)
109
109
  }, {
110
110
  append: p(() => [
111
111
  T.value.length > 1 ? (u(), q(U, {
@@ -148,10 +148,10 @@ const xe = { class: "space-y-8" }, Ce = {
148
148
  }, Re = { class: "flex flex-wrap gap-8" }, Ae = {
149
149
  key: 0,
150
150
  class: "pl-32 flex flex-col items-start gap-16"
151
- }, Me = { class: "w-full" }, Ne = {
151
+ }, Ne = { class: "w-full" }, Ie = {
152
152
  key: 0,
153
153
  class: "mt-8"
154
- }, Ie = { class: "text-red-500 text-sm" }, ze = { class: "bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-gray-200" }, Be = { class: "px-16 py-8 flex-1" }, Le = { class: "px-16 py-8" }, qe = { class: "flex gap-8 items-center justify-start" }, Ze = /* @__PURE__ */ re({
154
+ }, Me = { class: "text-red-500 text-sm" }, ze = { class: "bg-fm-color-neutral-gray-100 px-16 py-8 border-b border-b-gray-200" }, Be = { class: "px-16 py-8 flex-1" }, Le = { class: "px-16 py-8" }, qe = { class: "flex gap-8 items-center justify-start" }, Ze = /* @__PURE__ */ re({
155
155
  __name: "SchedulerDialog",
156
156
  props: {
157
157
  categorizedItems: {
@@ -168,7 +168,7 @@ const xe = { class: "space-y-8" }, Ce = {
168
168
  const { t: e } = me(), W = g;
169
169
  J({
170
170
  show: te,
171
- hide: I
171
+ hide: M
172
172
  });
173
173
  const X = {
174
174
  [$.enum.monday]: e("menu.scheduler.days.monday"),
@@ -190,11 +190,11 @@ const xe = { class: "space-y-8" }, Ce = {
190
190
  weekDay: []
191
191
  };
192
192
  }
193
- const ee = he(), le = M(() => ee.version === ge.enum.v4), x = B("all"), Y = B(m()), a = B(m()), P = B(!1);
193
+ const ee = he(), le = N(() => ee.version === ge.enum.v4), x = B("all"), Y = B(m()), a = B(m()), P = B(!1);
194
194
  function te(i) {
195
195
  a.value = i ? w(i) : m(), Y.value = w(a.value), x.value = a.value.timePeriod.length === 0 ? "all" : "custom", P.value = !0;
196
196
  }
197
- function I() {
197
+ function M() {
198
198
  P.value = !1;
199
199
  }
200
200
  function s() {
@@ -243,18 +243,18 @@ const xe = { class: "space-y-8" }, Ce = {
243
243
  };
244
244
  }
245
245
  async function z() {
246
- C.value || (Z("onComplete", j()), I());
246
+ C.value || (Z("onComplete", j()), M());
247
247
  }
248
- const G = M(() => a.value._id ? e("menu.scheduler.dialog.update.title") : e("menu.scheduler.dialog.add.title")), T = M(() => a.value._id ? e("menu.scheduler.dialog.update.action") : e("menu.scheduler.dialog.add.action"));
248
+ const G = N(() => a.value._id ? e("menu.scheduler.dialog.update.title") : e("menu.scheduler.dialog.add.title")), T = N(() => a.value._id ? e("menu.scheduler.dialog.update.action") : e("menu.scheduler.dialog.add.action"));
249
249
  function k(i) {
250
250
  a.value.items = a.value.items.filter((l) => l._id !== i);
251
251
  }
252
- const F = M(() => W.categorizedItems.reduce((i, l) => {
252
+ const F = N(() => W.categorizedItems.reduce((i, l) => {
253
253
  const y = l.items.filter(
254
254
  (h) => a.value.items.some(({ _id: D }) => h._id === D)
255
255
  );
256
256
  return y.length && i.push({ ...l, items: y }), i;
257
- }, [])), C = M(() => x.value === "custom" && a.value.timePeriod.length > 0 ? K(a.value.timePeriod) : null), H = ye(
257
+ }, [])), C = N(() => x.value === "custom" && a.value.timePeriod.length > 0 ? K(a.value.timePeriod) : null), H = ye(
258
258
  () => !_e.isEqual(Y.value, j()),
259
259
  () => {
260
260
  P.value = !1;
@@ -290,7 +290,7 @@ const xe = { class: "space-y-8" }, Ce = {
290
290
  label: n(e)("menu.scheduler.dialog.actions.cancel"),
291
291
  size: "lg",
292
292
  variant: "tertiary",
293
- onClick: I
293
+ onClick: M
294
294
  }, null, 8, ["label"])
295
295
  ])
296
296
  ]),
@@ -342,7 +342,7 @@ const xe = { class: "space-y-8" }, Ce = {
342
342
  default: p(() => [
343
343
  a.value.repeat === n(L).enum.weekly ? (u(), d("div", Oe, [
344
344
  _("div", Re, [
345
- (u(), d(R, null, N(X, (o, b) => t(oe, {
345
+ (u(), d(R, null, I(X, (o, b) => t(oe, {
346
346
  key: b,
347
347
  modelValue: a.value.weekDay,
348
348
  "onUpdate:modelValue": l[2] || (l[2] = (A) => a.value.weekDay = A),
@@ -376,8 +376,8 @@ const xe = { class: "space-y-8" }, Ce = {
376
376
  t(de, { name: "expand" }, {
377
377
  default: p(() => [
378
378
  x.value === "custom" ? (u(), d("div", Ae, [
379
- _("div", Me, [
380
- (u(!0), d(R, null, N(a.value.timePeriod, (o, b) => (u(), d("div", {
379
+ _("div", Ne, [
380
+ (u(!0), d(R, null, I(a.value.timePeriod, (o, b) => (u(), d("div", {
381
381
  key: b,
382
382
  class: "w-full flex gap-8 items-center"
383
383
  }, [
@@ -398,8 +398,8 @@ const xe = { class: "space-y-8" }, Ce = {
398
398
  onClick: (A) => r(b)
399
399
  }, null, 8, ["onClick"])
400
400
  ]))), 128)),
401
- C.value ? (u(), d("div", Ne, [
402
- _("div", Ie, O(C.value), 1)
401
+ C.value ? (u(), d("div", Ie, [
402
+ _("div", Me, O(C.value), 1)
403
403
  ])) : V("", !0)
404
404
  ]),
405
405
  t(S, {
@@ -455,11 +455,11 @@ const xe = { class: "space-y-8" }, Ce = {
455
455
  }, 8, ["categorized-items", "initial-value"])
456
456
  ]),
457
457
  default: p(() => [
458
- (u(!0), d(R, null, N(F.value, (o) => (u(), d("div", {
458
+ (u(!0), d(R, null, I(F.value, (o) => (u(), d("div", {
459
459
  key: o.id
460
460
  }, [
461
461
  _("div", ze, O(o.name), 1),
462
- (u(!0), d(R, null, N(o.items, (b) => (u(), d("div", {
462
+ (u(!0), d(R, null, I(o.items, (b) => (u(), d("div", {
463
463
  key: b._id,
464
464
  class: "flex border-b border-b-gray-100 items-center"
465
465
  }, [
@@ -1,5 +1,5 @@
1
- import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-DTs4Vpdi.js";
2
- import "./discardConfirm-DZwzKO-Q.js";
1
+ import { u as C } from "./ImportProductDialog.vue_vue_type_script_setup_true_lang-CanCWSih.js";
2
+ import "./discardConfirm-DsprInGX.js";
3
3
  var Z = {
4
4
  defaultAmount: 0,
5
5
  defaultCurrency: "USD",
@@ -1,16 +1,16 @@
1
1
  import { defineStore as H } from "pinia";
2
- import { defineComponent as S, computed as x, ref as A, watch as D, resolveComponent as V, createBlock as J, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as k, toDisplayString as C, unref as l, Fragment as N, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
- import { A as O, B as te, y as P, d as E, i as $, b as j, m as h, z as ne, g as T, h as M, u as oe } from "./index.vue_vue_type_script_setup_true_lang-Nl505vPi.js";
2
+ import { defineComponent as M, computed as x, ref as A, watch as S, resolveComponent as V, createBlock as J, openBlock as F, withCtx as w, createVNode as m, createElementVNode as f, normalizeClass as Q, createElementBlock as C, toDisplayString as k, unref as l, Fragment as N, renderSlot as X, renderList as Z, getCurrentInstance as ee } from "vue";
3
+ import { D as O, E as te, B as P, d as E, i as $, b as j, m as h, C as ne, g as T, h as D, u as oe } from "./index.vue_vue_type_script_setup_true_lang-DKab6bV3.js";
4
4
  import { useI18n as q } from "@feedmepos/mf-common";
5
5
  import { useSnackbar as I, components as ae, useDialog as le, FmButtonVariant as ue } from "@feedmepos/ui-library";
6
- import { u as ie, l as se } from "./discardConfirm-DZwzKO-Q.js";
6
+ import { u as ie, l as se } from "./discardConfirm-DsprInGX.js";
7
7
  import { c as re } from "./check-C9mY6LiX.js";
8
8
  import "./RuleConditionSelector.vue_vue_type_style_index_0_lang-CK8z7qA8.js";
9
- import "./menuV2-fTlJdjxi.js";
9
+ import "./menuV2-Btcob7OV.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__ */ S({
13
+ const de = ["value", "disabled"], ce = /* @__PURE__ */ M({
14
14
  __name: "NumberPrecisionInput",
15
15
  props: {
16
16
  modelValue: {},
@@ -23,7 +23,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
23
23
  emits: ["update:modelValue"],
24
24
  setup(_, { emit: g }) {
25
25
  const t = _, n = g, c = x(() => O(t.step ?? 1).precision), d = A(t.modelValue.toString());
26
- D([() => d.value], ([e]) => {
26
+ S([() => d.value], ([e]) => {
27
27
  e === "-" || e === "." ? n("update:modelValue", 0) : n("update:modelValue", +e);
28
28
  });
29
29
  const b = (e) => {
@@ -70,7 +70,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
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" }, ye = { class: "q-mt-xs q-pl-sm t-system text-fsecondary" }, Ve = /* @__PURE__ */ S({
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" }, ye = { class: "q-mt-xs q-pl-sm t-system text-fsecondary" }, Ve = /* @__PURE__ */ M({
74
74
  __name: "UnitMeasurement",
75
75
  props: {
76
76
  title: {
@@ -105,14 +105,14 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
105
105
  p[a] = o, i("update:model-value", p);
106
106
  }
107
107
  const i = g;
108
- return D(
108
+ return S(
109
109
  () => n.precision,
110
110
  () => b(c.value)
111
111
  ), (a, o) => {
112
112
  const p = V("FmButton"), y = V("FmTextField");
113
- return F(), k("div", pe, [
113
+ return F(), C("div", pe, [
114
114
  f("div", ve, [
115
- f("div", fe, C(_.title), 1),
115
+ f("div", fe, k(_.title), 1),
116
116
  m(p, {
117
117
  icon: "delete",
118
118
  variant: "secondary",
@@ -147,11 +147,11 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
147
147
  "onUpdate:modelValue": b,
148
148
  step: 1 / Math.pow(10, n.precision)
149
149
  }, null, 8, ["label", "model-value", "step"]),
150
- f("div", ye, C(l(t)("menu.unit.measurement.preview_label")) + ": " + C(d.value), 1)
150
+ f("div", ye, k(l(t)("menu.unit.measurement.preview_label")) + ": " + k(d.value), 1)
151
151
  ]);
152
152
  };
153
153
  }
154
- }), _e = { 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" }, xe = /* @__PURE__ */ S({
154
+ }), _e = { 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" }, xe = /* @__PURE__ */ M({
155
155
  __name: "Form",
156
156
  props: {
157
157
  initialValue: {}
@@ -184,20 +184,20 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
184
184
  () => {
185
185
  a.value = !1;
186
186
  }
187
- ), z = async () => {
187
+ ), R = async () => {
188
188
  try {
189
189
  i.value = !0;
190
190
  const u = E(e.value);
191
191
  n.initialValue ? await c.updateMenu(
192
192
  {
193
- module: M.enum.unit,
193
+ module: D.enum.unit,
194
194
  operation: T.F_OPERATION_TYPE.update,
195
195
  data: u
196
196
  },
197
197
  u.name
198
198
  ) : await c.updateMenu(
199
199
  {
200
- module: M.enum.unit,
200
+ module: D.enum.unit,
201
201
  operation: T.F_OPERATION_TYPE.create,
202
202
  data: u
203
203
  },
@@ -207,7 +207,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
207
207
  i.value = !1;
208
208
  }
209
209
  };
210
- return D(
210
+ return S(
211
211
  () => a.value,
212
212
  (u) => {
213
213
  u && (e.value = n.initialValue ? E(n.initialValue) : h.generator.initUnit());
@@ -216,8 +216,8 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
216
216
  show: a,
217
217
  trigger: o
218
218
  }), (u, v) => {
219
- const B = V("FmTextField"), R = V("FmStepperField"), Y = V("FmButton"), L = V("fm-button"), G = V("fm-side-sheet");
220
- return F(), k(N, null, [
219
+ const B = V("FmTextField"), Y = V("FmStepperField"), z = V("FmButton"), L = V("fm-button"), G = V("fm-side-sheet");
220
+ return F(), C(N, null, [
221
221
  X(u.$slots, "default", { trigger: o }),
222
222
  m(G, {
223
223
  id: "unit-form",
@@ -225,14 +225,14 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
225
225
  "onUpdate:modelValue": v[4] || (v[4] = (r) => a.value = r),
226
226
  "is-container": l(ae).FmForm,
227
227
  "is-container-props": {
228
- onValidationSuccess: z,
228
+ onValidationSuccess: R,
229
229
  blameFormChildOnValidationFailed: !0
230
230
  },
231
231
  "max-width": 560,
232
232
  "onOn:clickedAway": l(K)
233
233
  }, {
234
234
  "side-sheet-header": w(() => [
235
- f("p", _e, C(d.value), 1)
235
+ f("p", _e, k(d.value), 1)
236
236
  ]),
237
237
  "side-sheet-footer": w(() => [
238
238
  f("div", we, [
@@ -278,7 +278,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
278
278
  }, null, 8, ["label", "modelValue", "rules"])
279
279
  ]),
280
280
  f("div", null, [
281
- m(R, {
281
+ m(Y, {
282
282
  modelValue: e.value.precision,
283
283
  "onUpdate:modelValue": [
284
284
  v[2] || (v[2] = (r) => e.value.precision = r),
@@ -291,12 +291,12 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
291
291
  max: 5
292
292
  }, null, 8, ["modelValue", "label", "placeholder"])
293
293
  ]),
294
- m(Y, {
294
+ m(z, {
295
295
  label: l(t)("menu.unit.measurement.add"),
296
296
  variant: "secondary",
297
297
  onClick: y
298
298
  }, null, 8, ["label"]),
299
- (F(!0), k(N, null, Z(e.value.measurements, (r, U) => (F(), k("div", {
299
+ (F(!0), C(N, null, Z(e.value.measurements, (r, U) => (F(), C("div", {
300
300
  key: r.id
301
301
  }, [
302
302
  m(Ve, {
@@ -351,7 +351,7 @@ const de = ["value", "disabled"], ce = /* @__PURE__ */ S({
351
351
  }).onPrimary(async () => {
352
352
  await n.updateMenu(
353
353
  {
354
- module: M.enum.unit,
354
+ module: D.enum.unit,
355
355
  operation: T.F_OPERATION_TYPE.delete,
356
356
  data: o._id
357
357
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-menu",
3
- "version": "0.32.63-dev.1",
3
+ "version": "0.32.63-dev.2",
4
4
  "files": [
5
5
  "dist"
6
6
  ],