@feedmepos/mf-inventory-portal 1.7.15-dev.3 → 1.7.16

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 (91) hide show
  1. package/dist/{App-B1h66sv9.js → App-B4emWPzG.js} +7 -7
  2. package/dist/{ApprovalView-DKlVcGah.js → ApprovalView-DK92htkN.js} +9 -9
  3. package/dist/{BindingsDialog-CxHlh0kQ.js → BindingsDialog-Cm6EyERk.js} +2 -2
  4. package/dist/{BindingsPicker-BiF5OZEi.js → BindingsPicker-Dqgpg9Tg.js} +2 -2
  5. package/dist/{BindingsTable-CygkFbyE.js → BindingsTable-CFhc3o-0.js} +4 -4
  6. package/dist/{BulkReceiveRequestView-Cf4IHMVn.js → BulkReceiveRequestView-De_Gfe74.js} +19 -19
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D6ehNvzX.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D-3CL62z.js} +1 -1
  8. package/dist/{ClosingDraftView-DFnGCAHQ.js → ClosingDraftView-CmPAxBdA.js} +19 -19
  9. package/dist/{ClosingHistoryView-c51cSbco.js → ClosingHistoryView-IpulrnKA.js} +5 -5
  10. package/dist/{ClosingTemplateView-tKdJEP6p.js → ClosingTemplateView-OfsdZ_0K.js} +16 -16
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-Br8lpoIh.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-tAJLuDO6.js} +1 -1
  12. package/dist/{DefaultView-2PPCmcbd.js → DefaultView-BHh4qute.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-BKSQLP79.js → DeliveryOrderPrintPreview-C-4NXoF6.js} +2 -2
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-DNbWlGwL.js → EmailDialog.vue_vue_type_script_setup_true_lang-CjMENWEw.js} +7093 -6988
  15. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-D-EePpPI.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-2XAyKove.js} +1 -1
  16. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BUrLcbIR.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C9ZZ45U8.js} +2 -2
  17. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BpACpi1j.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CwV6Hlut.js} +2 -2
  18. package/dist/{FmMultiselectDialog-4K4U13Fa.js → FmMultiselectDialog-BDdObapU.js} +1 -1
  19. package/dist/{FmMultiselectDialog-CMUU4YMv.js → FmMultiselectDialog-H1tFhTfx.js} +2 -2
  20. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CWPYtvi-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BMVN1Mtz.js} +130 -123
  21. package/dist/{ImportView-3BL5dbPC.js → ImportView-TWWf3Ylj.js} +6 -6
  22. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Gt9-RVuI.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DP4dVR4F.js} +1 -1
  23. package/dist/{IngredientGroupView-CrQr-Wcc.js → IngredientGroupView-BVLY9TZa.js} +5 -5
  24. package/dist/{IngredientsView-Co_ULkb6.js → IngredientsView-CWol9-A0.js} +15 -15
  25. package/dist/{IntegrationExplorerView-Byz0ZiN7.js → IntegrationExplorerView-DoHyQtGY.js} +4 -4
  26. package/dist/{IntegrationView-BZvXCtuu.js → IntegrationView-DWeid2ZB.js} +14 -14
  27. package/dist/{InventoryBindingForm-D7at6ntj.js → InventoryBindingForm-DnUDQvcr.js} +1 -1
  28. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BfN7YCnp.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-3OCFpD4a.js} +5 -5
  29. package/dist/{InventoryBindingSummary-DIWHwJwb.js → InventoryBindingSummary-Boe2MJCu.js} +1 -1
  30. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DLIYFBaL.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-RF62oUjn.js} +1 -1
  31. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BIjAFa7R.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DppLj3C5.js} +1 -1
  32. package/dist/{ProductionView-Cg8tXEj7.js → ProductionView-CUQW-it2.js} +7 -7
  33. package/dist/{PublishView-qzVWXhU2.js → PublishView-D60CmZZ5.js} +3 -3
  34. package/dist/{PurchaseOrderPrintPreview-Dv107ZcE.js → PurchaseOrderPrintPreview-BaL5qJUa.js} +2 -2
  35. package/dist/{ReceiveRequestView-BoDIlSIR.js → ReceiveRequestView-CqUQHs-M.js} +14 -14
  36. package/dist/{RecipeView-CZExmd9h.js → RecipeView-CticYc7S.js} +17 -17
  37. package/dist/{SettingsView-JvHtBOeh.js → SettingsView-CFRUTaJe.js} +4 -4
  38. package/dist/{StockView-DtAlqzrF.js → StockView-CbVc1mcX.js} +21 -21
  39. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DWxA3wuR.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CppXhk4E.js} +1 -1
  40. package/dist/{SupplierView-DIxYLwEk.js → SupplierView-DgNYiPI8.js} +14 -13
  41. package/dist/{SurchargeView-BeMy7-Lu.js → SurchargeView-mNeMs_1T.js} +6 -6
  42. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DrOVu6wg.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-o3RcEtM9.js} +2 -2
  43. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Chhxtkov.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BEZmJBAc.js} +1 -1
  44. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-2LCcSzCa.js → TransferDetails.vue_vue_type_script_setup_true_lang-BNw1W23J.js} +20 -20
  45. package/dist/{TransferTemplateView-DK_UHrGt.js → TransferTemplateView-BmOGX7FI.js} +20 -20
  46. package/dist/{UnitCostHistoryView-CbX9hG9F.js → UnitCostHistoryView-DQOr_wX7.js} +4 -4
  47. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CDQ7c1Gl.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DVLaA1ZA.js} +4 -4
  48. package/dist/{UnitView-Cc_PTKs_.js → UnitView-BGrGPUHA.js} +7 -7
  49. package/dist/{WarehouseView-a-D3zs6h.js → WarehouseView-DafgiJVu.js} +334 -334
  50. package/dist/{WastageTemplateView-CFRi5Pvf.js → WastageTemplateView-BXemAjAM.js} +14 -14
  51. package/dist/{app-D8j93Oqu.js → app-VWFXZ7dF.js} +64 -16
  52. package/dist/app.d.ts +48 -0
  53. package/dist/app.js +1 -1
  54. package/dist/{closing-template-C1b4O-N3.js → closing-template-Dxu8tjVE.js} +1 -1
  55. package/dist/components/FmUnitInputProps.d.ts +1 -0
  56. package/dist/{date2-uOSplHdf.js → date2-B7qVMfEK.js} +1 -1
  57. package/dist/{dayjs.min-jzzpE5jZ.js → dayjs.min-BIGL1WMx.js} +1 -1
  58. package/dist/{decimal-8I4iIvBr.js → decimal-wJRuStYp.js} +2 -2
  59. package/dist/{defineDeepModel-DBat73w6.js → defineDeepModel-B-N4q6D_.js} +1 -1
  60. package/dist/{duplicate-template-hyvvKKZn.js → duplicate-template-Dc3AP8z8.js} +1 -1
  61. package/dist/{feature-BtW2IuYH.js → feature-Bj408URk.js} +2 -2
  62. package/dist/{format-time-from-id-TNzYsGd2.js → format-time-from-id-COQRbS3v.js} +1 -1
  63. package/dist/{format-unit-display-Bv9J30wI.js → format-unit-display-Byg_gJEi.js} +12 -12
  64. package/dist/{import-export.helper-xpElLH-b.js → import-export.helper-CmO5mh9c.js} +6 -6
  65. package/dist/{index-CTQTVKeu.js → index-B39d3fcS.js} +1 -1
  66. package/dist/{index-BH22SMzP.js → index-B6Y1HGgl.js} +3 -3
  67. package/dist/{index-CCpcCOf2.js → index-l0UKme3O.js} +1 -1
  68. package/dist/{inventory-core-dart.default-BfVqWKxc.js → inventory-core-dart.default-BgoHhCBy.js} +1 -1
  69. package/dist/{lz-string-BXcuXXWX.js → lz-string-dF-T74Ve.js} +1 -1
  70. package/dist/{netsuite-Bawdsy6u.js → netsuite-vxswdJAv.js} +2 -2
  71. package/dist/{number-q25U2atb.js → number-B2hvDkgC.js} +4 -3
  72. package/dist/{predefined-templates-DFETDxr0.js → predefined-templates-BZeAQ_96.js} +1 -1
  73. package/dist/{purchase-order-template-BTSTgbF-.js → purchase-order-template-D8-2QkSS.js} +1 -1
  74. package/dist/{recalculationUtils-B-9ZEV5d.js → recalculationUtils-CtJ3CDdI.js} +1 -1
  75. package/dist/{rules-_M2oshOW.js → rules-CaNiIfda.js} +2 -2
  76. package/dist/{stock-CUsHHW7_.js → stock-7sjLxL9-.js} +1 -1
  77. package/dist/{stock-BdtZ5yDl.js → stock-BxBkb1H4.js} +3 -3
  78. package/dist/{supplier-By-0Dy62.js → supplier-DVDpK8GC.js} +2 -2
  79. package/dist/{surcharge-60G2Qke7.js → surcharge-iyoTwxxJ.js} +1 -1
  80. package/dist/tsconfig.app.tsbuildinfo +1 -1
  81. package/dist/{uom-rules-DeGuMW0s.js → uom-rules-K8delv4L.js} +1 -1
  82. package/dist/{use-ingredient-select-dialog-BVOtYoKp.js → use-ingredient-select-dialog-wMb7I-1I.js} +2 -2
  83. package/dist/{use-inventory-binding-dialog-CHm1Ezmr.js → use-inventory-binding-dialog-B9zBF8jQ.js} +2 -2
  84. package/dist/{use-template-enabled-locations-C9vWaXj1.js → use-template-enabled-locations-DAzUQpt2.js} +2 -2
  85. package/dist/{use-transfer-locations-VSzkSxBy.js → use-transfer-locations-DlPwFbxy.js} +2 -2
  86. package/dist/{useHrmPermission-B48iHLre.js → useHrmPermission-CewYScjQ.js} +1 -1
  87. package/dist/{useNavigationMenu-DwRXSSh_.js → useNavigationMenu-CHp8gtOD.js} +2 -2
  88. package/dist/{useSseClient-QeF0izVY.js → useSseClient-BoACuw50.js} +1 -1
  89. package/dist/{vue-i18n-DLckaDV3.js → vue-i18n-BYzrWQxg.js} +319 -319
  90. package/dist/{xlsx.util-BjqUaVU_.js → xlsx.util-Fz9b_www.js} +2 -2
  91. package/package.json +4 -4
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as g, ref as _, watch as d, computed as v, resolveComponent as l, createBlock as h, openBlock as y, withCtx as R, createElementVNode as i, createVNode as w, toDisplayString as x } from "vue";
2
- import { c } from "./date2-uOSplHdf.js";
2
+ import { c } from "./date2-B7qVMfEK.js";
3
3
  function F() {
4
4
  const t = /* @__PURE__ */ new Date();
5
5
  return t.setDate(t.getDate() - 15), {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as g, mergeModels as I, useModel as z, computed as b, ref as _, resolveComponent as n, createElementBlock as h, openBlock as o, normalizeStyle as B, createElementVNode as f, createVNode as N, withCtx as E, createBlock as s, createCommentVNode as F, Fragment as S, renderList as R, unref as r } from "vue";
2
- import { z as u } from "./app-D8j93Oqu.js";
3
- import { F as T } from "./FmMultiselectDialog-CMUU4YMv.js";
2
+ import { z as u } from "./app-VWFXZ7dF.js";
3
+ import { F as T } from "./FmMultiselectDialog-H1tFhTfx.js";
4
4
  const q = { class: "overflow-y-auto h-full pb-8" }, L = /* @__PURE__ */ g({
5
5
  __name: "FmFilterableMenuOptions",
6
6
  props: /* @__PURE__ */ I({
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as V, mergeModels as F, computed as M, useModel as f, resolveComponent as g, createElementBlock as s, openBlock as l, unref as n, renderSlot as R, createElementVNode as p, normalizeClass as b, createCommentVNode as r, createBlock as a, withCtx as C, createVNode as U, Fragment as A, renderList as L } from "vue";
2
2
  import { useI18n as T } from "@feedmepos/mf-common";
3
- import { _ as D } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D6ehNvzX.js";
4
- import { _ as I } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-D-EePpPI.js";
3
+ import { _ as D } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D-3CL62z.js";
4
+ import { _ as I } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-2XAyKove.js";
5
5
  import { useBreakpoints as N } from "@feedmepos/ui-library";
6
6
  import { u as Q } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
7
7
  import { D as k } from "./app-C39bYJmq.js";
@@ -1,7 +1,7 @@
1
1
  import { defineStore as p } from "pinia";
2
2
  import { useDialog as y } from "@feedmepos/ui-library";
3
3
  import { useI18n as v } from "@feedmepos/mf-common";
4
- import { a } from "./FmMultiselectDialog-CMUU4YMv.js";
4
+ import { a } from "./FmMultiselectDialog-H1tFhTfx.js";
5
5
  import { h as S } from "vue";
6
6
  const w = p("inventoryMultiSelectDialog", () => {
7
7
  const l = y(), { t: n } = v();
@@ -3,8 +3,8 @@ var Pe = (F, i, l) => i in F ? He(F, i, { enumerable: !0, configurable: !0, writ
3
3
  var ve = (F, i, l) => Pe(F, typeof i != "symbol" ? i + "" : i, l);
4
4
  import { defineComponent as ye, computed as x, ref as $, watch as ge, createElementBlock as f, openBlock as d, normalizeStyle as z, Fragment as V, renderList as O, createCommentVNode as D, renderSlot as ke, useSlots as Oe, onMounted as Ue, onUnmounted as Ee, reactive as ee, resolveComponent as T, createElementVNode as B, createVNode as k, createTextVNode as Ke, toDisplayString as P, unref as L, createSlots as je, withCtx as w, createBlock as I, resolveDynamicComponent as pe, normalizeClass as fe, withModifiers as Ne, Transition as ze } from "vue";
5
5
  import { useDialogChild as Ge } from "@feedmepos/ui-library";
6
- import { z as he } from "./app-D8j93Oqu.js";
7
- import { d as Je } from "./index-CTQTVKeu.js";
6
+ import { z as he } from "./app-VWFXZ7dF.js";
7
+ import { d as Je } from "./index-B39d3fcS.js";
8
8
  /* empty css */
9
9
  import { useI18n as Re } from "@feedmepos/mf-common";
10
10
  import { P as We, J as be, D as Qe } from "./app-C39bYJmq.js";
@@ -1,52 +1,52 @@
1
- import { defineComponent as ue, mergeModels as W, useModel as re, computed as v, ref as U, watch as H, onBeforeUnmount as me, inject as ce, resolveComponent as x, createElementBlock as y, openBlock as d, createElementVNode as u, createVNode as g, createCommentVNode as A, withCtx as _, renderSlot as Q, withDirectives as de, normalizeClass as q, toDisplayString as h, vModelText as pe, createBlock as R, Fragment as fe, renderList as ve, createSlots as be, createTextVNode as ye } from "vue";
2
- import { l as he } from "./netsuite-Bawdsy6u.js";
3
- import { w as D } from "./app-D8j93Oqu.js";
4
- import { g as O, c as xe, a as b, t as ge, e as G, m as Me, b as _e, u as Fe } from "./number-q25U2atb.js";
5
- import { I, a as Ae } from "./rules-_M2oshOW.js";
1
+ import { defineComponent as re, mergeModels as H, useModel as me, computed as v, ref as U, watch as Q, onBeforeUnmount as ce, inject as de, resolveComponent as x, createElementBlock as y, openBlock as d, createElementVNode as l, createVNode as g, createCommentVNode as A, withCtx as _, renderSlot as G, withDirectives as pe, normalizeClass as q, toDisplayString as h, vModelText as fe, createBlock as R, Fragment as ve, renderList as be, createSlots as ye, createTextVNode as he } from "vue";
2
+ import { l as xe } from "./netsuite-vxswdJAv.js";
3
+ import { w as C } from "./app-VWFXZ7dF.js";
4
+ import { g as O, c as ge, a as b, t as Me, e as Z, m as _e, b as Fe, u as Ae } from "./number-B2hvDkgC.js";
5
+ import { I as B, a as Be } from "./rules-CaNiIfda.js";
6
6
  import "@feedmepos/ui-library";
7
- import { P as Ie } from "./inventory-core-dart.default-BfVqWKxc.js";
8
- import { u as Pe, a as ke } from "./uom-rules-DeGuMW0s.js";
9
- function Z() {
7
+ import { P as Ie } from "./inventory-core-dart.default-BgoHhCBy.js";
8
+ import { u as Pe, a as ke } from "./uom-rules-K8delv4L.js";
9
+ function J() {
10
10
  return {
11
- amount: D.reset()
11
+ amount: C.reset()
12
12
  };
13
13
  }
14
- function K() {
14
+ function X() {
15
15
  return function(p) {
16
- return I()(p.amountAsString);
16
+ return B()(p.amountAsString);
17
17
  };
18
18
  }
19
- function tt(r) {
19
+ function nt(r) {
20
20
  return function(t) {
21
- return I()(t.amountAsString) !== !0 ? !0 : +t.amountAsString < r ? `Must be at least ${r}` : !0;
21
+ return B()(t.amountAsString) !== !0 ? !0 : +t.amountAsString < r ? `Must be at least ${r}` : !0;
22
22
  };
23
23
  }
24
- function nt(r) {
24
+ function ot(r) {
25
25
  return function(t) {
26
- return I()(t.amountAsString) !== !0 ? !0 : +t.amountAsString > r ? `Must be at most ${r}` : !0;
26
+ return B()(t.amountAsString) !== !0 ? !0 : +t.amountAsString > r ? `Must be at most ${r}` : !0;
27
27
  };
28
28
  }
29
- function J(r, p = !1) {
29
+ function K(r, p = !1) {
30
30
  return function(c) {
31
- const s = K()(c);
31
+ const s = X()(c);
32
32
  if (s != !0)
33
33
  return p ? s : !0;
34
- const P = typeof r == "number" ? r : O(r, c.modelValue.measurement);
35
- return xe(+c.amountAsString).precision > P ? `Cannot exceed precision more than ${b({
34
+ const I = typeof r == "number" ? r : O(r, c.modelValue.measurement);
35
+ return ge(+c.amountAsString).precision > I ? `Cannot exceed precision more than ${b({
36
36
  amount: 1,
37
- precision: P
37
+ precision: I
38
38
  })}` : !0;
39
39
  };
40
40
  }
41
- function ot(r) {
42
- const p = Ae(r);
41
+ function st(r) {
42
+ const p = Be(r);
43
43
  return function(c) {
44
44
  return p(c.modelValue.amount);
45
45
  };
46
46
  }
47
- function st(r) {
47
+ function it(r) {
48
48
  return function(t) {
49
- if (I()(t.amountAsString) !== !0)
49
+ if (B()(t.amountAsString) !== !0)
50
50
  return !0;
51
51
  const s = Ie.validateQuantityAgainstTemplateItem({
52
52
  quantity: t.modelValue.amount,
@@ -55,27 +55,27 @@ function st(r) {
55
55
  return s.length === 0 ? !0 : s[0];
56
56
  };
57
57
  }
58
- const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { class: "flex-1" }, De = { class: "flex items-center gap-4" }, Ce = { class: "flex-1 flex gap-4" }, Se = { class: "shrink-0 grow basis-2/5" }, we = {
58
+ const Ue = { class: "flex flex-col" }, Re = { class: "flex flex-col" }, Ce = { class: "flex-1" }, De = { class: "flex items-center gap-4" }, we = { class: "flex-1 flex gap-4" }, Se = { class: "shrink-0 grow basis-2/5" }, Ne = {
59
59
  key: 0,
60
60
  class: "text-fm-color-typo-secondary"
61
- }, Ne = {
61
+ }, Ve = {
62
62
  key: 0,
63
63
  class: "flex"
64
- }, Ve = { class: "line-clamp-1 text-ellipsis break-all" }, Te = { class: "flex items-center gap-4" }, $e = { class: "flex items-center" }, Le = { class: "line-clamp-1 text-ellipsis break-all" }, qe = { class: "max-w-[200px] flex flex-col gap-[1px]" }, Oe = { class: "flex flex-col" }, je = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ze = {
64
+ }, Te = { class: "line-clamp-1 text-ellipsis break-all" }, $e = { class: "flex items-center gap-4" }, Le = { class: "flex items-center" }, qe = { class: "line-clamp-1 text-ellipsis break-all" }, Oe = { class: "max-w-[200px] flex flex-col gap-[1px]" }, je = { class: "flex flex-col" }, ze = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ee = {
65
65
  key: 1,
66
66
  class: "flex flex-col gap-4 pl-8 shrink-0"
67
- }, Ee = {
68
- class: "flex items-center",
69
- style: { "pointer-events": "none" }
70
67
  }, We = {
71
68
  class: "flex items-center",
72
69
  style: { "pointer-events": "none" }
73
70
  }, He = {
71
+ class: "flex items-center",
72
+ style: { "pointer-events": "none" }
73
+ }, Qe = {
74
74
  key: 0,
75
75
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary mt-1"
76
- }, at = /* @__PURE__ */ ue({
76
+ }, at = /* @__PURE__ */ re({
77
77
  __name: "FmUnitInput",
78
- props: /* @__PURE__ */ W({
78
+ props: /* @__PURE__ */ H({
79
79
  modelValue: {},
80
80
  unit: {},
81
81
  rules: {},
@@ -89,6 +89,7 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
89
89
  disableUnit: { type: Boolean },
90
90
  stepperOnly: { type: Boolean },
91
91
  stepper: {},
92
+ showMeasurementConversion: { type: Boolean },
92
93
  placeholder: {},
93
94
  minLength: {},
94
95
  maxLength: {},
@@ -122,23 +123,23 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
122
123
  modelValue: {},
123
124
  modelModifiers: {}
124
125
  }),
125
- emits: /* @__PURE__ */ W(["update:amount", "update:measurement"], ["update:modelValue"]),
126
+ emits: /* @__PURE__ */ H(["update:amount", "update:measurement"], ["update:modelValue"]),
126
127
  setup(r, { emit: p }) {
127
- const t = r, c = p, s = re(r, "modelValue"), P = I(), C = v(() => {
128
+ const t = r, c = p, s = me(r, "modelValue"), I = B(), D = v(() => {
128
129
  var n;
129
130
  return O(t.unit, (n = s.value) == null ? void 0 : n.measurement);
130
131
  }), f = U((() => {
131
- var a;
132
- const e = ((a = s.value) == null ? void 0 : a.amount) ?? D.reset(), n = _e(e), i = t.formatMinimumPrecision ?? n.precision, l = Fe(n, i);
133
- return b(l);
132
+ var i;
133
+ const e = ((i = s.value) == null ? void 0 : i.amount) ?? C.reset(), n = Fe(e), a = t.formatMinimumPrecision ?? n.precision, u = Ae(n, a);
134
+ return b(u);
134
135
  })());
135
136
  let F = null;
136
- H(f, (e) => {
137
+ Q(f, (e) => {
137
138
  F && clearTimeout(F), F = setTimeout(() => {
138
139
  var o;
139
- const n = P(e), i = t.precision ?? C.value, a = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > i ? t.formatMinimumPrecision : i;
140
+ const n = I(e), a = t.precision ?? D.value, i = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > a ? t.formatMinimumPrecision : a;
140
141
  if (n == !0) {
141
- const M = ge(+e, a);
142
+ const M = Me(+e, i);
142
143
  ((o = s.value) == null ? void 0 : o.amount) !== M && (s.value = {
143
144
  ...s.value,
144
145
  amount: M
@@ -146,27 +147,31 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
146
147
  }
147
148
  c("update:amount", e);
148
149
  }, 500);
149
- }), me(() => {
150
+ }), ce(() => {
150
151
  F && clearTimeout(F);
151
152
  });
152
- const Y = Symbol.for("fm:form-state"), S = ce(Y, null), k = v(() => t.disabled ?? (S == null ? void 0 : S.getDisabled()) ?? !1), ee = U(), w = U(!1), j = U(!1), te = v(() => w.value || j.value), ne = Pe(), oe = v(() => {
153
- var a;
154
- const e = ne.value, n = t.unit.measurements.filter((o) => !ke(o, e)).filter((o) => o.abbrev !== t.unit.abbrev || +b(o.conversion) != 1), i = he.groupBy(
153
+ const ee = Symbol.for("fm:form-state"), w = de(ee, null), P = v(() => t.disabled ?? (w == null ? void 0 : w.getDisabled()) ?? !1), te = U(), S = U(!1), j = U(!1), ne = v(() => S.value || j.value), oe = Pe();
154
+ function z(e) {
155
+ return `1 ${e.abbrev} = ${b(e.conversion)} ${t.unit.abbrev}`;
156
+ }
157
+ const se = v(() => {
158
+ var i;
159
+ const e = oe.value, n = t.unit.measurements.filter((o) => !ke(o, e)).filter((o) => o.abbrev !== t.unit.abbrev || +b(o.conversion) != 1), a = xe.groupBy(
155
160
  n,
156
161
  (o) => `${o.abbrev}${b(o.conversion)}`
157
- ), l = Object.values(i).map((o) => o[0]);
162
+ ), u = Object.values(a).map((o) => o[0]);
158
163
  return [
159
164
  {
160
- label: (a = t.unit) == null ? void 0 : a.abbrev,
165
+ label: (i = t.unit) == null ? void 0 : i.abbrev,
161
166
  value: null,
162
167
  isBaseUnit: !0,
163
168
  conversionLabel: null
164
169
  },
165
- ...l.map((o) => ({
170
+ ...u.map((o) => ({
166
171
  label: o.abbrev,
167
172
  value: o.id,
168
173
  isBaseUnit: !1,
169
- conversionLabel: `1 ${o.abbrev} = ${b(o.conversion)} ${t.unit.abbrev}`
174
+ conversionLabel: z(o)
170
175
  }))
171
176
  ];
172
177
  }), N = v({
@@ -177,23 +182,23 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
177
182
  set(e) {
178
183
  if (e == null)
179
184
  s.value = {
180
- ...s.value ?? Z(),
185
+ ...s.value ?? J(),
181
186
  measurement: null
182
187
  }, c("update:measurement", null);
183
188
  else {
184
- const n = t.unit.measurements.find((i) => i.id === e) ?? null;
189
+ const n = t.unit.measurements.find((a) => a.id === e) ?? null;
185
190
  s.value = {
186
- ...s.value ?? Z(),
191
+ ...s.value ?? J(),
187
192
  measurement: n
188
193
  }, c("update:measurement", n);
189
194
  }
190
195
  }
191
196
  });
192
- H(N, (e, n) => {
197
+ Q(N, (e, n) => {
193
198
  var m;
194
199
  if (!t.convertAmountOnChangeUnit)
195
200
  return;
196
- const i = ((m = s.value) == null ? void 0 : m.amount) ?? D.reset(), l = t.unit.measurements.find((B) => B.id === n) ?? null, a = t.unit.measurements.find((B) => B.id === e) ?? null, o = l ? G(i, l.conversion) : i, M = a ? Me(o, a.conversion) : o, $ = O(t.unit, a), L = D.convertPrecision({
201
+ const a = ((m = s.value) == null ? void 0 : m.amount) ?? C.reset(), u = t.unit.measurements.find((k) => k.id === n) ?? null, i = t.unit.measurements.find((k) => k.id === e) ?? null, o = u ? Z(a, u.conversion) : a, M = i ? _e(o, i.conversion) : o, $ = O(t.unit, i), L = C.convertPrecision({
197
202
  value: M,
198
203
  precision: $
199
204
  });
@@ -205,99 +210,101 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
205
210
  }), T = v(() => {
206
211
  var e, n;
207
212
  return ((n = (e = s.value) == null ? void 0 : e.measurement) == null ? void 0 : n.abbrev) ?? t.unit.abbrev;
208
- }), z = v(() => {
209
- var l, a;
213
+ }), E = v(() => {
214
+ var u, i;
210
215
  if (V.value) return null;
211
- const e = (l = s.value) == null ? void 0 : l.measurement;
216
+ const e = (u = s.value) == null ? void 0 : u.measurement;
212
217
  if (!e) return null;
213
- const n = (a = s.value) == null ? void 0 : a.amount;
218
+ if (t.showMeasurementConversion)
219
+ return z(e);
220
+ const n = (i = s.value) == null ? void 0 : i.amount;
214
221
  if (!n) return null;
215
- const i = G(n, e.conversion);
216
- return `= ${b(i)} ${t.unit.abbrev}`;
217
- }), se = v(
222
+ const a = Z(n, e.conversion);
223
+ return `= ${b(a)} ${t.unit.abbrev}`;
224
+ }), ie = v(
218
225
  () => {
219
226
  var e;
220
227
  return ((e = t.rules) == null ? void 0 : e.map(
221
- (n) => (i) => typeof n == "function" ? n(i) : n
228
+ (n) => (a) => typeof n == "function" ? n(a) : n
222
229
  )) ?? [];
223
230
  }
224
231
  ), ae = v(() => [...t.applyDefaultRules ? [
225
- K(),
226
- typeof t.precision == "number" ? J(t.precision) : J(t.unit)
227
- ] : [], ...se.value]);
228
- function E(e) {
229
- const n = t.precision ?? C.value, l = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > n ? t.formatMinimumPrecision : n, a = e.toFixed(l), o = a.includes(".") ? a.replace(/0+$/, "") : a;
232
+ X(),
233
+ typeof t.precision == "number" ? K(t.precision) : K(t.unit)
234
+ ] : [], ...ie.value]);
235
+ function W(e) {
236
+ const n = t.precision ?? D.value, u = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > n ? t.formatMinimumPrecision : n, i = e.toFixed(u), o = i.includes(".") ? i.replace(/0+$/, "") : i;
230
237
  return o.endsWith(".") ? o.slice(0, o.length - 1) : o;
231
238
  }
232
- function ie() {
239
+ function ue() {
233
240
  if (!t.stepper)
234
241
  return;
235
242
  const e = +f.value + +b(t.stepper);
236
- f.value = E(e);
243
+ f.value = W(e);
237
244
  }
238
245
  function le() {
239
246
  if (!t.stepper)
240
247
  return;
241
248
  const e = +f.value - +b(t.stepper);
242
- f.value = E(e);
249
+ f.value = W(e);
243
250
  }
244
251
  return (e, n) => {
245
- const i = x("FmLabel"), l = x("FmIcon"), a = x("FmMenuItem"), o = x("FmMenu"), M = x("FmTooltip"), $ = x("FmField"), L = x("FmFormGroup");
246
- return d(), y("div", Be, [
247
- u("div", Ue, [
248
- u("div", Re, [
249
- g(i, {
252
+ const a = x("FmLabel"), u = x("FmIcon"), i = x("FmMenuItem"), o = x("FmMenu"), M = x("FmTooltip"), $ = x("FmField"), L = x("FmFormGroup");
253
+ return d(), y("div", Ue, [
254
+ l("div", Re, [
255
+ l("div", Ce, [
256
+ g(a, {
250
257
  label: e.label,
251
258
  disabled: e.disabled,
252
259
  required: e.labelMark === "required",
253
260
  optional: e.labelMark === "optional"
254
261
  }, null, 8, ["label", "disabled", "required", "optional"])
255
262
  ]),
256
- g($, { focused: te.value }, {
263
+ g($, { focused: ne.value }, {
257
264
  default: _(() => [
258
- u("div", De, [
259
- Q(e.$slots, "prepend"),
260
- u("div", Ce, [
261
- u("div", Se, [
265
+ l("div", De, [
266
+ G(e.$slots, "prepend"),
267
+ l("div", we, [
268
+ l("div", Se, [
262
269
  e.stepperOnly ? (d(), y("span", {
263
270
  key: 0,
264
271
  class: q({
265
272
  "fm-text-field--input fm-typo-en-body-lg-400": !0,
266
- "text-fm-color-typo-primary": !k.value,
267
- "text-fm-color-typo-disabled": k.value
273
+ "text-fm-color-typo-primary": !P.value,
274
+ "text-fm-color-typo-disabled": P.value
268
275
  })
269
- }, h(f.value), 3)) : de((d(), y("input", {
276
+ }, h(f.value), 3)) : pe((d(), y("input", {
270
277
  key: 1,
271
278
  type: "text",
272
279
  ref_key: "inputRef",
273
- ref: ee,
274
- onFocus: n[0] || (n[0] = () => w.value = !0),
275
- onBlur: n[1] || (n[1] = () => w.value = !1),
280
+ ref: te,
281
+ onFocus: n[0] || (n[0] = () => S.value = !0),
282
+ onBlur: n[1] || (n[1] = () => S.value = !1),
276
283
  "onUpdate:modelValue": n[2] || (n[2] = (m) => f.value = m),
277
284
  class: q({
278
285
  "fm-text-field--input fm-typo-en-body-lg-400": !0,
279
- "text-fm-color-typo-primary": !k.value,
280
- "text-fm-color-typo-disabled": k.value
286
+ "text-fm-color-typo-primary": !P.value,
287
+ "text-fm-color-typo-disabled": P.value
281
288
  })
282
289
  }, null, 34)), [
283
- [pe, f.value]
290
+ [fe, f.value]
284
291
  ])
285
292
  ]),
286
- e.separator ? (d(), y("div", we, h(e.separator), 1)) : A("", !0),
287
- u("div", {
293
+ e.separator ? (d(), y("div", Ne, h(e.separator), 1)) : A("", !0),
294
+ l("div", {
288
295
  class: q([e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"])
289
296
  }, [
290
297
  g(M, { "z-index": 51 }, {
291
298
  content: _(() => [
292
- ye(h(T.value), 1)
299
+ he(h(T.value), 1)
293
300
  ]),
294
301
  default: _(() => [
295
- e.disableUnit ? (d(), y("div", Ne, [
296
- V.value ? A("", !0) : (d(), R(l, {
302
+ e.disableUnit ? (d(), y("div", Ve, [
303
+ V.value ? A("", !0) : (d(), R(u, {
297
304
  key: 0,
298
305
  name: "square_foot"
299
306
  })),
300
- u("div", Ve, h(T.value), 1)
307
+ l("div", Te, h(T.value), 1)
301
308
  ])) : (d(), R(o, {
302
309
  key: 1,
303
310
  onMenuChanged: n[3] || (n[3] = (m) => j.value = m),
@@ -306,32 +313,32 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
306
313
  disabled: e.disabled
307
314
  }, {
308
315
  "menu-button": _(() => [
309
- u("div", Te, [
310
- u("div", $e, [
311
- V.value ? A("", !0) : (d(), R(l, {
316
+ l("div", $e, [
317
+ l("div", Le, [
318
+ V.value ? A("", !0) : (d(), R(u, {
312
319
  key: 0,
313
320
  name: "square_foot"
314
321
  })),
315
- u("div", Le, h(T.value), 1)
322
+ l("div", qe, h(T.value), 1)
316
323
  ]),
317
- g(l, { name: "keyboard_arrow_down" })
324
+ g(u, { name: "keyboard_arrow_down" })
318
325
  ])
319
326
  ]),
320
327
  default: _(() => [
321
- u("div", qe, [
322
- (d(!0), y(fe, null, ve(oe.value, (m) => (d(), R(a, {
328
+ l("div", Oe, [
329
+ (d(!0), y(ve, null, be(se.value, (m) => (d(), R(i, {
323
330
  key: m.value ?? void 0,
324
331
  label: m.label,
325
332
  icon: m.isBaseUnit ? void 0 : "square_foot",
326
333
  "model-value": m.value == N.value,
327
- onClick: (B) => N.value = m.value
328
- }, be({ _: 2 }, [
334
+ onClick: (k) => N.value = m.value
335
+ }, ye({ _: 2 }, [
329
336
  m.conversionLabel ? {
330
337
  name: "label",
331
338
  fn: _(() => [
332
- u("div", Oe, [
333
- u("span", null, h(m.label), 1),
334
- u("span", je, h(m.conversionLabel), 1)
339
+ l("div", je, [
340
+ l("span", null, h(m.label), 1),
341
+ l("span", ze, h(m.conversionLabel), 1)
335
342
  ])
336
343
  ]),
337
344
  key: "0"
@@ -345,24 +352,24 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
345
352
  _: 1
346
353
  })
347
354
  ], 2),
348
- e.stepper ? (d(), y("div", ze, [
349
- u("div", {
355
+ e.stepper ? (d(), y("div", Ee, [
356
+ l("div", {
350
357
  class: "w-24 h-12 flex items-center justify-center fm-corner-radius-sm bg-fm-color-neutral-gray-100 hover:bg-fm-color-neutral-gray-200",
351
- onClick: ie
358
+ onClick: ue
352
359
  }, [
353
- u("div", Ee, [
354
- g(l, {
360
+ l("div", We, [
361
+ g(u, {
355
362
  name: "expand_less",
356
363
  size: "md"
357
364
  })
358
365
  ])
359
366
  ]),
360
- u("div", {
367
+ l("div", {
361
368
  class: "w-24 h-12 flex items-center justify-center fm-corner-radius-sm bg-fm-color-neutral-gray-100 hover:bg-fm-color-neutral-gray-200",
362
369
  onClick: le
363
370
  }, [
364
- u("div", We, [
365
- g(l, {
371
+ l("div", He, [
372
+ g(u, {
366
373
  name: "expand_more",
367
374
  size: "md"
368
375
  })
@@ -370,7 +377,7 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
370
377
  ])
371
378
  ])) : A("", !0)
372
379
  ]),
373
- Q(e.$slots, "append")
380
+ G(e.$slots, "append")
374
381
  ])
375
382
  ]),
376
383
  _: 3
@@ -384,18 +391,18 @@ const Be = { class: "flex flex-col" }, Ue = { class: "flex flex-col" }, Re = { c
384
391
  "helper-text": e.helperText,
385
392
  "helper-state": e.helperState
386
393
  }, null, 8, ["model-value", "info", "rules", "helper-text", "helper-state"]),
387
- z.value ? (d(), y("div", He, h(z.value), 1)) : A("", !0)
394
+ E.value ? (d(), y("div", Qe, h(E.value), 1)) : A("", !0)
388
395
  ]);
389
396
  };
390
397
  }
391
398
  });
392
399
  export {
393
- ot as F,
400
+ st as F,
394
401
  at as _,
395
- tt as a,
396
- nt as b,
397
- K as c,
398
- J as d,
399
- Z as e,
400
- st as f
402
+ nt as a,
403
+ ot as b,
404
+ X as c,
405
+ K as d,
406
+ J as e,
407
+ it as f
401
408
  };
@@ -2,15 +2,15 @@ import { defineComponent as Te, ref as F, computed as L, watch as Be, resolveCom
2
2
  import { u as je, _ as ke } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
3
3
  import { useCoreStore as Re, useI18n as Fe } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as Oe, useSnackbar as Ae, useDialog as He, useBreakpoints as ze } from "@feedmepos/ui-library";
5
- import { u as Ke } from "./feature-BtW2IuYH.js";
6
- import { a as ie } from "./app-D8j93Oqu.js";
7
- import "./dayjs.min-jzzpE5jZ.js";
5
+ import { u as Ke } from "./feature-Bj408URk.js";
6
+ import { a as ie } from "./app-VWFXZ7dF.js";
7
+ import "./dayjs.min-BIGL1WMx.js";
8
8
  import "./app-C39bYJmq.js";
9
9
  import "./FmAdminBadge-DlplQOHb.js";
10
- import { s as De, a as Ve, d as We, t as Ce, r as Le } from "./xlsx.util-BjqUaVU_.js";
11
- import { s as Je, g as Xe, b as qe, d as Ge } from "./import-export.helper-xpElLH-b.js";
10
+ import { s as De, a as Ve, d as We, t as Ce, r as Le } from "./xlsx.util-Fz9b_www.js";
11
+ import { s as Je, g as Xe, b as qe, d as Ge } from "./import-export.helper-CmO5mh9c.js";
12
12
  import { r as Qe } from "./random-CSbEbElR.js";
13
- import { c as Ne, a as pe } from "./number-q25U2atb.js";
13
+ import { c as Ne, a as pe } from "./number-B2hvDkgC.js";
14
14
  import { F as Ye } from "./FmDroppableField-J0tG_U3w.js";
15
15
  function Ee() {
16
16
  return `measurement_${(/* @__PURE__ */ new Date()).toISOString()}_${Qe()}`;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, createElementBlock as s, openBlock as n, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
2
- import { a, e as y } from "./number-q25U2atb.js";
2
+ import { a, e as y } from "./number-B2hvDkgC.js";
3
3
  import { useI18n as _ } from "@feedmepos/mf-common";
4
4
  const v = { class: "flex flex-col" }, g = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, h = { class: "flex-1 py-8 px-16" }, b = {
5
5
  class: "flex-0 py-8 px-16",
@@ -1,5 +1,5 @@
1
1
  import { ref as A, computed as G, h as C, defineComponent as j, watch as re, resolveComponent as R, createElementBlock as B, openBlock as F, createVNode as b, createElementVNode as c, unref as i, toDisplayString as $, createBlock as M, withCtx as T, Fragment as pe, renderList as ve, createTextVNode as ye, createCommentVNode as se, isRef as ge, normalizeClass as _e, normalizeStyle as be, createSlots as ke, Teleport as xe, normalizeProps as he, guardReactiveProps as we } from "vue";
2
- import { a as L, c as P, j as oe, u as Re } from "./app-D8j93Oqu.js";
2
+ import { a as L, c as P, j as oe, u as Re } from "./app-VWFXZ7dF.js";
3
3
  import { useDialog as Ie, useSnackbar as Y, components as U, useProxiedModel as Se, useBreakpoints as Fe } from "@feedmepos/ui-library";
4
4
  import { F as S } from "./form-mode.enum-BKiNVH6A.js";
5
5
  import { useI18n as z, useCoreStore as Ge } from "@feedmepos/mf-common";
@@ -8,11 +8,11 @@ import { D as ie, R as K } from "./row-action.enum-ncgDYAjP.js";
8
8
  import { c as Ve } from "./component-BmLAdDiY.js";
9
9
  import { u as Ce, _ as De } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
10
10
  import { _ as Ae, F as le } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
11
- import { _ as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BpACpi1j.js";
12
- import { d as de } from "./defineDeepModel-DBat73w6.js";
13
- import { I as Te, A as Ee, U as Me, R as ce } from "./rules-_M2oshOW.js";
11
+ import { _ as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CwV6Hlut.js";
12
+ import { d as de } from "./defineDeepModel-B-N4q6D_.js";
13
+ import { I as Te, A as Ee, U as Me, R as ce } from "./rules-CaNiIfda.js";
14
14
  import { L as Ue, P as Be, D as Pe } from "./app-C39bYJmq.js";
15
- import { u as Le } from "./FmMultiselectDialog-4K4U13Fa.js";
15
+ import { u as Le } from "./FmMultiselectDialog-BDdObapU.js";
16
16
  import { r as me } from "./random-CSbEbElR.js";
17
17
  import { u as ze, R as Ne } from "./usePromise-CbVUCxhj.js";
18
18
  const H = ue(