@feedmepos/mf-inventory-portal 1.5.10 → 1.5.11-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-erqZSd0c.js → App-CquCiNsy.js} +4 -4
  2. package/dist/{ApprovalView-C2CGthqi.js → ApprovalView-CU-k06kj.js} +7 -7
  3. package/dist/{BindingsDialog-Cw6MdCbI.js → BindingsDialog-BPBKfeS6.js} +2 -2
  4. package/dist/{BindingsPicker-CcSrxhUo.js → BindingsPicker-DkBI7_0Y.js} +2 -2
  5. package/dist/{BindingsTable-C5nMju9L.js → BindingsTable-C22g1gV7.js} +3 -3
  6. package/dist/{ClosingDraftView-C_Loim5S.js → ClosingDraftView-DgHvcVne.js} +15 -15
  7. package/dist/ClosingHistoryView-Cjm39o7e.js +1114 -0
  8. package/dist/{ClosingTemplateView-PQdTcIFY.js → ClosingTemplateView-BfO_HZS-.js} +14 -14
  9. package/dist/{DefaultView-BIlFmXaB.js → DefaultView-Jl_IdT_Z.js} +2 -2
  10. package/dist/{DeliveryOrderPrintPreview-BhT1YxRZ.js → DeliveryOrderPrintPreview-CaWTHT6h.js} +2 -2
  11. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DO7xvy5V.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BXmbD4jZ.js} +2 -2
  12. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Bf6RHJdQ.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DWm36ZgX.js} +2 -2
  13. package/dist/{FmMultiselectDialog-cXV6Jo4B.js → FmMultiselectDialog-CEsqNTCq.js} +2 -2
  14. package/dist/{FmMultiselectDialog-B-X6WQXu.js → FmMultiselectDialog-D4gqa0tb.js} +1 -1
  15. package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-4NtlySGX.js +388 -0
  16. package/dist/{ImportView-B3jO8aU8.js → ImportView-GTiAyijj.js} +6 -6
  17. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-GPVWrmed.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BHRq2v-2.js} +1 -1
  18. package/dist/{IngredientGroupView-BuUoHLDb.js → IngredientGroupView-Kk002hXi.js} +5 -5
  19. package/dist/{IngredientsView-Dq_YrtQ5.js → IngredientsView-8Dojrj1e.js} +15 -15
  20. package/dist/{IntegrationExplorerView-Dh5ZPJK-.js → IntegrationExplorerView-BVBqUc3k.js} +352 -352
  21. package/dist/{IntegrationView-DWbHZdc4.js → IntegrationView-eS-LnDeu.js} +13 -13
  22. package/dist/{InventoryBindingForm-D-EN8Tpz.js → InventoryBindingForm-DitsFH4v.js} +1 -1
  23. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-DncMbF6J.js +429 -0
  24. package/dist/{InventoryBindingSummary-BTagfxn1.js → InventoryBindingSummary-DIKZ_7lC.js} +1 -1
  25. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BUBHDMNn.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DJV_hhgt.js} +1 -1
  26. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-D2B20Qv0.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Pjde4sd6.js} +1 -1
  27. package/dist/{PublishView-CpiWv2n6.js → PublishView-CTwkJWJj.js} +3 -3
  28. package/dist/{PurchaseOrderPrintPreview-Czi5Aip0.js → PurchaseOrderPrintPreview-BuP85XCw.js} +2 -2
  29. package/dist/{ReceiveRequestView-BVEU4j9p.js → ReceiveRequestView-CfWhi-qh.js} +9631 -9552
  30. package/dist/{RecipeView-OVmWTAt-.js → RecipeView-CaNmJwqf.js} +1316 -1291
  31. package/dist/{SettingsView-CMQLojRr.js → SettingsView-DiMxunWj.js} +4 -4
  32. package/dist/{StockView-DZeeZlJq.js → StockView-CWDb29Cp.js} +19 -19
  33. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bf1b1rJK.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-0MNUfMmq.js} +1 -1
  34. package/dist/{SupplierView-BcmkfFvI.js → SupplierView-CLB-ASht.js} +12 -12
  35. package/dist/{SurchargeView-DhcatJUO.js → SurchargeView-C2clhhAW.js} +6 -6
  36. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-D6bwhx8Z.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DF-LJ-3w.js} +2 -2
  37. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-4Ti9w_wf.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Ga9lkrf8.js} +1 -1
  38. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Dw1TIZVj.js → TransferDetails.vue_vue_type_script_setup_true_lang-R1t4S-6H.js} +20 -20
  39. package/dist/{TransferTemplateView-CRPvLRHd.js → TransferTemplateView-7lXzFWv2.js} +18 -18
  40. package/dist/{UnitCostHistoryView-B4pAplGT.js → UnitCostHistoryView-CZg_dxvk.js} +4 -4
  41. package/dist/UnitDisplayControl.vue_vue_type_script_setup_true_lang-BB3dV6Gh.js +160 -0
  42. package/dist/{UnitView-95-cARn9.js → UnitView-BnZ_3MwD.js} +7 -7
  43. package/dist/{WarehouseView-o1FxslRs.js → WarehouseView-D7j9qMqP.js} +5 -5
  44. package/dist/{WastageTemplateView-D3hu-bq0.js → WastageTemplateView-Cl_9lPqx.js} +14 -14
  45. package/dist/{app-BEJm79K1.js → app-DMMqtQts.js} +23 -11
  46. package/dist/app.d.ts +12 -0
  47. package/dist/app.js +1 -1
  48. package/dist/{closing-template-BotB3jos.js → closing-template-CiSNSKyE.js} +1 -1
  49. package/dist/{date2-CnEklTL8.js → date2-Db-IPmri.js} +1 -1
  50. package/dist/{dayjs.min-CUR65wqq.js → dayjs.min-DD2BO69F.js} +1 -1
  51. package/dist/{decimal-CV_OL7iL.js → decimal-Ds6h3ukt.js} +2 -2
  52. package/dist/{defineDeepModel-D7NJvnaz.js → defineDeepModel-BgonxmUi.js} +1 -1
  53. package/dist/{duplicate-template-DCaAVNSG.js → duplicate-template-L6x61phF.js} +1 -1
  54. package/dist/{feature-BpZTiO4W.js → feature-C0UUWbkT.js} +2 -2
  55. package/dist/{format-time-from-id-Awu23hHz.js → format-time-from-id-lrFC2RMu.js} +1 -1
  56. package/dist/{format-unit-display-B2_RGXzk.js → format-unit-display-CpwFmpcL.js} +11 -11
  57. package/dist/{import-export.helper-BuNDvFsc.js → import-export.helper-BtXLvHMF.js} +6 -6
  58. package/dist/{index-BBqEhoS9.js → index-Cej2xM-2.js} +1 -1
  59. package/dist/{index-BK75WSFH.js → index-CxALGEZr.js} +3 -3
  60. package/dist/{index-D_u-AkFp.js → index-mtJ1GhRU.js} +1 -1
  61. package/dist/{inventory-core-dart.default-D_hfcDPc.js → inventory-core-dart.default-CroeeGeI.js} +1 -1
  62. package/dist/{lz-string-K7l_8Og1.js → lz-string-TL3mT9nT.js} +1 -1
  63. package/dist/{netsuite-CPUKn7UQ.js → netsuite-DOpNemik.js} +2 -2
  64. package/dist/{number-DoYjk_zN.js → number-DlYhqTV5.js} +3 -3
  65. package/dist/{predefined-templates-CEDkdeWc.js → predefined-templates-DDpVS07Q.js} +1 -1
  66. package/dist/{purchase-order-template-ChZyiCwx.js → purchase-order-template-K6HvK5h0.js} +1 -1
  67. package/dist/{recalculationUtils-CEkm9-mp.js → recalculationUtils-BHomSQPu.js} +1 -1
  68. package/dist/{rules-DDjcQi_O.js → rules-r7ubhhR0.js} +2 -2
  69. package/dist/{stock-Voq2gMuS.js → stock-BcLy5Ilr.js} +1 -1
  70. package/dist/{supplier-DFopX4OU.js → supplier-rNHLA7rt.js} +2 -2
  71. package/dist/{surcharge-CjwbPJQi.js → surcharge-B5N4UzQl.js} +1 -1
  72. package/dist/tsconfig.app.tsbuildinfo +1 -1
  73. package/dist/{uom-rules-CHnn3ILl.js → uom-rules-B51fYVj3.js} +1 -1
  74. package/dist/{use-ingredient-select-dialog-DS6__LXy.js → use-ingredient-select-dialog-C7NY9Kj6.js} +2 -2
  75. package/dist/{use-inventory-binding-dialog-DcJJo3Lr.js → use-inventory-binding-dialog-Ca4VaXkz.js} +2 -2
  76. package/dist/{use-template-enabled-locations-BVs_0JOA.js → use-template-enabled-locations-RiR-qhSs.js} +2 -2
  77. package/dist/{use-transfer-locations-Dzp5fj3Z.js → use-transfer-locations-csQ1Ar0m.js} +2 -2
  78. package/dist/{useHrmPermission-DQQ5MYsL.js → useHrmPermission-DHcinOeI.js} +1 -1
  79. package/dist/{useNavigationMenu-msCIV-Ux.js → useNavigationMenu-u8V59Vtc.js} +2 -2
  80. package/dist/{useSseClient-cer6d2VA.js → useSseClient-UQLgDoDc.js} +3 -3
  81. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +2 -0
  82. package/dist/views/receive-request/components/transfer-form/composables/use-stock-balance-toggle.d.ts +3 -0
  83. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +4 -0
  84. package/dist/{vue-i18n-BiedKAFs.js → vue-i18n-CD-rDdDv.js} +534 -534
  85. package/dist/{xlsx-DGn-BAF9.js → xlsx-BRq0kYfc.js} +1 -1
  86. package/dist/{xlsx.util-DXnaPoeW.js → xlsx.util-ylgVcZid.js} +3 -3
  87. package/package.json +2 -2
  88. package/dist/ClosingHistoryView-7TcMNjKb.js +0 -1108
  89. package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-BHazP1jS.js +0 -362
  90. package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CI4hutH2.js +0 -404
  91. package/dist/UnitDisplayControl.vue_vue_type_script_setup_true_lang-D3OGljNP.js +0 -137
  92. package/dist/export-HmzdllkU.js +0 -26
@@ -1,24 +1,24 @@
1
1
  import { defineComponent as Y, mergeModels as Pe, useModel as ke, onMounted as ie, ref as L, computed as O, resolveComponent as F, openBlock as x, createElementBlock as E, createElementVNode as l, toDisplayString as R, unref as V, createVNode as A, createBlock as H, withCtx as N, Fragment as P, renderList as ee, normalizeClass as q, normalizeStyle as Qe, createSlots as oe, createCommentVNode as j, withModifiers as Je, reactive as Fe, watch as Ce, isRef as re, Teleport as pe, h as k, createTextVNode as K, watchEffect as Ke } from "vue";
2
2
  import { _ as qe } from "./empty-placeholder-B0QU467o.js";
3
- import { y as Ge, z as Ze, c as ae, u as se, A as We, a as ce, N as ge, B as Ae, C as $, w as ne, D as Be, E as Ve, s as fe } from "./app-BEJm79K1.js";
3
+ import { y as Ge, z as Ze, c as ae, u as se, A as We, a as ce, N as ge, B as Ae, C as $, w as ne, D as Be, E as Ve, s as fe } from "./app-DMMqtQts.js";
4
4
  import { useDialogChild as $e, useDialog as be, useProxiedModel as ue, useSnackbar as G, useBreakpoints as _e, components as J } from "@feedmepos/ui-library";
5
5
  import { _ as et } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
6
6
  import { useI18n as Z, useCoreStore as le } from "@feedmepos/mf-common";
7
- import { _ as tt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Bf6RHJdQ.js";
8
- import { u as nt, a as st, b as ot, c as at } from "./index-BK75WSFH.js";
9
- import { u as te, a as me } from "./netsuite-CPUKn7UQ.js";
10
- import { b as lt, a as it } from "./FmMultiselectDialog-cXV6Jo4B.js";
11
- import { R as rt } from "./rules-DDjcQi_O.js";
7
+ import { _ as tt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DWm36ZgX.js";
8
+ import { u as nt, a as st, b as ot, c as at } from "./index-CxALGEZr.js";
9
+ import { u as te, a as me } from "./netsuite-DOpNemik.js";
10
+ import { b as lt, a as it } from "./FmMultiselectDialog-CEsqNTCq.js";
11
+ import { R as rt } from "./rules-r7ubhhR0.js";
12
12
  import { P as Ee, J as Ne, D as Le } from "./app-DiX-EfV6.js";
13
- import { u as ut } from "./supplier-DFopX4OU.js";
14
- import { u as ve } from "./vue-i18n-BiedKAFs.js";
15
- import { _ as dt, a as ct } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BHazP1jS.js";
16
- import { a as mt } from "./number-DoYjk_zN.js";
17
- import { a as he, f as De } from "./date2-CnEklTL8.js";
13
+ import { u as ut } from "./supplier-rNHLA7rt.js";
14
+ import { u as ve } from "./vue-i18n-CD-rDdDv.js";
15
+ import { _ as dt, a as ct } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-4NtlySGX.js";
16
+ import { a as mt } from "./number-DlYhqTV5.js";
17
+ import { a as he, f as De } from "./date2-Db-IPmri.js";
18
18
  import { F as Te } from "./FmAdminBadge-DjnBAgyv.js";
19
- import { u as Re } from "./feature-BpZTiO4W.js";
19
+ import { u as Re } from "./feature-C0UUWbkT.js";
20
20
  import { F as Oe } from "./FmDroppableField-J0xUsOTV.js";
21
- import { r as Me, u as ze } from "./xlsx-DGn-BAF9.js";
21
+ import { r as Me, u as ze } from "./xlsx-BRq0kYfc.js";
22
22
  const ft = "data:image/svg+xml,%3csvg%20width='200'%20height='101'%20viewBox='0%200%20200%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M98.9161%2038.4456V24.1772H108.527V27.1988H102.12V30.2202H107.347V32.7382H102.12V38.4456H98.9161Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.382%2031.2276C110.382%2027.5345%20113.249%2024.1772%20117.127%2024.1772C121.174%2024.1772%20123.872%2027.7024%20123.872%2031.3953C123.872%2035.0884%20121.005%2038.6133%20117.127%2038.6133C113.08%2038.4456%20110.382%2034.9204%20110.382%2031.2276ZM117.127%2035.5919C119.487%2035.5919%20120.499%2033.4096%20120.499%2031.2276C120.499%2029.0452%20119.319%2027.0309%20117.127%2027.0309C114.935%2027.0309%20113.754%2029.213%20113.754%2031.2276C113.754%2033.5776%20114.935%2035.5919%20117.127%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M126.232%2031.2276C126.232%2027.5345%20129.099%2024.1772%20132.977%2024.1772C137.024%2024.1772%20139.722%2027.7024%20139.722%2031.3953C139.722%2035.0884%20136.855%2038.6133%20132.977%2038.6133C128.93%2038.4456%20126.232%2034.9204%20126.232%2031.2276ZM132.977%2035.5919C135.337%2035.5919%20136.349%2033.4096%20136.349%2031.2276C136.349%2029.0452%20135.169%2027.0309%20132.977%2027.0309C130.785%2027.0309%20129.604%2029.213%20129.604%2031.2276C129.604%2033.5776%20130.785%2035.5919%20132.977%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M142.926%2038.4455V24.345H148.153C152.874%2024.345%20155.235%2027.5343%20155.235%2031.3952C155.235%2035.5918%20152.368%2038.4455%20148.153%2038.4455H142.926ZM148.153%2027.0308H146.129V35.4238H148.153C150.513%2035.4238%20151.862%2033.5775%20151.862%2031.2272C151.862%2028.8773%20150.513%2027.0308%20148.153%2027.0308Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.045%2057.5607V49.1676L107.009%2055.2107H105.324L102.12%2049.1676V57.5607H98.9161V43.4604H102.457L106.167%2050.8465L109.876%2043.4604H113.417V57.5607H110.045Z'%20fill='%235D5359'/%3e%3cpath%20d='M115.947%2057.5607L121.342%2043.4604H124.04L129.436%2057.5607H125.895L124.715%2054.3716H120.331L119.319%2057.5607H115.947ZM122.691%2046.9856L121.005%2052.1893H124.378L122.691%2046.9856Z'%20fill='%235D5359'/%3e%3cpath%20d='M131.965%2057.5607V43.4604H138.373C141.07%2043.4604%20142.925%2045.8105%20142.925%2048.1605C142.925%2049.8393%20142.082%2051.5179%20140.565%2052.1893L143.768%2057.393H140.059L137.192%2052.8607H135V57.393H131.965V57.5607ZM135.169%2050.175H138.204C139.047%2050.175%20139.553%2049.3356%20139.553%2048.1605C139.553%2046.9856%20138.71%2046.3142%20138.035%2046.3142H135.169V50.175Z'%20fill='%235D5359'/%3e%3cpath%20d='M146.635%2057.5607V43.4604H150.007V49.8393L155.403%2043.4604H158.776L153.548%2049.6713L159.281%2057.5607H155.74L151.693%2051.5179L150.007%2053.3642V57.5607H146.635Z'%20fill='%235D5359'/%3e%3cpath%20d='M171.422%2054.7073V57.5607H161.474V43.4604H171.253V46.3142H164.677V48.9999H170.242V51.6856H164.677V54.7073H171.422Z'%20fill='%235D5359'/%3e%3cpath%20d='M185.417%2046.3142H181.202V57.5607H177.829V46.3142H173.614V43.4604H185.417V46.3142Z'%20fill='%235D5359'/%3e%3cpath%20d='M111.057%2062.5967V76.6973H107.853V70.9898H102.12V76.6973H98.9161V62.5967H102.12V68.1361H107.853V62.5967H111.057Z'%20fill='%235D5359'/%3e%3cpath%20d='M124.04%2069.815V62.5967H127.244V69.815C127.244%2073.6758%20125.389%2076.865%20121.005%2076.865C116.453%2076.865%20114.766%2073.5078%20114.766%2069.815V62.5967H117.97V69.815C117.97%2071.997%20118.813%2074.0115%20121.005%2074.0115C123.366%2074.0115%20124.04%2071.997%20124.04%2069.815Z'%20fill='%235D5359'/%3e%3cpath%20d='M138.036%2076.6973H131.122V62.5967H139.047C141.071%2062.5967%20142.251%2064.4433%20142.251%2066.2898C142.251%2067.6327%20141.576%2068.9755%20140.228%2069.4793C141.914%2069.9827%20142.926%2071.1578%20142.926%2073.1721C142.757%2075.5221%20140.733%2076.6973%20138.036%2076.6973ZM134.326%2065.4504V68.3041H137.53C138.204%2068.3041%20138.879%2067.8004%20138.879%2066.7933C138.879%2065.7861%20138.373%2065.2827%20137.698%2065.2827H134.326V65.4504ZM138.204%2070.8221H134.494V73.8435H138.204C139.047%2073.8435%20139.722%2073.1721%20139.722%2072.3327C139.553%2071.6613%20138.879%2070.8221%20138.204%2070.8221Z'%20fill='%235D5359'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M73.4753%2051.4994C78.7281%2050.5396%2082.8911%2046.4891%2083.9954%2041.3137L84.1232%2040.7134L83.9445%2040.1256C80.5804%2029.066%2071.9945%2020.2704%2061.0373%2016.5726C57.4%2015.3451%2053.5046%2014.6804%2049.458%2014.6804C45.4112%2014.6804%2041.5158%2015.3451%2037.8784%2016.5726C26.9214%2020.2704%2018.3354%2029.066%2014.9712%2040.1256L14.7924%2040.7134L14.9206%2041.3137C16.0247%2046.4891%2020.1875%2050.5396%2025.4405%2051.4994V58.8839H14.4183C14.6758%2059.9557%2014.9818%2061.0088%2015.3337%2062.0411C20.1553%2076.1811%2033.6083%2086.3619%2049.458%2086.3619C65.3074%2086.3619%2078.7606%2076.1811%2083.5822%2062.0411C83.9342%2061.0088%2084.2399%2059.9557%2084.4974%2058.8839H73.4753V51.4994ZM41.0517%2020.5973V38.5742C41.0517%2043.1931%2044.8155%2046.9371%2049.458%2046.9371C54.1005%2046.9371%2057.8641%2043.1931%2057.8641%2038.5742V20.5973C55.1919%2019.856%2052.3732%2019.4592%2049.458%2019.4592C46.5428%2019.4592%2043.7241%2019.856%2041.0517%2020.5973ZM62.6675%2022.3673V38.5742C62.6675%2043.1931%2066.431%2046.9371%2071.0735%2046.9371C74.9051%2046.9371%2078.1425%2044.3848%2079.1528%2040.8942C76.4672%2032.6902%2070.4379%2025.9824%2062.6675%2022.3673ZM60.2658%2046.1322C57.8753%2049.5094%2053.9255%2051.7159%2049.458%2051.7159C44.9902%2051.7159%2041.0408%2049.5094%2038.65%2046.1322C36.6982%2048.8894%2033.7074%2050.8662%2030.2439%2051.4994V58.8839H68.6718V51.4994C65.2083%2050.8662%2062.2175%2048.8894%2060.2658%2046.1322ZM21.1583%2063.6628C26.1349%2074.2514%2036.9382%2081.5834%2049.458%2081.5834C61.9776%2081.5834%2072.781%2074.2514%2077.7574%2063.6628H21.1583ZM36.2482%2038.5742V22.3673C28.4779%2025.9824%2022.4486%2032.6902%2019.7631%2040.8942C20.7733%2044.3848%2024.0106%2046.9371%2027.8422%2046.9371C32.4847%2046.9371%2036.2482%2043.1931%2036.2482%2038.5742Z'%20fill='%23FFC35D'/%3e%3c/svg%3e";
23
23
  var je = { exports: {} };
24
24
  (function(_, h) {
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CI4hutH2.js";
1
+ import { _ as f } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-DncMbF6J.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,429 @@
1
+ import { defineComponent as oe, computed as x, reactive as te, resolveComponent as k, openBlock as r, createElementBlock as p, createVNode as m, withCtx as I, createElementVNode as n, toDisplayString as c, unref as i, createBlock as w, createCommentVNode as v, Fragment as F, renderList as G, nextTick as le } from "vue";
2
+ import { a as ie, t as se, v as re, F as de } from "./app-DMMqtQts.js";
3
+ import { a as h, c as ae } from "./number-DlYhqTV5.js";
4
+ import { u as ue } from "./use-inventory-binding-dialog-Ca4VaXkz.js";
5
+ import { b as z, c as A } from "./rules-r7ubhhR0.js";
6
+ import { _ as me, c as ce, d as pe } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-4NtlySGX.js";
7
+ import { useI18n as ye } from "@feedmepos/mf-common";
8
+ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-16" }, _e = { class: "flex items-center" }, be = { class: "flex-1 fm-typo-en-title-sm-600" }, xe = { class: "flex flex-col" }, ge = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, he = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Ve = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, Be = {
9
+ class: "flex items-center",
10
+ style: { "min-height": "48px" }
11
+ }, ke = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Ie = { class: "flex flex-col" }, we = { class: "line-clamp-1" }, Fe = { class: "w-[200px]" }, Ue = {
12
+ key: 0,
13
+ class: "w-[52px]"
14
+ }, Ee = {
15
+ key: 0,
16
+ class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400 px-8"
17
+ }, Ce = {
18
+ key: 0,
19
+ class: "flex flex-col gap-16"
20
+ }, Ge = { class: "flex items-center" }, Ae = { class: "flex-1 fm-typo-en-title-sm-600" }, Re = { class: "flex flex-col" }, Se = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, Pe = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Te = { class: "flex flex-col w-full border-b border-fm-color-neutral-gray-100" }, Me = {
21
+ key: 0,
22
+ class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400"
23
+ }, Ne = {
24
+ class: "flex items-center",
25
+ style: { "min-height": "48px" }
26
+ }, ze = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, De = { class: "flex flex-col" }, Ke = { class: "w-[200px]" }, $e = {
27
+ key: 0,
28
+ class: "w-[52px]"
29
+ }, je = { class: "flex flex-col gap-16" }, Le = { class: "flex items-center" }, Oe = { class: "flex-1 fm-typo-en-title-sm-600" }, Ye = { class: "flex flex-col" }, We = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, qe = { class: "flex-1 fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, He = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary w-[150px] px-16" }, Je = {
30
+ key: 0,
31
+ class: "flex flex-col border-b border-fm-color-neutral-gray-100"
32
+ }, Qe = {
33
+ class: "flex items-center w-full",
34
+ style: { "min-height": "48px" }
35
+ }, Xe = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12 text-fm-color-typo-secondary line-clamp-1" }, Ze = { class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400 px-12 pb-4" }, en = {
36
+ key: 1,
37
+ class: "flex flex-col border-b border-fm-color-neutral-gray-100"
38
+ }, nn = {
39
+ class: "flex items-center w-full",
40
+ style: { "min-height": "48px" }
41
+ }, on = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, tn = { class: "line-clamp-1 w-full" }, ln = { class: "w-[150px]" }, sn = {
42
+ key: 0,
43
+ class: "w-[52px]"
44
+ }, rn = { class: "flex flex-col px-12 pb-4" }, fn = /* @__PURE__ */ oe({
45
+ __name: "InventoryBindingForm",
46
+ props: {
47
+ id: {},
48
+ modelValue: { default: () => [] },
49
+ excludeBindingId: {},
50
+ rules: { default: () => [] },
51
+ iframeMode: { type: Boolean },
52
+ disabled: { type: Boolean },
53
+ readonly: { type: Boolean },
54
+ enableIngredientGroup: { type: Boolean }
55
+ },
56
+ emits: ["update:modelValue", "click:pick-inventory-bindings"],
57
+ setup(D, { emit: K }) {
58
+ const { t: u } = ye(), g = ie(), R = x(() => g.recipeById), V = x(() => g.skuById), $ = x(() => g.skuGroupById), s = D, _ = K, S = x(() => se({
59
+ parentId: s.id,
60
+ bindings: s.modelValue,
61
+ recipes: g.recipes.map((o) => o._id === s.id ? {
62
+ ...o,
63
+ contains: s.modelValue
64
+ } : o),
65
+ skus: g.skus.map((o) => o._id === s.id ? {
66
+ ...o,
67
+ convert: {
68
+ inventoryBindings: s.modelValue
69
+ }
70
+ } : o),
71
+ skuGroups: g.skuGroups
72
+ }).inventoryBindings.filter((o) => "error" in o && o.error).map((o) => o).filter((o) => o.reason === re.enum.circularDependency)), U = x(
73
+ () => new Set(S.value.map((e) => {
74
+ var l;
75
+ return (l = e.bindingPaths[0]) == null ? void 0 : l.id;
76
+ }))
77
+ ), j = x(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: L, promptRecipesBinding: O, promptIngredientGroupsBinding: Y } = ue();
78
+ async function W() {
79
+ if (s.iframeMode) {
80
+ _("click:pick-inventory-bindings", "RECIPE");
81
+ return;
82
+ }
83
+ O(
84
+ s.modelValue,
85
+ (e) => _("update:modelValue", e),
86
+ s.id ? [s.id] : []
87
+ );
88
+ }
89
+ const q = x(() => s.modelValue.filter((e) => e.type === "SKU_GROUP"));
90
+ async function H() {
91
+ Y(
92
+ s.modelValue,
93
+ (e) => _("update:modelValue", e),
94
+ s.id ? [s.id] : []
95
+ );
96
+ }
97
+ const P = x(() => s.modelValue.filter((e) => e.type === "SKU") ?? []);
98
+ async function J() {
99
+ if (s.iframeMode) {
100
+ _("click:pick-inventory-bindings", "SKU");
101
+ return;
102
+ }
103
+ L(
104
+ s.modelValue,
105
+ (e) => _("update:modelValue", e),
106
+ s.excludeBindingId,
107
+ s.id ? [s.id] : []
108
+ );
109
+ }
110
+ function T(e, l, o) {
111
+ const a = +l;
112
+ let f = o;
113
+ l.length > 0 && isFinite(a) ? f = o.map((y) => (y.id !== e || (y.amount = ae(a)), y)) : f = o.map((y) => (y.id !== e || (y.amount = { amount: 0, precision: 0 }), y)), _("update:modelValue", f);
114
+ }
115
+ function E(e, l) {
116
+ const o = l.filter((a) => a.id !== e);
117
+ _("update:modelValue", o);
118
+ }
119
+ function M(e) {
120
+ var o, a;
121
+ if (e.type !== de.enum.SKU)
122
+ throw new Error("Non-SKU binding does not have unit");
123
+ if (!((o = V.value[e.id]) == null ? void 0 : o.unit))
124
+ throw new Error(`Cannot find ingredient: ${e.id}`);
125
+ return (a = V.value[e.id]) == null ? void 0 : a.unit;
126
+ }
127
+ function Q(e) {
128
+ return !V.value[e.id];
129
+ }
130
+ function X(e) {
131
+ return { amount: e.amount, measurement: e.measurement };
132
+ }
133
+ function Z(e, l, o) {
134
+ const a = o.map((f) => f.id !== e ? f : {
135
+ ...f,
136
+ amount: l.amount,
137
+ measurement: l.measurement
138
+ });
139
+ _("update:modelValue", a);
140
+ }
141
+ const N = te({});
142
+ function ee(e) {
143
+ return N[e.id] ?? {
144
+ modelValue: {
145
+ amount: e.amount,
146
+ measurement: e.measurement
147
+ },
148
+ amountAsString: h(e.amount)
149
+ };
150
+ }
151
+ function ne(e, l) {
152
+ le(() => {
153
+ N[e.id] = {
154
+ modelValue: {
155
+ amount: e.amount,
156
+ measurement: e.measurement
157
+ },
158
+ amountAsString: l
159
+ };
160
+ });
161
+ }
162
+ return (e, l) => {
163
+ const o = k("FmFormGroup"), a = k("FmButton"), f = k("FmTooltip"), y = k("FmTextField"), C = k("FmIcon");
164
+ return r(), p("div", fe, [
165
+ m(o, {
166
+ disabled: e.disabled,
167
+ "model-value": e.modelValue,
168
+ rules: [
169
+ ...e.rules,
170
+ () => S.value.length ? "There is a binding error in your configuration" : !0
171
+ ]
172
+ }, {
173
+ label: I(() => l[0] || (l[0] = [
174
+ n("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Define the inventory bindings for this recipe or ingredient. ", -1)
175
+ ])),
176
+ _: 1
177
+ }, 8, ["disabled", "model-value", "rules"]),
178
+ n("div", ve, [
179
+ n("div", _e, [
180
+ n("div", be, c(i(u)("inventory.inventoryBindings.recipe")), 1),
181
+ e.readonly ? v("", !0) : (r(), w(a, {
182
+ key: 0,
183
+ variant: "secondary",
184
+ "text-color": "primary",
185
+ "border-color": "primary",
186
+ label: i(u)("inventory.inventoryBindings.linkRecipe"),
187
+ "prepend-icon": "link",
188
+ onClick: W
189
+ }, null, 8, ["label"]))
190
+ ]),
191
+ n("div", xe, [
192
+ n("div", ge, [
193
+ n("div", he, c(i(u)("inventory.inventoryBindings.recipe")), 1),
194
+ l[1] || (l[1] = n("div", { class: "w-[200px]" }, null, -1)),
195
+ l[2] || (l[2] = n("div", { class: "w-[52px]" }, null, -1))
196
+ ]),
197
+ (r(!0), p(F, null, G(j.value, (t) => (r(), w(o, {
198
+ key: t.id,
199
+ disabled: e.disabled,
200
+ modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
201
+ rules: [i(z)(0), i(A)(-1)]
202
+ }, {
203
+ default: I(({ invalid: B }) => {
204
+ var b;
205
+ return [
206
+ n("div", Ve, [
207
+ n("div", Be, [
208
+ n("div", ke, [
209
+ n("div", Ie, [
210
+ m(f, {
211
+ zIndex: 51,
212
+ variant: "plain",
213
+ placement: "top",
214
+ content: (b = R.value[t.id]) == null ? void 0 : b.name
215
+ }, {
216
+ default: I(() => {
217
+ var d;
218
+ return [
219
+ n("span", we, c((d = R.value[t.id]) == null ? void 0 : d.name), 1)
220
+ ];
221
+ }),
222
+ _: 2
223
+ }, 1032, ["content"])
224
+ ])
225
+ ]),
226
+ n("div", Fe, [
227
+ m(y, {
228
+ class: "w-full",
229
+ disabled: e.disabled,
230
+ modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
231
+ "onUpdate:modelValue": (d) => T(t.id, d, e.modelValue),
232
+ invalid: B
233
+ }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
234
+ ]),
235
+ e.readonly ? v("", !0) : (r(), p("div", Ue, [
236
+ m(a, {
237
+ disabled: e.disabled,
238
+ type: "button",
239
+ variant: "plain",
240
+ icon: "delete",
241
+ "icon-color": "#000000",
242
+ onClick: (d) => E(t.id, e.modelValue)
243
+ }, null, 8, ["disabled", "onClick"])
244
+ ]))
245
+ ]),
246
+ U.value.has(t.id) ? (r(), p("div", Ee, [
247
+ m(C, {
248
+ name: "error",
249
+ color: "system-error-300",
250
+ size: "sm"
251
+ }),
252
+ n("div", null, c(i(u)("inventory.inventoryBindings.circularError")), 1)
253
+ ])) : v("", !0)
254
+ ])
255
+ ];
256
+ }),
257
+ _: 2
258
+ }, 1032, ["disabled", "modelValue", "rules"]))), 128))
259
+ ])
260
+ ]),
261
+ e.enableIngredientGroup ? (r(), p("div", Ce, [
262
+ n("div", Ge, [
263
+ n("div", Ae, c(i(u)("inventory.inventoryBindings.ingredientGroup")), 1),
264
+ e.readonly ? v("", !0) : (r(), w(a, {
265
+ key: 0,
266
+ variant: "secondary",
267
+ "text-color": "primary",
268
+ "border-color": "primary",
269
+ label: i(u)("inventory.inventoryBindings.linkIngredientGroup"),
270
+ "prepend-icon": "link",
271
+ onClick: H
272
+ }, null, 8, ["label"]))
273
+ ]),
274
+ n("div", Re, [
275
+ n("div", Se, [
276
+ n("div", Pe, c(i(u)("inventory.inventoryBindings.ingredientGroup")), 1),
277
+ l[3] || (l[3] = n("div", { class: "w-[200px]" }, null, -1)),
278
+ l[4] || (l[4] = n("div", { class: "w-[52px]" }, null, -1))
279
+ ]),
280
+ (r(!0), p(F, null, G(q.value, (t) => (r(), w(o, {
281
+ key: t.id,
282
+ disabled: e.disabled,
283
+ modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
284
+ rules: [i(z)(0), i(A)(0)]
285
+ }, {
286
+ default: I(({ invalid: B }) => {
287
+ var b;
288
+ return [
289
+ n("div", Te, [
290
+ U.value.has(t.id) ? (r(), p("div", Me, [
291
+ m(C, {
292
+ name: "error",
293
+ color: "system-error-300",
294
+ size: "sm"
295
+ }),
296
+ n("div", null, c(i(u)("inventory.inventoryBindings.circularError")), 1)
297
+ ])) : v("", !0),
298
+ n("div", Ne, [
299
+ n("div", ze, [
300
+ n("div", De, c((b = $.value[t.id]) == null ? void 0 : b.name), 1)
301
+ ]),
302
+ n("div", Ke, [
303
+ m(y, {
304
+ class: "w-full",
305
+ disabled: e.disabled,
306
+ modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
307
+ "onUpdate:modelValue": (d) => T(t.id, d, e.modelValue),
308
+ invalid: B
309
+ }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
310
+ ]),
311
+ e.readonly ? v("", !0) : (r(), p("div", $e, [
312
+ m(a, {
313
+ disabled: e.disabled,
314
+ type: "button",
315
+ variant: "plain",
316
+ icon: "delete",
317
+ "icon-color": "#000000",
318
+ onClick: (d) => E(t.id, e.modelValue)
319
+ }, null, 8, ["disabled", "onClick"])
320
+ ]))
321
+ ])
322
+ ])
323
+ ];
324
+ }),
325
+ _: 2
326
+ }, 1032, ["disabled", "modelValue", "rules"]))), 128))
327
+ ])
328
+ ])) : v("", !0),
329
+ n("div", je, [
330
+ n("div", Le, [
331
+ n("div", Oe, c(i(u)("inventory.inventoryBindings.ingredient")), 1),
332
+ e.readonly ? v("", !0) : (r(), w(a, {
333
+ key: 0,
334
+ variant: "secondary",
335
+ "text-color": "primary",
336
+ "border-color": "primary",
337
+ label: i(u)("inventory.inventoryBindings.linkIngredient"),
338
+ "prepend-icon": "link",
339
+ onClick: J
340
+ }, null, 8, ["label"]))
341
+ ]),
342
+ n("div", Ye, [
343
+ n("div", We, [
344
+ n("div", qe, c(i(u)("inventory.inventoryBindings.ingredient")), 1),
345
+ n("div", He, c(i(u)("inventory.inventoryBindings.amount")), 1),
346
+ l[5] || (l[5] = n("div", { class: "w-[52px]" }, null, -1))
347
+ ]),
348
+ (r(!0), p(F, null, G(P.value, (t, B) => {
349
+ var b;
350
+ return r(), p(F, {
351
+ key: t.id
352
+ }, [
353
+ Q(t) ? (r(), p("div", Je, [
354
+ n("div", Qe, [
355
+ n("div", Xe, c(t.id), 1)
356
+ ]),
357
+ n("div", Ze, [
358
+ m(C, {
359
+ name: "error",
360
+ color: "system-error-300",
361
+ size: "sm"
362
+ }),
363
+ n("div", null, c(i(u)("inventory.inventoryBindings.missingIngredient")), 1)
364
+ ])
365
+ ])) : (r(), p("div", en, [
366
+ n("div", nn, [
367
+ n("div", on, [
368
+ m(f, {
369
+ zIndex: 51,
370
+ variant: "plain",
371
+ placement: "top",
372
+ content: (b = V.value[t.id]) == null ? void 0 : b.name
373
+ }, {
374
+ default: I(() => {
375
+ var d;
376
+ return [
377
+ n("span", tn, c((d = V.value[t.id]) == null ? void 0 : d.name), 1)
378
+ ];
379
+ }),
380
+ _: 2
381
+ }, 1032, ["content"])
382
+ ]),
383
+ n("div", ln, [
384
+ m(me, {
385
+ "model-value": X(t),
386
+ "onUpdate:modelValue": (d) => d && Z(t.id, d, e.modelValue),
387
+ "onUpdate:amount": (d) => ne(t, d),
388
+ unit: M(t),
389
+ placement: B === P.value.length - 1 ? "top" : "bottom",
390
+ "convert-amount-on-change-unit": "",
391
+ disabled: e.readonly
392
+ }, null, 8, ["model-value", "onUpdate:modelValue", "onUpdate:amount", "unit", "placement", "disabled"])
393
+ ]),
394
+ e.readonly ? v("", !0) : (r(), p("div", sn, [
395
+ m(a, {
396
+ disabled: e.disabled,
397
+ type: "button",
398
+ variant: "tertiary",
399
+ icon: "delete",
400
+ onClick: (d) => E(t.id, e.modelValue)
401
+ }, null, 8, ["disabled", "onClick"])
402
+ ]))
403
+ ]),
404
+ n("div", rn, [
405
+ m(o, {
406
+ modelValue: +i(h)(t.amount ?? { amount: 1, precision: 0 }),
407
+ rules: [i(A)(0)]
408
+ }, null, 8, ["modelValue", "rules"]),
409
+ m(o, {
410
+ modelValue: ee(t),
411
+ rules: [
412
+ i(ce)(),
413
+ i(pe)(M(t)),
414
+ () => U.value.has(t.id) ? i(u)("inventory.inventoryBindings.invalidWarning") : !0
415
+ ]
416
+ }, null, 8, ["modelValue", "rules"])
417
+ ])
418
+ ]))
419
+ ], 64);
420
+ }), 128))
421
+ ])
422
+ ])
423
+ ]);
424
+ };
425
+ }
426
+ });
427
+ export {
428
+ fn as _
429
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, resolveComponent as m, openBlock as c, createBlock as d, h as g } from "vue";
2
2
  import { useI18n as p } from "@feedmepos/mf-common";
3
3
  import { components as u } from "@feedmepos/ui-library";
4
- import { F as r } from "./app-BEJm79K1.js";
4
+ import { F as r } from "./app-DMMqtQts.js";
5
5
  const w = /* @__PURE__ */ l({
6
6
  __name: "InventoryBindingSummary",
7
7
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as V, computed as w, ref as h, watch as u, resolveComponent as i, openBlock as F, createBlock as g, withCtx as d, createVNode as A, createElementVNode as k, normalizeClass as K } from "vue";
2
- import { c as s } from "./number-DoYjk_zN.js";
2
+ import { c as s } from "./number-DlYhqTV5.js";
3
3
  const _ = ["value", "disabled"], C = /* @__PURE__ */ V({
4
4
  __name: "NumberPrecisionInput",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { m as F, u as f } from "./app-BEJm79K1.js";
1
+ import { m as F, u as f } from "./app-DMMqtQts.js";
2
2
  import { useCoreStore as v } from "@feedmepos/mf-common";
3
3
  import { ref as _, defineComponent as h, resolveComponent as l, openBlock as y, createElementBlock as g, renderSlot as k, createVNode as p, withCtx as S } from "vue";
4
4
  const m = F((e, t) => {
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as D, ref as A, computed as i, watch as H, resolveComponent as u, openBlock as S, createBlock as x, unref as c, createSlots as Y, withCtx as h, createElementVNode as N, normalizeClass as $, createVNode as m, normalizeStyle as U, Teleport as q, h as p } from "vue";
2
- import { u as E, a as K, x as j } from "./app-BEJm79K1.js";
2
+ import { u as E, a as K, x as j } from "./app-DMMqtQts.js";
3
3
  import { u as G, _ as J } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DGlWE5I8.js";
4
4
  import { useBreakpoints as O, useDialog as Q, useSnackbar as R, components as I } from "@feedmepos/ui-library";
5
- import { u as X } from "./vue-i18n-BiedKAFs.js";
6
- import { a as C } from "./date2-CnEklTL8.js";
5
+ import { u as X } from "./vue-i18n-CD-rDdDv.js";
6
+ import { a as C } from "./date2-Db-IPmri.js";
7
7
  const ie = /* @__PURE__ */ D({
8
8
  __name: "PublishView",
9
9
  setup(Z) {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as b, computed as x, ref as f, onMounted as g, openBlock as n, createElementBlock as o, createElementVNode as t, toDisplayString as e, normalizeStyle as w, createTextVNode as u, Fragment as i, createCommentVNode as v, renderList as p } from "vue";
2
2
  import { useRoute as k } from "vue-router";
3
- import { P as y } from "./app-BEJm79K1.js";
4
- import { L as C } from "./lz-string-K7l_8Og1.js";
3
+ import { P as y } from "./app-DMMqtQts.js";
4
+ import { L as C } from "./lz-string-TL3mT9nT.js";
5
5
  import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "title" }, E = { class: "text-right" }, D = { class: "header" }, O = { class: "sub-header" }, S = { class: "caption" }, F = { class: "address" }, T = { class: "text-right" }, L = {
7
7
  key: 0,