@feedmepos/mf-inventory-portal 1.5.11-dev.2 → 1.5.11
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.
- package/dist/{App-CquCiNsy.js → App-BWf57b4t.js} +4 -4
- package/dist/{ApprovalView-CU-k06kj.js → ApprovalView-BQjxa4od.js} +7 -7
- package/dist/{BindingsDialog-BPBKfeS6.js → BindingsDialog-DHQpAKaM.js} +2 -2
- package/dist/{BindingsPicker-DkBI7_0Y.js → BindingsPicker-BtnsTZxq.js} +2 -2
- package/dist/{BindingsTable-C22g1gV7.js → BindingsTable-CEjCrzkM.js} +3 -3
- package/dist/{ClosingDraftView-DgHvcVne.js → ClosingDraftView-CAVVOHjB.js} +15 -15
- package/dist/{ClosingHistoryView-Cjm39o7e.js → ClosingHistoryView-COhVCZ6T.js} +5 -5
- package/dist/{ClosingTemplateView-BfO_HZS-.js → ClosingTemplateView-CqTB1w4G.js} +14 -14
- package/dist/{DefaultView-Jl_IdT_Z.js → DefaultView-XD_Yt0j2.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-CaWTHT6h.js → DeliveryOrderPrintPreview-DPBogeWl.js} +2 -2
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BXmbD4jZ.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CuUjCSg_.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DWm36ZgX.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BNaC4SaJ.js} +2 -2
- package/dist/{FmMultiselectDialog-D4gqa0tb.js → FmMultiselectDialog-CDwkAKS4.js} +1 -1
- package/dist/{FmMultiselectDialog-CEsqNTCq.js → FmMultiselectDialog-ZaI1nC7s.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-4NtlySGX.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Bh7vT1ap.js} +5 -5
- package/dist/{ImportView-GTiAyijj.js → ImportView-CGBW80r5.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BHRq2v-2.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-mhohLiNO.js} +1 -1
- package/dist/{IngredientGroupView-Kk002hXi.js → IngredientGroupView-CXmqiSFi.js} +5 -5
- package/dist/{IngredientsView-8Dojrj1e.js → IngredientsView-Bqyoy8bV.js} +15 -15
- package/dist/{IntegrationExplorerView-BVBqUc3k.js → IntegrationExplorerView-Dm7oV3f2.js} +352 -352
- package/dist/{IntegrationView-eS-LnDeu.js → IntegrationView-C2MenVog.js} +13 -13
- package/dist/{InventoryBindingForm-DitsFH4v.js → InventoryBindingForm-BrUdmXai.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DncMbF6J.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-C2D0Y_tA.js} +145 -133
- package/dist/{InventoryBindingSummary-DIKZ_7lC.js → InventoryBindingSummary-Bc7ad5Sc.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DJV_hhgt.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B-YNHvHn.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Pjde4sd6.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DxlMUD0-.js} +1 -1
- package/dist/{PublishView-CTwkJWJj.js → PublishView-1Hmh17KB.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-BuP85XCw.js → PurchaseOrderPrintPreview-BGPW3oSz.js} +2 -2
- package/dist/{ReceiveRequestView-CfWhi-qh.js → ReceiveRequestView-DYGpjUGg.js} +26 -26
- package/dist/{RecipeView-CaNmJwqf.js → RecipeView-CQSWNVxz.js} +676 -664
- package/dist/{SettingsView-DiMxunWj.js → SettingsView-WRKFaJXm.js} +4 -4
- package/dist/{StockView-CWDb29Cp.js → StockView-CkjlbtAM.js} +19 -19
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-0MNUfMmq.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-JLZUzvBc.js} +1 -1
- package/dist/{SupplierView-CLB-ASht.js → SupplierView-Ct5oUSa0.js} +12 -12
- package/dist/{SurchargeView-C2clhhAW.js → SurchargeView-F6asKB7s.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DF-LJ-3w.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-7rHQ_Og6.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Ga9lkrf8.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CX5AkuKm.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-R1t4S-6H.js → TransferDetails.vue_vue_type_script_setup_true_lang-VkxnUelX.js} +20 -20
- package/dist/{TransferTemplateView-7lXzFWv2.js → TransferTemplateView-CeT8wouO.js} +18 -18
- package/dist/{UnitCostHistoryView-CZg_dxvk.js → UnitCostHistoryView-DsEJiOdk.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BB3dV6Gh.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DuCYUoSR.js} +5 -5
- package/dist/{UnitView-BnZ_3MwD.js → UnitView-DG3gwIpl.js} +7 -7
- package/dist/{WarehouseView-D7j9qMqP.js → WarehouseView-fr8lffeM.js} +5 -5
- package/dist/{WastageTemplateView-Cl_9lPqx.js → WastageTemplateView-CVH_KJFk.js} +14 -14
- package/dist/{app-DMMqtQts.js → app-BYizx2TA.js} +15 -15
- package/dist/app.js +1 -1
- package/dist/{closing-template-CiSNSKyE.js → closing-template-DlmTajUF.js} +1 -1
- package/dist/{date2-Db-IPmri.js → date2-CK4pbvFs.js} +1 -1
- package/dist/{dayjs.min-DD2BO69F.js → dayjs.min-eqk6iB0Q.js} +1 -1
- package/dist/{decimal-Ds6h3ukt.js → decimal-D6diZdvd.js} +2 -2
- package/dist/{defineDeepModel-BgonxmUi.js → defineDeepModel-Ddwa5nPa.js} +1 -1
- package/dist/{duplicate-template-L6x61phF.js → duplicate-template-Clne4Zc0.js} +1 -1
- package/dist/{feature-C0UUWbkT.js → feature-BH7rzLzp.js} +2 -2
- package/dist/{format-time-from-id-lrFC2RMu.js → format-time-from-id-vTGnZA4n.js} +1 -1
- package/dist/{format-unit-display-CpwFmpcL.js → format-unit-display-BCYMMOPa.js} +11 -11
- package/dist/{import-export.helper-BtXLvHMF.js → import-export.helper-DGoitnNS.js} +6 -6
- package/dist/{index-CxALGEZr.js → index-BHxx3tcy.js} +3 -3
- package/dist/{index-mtJ1GhRU.js → index-CZNCrbvL.js} +9 -2
- package/dist/{index-Cej2xM-2.js → index-CgTKerdi.js} +1 -1
- package/dist/{inventory-core-dart.default-CroeeGeI.js → inventory-core-dart.default-CwJecjsN.js} +1 -1
- package/dist/{lz-string-TL3mT9nT.js → lz-string-DNWslmx-.js} +1 -1
- package/dist/{netsuite-DOpNemik.js → netsuite-CkGOciZz.js} +2 -2
- package/dist/{number-DlYhqTV5.js → number-CKLFAlxa.js} +3 -3
- package/dist/{predefined-templates-DDpVS07Q.js → predefined-templates-DjRmYzhJ.js} +1 -1
- package/dist/{purchase-order-template-K6HvK5h0.js → purchase-order-template-DVgeAvta.js} +1 -1
- package/dist/{recalculationUtils-BHomSQPu.js → recalculationUtils-DvHtdxhh.js} +1 -1
- package/dist/{rules-r7ubhhR0.js → rules-BAlQmkcE.js} +2 -2
- package/dist/{stock-BcLy5Ilr.js → stock-D7Hldocr.js} +1 -1
- package/dist/{supplier-rNHLA7rt.js → supplier-BmgrpHSy.js} +2 -2
- package/dist/{surcharge-B5N4UzQl.js → surcharge-DB_6Y3jb.js} +1 -1
- package/dist/{uom-rules-B51fYVj3.js → uom-rules-BH4MTGJI.js} +1 -1
- package/dist/{use-ingredient-select-dialog-C7NY9Kj6.js → use-ingredient-select-dialog-xVey5vN2.js} +2 -2
- package/dist/{use-inventory-binding-dialog-Ca4VaXkz.js → use-inventory-binding-dialog-BJWwE2tm.js} +2 -2
- package/dist/{use-template-enabled-locations-RiR-qhSs.js → use-template-enabled-locations-DnwX4_zN.js} +2 -2
- package/dist/{use-transfer-locations-csQ1Ar0m.js → use-transfer-locations-CXCnHMBU.js} +2 -2
- package/dist/{useHrmPermission-DHcinOeI.js → useHrmPermission-Bm6eZc49.js} +1 -1
- package/dist/{useNavigationMenu-u8V59Vtc.js → useNavigationMenu-CBnZlvGu.js} +2 -2
- package/dist/{useSseClient-UQLgDoDc.js → useSseClient-Dndnv55D.js} +3 -3
- package/dist/{vue-i18n-CD-rDdDv.js → vue-i18n-Kc4rK6IY.js} +458 -458
- package/dist/{xlsx-BRq0kYfc.js → xlsx-b1kG9WEm.js} +398 -398
- package/dist/{xlsx.util-ylgVcZid.js → xlsx.util-e-nUxrcA.js} +3 -3
- package/package.json +5 -5
|
@@ -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-
|
|
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-BYizx2TA.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-
|
|
8
|
-
import { u as nt, a as st, b as ot, c as at } from "./index-
|
|
9
|
-
import { u as te, a as me } from "./netsuite-
|
|
10
|
-
import { b as lt, a as it } from "./FmMultiselectDialog-
|
|
11
|
-
import { R as rt } from "./rules-
|
|
7
|
+
import { _ as tt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BNaC4SaJ.js";
|
|
8
|
+
import { u as nt, a as st, b as ot, c as at } from "./index-BHxx3tcy.js";
|
|
9
|
+
import { u as te, a as me } from "./netsuite-CkGOciZz.js";
|
|
10
|
+
import { b as lt, a as it } from "./FmMultiselectDialog-ZaI1nC7s.js";
|
|
11
|
+
import { R as rt } from "./rules-BAlQmkcE.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-
|
|
14
|
-
import { u as ve } from "./vue-i18n-
|
|
15
|
-
import { _ as dt, a as ct } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { a as mt } from "./number-
|
|
17
|
-
import { a as he, f as De } from "./date2-
|
|
13
|
+
import { u as ut } from "./supplier-BmgrpHSy.js";
|
|
14
|
+
import { u as ve } from "./vue-i18n-Kc4rK6IY.js";
|
|
15
|
+
import { _ as dt, a as ct } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-Bh7vT1ap.js";
|
|
16
|
+
import { a as mt } from "./number-CKLFAlxa.js";
|
|
17
|
+
import { a as he, f as De } from "./date2-CK4pbvFs.js";
|
|
18
18
|
import { F as Te } from "./FmAdminBadge-DjnBAgyv.js";
|
|
19
|
-
import { u as Re } from "./feature-
|
|
19
|
+
import { u as Re } from "./feature-BH7rzLzp.js";
|
|
20
20
|
import { F as Oe } from "./FmDroppableField-J0xUsOTV.js";
|
|
21
|
-
import { r as Me, u as ze } from "./xlsx-
|
|
21
|
+
import { r as Me, u as ze } from "./xlsx-b1kG9WEm.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,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as oe, computed as x, reactive as te, resolveComponent as
|
|
2
|
-
import { a as ie, t as se, v as
|
|
3
|
-
import { a as h, c as ae } from "./number-
|
|
4
|
-
import { u as ue } from "./use-inventory-binding-dialog-
|
|
5
|
-
import { b as
|
|
6
|
-
import { _ as me, c as ce, d as pe } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { defineComponent as oe, computed as x, reactive as te, resolveComponent as B, openBlock as d, createElementBlock as c, createVNode as u, withCtx as I, createElementVNode as n, toDisplayString as p, unref as i, createBlock as w, createCommentVNode as v, Fragment as U, renderList as G, nextTick as le } from "vue";
|
|
2
|
+
import { a as ie, t as se, v as de, F as re } from "./app-BYizx2TA.js";
|
|
3
|
+
import { a as h, c as ae } from "./number-CKLFAlxa.js";
|
|
4
|
+
import { u as ue } from "./use-inventory-binding-dialog-BJWwE2tm.js";
|
|
5
|
+
import { b as $, c as A } from "./rules-BAlQmkcE.js";
|
|
6
|
+
import { _ as me, c as ce, d as pe } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-Bh7vT1ap.js";
|
|
7
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" },
|
|
8
|
+
const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-16" }, be = { class: "flex items-center" }, _e = { 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" }, ke = {
|
|
9
9
|
class: "flex items-center",
|
|
10
10
|
style: { "min-height": "48px" }
|
|
11
|
-
},
|
|
11
|
+
}, Be = { 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
12
|
key: 0,
|
|
13
13
|
class: "w-[52px]"
|
|
14
|
-
},
|
|
14
|
+
}, Ce = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400 px-8"
|
|
17
|
-
},
|
|
17
|
+
}, Ee = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "flex flex-col gap-16"
|
|
20
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 = {
|
|
@@ -23,7 +23,7 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
23
23
|
}, Ne = {
|
|
24
24
|
class: "flex items-center",
|
|
25
25
|
style: { "min-height": "48px" }
|
|
26
|
-
},
|
|
26
|
+
}, $e = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, ze = { class: "flex flex-col" }, De = { class: "w-[200px]" }, Ke = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "w-[52px]"
|
|
29
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 = {
|
|
@@ -32,16 +32,19 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
32
32
|
}, Qe = {
|
|
33
33
|
class: "flex items-center w-full",
|
|
34
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 = {
|
|
35
|
+
}, Xe = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12 text-fm-color-typo-secondary line-clamp-1" }, Ze = {
|
|
36
|
+
key: 0,
|
|
37
|
+
class: "w-[52px]"
|
|
38
|
+
}, en = { class: "flex gap-4 text-fm-color-system-error-400 fm-typo-en-body-sm-400 px-12 pb-4" }, nn = {
|
|
36
39
|
key: 1,
|
|
37
40
|
class: "flex flex-col border-b border-fm-color-neutral-gray-100"
|
|
38
|
-
},
|
|
41
|
+
}, on = {
|
|
39
42
|
class: "flex items-center w-full",
|
|
40
43
|
style: { "min-height": "48px" }
|
|
41
|
-
},
|
|
44
|
+
}, tn = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, ln = { class: "line-clamp-1 w-full" }, sn = { class: "w-[150px]" }, dn = {
|
|
42
45
|
key: 0,
|
|
43
46
|
class: "w-[52px]"
|
|
44
|
-
}, rn = { class: "flex flex-col px-12 pb-4" },
|
|
47
|
+
}, rn = { class: "flex flex-col px-12 pb-4" }, vn = /* @__PURE__ */ oe({
|
|
45
48
|
__name: "InventoryBindingForm",
|
|
46
49
|
props: {
|
|
47
50
|
id: {},
|
|
@@ -54,22 +57,22 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
54
57
|
enableIngredientGroup: { type: Boolean }
|
|
55
58
|
},
|
|
56
59
|
emits: ["update:modelValue", "click:pick-inventory-bindings"],
|
|
57
|
-
setup(
|
|
58
|
-
const { t:
|
|
60
|
+
setup(z, { emit: D }) {
|
|
61
|
+
const { t: m } = ye(), g = ie(), R = x(() => g.recipeById), V = x(() => g.skuById), K = x(() => g.skuGroupById), s = z, b = D, S = x(() => se({
|
|
59
62
|
parentId: s.id,
|
|
60
63
|
bindings: s.modelValue,
|
|
61
|
-
recipes: g.recipes.map((
|
|
62
|
-
...
|
|
64
|
+
recipes: g.recipes.map((t) => t._id === s.id ? {
|
|
65
|
+
...t,
|
|
63
66
|
contains: s.modelValue
|
|
64
|
-
} :
|
|
65
|
-
skus: g.skus.map((
|
|
66
|
-
...
|
|
67
|
+
} : t),
|
|
68
|
+
skus: g.skus.map((t) => t._id === s.id ? {
|
|
69
|
+
...t,
|
|
67
70
|
convert: {
|
|
68
71
|
inventoryBindings: s.modelValue
|
|
69
72
|
}
|
|
70
|
-
} :
|
|
73
|
+
} : t),
|
|
71
74
|
skuGroups: g.skuGroups
|
|
72
|
-
}).inventoryBindings.filter((
|
|
75
|
+
}).inventoryBindings.filter((t) => "error" in t && t.error).map((t) => t).filter((t) => t.reason === de.enum.circularDependency)), C = x(
|
|
73
76
|
() => new Set(S.value.map((e) => {
|
|
74
77
|
var l;
|
|
75
78
|
return (l = e.bindingPaths[0]) == null ? void 0 : l.id;
|
|
@@ -77,12 +80,12 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
77
80
|
), j = x(() => s.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: L, promptRecipesBinding: O, promptIngredientGroupsBinding: Y } = ue();
|
|
78
81
|
async function W() {
|
|
79
82
|
if (s.iframeMode) {
|
|
80
|
-
|
|
83
|
+
b("click:pick-inventory-bindings", "RECIPE");
|
|
81
84
|
return;
|
|
82
85
|
}
|
|
83
86
|
O(
|
|
84
87
|
s.modelValue,
|
|
85
|
-
(e) =>
|
|
88
|
+
(e) => b("update:modelValue", e),
|
|
86
89
|
s.id ? [s.id] : []
|
|
87
90
|
);
|
|
88
91
|
}
|
|
@@ -90,37 +93,37 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
90
93
|
async function H() {
|
|
91
94
|
Y(
|
|
92
95
|
s.modelValue,
|
|
93
|
-
(e) =>
|
|
96
|
+
(e) => b("update:modelValue", e),
|
|
94
97
|
s.id ? [s.id] : []
|
|
95
98
|
);
|
|
96
99
|
}
|
|
97
100
|
const P = x(() => s.modelValue.filter((e) => e.type === "SKU") ?? []);
|
|
98
101
|
async function J() {
|
|
99
102
|
if (s.iframeMode) {
|
|
100
|
-
|
|
103
|
+
b("click:pick-inventory-bindings", "SKU");
|
|
101
104
|
return;
|
|
102
105
|
}
|
|
103
106
|
L(
|
|
104
107
|
s.modelValue,
|
|
105
|
-
(e) =>
|
|
108
|
+
(e) => b("update:modelValue", e),
|
|
106
109
|
s.excludeBindingId,
|
|
107
110
|
s.id ? [s.id] : []
|
|
108
111
|
);
|
|
109
112
|
}
|
|
110
|
-
function T(e, l,
|
|
113
|
+
function T(e, l, t) {
|
|
111
114
|
const a = +l;
|
|
112
|
-
let f =
|
|
113
|
-
l.length > 0 && isFinite(a) ? f =
|
|
115
|
+
let f = t;
|
|
116
|
+
l.length > 0 && isFinite(a) ? f = t.map((y) => (y.id !== e || (y.amount = ae(a)), y)) : f = t.map((y) => (y.id !== e || (y.amount = { amount: 0, precision: 0 }), y)), b("update:modelValue", f);
|
|
114
117
|
}
|
|
115
|
-
function
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
+
function F(e, l) {
|
|
119
|
+
const t = l.filter((a) => a.id !== e);
|
|
120
|
+
b("update:modelValue", t);
|
|
118
121
|
}
|
|
119
122
|
function M(e) {
|
|
120
|
-
var
|
|
121
|
-
if (e.type !==
|
|
123
|
+
var t, a;
|
|
124
|
+
if (e.type !== re.enum.SKU)
|
|
122
125
|
throw new Error("Non-SKU binding does not have unit");
|
|
123
|
-
if (!((
|
|
126
|
+
if (!((t = V.value[e.id]) == null ? void 0 : t.unit))
|
|
124
127
|
throw new Error(`Cannot find ingredient: ${e.id}`);
|
|
125
128
|
return (a = V.value[e.id]) == null ? void 0 : a.unit;
|
|
126
129
|
}
|
|
@@ -130,13 +133,13 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
130
133
|
function X(e) {
|
|
131
134
|
return { amount: e.amount, measurement: e.measurement };
|
|
132
135
|
}
|
|
133
|
-
function Z(e, l,
|
|
134
|
-
const a =
|
|
136
|
+
function Z(e, l, t) {
|
|
137
|
+
const a = t.map((f) => f.id !== e ? f : {
|
|
135
138
|
...f,
|
|
136
139
|
amount: l.amount,
|
|
137
140
|
measurement: l.measurement
|
|
138
141
|
});
|
|
139
|
-
|
|
142
|
+
b("update:modelValue", a);
|
|
140
143
|
}
|
|
141
144
|
const N = te({});
|
|
142
145
|
function ee(e) {
|
|
@@ -160,9 +163,9 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
160
163
|
});
|
|
161
164
|
}
|
|
162
165
|
return (e, l) => {
|
|
163
|
-
const
|
|
164
|
-
return
|
|
165
|
-
|
|
166
|
+
const t = B("FmFormGroup"), a = B("FmButton"), f = B("FmTooltip"), y = B("FmTextField"), E = B("FmIcon");
|
|
167
|
+
return d(), c("div", fe, [
|
|
168
|
+
u(t, {
|
|
166
169
|
disabled: e.disabled,
|
|
167
170
|
"model-value": e.modelValue,
|
|
168
171
|
rules: [
|
|
@@ -176,47 +179,47 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
176
179
|
_: 1
|
|
177
180
|
}, 8, ["disabled", "model-value", "rules"]),
|
|
178
181
|
n("div", ve, [
|
|
179
|
-
n("div",
|
|
180
|
-
n("div",
|
|
181
|
-
e.readonly ? v("", !0) : (
|
|
182
|
+
n("div", be, [
|
|
183
|
+
n("div", _e, p(i(m)("inventory.inventoryBindings.recipe")), 1),
|
|
184
|
+
e.readonly ? v("", !0) : (d(), w(a, {
|
|
182
185
|
key: 0,
|
|
183
186
|
variant: "secondary",
|
|
184
187
|
"text-color": "primary",
|
|
185
188
|
"border-color": "primary",
|
|
186
|
-
label: i(
|
|
189
|
+
label: i(m)("inventory.inventoryBindings.linkRecipe"),
|
|
187
190
|
"prepend-icon": "link",
|
|
188
191
|
onClick: W
|
|
189
192
|
}, null, 8, ["label"]))
|
|
190
193
|
]),
|
|
191
194
|
n("div", xe, [
|
|
192
195
|
n("div", ge, [
|
|
193
|
-
n("div", he,
|
|
196
|
+
n("div", he, p(i(m)("inventory.inventoryBindings.recipe")), 1),
|
|
194
197
|
l[1] || (l[1] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
195
198
|
l[2] || (l[2] = n("div", { class: "w-[52px]" }, null, -1))
|
|
196
199
|
]),
|
|
197
|
-
(
|
|
198
|
-
key:
|
|
200
|
+
(d(!0), c(U, null, G(j.value, (o) => (d(), w(t, {
|
|
201
|
+
key: o.id,
|
|
199
202
|
disabled: e.disabled,
|
|
200
|
-
modelValue: +i(h)(
|
|
201
|
-
rules: [i(
|
|
203
|
+
modelValue: +i(h)(o.amount ?? { amount: 1, precision: 0 }),
|
|
204
|
+
rules: [i($)(0), i(A)(-1)]
|
|
202
205
|
}, {
|
|
203
|
-
default: I(({ invalid:
|
|
204
|
-
var
|
|
206
|
+
default: I(({ invalid: k }) => {
|
|
207
|
+
var _;
|
|
205
208
|
return [
|
|
206
209
|
n("div", Ve, [
|
|
207
|
-
n("div",
|
|
208
|
-
n("div",
|
|
210
|
+
n("div", ke, [
|
|
211
|
+
n("div", Be, [
|
|
209
212
|
n("div", Ie, [
|
|
210
|
-
|
|
213
|
+
u(f, {
|
|
211
214
|
zIndex: 51,
|
|
212
215
|
variant: "plain",
|
|
213
216
|
placement: "top",
|
|
214
|
-
content: (
|
|
217
|
+
content: (_ = R.value[o.id]) == null ? void 0 : _.name
|
|
215
218
|
}, {
|
|
216
219
|
default: I(() => {
|
|
217
|
-
var
|
|
220
|
+
var r;
|
|
218
221
|
return [
|
|
219
|
-
n("span", we,
|
|
222
|
+
n("span", we, p((r = R.value[o.id]) == null ? void 0 : r.name), 1)
|
|
220
223
|
];
|
|
221
224
|
}),
|
|
222
225
|
_: 2
|
|
@@ -224,32 +227,32 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
224
227
|
])
|
|
225
228
|
]),
|
|
226
229
|
n("div", Fe, [
|
|
227
|
-
|
|
230
|
+
u(y, {
|
|
228
231
|
class: "w-full",
|
|
229
232
|
disabled: e.disabled,
|
|
230
|
-
modelValue: +i(h)(
|
|
231
|
-
"onUpdate:modelValue": (
|
|
232
|
-
invalid:
|
|
233
|
+
modelValue: +i(h)(o.amount ?? { amount: 1, precision: 0 }),
|
|
234
|
+
"onUpdate:modelValue": (r) => T(o.id, r, e.modelValue),
|
|
235
|
+
invalid: k
|
|
233
236
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
234
237
|
]),
|
|
235
|
-
e.readonly ? v("", !0) : (
|
|
236
|
-
|
|
238
|
+
e.readonly ? v("", !0) : (d(), c("div", Ue, [
|
|
239
|
+
u(a, {
|
|
237
240
|
disabled: e.disabled,
|
|
238
241
|
type: "button",
|
|
239
242
|
variant: "plain",
|
|
240
243
|
icon: "delete",
|
|
241
244
|
"icon-color": "#000000",
|
|
242
|
-
onClick: (
|
|
245
|
+
onClick: (r) => F(o.id, e.modelValue)
|
|
243
246
|
}, null, 8, ["disabled", "onClick"])
|
|
244
247
|
]))
|
|
245
248
|
]),
|
|
246
|
-
|
|
247
|
-
|
|
249
|
+
C.value.has(o.id) ? (d(), c("div", Ce, [
|
|
250
|
+
u(E, {
|
|
248
251
|
name: "error",
|
|
249
252
|
color: "system-error-300",
|
|
250
253
|
size: "sm"
|
|
251
254
|
}),
|
|
252
|
-
n("div", null,
|
|
255
|
+
n("div", null, p(i(m)("inventory.inventoryBindings.circularError")), 1)
|
|
253
256
|
])) : v("", !0)
|
|
254
257
|
])
|
|
255
258
|
];
|
|
@@ -258,64 +261,64 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
258
261
|
}, 1032, ["disabled", "modelValue", "rules"]))), 128))
|
|
259
262
|
])
|
|
260
263
|
]),
|
|
261
|
-
e.enableIngredientGroup ? (
|
|
264
|
+
e.enableIngredientGroup ? (d(), c("div", Ee, [
|
|
262
265
|
n("div", Ge, [
|
|
263
|
-
n("div", Ae,
|
|
264
|
-
e.readonly ? v("", !0) : (
|
|
266
|
+
n("div", Ae, p(i(m)("inventory.inventoryBindings.ingredientGroup")), 1),
|
|
267
|
+
e.readonly ? v("", !0) : (d(), w(a, {
|
|
265
268
|
key: 0,
|
|
266
269
|
variant: "secondary",
|
|
267
270
|
"text-color": "primary",
|
|
268
271
|
"border-color": "primary",
|
|
269
|
-
label: i(
|
|
272
|
+
label: i(m)("inventory.inventoryBindings.linkIngredientGroup"),
|
|
270
273
|
"prepend-icon": "link",
|
|
271
274
|
onClick: H
|
|
272
275
|
}, null, 8, ["label"]))
|
|
273
276
|
]),
|
|
274
277
|
n("div", Re, [
|
|
275
278
|
n("div", Se, [
|
|
276
|
-
n("div", Pe,
|
|
279
|
+
n("div", Pe, p(i(m)("inventory.inventoryBindings.ingredientGroup")), 1),
|
|
277
280
|
l[3] || (l[3] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
278
281
|
l[4] || (l[4] = n("div", { class: "w-[52px]" }, null, -1))
|
|
279
282
|
]),
|
|
280
|
-
(
|
|
281
|
-
key:
|
|
283
|
+
(d(!0), c(U, null, G(q.value, (o) => (d(), w(t, {
|
|
284
|
+
key: o.id,
|
|
282
285
|
disabled: e.disabled,
|
|
283
|
-
modelValue: +i(h)(
|
|
284
|
-
rules: [i(
|
|
286
|
+
modelValue: +i(h)(o.amount ?? { amount: 1, precision: 0 }),
|
|
287
|
+
rules: [i($)(0), i(A)(0)]
|
|
285
288
|
}, {
|
|
286
|
-
default: I(({ invalid:
|
|
287
|
-
var
|
|
289
|
+
default: I(({ invalid: k }) => {
|
|
290
|
+
var _;
|
|
288
291
|
return [
|
|
289
292
|
n("div", Te, [
|
|
290
|
-
|
|
291
|
-
|
|
293
|
+
C.value.has(o.id) ? (d(), c("div", Me, [
|
|
294
|
+
u(E, {
|
|
292
295
|
name: "error",
|
|
293
296
|
color: "system-error-300",
|
|
294
297
|
size: "sm"
|
|
295
298
|
}),
|
|
296
|
-
n("div", null,
|
|
299
|
+
n("div", null, p(i(m)("inventory.inventoryBindings.circularError")), 1)
|
|
297
300
|
])) : v("", !0),
|
|
298
301
|
n("div", Ne, [
|
|
299
|
-
n("div",
|
|
300
|
-
n("div",
|
|
302
|
+
n("div", $e, [
|
|
303
|
+
n("div", ze, p((_ = K.value[o.id]) == null ? void 0 : _.name), 1)
|
|
301
304
|
]),
|
|
302
|
-
n("div",
|
|
303
|
-
|
|
305
|
+
n("div", De, [
|
|
306
|
+
u(y, {
|
|
304
307
|
class: "w-full",
|
|
305
308
|
disabled: e.disabled,
|
|
306
|
-
modelValue: +i(h)(
|
|
307
|
-
"onUpdate:modelValue": (
|
|
308
|
-
invalid:
|
|
309
|
+
modelValue: +i(h)(o.amount ?? { amount: 1, precision: 0 }),
|
|
310
|
+
"onUpdate:modelValue": (r) => T(o.id, r, e.modelValue),
|
|
311
|
+
invalid: k
|
|
309
312
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
310
313
|
]),
|
|
311
|
-
e.readonly ? v("", !0) : (
|
|
312
|
-
|
|
314
|
+
e.readonly ? v("", !0) : (d(), c("div", Ke, [
|
|
315
|
+
u(a, {
|
|
313
316
|
disabled: e.disabled,
|
|
314
317
|
type: "button",
|
|
315
318
|
variant: "plain",
|
|
316
319
|
icon: "delete",
|
|
317
320
|
"icon-color": "#000000",
|
|
318
|
-
onClick: (
|
|
321
|
+
onClick: (r) => F(o.id, e.modelValue)
|
|
319
322
|
}, null, 8, ["disabled", "onClick"])
|
|
320
323
|
]))
|
|
321
324
|
])
|
|
@@ -328,90 +331,99 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
328
331
|
])) : v("", !0),
|
|
329
332
|
n("div", je, [
|
|
330
333
|
n("div", Le, [
|
|
331
|
-
n("div", Oe,
|
|
332
|
-
e.readonly ? v("", !0) : (
|
|
334
|
+
n("div", Oe, p(i(m)("inventory.inventoryBindings.ingredient")), 1),
|
|
335
|
+
e.readonly ? v("", !0) : (d(), w(a, {
|
|
333
336
|
key: 0,
|
|
334
337
|
variant: "secondary",
|
|
335
338
|
"text-color": "primary",
|
|
336
339
|
"border-color": "primary",
|
|
337
|
-
label: i(
|
|
340
|
+
label: i(m)("inventory.inventoryBindings.linkIngredient"),
|
|
338
341
|
"prepend-icon": "link",
|
|
339
342
|
onClick: J
|
|
340
343
|
}, null, 8, ["label"]))
|
|
341
344
|
]),
|
|
342
345
|
n("div", Ye, [
|
|
343
346
|
n("div", We, [
|
|
344
|
-
n("div", qe,
|
|
345
|
-
n("div", He,
|
|
347
|
+
n("div", qe, p(i(m)("inventory.inventoryBindings.ingredient")), 1),
|
|
348
|
+
n("div", He, p(i(m)("inventory.inventoryBindings.amount")), 1),
|
|
346
349
|
l[5] || (l[5] = n("div", { class: "w-[52px]" }, null, -1))
|
|
347
350
|
]),
|
|
348
|
-
(
|
|
349
|
-
var
|
|
350
|
-
return
|
|
351
|
-
key:
|
|
351
|
+
(d(!0), c(U, null, G(P.value, (o, k) => {
|
|
352
|
+
var _;
|
|
353
|
+
return d(), c(U, {
|
|
354
|
+
key: o.id
|
|
352
355
|
}, [
|
|
353
|
-
Q(
|
|
356
|
+
Q(o) ? (d(), c("div", Je, [
|
|
354
357
|
n("div", Qe, [
|
|
355
|
-
n("div", Xe,
|
|
358
|
+
n("div", Xe, p(o.id), 1),
|
|
359
|
+
e.readonly ? v("", !0) : (d(), c("div", Ze, [
|
|
360
|
+
u(a, {
|
|
361
|
+
disabled: e.disabled,
|
|
362
|
+
type: "button",
|
|
363
|
+
variant: "tertiary",
|
|
364
|
+
icon: "delete",
|
|
365
|
+
onClick: (r) => F(o.id, e.modelValue)
|
|
366
|
+
}, null, 8, ["disabled", "onClick"])
|
|
367
|
+
]))
|
|
356
368
|
]),
|
|
357
|
-
n("div",
|
|
358
|
-
|
|
369
|
+
n("div", en, [
|
|
370
|
+
u(E, {
|
|
359
371
|
name: "error",
|
|
360
372
|
color: "system-error-300",
|
|
361
373
|
size: "sm"
|
|
362
374
|
}),
|
|
363
|
-
n("div", null,
|
|
375
|
+
n("div", null, p(i(m)("inventory.inventoryBindings.missingIngredient")), 1)
|
|
364
376
|
])
|
|
365
|
-
])) : (
|
|
366
|
-
n("div",
|
|
367
|
-
n("div",
|
|
368
|
-
|
|
377
|
+
])) : (d(), c("div", nn, [
|
|
378
|
+
n("div", on, [
|
|
379
|
+
n("div", tn, [
|
|
380
|
+
u(f, {
|
|
369
381
|
zIndex: 51,
|
|
370
382
|
variant: "plain",
|
|
371
383
|
placement: "top",
|
|
372
|
-
content: (
|
|
384
|
+
content: (_ = V.value[o.id]) == null ? void 0 : _.name
|
|
373
385
|
}, {
|
|
374
386
|
default: I(() => {
|
|
375
|
-
var
|
|
387
|
+
var r;
|
|
376
388
|
return [
|
|
377
|
-
n("span",
|
|
389
|
+
n("span", ln, p((r = V.value[o.id]) == null ? void 0 : r.name), 1)
|
|
378
390
|
];
|
|
379
391
|
}),
|
|
380
392
|
_: 2
|
|
381
393
|
}, 1032, ["content"])
|
|
382
394
|
]),
|
|
383
|
-
n("div",
|
|
384
|
-
|
|
385
|
-
"model-value": X(
|
|
386
|
-
"onUpdate:modelValue": (
|
|
387
|
-
"onUpdate:amount": (
|
|
388
|
-
unit: M(
|
|
389
|
-
placement:
|
|
395
|
+
n("div", sn, [
|
|
396
|
+
u(me, {
|
|
397
|
+
"model-value": X(o),
|
|
398
|
+
"onUpdate:modelValue": (r) => r && Z(o.id, r, e.modelValue),
|
|
399
|
+
"onUpdate:amount": (r) => ne(o, r),
|
|
400
|
+
unit: M(o),
|
|
401
|
+
placement: k === P.value.length - 1 ? "top" : "bottom",
|
|
390
402
|
"convert-amount-on-change-unit": "",
|
|
391
403
|
disabled: e.readonly
|
|
392
404
|
}, null, 8, ["model-value", "onUpdate:modelValue", "onUpdate:amount", "unit", "placement", "disabled"])
|
|
393
405
|
]),
|
|
394
|
-
e.readonly ? v("", !0) : (
|
|
395
|
-
|
|
406
|
+
e.readonly ? v("", !0) : (d(), c("div", dn, [
|
|
407
|
+
u(a, {
|
|
396
408
|
disabled: e.disabled,
|
|
397
409
|
type: "button",
|
|
398
410
|
variant: "tertiary",
|
|
399
411
|
icon: "delete",
|
|
400
|
-
onClick: (
|
|
412
|
+
onClick: (r) => F(o.id, e.modelValue)
|
|
401
413
|
}, null, 8, ["disabled", "onClick"])
|
|
402
414
|
]))
|
|
403
415
|
]),
|
|
404
416
|
n("div", rn, [
|
|
405
|
-
|
|
406
|
-
modelValue: +i(h)(
|
|
417
|
+
u(t, {
|
|
418
|
+
modelValue: +i(h)(o.amount ?? { amount: 1, precision: 0 }),
|
|
407
419
|
rules: [i(A)(0)]
|
|
408
420
|
}, null, 8, ["modelValue", "rules"]),
|
|
409
|
-
|
|
410
|
-
modelValue: ee(
|
|
421
|
+
u(t, {
|
|
422
|
+
modelValue: ee(o),
|
|
411
423
|
rules: [
|
|
412
424
|
i(ce)(),
|
|
413
|
-
i(pe)(M(
|
|
414
|
-
() =>
|
|
425
|
+
i(pe)(M(o)),
|
|
426
|
+
() => C.value.has(o.id) ? i(m)("inventory.inventoryBindings.invalidWarning") : !0
|
|
415
427
|
]
|
|
416
428
|
}, null, 8, ["modelValue", "rules"])
|
|
417
429
|
])
|
|
@@ -425,5 +437,5 @@ const fe = { class: "flex flex-col gap-24" }, ve = { class: "flex flex-col gap-1
|
|
|
425
437
|
}
|
|
426
438
|
});
|
|
427
439
|
export {
|
|
428
|
-
|
|
440
|
+
vn as _
|
|
429
441
|
};
|
|
@@ -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-
|
|
4
|
+
import { F as r } from "./app-BYizx2TA.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-
|
|
2
|
+
import { c as s } from "./number-CKLFAlxa.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-
|
|
1
|
+
import { m as F, u as f } from "./app-BYizx2TA.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) => {
|