@medusajs/dashboard 2.22.0 → 2.22.1
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-VGH4LCDR.mjs → add-campaign-promotions-IUQHZ5QA.mjs} +1 -1
- package/dist/{add-locales-3OTB5FQM.mjs → add-locales-FQQ5W3MB.mjs} +2 -2
- package/dist/{adjust-inventory-UPEEXXFU.mjs → adjust-inventory-DJFQZTLA.mjs} +1 -1
- package/dist/{api-key-management-create-ROQ6LKUO.mjs → api-key-management-create-7T2MCQ3T.mjs} +1 -1
- package/dist/{api-key-management-detail-PPQ6XGZ4.mjs → api-key-management-detail-X3AUNHCO.mjs} +9 -8
- package/dist/{api-key-management-edit-QGKZADJX.mjs → api-key-management-edit-S3GYYNWM.mjs} +1 -1
- package/dist/{api-key-management-list-OCQN2VOQ.mjs → api-key-management-list-WHT7LED5.mjs} +8 -7
- package/dist/{api-key-management-sales-channels-4NTNDHYS.mjs → api-key-management-sales-channels-3WYYKLST.mjs} +1 -1
- package/dist/app.js +13056 -12895
- package/dist/app.mjs +6 -6
- package/dist/{campaign-budget-edit-U6ZGFZCN.mjs → campaign-budget-edit-MVPC66RJ.mjs} +2 -2
- package/dist/{campaign-configuration-SESM5XWE.mjs → campaign-configuration-LTA6NKGQ.mjs} +1 -1
- package/dist/{campaign-create-KUN2YHP2.mjs → campaign-create-XZ3ZCDTE.mjs} +4 -4
- package/dist/{campaign-detail-EW4RJY64.mjs → campaign-detail-ILZA4DJG.mjs} +9 -8
- package/dist/{campaign-edit-TPU6ACYT.mjs → campaign-edit-V7KUN7M5.mjs} +1 -1
- package/dist/{campaign-list-ZGAMG2HJ.mjs → campaign-list-TPH4BBDI.mjs} +8 -7
- package/dist/{categories-metadata-3IX3Y7NM.mjs → categories-metadata-H3TZ7ZC7.mjs} +2 -2
- package/dist/{category-create-NMOUVBVL.mjs → category-create-AKYJLVJ2.mjs} +1 -1
- package/dist/{category-detail-ZIEUC7DM.mjs → category-detail-I6RNSMTN.mjs} +8 -7
- package/dist/{category-edit-HXRXUXIX.mjs → category-edit-PS34TOQX.mjs} +1 -1
- package/dist/{category-products-5GM6K37K.mjs → category-products-6DCNKT6C.mjs} +1 -1
- package/dist/{chunk-QQOHHUDU.mjs → chunk-23BHNQ2L.mjs} +2 -2
- package/dist/chunk-25A53KSK.mjs +156 -0
- package/dist/{chunk-SWN424AE.mjs → chunk-2XG5UPAM.mjs} +3 -3
- package/dist/{chunk-ZCERNCOX.mjs → chunk-34AF5R5P.mjs} +193 -193
- package/dist/{chunk-SOUK6BUQ.mjs → chunk-3M5AAW4J.mjs} +4 -4
- package/dist/{chunk-NANNVVYP.mjs → chunk-4KQBZRB4.mjs} +1 -1
- package/dist/{chunk-JLY6YSEE.mjs → chunk-7FR6ZF6H.mjs} +18 -181
- package/dist/{chunk-JNIMWJV2.mjs → chunk-AFAE54E2.mjs} +2 -2
- package/dist/{chunk-6HTZNHPT.mjs → chunk-B3R53QK3.mjs} +1 -1
- package/dist/{chunk-7ZGGLSE2.mjs → chunk-BXF2VPJX.mjs} +1 -1
- package/dist/{chunk-C36TGGI7.mjs → chunk-DBSNE3L2.mjs} +2 -2
- package/dist/{chunk-DJF6GPIA.mjs → chunk-DOJWUV5E.mjs} +1 -1
- package/dist/{chunk-L6OMZR2J.mjs → chunk-EBK5S7WC.mjs} +1 -1
- package/dist/chunk-HGXZ5BJO.mjs +153 -0
- package/dist/{chunk-WCLL7RVP.mjs → chunk-JPXF73N2.mjs} +1 -1
- package/dist/{chunk-G6CQOB4G.mjs → chunk-JZXJXG3V.mjs} +1 -1
- package/dist/{chunk-AKDC6BWT.mjs → chunk-M7FQTSDS.mjs} +2 -2
- package/dist/{chunk-3UMI3ISU.mjs → chunk-PRJK2BND.mjs} +41 -0
- package/dist/{chunk-LT7MP5JO.mjs → chunk-QFE4OVWT.mjs} +1 -1
- package/dist/{chunk-HZXJDVPI.mjs → chunk-QIK2SODO.mjs} +1 -1
- package/dist/{chunk-6MTTMX7E.mjs → chunk-QW3P2QHZ.mjs} +1 -1
- package/dist/{chunk-UHB4DWUF.mjs → chunk-R2A5UDCT.mjs} +1 -1
- package/dist/{chunk-ZH57KBU7.mjs → chunk-RDBROTJE.mjs} +6 -0
- package/dist/{chunk-Y5ZQ26VN.mjs → chunk-V3TXAU2Y.mjs} +1 -1
- package/dist/{chunk-3NS4FYII.mjs → chunk-VJIURRDA.mjs} +3 -3
- package/dist/{chunk-7QQQEODJ.mjs → chunk-WHWDHRC2.mjs} +1 -1
- package/dist/{chunk-O6JNJQ4K.mjs → chunk-Y2CXBS7S.mjs} +1 -1
- package/dist/{chunk-ZNSPQGIO.mjs → chunk-Z4CMG3I4.mjs} +1 -1
- package/dist/{collection-add-products-JZIEEVAD.mjs → collection-add-products-VHX3EDMB.mjs} +1 -1
- package/dist/{collection-create-ZGCQ3UZ4.mjs → collection-create-BIMST735.mjs} +1 -1
- package/dist/{collection-detail-STCDEYFR.mjs → collection-detail-7SG445Z7.mjs} +8 -7
- package/dist/{collection-edit-Q6UBZJBA.mjs → collection-edit-7E6KSC2T.mjs} +1 -1
- package/dist/{collection-list-7Q74YH4K.mjs → collection-list-4DQ3KSL6.mjs} +8 -7
- package/dist/{collection-metadata-G7HJW3YY.mjs → collection-metadata-CE5JGMBU.mjs} +2 -2
- package/dist/components.js +303 -294
- package/dist/components.mjs +10 -9
- package/dist/{customer-create-5OKTED3S.mjs → customer-create-DUJEC4OL.mjs} +1 -1
- package/dist/{customer-create-address-DXGXL3AR.mjs → customer-create-address-WB6EQTF7.mjs} +1 -1
- package/dist/{customer-detail-VDUTRECH.mjs → customer-detail-OCGWUEAC.mjs} +9 -8
- package/dist/{customer-edit-FCJB2CR3.mjs → customer-edit-45JRYR7C.mjs} +1 -1
- package/dist/{customer-export-CBHVVHT7.mjs → customer-export-SJ7TPUYZ.mjs} +1 -1
- package/dist/{customer-group-add-customers-2MXCI4AU.mjs → customer-group-add-customers-2LO4JWCL.mjs} +1 -1
- package/dist/{customer-group-create-UWEI2IIX.mjs → customer-group-create-46IX5XKC.mjs} +1 -1
- package/dist/{customer-group-detail-537L3QCV.mjs → customer-group-detail-YF4N3ZJQ.mjs} +8 -7
- package/dist/{customer-group-edit-OVOHPO3H.mjs → customer-group-edit-AE5DT44M.mjs} +1 -1
- package/dist/{customer-group-list-KTNZYQTD.mjs → customer-group-list-3ESALQFX.mjs} +8 -7
- package/dist/{customer-group-metadata-5FBOQTIC.mjs → customer-group-metadata-6VTJ63KW.mjs} +2 -2
- package/dist/{customer-list-F7FBYGDK.mjs → customer-list-6QEB7GKU.mjs} +8 -7
- package/dist/{customer-metadata-4AX44PFG.mjs → customer-metadata-MWH222DL.mjs} +2 -2
- package/dist/{customers-add-customer-group-V6FHGHBA.mjs → customers-add-customer-group-K4URSJBC.mjs} +1 -1
- package/dist/{edit-inventory-item-FIAC6T5S.mjs → edit-inventory-item-SIBKLOQ5.mjs} +1 -1
- package/dist/{edit-inventory-item-attributes-32SIJNVQ.mjs → edit-inventory-item-attributes-FX3YWI36.mjs} +1 -1
- package/dist/{edit-reservation-LKXCTILV.mjs → edit-reservation-E6WLT7GE.mjs} +1 -1
- package/dist/{edit-rules-P2W5U34C.mjs → edit-rules-VDWS7LUQ.mjs} +1 -1
- package/dist/{inventory-create-GZQWBRNZ.mjs → inventory-create-XQ6JNL34.mjs} +3 -3
- package/dist/{inventory-list-TNCHH5AH.mjs → inventory-list-XDAGS3IC.mjs} +8 -7
- package/dist/{inventory-metadata-WFC6F5S4.mjs → inventory-metadata-J5VYM2KL.mjs} +2 -2
- package/dist/{inventory-stock-ALPB5DHU.mjs → inventory-stock-OTM7XOOH.mjs} +4 -4
- package/dist/lib.js +6 -0
- package/dist/lib.mjs +5 -5
- package/dist/{location-create-W3N4OIRN.mjs → location-create-65BKVUH7.mjs} +1 -1
- package/dist/{location-edit-WR3GUO2A.mjs → location-edit-XWALWBUW.mjs} +1 -1
- package/dist/{location-fulfillment-providers-IPV42XHK.mjs → location-fulfillment-providers-KSYCKAE3.mjs} +1 -1
- package/dist/{location-list-WX3A2AFK.mjs → location-list-3YQAKOXL.mjs} +8 -7
- package/dist/{location-metadata-H6KEPDM6.mjs → location-metadata-AL6Y2C5Z.mjs} +2 -2
- package/dist/{location-sales-channels-Z4KJ6TA7.mjs → location-sales-channels-P2EKHRGZ.mjs} +1 -1
- package/dist/{location-service-zone-create-LPN2I2A6.mjs → location-service-zone-create-L7MUFXZ7.mjs} +1 -1
- package/dist/{location-service-zone-edit-J5ZQRLT6.mjs → location-service-zone-edit-EH6B7A24.mjs} +1 -1
- package/dist/{location-service-zone-manage-areas-S3D2NRGT.mjs → location-service-zone-manage-areas-SDLDMJO7.mjs} +1 -1
- package/dist/{location-service-zone-shipping-option-create-ZNL5ZAEF.mjs → location-service-zone-shipping-option-create-LOYMYV5B.mjs} +6 -6
- package/dist/{location-service-zone-shipping-option-edit-DUIVARUT.mjs → location-service-zone-shipping-option-edit-BARLZ7H6.mjs} +1 -1
- package/dist/{location-service-zone-shipping-option-pricing-ESOFTO36.mjs → location-service-zone-shipping-option-pricing-6DR7Z2W5.mjs} +6 -6
- package/dist/{order-allocate-items-WM3SQ6YO.mjs → order-allocate-items-CTQLV42Q.mjs} +1 -1
- package/dist/{order-create-claim-W2PFYFZZ.mjs → order-create-claim-P5WL2XWX.mjs} +5 -5
- package/dist/{order-create-edit-V52ZDF54.mjs → order-create-edit-7NCWX6UB.mjs} +4 -4
- package/dist/{order-create-exchange-5U3ULMBH.mjs → order-create-exchange-MU566SDR.mjs} +5 -5
- package/dist/{order-create-fulfillment-CT5XV576.mjs → order-create-fulfillment-57GSNWKY.mjs} +1 -1
- package/dist/{order-create-refund-VUOUFSMS.mjs → order-create-refund-SZT2AGMZ.mjs} +3 -3
- package/dist/{order-create-return-NWPAQFIJ.mjs → order-create-return-NNDQSKD3.mjs} +5 -5
- package/dist/{order-create-shipment-FVFRAISJ.mjs → order-create-shipment-RQK7EC47.mjs} +1 -1
- package/dist/{order-detail-DMWYRRGT.mjs → order-detail-ERHRK6W3.mjs} +2 -2
- package/dist/{order-edit-billing-address-NDCMYXJ6.mjs → order-edit-billing-address-XCGDGT6L.mjs} +1 -1
- package/dist/{order-edit-email-COPXQGIB.mjs → order-edit-email-7DJEDL7L.mjs} +1 -1
- package/dist/{order-edit-shipping-address-VZKXPB2N.mjs → order-edit-shipping-address-G6UVC32Y.mjs} +1 -1
- package/dist/{order-export-KZ7DK7W7.mjs → order-export-X4GFB4OT.mjs} +1 -1
- package/dist/{order-list-NQT2DVHU.mjs → order-list-Y4KAYHDB.mjs} +9 -8
- package/dist/{order-metadata-STLSWSXP.mjs → order-metadata-LX5ZWHQF.mjs} +2 -2
- package/dist/{order-receive-return-JA3JNAHR.mjs → order-receive-return-QXVVZFHF.mjs} +3 -3
- package/dist/{order-request-transfer-ZD5KDNCB.mjs → order-request-transfer-ZEQOYAL6.mjs} +1 -1
- package/dist/{policy-list-45PG7GBA.mjs → policy-list-ENDXAWFU.mjs} +1 -1
- package/dist/{price-list-configuration-TPUOHUER.mjs → price-list-configuration-BQZRBNXQ.mjs} +1 -1
- package/dist/{price-list-create-QPBMO7LD.mjs → price-list-create-XN53E6RE.mjs} +6 -6
- package/dist/{price-list-detail-SM4DA6L7.mjs → price-list-detail-2R24L2L3.mjs} +8 -7
- package/dist/{price-list-edit-5E2FLEHN.mjs → price-list-edit-7EIZ3FVK.mjs} +1 -1
- package/dist/{price-list-list-V4XVXOAV.mjs → price-list-list-B3PGM3ND.mjs} +8 -7
- package/dist/{price-list-metadata-DCSZAO2C.mjs → price-list-metadata-NTJKQEOE.mjs} +2 -2
- package/dist/{price-list-prices-add-QB2QORIN.mjs → price-list-prices-add-E3O2OI7K.mjs} +6 -6
- package/dist/{price-list-prices-edit-3EWBS4PO.mjs → price-list-prices-edit-L45MXHZR.mjs} +6 -6
- package/dist/{product-attributes-VDTTOEN6.mjs → product-attributes-FXOAXOQ5.mjs} +2 -2
- package/dist/{product-create-WUZ22WMJ.mjs → product-create-3XQUET7Y.mjs} +4 -4
- package/dist/{product-create-variant-ZMBY5CDO.mjs → product-create-variant-KZAUREQY.mjs} +3 -3
- package/dist/{product-detail-Q7R6CEZD.mjs → product-detail-EFCAHRXH.mjs} +2 -2
- package/dist/{product-edit-FIAXOVZP.mjs → product-edit-YKIGN4M3.mjs} +2 -2
- package/dist/product-export-VTUEQCYE.mjs +260 -0
- package/dist/{product-image-variants-edit-6MOKSV2U.mjs → product-image-variants-edit-Y3M56B2U.mjs} +1 -1
- package/dist/{product-list-UKJVYCMV.mjs → product-list-XAW4AQNH.mjs} +32 -174
- package/dist/{product-media-72TTTVV5.mjs → product-media-HGLANNNT.mjs} +10 -6
- package/dist/{product-metadata-4KPGJ36Y.mjs → product-metadata-LTW4M2N3.mjs} +2 -2
- package/dist/{product-option-create-4C2BHWTH.mjs → product-option-create-EIKW4V3P.mjs} +1 -1
- package/dist/{product-option-detail-WQCRUROA.mjs → product-option-detail-LE44YFQQ.mjs} +9 -8
- package/dist/{product-option-edit-O354X7DK.mjs → product-option-edit-5ZP4YBAR.mjs} +1 -1
- package/dist/{product-option-list-52TQV6GJ.mjs → product-option-list-JQGZMNPD.mjs} +8 -7
- package/dist/{product-option-metadata-K5E6CV4U.mjs → product-option-metadata-2G47V6ZL.mjs} +2 -2
- package/dist/{product-option-value-metadata-QJ6D5GPI.mjs → product-option-value-metadata-PDG22GD2.mjs} +2 -2
- package/dist/{product-options-manage-H3RCESKS.mjs → product-options-manage-NXZ6CDGE.mjs} +3 -3
- package/dist/{product-organization-PAEWTW56.mjs → product-organization-K6EGAZZC.mjs} +2 -2
- package/dist/{product-prices-DK6LKOIN.mjs → product-prices-B3DJOMTS.mjs} +3 -3
- package/dist/{product-shipping-profile-CGQN7EL4.mjs → product-shipping-profile-NDMCCENZ.mjs} +1 -1
- package/dist/{product-stock-G3QGRX2B.mjs → product-stock-FNMVF2RH.mjs} +4 -4
- package/dist/{product-tag-create-QRJM6LX5.mjs → product-tag-create-HBIXYJDZ.mjs} +1 -1
- package/dist/{product-tag-detail-27XONTR7.mjs → product-tag-detail-ZSPQRFDC.mjs} +9 -8
- package/dist/{product-tag-edit-XE5MJ7M2.mjs → product-tag-edit-TO2ACUK3.mjs} +1 -1
- package/dist/{product-tag-list-FB25LCY5.mjs → product-tag-list-D5HZNBL3.mjs} +9 -8
- package/dist/{product-tag-metadata-K563ZKCO.mjs → product-tag-metadata-7P3JGVYS.mjs} +2 -2
- package/dist/{product-type-create-T36A3NSA.mjs → product-type-create-2AZKVK35.mjs} +1 -1
- package/dist/{product-type-detail-HCA2AKIV.mjs → product-type-detail-JNFFSUC2.mjs} +8 -7
- package/dist/{product-type-edit-TGVPP66B.mjs → product-type-edit-SOLNOW3Y.mjs} +1 -1
- package/dist/{product-type-list-G3ROKD3W.mjs → product-type-list-2FWI6OVE.mjs} +8 -7
- package/dist/{product-type-metadata-Q4TNWB2C.mjs → product-type-metadata-HTEP2YTQ.mjs} +2 -2
- package/dist/{product-variant-detail-IEV2JJM7.mjs → product-variant-detail-FDCRPWMV.mjs} +2 -2
- package/dist/{product-variant-edit-CVG5DWFB.mjs → product-variant-edit-Z4ELZB47.mjs} +1 -1
- package/dist/{product-variant-manage-inventory-items-GJNQW7JC.mjs → product-variant-manage-inventory-items-W3ZQDUML.mjs} +1 -1
- package/dist/{product-variant-media-XT2EQ5M2.mjs → product-variant-media-JARM7GQW.mjs} +1 -1
- package/dist/{product-variant-metadata-YXMJ3XTG.mjs → product-variant-metadata-LP3RK7D3.mjs} +2 -2
- package/dist/{profile-edit-L3F567PF.mjs → profile-edit-S4F52I66.mjs} +1 -1
- package/dist/{promotion-add-campaign-5Q7YXHM3.mjs → promotion-add-campaign-MFC6I5JW.mjs} +4 -4
- package/dist/{promotion-create-G5A3CLSU.mjs → promotion-create-USUUTWHS.mjs} +5 -5
- package/dist/{promotion-edit-details-7BKQR36L.mjs → promotion-edit-details-3INVCAPZ.mjs} +2 -2
- package/dist/{promotion-list-F4UKF55J.mjs → promotion-list-SRJ6MO3U.mjs} +9 -8
- package/dist/{promotion-metadata-CFGQFARL.mjs → promotion-metadata-QNNWNI6S.mjs} +2 -2
- package/dist/{property-labels-WALH2AGU.mjs → property-labels-4PJQJXTH.mjs} +5 -5
- package/dist/{property-labels-edit-WOGYPDDG.mjs → property-labels-edit-5QFRPGAO.mjs} +3 -3
- package/dist/{refund-reason-create-PY3Z64HW.mjs → refund-reason-create-QXHOKWDZ.mjs} +1 -1
- package/dist/{refund-reason-edit-UYQP4C6W.mjs → refund-reason-edit-RQFGSNGN.mjs} +1 -1
- package/dist/{refund-reason-list-SM5XTUD5.mjs → refund-reason-list-RKULHAWA.mjs} +9 -8
- package/dist/{region-add-countries-ICNGZMFP.mjs → region-add-countries-L3LBC5SS.mjs} +1 -1
- package/dist/{region-create-VWAGH4BK.mjs → region-create-IISVSM64.mjs} +2 -2
- package/dist/{region-detail-IXDWO6A6.mjs → region-detail-L3YT7CAJ.mjs} +1 -1
- package/dist/{region-edit-LDKU5GRF.mjs → region-edit-6TJFOZ6L.mjs} +2 -2
- package/dist/{region-list-P5BUNYLG.mjs → region-list-UOWKWKH3.mjs} +8 -7
- package/dist/{region-metadata-QNHAH2KJ.mjs → region-metadata-2GTR2Q4K.mjs} +2 -2
- package/dist/{reservation-create-OFCQFQAO.mjs → reservation-create-TJPEHJO4.mjs} +1 -1
- package/dist/{reservation-list-7R3KIRZM.mjs → reservation-list-3IBGFDFV.mjs} +8 -7
- package/dist/{reservation-metadata-W4CVXJXT.mjs → reservation-metadata-H6XWWZ7O.mjs} +2 -2
- package/dist/{return-reason-create-NNPGF6E6.mjs → return-reason-create-GLORKWFC.mjs} +1 -1
- package/dist/{return-reason-edit-BMSZB2JK.mjs → return-reason-edit-G2KHDOVU.mjs} +1 -1
- package/dist/{return-reason-list-IIKH6WL6.mjs → return-reason-list-2NBTNAH3.mjs} +9 -8
- package/dist/{role-add-users-UIEDW5HE.mjs → role-add-users-O7CTRYF2.mjs} +1 -1
- package/dist/{role-create-M3Y7KHT5.mjs → role-create-J5TXRN2A.mjs} +1 -1
- package/dist/{role-edit-76JHBTDL.mjs → role-edit-6CTPHWGH.mjs} +1 -1
- package/dist/{role-permissions-7D7D37MZ.mjs → role-permissions-F6WANR5D.mjs} +1 -1
- package/dist/{sales-channel-add-products-OUWMFPUM.mjs → sales-channel-add-products-S7NJUD3G.mjs} +1 -1
- package/dist/{sales-channel-create-YMFBTQTV.mjs → sales-channel-create-YDM7SRWK.mjs} +1 -1
- package/dist/{sales-channel-edit-CQOUQ4HC.mjs → sales-channel-edit-BPTKLMWV.mjs} +1 -1
- package/dist/{sales-channel-list-26DGOXPN.mjs → sales-channel-list-P7JPONDZ.mjs} +9 -8
- package/dist/{sales-channel-metadata-DYXIDARU.mjs → sales-channel-metadata-R36JO2U7.mjs} +2 -2
- package/dist/{search-index-list-UMBYJEE2.mjs → search-index-list-UUJXL4UL.mjs} +1 -1
- package/dist/{settings-NUX5MO5M.mjs → settings-L3FQOPX3.mjs} +1 -1
- package/dist/{shipping-option-type-create-E3U6A5AP.mjs → shipping-option-type-create-O62NAECA.mjs} +1 -1
- package/dist/{shipping-option-type-edit-AWLY6VGH.mjs → shipping-option-type-edit-NZQQSODS.mjs} +1 -1
- package/dist/{shipping-option-type-list-IS33BXIS.mjs → shipping-option-type-list-MZGGUXYT.mjs} +8 -7
- package/dist/{shipping-profile-create-Q4MANTUB.mjs → shipping-profile-create-WPLVLDXG.mjs} +1 -1
- package/dist/{shipping-profile-metadata-3E3MFK6S.mjs → shipping-profile-metadata-IEQP6IVY.mjs} +2 -2
- package/dist/{shipping-profiles-list-R2OKGF64.mjs → shipping-profiles-list-3TNRV7U4.mjs} +8 -7
- package/dist/{store-add-currencies-PM37F2M6.mjs → store-add-currencies-HBAN3GWA.mjs} +1 -1
- package/dist/{store-add-locales-TF4A4LOI.mjs → store-add-locales-VJWN65EE.mjs} +2 -2
- package/dist/{store-edit-BUNHDYE2.mjs → store-edit-SKGGBBFN.mjs} +1 -1
- package/dist/{store-metadata-XQI3KTO6.mjs → store-metadata-4P3U6G7J.mjs} +2 -2
- package/dist/{tax-region-create-HESVWGCI.mjs → tax-region-create-AI2IQGAX.mjs} +1 -1
- package/dist/{tax-region-detail-4N5VVAA3.mjs → tax-region-detail-OOB7SOFT.mjs} +10 -10
- package/dist/{tax-region-edit-T534TZN6.mjs → tax-region-edit-AAVTEU6A.mjs} +1 -1
- package/dist/{tax-region-province-create-PM3ZTK5Q.mjs → tax-region-province-create-UDBHBE66.mjs} +1 -1
- package/dist/{tax-region-province-detail-LP6LQFU3.mjs → tax-region-province-detail-RW6ORJ3I.mjs} +10 -10
- package/dist/{tax-region-tax-override-create-EOSGUTGM.mjs → tax-region-tax-override-create-7BXNHR5F.mjs} +8 -8
- package/dist/{tax-region-tax-override-edit-RFHZPX7T.mjs → tax-region-tax-override-edit-VTP7B3W3.mjs} +9 -9
- package/dist/{tax-region-tax-rate-create-23WNEWRS.mjs → tax-region-tax-rate-create-4MNRDQMB.mjs} +1 -1
- package/dist/{tax-region-tax-rate-edit-II6LQJU7.mjs → tax-region-tax-rate-edit-EQEPSONV.mjs} +1 -1
- package/dist/{translations-edit-IGHIRXSY.mjs → translations-edit-3264U52X.mjs} +3 -3
- package/dist/{user-edit-QAGGKUD5.mjs → user-edit-UYE4NST2.mjs} +1 -1
- package/dist/{user-invite-DDESHVJK.mjs → user-invite-RLAG4P4K.mjs} +1 -1
- package/dist/{user-list-KIRMDCPZ.mjs → user-list-GN3FM5YA.mjs} +8 -7
- package/dist/{user-metadata-FIHOQQBD.mjs → user-metadata-BVIBE7ID.mjs} +2 -2
- package/package.json +9 -9
- package/src/__tests__/vite-config.spec.ts +46 -0
- package/src/components/table/configurable-data-table/configurable-data-table.tsx +1 -27
- package/src/components/utilities/keybound-form/__tests__/keybound-form.spec.ts +65 -0
- package/src/components/utilities/keybound-form/keybound-form.tsx +3 -1
- package/src/hooks/table/query/index.ts +1 -0
- package/src/hooks/table/query/parse-prefixed-query-params.ts +64 -0
- package/src/hooks/table/use-column-filters.tsx +44 -0
- package/src/hooks/table/use-table-configuration.tsx +3 -34
- package/src/lib/data/currencies.ts +6 -0
- package/src/routes/orders/order-create-claim/components/claim-create-form/claim-inbound-item.tsx +2 -1
- package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-inbound-item.tsx +2 -1
- package/src/routes/orders/order-create-return/components/return-create-form/return-item.tsx +2 -1
- package/src/routes/products/product-export/components/configurable-export-filters.spec.tsx +69 -0
- package/src/routes/products/product-export/components/configurable-export-filters.tsx +104 -0
- package/src/routes/products/product-export/components/export-filters.tsx +14 -2
- package/src/routes/products/product-export/product-export.spec.tsx +131 -0
- package/src/routes/products/product-export/product-export.tsx +24 -4
- package/src/routes/products/product-media/components/edit-product-media-form/edit-product-media-form.spec.tsx +164 -0
- package/src/routes/products/product-media/components/edit-product-media-form/edit-product-media-form.tsx +13 -9
- package/dist/product-export-FVEBRZUJ.mjs +0 -138
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
QuantityPriceModal,
|
|
4
4
|
usePriceListCurrencyData,
|
|
5
5
|
usePriceListGridColumns
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-2XG5UPAM.mjs";
|
|
7
|
+
import "./chunk-3M5AAW4J.mjs";
|
|
8
8
|
import {
|
|
9
9
|
exctractPricesFromProducts,
|
|
10
10
|
isProductRow
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import "./chunk-XQCYSVGP.mjs";
|
|
33
33
|
import "./chunk-XEEPMJRY.mjs";
|
|
34
34
|
import "./chunk-P5RN6AUG.mjs";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-JPXF73N2.mjs";
|
|
36
36
|
import "./chunk-P3UUX2T6.mjs";
|
|
37
37
|
import "./chunk-GZW4X34M.mjs";
|
|
38
38
|
import "./chunk-4GQOUCX6.mjs";
|
|
@@ -40,16 +40,16 @@ import "./chunk-SGUYOGWH.mjs";
|
|
|
40
40
|
import "./chunk-BPIG7PI6.mjs";
|
|
41
41
|
import {
|
|
42
42
|
DataGrid
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-QIK2SODO.mjs";
|
|
44
44
|
import "./chunk-IUCDCPJU.mjs";
|
|
45
45
|
import {
|
|
46
46
|
KeyboundForm
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-B3R53QK3.mjs";
|
|
48
48
|
import "./chunk-6GU6IDUA.mjs";
|
|
49
49
|
import "./chunk-5SZFF255.mjs";
|
|
50
50
|
import "./chunk-LPEUYMRK.mjs";
|
|
51
51
|
import "./chunk-C76H5USB.mjs";
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-RDBROTJE.mjs";
|
|
53
53
|
import "./chunk-MNXC6Q4F.mjs";
|
|
54
54
|
import "./chunk-ZY7CAOHZ.mjs";
|
|
55
55
|
import "./chunk-2JYTX67H.mjs";
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
QuantityPriceModal,
|
|
4
4
|
usePriceListCurrencyData,
|
|
5
5
|
usePriceListGridColumns
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-2XG5UPAM.mjs";
|
|
7
|
+
import "./chunk-3M5AAW4J.mjs";
|
|
8
8
|
import {
|
|
9
9
|
initRecord,
|
|
10
10
|
isProductRow,
|
|
@@ -12,22 +12,22 @@ import {
|
|
|
12
12
|
} from "./chunk-DRRARNGS.mjs";
|
|
13
13
|
import "./chunk-XUQVQCAO.mjs";
|
|
14
14
|
import "./chunk-TCHUXMXX.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-JPXF73N2.mjs";
|
|
16
16
|
import "./chunk-GZW4X34M.mjs";
|
|
17
17
|
import "./chunk-4GQOUCX6.mjs";
|
|
18
18
|
import "./chunk-SGUYOGWH.mjs";
|
|
19
19
|
import "./chunk-BPIG7PI6.mjs";
|
|
20
20
|
import {
|
|
21
21
|
DataGrid
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QIK2SODO.mjs";
|
|
23
23
|
import "./chunk-IUCDCPJU.mjs";
|
|
24
24
|
import {
|
|
25
25
|
KeyboundForm
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-B3R53QK3.mjs";
|
|
27
27
|
import "./chunk-6GU6IDUA.mjs";
|
|
28
28
|
import "./chunk-5SZFF255.mjs";
|
|
29
29
|
import "./chunk-LPEUYMRK.mjs";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-RDBROTJE.mjs";
|
|
31
31
|
import "./chunk-MNXC6Q4F.mjs";
|
|
32
32
|
import "./chunk-M6QL27ZL.mjs";
|
|
33
33
|
import {
|
|
@@ -6,7 +6,7 @@ import "./chunk-DG7J63J2.mjs";
|
|
|
6
6
|
import {
|
|
7
7
|
FormExtensionZone,
|
|
8
8
|
useExtendableForm
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-34AF5R5P.mjs";
|
|
10
10
|
import "./chunk-ONB3JEHR.mjs";
|
|
11
11
|
import "./chunk-JAW6ZD7F.mjs";
|
|
12
12
|
import "./chunk-TO7QJZLE.mjs";
|
|
@@ -18,7 +18,7 @@ import "./chunk-53MXUSIR.mjs";
|
|
|
18
18
|
import "./chunk-IUCDCPJU.mjs";
|
|
19
19
|
import {
|
|
20
20
|
KeyboundForm
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-B3R53QK3.mjs";
|
|
22
22
|
import "./chunk-S7N7MIDZ.mjs";
|
|
23
23
|
import "./chunk-GVVNJYF3.mjs";
|
|
24
24
|
import "./chunk-HFX2KPQD.mjs";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
FormExtensionZone,
|
|
25
25
|
useExtendableForm
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-34AF5R5P.mjs";
|
|
27
27
|
import "./chunk-ONB3JEHR.mjs";
|
|
28
28
|
import "./chunk-JAW6ZD7F.mjs";
|
|
29
29
|
import "./chunk-TO7QJZLE.mjs";
|
|
@@ -38,14 +38,14 @@ import {
|
|
|
38
38
|
DataGrid,
|
|
39
39
|
createDataGridHelper,
|
|
40
40
|
createDataGridPriceColumns
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-QIK2SODO.mjs";
|
|
42
42
|
import {
|
|
43
43
|
Combobox
|
|
44
44
|
} from "./chunk-53MXUSIR.mjs";
|
|
45
45
|
import "./chunk-IUCDCPJU.mjs";
|
|
46
46
|
import {
|
|
47
47
|
KeyboundForm
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-B3R53QK3.mjs";
|
|
49
49
|
import {
|
|
50
50
|
useSalesChannelTableColumns,
|
|
51
51
|
useSalesChannelTableEmptyState,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
import "./chunk-LPEUYMRK.mjs";
|
|
74
74
|
import "./chunk-PJU3RODH.mjs";
|
|
75
75
|
import "./chunk-C76H5USB.mjs";
|
|
76
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-RDBROTJE.mjs";
|
|
77
77
|
import "./chunk-MNXC6Q4F.mjs";
|
|
78
78
|
import "./chunk-ZY7CAOHZ.mjs";
|
|
79
79
|
import "./chunk-2JYTX67H.mjs";
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
DataGrid,
|
|
4
4
|
createDataGridHelper,
|
|
5
5
|
createDataGridPriceColumns
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QIK2SODO.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Combobox
|
|
9
9
|
} from "./chunk-53MXUSIR.mjs";
|
|
10
10
|
import "./chunk-IUCDCPJU.mjs";
|
|
11
11
|
import {
|
|
12
12
|
KeyboundForm
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-B3R53QK3.mjs";
|
|
14
14
|
import {
|
|
15
15
|
useComboboxData
|
|
16
16
|
} from "./chunk-5IQBFJVZ.mjs";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
castNumber
|
|
23
23
|
} from "./chunk-6GU6IDUA.mjs";
|
|
24
24
|
import "./chunk-LPEUYMRK.mjs";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-RDBROTJE.mjs";
|
|
26
26
|
import {
|
|
27
27
|
RouteDrawer
|
|
28
28
|
} from "./chunk-M6QL27ZL.mjs";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-AM2BU2RH.mjs";
|
|
7
7
|
import {
|
|
8
8
|
PRODUCT_DETAIL_FIELDS
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Y2CXBS7S.mjs";
|
|
10
10
|
import {
|
|
11
11
|
SidebarLink
|
|
12
12
|
} from "./chunk-U726TGCM.mjs";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
getFormattedCountry
|
|
20
20
|
} from "./chunk-B6ZOPCPA.mjs";
|
|
21
21
|
import "./chunk-DG7J63J2.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-34AF5R5P.mjs";
|
|
23
23
|
import "./chunk-ONB3JEHR.mjs";
|
|
24
24
|
import "./chunk-JAW6ZD7F.mjs";
|
|
25
25
|
import "./chunk-TO7QJZLE.mjs";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
FormExtensionZone,
|
|
9
9
|
useExtendableForm
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-34AF5R5P.mjs";
|
|
11
11
|
import "./chunk-ONB3JEHR.mjs";
|
|
12
12
|
import "./chunk-JAW6ZD7F.mjs";
|
|
13
13
|
import "./chunk-TO7QJZLE.mjs";
|
|
@@ -18,7 +18,7 @@ import "./chunk-D3YQN7HV.mjs";
|
|
|
18
18
|
import "./chunk-IUCDCPJU.mjs";
|
|
19
19
|
import {
|
|
20
20
|
KeyboundForm
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-B3R53QK3.mjs";
|
|
22
22
|
import "./chunk-6GU6IDUA.mjs";
|
|
23
23
|
import "./chunk-S7N7MIDZ.mjs";
|
|
24
24
|
import "./chunk-GVVNJYF3.mjs";
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import "./chunk-ULGIMHZD.mjs";
|
|
2
|
+
import "./chunk-CBSCX7RE.mjs";
|
|
3
|
+
import "./chunk-LT4MVCA7.mjs";
|
|
4
|
+
import "./chunk-B2C3RWOZ.mjs";
|
|
5
|
+
import "./chunk-TESKFHUZ.mjs";
|
|
6
|
+
import "./chunk-W7625H47.mjs";
|
|
7
|
+
import "./chunk-DLZWPHHO.mjs";
|
|
8
|
+
import "./chunk-4DZUJIAL.mjs";
|
|
9
|
+
import {
|
|
10
|
+
useProductTableAdapter
|
|
11
|
+
} from "./chunk-25A53KSK.mjs";
|
|
12
|
+
import {
|
|
13
|
+
useProductTableFilters
|
|
14
|
+
} from "./chunk-OPMQF765.mjs";
|
|
15
|
+
import {
|
|
16
|
+
DataTableFilter
|
|
17
|
+
} from "./chunk-3PLXVPOV.mjs";
|
|
18
|
+
import {
|
|
19
|
+
useColumnFilters
|
|
20
|
+
} from "./chunk-HGXZ5BJO.mjs";
|
|
21
|
+
import {
|
|
22
|
+
parseFilterParam,
|
|
23
|
+
parsePrefixedQueryParams
|
|
24
|
+
} from "./chunk-PRJK2BND.mjs";
|
|
25
|
+
import "./chunk-RIV7FKGN.mjs";
|
|
26
|
+
import "./chunk-CEYKNZTH.mjs";
|
|
27
|
+
import "./chunk-WRSGHGAT.mjs";
|
|
28
|
+
import "./chunk-MOSRJHJ3.mjs";
|
|
29
|
+
import {
|
|
30
|
+
useProductTableQuery
|
|
31
|
+
} from "./chunk-R65S6ZZV.mjs";
|
|
32
|
+
import "./chunk-UZVGDY3G.mjs";
|
|
33
|
+
import "./chunk-IFQC5X3W.mjs";
|
|
34
|
+
import {
|
|
35
|
+
useFeatureFlag
|
|
36
|
+
} from "./chunk-PJU3RODH.mjs";
|
|
37
|
+
import "./chunk-C76H5USB.mjs";
|
|
38
|
+
import {
|
|
39
|
+
useDate
|
|
40
|
+
} from "./chunk-2JYTX67H.mjs";
|
|
41
|
+
import "./chunk-OFF55HSG.mjs";
|
|
42
|
+
import {
|
|
43
|
+
RouteDrawer
|
|
44
|
+
} from "./chunk-M6QL27ZL.mjs";
|
|
45
|
+
import {
|
|
46
|
+
useRouteModal
|
|
47
|
+
} from "./chunk-GXJ5J364.mjs";
|
|
48
|
+
import "./chunk-OBQI23QM.mjs";
|
|
49
|
+
import "./chunk-WWCRED3P.mjs";
|
|
50
|
+
import "./chunk-CXRGHH7Y.mjs";
|
|
51
|
+
import "./chunk-HIX2NSSN.mjs";
|
|
52
|
+
import "./chunk-RW5LLFK2.mjs";
|
|
53
|
+
import "./chunk-2LVQXUFY.mjs";
|
|
54
|
+
import "./chunk-EYDZJ522.mjs";
|
|
55
|
+
import "./chunk-ISGDOD5J.mjs";
|
|
56
|
+
import "./chunk-U6M75BAC.mjs";
|
|
57
|
+
import "./chunk-QG545K2O.mjs";
|
|
58
|
+
import "./chunk-QIUJGXDT.mjs";
|
|
59
|
+
import "./chunk-ZB3WPQQA.mjs";
|
|
60
|
+
import "./chunk-PTP3K7TB.mjs";
|
|
61
|
+
import "./chunk-DEOCXBV2.mjs";
|
|
62
|
+
import "./chunk-2V5DOTI3.mjs";
|
|
63
|
+
import "./chunk-22ELTIVU.mjs";
|
|
64
|
+
import "./chunk-RH74EIOJ.mjs";
|
|
65
|
+
import "./chunk-2VYWSRWQ.mjs";
|
|
66
|
+
import "./chunk-D3TDNKSZ.mjs";
|
|
67
|
+
import "./chunk-OZPB6JBL.mjs";
|
|
68
|
+
import "./chunk-OC7BQLYI.mjs";
|
|
69
|
+
import "./chunk-S4DMV3ZT.mjs";
|
|
70
|
+
import {
|
|
71
|
+
useEntityColumns
|
|
72
|
+
} from "./chunk-ACQJSQ5A.mjs";
|
|
73
|
+
import "./chunk-SH6DEX5S.mjs";
|
|
74
|
+
import "./chunk-DSBMVN2K.mjs";
|
|
75
|
+
import "./chunk-4FZLRC2F.mjs";
|
|
76
|
+
import "./chunk-3C2RPYDJ.mjs";
|
|
77
|
+
import "./chunk-4SIZ37QP.mjs";
|
|
78
|
+
import "./chunk-CHQR6GOM.mjs";
|
|
79
|
+
import "./chunk-HWLVYKUO.mjs";
|
|
80
|
+
import "./chunk-BGQF2VTH.mjs";
|
|
81
|
+
import "./chunk-EMDIIWVL.mjs";
|
|
82
|
+
import "./chunk-YDJ774GR.mjs";
|
|
83
|
+
import "./chunk-SKQPG6BC.mjs";
|
|
84
|
+
import "./chunk-5N2B66CN.mjs";
|
|
85
|
+
import {
|
|
86
|
+
useExportProducts
|
|
87
|
+
} from "./chunk-2G6AYJ2P.mjs";
|
|
88
|
+
import "./chunk-HGRIOEAR.mjs";
|
|
89
|
+
import "./chunk-SEMVMECK.mjs";
|
|
90
|
+
import "./chunk-NFEK63OE.mjs";
|
|
91
|
+
import "./chunk-QZ7TP4HQ.mjs";
|
|
92
|
+
|
|
93
|
+
// src/routes/products/product-export/product-export.tsx
|
|
94
|
+
import { Button, Heading as Heading2, toast } from "@medusajs/ui";
|
|
95
|
+
import { useSearchParams as useSearchParams2 } from "react-router-dom";
|
|
96
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
97
|
+
|
|
98
|
+
// src/routes/products/product-export/components/export-filters.tsx
|
|
99
|
+
import { Heading, Text as Text2 } from "@medusajs/ui";
|
|
100
|
+
import { useTranslation } from "react-i18next";
|
|
101
|
+
|
|
102
|
+
// src/routes/products/product-export/components/configurable-export-filters.tsx
|
|
103
|
+
import { Text } from "@medusajs/ui";
|
|
104
|
+
import { useMemo } from "react";
|
|
105
|
+
import { useSearchParams } from "react-router-dom";
|
|
106
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
107
|
+
var OPERATOR_LABELS = {
|
|
108
|
+
$eq: "=",
|
|
109
|
+
$gt: ">",
|
|
110
|
+
$gte: "\u2265",
|
|
111
|
+
$lt: "<",
|
|
112
|
+
$lte: "\u2264"
|
|
113
|
+
};
|
|
114
|
+
var ConfigurableExportFilters = () => {
|
|
115
|
+
const adapter = useProductTableAdapter();
|
|
116
|
+
const [searchParams] = useSearchParams();
|
|
117
|
+
const { getFullDate } = useDate();
|
|
118
|
+
const { columns } = useEntityColumns(adapter.entity);
|
|
119
|
+
const apiColumns = useMemo(() => {
|
|
120
|
+
return columns && adapter.transformColumns ? adapter.transformColumns(columns) : columns;
|
|
121
|
+
}, [adapter, columns]);
|
|
122
|
+
const { filters } = useColumnFilters(apiColumns);
|
|
123
|
+
const activeFilters = filters.flatMap((filter) => {
|
|
124
|
+
const value = parseFilterParam(
|
|
125
|
+
searchParams.get(`${adapter.queryPrefix}_${filter.id}`)
|
|
126
|
+
);
|
|
127
|
+
if (value === void 0) {
|
|
128
|
+
return [];
|
|
129
|
+
}
|
|
130
|
+
return [
|
|
131
|
+
{
|
|
132
|
+
id: filter.id,
|
|
133
|
+
label: filter.label,
|
|
134
|
+
value: formatFilterValue(
|
|
135
|
+
filter,
|
|
136
|
+
value,
|
|
137
|
+
(date) => getFullDate({ date })
|
|
138
|
+
)
|
|
139
|
+
}
|
|
140
|
+
];
|
|
141
|
+
});
|
|
142
|
+
return /* @__PURE__ */ jsx("div", { className: "flex flex-wrap items-center gap-2", children: activeFilters.map((filter) => /* @__PURE__ */ jsxs(
|
|
143
|
+
"div",
|
|
144
|
+
{
|
|
145
|
+
className: "bg-ui-bg-field shadow-borders-base text-ui-fg-subtle flex items-stretch overflow-hidden rounded-md",
|
|
146
|
+
children: [
|
|
147
|
+
/* @__PURE__ */ jsx(
|
|
148
|
+
Text,
|
|
149
|
+
{
|
|
150
|
+
size: "small",
|
|
151
|
+
weight: "plus",
|
|
152
|
+
leading: "compact",
|
|
153
|
+
className: "whitespace-nowrap border-r px-2 py-1",
|
|
154
|
+
children: filter.label
|
|
155
|
+
}
|
|
156
|
+
),
|
|
157
|
+
/* @__PURE__ */ jsx(
|
|
158
|
+
Text,
|
|
159
|
+
{
|
|
160
|
+
size: "small",
|
|
161
|
+
weight: "plus",
|
|
162
|
+
leading: "compact",
|
|
163
|
+
className: "truncate px-2 py-1",
|
|
164
|
+
children: filter.value
|
|
165
|
+
}
|
|
166
|
+
)
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
filter.id
|
|
170
|
+
)) });
|
|
171
|
+
};
|
|
172
|
+
var formatFilterValue = (filter, value, formatDate) => {
|
|
173
|
+
const options = "options" in filter ? filter.options : void 0;
|
|
174
|
+
const getLabel = (v) => options?.find((option) => option.value === v)?.label ?? String(v);
|
|
175
|
+
if (Array.isArray(value)) {
|
|
176
|
+
return value.map(getLabel).join(", ");
|
|
177
|
+
}
|
|
178
|
+
if (value && typeof value === "object") {
|
|
179
|
+
return Object.entries(value).map(([operator, operand]) => {
|
|
180
|
+
const formatted = filter.type === "date" ? formatDate(operand) : String(operand);
|
|
181
|
+
return `${OPERATOR_LABELS[operator] ?? operator} ${formatted}`;
|
|
182
|
+
}).join(", ");
|
|
183
|
+
}
|
|
184
|
+
return getLabel(value);
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
// src/routes/products/product-export/components/export-filters.tsx
|
|
188
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
189
|
+
var ExportFilters = () => {
|
|
190
|
+
const { t } = useTranslation();
|
|
191
|
+
const isViewConfigEnabled = useFeatureFlag("view_configurations");
|
|
192
|
+
return /* @__PURE__ */ jsxs2("div", { children: [
|
|
193
|
+
/* @__PURE__ */ jsx2(Heading, { level: "h2", children: t("products.export.filters.title") }),
|
|
194
|
+
/* @__PURE__ */ jsx2(Text2, { size: "small", className: "text-ui-fg-subtle", children: t("products.export.filters.description") }),
|
|
195
|
+
/* @__PURE__ */ jsx2("div", { className: "mt-4", children: isViewConfigEnabled ? /* @__PURE__ */ jsx2(ConfigurableExportFilters, {}) : /* @__PURE__ */ jsx2(LegacyExportFilters, {}) })
|
|
196
|
+
] });
|
|
197
|
+
};
|
|
198
|
+
var LegacyExportFilters = () => {
|
|
199
|
+
const filters = useProductTableFilters();
|
|
200
|
+
return /* @__PURE__ */ jsx2(DataTableFilter, { filters, readonly: true });
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
// src/routes/products/product-export/product-export.tsx
|
|
204
|
+
import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
205
|
+
var ProductExport = () => {
|
|
206
|
+
const { t } = useTranslation2();
|
|
207
|
+
return /* @__PURE__ */ jsxs3(RouteDrawer, { children: [
|
|
208
|
+
/* @__PURE__ */ jsxs3(RouteDrawer.Header, { children: [
|
|
209
|
+
/* @__PURE__ */ jsx3(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx3(Heading2, { children: t("products.export.header") }) }),
|
|
210
|
+
/* @__PURE__ */ jsx3(RouteDrawer.Description, { className: "sr-only", children: t("products.export.description") })
|
|
211
|
+
] }),
|
|
212
|
+
/* @__PURE__ */ jsx3(ProductExportContent, {})
|
|
213
|
+
] });
|
|
214
|
+
};
|
|
215
|
+
var ProductExportContent = () => {
|
|
216
|
+
const { t } = useTranslation2();
|
|
217
|
+
const exportQuery = useExportQuery();
|
|
218
|
+
const { mutateAsync } = useExportProducts();
|
|
219
|
+
const { handleSuccess } = useRouteModal();
|
|
220
|
+
const handleExportRequest = async () => {
|
|
221
|
+
await mutateAsync(
|
|
222
|
+
{
|
|
223
|
+
payload: {},
|
|
224
|
+
query: exportQuery
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
onSuccess: () => {
|
|
228
|
+
toast.info(t("products.export.success.title"), {
|
|
229
|
+
description: t("products.export.success.description")
|
|
230
|
+
});
|
|
231
|
+
handleSuccess();
|
|
232
|
+
},
|
|
233
|
+
onError: (err) => {
|
|
234
|
+
toast.error(err.message);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
);
|
|
238
|
+
};
|
|
239
|
+
return /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
240
|
+
/* @__PURE__ */ jsx3(RouteDrawer.Body, { children: /* @__PURE__ */ jsx3(ExportFilters, {}) }),
|
|
241
|
+
/* @__PURE__ */ jsx3(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-2", children: [
|
|
242
|
+
/* @__PURE__ */ jsx3(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx3(Button, { size: "small", variant: "secondary", children: t("actions.cancel") }) }),
|
|
243
|
+
/* @__PURE__ */ jsx3(Button, { onClick: handleExportRequest, size: "small", children: t("actions.export") })
|
|
244
|
+
] }) })
|
|
245
|
+
] });
|
|
246
|
+
};
|
|
247
|
+
var PRODUCT_TABLE_QUERY_PREFIX = "p";
|
|
248
|
+
var useExportQuery = () => {
|
|
249
|
+
const isViewConfigEnabled = useFeatureFlag("view_configurations");
|
|
250
|
+
const [urlSearchParams] = useSearchParams2();
|
|
251
|
+
const { searchParams } = useProductTableQuery({});
|
|
252
|
+
if (isViewConfigEnabled) {
|
|
253
|
+
return parsePrefixedQueryParams(urlSearchParams, PRODUCT_TABLE_QUERY_PREFIX);
|
|
254
|
+
}
|
|
255
|
+
const { fields: _fields, ...query } = searchParams;
|
|
256
|
+
return query;
|
|
257
|
+
};
|
|
258
|
+
export {
|
|
259
|
+
ProductExport as Component
|
|
260
|
+
};
|