@medusajs/dashboard 2.10.4-snapshot-20250922195925 → 2.10.4-snapshot-20250925172615
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/{add-campaign-promotions-PLZXWFNV.mjs → add-campaign-promotions-3BB3BLFD.mjs} +7 -6
- package/dist/{adjust-inventory-WBEBMJN7.mjs → adjust-inventory-OIJTAKHP.mjs} +1 -1
- package/dist/{api-key-management-create-VXPZX2Q5.mjs → api-key-management-create-XDQHUNWK.mjs} +3 -3
- package/dist/{api-key-management-detail-ZQFNZNWW.mjs → api-key-management-detail-MM673US3.mjs} +16 -15
- package/dist/{api-key-management-edit-7CGMSHAY.mjs → api-key-management-edit-2SUSKI7T.mjs} +3 -3
- package/dist/{api-key-management-list-5DI3L4DV.mjs → api-key-management-list-C2WM4PHC.mjs} +8 -7
- package/dist/{api-key-management-sales-channels-WL5L5XWM.mjs → api-key-management-sales-channels-MVHVMPF6.mjs} +6 -5
- package/dist/app.css +89 -34
- package/dist/app.js +5093 -4715
- package/dist/app.mjs +18 -16
- package/dist/{campaign-budget-edit-OXNTSPGE.mjs → campaign-budget-edit-UWGCET5Z.mjs} +1 -1
- package/dist/{campaign-configuration-Z5HA2DG3.mjs → campaign-configuration-WWCCFNYQ.mjs} +1 -1
- package/dist/{campaign-create-AVBNHFC2.mjs → campaign-create-CQ3XBHSY.mjs} +4 -3
- package/dist/{campaign-detail-VTCCVWKS.mjs → campaign-detail-G2VM7CRL.mjs} +23 -22
- package/dist/{campaign-edit-3TDW52BO.mjs → campaign-edit-R43GXNET.mjs} +1 -1
- package/dist/{campaign-list-G4MD3RPU.mjs → campaign-list-CDO5PRTL.mjs} +7 -6
- package/dist/{categories-metadata-FTFYPASQ.mjs → categories-metadata-M4PAATNV.mjs} +14 -13
- package/dist/{category-create-FOVB5MJ4.mjs → category-create-GMFWRFT7.mjs} +38 -16
- package/dist/{category-detail-QHU2CLYA.mjs → category-detail-MTLPW4MR.mjs} +20 -19
- package/dist/{category-edit-O4ZSANE5.mjs → category-edit-HCHER73V.mjs} +36 -16
- package/dist/{category-list-UI6W5KF5.mjs → category-list-IXW2NWWJ.mjs} +8 -7
- package/dist/{category-organize-BW3YOPUS.mjs → category-organize-LRQKM4LA.mjs} +2 -2
- package/dist/{category-products-YGTL7GXQ.mjs → category-products-DGWKONYE.mjs} +16 -15
- package/dist/{chunk-2HKRIUW4.mjs → chunk-2PGNKUXS.mjs} +1 -1
- package/dist/{chunk-X4X5KUGQ.mjs → chunk-4QUHWHBD.mjs} +3 -0
- package/dist/{chunk-R2NWOCML.mjs → chunk-5FAWKUSU.mjs} +8 -2
- package/dist/{chunk-YZJ3W776.mjs → chunk-5U3FFMC7.mjs} +6 -9
- package/dist/{chunk-UNM3LPTG.mjs → chunk-7GBCLBMX.mjs} +25 -12
- package/dist/{chunk-6V6KATTW.mjs → chunk-7JJTWGHU.mjs} +29 -18
- package/dist/{chunk-VE7JFMAN.mjs → chunk-A4GWVZB4.mjs} +3 -3
- package/dist/{chunk-2YP2ZNKR.mjs → chunk-AN5IILM2.mjs} +1 -1
- package/dist/{chunk-YWNHMIEQ.mjs → chunk-AXXGAOQL.mjs} +2 -2
- package/dist/{chunk-2PMSBTXI.mjs → chunk-CD7VQIPA.mjs} +11 -11
- package/dist/{chunk-WYDDFRYM.mjs → chunk-CGEJJR5K.mjs} +595 -686
- package/dist/{chunk-J5E7MQSS.mjs → chunk-CY33DS7K.mjs} +6 -0
- package/dist/{chunk-PPI7PTY6.mjs → chunk-DKOCYXB5.mjs} +10 -4
- package/dist/{chunk-ZCZL3STK.mjs → chunk-EA5GGT2Q.mjs} +1 -1
- package/dist/{chunk-BSBCIU6C.mjs → chunk-EILZIUOP.mjs} +1 -1
- package/dist/{chunk-7VJK6HNE.mjs → chunk-EYL2JACT.mjs} +4 -4
- package/dist/{chunk-BFNH5UWD.mjs → chunk-EYTETK3W.mjs} +1 -1
- package/dist/{chunk-74K7HGNI.mjs → chunk-FXG2Z3QT.mjs} +3 -2
- package/dist/{chunk-SMHXCFRS.mjs → chunk-G3VGLFVH.mjs} +54 -41
- package/dist/{chunk-2RQLKDBF.mjs → chunk-GIZFNLKK.mjs} +103 -96
- package/dist/{chunk-CU5EFQSB.mjs → chunk-HOERC634.mjs} +1 -1
- package/dist/{chunk-AOFGTNG6.mjs → chunk-HQKGZADC.mjs} +6 -1
- package/dist/{chunk-LBIOZZPA.mjs → chunk-HWKLNKOY.mjs} +1 -1
- package/dist/{chunk-YPDTZXV6.mjs → chunk-I2QEZTVU.mjs} +2 -2
- package/dist/{chunk-S2UEWRDA.mjs → chunk-IL5IMREK.mjs} +59 -49
- package/dist/{chunk-FTVAORQM.mjs → chunk-IP2QPPWC.mjs} +1 -1
- package/dist/{chunk-SCBXRJPV.mjs → chunk-IRO6DO7J.mjs} +1 -1
- package/dist/{chunk-YI4CZGTU.mjs → chunk-ITJEYJNB.mjs} +1 -1
- package/dist/{chunk-T7G2CURS.mjs → chunk-IVZ6BMDB.mjs} +1 -0
- package/dist/{chunk-BM5ZIV5V.mjs → chunk-IXMPYDY2.mjs} +1 -1
- package/dist/{chunk-XGJ5DXXG.mjs → chunk-K2HM7KXJ.mjs} +12 -12
- package/dist/{chunk-2LPGQWPV.mjs → chunk-KTL6E2WT.mjs} +1 -1
- package/dist/{chunk-OHSRRFGN.mjs → chunk-LKVQ5YC6.mjs} +1 -1
- package/dist/{chunk-QGCKTVQX.mjs → chunk-LMRZMI7O.mjs} +1 -1
- package/dist/{chunk-PHXKD2LR.mjs → chunk-MAKOUE5W.mjs} +1 -1
- package/dist/{chunk-Q5DI5VYN.mjs → chunk-MLNUGLGT.mjs} +1 -1
- package/dist/{chunk-5M5ZVAWU.mjs → chunk-MSOFJHH3.mjs} +2 -2
- package/dist/{chunk-5CE3JPWD.mjs → chunk-NFQXNOP7.mjs} +1 -1
- package/dist/{chunk-UWJBDOQD.mjs → chunk-NKVMOKZA.mjs} +41 -29
- package/dist/{chunk-NCR5UWRI.mjs → chunk-NY6I2FYO.mjs} +1 -1
- package/dist/{chunk-3NJTXRIY.mjs → chunk-OZPB6JBL.mjs} +5 -1
- package/dist/{chunk-FPJBF7VS.mjs → chunk-P2O6XTD4.mjs} +1 -1
- package/dist/{chunk-EFA7S5L3.mjs → chunk-PGTXMCSV.mjs} +1 -1
- package/dist/{chunk-D7H6ZNK4.mjs → chunk-PRLQLEEQ.mjs} +2 -0
- package/dist/{chunk-ZODJNBAV.mjs → chunk-R2G2B47Y.mjs} +1 -0
- package/dist/{chunk-HUX22ZHT.mjs → chunk-RF75BZNF.mjs} +3 -3
- package/dist/{chunk-4RG7UJCT.mjs → chunk-RGP3IXX4.mjs} +1 -1
- package/dist/chunk-S4DMV3ZT.mjs +35 -0
- package/dist/{chunk-5NQ3X2JI.mjs → chunk-SNDSWB6B.mjs} +1 -1
- package/dist/{chunk-EE7SOCEQ.mjs → chunk-SQFZWNYA.mjs} +4 -4
- package/dist/{chunk-O74UDEWT.mjs → chunk-TKZK3YPU.mjs} +1 -1
- package/dist/{chunk-KSRI5LOF.mjs → chunk-U25RCIX2.mjs} +2 -2
- package/dist/{chunk-XTNS2NRD.mjs → chunk-U4R5MBF2.mjs} +1 -1
- package/dist/{chunk-CK3VFTZM.mjs → chunk-UKX2FFFV.mjs} +2 -2
- package/dist/{chunk-JO6QASTJ.mjs → chunk-V6JXTITD.mjs} +1 -1
- package/dist/chunk-VLOA5XAC.mjs +113 -0
- package/dist/{chunk-4Q4LIFFO.mjs → chunk-XP3BY6G6.mjs} +1 -1
- package/dist/{chunk-6IZUCU7K.mjs → chunk-YSFTQA6Y.mjs} +2 -2
- package/dist/{chunk-XKXNQ2KV.mjs → chunk-ZCARHA6C.mjs} +1 -1
- package/dist/{chunk-RMEITCLS.mjs → chunk-ZSDEVTFT.mjs} +1 -1
- package/dist/{collection-add-products-OJ2EZLC7.mjs → collection-add-products-KEB3ESAK.mjs} +16 -15
- package/dist/{collection-create-75ZI5NDG.mjs → collection-create-PTOF33H2.mjs} +2 -2
- package/dist/{collection-detail-RMZK523E.mjs → collection-detail-V24IDEZQ.mjs} +18 -17
- package/dist/{collection-edit-RD6BDDDI.mjs → collection-edit-WM57WXJ2.mjs} +2 -2
- package/dist/{collection-list-BJ3VNZAA.mjs → collection-list-GD2IJYOP.mjs} +19 -18
- package/dist/{collection-metadata-R3DI65D3.mjs → collection-metadata-Z2JMXTHW.mjs} +14 -13
- package/dist/{customer-create-address-TPSDYZBN.mjs → customer-create-address-JOYBIPPN.mjs} +1 -1
- package/dist/{customer-detail-G7G6PYOO.mjs → customer-detail-E7LPLLML.mjs} +18 -17
- package/dist/{customer-group-add-customers-ULPWTALS.mjs → customer-group-add-customers-YF2T323Z.mjs} +3 -2
- package/dist/{customer-group-detail-XQ32DPQ3.mjs → customer-group-detail-5ZWHOJOD.mjs} +17 -16
- package/dist/{customer-group-list-CARES5CM.mjs → customer-group-list-N22GDJVL.mjs} +16 -15
- package/dist/{customer-group-metadata-UPAPULMF.mjs → customer-group-metadata-YQCOIVQG.mjs} +2 -1
- package/dist/{customer-list-SINCBCOZ.mjs → customer-list-5IWEXYSW.mjs} +5 -4
- package/dist/{customer-metadata-5NPUMPZ2.mjs → customer-metadata-JZEJBH4V.mjs} +2 -1
- package/dist/{customers-add-customer-group-NLPVKARS.mjs → customers-add-customer-group-LFEUVS5G.mjs} +15 -14
- package/dist/{edit-inventory-item-ZPE4MMC4.mjs → edit-inventory-item-UV2Z7SYL.mjs} +1 -1
- package/dist/{edit-inventory-item-attributes-KT7BSPZ7.mjs → edit-inventory-item-attributes-BRC3KBYT.mjs} +2 -2
- package/dist/{edit-reservation-EKH4RIAX.mjs → edit-reservation-NYGQBFBO.mjs} +7 -2
- package/dist/{edit-rules-JRLCVE26.mjs → edit-rules-BCGRJ4FJ.mjs} +15 -14
- package/dist/{inventory-create-ZC6HV2FY.mjs → inventory-create-OPYAZF3M.mjs} +20 -15
- package/dist/{inventory-detail-WVI4FTTH.mjs → inventory-detail-PAVP7J2W.mjs} +26 -19
- package/dist/{inventory-list-YMYF7QVP.mjs → inventory-list-J5VZGQ2M.mjs} +6 -5
- package/dist/{inventory-metadata-BLIJBNQS.mjs → inventory-metadata-PMQLZCHW.mjs} +14 -13
- package/dist/{inventory-stock-ZCTXWRK6.mjs → inventory-stock-7QXMAX45.mjs} +15 -14
- package/dist/{location-create-LUP363ZB.mjs → location-create-22H74MFP.mjs} +1 -1
- package/dist/{location-detail-GV3POY4C.mjs → location-detail-IXHZ7DZS.mjs} +15 -14
- package/dist/{location-edit-26K26G23.mjs → location-edit-X6JBEWIF.mjs} +2 -2
- package/dist/{location-fulfillment-providers-INUQXJYU.mjs → location-fulfillment-providers-3KPC4HQT.mjs} +17 -16
- package/dist/location-list-VNEYHAKV.mjs +323 -0
- package/dist/{location-sales-channels-2BOIPBBG.mjs → location-sales-channels-66ZE3ZMI.mjs} +5 -4
- package/dist/{location-service-zone-create-RPFLBVV4.mjs → location-service-zone-create-D5QSFS3M.mjs} +4 -3
- package/dist/{location-service-zone-manage-areas-VEUUGPKF.mjs → location-service-zone-manage-areas-HKCALG4Q.mjs} +4 -3
- package/dist/{location-service-zone-shipping-option-create-6KO3QDMQ.mjs → location-service-zone-shipping-option-create-PVQ66CXW.mjs} +24 -16
- package/dist/{location-service-zone-shipping-option-edit-TMXNX4VX.mjs → location-service-zone-shipping-option-edit-JYM6GHTA.mjs} +40 -28
- package/dist/{location-service-zone-shipping-option-pricing-U2SDK5DE.mjs → location-service-zone-shipping-option-pricing-FLB63UKY.mjs} +3 -2
- package/dist/{login-57FIKGXA.mjs → login-DVYOEF5F.mjs} +12 -12
- package/dist/manage-locations-RPHTPGRE.mjs +247 -0
- package/dist/{order-allocate-items-J3ZHGC22.mjs → order-allocate-items-2RYXQRVK.mjs} +26 -14
- package/dist/{order-create-claim-LXKBCAWN.mjs → order-create-claim-FK4LIPAE.mjs} +21 -19
- package/dist/{order-create-edit-264PTIEI.mjs → order-create-edit-VGIWYKBB.mjs} +19 -17
- package/dist/{order-create-exchange-ZMUVPYM3.mjs → order-create-exchange-BMRCMN5G.mjs} +21 -19
- package/dist/{order-create-fulfillment-LE6O3SA5.mjs → order-create-fulfillment-NLGPRK4J.mjs} +20 -13
- package/dist/{order-create-refund-B7BO2EJL.mjs → order-create-refund-TEMK6IEQ.mjs} +51 -15
- package/dist/{order-create-return-GVA6M2RY.mjs → order-create-return-6FHAU3OZ.mjs} +11 -9
- package/dist/{order-create-shipment-UOPCS5N7.mjs → order-create-shipment-WCEZXWM6.mjs} +14 -12
- package/dist/{order-detail-SG7AXBRS.mjs → order-detail-QABTBPGX.mjs} +50 -41
- package/dist/{order-edit-billing-address-RPPJ4Z36.mjs → order-edit-billing-address-MWF3L6GK.mjs} +13 -13
- package/dist/{order-edit-email-A7D5HTU6.mjs → order-edit-email-UDJOGYPP.mjs} +12 -12
- package/dist/{order-edit-shipping-address-LXKC5CJE.mjs → order-edit-shipping-address-O46U65WM.mjs} +13 -13
- package/dist/{order-list-ZCMNSZYB.mjs → order-list-VDUUHTSU.mjs} +11 -10
- package/dist/{order-metadata-KS47UOEE.mjs → order-metadata-SHCFZWCA.mjs} +14 -13
- package/dist/{order-receive-return-PDU2YVLT.mjs → order-receive-return-MC4DIRK3.mjs} +15 -14
- package/dist/{order-request-transfer-WMQKDLDF.mjs → order-request-transfer-MELQKMC4.mjs} +13 -13
- package/dist/{price-list-configuration-435QDWB2.mjs → price-list-configuration-VACKCKJF.mjs} +6 -5
- package/dist/{price-list-create-QZSB4W5Z.mjs → price-list-create-TZUDGP2J.mjs} +40 -25
- package/dist/{price-list-detail-2FMINPFT.mjs → price-list-detail-DX74DH6G.mjs} +19 -18
- package/dist/{price-list-edit-ZGBOZYSC.mjs → price-list-edit-G73ZIU2Y.mjs} +51 -31
- package/dist/{price-list-list-C6NEB2R4.mjs → price-list-list-QYZSJNF5.mjs} +8 -7
- package/dist/{price-list-prices-add-WYK2QBAI.mjs → price-list-prices-add-IHMS7HIH.mjs} +29 -21
- package/dist/{price-list-prices-edit-ENB4GJZT.mjs → price-list-prices-edit-R53ITSDD.mjs} +5 -4
- package/dist/{product-attributes-KDXI2RNP.mjs → product-attributes-AULEVQ5C.mjs} +20 -18
- package/dist/{product-create-TVYPK4VC.mjs → product-create-2RPJZR2Q.mjs} +28 -22
- package/dist/{product-create-option-3JR35UZ5.mjs → product-create-option-OW2LMVST.mjs} +1 -1
- package/dist/{product-create-variant-6YWLDA2X.mjs → product-create-variant-NKU6J7NG.mjs} +32 -19
- package/dist/{product-detail-RFKXMYE5.mjs → product-detail-NNTUGXU5.mjs} +22 -20
- package/dist/{product-edit-5FNY7HG4.mjs → product-edit-6WRMNGPM.mjs} +42 -29
- package/dist/{product-edit-option-VNDGZ37A.mjs → product-edit-option-OM56DLU6.mjs} +1 -1
- package/dist/{product-export-BEAUMFAZ.mjs → product-export-W6KP2RGO.mjs} +14 -14
- package/dist/{product-import-SOX4UJPM.mjs → product-import-P76MITMC.mjs} +15 -14
- package/dist/{product-list-ZVXATJRE.mjs → product-list-7H64APWI.mjs} +20 -19
- package/dist/{product-media-JPU23SPH.mjs → product-media-TRKQTA4G.mjs} +5 -5
- package/dist/{product-metadata-QRRCHZZB.mjs → product-metadata-2G6DWHWG.mjs} +14 -13
- package/dist/{product-organization-QTWB7VMB.mjs → product-organization-43YS5OUI.mjs} +21 -19
- package/dist/{product-prices-PCBMYYGV.mjs → product-prices-XLY5TUSJ.mjs} +3 -2
- package/dist/{product-sales-channels-UGPAXFAV.mjs → product-sales-channels-KSIHPDJG.mjs} +5 -4
- package/dist/{product-shipping-profile-Q6UX6ZNJ.mjs → product-shipping-profile-SFU2PVR4.mjs} +20 -18
- package/dist/{product-stock-TSAIHVY6.mjs → product-stock-GAWLELSE.mjs} +17 -15
- package/dist/{product-tag-create-5NZJS2D2.mjs → product-tag-create-FVU5JRL3.mjs} +12 -12
- package/dist/{product-tag-detail-3XHUROBO.mjs → product-tag-detail-VMVPWMZK.mjs} +22 -21
- package/dist/{product-tag-edit-YYOOHKGG.mjs → product-tag-edit-OWI3OFVF.mjs} +12 -12
- package/dist/{product-tag-list-5XTTMNOA.mjs → product-tag-list-YPIZII2D.mjs} +22 -21
- package/dist/{product-tag-metadata-YAD3MPWF.mjs → product-tag-metadata-B4YBSHOH.mjs} +14 -13
- package/dist/{product-type-detail-MNTAHQKJ.mjs → product-type-detail-243HFRBD.mjs} +18 -17
- package/dist/{product-type-list-6ZIWPIUH.mjs → product-type-list-MJLAGQYC.mjs} +5 -4
- package/dist/{product-type-metadata-HWR3WBGT.mjs → product-type-metadata-4YE4UEOF.mjs} +14 -13
- package/dist/{product-variant-detail-DKFAG3KO.mjs → product-variant-detail-LJE3IFNE.mjs} +17 -16
- package/dist/{product-variant-edit-EZENYVAN.mjs → product-variant-edit-IGJIWVQQ.mjs} +18 -14
- package/dist/{product-variant-manage-inventory-items-TM3VAHBJ.mjs → product-variant-manage-inventory-items-2M2KTPNK.mjs} +2 -2
- package/dist/{product-variant-metadata-S7QENSUG.mjs → product-variant-metadata-F6BGFMMS.mjs} +14 -13
- package/dist/{profile-detail-ROG22HHL.mjs → profile-detail-XYAQ2G36.mjs} +3 -2
- package/dist/{profile-edit-HSUQIQQH.mjs → profile-edit-7WD4FTRH.mjs} +31 -19
- package/dist/{promotion-add-campaign-7R26KU2U.mjs → promotion-add-campaign-YREHV6TQ.mjs} +9 -21
- package/dist/{promotion-create-O3KUSPIU.mjs → promotion-create-YGHBTAFC.mjs} +30 -18
- package/dist/{promotion-detail-5DU6ULJG.mjs → promotion-detail-BIC23HFR.mjs} +127 -77
- package/dist/{promotion-edit-details-HQLYX4X4.mjs → promotion-edit-details-A2UUSAZA.mjs} +10 -2
- package/dist/{promotion-list-Q2FOGORE.mjs → promotion-list-WDHOSD55.mjs} +9 -8
- package/dist/{refund-reason-create-NSZFGXWI.mjs → refund-reason-create-YCWLRRBW.mjs} +12 -12
- package/dist/{refund-reason-edit-RKUSPQCL.mjs → refund-reason-edit-E2HDAQZI.mjs} +1 -1
- package/dist/{refund-reason-list-2F5PFERT.mjs → refund-reason-list-7GANH7KL.mjs} +107 -134
- package/dist/{region-add-countries-Y4YAHDUZ.mjs → region-add-countries-6GSF4CKJ.mjs} +3 -2
- package/dist/{region-create-5Y3GIQBV.mjs → region-create-AFZTSM3N.mjs} +34 -18
- package/dist/{region-detail-CWRFM6P3.mjs → region-detail-PB7EUSTD.mjs} +5 -4
- package/dist/{region-edit-JWQWCLM3.mjs → region-edit-DSYIUI7W.mjs} +25 -9
- package/dist/{region-list-FQNI7F37.mjs → region-list-52LF5S4S.mjs} +5 -4
- package/dist/{region-metadata-G3JH5ZN6.mjs → region-metadata-L5K6YENH.mjs} +14 -13
- package/dist/{reservation-create-7RFXWDXB.mjs → reservation-create-FV7QXGL3.mjs} +3 -3
- package/dist/{reservation-detail-PJXS67UM.mjs → reservation-detail-USDAVGWH.mjs} +16 -15
- package/dist/{reservation-list-UOC7RNRZ.mjs → reservation-list-NOWJUMXV.mjs} +7 -6
- package/dist/{reservation-metadata-UCKQB66O.mjs → reservation-metadata-47C6RWYS.mjs} +14 -13
- package/dist/{reset-password-5KIEBJHN.mjs → reset-password-LCVV4NOA.mjs} +1 -1
- package/dist/{return-reason-list-OGFYWMC5.mjs → return-reason-list-FW7OYUOW.mjs} +7 -6
- package/dist/{sales-channel-add-products-CSMNFGHD.mjs → sales-channel-add-products-NGPN4IRB.mjs} +16 -15
- package/dist/{sales-channel-create-3MPOMVPD.mjs → sales-channel-create-NODWGJDD.mjs} +4 -2
- package/dist/{sales-channel-detail-ZSA3HNWW.mjs → sales-channel-detail-IWWRX2Y3.mjs} +18 -17
- package/dist/{sales-channel-edit-LSLAM7A4.mjs → sales-channel-edit-ALIRERVH.mjs} +4 -2
- package/dist/{sales-channel-list-X5ADP34V.mjs → sales-channel-list-LCPDOQK3.mjs} +16 -15
- package/dist/{sales-channel-metadata-ABWIDI3B.mjs → sales-channel-metadata-VZ4TINYG.mjs} +14 -13
- package/dist/{shipping-option-type-create-Q2X5OMJS.mjs → shipping-option-type-create-NOMFII5B.mjs} +12 -12
- package/dist/{shipping-option-type-detail-VT3Y5QQ4.mjs → shipping-option-type-detail-6XIJRVZ5.mjs} +16 -15
- package/dist/{shipping-option-type-edit-IA3EER2N.mjs → shipping-option-type-edit-PEDYL6JQ.mjs} +12 -12
- package/dist/{shipping-option-type-list-JZPKAL3H.mjs → shipping-option-type-list-GI5GBLIS.mjs} +18 -17
- package/dist/{shipping-profile-detail-FDUPDSH4.mjs → shipping-profile-detail-FS46IJZP.mjs} +3 -2
- package/dist/{shipping-profile-metadata-EYXBWBF2.mjs → shipping-profile-metadata-ZOR7MQFF.mjs} +14 -13
- package/dist/{shipping-profiles-list-ZHJEUIKJ.mjs → shipping-profiles-list-QFOG5IDH.mjs} +5 -4
- package/dist/{store-add-currencies-R26SVHT5.mjs → store-add-currencies-W4MWOALR.mjs} +5 -2
- package/dist/{store-detail-LI72QMUZ.mjs → store-detail-MZAKRCTC.mjs} +17 -16
- package/dist/{store-edit-EU55TNFU.mjs → store-edit-3DU5MC25.mjs} +24 -12
- package/dist/{store-metadata-ZITLAS5H.mjs → store-metadata-GO4TXB3W.mjs} +14 -13
- package/dist/{tax-region-create-IU2R5VIY.mjs → tax-region-create-KDCNQGPC.mjs} +15 -15
- package/dist/{tax-region-detail-6FHD35LB.mjs → tax-region-detail-O6U6ZVDB.mjs} +19 -18
- package/dist/{tax-region-edit-O2WJXYIE.mjs → tax-region-edit-T4B5DM55.mjs} +13 -13
- package/dist/{tax-region-list-NMM3LBPN.mjs → tax-region-list-SQQE2GUU.mjs} +6 -5
- package/dist/{tax-region-province-create-GIIU2G7K.mjs → tax-region-province-create-SBRFGWN3.mjs} +2 -2
- package/dist/{tax-region-province-detail-YDBU4CUU.mjs → tax-region-province-detail-XH45ZAOJ.mjs} +18 -17
- package/dist/{tax-region-tax-override-create-EF3LLZWM.mjs → tax-region-tax-override-create-MSL7HEM6.mjs} +25 -20
- package/dist/{tax-region-tax-override-edit-2DG3J6CO.mjs → tax-region-tax-override-edit-AO6CYS62.mjs} +25 -20
- package/dist/{tax-region-tax-rate-create-Z43M3JTQ.mjs → tax-region-tax-rate-create-JIV5FXUD.mjs} +1 -1
- package/dist/{tax-region-tax-rate-edit-RBF5D2MK.mjs → tax-region-tax-rate-edit-WU2ZQLZQ.mjs} +1 -1
- package/dist/{user-detail-VIVFFLOW.mjs → user-detail-ZFW3YF3M.mjs} +4 -3
- package/dist/{user-invite-W26LOOW7.mjs → user-invite-KUH4AI2L.mjs} +4 -3
- package/dist/{user-list-3YFYZFSK.mjs → user-list-G4H2RSDX.mjs} +4 -3
- package/dist/{user-metadata-QUIFIM5G.mjs → user-metadata-2CR2AK3U.mjs} +14 -13
- package/dist/{workflow-execution-detail-PVSQ2VGE.mjs → workflow-execution-detail-ZD7OVL4W.mjs} +18 -14
- package/dist/{workflow-execution-list-5J3DQQRD.mjs → workflow-execution-list-5WL4L464.mjs} +4 -3
- package/package.json +9 -9
- package/src/components/common/action-menu/action-menu.tsx +3 -1
- package/src/components/common/customer-info/customer-info.tsx +1 -1
- package/src/components/common/json-view-section/json-view-section.tsx +4 -1
- package/src/components/common/sidebar-link/sidebar-link.tsx +1 -1
- package/src/components/common/switch-box/switch-box.tsx +2 -0
- package/src/components/data-grid/components/data-grid-root.tsx +9 -3
- package/src/components/data-grid/components/data-grid-toggleable-number-cell.tsx +2 -1
- package/src/components/data-table/data-table.tsx +64 -46
- package/src/components/filtering/filter-group/filter-group.tsx +5 -1
- package/src/components/filtering/order-by/order-by.tsx +4 -1
- package/src/components/forms/address-form/address-form.tsx +7 -2
- package/src/components/forms/metadata-form/metadata-form.tsx +6 -3
- package/src/components/inputs/combobox/combobox.tsx +11 -11
- package/src/components/inputs/country-select/country-select.tsx +1 -1
- package/src/components/inputs/province-select/province-select.tsx +1 -1
- package/src/components/layout/main-layout/main-layout.tsx +7 -5
- package/src/components/layout/shell/shell.tsx +6 -6
- package/src/components/layout/user-menu/user-menu.tsx +12 -10
- package/src/components/search/search.tsx +5 -3
- package/src/components/table/data-table/data-table-order-by/data-table-order-by.tsx +4 -1
- package/src/components/table/data-table/data-table-root/data-table-root.tsx +3 -3
- package/src/dashboard-app/forms/form-extension-zone/form-extension-zone.tsx +1 -1
- package/src/hooks/api/campaigns.tsx +1 -0
- package/src/hooks/api/inventory.tsx +3 -0
- package/src/hooks/api/refund-reasons.tsx +7 -16
- package/src/hooks/table/columns/use-refund-reason-table-columns.tsx +20 -16
- package/src/hooks/use-document-direction.tsx +54 -0
- package/src/i18n/translations/$schema.json +27 -2
- package/src/i18n/translations/en.json +10 -4
- package/src/providers/i18n-provider/i18n-provider.tsx +9 -4
- package/src/routes/campaigns/campaign-detail/components/campaign-budget/campaign-budget.tsx +3 -3
- package/src/routes/campaigns/common/components/create-campaign-form-fields/create-campaign-form-fields.tsx +4 -1
- package/src/routes/categories/category-create/components/create-category-form/create-category-details.tsx +12 -3
- package/src/routes/categories/category-create/components/create-category-form/create-category-form.tsx +4 -3
- package/src/routes/categories/category-detail/components/category-organize-section/category-organize-section.tsx +1 -1
- package/src/routes/categories/category-edit/components/edit-category-form/edit-category-form.tsx +12 -3
- package/src/routes/inventory/inventory-create/components/inventory-create-form/inventory-create-form.tsx +3 -1
- package/src/routes/inventory/inventory-detail/components/inventory-item-variants/variants-section.tsx +1 -1
- package/src/routes/inventory/inventory-detail/components/location-levels-table/use-location-list-table-columns.tsx +7 -0
- package/src/routes/inventory/inventory-detail/components/manage-locations/components/location-item.tsx +2 -2
- package/src/routes/inventory/inventory-detail/components/manage-locations/components/location-search-input.tsx +34 -0
- package/src/routes/inventory/inventory-detail/components/manage-locations/components/manage-locations-form.tsx +127 -140
- package/src/routes/locations/location-edit/components/edit-location-form/edit-location-form.tsx +1 -1
- package/src/routes/locations/location-list/index.ts +0 -1
- package/src/routes/locations/location-list/location-list.tsx +52 -14
- package/src/routes/locations/location-list/use-location-list-table-columns.tsx +185 -0
- package/src/routes/locations/location-list/use-location-list-table-query.tsx +22 -0
- package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-option-details-form.tsx +4 -1
- package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-options-form.tsx +3 -1
- package/src/routes/locations/location-service-zone-shipping-option-edit/components/edit-region-form/edit-shipping-option-form.tsx +7 -2
- package/src/routes/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-form.tsx +7 -2
- package/src/routes/orders/order-create-claim/components/claim-create-form/claim-create-form.tsx +2 -1
- package/src/routes/orders/order-create-edit/components/order-edit-create-form/order-edit-create-form.tsx +2 -1
- package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-create-form.tsx +2 -1
- package/src/routes/orders/order-create-fulfillment/components/order-create-fulfillment-form/order-create-fulfillment-form.tsx +5 -1
- package/src/routes/orders/order-create-refund/components/create-refund-form/create-refund-form.tsx +42 -1
- package/src/routes/orders/order-create-return/components/return-create-form/return-create-form.tsx +2 -1
- package/src/routes/orders/order-create-shipment/components/order-create-shipment-form/order-create-shipment-form.tsx +2 -0
- package/src/routes/orders/order-detail/components/order-activity-section/order-timeline.tsx +13 -5
- package/src/routes/orders/order-receive-return/components/order-receive-return-form/order-receive-return-form.tsx +2 -1
- package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-create-form.tsx +3 -1
- package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-details-form.tsx +8 -2
- package/src/routes/price-lists/price-list-edit/components/price-list-edit-form/edit-price-list-form.tsx +12 -3
- package/src/routes/price-lists/price-list-prices-add/components/price-list-prices-add-form/price-list-prices-add-form.tsx +10 -5
- package/src/routes/product-variants/product-variant-edit/components/product-edit-variant-form/product-edit-variant-form.tsx +4 -0
- package/src/routes/products/common/components/category-combobox/category-combobox.tsx +11 -11
- package/src/routes/products/product-create/components/product-create-form/product-create-form.tsx +3 -1
- package/src/routes/products/product-create-variant/components/create-product-variant-form/create-product-variant-form.tsx +10 -5
- package/src/routes/products/product-create-variant/components/create-product-variant-form/details-tab.tsx +6 -1
- package/src/routes/products/product-edit/components/edit-product-form/edit-product-form.tsx +7 -2
- package/src/routes/products/product-media/components/product-media-gallery/product-media-gallery.tsx +2 -2
- package/src/routes/products/product-stock/hooks/use-product-stock-columns.tsx +2 -1
- package/src/routes/profile/profile-edit/components/edit-profile-form/edit-profile-form.tsx +9 -3
- package/src/routes/promotions/common/edit-rules/components/rules-form-field/rules-form-field.tsx +4 -0
- package/src/routes/promotions/promotion-add-campaign/components/add-campaign-promotion-form/add-campaign-promotion-form.tsx +48 -49
- package/src/routes/promotions/promotion-add-campaign/promotion-add-campaign.tsx +4 -21
- package/src/routes/promotions/promotion-create/components/create-promotion-form/create-promotion-form.tsx +12 -3
- package/src/routes/promotions/promotion-edit-details/components/edit-promotion-form/edit-promotion-details-form.tsx +6 -1
- package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/refund-reason-list-table.tsx +85 -78
- package/src/routes/regions/region-create/components/create-region-form/create-region-form.tsx +11 -2
- package/src/routes/regions/region-edit/components/edit-region-form/edit-region-form.tsx +11 -2
- package/src/routes/reservations/reservation-detail/components/edit-reservation/components/edit-reservation-form.tsx +3 -1
- package/src/routes/sales-channels/sales-channel-create/components/create-sales-channel-form/create-sales-channel-form.tsx +2 -0
- package/src/routes/sales-channels/sales-channel-edit/components/edit-sales-channel-form/edit-sales-channel-form.tsx +2 -0
- package/src/routes/store/store-add-currencies/components/add-currencies-form/add-currencies-form.tsx +2 -0
- package/src/routes/store/store-edit/components/edit-store-form/edit-store-form.tsx +7 -2
- package/src/routes/tax-regions/tax-region-tax-override-create/components/tax-region-override-create-form/tax-region-tax-override-create.tsx +3 -1
- package/src/routes/tax-regions/tax-region-tax-override-edit/components/tax-region-tax-override-edit-form/tax-region-tax-override-edit-form.tsx +3 -1
- package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-timeline-section/workflow-execution-timeline-section.tsx +3 -2
- package/dist/chunk-BKJC5BGQ.mjs +0 -53
- package/dist/location-list-BKK2PAKF.mjs +0 -297
- package/dist/manage-locations-3TBIUSHP.mjs +0 -236
- package/src/routes/locations/location-list/components/location-list-header/index.ts +0 -1
- package/src/routes/locations/location-list/components/location-list-header/location-list-header.tsx +0 -21
- package/src/routes/locations/location-list/loader.ts +0 -36
- package/src/routes/refund-reasons/common/hooks/use-delete-refund-reason-action.tsx +0 -34
@@ -1,14 +1,14 @@
|
|
1
1
|
import {
|
2
2
|
GeoZoneForm
|
3
|
-
} from "./chunk-
|
3
|
+
} from "./chunk-PGTXMCSV.mjs";
|
4
4
|
import "./chunk-NOAFLTPV.mjs";
|
5
5
|
import {
|
6
6
|
GEO_ZONE_STACKED_MODAL_ID
|
7
7
|
} from "./chunk-PYIO3TDQ.mjs";
|
8
8
|
import "./chunk-LQTHYS2Z.mjs";
|
9
|
-
import "./chunk-
|
9
|
+
import "./chunk-EYL2JACT.mjs";
|
10
10
|
import "./chunk-YEDAFXMB.mjs";
|
11
|
-
import "./chunk-
|
11
|
+
import "./chunk-HQKGZADC.mjs";
|
12
12
|
import "./chunk-EMIHDNB7.mjs";
|
13
13
|
import "./chunk-X5VECN6S.mjs";
|
14
14
|
import "./chunk-Z26G6WFJ.mjs";
|
@@ -28,6 +28,7 @@ import {
|
|
28
28
|
countries
|
29
29
|
} from "./chunk-DG7J63J2.mjs";
|
30
30
|
import "./chunk-LPEUYMRK.mjs";
|
31
|
+
import "./chunk-S4DMV3ZT.mjs";
|
31
32
|
import "./chunk-67ORSRVT.mjs";
|
32
33
|
import "./chunk-OBQI23QM.mjs";
|
33
34
|
import {
|
@@ -4,7 +4,7 @@ import {
|
|
4
4
|
ShippingOptionPriceProvider,
|
5
5
|
buildShippingOptionPriceRules,
|
6
6
|
useShippingOptionPriceColumns
|
7
|
-
} from "./chunk-
|
7
|
+
} from "./chunk-TKZK3YPU.mjs";
|
8
8
|
import {
|
9
9
|
CONDITIONAL_PRICES_STACKED_MODAL_ID,
|
10
10
|
ShippingOptionPriceType
|
@@ -18,14 +18,14 @@ import {
|
|
18
18
|
} from "./chunk-HFB3OQXI.mjs";
|
19
19
|
import {
|
20
20
|
Combobox
|
21
|
-
} from "./chunk-
|
21
|
+
} from "./chunk-CD7VQIPA.mjs";
|
22
22
|
import {
|
23
23
|
DataGrid
|
24
|
-
} from "./chunk-
|
24
|
+
} from "./chunk-NKVMOKZA.mjs";
|
25
25
|
import "./chunk-DK4WIVY6.mjs";
|
26
26
|
import {
|
27
27
|
SwitchBox
|
28
|
-
} from "./chunk-
|
28
|
+
} from "./chunk-PRLQLEEQ.mjs";
|
29
29
|
import {
|
30
30
|
castNumber
|
31
31
|
} from "./chunk-6GU6IDUA.mjs";
|
@@ -41,15 +41,18 @@ import {
|
|
41
41
|
} from "./chunk-4TC5YS65.mjs";
|
42
42
|
import "./chunk-LPEUYMRK.mjs";
|
43
43
|
import "./chunk-OC7BQLYI.mjs";
|
44
|
+
import {
|
45
|
+
useDocumentDirection
|
46
|
+
} from "./chunk-S4DMV3ZT.mjs";
|
44
47
|
import {
|
45
48
|
Form
|
46
49
|
} from "./chunk-OBQI23QM.mjs";
|
47
|
-
import "./chunk-
|
50
|
+
import "./chunk-EILZIUOP.mjs";
|
48
51
|
import "./chunk-KOSCMAIC.mjs";
|
49
|
-
import "./chunk-
|
52
|
+
import "./chunk-5U3FFMC7.mjs";
|
50
53
|
import "./chunk-X6DSNTTX.mjs";
|
51
54
|
import "./chunk-I6E6CALJ.mjs";
|
52
|
-
import "./chunk-
|
55
|
+
import "./chunk-RGP3IXX4.mjs";
|
53
56
|
import "./chunk-QTCZFYFH.mjs";
|
54
57
|
import "./chunk-B4GODIOW.mjs";
|
55
58
|
import "./chunk-ENV6YVOM.mjs";
|
@@ -57,11 +60,11 @@ import "./chunk-PIR2H25N.mjs";
|
|
57
60
|
import "./chunk-RLY2SL5E.mjs";
|
58
61
|
import "./chunk-C5LYZZZ5.mjs";
|
59
62
|
import "./chunk-2ZKVRTBW.mjs";
|
60
|
-
import "./chunk-
|
61
|
-
import "./chunk-
|
63
|
+
import "./chunk-EA5GGT2Q.mjs";
|
64
|
+
import "./chunk-LKVQ5YC6.mjs";
|
62
65
|
import "./chunk-F6PXCY3N.mjs";
|
63
|
-
import "./chunk-
|
64
|
-
import "./chunk-
|
66
|
+
import "./chunk-NY6I2FYO.mjs";
|
67
|
+
import "./chunk-R2G2B47Y.mjs";
|
65
68
|
import {
|
66
69
|
useCreateShippingOptions
|
67
70
|
} from "./chunk-GRT22PE5.mjs";
|
@@ -69,11 +72,11 @@ import {
|
|
69
72
|
useFulfillmentProviderOptions,
|
70
73
|
useStockLocation
|
71
74
|
} from "./chunk-32IQRUVY.mjs";
|
72
|
-
import "./chunk-
|
73
|
-
import "./chunk-
|
74
|
-
import "./chunk-
|
75
|
+
import "./chunk-U25RCIX2.mjs";
|
76
|
+
import "./chunk-ITJEYJNB.mjs";
|
77
|
+
import "./chunk-EYTETK3W.mjs";
|
75
78
|
import "./chunk-KX4P5L3R.mjs";
|
76
|
-
import "./chunk-
|
79
|
+
import "./chunk-XP3BY6G6.mjs";
|
77
80
|
import {
|
78
81
|
useStore
|
79
82
|
} from "./chunk-V2LANK5S.mjs";
|
@@ -83,7 +86,7 @@ import {
|
|
83
86
|
import {
|
84
87
|
usePricePreferences
|
85
88
|
} from "./chunk-QL4XKIVL.mjs";
|
86
|
-
import "./chunk-
|
89
|
+
import "./chunk-4QUHWHBD.mjs";
|
87
90
|
import "./chunk-FXYH54JP.mjs";
|
88
91
|
import "./chunk-774WSTCC.mjs";
|
89
92
|
import {
|
@@ -116,6 +119,7 @@ var CreateShippingOptionDetailsForm = ({
|
|
116
119
|
type
|
117
120
|
}) => {
|
118
121
|
const { t } = useTranslation();
|
122
|
+
const direction = useDocumentDirection();
|
119
123
|
const isPickup = type === "pickup" /* Pickup */;
|
120
124
|
const shippingProfiles = useComboboxData({
|
121
125
|
queryFn: (params) => sdk.admin.shippingProfile.list(params),
|
@@ -167,6 +171,7 @@ var CreateShippingOptionDetailsForm = ({
|
|
167
171
|
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
|
168
172
|
RadioGroup,
|
169
173
|
{
|
174
|
+
dir: direction,
|
170
175
|
className: "grid grid-cols-1 gap-4 md:grid-cols-2",
|
171
176
|
...field,
|
172
177
|
onValueChange: field.onChange,
|
@@ -316,6 +321,7 @@ var CreateShippingOptionDetailsForm = ({
|
|
316
321
|
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ createElement(
|
317
322
|
Select,
|
318
323
|
{
|
324
|
+
dir: direction,
|
319
325
|
...field,
|
320
326
|
onValueChange: field.onChange,
|
321
327
|
disabled: !selectedProviderId,
|
@@ -489,6 +495,7 @@ function CreateShippingOptionsForm({
|
|
489
495
|
const [validDetails, setValidDetails] = useState2(false);
|
490
496
|
const { t } = useTranslation2();
|
491
497
|
const { handleSuccess } = useRouteModal();
|
498
|
+
const direction = useDocumentDirection();
|
492
499
|
const form = useForm({
|
493
500
|
defaultValues: {
|
494
501
|
name: "",
|
@@ -662,6 +669,7 @@ function CreateShippingOptionsForm({
|
|
662
669
|
children: /* @__PURE__ */ jsxs3(
|
663
670
|
ProgressTabs,
|
664
671
|
{
|
672
|
+
dir: direction,
|
665
673
|
value: activeTab,
|
666
674
|
className: "flex h-full flex-col overflow-hidden",
|
667
675
|
onValueChange: (tab) => onTabChange(tab),
|
@@ -12,10 +12,10 @@ import {
|
|
12
12
|
} from "./chunk-HFB3OQXI.mjs";
|
13
13
|
import {
|
14
14
|
Combobox
|
15
|
-
} from "./chunk-
|
15
|
+
} from "./chunk-CD7VQIPA.mjs";
|
16
16
|
import {
|
17
17
|
SwitchBox
|
18
|
-
} from "./chunk-
|
18
|
+
} from "./chunk-PRLQLEEQ.mjs";
|
19
19
|
import "./chunk-IUCDCPJU.mjs";
|
20
20
|
import {
|
21
21
|
KeyboundForm
|
@@ -24,6 +24,9 @@ import {
|
|
24
24
|
RouteDrawer,
|
25
25
|
useRouteModal
|
26
26
|
} from "./chunk-4TC5YS65.mjs";
|
27
|
+
import {
|
28
|
+
useDocumentDirection
|
29
|
+
} from "./chunk-S4DMV3ZT.mjs";
|
27
30
|
import {
|
28
31
|
Form
|
29
32
|
} from "./chunk-OBQI23QM.mjs";
|
@@ -80,6 +83,7 @@ var EditShippingOptionForm = ({
|
|
80
83
|
}) => {
|
81
84
|
const { t } = useTranslation();
|
82
85
|
const { handleSuccess } = useRouteModal();
|
86
|
+
const direction = useDocumentDirection();
|
83
87
|
const isPickup = type === "pickup" /* Pickup */;
|
84
88
|
const shippingProfiles = useComboboxData({
|
85
89
|
queryFn: (params) => sdk.admin.shippingProfile.list(params),
|
@@ -166,34 +170,42 @@ var EditShippingOptionForm = ({
|
|
166
170
|
/* @__PURE__ */ jsx(Form.Label, { children: t(
|
167
171
|
"stockLocations.shippingOptions.fields.priceType.label"
|
168
172
|
) }),
|
169
|
-
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
label: t(
|
189
|
-
"stockLocations.shippingOptions.fields.priceType.options.calculated.label"
|
173
|
+
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
|
174
|
+
RadioGroup,
|
175
|
+
{
|
176
|
+
dir: direction,
|
177
|
+
...field,
|
178
|
+
onValueChange: field.onChange,
|
179
|
+
children: [
|
180
|
+
/* @__PURE__ */ jsx(
|
181
|
+
RadioGroup.ChoiceBox,
|
182
|
+
{
|
183
|
+
className: "flex-1",
|
184
|
+
value: "flat" /* FlatRate */,
|
185
|
+
label: t(
|
186
|
+
"stockLocations.shippingOptions.fields.priceType.options.fixed.label"
|
187
|
+
),
|
188
|
+
description: t(
|
189
|
+
"stockLocations.shippingOptions.fields.priceType.options.fixed.hint"
|
190
|
+
)
|
191
|
+
}
|
190
192
|
),
|
191
|
-
|
192
|
-
|
193
|
+
/* @__PURE__ */ jsx(
|
194
|
+
RadioGroup.ChoiceBox,
|
195
|
+
{
|
196
|
+
className: "flex-1",
|
197
|
+
value: "calculated" /* Calculated */,
|
198
|
+
label: t(
|
199
|
+
"stockLocations.shippingOptions.fields.priceType.options.calculated.label"
|
200
|
+
),
|
201
|
+
description: t(
|
202
|
+
"stockLocations.shippingOptions.fields.priceType.options.calculated.hint"
|
203
|
+
)
|
204
|
+
}
|
193
205
|
)
|
194
|
-
|
195
|
-
|
196
|
-
|
206
|
+
]
|
207
|
+
}
|
208
|
+
) }),
|
197
209
|
/* @__PURE__ */ jsx(Form.ErrorMessage, {})
|
198
210
|
] });
|
199
211
|
}
|
@@ -4,7 +4,7 @@ import {
|
|
4
4
|
UpdateConditionalPriceSchema,
|
5
5
|
buildShippingOptionPriceRules,
|
6
6
|
useShippingOptionPriceColumns
|
7
|
-
} from "./chunk-
|
7
|
+
} from "./chunk-TKZK3YPU.mjs";
|
8
8
|
import {
|
9
9
|
CONDITIONAL_PRICES_STACKED_MODAL_ID,
|
10
10
|
ITEM_TOTAL_ATTRIBUTE,
|
@@ -13,7 +13,7 @@ import {
|
|
13
13
|
import "./chunk-X6BAAGCL.mjs";
|
14
14
|
import {
|
15
15
|
DataGrid
|
16
|
-
} from "./chunk-
|
16
|
+
} from "./chunk-NKVMOKZA.mjs";
|
17
17
|
import "./chunk-DK4WIVY6.mjs";
|
18
18
|
import {
|
19
19
|
castNumber
|
@@ -30,6 +30,7 @@ import {
|
|
30
30
|
} from "./chunk-4TC5YS65.mjs";
|
31
31
|
import "./chunk-LPEUYMRK.mjs";
|
32
32
|
import "./chunk-OC7BQLYI.mjs";
|
33
|
+
import "./chunk-S4DMV3ZT.mjs";
|
33
34
|
import "./chunk-OBQI23QM.mjs";
|
34
35
|
import {
|
35
36
|
useShippingOption,
|
@@ -11,14 +11,14 @@ import {
|
|
11
11
|
import {
|
12
12
|
Form
|
13
13
|
} from "./chunk-OBQI23QM.mjs";
|
14
|
-
import "./chunk-
|
14
|
+
import "./chunk-EILZIUOP.mjs";
|
15
15
|
import {
|
16
16
|
useSignInWithEmailPass
|
17
17
|
} from "./chunk-KOSCMAIC.mjs";
|
18
|
-
import "./chunk-
|
18
|
+
import "./chunk-5U3FFMC7.mjs";
|
19
19
|
import "./chunk-X6DSNTTX.mjs";
|
20
20
|
import "./chunk-I6E6CALJ.mjs";
|
21
|
-
import "./chunk-
|
21
|
+
import "./chunk-RGP3IXX4.mjs";
|
22
22
|
import "./chunk-QTCZFYFH.mjs";
|
23
23
|
import "./chunk-B4GODIOW.mjs";
|
24
24
|
import "./chunk-ENV6YVOM.mjs";
|
@@ -26,22 +26,22 @@ import "./chunk-PIR2H25N.mjs";
|
|
26
26
|
import "./chunk-RLY2SL5E.mjs";
|
27
27
|
import "./chunk-C5LYZZZ5.mjs";
|
28
28
|
import "./chunk-2ZKVRTBW.mjs";
|
29
|
-
import "./chunk-
|
30
|
-
import "./chunk-
|
29
|
+
import "./chunk-EA5GGT2Q.mjs";
|
30
|
+
import "./chunk-LKVQ5YC6.mjs";
|
31
31
|
import "./chunk-F6PXCY3N.mjs";
|
32
|
-
import "./chunk-
|
33
|
-
import "./chunk-
|
32
|
+
import "./chunk-NY6I2FYO.mjs";
|
33
|
+
import "./chunk-R2G2B47Y.mjs";
|
34
34
|
import "./chunk-GRT22PE5.mjs";
|
35
35
|
import "./chunk-32IQRUVY.mjs";
|
36
|
-
import "./chunk-
|
37
|
-
import "./chunk-
|
38
|
-
import "./chunk-
|
36
|
+
import "./chunk-U25RCIX2.mjs";
|
37
|
+
import "./chunk-ITJEYJNB.mjs";
|
38
|
+
import "./chunk-EYTETK3W.mjs";
|
39
39
|
import "./chunk-KX4P5L3R.mjs";
|
40
|
-
import "./chunk-
|
40
|
+
import "./chunk-XP3BY6G6.mjs";
|
41
41
|
import "./chunk-V2LANK5S.mjs";
|
42
42
|
import "./chunk-QZ6PT4QV.mjs";
|
43
43
|
import "./chunk-QL4XKIVL.mjs";
|
44
|
-
import "./chunk-
|
44
|
+
import "./chunk-4QUHWHBD.mjs";
|
45
45
|
import "./chunk-FXYH54JP.mjs";
|
46
46
|
import "./chunk-774WSTCC.mjs";
|
47
47
|
import "./chunk-DEQUVHHE.mjs";
|
@@ -0,0 +1,247 @@
|
|
1
|
+
import {
|
2
|
+
RouteDrawer,
|
3
|
+
useRouteModal
|
4
|
+
} from "./chunk-4TC5YS65.mjs";
|
5
|
+
import {
|
6
|
+
InfiniteList
|
7
|
+
} from "./chunk-VLOA5XAC.mjs";
|
8
|
+
import "./chunk-OBQI23QM.mjs";
|
9
|
+
import {
|
10
|
+
useStockLocations
|
11
|
+
} from "./chunk-32IQRUVY.mjs";
|
12
|
+
import {
|
13
|
+
useBatchInventoryItemLocationLevels,
|
14
|
+
useInventoryItem
|
15
|
+
} from "./chunk-4QUHWHBD.mjs";
|
16
|
+
import "./chunk-FXYH54JP.mjs";
|
17
|
+
import "./chunk-774WSTCC.mjs";
|
18
|
+
import {
|
19
|
+
sdk
|
20
|
+
} from "./chunk-DEQUVHHE.mjs";
|
21
|
+
import "./chunk-RPUOO7AV.mjs";
|
22
|
+
|
23
|
+
// src/routes/inventory/inventory-detail/components/manage-locations/manage-locations-drawer.tsx
|
24
|
+
import { Heading } from "@medusajs/ui";
|
25
|
+
import { useTranslation as useTranslation3 } from "react-i18next";
|
26
|
+
import { useParams } from "react-router-dom";
|
27
|
+
|
28
|
+
// src/routes/inventory/inventory-detail/components/manage-locations/components/manage-locations-form.tsx
|
29
|
+
import { Button, Text as Text2, toast } from "@medusajs/ui";
|
30
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
31
|
+
import { useMemo, useState as useState2 } from "react";
|
32
|
+
|
33
|
+
// src/routes/inventory/inventory-detail/components/manage-locations/components/location-item.tsx
|
34
|
+
import { Checkbox, Text, clx } from "@medusajs/ui";
|
35
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
36
|
+
var LocationItem = ({
|
37
|
+
selected,
|
38
|
+
onSelect,
|
39
|
+
location
|
40
|
+
}) => {
|
41
|
+
return /* @__PURE__ */ jsxs(
|
42
|
+
"div",
|
43
|
+
{
|
44
|
+
className: clx(
|
45
|
+
"flex w-full cursor-pointer gap-x-2 rounded-lg border px-2 py-2",
|
46
|
+
{
|
47
|
+
"border-ui-border-interactive ": selected
|
48
|
+
}
|
49
|
+
),
|
50
|
+
onClick: () => onSelect(!selected),
|
51
|
+
children: [
|
52
|
+
/* @__PURE__ */ jsx("div", { className: "h-5 w-5", children: /* @__PURE__ */ jsx(
|
53
|
+
Checkbox,
|
54
|
+
{
|
55
|
+
onClick: (e) => {
|
56
|
+
e.stopPropagation();
|
57
|
+
onSelect(!selected);
|
58
|
+
},
|
59
|
+
checked: selected
|
60
|
+
}
|
61
|
+
) }),
|
62
|
+
/* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col", children: [
|
63
|
+
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: location.name }),
|
64
|
+
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", className: "text-ui-fg-subtle", children: [
|
65
|
+
location.address?.address_1,
|
66
|
+
location.address?.city,
|
67
|
+
location.address?.country_code
|
68
|
+
].filter((el) => !!el).join(", ") })
|
69
|
+
] })
|
70
|
+
]
|
71
|
+
}
|
72
|
+
);
|
73
|
+
};
|
74
|
+
|
75
|
+
// src/routes/inventory/inventory-detail/components/manage-locations/components/location-search-input.tsx
|
76
|
+
import { Input } from "@medusajs/ui";
|
77
|
+
import { useTranslation } from "react-i18next";
|
78
|
+
import { useState, useEffect } from "react";
|
79
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
80
|
+
var LocationSearchInput = ({
|
81
|
+
onSearchChange,
|
82
|
+
placeholder
|
83
|
+
}) => {
|
84
|
+
const { t } = useTranslation();
|
85
|
+
const [searchValue, setSearchValue] = useState("");
|
86
|
+
useEffect(() => {
|
87
|
+
const timer = setTimeout(() => {
|
88
|
+
onSearchChange(searchValue);
|
89
|
+
}, 300);
|
90
|
+
return () => clearTimeout(timer);
|
91
|
+
}, [searchValue, onSearchChange]);
|
92
|
+
return /* @__PURE__ */ jsx2(
|
93
|
+
Input,
|
94
|
+
{
|
95
|
+
type: "text",
|
96
|
+
placeholder: placeholder || t("general.search"),
|
97
|
+
value: searchValue,
|
98
|
+
onChange: (e) => setSearchValue(e.target.value),
|
99
|
+
className: "w-full"
|
100
|
+
}
|
101
|
+
);
|
102
|
+
};
|
103
|
+
|
104
|
+
// src/routes/inventory/inventory-detail/components/manage-locations/components/manage-locations-form.tsx
|
105
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
106
|
+
var ManageLocationsForm = ({
|
107
|
+
item
|
108
|
+
}) => {
|
109
|
+
const existingLocationLevels = useMemo(
|
110
|
+
() => new Set(item.location_levels?.map((l) => l.location_id) ?? []),
|
111
|
+
[item.location_levels]
|
112
|
+
);
|
113
|
+
const { t } = useTranslation2();
|
114
|
+
const { handleSuccess } = useRouteModal();
|
115
|
+
const [searchQuery, setSearchQuery] = useState2("");
|
116
|
+
const [selectedLocationIds, setSelectedLocationIds] = useState2(
|
117
|
+
existingLocationLevels
|
118
|
+
);
|
119
|
+
const { count } = useStockLocations({ limit: 1, fields: "id" });
|
120
|
+
const handleLocationSelect = (locationId, selected) => {
|
121
|
+
setSelectedLocationIds((prev) => {
|
122
|
+
const newSet = new Set(prev);
|
123
|
+
if (selected) {
|
124
|
+
newSet.add(locationId);
|
125
|
+
} else {
|
126
|
+
newSet.delete(locationId);
|
127
|
+
}
|
128
|
+
return newSet;
|
129
|
+
});
|
130
|
+
};
|
131
|
+
const { mutateAsync } = useBatchInventoryItemLocationLevels(item.id);
|
132
|
+
const handleSubmit = async () => {
|
133
|
+
const toCreate = Array.from(selectedLocationIds).filter(
|
134
|
+
(id) => !existingLocationLevels.has(id)
|
135
|
+
);
|
136
|
+
const toDeleteLocations = Array.from(existingLocationLevels).filter(
|
137
|
+
(id) => !selectedLocationIds.has(id)
|
138
|
+
);
|
139
|
+
const toDelete = toDeleteLocations.map((id) => item.location_levels?.find((l) => l.location_id === id)?.id).filter(Boolean);
|
140
|
+
await mutateAsync(
|
141
|
+
{
|
142
|
+
create: toCreate.map((location_id) => ({
|
143
|
+
location_id
|
144
|
+
})),
|
145
|
+
delete: toDelete
|
146
|
+
},
|
147
|
+
{
|
148
|
+
onSuccess: () => {
|
149
|
+
toast.success(t("inventory.toast.updateLocations"));
|
150
|
+
handleSuccess();
|
151
|
+
},
|
152
|
+
onError: (e) => {
|
153
|
+
toast.error(e.message);
|
154
|
+
}
|
155
|
+
}
|
156
|
+
);
|
157
|
+
};
|
158
|
+
return /* @__PURE__ */ jsxs2("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
159
|
+
/* @__PURE__ */ jsxs2(RouteDrawer.Body, { className: "flex flex-1 flex-col gap-y-4 overflow-auto", children: [
|
160
|
+
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle shadow-elevation-card-rest grid grid-rows-2 divide-y rounded-lg border", children: [
|
161
|
+
/* @__PURE__ */ jsxs2("div", { className: "grid grid-cols-2 divide-x", children: [
|
162
|
+
/* @__PURE__ */ jsx3(Text2, { className: "px-2 py-1.5", size: "small", leading: "compact", children: t("fields.title") }),
|
163
|
+
/* @__PURE__ */ jsx3(Text2, { className: "px-2 py-1.5", size: "small", leading: "compact", children: item.title ?? "-" })
|
164
|
+
] }),
|
165
|
+
/* @__PURE__ */ jsxs2("div", { className: "grid grid-cols-2 divide-x", children: [
|
166
|
+
/* @__PURE__ */ jsx3(Text2, { className: "px-2 py-1.5", size: "small", leading: "compact", children: t("fields.sku") }),
|
167
|
+
/* @__PURE__ */ jsx3(Text2, { className: "px-2 py-1.5", size: "small", leading: "compact", children: item.sku })
|
168
|
+
] })
|
169
|
+
] }),
|
170
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex flex-col", children: [
|
171
|
+
/* @__PURE__ */ jsx3(Text2, { size: "small", weight: "plus", leading: "compact", children: t("locations.domain") }),
|
172
|
+
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle flex w-full justify-between", children: [
|
173
|
+
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", children: t("locations.selectLocations") }),
|
174
|
+
/* @__PURE__ */ jsxs2(Text2, { size: "small", leading: "compact", children: [
|
175
|
+
"(",
|
176
|
+
t("general.countOfTotalSelected", {
|
177
|
+
count: selectedLocationIds.size,
|
178
|
+
total: count
|
179
|
+
}),
|
180
|
+
")"
|
181
|
+
] })
|
182
|
+
] })
|
183
|
+
] }),
|
184
|
+
/* @__PURE__ */ jsx3(
|
185
|
+
LocationSearchInput,
|
186
|
+
{
|
187
|
+
onSearchChange: setSearchQuery,
|
188
|
+
placeholder: t("general.search")
|
189
|
+
}
|
190
|
+
),
|
191
|
+
/* @__PURE__ */ jsx3("div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ jsx3(
|
192
|
+
InfiniteList,
|
193
|
+
{
|
194
|
+
queryKey: ["stock-locations", searchQuery],
|
195
|
+
queryFn: async (params) => {
|
196
|
+
const response = await sdk.admin.stockLocation.list({
|
197
|
+
limit: params.limit,
|
198
|
+
offset: params.offset,
|
199
|
+
...searchQuery && { q: searchQuery }
|
200
|
+
});
|
201
|
+
return response;
|
202
|
+
},
|
203
|
+
responseKey: "stock_locations",
|
204
|
+
renderItem: (location) => /* @__PURE__ */ jsx3(
|
205
|
+
LocationItem,
|
206
|
+
{
|
207
|
+
selected: selectedLocationIds.has(location.id),
|
208
|
+
location,
|
209
|
+
onSelect: (selected) => handleLocationSelect(location.id, selected)
|
210
|
+
}
|
211
|
+
),
|
212
|
+
renderEmpty: () => /* @__PURE__ */ jsx3("div", { className: "flex items-center justify-center py-8", children: /* @__PURE__ */ jsx3(Text2, { size: "small", className: "text-ui-fg-subtle", children: searchQuery ? t("locations.noLocationsFound") : t("locations.noLocationsFound") }) }),
|
213
|
+
pageSize: 20
|
214
|
+
}
|
215
|
+
) })
|
216
|
+
] }),
|
217
|
+
/* @__PURE__ */ jsx3(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-end gap-x-2", children: [
|
218
|
+
/* @__PURE__ */ jsx3(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx3(Button, { variant: "secondary", size: "small", children: t("actions.cancel") }) }),
|
219
|
+
/* @__PURE__ */ jsx3(Button, { onClick: handleSubmit, size: "small", isLoading: false, children: t("actions.save") })
|
220
|
+
] }) })
|
221
|
+
] });
|
222
|
+
};
|
223
|
+
|
224
|
+
// src/routes/inventory/inventory-detail/components/manage-locations/manage-locations-drawer.tsx
|
225
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
226
|
+
var ManageLocationsDrawer = () => {
|
227
|
+
const { id } = useParams();
|
228
|
+
const { t } = useTranslation3();
|
229
|
+
const {
|
230
|
+
inventory_item: inventoryItem,
|
231
|
+
isPending: isLoading,
|
232
|
+
isError,
|
233
|
+
error
|
234
|
+
} = useInventoryItem(id);
|
235
|
+
const { stock_locations, isLoading: loadingLocations } = useStockLocations();
|
236
|
+
const ready = !isLoading && !loadingLocations && inventoryItem && stock_locations;
|
237
|
+
if (isError) {
|
238
|
+
throw error;
|
239
|
+
}
|
240
|
+
return /* @__PURE__ */ jsxs3(RouteDrawer, { children: [
|
241
|
+
/* @__PURE__ */ jsx4(RouteDrawer.Header, { children: /* @__PURE__ */ jsx4(Heading, { children: t("inventory.manageLocations") }) }),
|
242
|
+
ready && /* @__PURE__ */ jsx4(ManageLocationsForm, { item: inventoryItem, locations: stock_locations })
|
243
|
+
] });
|
244
|
+
};
|
245
|
+
export {
|
246
|
+
ManageLocationsDrawer as Component
|
247
|
+
};
|
@@ -12,6 +12,9 @@ import {
|
|
12
12
|
import {
|
13
13
|
Thumbnail
|
14
14
|
} from "./chunk-MNXC6Q4F.mjs";
|
15
|
+
import {
|
16
|
+
useDocumentDirection
|
17
|
+
} from "./chunk-S4DMV3ZT.mjs";
|
15
18
|
import {
|
16
19
|
Form
|
17
20
|
} from "./chunk-OBQI23QM.mjs";
|
@@ -21,11 +24,11 @@ import {
|
|
21
24
|
import {
|
22
25
|
ordersQueryKeys,
|
23
26
|
useOrder
|
24
|
-
} from "./chunk-
|
27
|
+
} from "./chunk-U25RCIX2.mjs";
|
25
28
|
import {
|
26
29
|
useCreateReservationItem
|
27
|
-
} from "./chunk-
|
28
|
-
import "./chunk-
|
30
|
+
} from "./chunk-ITJEYJNB.mjs";
|
31
|
+
import "./chunk-4QUHWHBD.mjs";
|
29
32
|
import {
|
30
33
|
queryClient
|
31
34
|
} from "./chunk-FXYH54JP.mjs";
|
@@ -312,6 +315,7 @@ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
312
315
|
function OrderAllocateItemsForm({ order }) {
|
313
316
|
const { t } = useTranslation2();
|
314
317
|
const { handleSuccess } = useRouteModal();
|
318
|
+
const direction = useDocumentDirection();
|
315
319
|
const [disableSubmit, setDisableSubmit] = useState2(false);
|
316
320
|
const [filterTerm, setFilterTerm] = useState2("");
|
317
321
|
const { mutateAsync: allocateItems, isPending: isMutating } = useCreateReservationItem();
|
@@ -447,17 +451,25 @@ function OrderAllocateItemsForm({ order }) {
|
|
447
451
|
/* @__PURE__ */ jsx2(Form.Label, { children: t("fields.location") }),
|
448
452
|
/* @__PURE__ */ jsx2(Form.Hint, { children: t("orders.allocateItems.locationDescription") })
|
449
453
|
] }),
|
450
|
-
/* @__PURE__ */ jsx2("div", { className: "flex-1", children: /* @__PURE__ */ jsx2(Form.Control, { children: /* @__PURE__ */ jsxs2(
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
454
|
+
/* @__PURE__ */ jsx2("div", { className: "flex-1", children: /* @__PURE__ */ jsx2(Form.Control, { children: /* @__PURE__ */ jsxs2(
|
455
|
+
Select,
|
456
|
+
{
|
457
|
+
dir: direction,
|
458
|
+
onValueChange: onChange,
|
459
|
+
...field,
|
460
|
+
children: [
|
461
|
+
/* @__PURE__ */ jsx2(
|
462
|
+
Select.Trigger,
|
463
|
+
{
|
464
|
+
className: "bg-ui-bg-base",
|
465
|
+
ref,
|
466
|
+
children: /* @__PURE__ */ jsx2(Select.Value, {})
|
467
|
+
}
|
468
|
+
),
|
469
|
+
/* @__PURE__ */ jsx2(Select.Content, { children: stock_locations.map((l) => /* @__PURE__ */ jsx2(Select.Item, { value: l.id, children: l.name }, l.id)) })
|
470
|
+
]
|
471
|
+
}
|
472
|
+
) }) })
|
461
473
|
] }),
|
462
474
|
/* @__PURE__ */ jsx2(Form.ErrorMessage, {})
|
463
475
|
] });
|