@feedmepos/mf-inventory-portal 1.5.8 → 1.5.9-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 (92) hide show
  1. package/dist/{App-CkuUHPEo.js → App-B7rirksC.js} +4 -4
  2. package/dist/{ApprovalView-DubepVw0.js → ApprovalView-BomKMill.js} +7 -7
  3. package/dist/{BindingsDialog-B4WNBwyC.js → BindingsDialog-CI8qKlCl.js} +13 -13
  4. package/dist/{BindingsPicker-BRrLqG1M.js → BindingsPicker-BhED4TMH.js} +2 -2
  5. package/dist/{BindingsTable-CsL2_ZUy.js → BindingsTable-CgD27m69.js} +3 -3
  6. package/dist/ClosingDraftView-BKjxsKag.js +3342 -0
  7. package/dist/{ClosingHistoryView-C9Hidhix.js → ClosingHistoryView-C8xdmA9v.js} +469 -459
  8. package/dist/{ClosingTemplateView-gzJmYQLL.js → ClosingTemplateView-C3IMkNtu.js} +14 -14
  9. package/dist/{DefaultView-Wd26nwBn.js → DefaultView-M1s5DkYs.js} +2 -2
  10. package/dist/{DeliveryOrderPrintPreview-5Jm6QgAP.js → DeliveryOrderPrintPreview-DNvsv0bs.js} +2 -2
  11. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bye4GWOd.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DPiYsxMt.js} +2 -2
  12. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0u8X0Bk.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-W4K3RNpN.js} +2 -2
  13. package/dist/{FmMultiselectDialog-BuXhazyF.js → FmMultiselectDialog-D5vlbq9s.js} +1 -1
  14. package/dist/{FmMultiselectDialog-CrbCQvck.js → FmMultiselectDialog-DpiLiqOe.js} +2 -2
  15. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-U0Io6FhR.js → FmUnitInput.vue_vue_type_script_setup_true_lang-tiIC1uvr.js} +111 -110
  16. package/dist/{ImportView-PBP1w1_z.js → ImportView-uPX4OhrY.js} +6 -6
  17. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BvlBuk3S.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-iTmbGMAv.js} +1 -1
  18. package/dist/{IngredientGroupView-ZavZf2r_.js → IngredientGroupView-Dhhm6SwF.js} +5 -5
  19. package/dist/{IngredientsView-DXKIqdoR.js → IngredientsView-BeuJFNel.js} +17 -17
  20. package/dist/{IntegrationExplorerView-D-7q6p_s.js → IntegrationExplorerView-DvIVyrTk.js} +352 -352
  21. package/dist/{IntegrationView-ByvhMaCO.js → IntegrationView-BlCqI1aF.js} +13 -13
  22. package/dist/{InventoryBindingForm-DAAeny2A.js → InventoryBindingForm-BbaQJX-2.js} +1 -1
  23. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DpR5ySFv.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-8kDSVOQT.js} +5 -5
  24. package/dist/{InventoryBindingSummary-CZBnbomV.js → InventoryBindingSummary-ISEBBsyC.js} +1 -1
  25. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BJ6gswNM.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C2XS7S9B.js} +1 -1
  26. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-mlVRfnxo.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DMQCjdfY.js} +1 -1
  27. package/dist/{PublishView-CsMKko5l.js → PublishView-B7ngdwbS.js} +3 -3
  28. package/dist/{PurchaseOrderPrintPreview-B-jchSYL.js → PurchaseOrderPrintPreview-CdKQ2vC9.js} +2 -2
  29. package/dist/{ReceiveRequestView-DfOcn_OW.js → ReceiveRequestView-i7V6aTo7.js} +25 -25
  30. package/dist/{RecipeView-C-1PuiaO.js → RecipeView-DQeKXITE.js} +19 -19
  31. package/dist/{SettingsView-C3vB5Vjb.js → SettingsView-5jm5pZxN.js} +4 -4
  32. package/dist/{StockView-BAXULvMh.js → StockView-BeNHn4jp.js} +775 -765
  33. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BI_hHa88.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CKfaF6XM.js} +1 -1
  34. package/dist/{SupplierView-B9y9d6C0.js → SupplierView-DzX3leQE.js} +12 -12
  35. package/dist/{SurchargeView-D3lq3G0g.js → SurchargeView-q8Rl6XQg.js} +6 -6
  36. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-D54FjCtg.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CfYRww5Y.js} +2 -2
  37. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bi-9US2G.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bywpva5c.js} +1 -1
  38. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BkmO63qQ.js → TransferDetails.vue_vue_type_script_setup_true_lang-Ceg3e163.js} +20 -20
  39. package/dist/{TransferTemplateView-B7hDis-b.js → TransferTemplateView-ClEeuE0A.js} +18 -18
  40. package/dist/{UnitCostHistoryView-DR-RJ6lO.js → UnitCostHistoryView-CkvS4aGj.js} +4 -4
  41. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-WSYbNJL_.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-C7VKd1XK.js} +4 -4
  42. package/dist/{UnitView-Dx3NUFp2.js → UnitView-COKzqhf7.js} +9 -9
  43. package/dist/{WarehouseView-CSmq2xhS.js → WarehouseView-CWsl1Awb.js} +5 -5
  44. package/dist/{WastageTemplateView-Bya8Ptja.js → WastageTemplateView-BAEbIzfQ.js} +14 -14
  45. package/dist/api/error.d.ts +6 -3
  46. package/dist/{app-BtIUZZer.js → app-DTz4LGCJ.js} +10353 -10377
  47. package/dist/app.d.ts +8 -0
  48. package/dist/app.js +4 -4
  49. package/dist/{closing-template-CY4I4oi6.js → closing-template-DmMvmiD8.js} +1 -1
  50. package/dist/{date2-BXHREmqe.js → date2-BJJQIIV9.js} +1 -1
  51. package/dist/{dayjs.min-B15_mmz6.js → dayjs.min-YbnVt6Kp.js} +1 -1
  52. package/dist/{decimal-CfCuBc7o.js → decimal-DstnZVub.js} +2 -2
  53. package/dist/{defineDeepModel-CeW3ETAv.js → defineDeepModel-CxxsD8UG.js} +1 -1
  54. package/dist/{duplicate-template-CTHciPHW.js → duplicate-template-DFAfrk_o.js} +1 -1
  55. package/dist/{export-CCbJ-2Gk.js → export-C0aosI78.js} +2 -2
  56. package/dist/{feature-RoG35971.js → feature-dHHbIKf7.js} +86 -86
  57. package/dist/{format-time-from-id-q1T46zz9.js → format-time-from-id-BtGI10RN.js} +1 -1
  58. package/dist/{format-unit-display-DUaKGmsk.js → format-unit-display-C4V_dB6d.js} +11 -11
  59. package/dist/helper/uom-rules.d.ts +12 -0
  60. package/dist/{import-export.helper-B2ZzXsyT.js → import-export.helper-BblDa7MU.js} +6 -6
  61. package/dist/{index-CF466Sy_.js → index-B8bFII4h.js} +3 -3
  62. package/dist/{index-BC06YbP9.js → index-Y7yMwT_5.js} +1 -1
  63. package/dist/{index-CKErlM6H.js → index-j4PQ4n55.js} +1 -1
  64. package/dist/{inventory-core-dart.default-BEB7pV9M.js → inventory-core-dart.default-JrRChx_V.js} +1319 -1264
  65. package/dist/{lz-string-D3Jm7T7Q.js → lz-string-C856gsAG.js} +1 -1
  66. package/dist/{menu-usage-module-BiCPifRX.js → menu-usage-module-D7cxkbEk.js} +11 -12
  67. package/dist/netsuite-B6QeJ2cS.js +9381 -0
  68. package/dist/{number-C6mI12qg.js → number-CKzPOWR2.js} +3 -3
  69. package/dist/{predefined-templates-DfpzUsNl.js → predefined-templates-bmWnR8Cx.js} +1 -1
  70. package/dist/{purchase-order-template-Dq3N4vgB.js → purchase-order-template-DQwbAN8F.js} +1 -1
  71. package/dist/{recalculationUtils-D0A7mbSs.js → recalculationUtils-CTLTLQ9V.js} +1 -1
  72. package/dist/{rules-Dajxj04v.js → rules-EEgDDXMF.js} +2 -2
  73. package/dist/{stock-D6d8tS4B.js → stock-GVmcy_Vk.js} +1 -1
  74. package/dist/{supplier-CkfePT6a.js → supplier-D2tc_iCh.js} +2 -2
  75. package/dist/{surcharge-C3uSQoRw.js → surcharge-xQ1WGUtz.js} +1 -1
  76. package/dist/tsconfig.app.tsbuildinfo +1 -1
  77. package/dist/uom-rules-BOqMU5Ob.js +21 -0
  78. package/dist/{use-ingredient-select-dialog-C3zCgi5E.js → use-ingredient-select-dialog-BQmyEVZx.js} +2 -2
  79. package/dist/{use-inventory-binding-dialog-CsDrU6sx.js → use-inventory-binding-dialog-BzFcGuKM.js} +2 -2
  80. package/dist/{use-template-enabled-locations-DpZY_R7j.js → use-template-enabled-locations-CkW-7UVo.js} +2 -2
  81. package/dist/{use-transfer-locations-DlHF5kG-.js → use-transfer-locations-CjrxfaGK.js} +2 -2
  82. package/dist/{useHrmPermission-C1G3BVpn.js → useHrmPermission-DcAcggus.js} +1 -1
  83. package/dist/{useNavigationMenu-tNJYWFkU.js → useNavigationMenu-D2tNJzZl.js} +2 -2
  84. package/dist/{useSseClient-4qu-xO3k.js → useSseClient-D9Xmiz-D.js} +3 -3
  85. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +11 -2
  86. package/dist/{vue-i18n-eqPSat_0.js → vue-i18n-BQm9JO9o.js} +358 -358
  87. package/dist/{xlsx-DB2JHegF.js → xlsx-DZYL-v8V.js} +1 -1
  88. package/dist/{xlsx.util-TwDCO4ay.js → xlsx.util-FEXJ9YRM.js} +3 -3
  89. package/package.json +3 -3
  90. package/dist/ClosingDraftView-Psl49bhd.js +0 -3202
  91. package/dist/lodash-D9rnJgGZ.js +0 -3678
  92. package/dist/netsuite-CuPJ_UTs.js +0 -5708
@@ -4,24 +4,24 @@ import { useI18n as W, useCoreStore as de } from "@feedmepos/mf-common";
4
4
  import { useDialog as pe, useDialogChild as Ze, useSnackbar as ce, FmButtonVariant as oe, components as Y, FmAdvancedSort as et, useProxiedModel as tt, useBreakpoints as nt } from "@feedmepos/ui-library";
5
5
  import { defineStore as Ve, storeToRefs as Ne } from "pinia";
6
6
  import { F as G } from "./form-mode.enum-BKiNVH6A.js";
7
- import { a as me } from "./closing-template-CY4I4oi6.js";
8
- import { u as fe, c as Ue, a as ve, l as ot } from "./app-BtIUZZer.js";
9
- import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-TwDCO4ay.js";
7
+ import { a as me } from "./closing-template-DmMvmiD8.js";
8
+ import { u as fe, c as Ue, a as ve, l as ot } from "./app-DTz4LGCJ.js";
9
+ import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-FEXJ9YRM.js";
10
10
  import { F as lt } from "./FmDroppableField-J0xUsOTV.js";
11
- import { f as Be, a as le } from "./date2-BXHREmqe.js";
11
+ import { f as Be, a as le } from "./date2-BJJQIIV9.js";
12
12
  import { D as se, R as z } from "./row-action.enum-DQ9bJ_uv.js";
13
13
  import { c as at } from "./component-kqxARxvM.js";
14
- import { f as rt } from "./format-time-from-id-q1T46zz9.js";
15
- import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bi-9US2G.js";
16
- import { u as ct } from "./netsuite-CuPJ_UTs.js";
17
- import { u as mt } from "./duplicate-template-CTHciPHW.js";
18
- import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0u8X0Bk.js";
19
- import { R as dt, A as pt } from "./rules-Dajxj04v.js";
20
- import { u as ft } from "./use-ingredient-select-dialog-C3zCgi5E.js";
21
- import { d as vt } from "./defineDeepModel-CeW3ETAv.js";
14
+ import { f as rt } from "./format-time-from-id-BtGI10RN.js";
15
+ import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bywpva5c.js";
16
+ import { u as ct } from "./netsuite-B6QeJ2cS.js";
17
+ import { u as mt } from "./duplicate-template-DFAfrk_o.js";
18
+ import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-W4K3RNpN.js";
19
+ import { R as dt, A as pt } from "./rules-EEgDDXMF.js";
20
+ import { u as ft } from "./use-ingredient-select-dialog-BQmyEVZx.js";
21
+ import { d as vt } from "./defineDeepModel-CxxsD8UG.js";
22
22
  import { F as X, _ as ze } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
23
- import { u as gt } from "./use-template-enabled-locations-DpZY_R7j.js";
24
- import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-D54FjCtg.js";
23
+ import { u as gt } from "./use-template-enabled-locations-CkW-7UVo.js";
24
+ import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-CfYRww5Y.js";
25
25
  import { _ as ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
26
26
  const ue = Ve(
27
27
  "closingTemplateTable",
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as p, computed as f, watchEffect as d, resolveComponent as n, openBlock as _, createElementBlock as v, createVNode as o, createElementVNode as c } from "vue";
2
2
  import { useRouter as g } from "vue-router";
3
3
  import { useCoreStore as x } from "@feedmepos/mf-common";
4
- import { u as S } from "./useNavigationMenu-tNJYWFkU.js";
5
- import { u as y } from "./feature-RoG35971.js";
4
+ import { u as S } from "./useNavigationMenu-D2tNJzZl.js";
5
+ import { u as y } from "./feature-dHHbIKf7.js";
6
6
  const C = { class: "flex flex-col items-center w-full h-full gap-24" }, V = /* @__PURE__ */ p({
7
7
  __name: "DefaultView",
8
8
  setup(F) {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as x, computed as g, ref as h, onMounted as _, openBlock as i, createElementBlock as u, createElementVNode as t, createTextVNode as n, toDisplayString as l, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as c } from "vue";
2
2
  import { useRoute as w } from "vue-router";
3
- import { P as b } from "./app-BtIUZZer.js";
4
- import { L as k } from "./lz-string-D3Jm7T7Q.js";
3
+ import { P as b } from "./app-DTz4LGCJ.js";
4
+ import { L as k } from "./lz-string-C856gsAG.js";
5
5
  import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const N = { class: "purchase-box" }, A = { valign: "bottom" }, E = { class: "sub-header" }, C = ["src"], D = { style: { "padding-left": "10px" } }, O = { class: "address" }, R = { class: "text-right" }, S = {
7
7
  key: 0,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as g, mergeModels as I, useModel as z, computed as b, ref as _, resolveComponent as n, openBlock as o, createElementBlock as h, 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-BtIUZZer.js";
3
- import { F as T } from "./FmMultiselectDialog-CrbCQvck.js";
2
+ import { z as u } from "./app-DTz4LGCJ.js";
3
+ import { F as T } from "./FmMultiselectDialog-DpiLiqOe.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 S, computed as w, ref as P, resolveComponent as h, openBlock as n, createElementBlock as p, createVNode as x, withCtx as $, createElementVNode as b, Fragment as V, createTextVNode as R, toDisplayString as D, unref as r, createBlock as v, createCommentVNode as k, renderList as N, watch as O, mergeModels as H, useModel as I, renderSlot as W, normalizeClass as A } from "vue";
2
2
  import { useCoreStore as q, useI18n as Q } from "@feedmepos/mf-common";
3
- import { u as G } from "./app-BtIUZZer.js";
4
- import { b as T } from "./date2-BXHREmqe.js";
3
+ import { u as G } from "./app-DTz4LGCJ.js";
4
+ import { b as T } from "./date2-BJJQIIV9.js";
5
5
  import { useBreakpoints as J } from "@feedmepos/ui-library";
6
6
  import { u as K } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
7
7
  import { D as z } from "./app-DiX-EfV6.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-CrbCQvck.js";
4
+ import { a } from "./FmMultiselectDialog-DpiLiqOe.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 be, computed as x, ref as $, watch as ge, openBlock as d, createElementBlock as f, normalizeStyle as z, Fragment as V, renderList as O, renderSlot as ke, createCommentVNode as D, 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-BtIUZZer.js";
7
- import { d as Je } from "./index-BC06YbP9.js";
6
+ import { z as he } from "./app-DTz4LGCJ.js";
7
+ import { d as Je } from "./index-Y7yMwT_5.js";
8
8
  /* empty css */
9
9
  import { useI18n as Re } from "@feedmepos/mf-common";
10
10
  import { P as We, J as ye, D as Qe } from "./app-DiX-EfV6.js";
@@ -1,10 +1,11 @@
1
- import { defineComponent as ie, mergeModels as W, useModel as le, computed as v, ref as B, watch as E, onBeforeUnmount as ae, inject as ue, resolveComponent as b, openBlock as d, createElementBlock as y, createElementVNode as u, createVNode as h, withCtx as F, renderSlot as G, normalizeClass as j, toDisplayString as _, withDirectives as re, vModelText as me, createCommentVNode as I, createTextVNode as ce, createBlock as U, Fragment as de, renderList as pe } from "vue";
2
- import { l as fe } from "./lodash-D9rnJgGZ.js";
3
- import { w as D } from "./app-BtIUZZer.js";
4
- import { g as O, c as ve, a as M, t as be, e as ye, m as he, b as Me, u as ge } from "./number-C6mI12qg.js";
5
- import { I as R, a as xe } from "./rules-Dajxj04v.js";
1
+ import { defineComponent as le, mergeModels as W, useModel as ae, computed as v, ref as k, watch as E, onBeforeUnmount as ue, inject as re, resolveComponent as b, openBlock as d, createElementBlock as y, createElementVNode as r, createVNode as h, withCtx as F, renderSlot as H, normalizeClass as O, toDisplayString as _, withDirectives as me, vModelText as ce, createCommentVNode as I, createTextVNode as de, createBlock as U, Fragment as pe, renderList as fe } from "vue";
2
+ import { l as ve } from "./netsuite-B6QeJ2cS.js";
3
+ import { w as D } from "./app-DTz4LGCJ.js";
4
+ import { g as $, c as be, a as x, t as ye, e as he, m as xe, b as Me, u as ge } from "./number-CKzPOWR2.js";
5
+ import { I as R, a as Fe } from "./rules-EEgDDXMF.js";
6
6
  import "@feedmepos/ui-library";
7
- function H() {
7
+ import { u as _e, a as Ae } from "./uom-rules-BOqMU5Ob.js";
8
+ function G() {
8
9
  return {
9
10
  amount: D.reset()
10
11
  };
@@ -14,12 +15,12 @@ function J() {
14
15
  return R()(f.amountAsString);
15
16
  };
16
17
  }
17
- function We(a) {
18
+ function Ze(a) {
18
19
  return function(t) {
19
20
  return R()(t.amountAsString) !== !0 ? !0 : +t.amountAsString < a ? `Must be at least ${a}` : !0;
20
21
  };
21
22
  }
22
- function Ee(a) {
23
+ function Je(a) {
23
24
  return function(t) {
24
25
  return R()(t.amountAsString) !== !0 ? !0 : +t.amountAsString > a ? `Must be at most ${a}` : !0;
25
26
  };
@@ -29,35 +30,35 @@ function Z(a, f = !1) {
29
30
  const s = J()(c);
30
31
  if (s != !0)
31
32
  return f ? s : !0;
32
- const A = typeof a == "number" ? a : O(a, c.modelValue.measurement);
33
- return ve(+c.amountAsString).precision > A ? `Cannot exceed precision more than ${M({
33
+ const A = typeof a == "number" ? a : $(a, c.modelValue.measurement);
34
+ return be(+c.amountAsString).precision > A ? `Cannot exceed precision more than ${x({
34
35
  amount: 1,
35
36
  precision: A
36
37
  })}` : !0;
37
38
  };
38
39
  }
39
- function Ge(a) {
40
- const f = xe(a);
40
+ function Ke(a) {
41
+ const f = Fe(a);
41
42
  return function(c) {
42
43
  return f(c.modelValue.amount);
43
44
  };
44
45
  }
45
- const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { class: "flex-1" }, Pe = { class: "flex items-center gap-4" }, ke = { class: "flex-1 flex gap-4" }, Be = { class: "shrink-0 grow basis-2/5" }, Ie = {
46
+ const Be = { class: "flex flex-col" }, Pe = { class: "flex flex-col" }, ke = { class: "flex-1" }, Ie = { class: "flex items-center gap-4" }, Ue = { class: "flex-1 flex gap-4" }, De = { class: "shrink-0 grow basis-2/5" }, Re = {
46
47
  key: 0,
47
48
  class: "text-fm-color-typo-secondary"
48
- }, Ue = {
49
+ }, Ce = {
49
50
  key: 0,
50
51
  class: "flex"
51
- }, De = { class: "line-clamp-1 text-ellipsis break-all" }, Re = { class: "flex items-center gap-4" }, we = { class: "flex items-center" }, Ce = { class: "line-clamp-1 text-ellipsis break-all" }, Se = { class: "max-w-[200px] flex flex-col gap-[1px]" }, Ne = {
52
+ }, we = { class: "line-clamp-1 text-ellipsis break-all" }, Se = { class: "flex items-center gap-4" }, Ne = { class: "flex items-center" }, Ve = { class: "line-clamp-1 text-ellipsis break-all" }, Te = { class: "max-w-[200px] flex flex-col gap-[1px]" }, je = {
52
53
  key: 1,
53
54
  class: "flex flex-col gap-4 pl-8 shrink-0"
54
- }, Ve = {
55
+ }, Oe = {
55
56
  class: "flex items-center",
56
57
  style: { "pointer-events": "none" }
57
- }, Te = {
58
+ }, $e = {
58
59
  class: "flex items-center",
59
60
  style: { "pointer-events": "none" }
60
- }, He = /* @__PURE__ */ ie({
61
+ }, Qe = /* @__PURE__ */ le({
61
62
  __name: "FmUnitInput",
62
63
  props: /* @__PURE__ */ W({
63
64
  modelValue: {},
@@ -108,44 +109,44 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
108
109
  }),
109
110
  emits: /* @__PURE__ */ W(["update:amount", "update:measurement"], ["update:modelValue"]),
110
111
  setup(a, { emit: f }) {
111
- const t = a, c = f, s = le(a, "modelValue"), A = R(), w = v(() => {
112
+ const t = a, c = f, s = ae(a, "modelValue"), A = R(), C = v(() => {
112
113
  var n;
113
- return O(t.unit, (n = s.value) == null ? void 0 : n.measurement);
114
- }), p = B((() => {
115
- var o;
116
- const e = ((o = s.value) == null ? void 0 : o.amount) ?? D.reset(), n = Me(e), i = t.formatMinimumPrecision ?? n.precision, l = ge(n, i);
117
- return M(l);
114
+ return $(t.unit, (n = s.value) == null ? void 0 : n.measurement);
115
+ }), p = k((() => {
116
+ var i;
117
+ const e = ((i = s.value) == null ? void 0 : i.amount) ?? D.reset(), n = Me(e), l = t.formatMinimumPrecision ?? n.precision, u = ge(n, l);
118
+ return x(u);
118
119
  })());
119
- let x = null;
120
+ let g = null;
120
121
  E(p, (e) => {
121
- x && clearTimeout(x), x = setTimeout(() => {
122
- var r;
123
- const n = A(e), i = t.precision ?? w.value, o = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > i ? t.formatMinimumPrecision : i;
122
+ g && clearTimeout(g), g = setTimeout(() => {
123
+ var o;
124
+ const n = A(e), l = t.precision ?? C.value, i = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > l ? t.formatMinimumPrecision : l;
124
125
  if (n == !0) {
125
- const g = be(+e, o);
126
- ((r = s.value) == null ? void 0 : r.amount) !== g && (s.value = {
126
+ const M = ye(+e, i);
127
+ ((o = s.value) == null ? void 0 : o.amount) !== M && (s.value = {
127
128
  ...s.value,
128
- amount: g
129
+ amount: M
129
130
  });
130
131
  }
131
132
  c("update:amount", e);
132
133
  }, 500);
133
- }), ae(() => {
134
- x && clearTimeout(x);
134
+ }), ue(() => {
135
+ g && clearTimeout(g);
135
136
  });
136
- const Q = Symbol.for("fm:form-state"), C = ue(Q, null), P = v(() => t.disabled ?? (C == null ? void 0 : C.getDisabled()) ?? !1), X = B(), S = B(!1), $ = B(!1), Y = v(() => S.value || $.value), ee = v(() => {
137
- var l;
138
- const e = t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +M(o.conversion) != 1), n = fe.groupBy(
139
- e,
140
- (o) => `${o.abbrev}${M(o.conversion)}`
141
- ), i = Object.values(n).map((o) => o[0]);
137
+ const Q = Symbol.for("fm:form-state"), w = re(Q, null), B = v(() => t.disabled ?? (w == null ? void 0 : w.getDisabled()) ?? !1), X = k(), S = k(!1), q = k(!1), Y = v(() => S.value || q.value), ee = _e(), te = v(() => {
138
+ var i;
139
+ const e = ee.value, n = t.unit.measurements.filter((o) => !Ae(o, e)).filter((o) => o.abbrev !== t.unit.abbrev || +x(o.conversion) != 1), l = ve.groupBy(
140
+ n,
141
+ (o) => `${o.abbrev}${x(o.conversion)}`
142
+ ), u = Object.values(l).map((o) => o[0]);
142
143
  return [
143
144
  {
144
- label: (l = t.unit) == null ? void 0 : l.abbrev,
145
+ label: (i = t.unit) == null ? void 0 : i.abbrev,
145
146
  value: null,
146
147
  isBaseUnit: !0
147
148
  },
148
- ...i.map((o) => ({
149
+ ...u.map((o) => ({
149
150
  label: o.abbrev,
150
151
  value: o.id,
151
152
  isBaseUnit: !1
@@ -159,13 +160,13 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
159
160
  set(e) {
160
161
  if (e == null)
161
162
  s.value = {
162
- ...s.value ?? H(),
163
+ ...s.value ?? G(),
163
164
  measurement: null
164
165
  }, c("update:measurement", null);
165
166
  else {
166
- const n = t.unit.measurements.find((i) => i.id === e) ?? null;
167
+ const n = t.unit.measurements.find((l) => l.id === e) ?? null;
167
168
  s.value = {
168
- ...s.value ?? H(),
169
+ ...s.value ?? G(),
169
170
  measurement: n
170
171
  }, c("update:measurement", n);
171
172
  }
@@ -175,51 +176,51 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
175
176
  var m;
176
177
  if (!t.convertAmountOnChangeUnit)
177
178
  return;
178
- const i = ((m = s.value) == null ? void 0 : m.amount) ?? D.reset(), l = t.unit.measurements.find((k) => k.id === n) ?? null, o = t.unit.measurements.find((k) => k.id === e) ?? null, r = l ? ye(i, l.conversion) : i, g = o ? he(r, o.conversion) : r, T = O(t.unit, o), L = D.convertPrecision({
179
- value: g,
179
+ const l = ((m = s.value) == null ? void 0 : m.amount) ?? D.reset(), u = t.unit.measurements.find((P) => P.id === n) ?? null, i = t.unit.measurements.find((P) => P.id === e) ?? null, o = u ? he(l, u.conversion) : l, M = i ? xe(o, i.conversion) : o, T = $(t.unit, i), j = D.convertPrecision({
180
+ value: M,
180
181
  precision: T
181
182
  });
182
- p.value = M(L);
183
+ p.value = x(j);
183
184
  });
184
- const q = v(() => {
185
+ const L = v(() => {
185
186
  var e;
186
187
  return !((e = s.value) != null && e.measurement);
187
188
  }), V = v(() => {
188
189
  var e, n;
189
190
  return ((n = (e = s.value) == null ? void 0 : e.measurement) == null ? void 0 : n.abbrev) ?? t.unit.abbrev;
190
- }), te = v(
191
+ }), ne = v(
191
192
  () => {
192
193
  var e;
193
194
  return ((e = t.rules) == null ? void 0 : e.map(
194
- (n) => (i) => typeof n == "function" ? n(i) : n
195
+ (n) => (l) => typeof n == "function" ? n(l) : n
195
196
  )) ?? [];
196
197
  }
197
- ), ne = v(() => [...t.applyDefaultRules ? [
198
+ ), oe = v(() => [...t.applyDefaultRules ? [
198
199
  J(),
199
200
  typeof t.precision == "number" ? Z(t.precision) : Z(t.unit)
200
- ] : [], ...te.value]);
201
+ ] : [], ...ne.value]);
201
202
  function z(e) {
202
- const n = t.precision ?? w.value, l = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > n ? t.formatMinimumPrecision : n, o = e.toFixed(l), r = o.includes(".") ? o.replace(/0+$/, "") : o;
203
- return r.endsWith(".") ? r.slice(0, r.length - 1) : r;
203
+ const n = t.precision ?? C.value, u = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > n ? t.formatMinimumPrecision : n, i = e.toFixed(u), o = i.includes(".") ? i.replace(/0+$/, "") : i;
204
+ return o.endsWith(".") ? o.slice(0, o.length - 1) : o;
204
205
  }
205
- function oe() {
206
+ function se() {
206
207
  if (!t.stepper)
207
208
  return;
208
- const e = +p.value + +M(t.stepper);
209
+ const e = +p.value + +x(t.stepper);
209
210
  p.value = z(e);
210
211
  }
211
- function se() {
212
+ function ie() {
212
213
  if (!t.stepper)
213
214
  return;
214
- const e = +p.value - +M(t.stepper);
215
+ const e = +p.value - +x(t.stepper);
215
216
  p.value = z(e);
216
217
  }
217
218
  return (e, n) => {
218
- const i = b("FmLabel"), l = b("FmIcon"), o = b("FmMenuItem"), r = b("FmMenu"), g = b("FmTooltip"), T = b("FmField"), L = b("FmFormGroup");
219
- return d(), y("div", Fe, [
220
- u("div", _e, [
221
- u("div", Ae, [
222
- h(i, {
219
+ const l = b("FmLabel"), u = b("FmIcon"), i = b("FmMenuItem"), o = b("FmMenu"), M = b("FmTooltip"), T = b("FmField"), j = b("FmFormGroup");
220
+ return d(), y("div", Be, [
221
+ r("div", Pe, [
222
+ r("div", ke, [
223
+ h(l, {
223
224
  label: e.label,
224
225
  disabled: e.disabled,
225
226
  required: e.labelMark === "required",
@@ -228,18 +229,18 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
228
229
  ]),
229
230
  h(T, { focused: Y.value }, {
230
231
  default: F(() => [
231
- u("div", Pe, [
232
- G(e.$slots, "prepend"),
233
- u("div", ke, [
234
- u("div", Be, [
232
+ r("div", Ie, [
233
+ H(e.$slots, "prepend"),
234
+ r("div", Ue, [
235
+ r("div", De, [
235
236
  e.stepperOnly ? (d(), y("span", {
236
237
  key: 0,
237
- class: j({
238
+ class: O({
238
239
  "fm-text-field--input fm-typo-en-body-lg-400": !0,
239
- "text-fm-color-typo-primary": !P.value,
240
- "text-fm-color-typo-disabled": P.value
240
+ "text-fm-color-typo-primary": !B.value,
241
+ "text-fm-color-typo-disabled": B.value
241
242
  })
242
- }, _(p.value), 3)) : re((d(), y("input", {
243
+ }, _(p.value), 3)) : me((d(), y("input", {
243
244
  key: 1,
244
245
  type: "text",
245
246
  ref_key: "inputRef",
@@ -247,57 +248,57 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
247
248
  onFocus: n[0] || (n[0] = () => S.value = !0),
248
249
  onBlur: n[1] || (n[1] = () => S.value = !1),
249
250
  "onUpdate:modelValue": n[2] || (n[2] = (m) => p.value = m),
250
- class: j({
251
+ class: O({
251
252
  "fm-text-field--input fm-typo-en-body-lg-400": !0,
252
- "text-fm-color-typo-primary": !P.value,
253
- "text-fm-color-typo-disabled": P.value
253
+ "text-fm-color-typo-primary": !B.value,
254
+ "text-fm-color-typo-disabled": B.value
254
255
  })
255
256
  }, null, 34)), [
256
- [me, p.value]
257
+ [ce, p.value]
257
258
  ])
258
259
  ]),
259
- e.separator ? (d(), y("div", Ie, _(e.separator), 1)) : I("", !0),
260
- u("div", {
261
- class: j([e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"])
260
+ e.separator ? (d(), y("div", Re, _(e.separator), 1)) : I("", !0),
261
+ r("div", {
262
+ class: O([e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"])
262
263
  }, [
263
- h(g, { "z-index": 51 }, {
264
+ h(M, { "z-index": 51 }, {
264
265
  content: F(() => [
265
- ce(_(V.value), 1)
266
+ de(_(V.value), 1)
266
267
  ]),
267
268
  default: F(() => [
268
- e.disableUnit ? (d(), y("div", Ue, [
269
- q.value ? I("", !0) : (d(), U(l, {
269
+ e.disableUnit ? (d(), y("div", Ce, [
270
+ L.value ? I("", !0) : (d(), U(u, {
270
271
  key: 0,
271
272
  name: "square_foot"
272
273
  })),
273
- u("div", De, _(V.value), 1)
274
- ])) : (d(), U(r, {
274
+ r("div", we, _(V.value), 1)
275
+ ])) : (d(), U(o, {
275
276
  key: 1,
276
- onMenuChanged: n[3] || (n[3] = (m) => $.value = m),
277
+ onMenuChanged: n[3] || (n[3] = (m) => q.value = m),
277
278
  "z-index": 500,
278
279
  placement: e.placement,
279
280
  disabled: e.disabled
280
281
  }, {
281
282
  "menu-button": F(() => [
282
- u("div", Re, [
283
- u("div", we, [
284
- q.value ? I("", !0) : (d(), U(l, {
283
+ r("div", Se, [
284
+ r("div", Ne, [
285
+ L.value ? I("", !0) : (d(), U(u, {
285
286
  key: 0,
286
287
  name: "square_foot"
287
288
  })),
288
- u("div", Ce, _(V.value), 1)
289
+ r("div", Ve, _(V.value), 1)
289
290
  ]),
290
- h(l, { name: "keyboard_arrow_down" })
291
+ h(u, { name: "keyboard_arrow_down" })
291
292
  ])
292
293
  ]),
293
294
  default: F(() => [
294
- u("div", Se, [
295
- (d(!0), y(de, null, pe(ee.value, (m) => (d(), U(o, {
295
+ r("div", Te, [
296
+ (d(!0), y(pe, null, fe(te.value, (m) => (d(), U(i, {
296
297
  key: m.value ?? void 0,
297
298
  label: m.label,
298
299
  icon: m.isBaseUnit ? void 0 : "square_foot",
299
300
  "model-value": m.value == N.value,
300
- onClick: (k) => N.value = m.value
301
+ onClick: (P) => N.value = m.value
301
302
  }, null, 8, ["label", "icon", "model-value", "onClick"]))), 128))
302
303
  ])
303
304
  ]),
@@ -307,24 +308,24 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
307
308
  _: 1
308
309
  })
309
310
  ], 2),
310
- e.stepper ? (d(), y("div", Ne, [
311
- u("div", {
311
+ e.stepper ? (d(), y("div", je, [
312
+ r("div", {
312
313
  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",
313
- onClick: oe
314
+ onClick: se
314
315
  }, [
315
- u("div", Ve, [
316
- h(l, {
316
+ r("div", Oe, [
317
+ h(u, {
317
318
  name: "expand_less",
318
319
  size: "md"
319
320
  })
320
321
  ])
321
322
  ]),
322
- u("div", {
323
+ r("div", {
323
324
  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",
324
- onClick: se
325
+ onClick: ie
325
326
  }, [
326
- u("div", Te, [
327
- h(l, {
327
+ r("div", $e, [
328
+ h(u, {
328
329
  name: "expand_more",
329
330
  size: "md"
330
331
  })
@@ -332,17 +333,17 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
332
333
  ])
333
334
  ])) : I("", !0)
334
335
  ]),
335
- G(e.$slots, "append")
336
+ H(e.$slots, "append")
336
337
  ])
337
338
  ]),
338
339
  _: 3
339
340
  }, 8, ["focused"])
340
341
  ]),
341
- h(L, {
342
+ h(j, {
342
343
  class: "flex-1",
343
344
  "model-value": { modelValue: s.value, amountAsString: String(p.value) },
344
345
  info: e.labelInfo,
345
- rules: ne.value,
346
+ rules: oe.value,
346
347
  "helper-text": e.helperText,
347
348
  "helper-state": e.helperState
348
349
  }, null, 8, ["model-value", "info", "rules", "helper-text", "helper-state"])
@@ -351,11 +352,11 @@ const Fe = { class: "flex flex-col" }, _e = { class: "flex flex-col" }, Ae = { c
351
352
  }
352
353
  });
353
354
  export {
354
- Ge as F,
355
- He as _,
356
- We as a,
357
- Ee as b,
355
+ Ke as F,
356
+ Qe as _,
357
+ Ze as a,
358
+ Je as b,
358
359
  J as c,
359
360
  Z as d,
360
- H as e
361
+ G as e
361
362
  };
@@ -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-DGlWE5I8.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-RoG35971.js";
6
- import { a as ie } from "./app-BtIUZZer.js";
7
- import "./dayjs.min-B15_mmz6.js";
5
+ import { u as Xe } from "./feature-dHHbIKf7.js";
6
+ import { a as ie } from "./app-DTz4LGCJ.js";
7
+ import "./dayjs.min-YbnVt6Kp.js";
8
8
  import "./app-DiX-EfV6.js";
9
9
  import "./FmAdminBadge-DjnBAgyv.js";
10
- import { s as He, a as qe, d as Qe, t as Ce, r as Ye } from "./xlsx.util-TwDCO4ay.js";
11
- import { s as Ze, g as et, b as tt, d as Fe } from "./import-export.helper-B2ZzXsyT.js";
10
+ import { s as He, a as qe, d as Qe, t as Ce, r as Ye } from "./xlsx.util-FEXJ9YRM.js";
11
+ import { s as Ze, g as et, b as tt, d as Fe } from "./import-export.helper-BblDa7MU.js";
12
12
  import { r as nt } from "./random-CSbEbElR.js";
13
- import { c as Ae, a as pe } from "./number-C6mI12qg.js";
13
+ import { c as Ae, a as pe } from "./number-CKzPOWR2.js";
14
14
  import { F as ot } from "./FmDroppableField-J0xUsOTV.js";
15
15
  function Ee() {
16
16
  return `measurement_${(/* @__PURE__ */ new Date()).toISOString()}_${nt()}`;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, openBlock as s, createElementBlock 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-C6mI12qg.js";
2
+ import { a, e as y } from "./number-CKzPOWR2.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, openBlock as F, createElementBlock as B, createVNode as b, unref as i, createElementVNode as c, 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 P, c as L, i as oe, u as Re } from "./app-BtIUZZer.js";
2
+ import { a as P, c as L, i as oe, u as Re } from "./app-DTz4LGCJ.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-DQ9bJ_uv.js";
8
8
  import { c as Ve } from "./component-kqxARxvM.js";
9
9
  import { u as Ce, _ as De } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
10
10
  import { _ as Ae, F as le } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
11
- import { _ as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0u8X0Bk.js";
12
- import { d as de } from "./defineDeepModel-CeW3ETAv.js";
13
- import { I as Te, A as Ee, U as Me, R as ce } from "./rules-Dajxj04v.js";
11
+ import { _ as $e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-W4K3RNpN.js";
12
+ import { d as de } from "./defineDeepModel-CxxsD8UG.js";
13
+ import { I as Te, A as Ee, U as Me, R as ce } from "./rules-EEgDDXMF.js";
14
14
  import { L as Ue, P as Be, D as Le } from "./app-DiX-EfV6.js";
15
- import { u as Pe } from "./FmMultiselectDialog-BuXhazyF.js";
15
+ import { u as Pe } from "./FmMultiselectDialog-D5vlbq9s.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(