@feedmepos/mf-inventory-portal 1.7.8-dev.8 → 1.7.9-dev.0

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 (96) hide show
  1. package/dist/{App-aMQCfWKR.js → App-DvBMEcuJ.js} +6 -6
  2. package/dist/{ApprovalView-B1t2_NkK.js → ApprovalView-Bc6xo-gg.js} +9 -9
  3. package/dist/{BindingsDialog-BFA2RafQ.js → BindingsDialog-BbTkoM05.js} +2 -2
  4. package/dist/{BindingsPicker-BV_SnCmE.js → BindingsPicker-CkK79U9V.js} +2 -2
  5. package/dist/{BindingsTable-CYd_d_D4.js → BindingsTable-CmdCc1mG.js} +6 -5
  6. package/dist/BulkReceiveRequestView-BOt07CYr.js +2646 -0
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-Da3qd3Mg.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-YMRGpkS4.js} +1 -1
  8. package/dist/{ClosingDraftView-DtLqgzdV.js → ClosingDraftView-Dec1xuFQ.js} +19 -19
  9. package/dist/{ClosingHistoryView-BpCkeve0.js → ClosingHistoryView-DuX0UpLC.js} +5 -5
  10. package/dist/{ClosingTemplateView-BQf2L7LP.js → ClosingTemplateView-DBPGxWt2.js} +16 -16
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DHxAsci8.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DWfblvtV.js} +1 -1
  12. package/dist/{DefaultView-uwOYX5aq.js → DefaultView-D_XfvHrs.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-D97kXDvT.js → DeliveryOrderPrintPreview-DfAAAfCJ.js} +2 -2
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-CWFtwJvC.js → EmailDialog.vue_vue_type_script_setup_true_lang-CdcBrUHW.js} +5141 -5147
  15. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B3F7ojJ3.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-lge1DZ4v.js} +1 -1
  16. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BK3hRIb-.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DjYAwlg9.js} +2 -2
  17. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-j6vOr4ES.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-vwp2n9KL.js} +2 -2
  18. package/dist/{FmMultiselectDialog-BYAPKCvZ.js → FmMultiselectDialog-BTVaIESZ.js} +1 -1
  19. package/dist/{FmMultiselectDialog-CiVamfs5.js → FmMultiselectDialog-C-kDJtv_.js} +2 -2
  20. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Dit8lDme.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Mo-hF_cA.js} +152 -139
  21. package/dist/{ImportView-CMoXu7Ic.js → ImportView-CRAFZVSk.js} +6 -6
  22. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BbhP6oIX.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CuEDzJ0s.js} +1 -1
  23. package/dist/{IngredientGroupView-CPc5iduF.js → IngredientGroupView-OeeBfJau.js} +5 -5
  24. package/dist/{IngredientsView-By7RYiux.js → IngredientsView-BHX3xUDm.js} +15 -15
  25. package/dist/{IntegrationExplorerView-TSdhcRCM.js → IntegrationExplorerView-BwxSGD2N.js} +4 -4
  26. package/dist/{IntegrationView-DKWDVi3O.js → IntegrationView-CevJNVqG.js} +14 -14
  27. package/dist/{InventoryBindingForm-B3mDDZzR.js → InventoryBindingForm-wE--IP2D.js} +1 -1
  28. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-FXXt8H01.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-O5IbSGWu.js} +5 -5
  29. package/dist/{InventoryBindingSummary-mYeNiAU1.js → InventoryBindingSummary-BQ-U7tHs.js} +1 -1
  30. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CSyumpeA.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-jnXbX2lS.js} +1 -1
  31. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DWTAr8Ks.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BNMCbrIo.js} +1 -1
  32. package/dist/{ProductionView-DOivpabT.js → ProductionView-CvU9N_mb.js} +7 -7
  33. package/dist/{PublishView-eWRwVBrc.js → PublishView-BNnxGtEQ.js} +3 -3
  34. package/dist/{PurchaseOrderPrintPreview-DgTNrRu1.js → PurchaseOrderPrintPreview-Bq9kMWdx.js} +2 -2
  35. package/dist/{ReceiveRequestView-STEGp7V3.js → ReceiveRequestView-zUSU0Uvq.js} +14 -14
  36. package/dist/{RecipeView-D8UHkwaM.js → RecipeView-DkXOK1Iy.js} +17 -17
  37. package/dist/{SettingsView-p3_U_mjT.js → SettingsView-CPgsU8Kr.js} +4 -4
  38. package/dist/{StockView-BU_S5A-W.js → StockView-D-TJzHhP.js} +21 -21
  39. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B1tsNRFw.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B6ez4H3Z.js} +1 -1
  40. package/dist/{SupplierView-ByebUoTR.js → SupplierView-D-rODe-B.js} +12 -12
  41. package/dist/{SurchargeView-BMHvKZfh.js → SurchargeView-C88KTCML.js} +6 -6
  42. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CG4WEFSQ.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CFIK8eEl.js} +2 -2
  43. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DrAKLQsx.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BNjjTYtk.js} +1 -1
  44. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Dus9Hlmj.js → TransferDetails.vue_vue_type_script_setup_true_lang-E0FeDPFB.js} +20 -20
  45. package/dist/{TransferTemplateView-BTDN5pJa.js → TransferTemplateView-f9A4-wEL.js} +20 -20
  46. package/dist/{UnitCostHistoryView-CrDiemoY.js → UnitCostHistoryView-D26St5yl.js} +4 -4
  47. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-j4fGBGkZ.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-D2z5vabu.js} +4 -4
  48. package/dist/{UnitView-t_k78fpJ.js → UnitView-algS_4rD.js} +7 -7
  49. package/dist/{WarehouseView-DTsJW1VV.js → WarehouseView-BRM-euG4.js} +5 -5
  50. package/dist/{WastageTemplateView-BrvH0FOu.js → WastageTemplateView-BWPYvTMC.js} +14 -14
  51. package/dist/api/purchase-order.d.ts +2 -0
  52. package/dist/{app-D5TdnsEW.js → app-BI1fLJ8H.js} +23 -17
  53. package/dist/app.d.ts +4 -0
  54. package/dist/app.js +1 -1
  55. package/dist/{closing-template-BC_hPFGT.js → closing-template-DRQ-A04S.js} +1 -1
  56. package/dist/components/FmUnitInputRules.d.ts +7 -0
  57. package/dist/{date2-C3oPUnsb.js → date2-paxg81i_.js} +1 -1
  58. package/dist/{dayjs.min-CK9vGb71.js → dayjs.min-CqWwbKI1.js} +1 -1
  59. package/dist/{decimal-DJvvQMY3.js → decimal-tY0JrFld.js} +2 -2
  60. package/dist/{defineDeepModel-CJIMbFrz.js → defineDeepModel-CaP78Goh.js} +1 -1
  61. package/dist/{duplicate-template-nN1KH3h4.js → duplicate-template-pTXXQ0VS.js} +1 -1
  62. package/dist/{feature-Bx4IGgfx.js → feature-B2r32qOO.js} +2 -2
  63. package/dist/{format-time-from-id-Dq4MUBFl.js → format-time-from-id-DXMYus4N.js} +1 -1
  64. package/dist/{format-unit-display-CuML_j6N.js → format-unit-display-5hlsZBY2.js} +12 -12
  65. package/dist/{import-export.helper-D9FgXOo6.js → import-export.helper-BiC2Ghbl.js} +6 -6
  66. package/dist/{index-CCEGdCt2.js → index-B7eouqPa.js} +1 -1
  67. package/dist/{index-DSdepBMC.js → index-KP2-U9x_.js} +3 -3
  68. package/dist/{index-4eKUiHmk.js → index-rqdAWR69.js} +1 -1
  69. package/dist/{inventory-core-dart.default-DT6CkVBc.js → inventory-core-dart.default-ClRRaGtG.js} +3728 -3685
  70. package/dist/{lz-string-B1_qJywy.js → lz-string-CAl-OrXa.js} +1 -1
  71. package/dist/{netsuite-Dm6ZLRri.js → netsuite-cH4OybGV.js} +2 -2
  72. package/dist/{number-NNdtwo3T.js → number-BzmDQm_s.js} +3 -3
  73. package/dist/{predefined-templates-AkMvFtyz.js → predefined-templates-Baz8GEGx.js} +1 -1
  74. package/dist/{purchase-order-template-B6I8J4qj.js → purchase-order-template-0So3c2iS.js} +1 -1
  75. package/dist/{recalculationUtils-DyVu7MVt.js → recalculationUtils-DJlz5mJL.js} +1 -1
  76. package/dist/{rules-CNM4JWFJ.js → rules-BKdtla9-.js} +2 -2
  77. package/dist/{stock-DdT-WBUh.js → stock-D8M5e53w.js} +1 -1
  78. package/dist/{stock-50QhYOxh.js → stock-HCSCwSH0.js} +3 -3
  79. package/dist/stores/bulk-job.d.ts +13 -0
  80. package/dist/{supplier-BC5pgoXt.js → supplier-1mbcQSiQ.js} +2 -2
  81. package/dist/{surcharge-B4Uyv7IW.js → surcharge-DuxYBaWV.js} +1 -1
  82. package/dist/tsconfig.app.tsbuildinfo +1 -1
  83. package/dist/{uom-rules-ulLFsZjD.js → uom-rules-Dkbgtow8.js} +1 -1
  84. package/dist/{use-ingredient-select-dialog-BbgUsBBi.js → use-ingredient-select-dialog-BXvBvELI.js} +2 -2
  85. package/dist/{use-inventory-binding-dialog-SWpjvOT5.js → use-inventory-binding-dialog-2lrzHWdQ.js} +2 -2
  86. package/dist/{use-template-enabled-locations-DxGTD4AM.js → use-template-enabled-locations-CrDuAaCj.js} +2 -2
  87. package/dist/{use-transfer-locations-BJ0-MC0N.js → use-transfer-locations-C4oTuW_f.js} +2 -2
  88. package/dist/{useHrmPermission-whkt-WPi.js → useHrmPermission-CxeYlUgA.js} +1 -1
  89. package/dist/{useNavigationMenu-BR8YsnAO.js → useNavigationMenu-BWgwgA4U.js} +2 -2
  90. package/dist/{useSseClient-BtMs3GNe.js → useSseClient-DPA1zg96.js} +1 -1
  91. package/dist/views/receive-request/components/email-dialog/EmailDialog.spec.d.ts +1 -0
  92. package/dist/views/receive-request/components/email-dialog/EmailDialogProps.d.ts +23 -9
  93. package/dist/{vue-i18n-BBoYtwYo.js → vue-i18n-BSfpVmaF.js} +375 -375
  94. package/dist/{xlsx.util-D_Tt9yIV.js → xlsx.util-DSA9o0Zu.js} +2 -2
  95. package/package.json +6 -6
  96. package/dist/BulkReceiveRequestView-Dm7GDzob.js +0 -2601
@@ -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-C3oPUnsb.js";
2
+ import { c } from "./date2-paxg81i_.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-D5TdnsEW.js";
3
- import { F as T } from "./FmMultiselectDialog-CiVamfs5.js";
2
+ import { z as u } from "./app-BI1fLJ8H.js";
3
+ import { F as T } from "./FmMultiselectDialog-C-kDJtv_.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-Da3qd3Mg.js";
4
- import { _ as I } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B3F7ojJ3.js";
3
+ import { _ as D } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-YMRGpkS4.js";
4
+ import { _ as I } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-lge1DZ4v.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-DwrLsWX_.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-CiVamfs5.js";
4
+ import { a } from "./FmMultiselectDialog-C-kDJtv_.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-D5TdnsEW.js";
7
- import { d as Je } from "./index-CCEGdCt2.js";
6
+ import { z as he } from "./app-BI1fLJ8H.js";
7
+ import { d as Je } from "./index-B7eouqPa.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,67 +1,79 @@
1
- import { defineComponent as ue, mergeModels as W, useModel as re, computed as f, ref as I, watch as H, onBeforeUnmount as me, inject as ce, resolveComponent as x, createElementBlock as y, openBlock as c, createElementVNode as u, createVNode as M, createCommentVNode as A, withCtx as _, renderSlot as G, withDirectives as de, normalizeClass as j, toDisplayString as h, vModelText as pe, createBlock as U, Fragment as fe, renderList as ve, createSlots as be, createTextVNode as ye } from "vue";
2
- import { l as he } from "./netsuite-Dm6ZLRri.js";
3
- import { w as D } from "./app-D5TdnsEW.js";
4
- import { g as q, c as xe, a as b, t as Me, e as Z, m as ge, b as _e, u as Fe } from "./number-NNdtwo3T.js";
5
- import { I as R, a as Ae } from "./rules-CNM4JWFJ.js";
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-cH4OybGV.js";
3
+ import { w as D } from "./app-BI1fLJ8H.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-BzmDQm_s.js";
5
+ import { I, a as Ae } from "./rules-BKdtla9-.js";
6
6
  import "@feedmepos/ui-library";
7
- import { u as ke, a as Be } from "./uom-rules-ulLFsZjD.js";
8
- function J() {
7
+ import { P as Ie } from "./inventory-core-dart.default-ClRRaGtG.js";
8
+ import { u as Pe, a as ke } from "./uom-rules-Dkbgtow8.js";
9
+ function Z() {
9
10
  return {
10
11
  amount: D.reset()
11
12
  };
12
13
  }
13
- function Q() {
14
- return function(v) {
15
- return R()(v.amountAsString);
14
+ function K() {
15
+ return function(p) {
16
+ return I()(p.amountAsString);
16
17
  };
17
18
  }
18
- function Ye(r) {
19
+ function tt(r) {
19
20
  return function(t) {
20
- return R()(t.amountAsString) !== !0 ? !0 : +t.amountAsString < r ? `Must be at least ${r}` : !0;
21
+ return I()(t.amountAsString) !== !0 ? !0 : +t.amountAsString < r ? `Must be at least ${r}` : !0;
21
22
  };
22
23
  }
23
- function et(r) {
24
+ function nt(r) {
24
25
  return function(t) {
25
- return R()(t.amountAsString) !== !0 ? !0 : +t.amountAsString > r ? `Must be at most ${r}` : !0;
26
+ return I()(t.amountAsString) !== !0 ? !0 : +t.amountAsString > r ? `Must be at most ${r}` : !0;
26
27
  };
27
28
  }
28
- function K(r, v = !1) {
29
- return function(d) {
30
- const s = Q()(d);
29
+ function J(r, p = !1) {
30
+ return function(c) {
31
+ const s = K()(c);
31
32
  if (s != !0)
32
- return v ? s : !0;
33
- const k = typeof r == "number" ? r : q(r, d.modelValue.measurement);
34
- return xe(+d.amountAsString).precision > k ? `Cannot exceed precision more than ${b({
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({
35
36
  amount: 1,
36
- precision: k
37
+ precision: P
37
38
  })}` : !0;
38
39
  };
39
40
  }
40
- function tt(r) {
41
- const v = Ae(r);
42
- return function(d) {
43
- return v(d.modelValue.amount);
41
+ function ot(r) {
42
+ const p = Ae(r);
43
+ return function(c) {
44
+ return p(c.modelValue.amount);
44
45
  };
45
46
  }
46
- const Pe = { class: "flex flex-col" }, Ie = { class: "flex flex-col" }, Ue = { class: "flex-1" }, De = { class: "flex items-center gap-4" }, Re = { class: "flex-1 flex gap-4" }, Ce = { class: "shrink-0 grow basis-2/5" }, we = {
47
+ function st(r) {
48
+ return function(t) {
49
+ if (I()(t.amountAsString) !== !0)
50
+ return !0;
51
+ const s = Ie.validateQuantityAgainstTemplateItem({
52
+ quantity: t.modelValue.amount,
53
+ templateItem: r
54
+ });
55
+ return s.length === 0 ? !0 : s[0];
56
+ };
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 = {
47
59
  key: 0,
48
60
  class: "text-fm-color-typo-secondary"
49
- }, Se = {
61
+ }, Ne = {
50
62
  key: 0,
51
63
  class: "flex"
52
- }, Ne = { class: "line-clamp-1 text-ellipsis break-all" }, Ve = { class: "flex items-center gap-4" }, $e = { class: "flex items-center" }, Le = { class: "line-clamp-1 text-ellipsis break-all" }, Te = { class: "max-w-[200px] flex flex-col gap-[1px]" }, je = { class: "flex flex-col" }, qe = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Oe = {
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 = {
53
65
  key: 1,
54
66
  class: "flex flex-col gap-4 pl-8 shrink-0"
55
- }, ze = {
56
- class: "flex items-center",
57
- style: { "pointer-events": "none" }
58
67
  }, Ee = {
59
68
  class: "flex items-center",
60
69
  style: { "pointer-events": "none" }
61
70
  }, We = {
71
+ class: "flex items-center",
72
+ style: { "pointer-events": "none" }
73
+ }, He = {
62
74
  key: 0,
63
75
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary mt-1"
64
- }, nt = /* @__PURE__ */ ue({
76
+ }, at = /* @__PURE__ */ ue({
65
77
  __name: "FmUnitInput",
66
78
  props: /* @__PURE__ */ W({
67
79
  modelValue: {},
@@ -111,53 +123,53 @@ const Pe = { class: "flex flex-col" }, Ie = { class: "flex flex-col" }, Ue = { c
111
123
  modelModifiers: {}
112
124
  }),
113
125
  emits: /* @__PURE__ */ W(["update:amount", "update:measurement"], ["update:modelValue"]),
114
- setup(r, { emit: v }) {
115
- const t = r, d = v, s = re(r, "modelValue"), k = R(), C = f(() => {
126
+ setup(r, { emit: p }) {
127
+ const t = r, c = p, s = re(r, "modelValue"), P = I(), C = v(() => {
116
128
  var n;
117
- return q(t.unit, (n = s.value) == null ? void 0 : n.measurement);
118
- }), p = I((() => {
119
- var l;
120
- const e = ((l = s.value) == null ? void 0 : l.amount) ?? D.reset(), n = _e(e), a = t.formatMinimumPrecision ?? n.precision, i = Fe(n, a);
121
- return b(i);
129
+ return O(t.unit, (n = s.value) == null ? void 0 : n.measurement);
130
+ }), 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);
122
134
  })());
123
135
  let F = null;
124
- H(p, (e) => {
136
+ H(f, (e) => {
125
137
  F && clearTimeout(F), F = setTimeout(() => {
126
138
  var o;
127
- const n = k(e), a = t.precision ?? C.value, l = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > a ? t.formatMinimumPrecision : a;
139
+ const n = P(e), i = t.precision ?? C.value, a = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > i ? t.formatMinimumPrecision : i;
128
140
  if (n == !0) {
129
- const g = Me(+e, l);
130
- ((o = s.value) == null ? void 0 : o.amount) !== g && (s.value = {
141
+ const M = ge(+e, a);
142
+ ((o = s.value) == null ? void 0 : o.amount) !== M && (s.value = {
131
143
  ...s.value,
132
- amount: g
144
+ amount: M
133
145
  });
134
146
  }
135
- d("update:amount", e);
147
+ c("update:amount", e);
136
148
  }, 500);
137
149
  }), me(() => {
138
150
  F && clearTimeout(F);
139
151
  });
140
- const Y = Symbol.for("fm:form-state"), w = ce(Y, null), B = f(() => t.disabled ?? (w == null ? void 0 : w.getDisabled()) ?? !1), ee = I(), S = I(!1), O = I(!1), te = f(() => S.value || O.value), ne = ke(), oe = f(() => {
141
- var l;
142
- const e = ne.value, n = t.unit.measurements.filter((o) => !Be(o, e)).filter((o) => o.abbrev !== t.unit.abbrev || +b(o.conversion) != 1), a = he.groupBy(
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(
143
155
  n,
144
156
  (o) => `${o.abbrev}${b(o.conversion)}`
145
- ), i = Object.values(a).map((o) => o[0]);
157
+ ), l = Object.values(i).map((o) => o[0]);
146
158
  return [
147
159
  {
148
- label: (l = t.unit) == null ? void 0 : l.abbrev,
160
+ label: (a = t.unit) == null ? void 0 : a.abbrev,
149
161
  value: null,
150
162
  isBaseUnit: !0,
151
163
  conversionLabel: null
152
164
  },
153
- ...i.map((o) => ({
165
+ ...l.map((o) => ({
154
166
  label: o.abbrev,
155
167
  value: o.id,
156
168
  isBaseUnit: !1,
157
169
  conversionLabel: `1 ${o.abbrev} = ${b(o.conversion)} ${t.unit.abbrev}`
158
170
  }))
159
171
  ];
160
- }), N = f({
172
+ }), N = v({
161
173
  get() {
162
174
  var e, n;
163
175
  return ((n = (e = s.value) == null ? void 0 : e.measurement) == null ? void 0 : n.id) ?? null;
@@ -165,15 +177,15 @@ const Pe = { class: "flex flex-col" }, Ie = { class: "flex flex-col" }, Ue = { c
165
177
  set(e) {
166
178
  if (e == null)
167
179
  s.value = {
168
- ...s.value ?? J(),
180
+ ...s.value ?? Z(),
169
181
  measurement: null
170
- }, d("update:measurement", null);
182
+ }, c("update:measurement", null);
171
183
  else {
172
- const n = t.unit.measurements.find((a) => a.id === e) ?? null;
184
+ const n = t.unit.measurements.find((i) => i.id === e) ?? null;
173
185
  s.value = {
174
- ...s.value ?? J(),
186
+ ...s.value ?? Z(),
175
187
  measurement: n
176
- }, d("update:measurement", n);
188
+ }, c("update:measurement", n);
177
189
  }
178
190
  }
179
191
  });
@@ -181,145 +193,145 @@ const Pe = { class: "flex flex-col" }, Ie = { class: "flex flex-col" }, Ue = { c
181
193
  var m;
182
194
  if (!t.convertAmountOnChangeUnit)
183
195
  return;
184
- const a = ((m = s.value) == null ? void 0 : m.amount) ?? D.reset(), i = t.unit.measurements.find((P) => P.id === n) ?? null, l = t.unit.measurements.find((P) => P.id === e) ?? null, o = i ? Z(a, i.conversion) : a, g = l ? ge(o, l.conversion) : o, L = q(t.unit, l), T = D.convertPrecision({
185
- value: g,
186
- precision: L
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({
197
+ value: M,
198
+ precision: $
187
199
  });
188
- p.value = b(T);
200
+ f.value = b(L);
189
201
  });
190
- const V = f(() => {
202
+ const V = v(() => {
191
203
  var e;
192
204
  return !((e = s.value) != null && e.measurement);
193
- }), $ = f(() => {
205
+ }), T = v(() => {
194
206
  var e, n;
195
207
  return ((n = (e = s.value) == null ? void 0 : e.measurement) == null ? void 0 : n.abbrev) ?? t.unit.abbrev;
196
- }), z = f(() => {
197
- var i, l;
208
+ }), z = v(() => {
209
+ var l, a;
198
210
  if (V.value) return null;
199
- const e = (i = s.value) == null ? void 0 : i.measurement;
211
+ const e = (l = s.value) == null ? void 0 : l.measurement;
200
212
  if (!e) return null;
201
- const n = (l = s.value) == null ? void 0 : l.amount;
213
+ const n = (a = s.value) == null ? void 0 : a.amount;
202
214
  if (!n) return null;
203
- const a = Z(n, e.conversion);
204
- return `= ${b(a)} ${t.unit.abbrev}`;
205
- }), se = f(
215
+ const i = G(n, e.conversion);
216
+ return `= ${b(i)} ${t.unit.abbrev}`;
217
+ }), se = v(
206
218
  () => {
207
219
  var e;
208
220
  return ((e = t.rules) == null ? void 0 : e.map(
209
- (n) => (a) => typeof n == "function" ? n(a) : n
221
+ (n) => (i) => typeof n == "function" ? n(i) : n
210
222
  )) ?? [];
211
223
  }
212
- ), le = f(() => [...t.applyDefaultRules ? [
213
- Q(),
214
- typeof t.precision == "number" ? K(t.precision) : K(t.unit)
224
+ ), ae = v(() => [...t.applyDefaultRules ? [
225
+ K(),
226
+ typeof t.precision == "number" ? J(t.precision) : J(t.unit)
215
227
  ] : [], ...se.value]);
216
228
  function E(e) {
217
- const n = t.precision ?? C.value, i = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > n ? t.formatMinimumPrecision : n, l = e.toFixed(i), o = l.includes(".") ? l.replace(/0+$/, "") : l;
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;
218
230
  return o.endsWith(".") ? o.slice(0, o.length - 1) : o;
219
231
  }
220
- function ae() {
232
+ function ie() {
221
233
  if (!t.stepper)
222
234
  return;
223
- const e = +p.value + +b(t.stepper);
224
- p.value = E(e);
235
+ const e = +f.value + +b(t.stepper);
236
+ f.value = E(e);
225
237
  }
226
- function ie() {
238
+ function le() {
227
239
  if (!t.stepper)
228
240
  return;
229
- const e = +p.value - +b(t.stepper);
230
- p.value = E(e);
241
+ const e = +f.value - +b(t.stepper);
242
+ f.value = E(e);
231
243
  }
232
244
  return (e, n) => {
233
- const a = x("FmLabel"), i = x("FmIcon"), l = x("FmMenuItem"), o = x("FmMenu"), g = x("FmTooltip"), L = x("FmField"), T = x("FmFormGroup");
234
- return c(), y("div", Pe, [
235
- u("div", Ie, [
236
- u("div", Ue, [
237
- M(a, {
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, {
238
250
  label: e.label,
239
251
  disabled: e.disabled,
240
252
  required: e.labelMark === "required",
241
253
  optional: e.labelMark === "optional"
242
254
  }, null, 8, ["label", "disabled", "required", "optional"])
243
255
  ]),
244
- M(L, { focused: te.value }, {
256
+ g($, { focused: te.value }, {
245
257
  default: _(() => [
246
258
  u("div", De, [
247
- G(e.$slots, "prepend"),
248
- u("div", Re, [
249
- u("div", Ce, [
250
- e.stepperOnly ? (c(), y("span", {
259
+ Q(e.$slots, "prepend"),
260
+ u("div", Ce, [
261
+ u("div", Se, [
262
+ e.stepperOnly ? (d(), y("span", {
251
263
  key: 0,
252
- class: j({
264
+ class: q({
253
265
  "fm-text-field--input fm-typo-en-body-lg-400": !0,
254
- "text-fm-color-typo-primary": !B.value,
255
- "text-fm-color-typo-disabled": B.value
266
+ "text-fm-color-typo-primary": !k.value,
267
+ "text-fm-color-typo-disabled": k.value
256
268
  })
257
- }, h(p.value), 3)) : de((c(), y("input", {
269
+ }, h(f.value), 3)) : de((d(), y("input", {
258
270
  key: 1,
259
271
  type: "text",
260
272
  ref_key: "inputRef",
261
273
  ref: ee,
262
- onFocus: n[0] || (n[0] = () => S.value = !0),
263
- onBlur: n[1] || (n[1] = () => S.value = !1),
264
- "onUpdate:modelValue": n[2] || (n[2] = (m) => p.value = m),
265
- class: j({
274
+ onFocus: n[0] || (n[0] = () => w.value = !0),
275
+ onBlur: n[1] || (n[1] = () => w.value = !1),
276
+ "onUpdate:modelValue": n[2] || (n[2] = (m) => f.value = m),
277
+ class: q({
266
278
  "fm-text-field--input fm-typo-en-body-lg-400": !0,
267
- "text-fm-color-typo-primary": !B.value,
268
- "text-fm-color-typo-disabled": B.value
279
+ "text-fm-color-typo-primary": !k.value,
280
+ "text-fm-color-typo-disabled": k.value
269
281
  })
270
282
  }, null, 34)), [
271
- [pe, p.value]
283
+ [pe, f.value]
272
284
  ])
273
285
  ]),
274
- e.separator ? (c(), y("div", we, h(e.separator), 1)) : A("", !0),
286
+ e.separator ? (d(), y("div", we, h(e.separator), 1)) : A("", !0),
275
287
  u("div", {
276
- class: j([e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"])
288
+ class: q([e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"])
277
289
  }, [
278
- M(g, { "z-index": 51 }, {
290
+ g(M, { "z-index": 51 }, {
279
291
  content: _(() => [
280
- ye(h($.value), 1)
292
+ ye(h(T.value), 1)
281
293
  ]),
282
294
  default: _(() => [
283
- e.disableUnit ? (c(), y("div", Se, [
284
- V.value ? A("", !0) : (c(), U(i, {
295
+ e.disableUnit ? (d(), y("div", Ne, [
296
+ V.value ? A("", !0) : (d(), R(l, {
285
297
  key: 0,
286
298
  name: "square_foot"
287
299
  })),
288
- u("div", Ne, h($.value), 1)
289
- ])) : (c(), U(o, {
300
+ u("div", Ve, h(T.value), 1)
301
+ ])) : (d(), R(o, {
290
302
  key: 1,
291
- onMenuChanged: n[3] || (n[3] = (m) => O.value = m),
303
+ onMenuChanged: n[3] || (n[3] = (m) => j.value = m),
292
304
  "z-index": 500,
293
305
  placement: e.placement,
294
306
  disabled: e.disabled
295
307
  }, {
296
308
  "menu-button": _(() => [
297
- u("div", Ve, [
309
+ u("div", Te, [
298
310
  u("div", $e, [
299
- V.value ? A("", !0) : (c(), U(i, {
311
+ V.value ? A("", !0) : (d(), R(l, {
300
312
  key: 0,
301
313
  name: "square_foot"
302
314
  })),
303
- u("div", Le, h($.value), 1)
315
+ u("div", Le, h(T.value), 1)
304
316
  ]),
305
- M(i, { name: "keyboard_arrow_down" })
317
+ g(l, { name: "keyboard_arrow_down" })
306
318
  ])
307
319
  ]),
308
320
  default: _(() => [
309
- u("div", Te, [
310
- (c(!0), y(fe, null, ve(oe.value, (m) => (c(), U(l, {
321
+ u("div", qe, [
322
+ (d(!0), y(fe, null, ve(oe.value, (m) => (d(), R(a, {
311
323
  key: m.value ?? void 0,
312
324
  label: m.label,
313
325
  icon: m.isBaseUnit ? void 0 : "square_foot",
314
326
  "model-value": m.value == N.value,
315
- onClick: (P) => N.value = m.value
327
+ onClick: (B) => N.value = m.value
316
328
  }, be({ _: 2 }, [
317
329
  m.conversionLabel ? {
318
330
  name: "label",
319
331
  fn: _(() => [
320
- u("div", je, [
332
+ u("div", Oe, [
321
333
  u("span", null, h(m.label), 1),
322
- u("span", qe, h(m.conversionLabel), 1)
334
+ u("span", je, h(m.conversionLabel), 1)
323
335
  ])
324
336
  ]),
325
337
  key: "0"
@@ -333,13 +345,13 @@ const Pe = { class: "flex flex-col" }, Ie = { class: "flex flex-col" }, Ue = { c
333
345
  _: 1
334
346
  })
335
347
  ], 2),
336
- e.stepper ? (c(), y("div", Oe, [
348
+ e.stepper ? (d(), y("div", ze, [
337
349
  u("div", {
338
350
  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",
339
- onClick: ae
351
+ onClick: ie
340
352
  }, [
341
- u("div", ze, [
342
- M(i, {
353
+ u("div", Ee, [
354
+ g(l, {
343
355
  name: "expand_less",
344
356
  size: "md"
345
357
  })
@@ -347,10 +359,10 @@ const Pe = { class: "flex flex-col" }, Ie = { class: "flex flex-col" }, Ue = { c
347
359
  ]),
348
360
  u("div", {
349
361
  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",
350
- onClick: ie
362
+ onClick: le
351
363
  }, [
352
- u("div", Ee, [
353
- M(i, {
364
+ u("div", We, [
365
+ g(l, {
354
366
  name: "expand_more",
355
367
  size: "md"
356
368
  })
@@ -358,31 +370,32 @@ const Pe = { class: "flex flex-col" }, Ie = { class: "flex flex-col" }, Ue = { c
358
370
  ])
359
371
  ])) : A("", !0)
360
372
  ]),
361
- G(e.$slots, "append")
373
+ Q(e.$slots, "append")
362
374
  ])
363
375
  ]),
364
376
  _: 3
365
377
  }, 8, ["focused"])
366
378
  ]),
367
- M(T, {
379
+ g(L, {
368
380
  class: "flex-1",
369
- "model-value": { modelValue: s.value, amountAsString: String(p.value) },
381
+ "model-value": { modelValue: s.value, amountAsString: String(f.value) },
370
382
  info: e.labelInfo,
371
- rules: le.value,
383
+ rules: ae.value,
372
384
  "helper-text": e.helperText,
373
385
  "helper-state": e.helperState
374
386
  }, null, 8, ["model-value", "info", "rules", "helper-text", "helper-state"]),
375
- z.value ? (c(), y("div", We, h(z.value), 1)) : A("", !0)
387
+ z.value ? (d(), y("div", He, h(z.value), 1)) : A("", !0)
376
388
  ]);
377
389
  };
378
390
  }
379
391
  });
380
392
  export {
381
- tt as F,
382
- nt as _,
383
- Ye as a,
384
- et as b,
385
- Q as c,
386
- K as d,
387
- J as e
393
+ ot as F,
394
+ 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
388
401
  };
@@ -2,15 +2,15 @@ import { defineComponent as De, ref as F, computed as J, watch as ze, resolveCom
2
2
  import { u as Ve, _ as ke } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DwrLsWX_.js";
3
3
  import { useCoreStore as Re, useI18n as je } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as We, useSnackbar as Oe, useDialog as Le, useBreakpoints as Je } from "@feedmepos/ui-library";
5
- import { u as Xe } from "./feature-Bx4IGgfx.js";
6
- import { a as ie } from "./app-D5TdnsEW.js";
7
- import "./dayjs.min-CK9vGb71.js";
5
+ import { u as Xe } from "./feature-B2r32qOO.js";
6
+ import { a as ie } from "./app-BI1fLJ8H.js";
7
+ import "./dayjs.min-CqWwbKI1.js";
8
8
  import "./app-C39bYJmq.js";
9
9
  import "./FmAdminBadge-DlplQOHb.js";
10
- import { s as He, a as qe, d as Qe, t as Ce, r as Ye } from "./xlsx.util-D_Tt9yIV.js";
11
- import { s as Ze, g as et, b as tt, d as Fe } from "./import-export.helper-D9FgXOo6.js";
10
+ import { s as He, a as qe, d as Qe, t as Ce, r as Ye } from "./xlsx.util-DSA9o0Zu.js";
11
+ import { s as Ze, g as et, b as tt, d as Fe } from "./import-export.helper-BiC2Ghbl.js";
12
12
  import { r as nt } from "./random-CSbEbElR.js";
13
- import { c as Ae, a as pe } from "./number-NNdtwo3T.js";
13
+ import { c as Ae, a as pe } from "./number-BzmDQm_s.js";
14
14
  import { F as ot } from "./FmDroppableField-J0tG_U3w.js";
15
15
  function Ee() {
16
16
  return `measurement_${(/* @__PURE__ */ new Date()).toISOString()}_${nt()}`;
@@ -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-NNdtwo3T.js";
2
+ import { a, e as y } from "./number-BzmDQm_s.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-D5TdnsEW.js";
2
+ import { a as L, c as P, j as oe, u as Re } from "./app-BI1fLJ8H.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-DwrLsWX_.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-j6vOr4ES.js";
12
- import { d as de } from "./defineDeepModel-CJIMbFrz.js";
13
- import { I as Te, A as Ee, U as Me, R as ce } from "./rules-CNM4JWFJ.js";
11
+ import { _ as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-vwp2n9KL.js";
12
+ import { d as de } from "./defineDeepModel-CaP78Goh.js";
13
+ import { I as Te, A as Ee, U as Me, R as ce } from "./rules-BKdtla9-.js";
14
14
  import { L as Ue, P as Be, D as Pe } from "./app-C39bYJmq.js";
15
- import { u as Le } from "./FmMultiselectDialog-BYAPKCvZ.js";
15
+ import { u as Le } from "./FmMultiselectDialog-BTVaIESZ.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(