@mercurjs/admin 2.2.0-canary.37 → 2.2.0-canary.39
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-26SSHLLG.js → add-campaign-promotions-NT4LQZQJ.js} +4 -4
- package/dist/{adjust-inventory-TECW4NNX.js → adjust-inventory-X45NEQFK.js} +1 -1
- package/dist/{api-key-management-detail-2LYSINFY.js → api-key-management-detail-HKNZPPR2.js} +3 -4
- package/dist/{api-key-management-list-RLATJRDL.js → api-key-management-list-SXHZJUJB.js} +2 -2
- package/dist/{api-key-management-sales-channels-EEM7UDTZ.js → api-key-management-sales-channels-4GLVMHU6.js} +1 -2
- package/dist/{attribute-create-HSR7XVKG.js → attribute-create-D4RUU5OT.js} +1 -1
- package/dist/{attribute-detail-G6APXXFT.js → attribute-detail-OU6557XI.js} +11 -2
- package/dist/{attribute-list-42GDF2PV.js → attribute-list-5LGYNGO7.js} +3 -3
- package/dist/{breadcrumb-DZTALOFP.js → breadcrumb-GHBR74WM.js} +2 -2
- package/dist/{breadcrumb-EPNBJF4V.js → breadcrumb-IEEJTH47.js} +1 -1
- package/dist/{campaign-detail-VMJQISAE.js → campaign-detail-EHNTH6A7.js} +6 -6
- package/dist/{campaign-list-W2YZAPUI.js → campaign-list-FFGRXEVJ.js} +2 -2
- package/dist/{categories-metadata-SWFS4FL4.js → categories-metadata-EKY6TSUK.js} +1 -1
- package/dist/{category-detail-I3EEPAQR.js → category-detail-HCRJDDA2.js} +3 -3
- package/dist/{category-list-QLHQST3D.js → category-list-7ILXI55P.js} +2 -2
- package/dist/{category-products-XGLUDL73.js → category-products-LZQATT5Z.js} +2 -2
- package/dist/{chunk-QM343PBJ.js → chunk-23OLYWMR.js} +1 -1
- package/dist/{chunk-E6VCLJNF.js → chunk-2DSCC2VR.js} +1 -1
- package/dist/{chunk-CMZ4KATG.js → chunk-2S2SBRZP.js} +3 -3
- package/dist/{chunk-L4KT5CLI.js → chunk-2YAVXVET.js} +1 -1
- package/dist/{chunk-SWQC5UPD.js → chunk-325DZAT2.js} +4 -4
- package/dist/{chunk-HMKXCYCJ.js → chunk-3SHHDCA6.js} +8 -3
- package/dist/{chunk-C4N5EJAD.js → chunk-4BCUGMOR.js} +0 -13
- package/dist/{chunk-FU3QYH6H.js → chunk-4C7L7TJT.js} +2 -26
- package/dist/{chunk-3UJQT6UR.js → chunk-4NAIC6RG.js} +5 -6
- package/dist/{chunk-BWRQJXHB.js → chunk-5DQED4UT.js} +1 -1
- package/dist/{chunk-U725ING6.js → chunk-5NC6SI6J.js} +1 -1
- package/dist/{chunk-4JUT54KO.js → chunk-73Y6HKIG.js} +1 -1
- package/dist/{chunk-57MFJ2HE.js → chunk-74WEDBZ7.js} +1 -1
- package/dist/{chunk-RWAEZQCV.js → chunk-7OKYEA6I.js} +96 -6
- package/dist/{chunk-57GNGL6K.js → chunk-7RWFRMQG.js} +1 -1
- package/dist/{chunk-MKNQ6BT6.js → chunk-7TWARCNU.js} +1 -1
- package/dist/{chunk-6YEVK7JJ.js → chunk-AVATBB62.js} +11 -17
- package/dist/{chunk-NS3GQ2J6.js → chunk-BILFRATX.js} +0 -9
- package/dist/{chunk-MIKJRLQI.js → chunk-BO4V6CQN.js} +2 -3
- package/dist/{chunk-6YEU2ZAD.js → chunk-CE2WRTS7.js} +1 -1
- package/dist/{chunk-N5H2J6HE.js → chunk-CN4FCZPK.js} +2 -2
- package/dist/{chunk-RLGMY7JJ.js → chunk-CY263OE4.js} +1 -1
- package/dist/{chunk-KUKBV4XN.js → chunk-CYACZXMQ.js} +1 -1
- package/dist/{chunk-YAJDG3W7.js → chunk-DI2KBXVH.js} +1 -1
- package/dist/{chunk-YLQCULOV.js → chunk-DISTPZNS.js} +1 -1
- package/dist/{chunk-NXMD36QG.js → chunk-EUXCKJPT.js} +1 -1
- package/dist/{chunk-2MRYNLVT.js → chunk-F6NPDZHW.js} +1 -1
- package/dist/{chunk-AIEPAHO5.js → chunk-FLPKTLXN.js} +2 -2
- package/dist/{chunk-OI4DJXUL.js → chunk-FMJBQE56.js} +1 -1
- package/dist/{chunk-PAUULPNC.js → chunk-FNJEXQ2Z.js} +2 -2
- package/dist/{chunk-V7YJ53P5.js → chunk-FZPSX44L.js} +2 -2
- package/dist/{chunk-POMQZ6PN.js → chunk-GUDWUAMT.js} +1 -1
- package/dist/{chunk-TG5BBZ3B.js → chunk-HI7NZVSJ.js} +1 -1
- package/dist/{chunk-SJHBNENS.js → chunk-HSL5IICN.js} +15 -6
- package/dist/{chunk-MHCIHDGF.js → chunk-HWWET5ZP.js} +1 -1
- package/dist/{chunk-5YWQDIVG.js → chunk-I3ARNGRC.js} +1 -1
- package/dist/{chunk-EMW5WXXR.js → chunk-IQDZZ5EQ.js} +1 -1
- package/dist/{chunk-S6A4FVM2.js → chunk-IWBQZK6E.js} +0 -4
- package/dist/{chunk-LBLWPBST.js → chunk-IZDTQFCP.js} +3 -1
- package/dist/{chunk-YRGPQ2C4.js → chunk-JUMT5GX7.js} +1 -1
- package/dist/{chunk-4OCWOY2F.js → chunk-JXSXBSV6.js} +8 -8
- package/dist/{chunk-AQIW7R4Y.js → chunk-KC4J2WOM.js} +1 -1
- package/dist/{chunk-GX7YQ6GM.js → chunk-LRJNSCMR.js} +1 -1
- package/dist/{chunk-RZ43M34Q.js → chunk-LZEEPVQY.js} +61 -57
- package/dist/{chunk-U5MDOZS7.js → chunk-MANRAV52.js} +1 -1
- package/dist/{chunk-4NE4EIHO.js → chunk-MYJJMHR5.js} +1 -1
- package/dist/{chunk-OTXOV6YU.js → chunk-NEGOGYEO.js} +1 -1
- package/dist/{chunk-ENSI7NL7.js → chunk-O5MW4WPZ.js} +1 -1
- package/dist/{chunk-7DHSWPU2.js → chunk-PRSTCHB5.js} +1 -1
- package/dist/{chunk-XQCG2ORD.js → chunk-PSGHE5YJ.js} +2 -2
- package/dist/{chunk-4X4MNAXL.js → chunk-PWLDTJJX.js} +1 -1
- package/dist/{chunk-XEB5I2KE.js → chunk-Q4R2O7XF.js} +2 -2
- package/dist/{chunk-AHUVAYZD.js → chunk-QH34LF36.js} +1 -1
- package/dist/{chunk-GML7DINQ.js → chunk-RDUSAVT3.js} +1 -1
- package/dist/{chunk-PPMWEQP3.js → chunk-RIURQMDE.js} +71 -34
- package/dist/{chunk-LRKN7IQH.js → chunk-RNDDYLHV.js} +1 -1
- package/dist/{chunk-EA3XMVOS.js → chunk-S22SK4KO.js} +1 -1
- package/dist/{chunk-QEXIOKNZ.js → chunk-SLKOHWKT.js} +1 -1
- package/dist/{chunk-THNFAN23.js → chunk-VGXJXU7X.js} +1 -1
- package/dist/{chunk-GCYUOP4W.js → chunk-VSKHV5QF.js} +1 -1
- package/dist/{offers-T4ARWA47.js → chunk-VSLKILOI.js} +124 -253
- package/dist/{chunk-E32O3DUM.js → chunk-WKR3Y2KD.js} +2 -2
- package/dist/{chunk-ZDEIYWCK.js → chunk-WNTHKSLS.js} +1 -1
- package/dist/{chunk-DUVTXDNA.js → chunk-XFKDDRB6.js} +1 -1
- package/dist/{chunk-X3TWPSUM.js → chunk-Y62TJJ3P.js} +1 -1
- package/dist/{chunk-CDVQK7JZ.js → chunk-YNK25LVO.js} +1 -1
- package/dist/{chunk-HBT7GVJD.js → chunk-YUUDST4E.js} +57 -49
- package/dist/{chunk-C6AU3U22.js → chunk-ZO3OJ2UQ.js} +1 -1
- package/dist/{collection-add-products-2G37ZL2J.js → collection-add-products-QIEQCILA.js} +2 -2
- package/dist/{collection-detail-AB6HGJDM.js → collection-detail-PTVRSXT3.js} +3 -3
- package/dist/{collection-list-UHFUKA5U.js → collection-list-O5XBGFTN.js} +5 -5
- package/dist/{collection-metadata-UEYHULPR.js → collection-metadata-TOHJL5WW.js} +1 -1
- package/dist/{commission-rule-detail-RO5KXLGT.js → commission-rule-detail-VTP2JKEG.js} +3 -3
- package/dist/{commissions-list-KQ2TUJAW.js → commissions-list-T7735Y35.js} +4 -4
- package/dist/{customer-detail-ZYJDB47Y.js → customer-detail-IPM3SBHE.js} +5 -5
- package/dist/{customer-group-add-customers-GSEUGBTJ.js → customer-group-add-customers-QBRVKXGO.js} +1 -1
- package/dist/{customer-group-detail-5VSUJTR3.js → customer-group-detail-3HV3BJOU.js} +3 -3
- package/dist/{customer-group-list-BRQRKORR.js → customer-group-list-IR6CW36P.js} +4 -4
- package/dist/{customer-group-metadata-S6NJRGYO.js → customer-group-metadata-4W32YXXP.js} +1 -1
- package/dist/{customer-list-6PRFTWMO.js → customer-list-276YPXTE.js} +2 -2
- package/dist/{customer-metadata-C66G3AS7.js → customer-metadata-L622ZJ43.js} +1 -1
- package/dist/{customers-add-customer-group-56GS7TR7.js → customers-add-customer-group-PWKJZJBP.js} +3 -3
- package/dist/{edit-inventory-item-IIJH26PK.js → edit-inventory-item-73BY4I5T.js} +1 -1
- package/dist/{edit-inventory-item-attributes-KTMOGG4V.js → edit-inventory-item-attributes-ZMB343AB.js} +1 -1
- package/dist/{edit-rules-WOQNXKZZ.js → edit-rules-OK44K33O.js} +1 -1
- package/dist/index.css +5187 -3
- package/dist/index.d.ts +7 -1
- package/dist/index.js +173 -173
- package/dist/{inventory-create-WJ3CCFTD.js → inventory-create-66YM6FST.js} +3 -3
- package/dist/{inventory-detail-QY56I2KX.js → inventory-detail-RYFIUKTJ.js} +3 -3
- package/dist/{inventory-list-AB4OHYMU.js → inventory-list-U4W4AP4E.js} +2 -2
- package/dist/{inventory-metadata-OS6KHY52.js → inventory-metadata-W6Z6J2Z2.js} +1 -1
- package/dist/{inventory-stock-F2BKMXY3.js → inventory-stock-A3TSIGMD.js} +2 -2
- package/dist/loader-HRFMJ5TM.js +36 -0
- package/dist/{loader-P2HT7LSL.js → loader-TIPLOZF7.js} +2 -2
- package/dist/{location-detail-LK736WHY.js → location-detail-CNETNX3M.js} +1 -1
- package/dist/{location-fulfillment-providers-VVJGPYJI.js → location-fulfillment-providers-TMPZH2KQ.js} +4 -4
- package/dist/{location-list-HFVPD3JF.js → location-list-RHUT7IRA.js} +1 -1
- package/dist/{location-sales-channels-WZJ3JWQF.js → location-sales-channels-ZQBQ3VDH.js} +1 -2
- package/dist/{location-service-zone-create-WPSYG3NX.js → location-service-zone-create-U77V3ROT.js} +2 -2
- package/dist/{location-service-zone-manage-areas-ZH2ICSC7.js → location-service-zone-manage-areas-FUUAAIDJ.js} +2 -2
- package/dist/{location-service-zone-shipping-option-create-OLABLTSL.js → location-service-zone-shipping-option-create-3PQ2EYD7.js} +4 -4
- package/dist/{location-service-zone-shipping-option-pricing-TARZ34TW.js → location-service-zone-shipping-option-pricing-UZ577SNK.js} +2 -2
- package/dist/{login-IOW5R2ZZ.js → login-OKBXMSKY.js} +1 -1
- package/dist/{marketplace-add-currencies-FPDYEYCL.js → marketplace-add-currencies-KDNMN57C.js} +1 -1
- package/dist/{marketplace-detail-7WGPHRQM.js → marketplace-detail-KBJSCI2N.js} +3 -3
- package/dist/{marketplace-metadata-RNNA4S3F.js → marketplace-metadata-VXFQ3JZW.js} +1 -1
- package/dist/{offer-detail-page-3RAFKFK4.js → offer-detail-page-D3J547CC.js} +134 -121
- package/dist/{offer-variant-detail-page-5FS6D46I.js → offer-variant-detail-page-P4CKF442.js} +5 -5
- package/dist/offers-7JTHN6FI.js +183 -0
- package/dist/{order-create-claim-GOP565XH.js → order-create-claim-CHXOZH2C.js} +4 -4
- package/dist/{order-create-edit-DK4QG2CR.js → order-create-edit-O4AOAOF7.js} +4 -4
- package/dist/{order-create-exchange-ZHJ3T5QJ.js → order-create-exchange-CG3ODKTK.js} +5 -5
- package/dist/{order-create-refund-DWIGXSYJ.js → order-create-refund-4ZO73NWS.js} +1 -1
- package/dist/{order-create-return-63X5PUTT.js → order-create-return-DDOYLDT7.js} +1 -1
- package/dist/{order-detail-6UAWPZI2.js → order-detail-V6AL4RWB.js} +3 -3
- package/dist/{order-edit-billing-address-IU6W76P3.js → order-edit-billing-address-KVX4EPM7.js} +2 -2
- package/dist/{order-edit-email-OAU3YX45.js → order-edit-email-GLAQZCIT.js} +1 -1
- package/dist/{order-edit-shipping-address-RAO5IKGM.js → order-edit-shipping-address-PF54SFAG.js} +1 -1
- package/dist/{order-list-FFPY5OGR.js → order-list-WHZJ6B4G.js} +4 -4
- package/dist/{order-metadata-IUBTCJQW.js → order-metadata-L6SCT4MO.js} +1 -1
- package/dist/{order-request-transfer-2J4CN5JP.js → order-request-transfer-BLQQ66IF.js} +1 -1
- package/dist/pages/index.d.ts +9 -9
- package/dist/pages/index.js +64 -63
- package/dist/{payout-list-A2KQTZMZ.js → payout-list-SOWVPSFQ.js} +2 -2
- package/dist/{price-list-configuration-2NFE4MNW.js → price-list-configuration-OTSYJ3AQ.js} +4 -4
- package/dist/{price-list-create-UMA2NB3L.js → price-list-create-2422HUBU.js} +7 -7
- package/dist/{price-list-detail-7ANY3XOC.js → price-list-detail-CL3FMPVN.js} +3 -3
- package/dist/{price-list-list-6II3XYUA.js → price-list-list-A42VGE3L.js} +2 -2
- package/dist/{price-list-prices-add-XLFLGFVG.js → price-list-prices-add-OOG6526Y.js} +5 -5
- package/dist/{price-list-prices-edit-MT6BFF3M.js → price-list-prices-edit-ZQE3Z3NK.js} +3 -3
- package/dist/{product-add-existing-attributes-3BJ5KV2V.js → product-add-existing-attributes-DKKPTZMB.js} +1 -1
- package/dist/{product-bulk-edit-3AJGOE6E.js → product-bulk-edit-TRI2KKHW.js} +1 -1
- package/dist/{product-create-2SELD5CI.js → product-create-IX4TOFNU.js} +5 -5
- package/dist/{product-detail-O7MVTHSN.js → product-detail-BLZYOXLS.js} +3 -3
- package/dist/{product-list-SIQDX4AT.js → product-list-PLXUL3YW.js} +3 -3
- package/dist/{product-media-S6L3IHUO.js → product-media-TDEPDO3W.js} +2 -2
- package/dist/{product-metadata-4O5YDITE.js → product-metadata-KBT4QGRF.js} +1 -1
- package/dist/{product-organization-BYPV5QSZ.js → product-organization-HFC44AOV.js} +1 -1
- package/dist/{product-sales-channels-73JEGJIY.js → product-sales-channels-C6UUHWGB.js} +1 -2
- package/dist/{product-tag-create-PSLHVOED.js → product-tag-create-AHG3Y4GE.js} +1 -1
- package/dist/{product-tag-detail-SVDEVPMA.js → product-tag-detail-222RARIO.js} +5 -5
- package/dist/{product-tag-edit-7RYZN7ZP.js → product-tag-edit-ACHNVZZP.js} +1 -1
- package/dist/{product-tag-list-4ECQFBOA.js → product-tag-list-EZ4JUW4U.js} +5 -5
- package/dist/{product-tag-metadata-Z26DWSRN.js → product-tag-metadata-4EUBENJ6.js} +1 -1
- package/dist/{product-type-detail-WSHUE56F.js → product-type-detail-SSMTOG47.js} +3 -3
- package/dist/{product-type-list-EP2YCYLK.js → product-type-list-XTVTT7ZA.js} +2 -2
- package/dist/{product-type-metadata-2YKEGWRE.js → product-type-metadata-RAVB4BK2.js} +1 -1
- package/dist/{product-variant-detail-OZYQPDVX.js → product-variant-detail-7CFNAI3A.js} +1 -1
- package/dist/{product-variant-edit-M74OAUM5.js → product-variant-edit-QJK2CLID.js} +1 -1
- package/dist/{product-variant-metadata-VA4NDA53.js → product-variant-metadata-7VHJ4U6L.js} +1 -1
- package/dist/{promotion-create-TOOHWR6S.js → promotion-create-AWZ7YA5T.js} +1 -1
- package/dist/{promotion-detail-25JCCLU2.js → promotion-detail-EEDQ3GQD.js} +4 -4
- package/dist/{promotion-list-RXLVU4G2.js → promotion-list-SXUXYV6R.js} +5 -5
- package/dist/{refund-reason-create-NA42SWWI.js → refund-reason-create-UA3XS6DP.js} +1 -1
- package/dist/{refund-reason-edit-WMKHZ6SN.js → refund-reason-edit-3TAGKV3U.js} +1 -1
- package/dist/{refund-reason-list-XMDZO34F.js → refund-reason-list-OVTNXVLP.js} +1 -1
- package/dist/{region-add-countries-NFJYG4JA.js → region-add-countries-IIHNNE76.js} +1 -1
- package/dist/{region-create-RW42MXKY.js → region-create-PHZNUCJR.js} +1 -1
- package/dist/{region-detail-S7GNXX5B.js → region-detail-AECQQ62I.js} +2 -2
- package/dist/{region-list-ZP7QIWQ3.js → region-list-IBQW5J3R.js} +2 -2
- package/dist/{region-metadata-GWN4DS4V.js → region-metadata-3KASKFZ3.js} +1 -1
- package/dist/{reservation-detail-JSLACR7K.js → reservation-detail-MAWHNY2H.js} +1 -1
- package/dist/{reservation-list-UGXB2P7K.js → reservation-list-IUYMT4U6.js} +2 -2
- package/dist/{reservation-metadata-YNCMFQIX.js → reservation-metadata-ENY4V2ED.js} +1 -1
- package/dist/{reset-password-GBVMOKXP.js → reset-password-UIDUOHVW.js} +1 -1
- package/dist/{return-reason-list-AW6MMUKD.js → return-reason-list-FRHFRNKK.js} +2 -2
- package/dist/{sales-channel-add-products-LRANEISZ.js → sales-channel-add-products-ZCUVTJQN.js} +2 -2
- package/dist/{sales-channel-detail-5XXO3BXP.js → sales-channel-detail-EZVCWMMS.js} +3 -3
- package/dist/{sales-channel-list-PPESHWHA.js → sales-channel-list-LVW7XE7K.js} +3 -4
- package/dist/{sales-channel-metadata-7HVLURGB.js → sales-channel-metadata-RXC4IDD3.js} +1 -1
- package/dist/{shipping-option-type-create-UFXLX52L.js → shipping-option-type-create-GHOCZT64.js} +1 -1
- package/dist/{shipping-option-type-detail-OCOL5H4I.js → shipping-option-type-detail-W32EHTBS.js} +1 -1
- package/dist/{shipping-option-type-edit-2WVBG2XS.js → shipping-option-type-edit-KRIP6HTC.js} +1 -1
- package/dist/{shipping-option-type-list-UCTCZPAM.js → shipping-option-type-list-Y43XD2XM.js} +3 -3
- package/dist/{shipping-profile-metadata-N2AXNBZT.js → shipping-profile-metadata-HMQZ6LGB.js} +1 -1
- package/dist/{shipping-profiles-list-CBTZYI33.js → shipping-profiles-list-4VHKTKIL.js} +2 -2
- package/dist/{store-address-edit-KITVKFMG.js → store-address-edit-B4LWVP73.js} +1 -1
- package/dist/{store-bulk-edit-I6QHGMEC.js → store-bulk-edit-IXWGUFY2.js} +2 -2
- package/dist/{store-closure-edit-MMGDJGV3.js → store-closure-edit-H3EKROXP.js} +1 -1
- package/dist/{store-create-QUGCV5IG.js → store-create-PL2XGIR5.js} +1 -1
- package/dist/{store-details-XNBFIWDL.js → store-details-4DAUF3CD.js} +6 -6
- package/dist/{store-edit-BBOEDZNV.js → store-edit-ESFC2UXE.js} +3 -3
- package/dist/{store-list-RVZG3UD3.js → store-list-KANREHW5.js} +5 -5
- package/dist/{store-member-invite-3G4PCBJ2.js → store-member-invite-U4UQS5VC.js} +1 -1
- package/dist/{store-payment-details-edit-5LT4OIMA.js → store-payment-details-edit-ERRJDLBO.js} +1 -1
- package/dist/{store-professional-details-edit-ARR5WRGC.js → store-professional-details-edit-VD2J4VYV.js} +1 -1
- package/dist/{tax-region-create-7432IFN5.js → tax-region-create-4YEJ3HFY.js} +2 -2
- package/dist/{tax-region-detail-Q3NZI26Z.js → tax-region-detail-L7STT6C7.js} +1 -1
- package/dist/{tax-region-edit-UMPFELDL.js → tax-region-edit-6JOV3POI.js} +1 -1
- package/dist/{tax-region-metadata-UAGL3HYV.js → tax-region-metadata-N3QNTXME.js} +1 -1
- package/dist/{tax-region-province-detail-JQQQXONY.js → tax-region-province-detail-2GRPOSWS.js} +1 -1
- package/dist/{tax-region-tax-override-create-WRUNCP67.js → tax-region-tax-override-create-JZHOHCXF.js} +5 -5
- package/dist/{tax-region-tax-override-edit-EOIDY4LX.js → tax-region-tax-override-edit-SZRD23P4.js} +5 -5
- package/dist/{user-invite-WIHSREOW.js → user-invite-UN6NCCII.js} +1 -1
- package/dist/{user-list-3C6GRWMJ.js → user-list-27ZKEJXN.js} +2 -2
- package/dist/{user-metadata-EKIWOTII.js → user-metadata-BD73LJWB.js} +1 -1
- package/package.json +9 -6
- package/dist/chunk-DGCPYCHU.js +0 -98
- package/dist/loader-DHCULYGY.js +0 -32
|
@@ -4,9 +4,18 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
IconAvatar
|
|
6
6
|
} from "./chunk-U2EI2ZLM.js";
|
|
7
|
+
import {
|
|
8
|
+
useOfferTableColumns,
|
|
9
|
+
useOfferTableCommands,
|
|
10
|
+
useOfferTableFilters,
|
|
11
|
+
useOfferTableQuery
|
|
12
|
+
} from "./chunk-VSLKILOI.js";
|
|
7
13
|
import {
|
|
8
14
|
useOrderTableFilters
|
|
9
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4BCUGMOR.js";
|
|
16
|
+
import {
|
|
17
|
+
useOffers
|
|
18
|
+
} from "./chunk-IZDTQFCP.js";
|
|
10
19
|
import {
|
|
11
20
|
useMemberTableQuery
|
|
12
21
|
} from "./chunk-WKTRJNOK.js";
|
|
@@ -19,15 +28,6 @@ import {
|
|
|
19
28
|
import {
|
|
20
29
|
DataTableStatusCell
|
|
21
30
|
} from "./chunk-MDABSESI.js";
|
|
22
|
-
import {
|
|
23
|
-
useProductTableColumns
|
|
24
|
-
} from "./chunk-O53E5U52.js";
|
|
25
|
-
import {
|
|
26
|
-
useProductTableFilters
|
|
27
|
-
} from "./chunk-P4LTLPTK.js";
|
|
28
|
-
import {
|
|
29
|
-
useProductTableQuery
|
|
30
|
-
} from "./chunk-H7NIKMPE.js";
|
|
31
31
|
import {
|
|
32
32
|
currencies
|
|
33
33
|
} from "./chunk-IQPN4PZJ.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
_DataTable,
|
|
39
39
|
useDataTable
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-HSL5IICN.js";
|
|
41
41
|
import {
|
|
42
42
|
NoRecords
|
|
43
43
|
} from "./chunk-PAYQJPGK.js";
|
|
@@ -55,9 +55,8 @@ import {
|
|
|
55
55
|
useSeller,
|
|
56
56
|
useSellerInvites,
|
|
57
57
|
useSellerMembers,
|
|
58
|
-
useSellerProducts,
|
|
59
58
|
useSuspendSeller
|
|
60
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-BILFRATX.js";
|
|
61
60
|
import {
|
|
62
61
|
ActionMenu
|
|
63
62
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -69,7 +68,7 @@ import {
|
|
|
69
68
|
} from "./chunk-NBMM2TZK.js";
|
|
70
69
|
|
|
71
70
|
// src/pages/stores/store-details/components/store-details.tsx
|
|
72
|
-
import { Children as Children3, useState as
|
|
71
|
+
import { Children as Children3, useState as useState3 } from "react";
|
|
73
72
|
import { useParams } from "react-router-dom";
|
|
74
73
|
import { useTranslation as useTranslation12 } from "react-i18next";
|
|
75
74
|
var import_types3 = __toESM(require_dist(), 1);
|
|
@@ -975,78 +974,83 @@ var StoreOrdersSection = ({ sellerId }) => {
|
|
|
975
974
|
] });
|
|
976
975
|
};
|
|
977
976
|
|
|
978
|
-
// src/pages/stores/store-details/components/store-
|
|
977
|
+
// src/pages/stores/store-details/components/store-offers-section.tsx
|
|
979
978
|
import { Tag } from "@medusajs/icons";
|
|
980
979
|
import { Container as Container9, Heading as Heading9 } from "@medusajs/ui";
|
|
981
980
|
import { keepPreviousData as keepPreviousData3 } from "@tanstack/react-query";
|
|
981
|
+
import { useState as useState2 } from "react";
|
|
982
982
|
import { useTranslation as useTranslation11 } from "react-i18next";
|
|
983
983
|
import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
984
984
|
var PAGE_SIZE3 = 10;
|
|
985
|
-
var PREFIX2 = "store-
|
|
986
|
-
var
|
|
987
|
-
sellerId
|
|
988
|
-
}) => {
|
|
985
|
+
var PREFIX2 = "store-offers";
|
|
986
|
+
var StoreOffersSection = ({ sellerId }) => {
|
|
989
987
|
const { t } = useTranslation11();
|
|
990
|
-
const
|
|
988
|
+
const [selection, setSelection] = useState2({});
|
|
989
|
+
const { raw, searchParams } = useOfferTableQuery({
|
|
991
990
|
pageSize: PAGE_SIZE3,
|
|
992
991
|
prefix: PREFIX2
|
|
993
992
|
});
|
|
994
|
-
const {
|
|
995
|
-
sellerId,
|
|
996
|
-
|
|
997
|
-
{
|
|
998
|
-
placeholderData: keepPreviousData3
|
|
999
|
-
}
|
|
993
|
+
const { offers, count, isLoading, isError, error } = useOffers(
|
|
994
|
+
{ ...searchParams, seller_id: [sellerId] },
|
|
995
|
+
{ placeholderData: keepPreviousData3 }
|
|
1000
996
|
);
|
|
1001
|
-
const
|
|
1002
|
-
const
|
|
997
|
+
const rows = offers ?? [];
|
|
998
|
+
const columns = useOfferTableColumns({ hideStoreAction: true });
|
|
999
|
+
const filters = useOfferTableFilters().filter((f) => f.key !== "seller_id");
|
|
1000
|
+
const commands = useOfferTableCommands({
|
|
1001
|
+
onDeleted: () => setSelection({})
|
|
1002
|
+
});
|
|
1003
1003
|
const { table } = useDataTable({
|
|
1004
|
+
data: rows,
|
|
1004
1005
|
columns,
|
|
1005
|
-
data: products ?? [],
|
|
1006
1006
|
count,
|
|
1007
|
+
enablePagination: true,
|
|
1007
1008
|
getRowId: (row) => row.id,
|
|
1008
1009
|
pageSize: PAGE_SIZE3,
|
|
1009
|
-
prefix: PREFIX2
|
|
1010
|
+
prefix: PREFIX2,
|
|
1011
|
+
enableRowSelection: true,
|
|
1012
|
+
rowSelection: {
|
|
1013
|
+
state: selection,
|
|
1014
|
+
updater: setSelection
|
|
1015
|
+
}
|
|
1010
1016
|
});
|
|
1011
1017
|
if (isError) {
|
|
1012
1018
|
throw error;
|
|
1013
1019
|
}
|
|
1014
|
-
return /* @__PURE__ */ jsxs11(Container9, { className: "divide-y p-0", "data-testid": "store-
|
|
1020
|
+
return /* @__PURE__ */ jsxs11(Container9, { className: "divide-y p-0", "data-testid": "store-offers-section", children: [
|
|
1015
1021
|
/* @__PURE__ */ jsx11(
|
|
1016
1022
|
"div",
|
|
1017
1023
|
{
|
|
1018
1024
|
className: "flex items-center justify-between px-6 py-4",
|
|
1019
|
-
"data-testid": "store-
|
|
1020
|
-
children: /* @__PURE__ */ jsx11(Heading9, { level: "h2", "data-testid": "store-
|
|
1025
|
+
"data-testid": "store-offers-section-header",
|
|
1026
|
+
children: /* @__PURE__ */ jsx11(Heading9, { level: "h2", "data-testid": "store-offers-section-heading", children: t("offers.domain") })
|
|
1021
1027
|
}
|
|
1022
1028
|
),
|
|
1023
1029
|
/* @__PURE__ */ jsx11(
|
|
1024
1030
|
_DataTable,
|
|
1025
1031
|
{
|
|
1026
1032
|
table,
|
|
1027
|
-
filters,
|
|
1028
|
-
isLoading: isPending,
|
|
1029
1033
|
columns,
|
|
1030
|
-
count,
|
|
1031
1034
|
pageSize: PAGE_SIZE3,
|
|
1032
|
-
|
|
1035
|
+
count,
|
|
1036
|
+
isLoading,
|
|
1037
|
+
pagination: true,
|
|
1038
|
+
search: true,
|
|
1039
|
+
filters,
|
|
1040
|
+
queryObject: raw,
|
|
1041
|
+
prefix: PREFIX2,
|
|
1033
1042
|
orderBy: [
|
|
1034
|
-
{ key: "title", label: t("fields.title") },
|
|
1035
1043
|
{ key: "created_at", label: t("fields.createdAt") },
|
|
1036
1044
|
{ key: "updated_at", label: t("fields.updatedAt") }
|
|
1037
1045
|
],
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
pagination: true,
|
|
1041
|
-
prefix: PREFIX2,
|
|
1046
|
+
defaultOrder: "-created_at",
|
|
1047
|
+
navigateTo: (row) => `/offers/${row.original.product_id}?seller_id=${row.original.seller_id}`,
|
|
1042
1048
|
noRecords: {
|
|
1043
|
-
title: t("
|
|
1044
|
-
message: t(
|
|
1045
|
-
"stores.emptyStates.products.message",
|
|
1046
|
-
"Products published by this store will appear here."
|
|
1047
|
-
),
|
|
1049
|
+
title: t("offers.empty.heading"),
|
|
1050
|
+
message: t("offers.empty.storeDescription"),
|
|
1048
1051
|
icon: /* @__PURE__ */ jsx11(Tag, { className: "text-ui-fg-subtle" })
|
|
1049
|
-
}
|
|
1052
|
+
},
|
|
1053
|
+
commands
|
|
1050
1054
|
}
|
|
1051
1055
|
)
|
|
1052
1056
|
] });
|
|
@@ -1054,7 +1058,7 @@ var StoreProductsSection = ({
|
|
|
1054
1058
|
|
|
1055
1059
|
// src/pages/stores/store-details/components/store-details.tsx
|
|
1056
1060
|
import { jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1057
|
-
var TABS = ["orders", "
|
|
1061
|
+
var TABS = ["orders", "offers", "users", "timeOff"];
|
|
1058
1062
|
var TabBar = ({
|
|
1059
1063
|
activeTab,
|
|
1060
1064
|
onTabChange
|
|
@@ -1063,7 +1067,7 @@ var TabBar = ({
|
|
|
1063
1067
|
const labels = {
|
|
1064
1068
|
orders: t("orders.domain"),
|
|
1065
1069
|
users: t("users.domain"),
|
|
1066
|
-
|
|
1070
|
+
offers: t("offers.domain"),
|
|
1067
1071
|
timeOff: t("store.timeOff.header")
|
|
1068
1072
|
};
|
|
1069
1073
|
return /* @__PURE__ */ jsx12(
|
|
@@ -1071,7 +1075,7 @@ var TabBar = ({
|
|
|
1071
1075
|
{
|
|
1072
1076
|
role: "tablist",
|
|
1073
1077
|
"aria-label": t("stores.domain"),
|
|
1074
|
-
className: "flex flex-wrap items-center gap-x-
|
|
1078
|
+
className: "mt-1 flex flex-wrap items-center gap-x-2",
|
|
1075
1079
|
"data-testid": "store-detail-tabs",
|
|
1076
1080
|
children: TABS.map((tab) => {
|
|
1077
1081
|
const isActive = activeTab === tab;
|
|
@@ -1085,7 +1089,7 @@ var TabBar = ({
|
|
|
1085
1089
|
"aria-controls": `store-detail-tab-panel-${tab}`,
|
|
1086
1090
|
id: `store-detail-tab-${tab}`,
|
|
1087
1091
|
"data-testid": `store-detail-tab-${tab}`,
|
|
1088
|
-
className: `txt-compact-
|
|
1092
|
+
className: `txt-compact-small-plus rounded-full px-3 py-1.5 transition-colors ${isActive ? "border-ui-border-base bg-ui-bg-base shadow-borders-base text-ui-fg-base" : "text-ui-fg-subtle hover:text-ui-fg-base"}`,
|
|
1089
1093
|
children: labels[tab]
|
|
1090
1094
|
},
|
|
1091
1095
|
tab
|
|
@@ -1096,7 +1100,7 @@ var TabBar = ({
|
|
|
1096
1100
|
};
|
|
1097
1101
|
var Root = ({ children }) => {
|
|
1098
1102
|
const { id } = useParams();
|
|
1099
|
-
const [activeTab, setActiveTab] =
|
|
1103
|
+
const [activeTab, setActiveTab] = useState3("orders");
|
|
1100
1104
|
const { seller, isLoading, isError, error } = useSeller(id);
|
|
1101
1105
|
if (isLoading || !seller) {
|
|
1102
1106
|
return /* @__PURE__ */ jsx12(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 3 });
|
|
@@ -1130,13 +1134,13 @@ var Root = ({ children }) => {
|
|
|
1130
1134
|
children: /* @__PURE__ */ jsx12(StoreMembersSection, { sellerId: seller.id })
|
|
1131
1135
|
}
|
|
1132
1136
|
),
|
|
1133
|
-
activeTab === "
|
|
1137
|
+
activeTab === "offers" && /* @__PURE__ */ jsx12(
|
|
1134
1138
|
"div",
|
|
1135
1139
|
{
|
|
1136
1140
|
role: "tabpanel",
|
|
1137
|
-
id: "store-detail-tab-panel-
|
|
1138
|
-
"aria-labelledby": "store-detail-tab-
|
|
1139
|
-
children: /* @__PURE__ */ jsx12(
|
|
1141
|
+
id: "store-detail-tab-panel-offers",
|
|
1142
|
+
"aria-labelledby": "store-detail-tab-offers",
|
|
1143
|
+
children: /* @__PURE__ */ jsx12(StoreOffersSection, { sellerId: seller.id })
|
|
1140
1144
|
}
|
|
1141
1145
|
),
|
|
1142
1146
|
activeTab === "timeOff" && /* @__PURE__ */ jsx12(
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
_DataTable,
|
|
15
15
|
useDataTable
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HSL5IICN.js";
|
|
17
17
|
import {
|
|
18
18
|
SingleColumnPage
|
|
19
19
|
} from "./chunk-H6MYB7GB.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-YZBEJ3CY.js";
|
|
23
23
|
import {
|
|
24
24
|
useSellers
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-BILFRATX.js";
|
|
26
26
|
import {
|
|
27
27
|
ActionMenu
|
|
28
28
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
ShippingOptionPriceProvider,
|
|
5
5
|
buildShippingOptionPriceRules,
|
|
6
6
|
useShippingOptionPriceColumns
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-F6NPDZHW.js";
|
|
8
8
|
import {
|
|
9
9
|
CONDITIONAL_PRICES_STACKED_MODAL_ID,
|
|
10
10
|
ShippingOptionPriceType
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./chunk-2EME4AWX.js";
|
|
32
32
|
import {
|
|
33
33
|
DataGrid
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-JXSXBSV6.js";
|
|
35
35
|
import {
|
|
36
36
|
RouteFocusModal,
|
|
37
37
|
StackedFocusModal,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useOrderGroupTableFilters
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4C7L7TJT.js";
|
|
4
4
|
import {
|
|
5
5
|
useOrderTableQuery
|
|
6
6
|
} from "./chunk-QUHSHIAC.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
_DataTable,
|
|
26
26
|
useDataTable
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-HSL5IICN.js";
|
|
28
28
|
import {
|
|
29
29
|
SingleColumnPage
|
|
30
30
|
} from "./chunk-H6MYB7GB.js";
|
|
@@ -67,12 +67,12 @@ var OrderListHeader = ({
|
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
// src/pages/orders/order-list/components/order-list-table/order-list-data-table.tsx
|
|
70
|
-
import { IconButton, clx } from "@medusajs/ui";
|
|
70
|
+
import { IconButton as IconButton2, clx } from "@medusajs/ui";
|
|
71
71
|
import { TriangleRightMini } from "@medusajs/icons";
|
|
72
72
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
73
73
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
74
74
|
import { useMemo } from "react";
|
|
75
|
-
import { useTranslation as
|
|
75
|
+
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
76
76
|
|
|
77
77
|
// src/pages/orders/order-list/const.ts
|
|
78
78
|
var DEFAULT_PROPERTIES = [
|
|
@@ -103,8 +103,38 @@ var DEFAULT_FIELDS = `${DEFAULT_PROPERTIES.join(
|
|
|
103
103
|
","
|
|
104
104
|
)},${DEFAULT_RELATIONS.join(",")}`;
|
|
105
105
|
|
|
106
|
+
// src/pages/orders/order-list/components/order-list-table/order-expand-collapse-button.tsx
|
|
107
|
+
import { ArrowsPointingOut, ArrowsReduceDiagonal } from "@medusajs/icons";
|
|
108
|
+
import { IconButton, Tooltip } from "@medusajs/ui";
|
|
109
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
110
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
111
|
+
var OrderExpandCollapseButton = ({
|
|
112
|
+
table
|
|
113
|
+
}) => {
|
|
114
|
+
const { t } = useTranslation2();
|
|
115
|
+
const allExpanded = table.getIsAllRowsExpanded();
|
|
116
|
+
return /* @__PURE__ */ jsx2(
|
|
117
|
+
Tooltip,
|
|
118
|
+
{
|
|
119
|
+
content: t(
|
|
120
|
+
allExpanded ? "orders.list.collapseAll" : "orders.list.expandAll"
|
|
121
|
+
),
|
|
122
|
+
children: /* @__PURE__ */ jsx2(
|
|
123
|
+
IconButton,
|
|
124
|
+
{
|
|
125
|
+
size: "small",
|
|
126
|
+
type: "button",
|
|
127
|
+
onClick: () => table.toggleAllRowsExpanded(),
|
|
128
|
+
"data-testid": "orders-expand-collapse-all",
|
|
129
|
+
children: allExpanded ? /* @__PURE__ */ jsx2(ArrowsReduceDiagonal, {}) : /* @__PURE__ */ jsx2(ArrowsPointingOut, {})
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
};
|
|
135
|
+
|
|
106
136
|
// src/pages/orders/order-list/components/order-list-table/order-list-data-table.tsx
|
|
107
|
-
import { jsx as
|
|
137
|
+
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
108
138
|
var PAGE_SIZE = 20;
|
|
109
139
|
function transformOrderGroups(orderGroups, t) {
|
|
110
140
|
return orderGroups.map((group) => {
|
|
@@ -149,7 +179,7 @@ function transformOrderGroups(orderGroups, t) {
|
|
|
149
179
|
});
|
|
150
180
|
}
|
|
151
181
|
var OrderListDataTable = () => {
|
|
152
|
-
const { t } =
|
|
182
|
+
const { t } = useTranslation3();
|
|
153
183
|
const { searchParams, raw } = useOrderTableQuery({
|
|
154
184
|
pageSize: PAGE_SIZE
|
|
155
185
|
});
|
|
@@ -181,13 +211,18 @@ var OrderListDataTable = () => {
|
|
|
181
211
|
if (isError) {
|
|
182
212
|
throw error;
|
|
183
213
|
}
|
|
184
|
-
return /* @__PURE__ */
|
|
214
|
+
return /* @__PURE__ */ jsx3(
|
|
185
215
|
_DataTable,
|
|
186
216
|
{
|
|
187
217
|
columns,
|
|
188
218
|
table,
|
|
189
219
|
pagination: true,
|
|
190
220
|
navigateTo: (row) => row.original._type === "order" ? `/orders/${row.original.id}` : "",
|
|
221
|
+
onRowClick: (row) => {
|
|
222
|
+
if (row.getCanExpand()) {
|
|
223
|
+
row.toggleExpanded();
|
|
224
|
+
}
|
|
225
|
+
},
|
|
191
226
|
count,
|
|
192
227
|
search: true,
|
|
193
228
|
filters,
|
|
@@ -198,6 +233,8 @@ var OrderListDataTable = () => {
|
|
|
198
233
|
{ key: "created_at", label: t("fields.createdAt") },
|
|
199
234
|
{ key: "updated_at", label: t("fields.updatedAt") }
|
|
200
235
|
],
|
|
236
|
+
defaultOrder: "-display_id",
|
|
237
|
+
toolbarActions: /* @__PURE__ */ jsx3(OrderExpandCollapseButton, { table }),
|
|
201
238
|
queryObject: raw,
|
|
202
239
|
noRecords: {
|
|
203
240
|
message: t("orders.list.noRecordsMessage")
|
|
@@ -207,19 +244,19 @@ var OrderListDataTable = () => {
|
|
|
207
244
|
};
|
|
208
245
|
var columnHelper = createColumnHelper();
|
|
209
246
|
var useColumns = () => {
|
|
210
|
-
const { t } =
|
|
247
|
+
const { t } = useTranslation3();
|
|
211
248
|
return useMemo(
|
|
212
249
|
() => [
|
|
213
250
|
columnHelper.accessor("display_id", {
|
|
214
|
-
header: () => /* @__PURE__ */
|
|
251
|
+
header: () => /* @__PURE__ */ jsx3(TextHeader, { text: t("orders.fields.groupId") }),
|
|
215
252
|
cell: ({ row, getValue }) => {
|
|
216
253
|
if (row.original._type === "order") {
|
|
217
254
|
return null;
|
|
218
255
|
}
|
|
219
256
|
const expandHandler = row.getToggleExpandedHandler();
|
|
220
257
|
return /* @__PURE__ */ jsxs("div", { className: "flex size-full items-center gap-x-2 overflow-hidden", children: [
|
|
221
|
-
/* @__PURE__ */
|
|
222
|
-
|
|
258
|
+
/* @__PURE__ */ jsx3("div", { className: "flex size-7 items-center justify-center", children: row.getCanExpand() ? /* @__PURE__ */ jsx3(
|
|
259
|
+
IconButton2,
|
|
223
260
|
{
|
|
224
261
|
type: "button",
|
|
225
262
|
onClick: (e) => {
|
|
@@ -230,7 +267,7 @@ var useColumns = () => {
|
|
|
230
267
|
size: "small",
|
|
231
268
|
variant: "transparent",
|
|
232
269
|
className: "text-ui-fg-subtle",
|
|
233
|
-
children: /* @__PURE__ */
|
|
270
|
+
children: /* @__PURE__ */ jsx3(
|
|
234
271
|
TriangleRightMini,
|
|
235
272
|
{
|
|
236
273
|
className: clx({
|
|
@@ -240,59 +277,59 @@ var useColumns = () => {
|
|
|
240
277
|
)
|
|
241
278
|
}
|
|
242
279
|
) : null }),
|
|
243
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ jsx3("span", { className: "truncate", children: getValue() })
|
|
244
281
|
] });
|
|
245
282
|
}
|
|
246
283
|
}),
|
|
247
284
|
columnHelper.accessor("order_ids", {
|
|
248
|
-
header: () => /* @__PURE__ */
|
|
285
|
+
header: () => /* @__PURE__ */ jsx3(TextHeader, { text: t("orders.fields.orderIds") }),
|
|
249
286
|
cell: ({ row, getValue }) => {
|
|
250
287
|
if (row.original._type === "group") {
|
|
251
|
-
return /* @__PURE__ */
|
|
288
|
+
return /* @__PURE__ */ jsx3(TextCell, { text: getValue() });
|
|
252
289
|
}
|
|
253
|
-
return /* @__PURE__ */
|
|
290
|
+
return /* @__PURE__ */ jsx3(TextCell, { text: row.original.display_id });
|
|
254
291
|
}
|
|
255
292
|
}),
|
|
256
293
|
columnHelper.accessor("vendor", {
|
|
257
|
-
header: () => /* @__PURE__ */
|
|
258
|
-
cell: ({ getValue }) => /* @__PURE__ */
|
|
294
|
+
header: () => /* @__PURE__ */ jsx3(TextHeader, { text: t("orders.fields.vendor") }),
|
|
295
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx3(TextCell, { text: getValue() })
|
|
259
296
|
}),
|
|
260
297
|
columnHelper.accessor("created_at", {
|
|
261
|
-
header: () => /* @__PURE__ */
|
|
262
|
-
cell: ({ getValue }) => /* @__PURE__ */
|
|
298
|
+
header: () => /* @__PURE__ */ jsx3(DateHeader, {}),
|
|
299
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx3(DateCell, { date: getValue() })
|
|
263
300
|
}),
|
|
264
301
|
columnHelper.accessor("customer_name", {
|
|
265
|
-
header: () => /* @__PURE__ */
|
|
266
|
-
cell: ({ getValue }) => /* @__PURE__ */
|
|
302
|
+
header: () => /* @__PURE__ */ jsx3(TextHeader, { text: t("fields.customer") }),
|
|
303
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx3(TextCell, { text: getValue() })
|
|
267
304
|
}),
|
|
268
305
|
columnHelper.accessor("payment_status", {
|
|
269
|
-
header: () => /* @__PURE__ */
|
|
306
|
+
header: () => /* @__PURE__ */ jsx3(PaymentStatusHeader, {}),
|
|
270
307
|
cell: ({ row, getValue }) => {
|
|
271
308
|
if (row.original._type === "group") {
|
|
272
309
|
return null;
|
|
273
310
|
}
|
|
274
311
|
const status = getValue();
|
|
275
312
|
if (!status) return "-";
|
|
276
|
-
return /* @__PURE__ */
|
|
313
|
+
return /* @__PURE__ */ jsx3(PaymentStatusCell, { status });
|
|
277
314
|
}
|
|
278
315
|
}),
|
|
279
316
|
columnHelper.accessor("fulfillment_status", {
|
|
280
|
-
header: () => /* @__PURE__ */
|
|
317
|
+
header: () => /* @__PURE__ */ jsx3(FulfillmentStatusHeader, {}),
|
|
281
318
|
cell: ({ row, getValue }) => {
|
|
282
319
|
if (row.original._type === "group") {
|
|
283
320
|
return null;
|
|
284
321
|
}
|
|
285
322
|
const status = getValue();
|
|
286
323
|
if (!status) return "-";
|
|
287
|
-
return /* @__PURE__ */
|
|
324
|
+
return /* @__PURE__ */ jsx3(FulfillmentStatusCell, { status });
|
|
288
325
|
}
|
|
289
326
|
}),
|
|
290
327
|
columnHelper.accessor("total", {
|
|
291
|
-
header: () => /* @__PURE__ */
|
|
328
|
+
header: () => /* @__PURE__ */ jsx3(TextHeader, { text: t("fields.total") }),
|
|
292
329
|
cell: ({ row, getValue }) => {
|
|
293
330
|
const total = getValue();
|
|
294
331
|
if (total == null) return "-";
|
|
295
|
-
return /* @__PURE__ */
|
|
332
|
+
return /* @__PURE__ */ jsx3(
|
|
296
333
|
TextCell,
|
|
297
334
|
{
|
|
298
335
|
text: getStylizedAmount(total, row.original.currency_code)
|
|
@@ -306,18 +343,18 @@ var useColumns = () => {
|
|
|
306
343
|
};
|
|
307
344
|
|
|
308
345
|
// src/pages/orders/order-list/components/order-list-table/order-list-table.tsx
|
|
309
|
-
import { Fragment, jsx as
|
|
346
|
+
import { Fragment, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
310
347
|
var OrderListTable = ({ children }) => {
|
|
311
|
-
return /* @__PURE__ */
|
|
312
|
-
/* @__PURE__ */
|
|
313
|
-
/* @__PURE__ */
|
|
348
|
+
return /* @__PURE__ */ jsx4(Container, { className: "divide-y p-0", "data-testid": "orders-container", children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
349
|
+
/* @__PURE__ */ jsx4(OrderListHeader, {}),
|
|
350
|
+
/* @__PURE__ */ jsx4(OrderListDataTable, {})
|
|
314
351
|
] }) });
|
|
315
352
|
};
|
|
316
353
|
|
|
317
354
|
// src/pages/orders/order-list/order-list.tsx
|
|
318
|
-
import { jsx as
|
|
355
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
319
356
|
var Root = ({ children }) => {
|
|
320
|
-
return /* @__PURE__ */
|
|
357
|
+
return /* @__PURE__ */ jsx5(SingleColumnPage, { hasOutlet: false, "data-testid": "orders-list-page", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx5(OrderListTable, {}) });
|
|
321
358
|
};
|
|
322
359
|
var OrderListPage = Object.assign(Root, {
|
|
323
360
|
Table: OrderListTable,
|