@mercurjs/admin 2.0.0-canary.34 → 2.0.0-canary.35
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-UVEH25GZ.js → add-campaign-promotions-ZUXBF5G3.js} +10 -10
- package/dist/{adjust-inventory-6Q53EEFB.js → adjust-inventory-HZCWL6SC.js} +10 -10
- package/dist/api-key-management-detail-SKJNAZ5L.js +87 -0
- package/dist/api-key-management-list-2D4WKI6Y.js +33 -0
- package/dist/{campaign-create-2IIU3WTS.js → campaign-create-B7XM2FZM.js} +4 -4
- package/dist/campaign-detail-7U4CQHU5.js +105 -0
- package/dist/campaign-list-SC7FLTRM.js +31 -0
- package/dist/{categories-metadata-G7JDGW6O.js → categories-metadata-LPSJNCME.js} +12 -12
- package/dist/category-detail-HGHR3R2R.js +105 -0
- package/dist/category-list-QBBFGHQM.js +32 -0
- package/dist/{category-products-FH4RIZKA.js → category-products-XLCG2JR7.js} +14 -14
- package/dist/{chunk-36WVODFU.js → chunk-23663A2W.js} +1 -1
- package/dist/chunk-2IGCU3KP.js +170 -0
- package/dist/chunk-33FUPXJL.js +102 -0
- package/dist/{chunk-O5HZRJPB.js → chunk-3B6MTW5G.js} +9 -0
- package/dist/{shipping-profiles-list-FUW4FXLC.js → chunk-3H74EI2D.js} +11 -19
- package/dist/{shipping-profile-detail-WHKHB2OQ.js → chunk-3IYIS5UZ.js} +15 -61
- package/dist/{return-reason-list-MRYG7ZK7.js → chunk-3SAH3NUS.js} +12 -80
- package/dist/chunk-4GVHNYZR.js +294 -0
- package/dist/chunk-4WYBW3HK.js +209 -0
- package/dist/chunk-5GG65TKV.js +335 -0
- package/dist/{customer-group-detail-CPONLZRF.js → chunk-5VEYNZSW.js} +33 -119
- package/dist/{customer-group-list-V2CGT3FT.js → chunk-62ZRA6BZ.js} +2 -37
- package/dist/{category-list-YPRENMVF.js → chunk-66IHH2HG.js} +105 -89
- package/dist/chunk-6L2LSIPR.js +223 -0
- package/dist/{region-list-PGWUOULN.js → chunk-6PNMR6XP.js} +18 -32
- package/dist/{product-type-list-T5KO5J3W.js → chunk-7COSFMM7.js} +17 -30
- package/dist/{api-key-management-detail-RQW5RC5F.js → chunk-7TLEUIAL.js} +22 -80
- package/dist/{product-tag-list-I6M6TAYM.js → chunk-A2KURGQO.js} +16 -131
- package/dist/{chunk-GFZ7GOEU.js → chunk-A6Z2Q7D5.js} +2 -2
- package/dist/{customer-detail-YS265DZS.js → chunk-AOVEX4EM.js} +74 -158
- package/dist/{inventory-detail-42GK24BA.js → chunk-AOVJTW7M.js} +130 -196
- package/dist/{payout-list-GE7E637R.js → chunk-BHID7W3U.js} +12 -22
- package/dist/{price-list-list-VFHHTBLR.js → chunk-CR4E2DCR.js} +98 -78
- package/dist/{chunk-UZVYM65V.js → chunk-D44T5KAE.js} +6 -6
- package/dist/{chunk-BFCAJKRG.js → chunk-DBYUB2YI.js} +28 -56
- package/dist/{user-detail-Q7ST2YKP.js → chunk-DK3U2SRA.js} +17 -62
- package/dist/{refund-reason-list-ECQKWA2M.js → chunk-DP5U3GQU.js} +54 -105
- package/dist/chunk-E2AAYIHS.js +250 -0
- package/dist/{commission-rate-detail-ANI37QHI.js → chunk-EDQBUWY7.js} +46 -106
- package/dist/{region-detail-DIEFHHOM.js → chunk-ENMRRG4N.js} +48 -94
- package/dist/{chunk-UZJ2NQSN.js → chunk-FRRQW7BG.js} +4 -4
- package/dist/{order-detail-V2O5C4CX.js → chunk-FXU7SL6M.js} +413 -423
- package/dist/{product-type-detail-JI4DF7WR.js → chunk-FYB5MS4F.js} +29 -110
- package/dist/{chunk-QNGHZSK3.js → chunk-G644AXKV.js} +1 -1
- package/dist/chunk-GJTIHFXG.js +115 -0
- package/dist/{sales-channel-list-2ZUNUM2T.js → chunk-HHNJNKCB.js} +16 -54
- package/dist/{campaign-list-EAGDQZO3.js → chunk-HZKW7HRU.js} +14 -32
- package/dist/chunk-IXGP2EEN.js +425 -0
- package/dist/{profile-detail-AWZ4EZ6R.js → chunk-J7SR4GW5.js} +10 -15
- package/dist/{product-variant-detail-DXTUM4R7.js → chunk-JA2XIIIZ.js} +96 -178
- package/dist/{price-list-detail-324FZRK5.js → chunk-JRWB7VWP.js} +59 -130
- package/dist/{category-detail-2U65E3CX.js → chunk-KUDLPUWR.js} +70 -146
- package/dist/{collection-detail-Y4GGSHXX.js → chunk-KXPCEVFB.js} +44 -121
- package/dist/{location-list-KVFFPEIV.js → chunk-KYUXTS2L.js} +61 -86
- package/dist/{chunk-M3I52H3M.js → chunk-LU72QEQC.js} +4 -4
- package/dist/{location-detail-XO4RRCAU.js → chunk-LYT3RI4O.js} +90 -155
- package/dist/chunk-NOWUEJ74.js +44 -0
- package/dist/{product-detail-3UWUMNHC.js → chunk-NQPAEBSZ.js} +145 -195
- package/dist/{api-key-management-list-VYQ4AVSX.js → chunk-O6O22BN4.js} +9 -29
- package/dist/{tax-region-province-detail-PB7RFWJ4.js → chunk-OFRQZHVQ.js} +15 -99
- package/dist/{reservation-detail-J4M2EXRY.js → chunk-OSHCUDYY.js} +27 -93
- package/dist/{campaign-detail-4DO3S5UZ.js → chunk-Q6XCCONH.js} +118 -193
- package/dist/{payout-detail-PRYOQSGQ.js → chunk-QBOXELB5.js} +7 -41
- package/dist/chunk-QD6KYDYH.js +169 -0
- package/dist/{commission-rate-list-FCQ3HXC7.js → chunk-QP6XXG6A.js} +11 -20
- package/dist/{promotion-list-SJYMXQXT.js → chunk-RIMR3ULR.js} +14 -51
- package/dist/{shipping-option-type-list-4A7FT4P5.js → chunk-SFG7JTBH.js} +14 -51
- package/dist/{sales-channel-detail-RMU5QW3N.js → chunk-T25UE7SS.js} +39 -120
- package/dist/{tax-region-detail-L3EB6JSF.js → chunk-TE5VQBCL.js} +19 -60
- package/dist/{reservation-list-X33SIPG3.js → chunk-TKGZBTOS.js} +11 -20
- package/dist/{chunk-LQSLDDPT.js → chunk-TZSOL34K.js} +40 -1
- package/dist/{chunk-F5PEK3DA.js → chunk-U3SFHLUA.js} +1 -1
- package/dist/{chunk-IZ5RG5XI.js → chunk-UXD3VNBO.js} +1 -20
- package/dist/{chunk-XE6KSRKQ.js → chunk-V2DXJ75C.js} +1 -1
- package/dist/{marketplace-detail-OVWHCK5W.js → chunk-VBAAYYCS.js} +114 -172
- package/dist/{chunk-5POS4GBN.js → chunk-WZADCDDE.js} +4 -4
- package/dist/{chunk-HOZHWCST.js → chunk-XDVS4B7W.js} +1 -1
- package/dist/{promotion-detail-IO7V5CXR.js → chunk-XVKRTPVM.js} +147 -162
- package/dist/{inventory-list-UJNDJFJS.js → chunk-YH4VQBAA.js} +11 -19
- package/dist/{collection-add-products-RLTEE27D.js → collection-add-products-IQ7M63BA.js} +13 -13
- package/dist/collection-detail-YJ3FV2C6.js +96 -0
- package/dist/collection-list-WDQOBHQN.js +78 -0
- package/dist/{collection-metadata-CQWEZ4EQ.js → collection-metadata-UZ3VN625.js} +10 -10
- package/dist/{commission-rate-create-YK6GCP2R.js → commission-rate-create-VC72GTV4.js} +34 -34
- package/dist/commission-rate-detail-UQDIIMIK.js +82 -0
- package/dist/{commission-rate-edit-5MPI53CE.js → commission-rate-edit-AXJKJNFY.js} +34 -34
- package/dist/commission-rate-list-WTDZLKUR.js +27 -0
- package/dist/customer-detail-N7CS4IJU.js +106 -0
- package/dist/{customer-group-add-customers-FTRCJHE7.js → customer-group-add-customers-LCNDTLXR.js} +6 -6
- package/dist/customer-group-detail-UCTY4FF7.js +105 -0
- package/dist/customer-group-list-XOQ64CVR.js +48 -0
- package/dist/{customer-group-metadata-BITZXXFX.js → customer-group-metadata-FMAZBXIK.js} +11 -11
- package/dist/customer-list-BUUO6OF7.js +32 -0
- package/dist/{customer-metadata-6DDHIGDD.js → customer-metadata-7GW4JRZR.js} +11 -11
- package/dist/{customers-add-customer-group-SD3KK6JE.js → customers-add-customer-group-BKEV24N2.js} +15 -15
- package/dist/{edit-inventory-item-5PZZ3IAH.js → edit-inventory-item-RECBP7OX.js} +7 -7
- package/dist/{edit-inventory-item-attributes-7PJQCUXL.js → edit-inventory-item-attributes-2P3BMQJ5.js} +8 -8
- package/dist/{edit-rules-E2564ZQB.js → edit-rules-DPHJ7PQQ.js} +9 -9
- package/dist/index.d.ts +5 -0
- package/dist/index.js +564 -757
- package/dist/{inventory-create-LYXHQR7Y.js → inventory-create-QLEIHESO.js} +20 -20
- package/dist/inventory-detail-BJT5WEV5.js +106 -0
- package/dist/inventory-list-3LWBPWVK.js +29 -0
- package/dist/{inventory-metadata-OLR5ZMMN.js → inventory-metadata-ZNHZQEMX.js} +11 -11
- package/dist/{inventory-stock-ZOM2ANKJ.js → inventory-stock-G3GP4FZX.js} +17 -17
- package/dist/location-detail-N7J6PEAP.js +99 -0
- package/dist/{location-fulfillment-providers-6T27UNF7.js → location-fulfillment-providers-BHCY2MYC.js} +18 -18
- package/dist/location-list-UG6B47NP.js +52 -0
- package/dist/{location-service-zone-create-IYKQNCNO.js → location-service-zone-create-AIVG7HTM.js} +8 -8
- package/dist/{location-service-zone-manage-areas-L7BQTR7S.js → location-service-zone-manage-areas-EZSV25CP.js} +10 -10
- package/dist/{location-service-zone-shipping-option-create-PSPX634E.js → location-service-zone-shipping-option-create-GYPW6SSN.js} +18 -18
- package/dist/{location-service-zone-shipping-option-pricing-HC7Z4BVU.js → location-service-zone-shipping-option-pricing-7VMPXDWX.js} +8 -8
- package/dist/{login-U5WERLJC.js → login-2HSCF4ZB.js} +16 -10
- package/dist/{marketplace-add-currencies-XQPZT237.js → marketplace-add-currencies-CIGOPBO6.js} +7 -7
- package/dist/marketplace-detail-7KJMXXAJ.js +74 -0
- package/dist/{marketplace-metadata-GIYATM54.js → marketplace-metadata-PHZ4PUWM.js} +11 -11
- package/dist/{order-create-claim-UWNZUBL7.js → order-create-claim-7WW6MXTT.js} +34 -34
- package/dist/{order-create-edit-JD4UZ5GW.js → order-create-edit-KAH6ZPLX.js} +20 -20
- package/dist/{order-create-exchange-OTIDP47E.js → order-create-exchange-ELLWF3IY.js} +31 -31
- package/dist/{order-create-fulfillment-7OP64TNJ.js → order-create-fulfillment-E3J7ILOJ.js} +13 -13
- package/dist/{order-create-refund-U4UK5IZB.js → order-create-refund-5QZBOSCA.js} +13 -13
- package/dist/{order-create-return-LH4LW5BZ.js → order-create-return-L6DEDPJK.js} +17 -17
- package/dist/{order-create-shipment-URYCUNU6.js → order-create-shipment-NBQ226NM.js} +7 -7
- package/dist/order-detail-C25NQSZN.js +122 -0
- package/dist/{order-edit-billing-address-XRUEKX33.js → order-edit-billing-address-NVRMPZEU.js} +14 -14
- package/dist/{order-edit-email-CJ3MEZB6.js → order-edit-email-5FA7X52X.js} +7 -7
- package/dist/{order-edit-shipping-address-SV4UVNBQ.js → order-edit-shipping-address-BPU7OL2N.js} +11 -11
- package/dist/order-list-7NH7LROU.js +48 -0
- package/dist/{order-metadata-HIOSALZT.js → order-metadata-47FUKENZ.js} +10 -10
- package/dist/{order-receive-return-4SRRRBW6.js → order-receive-return-FW5QZJBM.js} +8 -8
- package/dist/{order-request-transfer-5AGKGFVY.js → order-request-transfer-WD327YGL.js} +7 -7
- package/dist/pages/index.d.ts +638 -0
- package/dist/pages/index.js +359 -0
- package/dist/payout-detail-MDD5SRK5.js +51 -0
- package/dist/payout-list-XY2A5KYS.js +28 -0
- package/dist/{price-list-configuration-GK4MA3BE.js → price-list-configuration-XK3IZLLX.js} +8 -8
- package/dist/{price-list-create-3NNWUS6L.js → price-list-create-OK7YYLAB.js} +22 -22
- package/dist/price-list-detail-IGFSM77P.js +102 -0
- package/dist/price-list-list-TBXQ5DOS.js +35 -0
- package/dist/{price-list-prices-add-IBSLTMNK.js → price-list-prices-add-7PGUONDK.js} +18 -18
- package/dist/{price-list-prices-edit-AAVPX34P.js → price-list-prices-edit-QVGBT6AI.js} +14 -14
- package/dist/{product-create-C4GHUEM5.js → product-create-NVBKO426.js} +218 -383
- package/dist/{product-create-variant-5MVBT5ST.js → product-create-variant-CJPECBV4.js} +68 -230
- package/dist/product-detail-ZC37BGPC.js +100 -0
- package/dist/{product-export-XTS7P5AD.js → product-export-ULTY2SNJ.js} +14 -14
- package/dist/{product-import-ZEZE2JE6.js → product-import-Q2CPHVNJ.js} +10 -10
- package/dist/product-list-635ZXM2D.js +85 -0
- package/dist/{product-media-Z2DCRZSU.js → product-media-ZMDAVPGI.js} +4 -4
- package/dist/{product-metadata-NBB5SRDN.js → product-metadata-36JNWKCJ.js} +10 -10
- package/dist/{product-stock-ZXNZZBJI.js → product-stock-HF42WRSC.js} +18 -18
- package/dist/{product-tag-create-LL35OFZM.js → product-tag-create-VCRDLR27.js} +7 -7
- package/dist/product-tag-detail-OJLYO3Q5.js +135 -0
- package/dist/{product-tag-edit-6XBZCCED.js → product-tag-edit-BYE7UP54.js} +7 -7
- package/dist/product-tag-list-XFHGJBRF.js +129 -0
- package/dist/{product-tag-metadata-UGO4RUFU.js → product-tag-metadata-ADHNZA2H.js} +10 -10
- package/dist/product-type-detail-J4UA4AEM.js +97 -0
- package/dist/product-type-list-H5EQHCXS.js +34 -0
- package/dist/{product-type-metadata-ZKOZNZE3.js → product-type-metadata-UY22KDAN.js} +10 -10
- package/dist/product-variant-detail-5WKYURFA.js +111 -0
- package/dist/{product-variant-edit-KGLW5GXD.js → product-variant-edit-66ZUIIMP.js} +10 -10
- package/dist/{product-variant-metadata-H7J7SZNU.js → product-variant-metadata-7N5F7DM5.js} +10 -10
- package/dist/profile-detail-EYNXOHGZ.js +17 -0
- package/dist/{promotion-add-campaign-OEMV62HF.js → promotion-add-campaign-B5SF72KC.js} +4 -4
- package/dist/{promotion-create-P2WR5RPH.js → promotion-create-D77SANLX.js} +17 -17
- package/dist/promotion-detail-MVFOMS4E.js +87 -0
- package/dist/promotion-list-IN4VWEQN.js +57 -0
- package/dist/{refund-reason-create-PTHFUT2D.js → refund-reason-create-BHI5XXZC.js} +7 -7
- package/dist/{refund-reason-edit-WEEQQGYO.js → refund-reason-edit-UWWYC4OB.js} +7 -7
- package/dist/refund-reason-list-DJZZC7KK.js +101 -0
- package/dist/{region-add-countries-GVOTB5YX.js → region-add-countries-YOGU74UR.js} +9 -9
- package/dist/{region-create-3BCYTIDB.js → region-create-UMJK3VGL.js} +14 -14
- package/dist/region-detail-OFZHX57G.js +73 -0
- package/dist/region-list-L4FKHVJJ.js +34 -0
- package/dist/{region-metadata-IYIHJCTK.js → region-metadata-JLHWQGTC.js} +11 -11
- package/dist/reservation-detail-LZYEM5NW.js +82 -0
- package/dist/reservation-list-OGPDB7WG.js +30 -0
- package/dist/{reservation-metadata-MMHE4TPO.js → reservation-metadata-WB42HSMD.js} +11 -11
- package/dist/{reset-password-WNANNJDX.js → reset-password-Q7Y4FWRE.js} +2 -2
- package/dist/return-reason-list-6ICMSVKF.js +80 -0
- package/dist/{sales-channel-add-products-GP7TMMKB.js → sales-channel-add-products-EOWFSO35.js} +14 -14
- package/dist/sales-channel-detail-RRJG7U7R.js +97 -0
- package/dist/sales-channel-list-LUZ4ZXCY.js +50 -0
- package/dist/{sales-channel-metadata-QF5KEN7C.js → sales-channel-metadata-5CLXRNQF.js} +12 -12
- package/dist/{seller-details-EUCYPH4Z.js → seller-details-KROISMQC.js} +48 -48
- package/dist/seller-list-664H4SI5.js +79 -0
- package/dist/{shipping-option-type-create-KBQMPNIW.js → shipping-option-type-create-42URKECR.js} +7 -7
- package/dist/shipping-option-type-detail-2RY3NHRO.js +81 -0
- package/dist/{shipping-option-type-edit-S3R6JBFV.js → shipping-option-type-edit-VLFV2AR4.js} +7 -7
- package/dist/shipping-option-type-list-IOSOE33S.js +59 -0
- package/dist/shipping-profile-detail-RIIAX7VE.js +56 -0
- package/dist/{shipping-profile-metadata-BJFUYS5L.js → shipping-profile-metadata-7WDHFEEH.js} +10 -10
- package/dist/shipping-profiles-list-AL4EJSJY.js +26 -0
- package/dist/{tax-region-create-KTFZNQCZ.js → tax-region-create-UOTLTCOP.js} +14 -14
- package/dist/tax-region-detail-CA2W5W6A.js +67 -0
- package/dist/{tax-region-edit-H2ORQVEW.js → tax-region-edit-7O2Z3EYC.js} +7 -7
- package/dist/tax-region-list-JTZ7KZCX.js +26 -0
- package/dist/{tax-region-metadata-2PYZ5ECB.js → tax-region-metadata-VQ57FSEM.js} +11 -11
- package/dist/tax-region-province-detail-ZHLX4FF4.js +98 -0
- package/dist/{tax-region-tax-override-create-IDGG732M.js → tax-region-tax-override-create-WIWUNXW6.js} +31 -31
- package/dist/{tax-region-tax-override-edit-NSBZBBZA.js → tax-region-tax-override-edit-SWROFQTP.js} +31 -31
- package/dist/user-detail-YNPBC5MN.js +54 -0
- package/dist/{user-invite-ATAF42EH.js → user-invite-OT73USBI.js} +10 -10
- package/dist/user-list-LNTZNT3D.js +27 -0
- package/dist/{user-metadata-QFVK2VJX.js → user-metadata-ZGTN4FRU.js} +11 -11
- package/package.json +1 -1
- package/dist/chunk-RW35OPIA.js +0 -45
- package/dist/collection-list-WUPG6AU2.js +0 -233
- package/dist/customer-list-DYQHKNJV.js +0 -153
- package/dist/order-list-ASHM44MM.js +0 -317
- package/dist/product-list-7WK2AWI2.js +0 -323
- package/dist/product-tag-detail-E7VYBISE.js +0 -288
- package/dist/seller-list-W76S2T27.js +0 -237
- package/dist/shipping-option-type-detail-CFGKF7NV.js +0 -173
- package/dist/tax-region-list-D7HWEZUR.js +0 -92
- package/dist/user-list-S6BMNMKL.js +0 -342
- package/dist/{api-key-management-sales-channels-RDE5YSYK.js → api-key-management-sales-channels-C7EWPHC2.js} +9 -9
- package/dist/{campaign-budget-edit-722ECPRI.js → campaign-budget-edit-AIXCDGG3.js} +3 -3
- package/dist/{category-create-VSH7BLNC.js → category-create-UWBJGIED.js} +7 -7
- package/dist/{category-edit-CCHWEQER.js → category-edit-ZDTTOXKZ.js} +3 -3
- package/dist/{chunk-JISYRXUS.js → chunk-B44E3LJT.js} +7 -7
- package/dist/{chunk-L22DLGNI.js → chunk-DEKJJ7NG.js} +3 -3
- package/dist/{chunk-2PZGY332.js → chunk-LQAAVRET.js} +3 -3
- package/dist/{chunk-GEVYE225.js → chunk-RA4UMZRP.js} +3 -3
- package/dist/{chunk-NIRWGTM3.js → chunk-RV6NZTNP.js} +3 -3
- package/dist/{chunk-SXC5ZMLI.js → chunk-TKEAOWBZ.js} +24 -24
- package/dist/{chunk-FLCYR7E5.js → chunk-ULJ3OMWU.js} +3 -3
- package/dist/{chunk-XDEVXAGC.js → chunk-VBBBIEVH.js} +3 -3
- package/dist/{chunk-FMOQNZFZ.js → chunk-YMKZS2HK.js} +12 -12
- package/dist/{customer-create-address-2LLOW6NZ.js → customer-create-address-GKWNPTZS.js} +1 -1
- package/dist/{customer-edit-F5UBFJIZ.js → customer-edit-WDRZ6YUO.js} +3 -3
- package/dist/{edit-reservation-SAKSTZTE.js → edit-reservation-7UOWKFMF.js} +3 -3
- package/dist/{invite-CSXH7VAO.js → invite-AXGDIENO.js} +1 -1
- package/dist/{location-create-HHOJPTDK.js → location-create-FQT3BJGV.js} +1 -1
- package/dist/{location-edit-2NAOR4DV.js → location-edit-RTPPP4KP.js} +1 -1
- package/dist/{location-sales-channels-BJUJNBQQ.js → location-sales-channels-3IGHCJEN.js} +9 -9
- package/dist/{location-service-zone-shipping-option-edit-SSMGORBF.js → location-service-zone-shipping-option-edit-E3GN4ZF5.js} +3 -3
- package/dist/{marketplace-edit-WPOSY2WN.js → marketplace-edit-GH2GQF3O.js} +3 -3
- package/dist/{order-allocate-items-DLVOSAC2.js → order-allocate-items-VEEANPH7.js} +3 -3
- package/dist/{price-list-edit-UU2XBKT3.js → price-list-edit-KK7SHR7O.js} +3 -3
- package/dist/{product-attributes-HNF4J53T.js → product-attributes-NG4OSBIV.js} +1 -1
- package/dist/{product-edit-6EL6US22.js → product-edit-LQJDUUVX.js} +4 -4
- package/dist/{product-organization-NWS3NMD6.js → product-organization-AFCELJ62.js} +1 -1
- package/dist/{product-prices-V63CFHI3.js → product-prices-WMRIC7WM.js} +7 -7
- package/dist/{product-sales-channels-WU3MSCV5.js → product-sales-channels-LSN5DVWZ.js} +5 -5
- package/dist/{product-variant-manage-inventory-items-C77QHYRT.js → product-variant-manage-inventory-items-CV2CC2PV.js} +3 -3
- package/dist/{profile-edit-3GIVUYUM.js → profile-edit-4HXBRWJ5.js} +6 -6
- package/dist/{promotion-edit-details-7Y2A5PPJ.js → promotion-edit-details-YKS24GBD.js} +6 -6
- package/dist/{region-edit-7XER3THY.js → region-edit-ODVSNJHM.js} +5 -5
- package/dist/{tax-region-province-create-7BMYABJ6.js → tax-region-province-create-RFYCUDER.js} +3 -3
|
@@ -1,27 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useProductTableColumns
|
|
3
3
|
} from "./chunk-3CKTAFTR.js";
|
|
4
|
-
import "./chunk-G5OVX555.js";
|
|
5
|
-
import "./chunk-FWPGOIFA.js";
|
|
6
|
-
import "./chunk-DB6ANJBO.js";
|
|
7
|
-
import "./chunk-FQERBIVS.js";
|
|
8
|
-
import "./chunk-PHOCVOZ5.js";
|
|
9
4
|
import {
|
|
10
5
|
_DataTable,
|
|
11
6
|
useDataTable
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-YBZWO4ZV.js";
|
|
14
|
-
import "./chunk-KAZ5BYTQ.js";
|
|
15
|
-
import "./chunk-3EF54XFY.js";
|
|
16
|
-
import "./chunk-WIYFXWRI.js";
|
|
17
|
-
import {
|
|
18
|
-
useProductTableFilters
|
|
19
|
-
} from "./chunk-FBUH5OLD.js";
|
|
20
|
-
import {
|
|
21
|
-
useProductTableQuery
|
|
22
|
-
} from "./chunk-VVWB3GIK.js";
|
|
23
|
-
import "./chunk-KBYZLKI4.js";
|
|
24
|
-
import "./chunk-YWWUOGJA.js";
|
|
7
|
+
} from "./chunk-ULJ3OMWU.js";
|
|
25
8
|
import {
|
|
26
9
|
SingleColumnPage
|
|
27
10
|
} from "./chunk-U2UCL2VG.js";
|
|
@@ -31,71 +14,23 @@ import {
|
|
|
31
14
|
import {
|
|
32
15
|
ActionMenu
|
|
33
16
|
} from "./chunk-BDGZ4EQO.js";
|
|
34
|
-
import "./chunk-LAVHRER2.js";
|
|
35
|
-
import "./chunk-Y7QKP6QU.js";
|
|
36
|
-
import "./chunk-THHRRYRS.js";
|
|
37
|
-
import "./chunk-UZWFZMOX.js";
|
|
38
|
-
import "./chunk-XQNVC4Q7.js";
|
|
39
|
-
import "./chunk-XM6GCWNF.js";
|
|
40
|
-
import "./chunk-ODBDAABQ.js";
|
|
41
|
-
import "./chunk-CDQJKJMX.js";
|
|
42
|
-
import "./chunk-JLATVDLM.js";
|
|
43
|
-
import "./chunk-GPRBBA7S.js";
|
|
44
|
-
import "./chunk-E7ZBQO6E.js";
|
|
45
|
-
import "./chunk-XGHM75N2.js";
|
|
46
|
-
import "./chunk-U2GCSKW3.js";
|
|
47
|
-
import "./chunk-RTAIDSDS.js";
|
|
48
|
-
import "./chunk-LW3UWYZU.js";
|
|
49
|
-
import "./chunk-A4X5VP3G.js";
|
|
50
|
-
import "./chunk-NNZP4PYP.js";
|
|
51
|
-
import "./chunk-GF4QHVX3.js";
|
|
52
|
-
import "./chunk-JOQ3RTF5.js";
|
|
53
|
-
import "./chunk-V534K7G4.js";
|
|
54
|
-
import "./chunk-A5XOYSDC.js";
|
|
55
17
|
import {
|
|
56
|
-
|
|
18
|
+
useProductTableFilters
|
|
19
|
+
} from "./chunk-FBUH5OLD.js";
|
|
20
|
+
import {
|
|
21
|
+
useProductTableQuery
|
|
22
|
+
} from "./chunk-VVWB3GIK.js";
|
|
23
|
+
import {
|
|
57
24
|
useCollection,
|
|
58
25
|
useDeleteCollection,
|
|
59
26
|
useUpdateCollectionProducts
|
|
60
27
|
} from "./chunk-TQI3DOQ5.js";
|
|
61
|
-
import "./chunk-5PB7KCTF.js";
|
|
62
|
-
import "./chunk-YOIARITB.js";
|
|
63
|
-
import "./chunk-W7G64ULL.js";
|
|
64
|
-
import "./chunk-6C7TCU42.js";
|
|
65
|
-
import "./chunk-4YF3GAKE.js";
|
|
66
|
-
import "./chunk-M3I52H3M.js";
|
|
67
|
-
import "./chunk-LORVU5II.js";
|
|
68
|
-
import "./chunk-36ORDF7W.js";
|
|
69
|
-
import "./chunk-QSM56ZOP.js";
|
|
70
|
-
import "./chunk-MIHEJ6Y6.js";
|
|
71
|
-
import "./chunk-3VZV6SJQ.js";
|
|
72
28
|
import {
|
|
73
29
|
useProducts
|
|
74
30
|
} from "./chunk-K357FGGP.js";
|
|
75
|
-
import {
|
|
76
|
-
queryClient
|
|
77
|
-
} from "./chunk-RHKRREUU.js";
|
|
78
|
-
import "./chunk-ZA2KFUFR.js";
|
|
79
|
-
import {
|
|
80
|
-
sdk
|
|
81
|
-
} from "./chunk-ZYNBKBY3.js";
|
|
82
|
-
import "./chunk-NBMM2TZK.js";
|
|
83
|
-
|
|
84
|
-
// src/pages/collections/collection-detail/breadcrumb.tsx
|
|
85
|
-
import { jsx } from "react/jsx-runtime";
|
|
86
|
-
var CollectionDetailBreadcrumb = (props) => {
|
|
87
|
-
const { id } = props.params || {};
|
|
88
|
-
const { collection } = useCollection(id, {
|
|
89
|
-
initialData: props.data,
|
|
90
|
-
enabled: Boolean(id)
|
|
91
|
-
});
|
|
92
|
-
if (!collection) {
|
|
93
|
-
return null;
|
|
94
|
-
}
|
|
95
|
-
return /* @__PURE__ */ jsx("span", { children: collection.title });
|
|
96
|
-
};
|
|
97
31
|
|
|
98
32
|
// src/pages/collections/collection-detail/collection-detail.tsx
|
|
33
|
+
import { Children } from "react";
|
|
99
34
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
100
35
|
|
|
101
36
|
// src/pages/collections/collection-detail/components/collection-general-section/collection-general-section.tsx
|
|
@@ -103,7 +38,7 @@ import { PencilSquare, Trash } from "@medusajs/icons";
|
|
|
103
38
|
import { Container, Heading, Text, usePrompt } from "@medusajs/ui";
|
|
104
39
|
import { useTranslation } from "react-i18next";
|
|
105
40
|
import { useNavigate } from "react-router-dom";
|
|
106
|
-
import { jsx
|
|
41
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
107
42
|
var CollectionGeneralSection = ({
|
|
108
43
|
collection
|
|
109
44
|
}) => {
|
|
@@ -127,15 +62,15 @@ var CollectionGeneralSection = ({
|
|
|
127
62
|
};
|
|
128
63
|
return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", children: [
|
|
129
64
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ jsx(Heading, { children: collection.title }),
|
|
66
|
+
/* @__PURE__ */ jsx(
|
|
132
67
|
ActionMenu,
|
|
133
68
|
{
|
|
134
69
|
groups: [
|
|
135
70
|
{
|
|
136
71
|
actions: [
|
|
137
72
|
{
|
|
138
|
-
icon: /* @__PURE__ */
|
|
73
|
+
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
139
74
|
label: t("actions.edit"),
|
|
140
75
|
to: `/collections/${collection.id}/edit`,
|
|
141
76
|
disabled: !collection.id
|
|
@@ -145,7 +80,7 @@ var CollectionGeneralSection = ({
|
|
|
145
80
|
{
|
|
146
81
|
actions: [
|
|
147
82
|
{
|
|
148
|
-
icon: /* @__PURE__ */
|
|
83
|
+
icon: /* @__PURE__ */ jsx(Trash, {}),
|
|
149
84
|
label: t("actions.delete"),
|
|
150
85
|
onClick: handleDelete,
|
|
151
86
|
disabled: !collection.id
|
|
@@ -157,7 +92,7 @@ var CollectionGeneralSection = ({
|
|
|
157
92
|
)
|
|
158
93
|
] }),
|
|
159
94
|
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
160
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.handle") }),
|
|
161
96
|
/* @__PURE__ */ jsxs(Text, { size: "small", children: [
|
|
162
97
|
"/",
|
|
163
98
|
collection.handle
|
|
@@ -173,7 +108,7 @@ import { keepPreviousData } from "@tanstack/react-query";
|
|
|
173
108
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
174
109
|
import { useMemo } from "react";
|
|
175
110
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
176
|
-
import { jsx as
|
|
111
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
177
112
|
var PAGE_SIZE = 10;
|
|
178
113
|
var CollectionProductSection = ({
|
|
179
114
|
collection
|
|
@@ -242,15 +177,15 @@ var CollectionProductSection = ({
|
|
|
242
177
|
}
|
|
243
178
|
return /* @__PURE__ */ jsxs2(Container2, { className: "divide-y p-0", children: [
|
|
244
179
|
/* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
245
|
-
/* @__PURE__ */
|
|
246
|
-
/* @__PURE__ */
|
|
180
|
+
/* @__PURE__ */ jsx2(Heading2, { level: "h2", children: t("products.domain") }),
|
|
181
|
+
/* @__PURE__ */ jsx2(
|
|
247
182
|
ActionMenu,
|
|
248
183
|
{
|
|
249
184
|
groups: [
|
|
250
185
|
{
|
|
251
186
|
actions: [
|
|
252
187
|
{
|
|
253
|
-
icon: /* @__PURE__ */
|
|
188
|
+
icon: /* @__PURE__ */ jsx2(Plus, {}),
|
|
254
189
|
label: t("actions.add"),
|
|
255
190
|
to: "products"
|
|
256
191
|
}
|
|
@@ -260,7 +195,7 @@ var CollectionProductSection = ({
|
|
|
260
195
|
}
|
|
261
196
|
)
|
|
262
197
|
] }),
|
|
263
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ jsx2(
|
|
264
199
|
_DataTable,
|
|
265
200
|
{
|
|
266
201
|
table,
|
|
@@ -329,14 +264,14 @@ var ProductActions = ({
|
|
|
329
264
|
}
|
|
330
265
|
);
|
|
331
266
|
};
|
|
332
|
-
return /* @__PURE__ */
|
|
267
|
+
return /* @__PURE__ */ jsx2(
|
|
333
268
|
ActionMenu,
|
|
334
269
|
{
|
|
335
270
|
groups: [
|
|
336
271
|
{
|
|
337
272
|
actions: [
|
|
338
273
|
{
|
|
339
|
-
icon: /* @__PURE__ */
|
|
274
|
+
icon: /* @__PURE__ */ jsx2(PencilSquare2, {}),
|
|
340
275
|
label: t("actions.edit"),
|
|
341
276
|
to: `/products/${product.id}/edit`
|
|
342
277
|
}
|
|
@@ -345,7 +280,7 @@ var ProductActions = ({
|
|
|
345
280
|
{
|
|
346
281
|
actions: [
|
|
347
282
|
{
|
|
348
|
-
icon: /* @__PURE__ */
|
|
283
|
+
icon: /* @__PURE__ */ jsx2(Trash2, {}),
|
|
349
284
|
label: t("actions.remove"),
|
|
350
285
|
onClick: handleRemove
|
|
351
286
|
}
|
|
@@ -363,7 +298,7 @@ var useColumns = () => {
|
|
|
363
298
|
columnHelper.display({
|
|
364
299
|
id: "select",
|
|
365
300
|
header: ({ table }) => {
|
|
366
|
-
return /* @__PURE__ */
|
|
301
|
+
return /* @__PURE__ */ jsx2(
|
|
367
302
|
Checkbox,
|
|
368
303
|
{
|
|
369
304
|
checked: table.getIsSomePageRowsSelected() ? "indeterminate" : table.getIsAllPageRowsSelected(),
|
|
@@ -372,7 +307,7 @@ var useColumns = () => {
|
|
|
372
307
|
);
|
|
373
308
|
},
|
|
374
309
|
cell: ({ row }) => {
|
|
375
|
-
return /* @__PURE__ */
|
|
310
|
+
return /* @__PURE__ */ jsx2(
|
|
376
311
|
Checkbox,
|
|
377
312
|
{
|
|
378
313
|
checked: row.getIsSelected(),
|
|
@@ -389,7 +324,7 @@ var useColumns = () => {
|
|
|
389
324
|
id: "actions",
|
|
390
325
|
cell: ({ row, table }) => {
|
|
391
326
|
const { collectionId } = table.options.meta;
|
|
392
|
-
return /* @__PURE__ */
|
|
327
|
+
return /* @__PURE__ */ jsx2(
|
|
393
328
|
ProductActions,
|
|
394
329
|
{
|
|
395
330
|
product: row.original,
|
|
@@ -404,45 +339,33 @@ var useColumns = () => {
|
|
|
404
339
|
};
|
|
405
340
|
|
|
406
341
|
// src/pages/collections/collection-detail/collection-detail.tsx
|
|
407
|
-
import { jsx as
|
|
408
|
-
var
|
|
342
|
+
import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
343
|
+
var Root = ({ children }) => {
|
|
409
344
|
const initialData = useLoaderData();
|
|
410
345
|
const { id } = useParams();
|
|
411
|
-
const { collection, isLoading, isError, error } = useCollection(
|
|
412
|
-
|
|
413
|
-
|
|
346
|
+
const { collection, isLoading, isError, error } = useCollection(
|
|
347
|
+
id,
|
|
348
|
+
{},
|
|
349
|
+
{
|
|
350
|
+
initialData
|
|
351
|
+
}
|
|
352
|
+
);
|
|
414
353
|
if (isLoading || !collection) {
|
|
415
|
-
return /* @__PURE__ */
|
|
354
|
+
return /* @__PURE__ */ jsx3(SingleColumnPageSkeleton, { sections: 2, showJSON: true, showMetadata: true });
|
|
416
355
|
}
|
|
417
356
|
if (isError) {
|
|
418
357
|
throw error;
|
|
419
358
|
}
|
|
420
|
-
return /* @__PURE__ */ jsxs3(
|
|
421
|
-
|
|
422
|
-
{
|
|
423
|
-
|
|
424
|
-
showMetadata: true,
|
|
425
|
-
data: collection,
|
|
426
|
-
children: [
|
|
427
|
-
/* @__PURE__ */ jsx4(CollectionGeneralSection, { collection }),
|
|
428
|
-
/* @__PURE__ */ jsx4(CollectionProductSection, { collection })
|
|
429
|
-
]
|
|
430
|
-
}
|
|
431
|
-
);
|
|
359
|
+
return /* @__PURE__ */ jsx3(Fragment, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(SingleColumnPage, { showJSON: true, showMetadata: true, data: collection, children: [
|
|
360
|
+
/* @__PURE__ */ jsx3(CollectionGeneralSection, { collection }),
|
|
361
|
+
/* @__PURE__ */ jsx3(CollectionProductSection, { collection })
|
|
362
|
+
] }) });
|
|
432
363
|
};
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
queryKey: collectionsQueryKeys.detail(id),
|
|
437
|
-
queryFn: async () => sdk.admin.collections.$id.query({ $id: id })
|
|
364
|
+
var CollectionDetail = Object.assign(Root, {
|
|
365
|
+
GeneralSection: CollectionGeneralSection,
|
|
366
|
+
ProductSection: CollectionProductSection
|
|
438
367
|
});
|
|
439
|
-
|
|
440
|
-
const id = params.id;
|
|
441
|
-
const query = collectionDetailQuery(id);
|
|
442
|
-
return queryClient.ensureQueryData(query);
|
|
443
|
-
};
|
|
368
|
+
|
|
444
369
|
export {
|
|
445
|
-
|
|
446
|
-
CollectionDetail as Component,
|
|
447
|
-
collectionLoader as loader
|
|
370
|
+
CollectionDetail
|
|
448
371
|
};
|
|
@@ -1,72 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ListSummary
|
|
3
3
|
} from "./chunk-4F5GP7J7.js";
|
|
4
|
-
import "./chunk-LXSBG6LK.js";
|
|
5
|
-
import {
|
|
6
|
-
PlaceholderCell
|
|
7
|
-
} from "./chunk-PHOCVOZ5.js";
|
|
8
4
|
import {
|
|
9
5
|
SidebarLink
|
|
10
6
|
} from "./chunk-4GPAS5GW.js";
|
|
11
|
-
import "./chunk-U2EI2ZLM.js";
|
|
12
7
|
import {
|
|
13
8
|
getFormattedAddress
|
|
14
9
|
} from "./chunk-W6Y3PPU5.js";
|
|
15
|
-
import
|
|
10
|
+
import {
|
|
11
|
+
PlaceholderCell
|
|
12
|
+
} from "./chunk-PHOCVOZ5.js";
|
|
16
13
|
import {
|
|
17
14
|
TwoColumnPage
|
|
18
15
|
} from "./chunk-U2UCL2VG.js";
|
|
19
16
|
import {
|
|
20
17
|
DataTable
|
|
21
18
|
} from "./chunk-UQITHKTH.js";
|
|
22
|
-
import "./chunk-BDGZ4EQO.js";
|
|
23
|
-
import "./chunk-LAVHRER2.js";
|
|
24
|
-
import "./chunk-Y7QKP6QU.js";
|
|
25
19
|
import {
|
|
26
20
|
useQueryParams
|
|
27
21
|
} from "./chunk-THHRRYRS.js";
|
|
28
|
-
import "./chunk-XM6GCWNF.js";
|
|
29
|
-
import "./chunk-ODBDAABQ.js";
|
|
30
|
-
import "./chunk-CDQJKJMX.js";
|
|
31
|
-
import "./chunk-JLATVDLM.js";
|
|
32
|
-
import "./chunk-GPRBBA7S.js";
|
|
33
|
-
import "./chunk-E7ZBQO6E.js";
|
|
34
|
-
import "./chunk-XGHM75N2.js";
|
|
35
|
-
import "./chunk-U2GCSKW3.js";
|
|
36
|
-
import "./chunk-RTAIDSDS.js";
|
|
37
|
-
import "./chunk-LW3UWYZU.js";
|
|
38
|
-
import "./chunk-A4X5VP3G.js";
|
|
39
|
-
import "./chunk-NNZP4PYP.js";
|
|
40
|
-
import "./chunk-GF4QHVX3.js";
|
|
41
|
-
import "./chunk-JOQ3RTF5.js";
|
|
42
|
-
import "./chunk-V534K7G4.js";
|
|
43
|
-
import "./chunk-A5XOYSDC.js";
|
|
44
|
-
import "./chunk-TQI3DOQ5.js";
|
|
45
|
-
import "./chunk-5PB7KCTF.js";
|
|
46
|
-
import "./chunk-YOIARITB.js";
|
|
47
|
-
import "./chunk-W7G64ULL.js";
|
|
48
|
-
import "./chunk-6C7TCU42.js";
|
|
49
22
|
import {
|
|
50
23
|
stockLocationsQueryKeys,
|
|
51
24
|
useStockLocations
|
|
52
25
|
} from "./chunk-4YF3GAKE.js";
|
|
53
|
-
import "./chunk-M3I52H3M.js";
|
|
54
|
-
import "./chunk-LORVU5II.js";
|
|
55
|
-
import "./chunk-36ORDF7W.js";
|
|
56
|
-
import "./chunk-QSM56ZOP.js";
|
|
57
|
-
import "./chunk-MIHEJ6Y6.js";
|
|
58
|
-
import "./chunk-3VZV6SJQ.js";
|
|
59
|
-
import "./chunk-K357FGGP.js";
|
|
60
26
|
import {
|
|
61
27
|
queryClient
|
|
62
28
|
} from "./chunk-RHKRREUU.js";
|
|
63
|
-
import "./chunk-ZA2KFUFR.js";
|
|
64
29
|
import {
|
|
65
30
|
sdk
|
|
66
31
|
} from "./chunk-ZYNBKBY3.js";
|
|
67
|
-
import "./chunk-NBMM2TZK.js";
|
|
68
32
|
|
|
69
33
|
// src/pages/locations/location-list/location-list.tsx
|
|
34
|
+
import { Children } from "react";
|
|
70
35
|
import { ShoppingBag, TruckFast } from "@medusajs/icons";
|
|
71
36
|
import { Container, Heading } from "@medusajs/ui";
|
|
72
37
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
@@ -235,10 +200,10 @@ var useLocationListTableQuery = ({
|
|
|
235
200
|
|
|
236
201
|
// src/pages/locations/location-list/location-list.tsx
|
|
237
202
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
238
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
203
|
+
import { Fragment, jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
239
204
|
var PAGE_SIZE = 20;
|
|
240
205
|
var PREFIX = "loc";
|
|
241
|
-
|
|
206
|
+
var LocationListMain = () => {
|
|
242
207
|
const { t } = useTranslation2();
|
|
243
208
|
const searchParams = useLocationListTableQuery({
|
|
244
209
|
pageSize: PAGE_SIZE,
|
|
@@ -263,51 +228,48 @@ function LocationList() {
|
|
|
263
228
|
if (isError) {
|
|
264
229
|
throw error;
|
|
265
230
|
}
|
|
266
|
-
return /* @__PURE__ */
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
description: t("stockLocations.list.noRecordsMessageEmpty")
|
|
286
|
-
},
|
|
287
|
-
filtered: {
|
|
288
|
-
heading: t("stockLocations.list.noRecordsMessage"),
|
|
289
|
-
description: t("stockLocations.list.noRecordsMessageFiltered")
|
|
290
|
-
}
|
|
231
|
+
return /* @__PURE__ */ jsx2(
|
|
232
|
+
Container,
|
|
233
|
+
{
|
|
234
|
+
className: "flex flex-col divide-y p-0",
|
|
235
|
+
"data-testid": "location-list-container",
|
|
236
|
+
children: /* @__PURE__ */ jsx2(
|
|
237
|
+
DataTable,
|
|
238
|
+
{
|
|
239
|
+
data: stockLocations,
|
|
240
|
+
columns,
|
|
241
|
+
rowCount: count,
|
|
242
|
+
pageSize: PAGE_SIZE,
|
|
243
|
+
getRowId: (row) => row.id,
|
|
244
|
+
heading: t("stockLocations.domain"),
|
|
245
|
+
subHeading: t("stockLocations.list.description"),
|
|
246
|
+
emptyState: {
|
|
247
|
+
empty: {
|
|
248
|
+
heading: t("stockLocations.list.noRecordsMessage"),
|
|
249
|
+
description: t("stockLocations.list.noRecordsMessageEmpty")
|
|
291
250
|
},
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
251
|
+
filtered: {
|
|
252
|
+
heading: t("stockLocations.list.noRecordsMessage"),
|
|
253
|
+
description: t("stockLocations.list.noRecordsMessageFiltered")
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
actions: [
|
|
257
|
+
{
|
|
258
|
+
label: t("actions.create"),
|
|
259
|
+
to: "create"
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
isLoading,
|
|
263
|
+
rowHref: (row) => `/settings/locations/${row.id}`,
|
|
264
|
+
enableSearch: true,
|
|
265
|
+
prefix: PREFIX,
|
|
266
|
+
layout: "fill",
|
|
267
|
+
"data-testid": "location-list-table"
|
|
268
|
+
}
|
|
269
|
+
)
|
|
270
|
+
}
|
|
271
|
+
);
|
|
272
|
+
};
|
|
311
273
|
var LinksSection = () => {
|
|
312
274
|
const { t } = useTranslation2();
|
|
313
275
|
return /* @__PURE__ */ jsxs(Container, { className: "p-0", "data-testid": "location-list-sidebar", children: [
|
|
@@ -345,6 +307,19 @@ var LinksSection = () => {
|
|
|
345
307
|
)
|
|
346
308
|
] });
|
|
347
309
|
};
|
|
310
|
+
var Root = ({ children }) => {
|
|
311
|
+
return /* @__PURE__ */ jsx2(TwoColumnPage, { showJSON: true, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
312
|
+
/* @__PURE__ */ jsx2(TwoColumnPage.Main, { children: /* @__PURE__ */ jsx2(LocationListMain, {}) }),
|
|
313
|
+
/* @__PURE__ */ jsx2(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx2(LinksSection, {}) })
|
|
314
|
+
] }) });
|
|
315
|
+
};
|
|
316
|
+
var LocationList = Object.assign(Root, {
|
|
317
|
+
Main: TwoColumnPage.Main,
|
|
318
|
+
Sidebar: TwoColumnPage.Sidebar,
|
|
319
|
+
MainContent: LocationListMain,
|
|
320
|
+
SidebarLinks: LinksSection
|
|
321
|
+
});
|
|
322
|
+
|
|
348
323
|
export {
|
|
349
|
-
LocationList
|
|
324
|
+
LocationList
|
|
350
325
|
};
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
import { useQuery } from "@tanstack/react-query";
|
|
10
10
|
var ORDER_GROUPS_QUERY_KEY = "order_groups";
|
|
11
11
|
var orderGroupsQueryKeys = queryKeysFactory(ORDER_GROUPS_QUERY_KEY);
|
|
12
|
-
var
|
|
12
|
+
var useOrderGroupByOrderId = (orderId, query, options) => {
|
|
13
13
|
const { data, ...rest } = useQuery({
|
|
14
|
-
queryFn: () => sdk.admin.
|
|
15
|
-
queryKey: orderGroupsQueryKeys.detail(
|
|
14
|
+
queryFn: () => sdk.admin.orders.$id.orderGroup.query({ $id: orderId, ...query }),
|
|
15
|
+
queryKey: orderGroupsQueryKeys.detail(`order-${orderId}`),
|
|
16
16
|
...options
|
|
17
17
|
});
|
|
18
18
|
return { ...data, ...rest };
|
|
@@ -27,6 +27,6 @@ var useOrderGroups = (query, options) => {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
useOrderGroupByOrderId,
|
|
31
31
|
useOrderGroups
|
|
32
32
|
};
|