@medusajs/dashboard 3.0.0-snapshot-20251114155958 → 3.0.0-snapshot-20251126221441
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/{adjust-inventory-ZB3AVET7.mjs → adjust-inventory-WZOCLB5V.mjs} +1 -1
- package/dist/{api-key-management-create-U6VGZK7R.mjs → api-key-management-create-W7NL2IYN.mjs} +3 -3
- package/dist/{api-key-management-detail-B5XNEGKF.mjs → api-key-management-detail-3F77JKQT.mjs} +13 -13
- package/dist/{api-key-management-edit-TJM737A7.mjs → api-key-management-edit-TLVLXAVK.mjs} +3 -3
- package/dist/{api-key-management-list-ZRYMMTF5.mjs → api-key-management-list-FTLC3ELT.mjs} +3 -3
- package/dist/{api-key-management-sales-channels-D2RAHI7W.mjs → api-key-management-sales-channels-NYY3NZOE.mjs} +4 -4
- package/dist/app.css +3 -3
- package/dist/app.js +16021 -17376
- package/dist/app.mjs +11 -11
- package/dist/{campaign-create-IXOWJQ4L.mjs → campaign-create-LHL7FKQK.mjs} +3 -3
- package/dist/{campaign-detail-RCA3TBE4.mjs → campaign-detail-G2FIHVM2.mjs} +10 -10
- package/dist/{categories-metadata-5NBC7HX4.mjs → categories-metadata-YEF2WFML.mjs} +10 -10
- package/dist/{category-create-BTMZYQ5R.mjs → category-create-ELMCLH4J.mjs} +5 -5
- package/dist/{category-detail-RBUJVFPN.mjs → category-detail-ORXA4DBA.mjs} +14 -14
- package/dist/{category-edit-Q3KEELHO.mjs → category-edit-TYKLEYGE.mjs} +2 -2
- package/dist/{category-list-Z6HS6N75.mjs → category-list-IJ3DLPYQ.mjs} +5 -5
- package/dist/{category-organize-45NPSRNG.mjs → category-organize-PDLC54E2.mjs} +2 -2
- package/dist/{category-products-KREOO2KQ.mjs → category-products-GXTUJNT6.mjs} +13 -13
- package/dist/{chunk-SAZHCRHS.mjs → chunk-2PZVZSZW.mjs} +1 -1
- package/dist/{chunk-NFEW5CVI.mjs → chunk-3C6WQ7NH.mjs} +3 -37
- package/dist/{chunk-KF22R23X.mjs → chunk-3UOOSL7Y.mjs} +1 -1
- package/dist/{chunk-BYZSMXJ7.mjs → chunk-4DDI2KIE.mjs} +1 -1
- package/dist/{chunk-5N33TBBX.mjs → chunk-56TDUOXV.mjs} +1 -1
- package/dist/{chunk-67RC6SEX.mjs → chunk-5LGRZSEH.mjs} +1 -1
- package/dist/{chunk-W4TIFG3A.mjs → chunk-6KMZSZIA.mjs} +5 -5
- package/dist/{chunk-P23S5LDK.mjs → chunk-7V2JZU2B.mjs} +2 -2
- package/dist/{chunk-GHBURGZC.mjs → chunk-A6PWH2CK.mjs} +1 -1
- package/dist/{chunk-KJU3T6BK.mjs → chunk-AEMKNDRM.mjs} +2 -2
- package/dist/{chunk-QW4SQVMT.mjs → chunk-AENRV3N7.mjs} +50 -109
- package/dist/{chunk-O5DGX2NZ.mjs → chunk-AF7A24XI.mjs} +1 -1
- package/dist/{chunk-F7LJJHQT.mjs → chunk-C7F7MMXS.mjs} +1 -0
- package/dist/{chunk-CWIMWR6L.mjs → chunk-D6DIMX3W.mjs} +15 -15
- package/dist/{chunk-3RRA56WC.mjs → chunk-DODQ3KJT.mjs} +3 -8
- package/dist/{chunk-FJHAGJ5G.mjs → chunk-ETOJCN3Q.mjs} +1 -1
- package/dist/{chunk-YVQIO3JS.mjs → chunk-GYHQTVXN.mjs} +236 -318
- package/dist/{chunk-FNQ227BC.mjs → chunk-K5QWNI6V.mjs} +1 -1
- package/dist/{chunk-ZOJRDXH3.mjs → chunk-KC64IT2X.mjs} +1 -1
- package/dist/{chunk-K75OQ7QA.mjs → chunk-KHNOLBMA.mjs} +2 -2
- package/dist/{chunk-MOGV3UZD.mjs → chunk-KLNRCI3K.mjs} +1 -1
- package/dist/{chunk-YGEJFHC3.mjs → chunk-M3CKVBZC.mjs} +1 -1
- package/dist/{chunk-VW34SZWE.mjs → chunk-MDVO5GXZ.mjs} +2 -2
- package/dist/{chunk-7H6DB666.mjs → chunk-O4RZ3Y65.mjs} +1 -1
- package/dist/{chunk-5AM254NB.mjs → chunk-OFN7DIZA.mjs} +3 -83
- package/dist/{chunk-42TMWI76.mjs → chunk-OXPE5TAY.mjs} +1 -1
- package/dist/{chunk-NZNJSGGE.mjs → chunk-SIR4PJ4E.mjs} +3 -3
- package/dist/{chunk-QPJUVTKW.mjs → chunk-SWS2BE3M.mjs} +1 -1
- package/dist/{chunk-OMRGW7JS.mjs → chunk-T2ANPJ36.mjs} +3 -3
- package/dist/{chunk-ZE34KAKV.mjs → chunk-U63NCO35.mjs} +2 -2
- package/dist/{chunk-2WLOIS3L.mjs → chunk-WGRVE7KY.mjs} +21 -2
- package/dist/{chunk-BKJMQ6RP.mjs → chunk-WYITLR2E.mjs} +1 -1
- package/dist/{chunk-Y5TTJDGO.mjs → chunk-ZT7CR32D.mjs} +1 -1
- package/dist/{collection-add-products-KM4VO5G5.mjs → collection-add-products-D2KOVZPZ.mjs} +14 -14
- package/dist/{collection-create-RIGJHEX5.mjs → collection-create-I2A2X4VK.mjs} +2 -2
- package/dist/{collection-detail-MLVNULUS.mjs → collection-detail-ZT535E5T.mjs} +14 -14
- package/dist/{collection-edit-WX5G3FHR.mjs → collection-edit-RGH7NCUE.mjs} +2 -2
- package/dist/{collection-list-KWAHQGFE.mjs → collection-list-53JPFHPN.mjs} +23 -24
- package/dist/{collection-metadata-OMFOP3LA.mjs → collection-metadata-SQCA35II.mjs} +11 -11
- package/dist/{customer-detail-SVDGB2QD.mjs → customer-detail-W55EJ6LX.mjs} +14 -14
- package/dist/{customer-group-detail-OCQTI4GG.mjs → customer-group-detail-2WFTU5KU.mjs} +13 -13
- package/dist/{customer-group-list-K5MTMFLG.mjs → customer-group-list-GLF37WEN.mjs} +13 -13
- package/dist/{customers-add-customer-group-2LLBHTX3.mjs → customers-add-customer-group-KXT7RDV3.mjs} +13 -13
- package/dist/{edit-inventory-item-O6JLGZE4.mjs → edit-inventory-item-LMDNUI6M.mjs} +1 -1
- package/dist/{edit-inventory-item-attributes-AUVR3GYY.mjs → edit-inventory-item-attributes-DPJIHBP3.mjs} +1 -1
- package/dist/{edit-reservation-GQ6R6GVA.mjs → edit-reservation-IOOZBJ2T.mjs} +2 -2
- package/dist/{edit-rules-G7YMD5RC.mjs → edit-rules-7TG76PR3.mjs} +12 -12
- package/dist/en.json +3 -49
- package/dist/{inventory-create-GMFEGLE4.mjs → inventory-create-NQUETR3V.mjs} +10 -10
- package/dist/{inventory-detail-3BTAVXLJ.mjs → inventory-detail-ADLVUQJM.mjs} +10 -10
- package/dist/{inventory-list-ADJQDNX5.mjs → inventory-list-RQBI7UJX.mjs} +1 -1
- package/dist/{inventory-metadata-JJBXLQJG.mjs → inventory-metadata-45YATS7H.mjs} +10 -10
- package/dist/{inventory-stock-RHLN6ARK.mjs → inventory-stock-UG3CW3TM.mjs} +10 -10
- package/dist/{location-detail-F5QYFPUH.mjs → location-detail-BBPTVSP5.mjs} +15 -15
- package/dist/{location-fulfillment-providers-7JXNE6YT.mjs → location-fulfillment-providers-6AHWONY4.mjs} +14 -15
- package/dist/{location-sales-channels-JPH5BTUY.mjs → location-sales-channels-UVYT52SH.mjs} +3 -3
- package/dist/{location-service-zone-shipping-option-create-7VTPJAPA.mjs → location-service-zone-shipping-option-create-WEIDYZZT.mjs} +11 -11
- package/dist/{location-service-zone-shipping-option-edit-OYTEZGGC.mjs → location-service-zone-shipping-option-edit-TQNTCYII.mjs} +4 -4
- package/dist/{login-BGH5LSM4.mjs → login-VQ7YFW6V.mjs} +10 -10
- package/dist/{manage-locations-ATCDVTSR.mjs → manage-locations-2VDQ3ILT.mjs} +1 -1
- package/dist/{order-allocate-items-PHIW64XK.mjs → order-allocate-items-SSDLHV7A.mjs} +3 -3
- package/dist/{order-create-claim-NPQ6E5DR.mjs → order-create-claim-RAGNQ2RR.mjs} +18 -18
- package/dist/{order-create-edit-R4ZITC5I.mjs → order-create-edit-PRJWTWWE.mjs} +31 -16
- package/dist/{order-create-exchange-6XPYKVYN.mjs → order-create-exchange-DRSFEEL3.mjs} +60 -34
- package/dist/{order-create-fulfillment-7DVPBUES.mjs → order-create-fulfillment-URKHLFR7.mjs} +14 -14
- package/dist/{order-create-refund-7KEOYZTF.mjs → order-create-refund-VZG3UXLV.mjs} +15 -15
- package/dist/{order-create-return-J23AFCKP.mjs → order-create-return-P3OCXJSI.mjs} +6 -6
- package/dist/{order-create-shipment-KNXCANID.mjs → order-create-shipment-QZBUE342.mjs} +10 -10
- package/dist/{order-detail-7ATBL7GN.mjs → order-detail-32Y6JK42.mjs} +31 -31
- package/dist/{order-edit-billing-address-VS75YMUY.mjs → order-edit-billing-address-MUICLYNN.mjs} +11 -11
- package/dist/{order-edit-email-GEE7SF2E.mjs → order-edit-email-ADNCGCS3.mjs} +11 -11
- package/dist/{order-edit-shipping-address-HSRXSRLU.mjs → order-edit-shipping-address-NZF3KMVV.mjs} +11 -11
- package/dist/{order-list-GJTJHLZF.mjs → order-list-33SMDKZD.mjs} +5 -4
- package/dist/{order-metadata-LUBKP5Y4.mjs → order-metadata-UEKHMTAD.mjs} +10 -10
- package/dist/{order-receive-return-FLI44JN2.mjs → order-receive-return-5SB26KCQ.mjs} +11 -11
- package/dist/{order-request-transfer-NH2XCHMV.mjs → order-request-transfer-QS3LMEBW.mjs} +12 -12
- package/dist/{price-list-configuration-SS2VMD4N.mjs → price-list-configuration-CZPMKLNL.mjs} +4 -4
- package/dist/{price-list-create-DZR7JCDG.mjs → price-list-create-2YZRNBRI.mjs} +17 -17
- package/dist/{price-list-detail-4INABJQQ.mjs → price-list-detail-EGGLDH5B.mjs} +24 -20
- package/dist/{price-list-edit-VRI5T4W3.mjs → price-list-edit-3VNSZH4F.mjs} +2 -2
- package/dist/{price-list-list-S2HWTXKV.mjs → price-list-list-AU4IVCQN.mjs} +34 -18
- package/dist/{price-list-prices-add-DO43IEAD.mjs → price-list-prices-add-YRXYOXUG.mjs} +16 -14
- package/dist/{price-list-prices-edit-TRCLLGU4.mjs → price-list-prices-edit-UHOZKA75.mjs} +5 -3
- package/dist/{product-attributes-D6MNCAJB.mjs → product-attributes-W2PIZ6AU.mjs} +12 -12
- package/dist/{product-create-JQQTUEQL.mjs → product-create-UY3QXGNY.mjs} +554 -377
- package/dist/product-create-option-GAEPSU6J.mjs +145 -0
- package/dist/{product-create-variant-6UQRMACE.mjs → product-create-variant-RQEPRPG5.mjs} +11 -11
- package/dist/{product-detail-JMOULY3O.mjs → product-detail-FOLQUXCM.mjs} +54 -38
- package/dist/{product-edit-CC4OUBEC.mjs → product-edit-WRONAZ5F.mjs} +12 -12
- package/dist/product-edit-option-VIU3ZICO.mjs +150 -0
- package/dist/{product-export-BVREOXJT.mjs → product-export-ITQPBLG7.mjs} +22 -23
- package/dist/{product-image-variants-edit-7BBTFZO7.mjs → product-image-variants-edit-P2ZWO6DN.mjs} +10 -10
- package/dist/{product-import-UEXWOHOZ.mjs → product-import-WEHFNQXM.mjs} +10 -10
- package/dist/{product-list-RHHY3NAS.mjs → product-list-7QL2GZEA.mjs} +17 -17
- package/dist/{product-media-EKXMOSO4.mjs → product-media-WCLPCVR3.mjs} +2 -2
- package/dist/{product-metadata-DU2CNDKQ.mjs → product-metadata-LP3B3LXR.mjs} +10 -10
- package/dist/{product-organization-HU6YVPPV.mjs → product-organization-GKKUOJQV.mjs} +14 -14
- package/dist/{product-prices-UMEIS5AZ.mjs → product-prices-MKMKBH6P.mjs} +1 -1
- package/dist/{product-sales-channels-2SALTLTF.mjs → product-sales-channels-5YIO22UW.mjs} +3 -3
- package/dist/{product-shipping-profile-T4ZKHINJ.mjs → product-shipping-profile-GOESXQYV.mjs} +13 -13
- package/dist/{product-stock-CKBS4YDA.mjs → product-stock-KZ5NJINL.mjs} +10 -10
- package/dist/{product-tag-create-GFGPI7ML.mjs → product-tag-create-KOTNIDPO.mjs} +10 -10
- package/dist/{product-tag-detail-TTEWVF3I.mjs → product-tag-detail-4NEU4CQ4.mjs} +27 -28
- package/dist/{product-tag-edit-3XNTLATZ.mjs → product-tag-edit-UBVJB75M.mjs} +10 -10
- package/dist/{product-tag-list-24IJRVFR.mjs → product-tag-list-2JDK7DBC.mjs} +25 -26
- package/dist/{product-tag-metadata-JANWHZ3K.mjs → product-tag-metadata-H4QYJB5I.mjs} +10 -10
- package/dist/{product-type-detail-MAUHCM3C.mjs → product-type-detail-QSKBQZOO.mjs} +13 -13
- package/dist/{product-type-metadata-FAKUWQQF.mjs → product-type-metadata-OSGO33SD.mjs} +10 -10
- package/dist/{product-variant-detail-WHPECDUY.mjs → product-variant-detail-ATHRI3BX.mjs} +10 -10
- package/dist/{product-variant-edit-GR4RNE5G.mjs → product-variant-edit-457GNHH5.mjs} +11 -11
- package/dist/{product-variant-manage-inventory-items-IGDCLZQE.mjs → product-variant-manage-inventory-items-B7TUBSD5.mjs} +2 -2
- package/dist/{product-variant-media-EKI4BTEV.mjs → product-variant-media-6WWLRINP.mjs} +1 -1
- package/dist/{product-variant-metadata-DA2HKXXB.mjs → product-variant-metadata-GOUTYBDT.mjs} +10 -10
- package/dist/{promotion-add-campaign-DOALJUKJ.mjs → promotion-add-campaign-MKDYE7MW.mjs} +3 -3
- package/dist/{promotion-create-GGZULF2B.mjs → promotion-create-WCECPK2G.mjs} +18 -18
- package/dist/{promotion-detail-XK7U73XH.mjs → promotion-detail-JBM2LBZ4.mjs} +10 -10
- package/dist/{refund-reason-create-H7MHJ5C5.mjs → refund-reason-create-IAOKE37M.mjs} +10 -10
- package/dist/{refund-reason-edit-QY36CQVS.mjs → refund-reason-edit-D2VDINGV.mjs} +10 -10
- package/dist/{refund-reason-list-KSQW33QC.mjs → refund-reason-list-Q4TU7OVA.mjs} +13 -13
- package/dist/{region-create-UVJICJRX.mjs → region-create-QLPSK6TX.mjs} +1 -1
- package/dist/{region-edit-3NVXQECN.mjs → region-edit-JCJHA6TY.mjs} +1 -1
- package/dist/{region-metadata-4KQG6UL6.mjs → region-metadata-YLNPW7CL.mjs} +10 -10
- package/dist/{reservation-create-Z7TWUE2L.mjs → reservation-create-BW4CDTWR.mjs} +3 -3
- package/dist/{reservation-detail-W3FULMXT.mjs → reservation-detail-SMO3C2R5.mjs} +10 -10
- package/dist/{reservation-list-MN22JYAW.mjs → reservation-list-RGL67CIU.mjs} +2 -2
- package/dist/{reservation-metadata-AKAN5XNE.mjs → reservation-metadata-KU5AJF7S.mjs} +10 -10
- package/dist/{sales-channel-add-products-POHTQHMV.mjs → sales-channel-add-products-WGRIVVJA.mjs} +13 -13
- package/dist/{sales-channel-create-UFFXX5HK.mjs → sales-channel-create-TOBEDYFD.mjs} +2 -2
- package/dist/{sales-channel-detail-AACIFU2E.mjs → sales-channel-detail-VSTGXEZD.mjs} +13 -13
- package/dist/{sales-channel-edit-SP2HF4E3.mjs → sales-channel-edit-XUTE5GB5.mjs} +2 -2
- package/dist/{sales-channel-list-BY3KTVV6.mjs → sales-channel-list-2LXIRNZP.mjs} +11 -11
- package/dist/{sales-channel-metadata-KGOLI4BZ.mjs → sales-channel-metadata-RZMQYG4F.mjs} +10 -10
- package/dist/{shipping-option-type-create-PSQZW3RN.mjs → shipping-option-type-create-EQPBH6EA.mjs} +10 -10
- package/dist/{shipping-option-type-detail-WAW6TKJU.mjs → shipping-option-type-detail-BCCCVIIJ.mjs} +11 -11
- package/dist/{shipping-option-type-edit-2I44YHND.mjs → shipping-option-type-edit-CGTJ3HAR.mjs} +10 -10
- package/dist/{shipping-option-type-list-F4FRLW3P.mjs → shipping-option-type-list-3TLR4QZF.mjs} +11 -11
- package/dist/{shipping-profile-metadata-AZXPMPHG.mjs → shipping-profile-metadata-JSRQPOAD.mjs} +10 -10
- package/dist/{store-detail-AKRR64I6.mjs → store-detail-H53F5ESM.mjs} +10 -10
- package/dist/{store-edit-Q25HCMCQ.mjs → store-edit-3XS6IC2Z.mjs} +1 -1
- package/dist/{store-metadata-VLEDLAIJ.mjs → store-metadata-GHSJRHAV.mjs} +10 -10
- package/dist/{tax-region-create-JTM53LCS.mjs → tax-region-create-HYT3EOQO.mjs} +11 -11
- package/dist/{tax-region-detail-XBFYCVSH.mjs → tax-region-detail-TQS5425G.mjs} +28 -29
- package/dist/{tax-region-edit-2RRF7C7P.mjs → tax-region-edit-ZB36A456.mjs} +11 -11
- package/dist/{tax-region-province-detail-LGCYSFKE.mjs → tax-region-province-detail-CABVSQRU.mjs} +28 -29
- package/dist/{tax-region-tax-override-create-2W25EZNZ.mjs → tax-region-tax-override-create-ROK47GNE.mjs} +27 -28
- package/dist/{tax-region-tax-override-edit-ZSYNTYUG.mjs → tax-region-tax-override-edit-WRODO4LC.mjs} +26 -27
- package/dist/{user-detail-K5UMPO2L.mjs → user-detail-N6PT3KRP.mjs} +1 -1
- package/dist/{user-metadata-KOGHOQTW.mjs → user-metadata-DKZHLCPN.mjs} +10 -10
- package/dist/{workflow-execution-detail-4QAQ44YB.mjs → workflow-execution-detail-BQEMJSH6.mjs} +10 -10
- package/package.json +11 -11
- package/src/components/inputs/combobox/combobox.tsx +92 -173
- package/src/components/layout/main-layout/main-layout.tsx +4 -7
- package/src/dashboard-app/routes/get-route.map.tsx +12 -64
- package/src/hooks/api/index.ts +0 -1
- package/src/hooks/api/price-lists.tsx +32 -1
- package/src/hooks/api/products.tsx +66 -26
- package/src/hooks/table/filters/index.ts +0 -1
- package/src/i18n/translations/$schema.json +4 -172
- package/src/i18n/translations/en.json +3 -49
- package/src/routes/orders/order-create-edit/components/order-edit-create-form/order-edit-item.tsx +28 -3
- package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-inbound-item.tsx +29 -4
- package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-outbound-item.tsx +23 -4
- package/src/routes/orders/order-detail/constants.ts +1 -0
- package/src/routes/orders/order-list/const.ts +1 -0
- package/src/routes/price-lists/price-list-detail/components/price-list-general-section/price-list-general-section.tsx +10 -4
- package/src/routes/price-lists/price-list-list/components/price-list-list-table/price-count-cell.tsx +19 -0
- package/src/routes/price-lists/price-list-list/components/price-list-list-table/use-pricing-table-columns.tsx +5 -6
- package/src/routes/price-lists/price-list-prices-add/price-list-prices-add.tsx +4 -1
- package/src/routes/price-lists/price-list-prices-edit/price-list-prices-edit.tsx +3 -1
- package/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-general-section/product-create-general-section.tsx +4 -16
- package/src/routes/products/product-create/components/product-create-details-form/components/product-create-details-variant-section/product-create-details-variant-section.tsx +198 -220
- package/src/routes/products/product-create/components/product-create-form/product-create-form.tsx +7 -4
- package/src/routes/products/product-create/constants.ts +0 -2
- package/src/routes/products/product-create/utils.ts +1 -6
- package/src/routes/products/product-create-option/components/create-product-option-form/create-product-option-form.tsx +122 -0
- package/src/routes/products/product-create-option/components/create-product-option-form/index.ts +1 -0
- package/src/routes/products/product-create-option/index.ts +1 -0
- package/src/routes/products/product-create-option/product-create-option.tsx +26 -0
- package/src/routes/products/product-detail/components/product-option-section/product-option-section.tsx +49 -31
- package/src/routes/products/product-edit-option/components/edit-product-option-form/edit-product-option-form.tsx +123 -0
- package/src/routes/products/product-edit-option/components/edit-product-option-form/index.ts +1 -0
- package/src/routes/products/product-edit-option/index.ts +1 -0
- package/src/routes/products/product-edit-option/product-edit-option.tsx +32 -0
- package/dist/chunk-ZHH3W7CN.mjs +0 -171
- package/dist/product-option-create-ML66ZKF3.mjs +0 -336
- package/dist/product-option-detail-DT7HJF5Q.mjs +0 -322
- package/dist/product-option-edit-GUKWRQQH.mjs +0 -324
- package/dist/product-option-list-KF3JSQ6Y.mjs +0 -262
- package/dist/product-option-metadata-BWWRRSAW.mjs +0 -71
- package/dist/product-options-manage-QYWBIHJA.mjs +0 -304
- package/src/hooks/api/product-options.tsx +0 -151
- package/src/hooks/table/columns/use-product-option-table-columns.tsx +0 -44
- package/src/hooks/table/filters/use-product-option-table-filters.tsx +0 -33
- package/src/hooks/table/query/use-product-option-table-query.tsx +0 -34
- package/src/routes/product-options/common/hooks/use-delete-product-option-action.tsx +0 -41
- package/src/routes/product-options/product-option-create/components/create-product-option-form/create-product-option-details.tsx +0 -71
- package/src/routes/product-options/product-option-create/components/create-product-option-form/create-product-option-form.tsx +0 -192
- package/src/routes/product-options/product-option-create/components/create-product-option-form/create-product-option-organize.tsx +0 -77
- package/src/routes/product-options/product-option-create/components/create-product-option-form/index.ts +0 -1
- package/src/routes/product-options/product-option-create/components/create-product-option-form/schema.ts +0 -15
- package/src/routes/product-options/product-option-create/index.ts +0 -1
- package/src/routes/product-options/product-option-create/product-option-create.tsx +0 -10
- package/src/routes/product-options/product-option-detail/breadcrumb.tsx +0 -14
- package/src/routes/product-options/product-option-detail/components/product-option-general-section/index.ts +0 -1
- package/src/routes/product-options/product-option-detail/components/product-option-general-section/product-option-general-section.tsx +0 -81
- package/src/routes/product-options/product-option-detail/components/product-option-product-section/index.ts +0 -1
- package/src/routes/product-options/product-option-detail/components/product-option-product-section/product-option-product-section.tsx +0 -74
- package/src/routes/product-options/product-option-detail/index.ts +0 -3
- package/src/routes/product-options/product-option-detail/loader.ts +0 -17
- package/src/routes/product-options/product-option-detail/product-option-detail.tsx +0 -50
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/edit-product-option-details.tsx +0 -94
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/edit-product-option-form.tsx +0 -116
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/edit-product-option-organize.tsx +0 -77
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/index.ts +0 -1
- package/src/routes/product-options/product-option-edit/components/edit-product-option-form/schema.ts +0 -13
- package/src/routes/product-options/product-option-edit/index.ts +0 -1
- package/src/routes/product-options/product-option-edit/product-option-edit.tsx +0 -34
- package/src/routes/product-options/product-option-list/components/product-option-list-table/index.ts +0 -1
- package/src/routes/product-options/product-option-list/components/product-option-list-table/product-option-list-table.tsx +0 -131
- package/src/routes/product-options/product-option-list/index.ts +0 -1
- package/src/routes/product-options/product-option-list/product-option-list.tsx +0 -19
- package/src/routes/product-options/product-option-metadata/index.ts +0 -1
- package/src/routes/product-options/product-option-metadata/product-option-metadata.tsx +0 -27
- package/src/routes/products/product-options-manage/components/product-options-manage-form/index.ts +0 -1
- package/src/routes/products/product-options-manage/components/product-options-manage-form/product-options-manage-form.tsx +0 -284
- package/src/routes/products/product-options-manage/index.ts +0 -1
- package/src/routes/products/product-options-manage/product-options-manage.tsx +0 -35
- package/dist/{chunk-2QH2TBJ2.mjs → chunk-ACJ3PPQJ.mjs} +3 -3
- package/dist/{customer-group-add-customers-2Y2GVCDV.mjs → customer-group-add-customers-QU4Q56SS.mjs} +3 -3
- package/dist/{customer-list-TG4D4QOT.mjs → customer-list-ZXCGIXJC.mjs} +3 -3
- package/dist/{location-list-ZJMZZ6T3.mjs → location-list-OYBI7EGV.mjs} +1 -1
- package/dist/{product-type-list-7WQ5D2KV.mjs → product-type-list-QX7QC6RI.mjs} +3 -3
- package/dist/{region-list-JAQXIBYD.mjs → region-list-XQRIBDMF.mjs} +3 -3
- package/dist/{return-reason-list-ATE2XU4H.mjs → return-reason-list-VYLLXDG4.mjs} +3 -3
- package/dist/{user-list-KPI3BTOA.mjs → user-list-6KATHOTJ.mjs} +3 -3
|
@@ -178,12 +178,6 @@
|
|
|
178
178
|
},
|
|
179
179
|
"noMoreData": {
|
|
180
180
|
"type": "string"
|
|
181
|
-
},
|
|
182
|
-
"exclusive": {
|
|
183
|
-
"type": "string"
|
|
184
|
-
},
|
|
185
|
-
"global": {
|
|
186
|
-
"type": "string"
|
|
187
181
|
}
|
|
188
182
|
},
|
|
189
183
|
"required": [
|
|
@@ -243,9 +237,7 @@
|
|
|
243
237
|
"unsavedChangesDescription",
|
|
244
238
|
"includesTaxTooltip",
|
|
245
239
|
"excludesTaxTooltip",
|
|
246
|
-
"noMoreData"
|
|
247
|
-
"exclusive",
|
|
248
|
-
"global"
|
|
240
|
+
"noMoreData"
|
|
249
241
|
],
|
|
250
242
|
"additionalProperties": false
|
|
251
243
|
},
|
|
@@ -517,9 +509,6 @@
|
|
|
517
509
|
},
|
|
518
510
|
"cannotUndo": {
|
|
519
511
|
"type": "string"
|
|
520
|
-
},
|
|
521
|
-
"manage": {
|
|
522
|
-
"type": "string"
|
|
523
512
|
}
|
|
524
513
|
},
|
|
525
514
|
"required": [
|
|
@@ -566,8 +555,7 @@
|
|
|
566
555
|
"hide",
|
|
567
556
|
"export",
|
|
568
557
|
"import",
|
|
569
|
-
"cannotUndo"
|
|
570
|
-
"manage"
|
|
558
|
+
"cannotUndo"
|
|
571
559
|
],
|
|
572
560
|
"additionalProperties": false
|
|
573
561
|
},
|
|
@@ -1704,9 +1692,6 @@
|
|
|
1704
1692
|
},
|
|
1705
1693
|
"required": ["label", "hint"],
|
|
1706
1694
|
"additionalProperties": false
|
|
1707
|
-
},
|
|
1708
|
-
"selectValuesHint": {
|
|
1709
|
-
"type": "string"
|
|
1710
1695
|
}
|
|
1711
1696
|
},
|
|
1712
1697
|
"required": [
|
|
@@ -1716,8 +1701,7 @@
|
|
|
1716
1701
|
"optionTitle",
|
|
1717
1702
|
"optionValues",
|
|
1718
1703
|
"productVariants",
|
|
1719
|
-
"productOptions"
|
|
1720
|
-
"selectValuesHint"
|
|
1704
|
+
"productOptions"
|
|
1721
1705
|
],
|
|
1722
1706
|
"additionalProperties": false
|
|
1723
1707
|
},
|
|
@@ -2024,7 +2008,6 @@
|
|
|
2024
2008
|
"uploadImagesLabel",
|
|
2025
2009
|
"uploadImagesHint",
|
|
2026
2010
|
"invalidFileType",
|
|
2027
|
-
"fileTooLarge",
|
|
2028
2011
|
"failedToUpload",
|
|
2029
2012
|
"deleteWarning_one",
|
|
2030
2013
|
"deleteWarning_other",
|
|
@@ -2668,39 +2651,11 @@
|
|
|
2668
2651
|
"required": ["header", "successToast"],
|
|
2669
2652
|
"additionalProperties": false
|
|
2670
2653
|
},
|
|
2671
|
-
"manage": {
|
|
2672
|
-
"type": "object",
|
|
2673
|
-
"properties": {
|
|
2674
|
-
"header": {
|
|
2675
|
-
"type": "string"
|
|
2676
|
-
},
|
|
2677
|
-
"description": {
|
|
2678
|
-
"type": "string"
|
|
2679
|
-
},
|
|
2680
|
-
"label": {
|
|
2681
|
-
"type": "string"
|
|
2682
|
-
},
|
|
2683
|
-
"hint": {
|
|
2684
|
-
"type": "string"
|
|
2685
|
-
},
|
|
2686
|
-
"placeholder": {
|
|
2687
|
-
"type": "string"
|
|
2688
|
-
}
|
|
2689
|
-
},
|
|
2690
|
-
"required": [
|
|
2691
|
-
"header",
|
|
2692
|
-
"description",
|
|
2693
|
-
"label",
|
|
2694
|
-
"hint",
|
|
2695
|
-
"placeholder"
|
|
2696
|
-
],
|
|
2697
|
-
"additionalProperties": false
|
|
2698
|
-
},
|
|
2699
2654
|
"deleteWarning": {
|
|
2700
2655
|
"type": "string"
|
|
2701
2656
|
}
|
|
2702
2657
|
},
|
|
2703
|
-
"required": ["header", "edit", "create", "
|
|
2658
|
+
"required": ["header", "edit", "create", "deleteWarning"],
|
|
2704
2659
|
"additionalProperties": false
|
|
2705
2660
|
},
|
|
2706
2661
|
"organization": {
|
|
@@ -3201,128 +3156,6 @@
|
|
|
3201
3156
|
],
|
|
3202
3157
|
"additionalProperties": false
|
|
3203
3158
|
},
|
|
3204
|
-
"productOptions": {
|
|
3205
|
-
"type": "object",
|
|
3206
|
-
"properties": {
|
|
3207
|
-
"domain": {
|
|
3208
|
-
"type": "string"
|
|
3209
|
-
},
|
|
3210
|
-
"subtitle": {
|
|
3211
|
-
"type": "string"
|
|
3212
|
-
},
|
|
3213
|
-
"values": {
|
|
3214
|
-
"type": "object",
|
|
3215
|
-
"properties": {
|
|
3216
|
-
"header": {
|
|
3217
|
-
"type": "string"
|
|
3218
|
-
}
|
|
3219
|
-
},
|
|
3220
|
-
"required": ["header"],
|
|
3221
|
-
"additionalProperties": false
|
|
3222
|
-
},
|
|
3223
|
-
"create": {
|
|
3224
|
-
"type": "object",
|
|
3225
|
-
"properties": {
|
|
3226
|
-
"header": {
|
|
3227
|
-
"type": "string"
|
|
3228
|
-
},
|
|
3229
|
-
"hint": {
|
|
3230
|
-
"type": "string"
|
|
3231
|
-
},
|
|
3232
|
-
"successToast": {
|
|
3233
|
-
"type": "string"
|
|
3234
|
-
},
|
|
3235
|
-
"tabs": {
|
|
3236
|
-
"type": "object",
|
|
3237
|
-
"properties": {
|
|
3238
|
-
"details": {
|
|
3239
|
-
"type": "string"
|
|
3240
|
-
},
|
|
3241
|
-
"organize": {
|
|
3242
|
-
"type": "string"
|
|
3243
|
-
}
|
|
3244
|
-
},
|
|
3245
|
-
"required": ["details", "organize"],
|
|
3246
|
-
"additionalProperties": false
|
|
3247
|
-
}
|
|
3248
|
-
},
|
|
3249
|
-
"required": ["header", "hint", "successToast", "tabs"],
|
|
3250
|
-
"additionalProperties": false
|
|
3251
|
-
},
|
|
3252
|
-
"edit": {
|
|
3253
|
-
"type": "object",
|
|
3254
|
-
"properties": {
|
|
3255
|
-
"header": {
|
|
3256
|
-
"type": "string"
|
|
3257
|
-
},
|
|
3258
|
-
"description": {
|
|
3259
|
-
"type": "string"
|
|
3260
|
-
},
|
|
3261
|
-
"successToast": {
|
|
3262
|
-
"type": "string"
|
|
3263
|
-
}
|
|
3264
|
-
},
|
|
3265
|
-
"required": ["header", "description", "successToast"],
|
|
3266
|
-
"additionalProperties": false
|
|
3267
|
-
},
|
|
3268
|
-
"delete": {
|
|
3269
|
-
"type": "object",
|
|
3270
|
-
"properties": {
|
|
3271
|
-
"confirmation": {
|
|
3272
|
-
"type": "string"
|
|
3273
|
-
},
|
|
3274
|
-
"successToast": {
|
|
3275
|
-
"type": "string"
|
|
3276
|
-
}
|
|
3277
|
-
},
|
|
3278
|
-
"required": ["confirmation", "successToast"],
|
|
3279
|
-
"additionalProperties": false
|
|
3280
|
-
},
|
|
3281
|
-
"fields": {
|
|
3282
|
-
"type": "object",
|
|
3283
|
-
"properties": {
|
|
3284
|
-
"title": {
|
|
3285
|
-
"type": "object",
|
|
3286
|
-
"properties": {
|
|
3287
|
-
"label": {
|
|
3288
|
-
"type": "string"
|
|
3289
|
-
},
|
|
3290
|
-
"placeholder": {
|
|
3291
|
-
"type": "string"
|
|
3292
|
-
}
|
|
3293
|
-
},
|
|
3294
|
-
"required": ["label", "placeholder"],
|
|
3295
|
-
"additionalProperties": false
|
|
3296
|
-
},
|
|
3297
|
-
"values": {
|
|
3298
|
-
"type": "object",
|
|
3299
|
-
"properties": {
|
|
3300
|
-
"label": {
|
|
3301
|
-
"type": "string"
|
|
3302
|
-
},
|
|
3303
|
-
"placeholder": {
|
|
3304
|
-
"type": "string"
|
|
3305
|
-
}
|
|
3306
|
-
},
|
|
3307
|
-
"required": ["label", "placeholder"],
|
|
3308
|
-
"additionalProperties": false
|
|
3309
|
-
}
|
|
3310
|
-
},
|
|
3311
|
-
"required": ["title", "values"],
|
|
3312
|
-
"additionalProperties": false
|
|
3313
|
-
}
|
|
3314
|
-
},
|
|
3315
|
-
"required": [
|
|
3316
|
-
"domain",
|
|
3317
|
-
"subtitle",
|
|
3318
|
-
"values",
|
|
3319
|
-
"create",
|
|
3320
|
-
"edit",
|
|
3321
|
-
"delete",
|
|
3322
|
-
"fields"
|
|
3323
|
-
],
|
|
3324
|
-
"additionalProperties": false
|
|
3325
|
-
},
|
|
3326
3159
|
"inventory": {
|
|
3327
3160
|
"type": "object",
|
|
3328
3161
|
"properties": {
|
|
@@ -12205,7 +12038,6 @@
|
|
|
12205
12038
|
"products",
|
|
12206
12039
|
"collections",
|
|
12207
12040
|
"categories",
|
|
12208
|
-
"productOptions",
|
|
12209
12041
|
"inventory",
|
|
12210
12042
|
"giftCards",
|
|
12211
12043
|
"customers",
|
|
@@ -57,9 +57,7 @@
|
|
|
57
57
|
"unsavedChangesDescription": "You have unsaved changes that will be lost if you exit this form.",
|
|
58
58
|
"includesTaxTooltip": "Prices in this column are tax inclusive.",
|
|
59
59
|
"excludesTaxTooltip": "Prices in this column are tax exclusive.",
|
|
60
|
-
"noMoreData": "No more data"
|
|
61
|
-
"exclusive": "Product-specific",
|
|
62
|
-
"global": "Global"
|
|
60
|
+
"noMoreData": "No more data"
|
|
63
61
|
},
|
|
64
62
|
"json": {
|
|
65
63
|
"header": "JSON",
|
|
@@ -143,8 +141,7 @@
|
|
|
143
141
|
"hide": "Hide",
|
|
144
142
|
"export": "Export",
|
|
145
143
|
"import": "Import",
|
|
146
|
-
"cannotUndo": "This action cannot be undone"
|
|
147
|
-
"manage": "Manage"
|
|
144
|
+
"cannotUndo": "This action cannot be undone"
|
|
148
145
|
},
|
|
149
146
|
"operators": {
|
|
150
147
|
"in": "In"
|
|
@@ -451,8 +448,7 @@
|
|
|
451
448
|
"productOptions": {
|
|
452
449
|
"label": "Product options",
|
|
453
450
|
"hint": "Define the options for the product, e.g. color, size, etc."
|
|
454
|
-
}
|
|
455
|
-
"selectValuesHint": "Select which values to use for each option"
|
|
451
|
+
}
|
|
456
452
|
},
|
|
457
453
|
"successToast": "Product {{title}} was successfully created."
|
|
458
454
|
},
|
|
@@ -709,13 +705,6 @@
|
|
|
709
705
|
"header": "Create Option",
|
|
710
706
|
"successToast": "Option {{title}} was successfully created."
|
|
711
707
|
},
|
|
712
|
-
"manage": {
|
|
713
|
-
"header": "Manage Product Options",
|
|
714
|
-
"description": "Associate or disassociate product options from this product.",
|
|
715
|
-
"label": "Product Options",
|
|
716
|
-
"hint": "Select which options should be associated to this product.",
|
|
717
|
-
"placeholder": "Select options"
|
|
718
|
-
},
|
|
719
708
|
"deleteWarning": "You are about to delete the product option: {{title}}. This action cannot be undone."
|
|
720
709
|
},
|
|
721
710
|
"organization": {
|
|
@@ -852,41 +841,6 @@
|
|
|
852
841
|
}
|
|
853
842
|
}
|
|
854
843
|
},
|
|
855
|
-
"productOptions": {
|
|
856
|
-
"domain": "Options",
|
|
857
|
-
"subtitle": "Manage product options and their associated values.",
|
|
858
|
-
"values": {
|
|
859
|
-
"header": "Values"
|
|
860
|
-
},
|
|
861
|
-
"create": {
|
|
862
|
-
"header": "Create Product Option",
|
|
863
|
-
"hint": "Create a new product option and manage its values.",
|
|
864
|
-
"successToast": "Product option \"{{title}}\" was successfully created.",
|
|
865
|
-
"tabs": {
|
|
866
|
-
"details": "Details",
|
|
867
|
-
"organize": "Organize"
|
|
868
|
-
}
|
|
869
|
-
},
|
|
870
|
-
"edit": {
|
|
871
|
-
"header": "Edit Product Option",
|
|
872
|
-
"description": "Edit the product option to update its details and associated values.",
|
|
873
|
-
"successToast": "Product option \"{{title}}\" was successfully updated."
|
|
874
|
-
},
|
|
875
|
-
"delete": {
|
|
876
|
-
"confirmation": "You are about to delete the product option \"{{title}}\". This action cannot be undone.",
|
|
877
|
-
"successToast": "Product option was successfully deleted."
|
|
878
|
-
},
|
|
879
|
-
"fields": {
|
|
880
|
-
"title": {
|
|
881
|
-
"label": "Title",
|
|
882
|
-
"placeholder": "Size"
|
|
883
|
-
},
|
|
884
|
-
"values": {
|
|
885
|
-
"label": "Values",
|
|
886
|
-
"placeholder": "S, M, L"
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
},
|
|
890
844
|
"inventory": {
|
|
891
845
|
"domain": "Inventory",
|
|
892
846
|
"subtitle": "Manage your inventory items",
|
package/src/routes/orders/order-create-edit/components/order-edit-create-form/order-edit-item.tsx
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ArrowUturnLeft,
|
|
3
|
+
DocumentSeries,
|
|
4
|
+
ReceiptPercent,
|
|
5
|
+
XCircle,
|
|
6
|
+
} from "@medusajs/icons"
|
|
2
7
|
import { AdminOrderLineItem } from "@medusajs/types"
|
|
3
|
-
import { Badge, Input, Text, toast } from "@medusajs/ui"
|
|
8
|
+
import { Badge, Input, Text, toast, Tooltip } from "@medusajs/ui"
|
|
4
9
|
import { useTranslation } from "react-i18next"
|
|
5
10
|
|
|
6
11
|
import { ActionMenu } from "../../../../../components/common/action-menu"
|
|
@@ -45,6 +50,10 @@ function OrderEditItem({ item, currencyCode, orderId }: OrderEditItemProps) {
|
|
|
45
50
|
return !!updateAction && item.quantity === item.detail.fulfilled_quantity
|
|
46
51
|
}, [item])
|
|
47
52
|
|
|
53
|
+
const appliedPromoCodes = useMemo(() => {
|
|
54
|
+
return (item.adjustments || []).map((adjustment) => adjustment.code)
|
|
55
|
+
}, [item])
|
|
56
|
+
|
|
48
57
|
/**
|
|
49
58
|
* HANDLERS
|
|
50
59
|
*/
|
|
@@ -166,7 +175,7 @@ function OrderEditItem({ item, currencyCode, orderId }: OrderEditItemProps) {
|
|
|
166
175
|
)}
|
|
167
176
|
</div>
|
|
168
177
|
|
|
169
|
-
<div className="flex flex-1 justify-between">
|
|
178
|
+
<div className="flex flex-1 items-center justify-between">
|
|
170
179
|
<div className="flex flex-grow items-center gap-2">
|
|
171
180
|
<Input
|
|
172
181
|
className="bg-ui-bg-base txt-small w-[67px] rounded-lg [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none"
|
|
@@ -186,6 +195,22 @@ function OrderEditItem({ item, currencyCode, orderId }: OrderEditItemProps) {
|
|
|
186
195
|
<Text className="txt-small text-ui-fg-subtle">
|
|
187
196
|
{t("fields.qty")}
|
|
188
197
|
</Text>
|
|
198
|
+
|
|
199
|
+
{appliedPromoCodes.length > 0 && (
|
|
200
|
+
<div className="flex flex-shrink pt-[2px]">
|
|
201
|
+
<Tooltip
|
|
202
|
+
content={
|
|
203
|
+
<span className="text-pretty">
|
|
204
|
+
{appliedPromoCodes.map((code) => (
|
|
205
|
+
<div key={code}>{code}</div>
|
|
206
|
+
))}
|
|
207
|
+
</span>
|
|
208
|
+
}
|
|
209
|
+
>
|
|
210
|
+
<ReceiptPercent className="text-ui-fg-subtle font-normal" />
|
|
211
|
+
</Tooltip>
|
|
212
|
+
</div>
|
|
213
|
+
)}
|
|
189
214
|
</div>
|
|
190
215
|
|
|
191
216
|
<div className="text-ui-fg-subtle txt-small mr-2 flex flex-shrink-0">
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ChatBubble,
|
|
3
|
+
DocumentText,
|
|
4
|
+
ReceiptPercent,
|
|
5
|
+
XCircle,
|
|
6
|
+
XMark,
|
|
7
|
+
} from "@medusajs/icons"
|
|
2
8
|
import { AdminOrderLineItem, HttpTypes } from "@medusajs/types"
|
|
3
|
-
import { IconButton, Input, Text } from "@medusajs/ui"
|
|
9
|
+
import { IconButton, Input, Text, Tooltip } from "@medusajs/ui"
|
|
4
10
|
import { UseFormReturn } from "react-hook-form"
|
|
5
11
|
import { useTranslation } from "react-i18next"
|
|
6
12
|
|
|
@@ -39,13 +45,17 @@ function ExchangeInboundItem({
|
|
|
39
45
|
const showReturnReason = typeof formItem.reason_id === "string"
|
|
40
46
|
const showNote = typeof formItem.note === "string"
|
|
41
47
|
|
|
48
|
+
const appliedPromoCodes = (previewItem.adjustments || []).map(
|
|
49
|
+
(adjustment) => adjustment.code
|
|
50
|
+
)
|
|
51
|
+
|
|
42
52
|
return (
|
|
43
53
|
<div className="bg-ui-bg-subtle shadow-elevation-card-rest my-2 rounded-xl ">
|
|
44
|
-
<div className="flex flex-col items-center gap-x-
|
|
54
|
+
<div className="flex flex-col items-center gap-x-3 gap-y-2 p-3 text-sm md:flex-row">
|
|
45
55
|
<div className="flex flex-1 items-center gap-x-3">
|
|
46
56
|
<Thumbnail src={item.thumbnail} />
|
|
47
57
|
|
|
48
|
-
<div className="flex flex-col">
|
|
58
|
+
<div className="flex flex-grow flex-col">
|
|
49
59
|
<div>
|
|
50
60
|
<Text className="txt-small" as="span" weight="plus">
|
|
51
61
|
{item.title}{" "}
|
|
@@ -57,6 +67,21 @@ function ExchangeInboundItem({
|
|
|
57
67
|
{item.product_title}
|
|
58
68
|
</Text>
|
|
59
69
|
</div>
|
|
70
|
+
{appliedPromoCodes.length > 0 && (
|
|
71
|
+
<div className="flex flex-shrink">
|
|
72
|
+
<Tooltip
|
|
73
|
+
content={
|
|
74
|
+
<span className="text-pretty">
|
|
75
|
+
{appliedPromoCodes.map((code) => (
|
|
76
|
+
<div key={code}>{code}</div>
|
|
77
|
+
))}
|
|
78
|
+
</span>
|
|
79
|
+
}
|
|
80
|
+
>
|
|
81
|
+
<ReceiptPercent className="text-ui-fg-subtle" />
|
|
82
|
+
</Tooltip>
|
|
83
|
+
</div>
|
|
84
|
+
)}
|
|
60
85
|
</div>
|
|
61
86
|
|
|
62
87
|
<div className="flex flex-1 justify-between">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { XCircle } from "@medusajs/icons"
|
|
1
|
+
import { ReceiptPercent, XCircle } from "@medusajs/icons"
|
|
2
2
|
import { AdminOrderLineItem, HttpTypes } from "@medusajs/types"
|
|
3
|
-
import { Input, Text } from "@medusajs/ui"
|
|
3
|
+
import { Input, Text, Tooltip } from "@medusajs/ui"
|
|
4
4
|
import { UseFormReturn } from "react-hook-form"
|
|
5
5
|
import { useTranslation } from "react-i18next"
|
|
6
6
|
|
|
@@ -32,13 +32,17 @@ function ExchangeOutboundItem({
|
|
|
32
32
|
}: ExchangeOutboundItemProps) {
|
|
33
33
|
const { t } = useTranslation()
|
|
34
34
|
|
|
35
|
+
const appliedPromoCodes = (previewItem.adjustments || []).map(
|
|
36
|
+
(adjustment) => adjustment.code
|
|
37
|
+
)
|
|
38
|
+
|
|
35
39
|
return (
|
|
36
40
|
<div className="bg-ui-bg-subtle shadow-elevation-card-rest my-2 rounded-xl ">
|
|
37
|
-
<div className="flex flex-col items-center gap-x-
|
|
41
|
+
<div className="flex flex-col items-center gap-x-3 gap-y-2 p-3 text-sm md:flex-row">
|
|
38
42
|
<div className="flex flex-1 items-center gap-x-3">
|
|
39
43
|
<Thumbnail src={previewItem.thumbnail} />
|
|
40
44
|
|
|
41
|
-
<div className="flex flex-col">
|
|
45
|
+
<div className="flex flex-grow flex-col">
|
|
42
46
|
<div>
|
|
43
47
|
<Text className="txt-small" as="span" weight="plus">
|
|
44
48
|
{previewItem.title}{" "}
|
|
@@ -52,6 +56,21 @@ function ExchangeOutboundItem({
|
|
|
52
56
|
{previewItem.subtitle}
|
|
53
57
|
</Text>
|
|
54
58
|
</div>
|
|
59
|
+
{appliedPromoCodes.length > 0 && (
|
|
60
|
+
<div className="flex flex-shrink">
|
|
61
|
+
<Tooltip
|
|
62
|
+
content={
|
|
63
|
+
<span className="text-pretty">
|
|
64
|
+
{appliedPromoCodes.map((code) => (
|
|
65
|
+
<div key={code}>{code}</div>
|
|
66
|
+
))}
|
|
67
|
+
</span>
|
|
68
|
+
}
|
|
69
|
+
>
|
|
70
|
+
<ReceiptPercent className="text-ui-fg-subtle" />
|
|
71
|
+
</Tooltip>
|
|
72
|
+
</div>
|
|
73
|
+
)}
|
|
55
74
|
</div>
|
|
56
75
|
|
|
57
76
|
<div className="flex flex-1 justify-between">
|
|
@@ -6,6 +6,7 @@ import { useTranslation } from "react-i18next"
|
|
|
6
6
|
import { ActionMenu } from "../../../../../components/common/action-menu"
|
|
7
7
|
import { useDeletePriceListAction } from "../../../common/hooks/use-delete-price-list-action"
|
|
8
8
|
import { getPriceListStatus } from "../../../common/utils"
|
|
9
|
+
import { usePriceListPrices } from "../../../../../hooks/api"
|
|
9
10
|
|
|
10
11
|
type PriceListGeneralSectionProps = {
|
|
11
12
|
priceList: HttpTypes.AdminPriceList
|
|
@@ -15,8 +16,11 @@ export const PriceListGeneralSection = ({
|
|
|
15
16
|
priceList,
|
|
16
17
|
}: PriceListGeneralSectionProps) => {
|
|
17
18
|
const { t } = useTranslation()
|
|
19
|
+
const { count, isLoading, error } = usePriceListPrices(priceList.id, {
|
|
20
|
+
limit: 1,
|
|
21
|
+
})
|
|
18
22
|
|
|
19
|
-
const overrideCount =
|
|
23
|
+
const overrideCount = count
|
|
20
24
|
|
|
21
25
|
const { color, text } = getPriceListStatus(t, priceList)
|
|
22
26
|
|
|
@@ -77,9 +81,11 @@ export const PriceListGeneralSection = ({
|
|
|
77
81
|
<Text leading="compact" size="small" weight="plus">
|
|
78
82
|
{t("priceLists.fields.priceOverrides.label")}
|
|
79
83
|
</Text>
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
84
|
+
{!isLoading && !error && (
|
|
85
|
+
<Text size="small" className="text-pretty">
|
|
86
|
+
{overrideCount || "-"}
|
|
87
|
+
</Text>
|
|
88
|
+
)}
|
|
83
89
|
</div>
|
|
84
90
|
</Container>
|
|
85
91
|
)
|
package/src/routes/price-lists/price-list-list/components/price-list-list-table/price-count-cell.tsx
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { usePriceListPrices } from "../../../../../hooks/api/price-lists"
|
|
2
|
+
import { PlaceholderCell } from "../../../../../components/table/table-cells/common/placeholder-cell"
|
|
3
|
+
import { TextCell } from "../../../../../components/table/table-cells/common/text-cell"
|
|
4
|
+
|
|
5
|
+
type PriceCountCellProps = {
|
|
6
|
+
priceListId: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const PriceCountCell = ({ priceListId }: PriceCountCellProps) => {
|
|
10
|
+
const { count, isLoading } = usePriceListPrices(priceListId, {
|
|
11
|
+
limit: 1,
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
if (isLoading) {
|
|
15
|
+
return <PlaceholderCell />
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return <TextCell text={count && count > 0 ? count.toString() : "-"} />
|
|
19
|
+
}
|
|
@@ -4,12 +4,10 @@ import { useMemo } from "react"
|
|
|
4
4
|
import { useTranslation } from "react-i18next"
|
|
5
5
|
|
|
6
6
|
import { StatusCell } from "../../../../../components/table/table-cells/common/status-cell"
|
|
7
|
-
import {
|
|
8
|
-
TextCell,
|
|
9
|
-
TextHeader,
|
|
10
|
-
} from "../../../../../components/table/table-cells/common/text-cell"
|
|
7
|
+
import { TextHeader } from "../../../../../components/table/table-cells/common/text-cell"
|
|
11
8
|
import { getPriceListStatus } from "../../../common/utils"
|
|
12
9
|
import { PriceListListTableActions } from "./price-list-list-table-actions"
|
|
10
|
+
import { PriceCountCell } from "./price-count-cell"
|
|
13
11
|
|
|
14
12
|
const columnHelper = createColumnHelper<HttpTypes.AdminPriceList>()
|
|
15
13
|
|
|
@@ -30,9 +28,10 @@ export const usePricingTableColumns = () => {
|
|
|
30
28
|
return <StatusCell color={color}>{text}</StatusCell>
|
|
31
29
|
},
|
|
32
30
|
}),
|
|
33
|
-
columnHelper.
|
|
31
|
+
columnHelper.display({
|
|
32
|
+
id: "price_overrides",
|
|
34
33
|
header: t("priceLists.fields.priceOverrides.header"),
|
|
35
|
-
cell: (
|
|
34
|
+
cell: ({ row }) => <PriceCountCell priceListId={row.original.id} />,
|
|
36
35
|
}),
|
|
37
36
|
columnHelper.display({
|
|
38
37
|
id: "actions",
|
|
@@ -7,7 +7,10 @@ import { PriceListPricesAddForm } from "./components/price-list-prices-add-form"
|
|
|
7
7
|
export const PriceListProductsAdd = () => {
|
|
8
8
|
const { id } = useParams<{ id: string }>()
|
|
9
9
|
|
|
10
|
-
const { price_list, isPending, isError, error } = usePriceList(id
|
|
10
|
+
const { price_list, isPending, isError, error } = usePriceList(id!, {
|
|
11
|
+
fields:
|
|
12
|
+
"*prices,prices.price_set.variant.id,prices.price_rules.attribute,prices.price_rules.value",
|
|
13
|
+
})
|
|
11
14
|
const { currencies, regions, pricePreferences, isReady } =
|
|
12
15
|
usePriceListCurrencyData()
|
|
13
16
|
|
|
@@ -10,7 +10,9 @@ export const PriceListPricesEdit = () => {
|
|
|
10
10
|
const [searchParams] = useSearchParams()
|
|
11
11
|
const ids = searchParams.get("ids[]")
|
|
12
12
|
|
|
13
|
-
const { price_list, isLoading, isError, error } = usePriceList(id
|
|
13
|
+
const { price_list, isLoading, isError, error } = usePriceList(id!, {
|
|
14
|
+
fields: "*prices,prices.price_set.variant.id,prices.price_rules.attribute,prices.price_rules.value",
|
|
15
|
+
})
|
|
14
16
|
const productIds = ids?.split(",")
|
|
15
17
|
|
|
16
18
|
const {
|
|
@@ -27,10 +27,7 @@ export const ProductCreateGeneralSection = ({
|
|
|
27
27
|
<Form.Item>
|
|
28
28
|
<Form.Label>{t("products.fields.title.label")}</Form.Label>
|
|
29
29
|
<Form.Control>
|
|
30
|
-
<Input
|
|
31
|
-
{...field}
|
|
32
|
-
placeholder={t("products.fields.title.placeholder")}
|
|
33
|
-
/>
|
|
30
|
+
<Input {...field} placeholder={t("products.fields.title.placeholder")} />
|
|
34
31
|
</Form.Control>
|
|
35
32
|
</Form.Item>
|
|
36
33
|
)
|
|
@@ -46,10 +43,7 @@ export const ProductCreateGeneralSection = ({
|
|
|
46
43
|
{t("products.fields.subtitle.label")}
|
|
47
44
|
</Form.Label>
|
|
48
45
|
<Form.Control>
|
|
49
|
-
<Input
|
|
50
|
-
{...field}
|
|
51
|
-
placeholder={t("products.fields.subtitle.placeholder")}
|
|
52
|
-
/>
|
|
46
|
+
<Input {...field} placeholder={t("products.fields.subtitle.placeholder")} />
|
|
53
47
|
</Form.Control>
|
|
54
48
|
</Form.Item>
|
|
55
49
|
)
|
|
@@ -68,10 +62,7 @@ export const ProductCreateGeneralSection = ({
|
|
|
68
62
|
{t("fields.handle")}
|
|
69
63
|
</Form.Label>
|
|
70
64
|
<Form.Control>
|
|
71
|
-
<HandleInput
|
|
72
|
-
{...field}
|
|
73
|
-
placeholder={t("products.fields.handle.placeholder")}
|
|
74
|
-
/>
|
|
65
|
+
<HandleInput {...field} placeholder={t("products.fields.handle.placeholder")} />
|
|
75
66
|
</Form.Control>
|
|
76
67
|
</Form.Item>
|
|
77
68
|
)
|
|
@@ -89,10 +80,7 @@ export const ProductCreateGeneralSection = ({
|
|
|
89
80
|
{t("products.fields.description.label")}
|
|
90
81
|
</Form.Label>
|
|
91
82
|
<Form.Control>
|
|
92
|
-
<Textarea
|
|
93
|
-
{...field}
|
|
94
|
-
placeholder={t("products.fields.description.placeholder")}
|
|
95
|
-
/>
|
|
83
|
+
<Textarea {...field} placeholder={t("products.fields.description.placeholder")} />
|
|
96
84
|
</Form.Control>
|
|
97
85
|
</Form.Item>
|
|
98
86
|
)
|