@mercurjs/admin 2.2.0-canary.39 → 2.2.0-canary.41
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-NT4LQZQJ.js → add-campaign-promotions-QK73ARX4.js} +4 -4
- package/dist/{api-key-management-list-SXHZJUJB.js → api-key-management-list-5RXBJ24C.js} +2 -2
- package/dist/{attribute-create-D4RUU5OT.js → attribute-create-VAR6C5GW.js} +11 -18
- package/dist/{attribute-detail-OU6557XI.js → attribute-detail-LBACUDU3.js} +5 -5
- package/dist/{attribute-edit-EQH3YMGW.js → attribute-edit-WXO5FGR6.js} +4 -4
- package/dist/{attribute-edit-possible-value-X7XTAVVL.js → attribute-edit-possible-value-RO7BY3NC.js} +2 -2
- package/dist/{attribute-edit-ranking-CHWUVK5Z.js → attribute-edit-ranking-YGR3KCSC.js} +1 -1
- package/dist/{attribute-list-5LGYNGO7.js → attribute-list-6A72PBIY.js} +2 -2
- package/dist/{campaign-detail-EHNTH6A7.js → campaign-detail-6J7PTIIP.js} +5 -5
- package/dist/{campaign-edit-MAS3DCFB.js → campaign-edit-DBAJFIH4.js} +18 -5
- package/dist/{campaign-list-FFGRXEVJ.js → campaign-list-XH7UM5JJ.js} +2 -2
- package/dist/{categories-metadata-EKY6TSUK.js → categories-metadata-4LXL2PWA.js} +1 -1
- package/dist/{category-create-AIS2MG7E.js → category-create-CJZZZLDD.js} +1 -1
- package/dist/{category-detail-HCRJDDA2.js → category-detail-XV6CDZZL.js} +6 -6
- package/dist/{category-edit-LYR2IOTA.js → category-edit-2NCWDSZY.js} +19 -6
- package/dist/{category-list-7ILXI55P.js → category-list-WYMOJJLW.js} +2 -2
- package/dist/{category-products-LZQATT5Z.js → category-products-CQV2TKLY.js} +5 -5
- package/dist/{chunk-S22SK4KO.js → chunk-25U23TXK.js} +1 -1
- package/dist/{chunk-O5MW4WPZ.js → chunk-27XNPAJP.js} +10 -4
- package/dist/{chunk-CYACZXMQ.js → chunk-2CJIE5MY.js} +19 -8
- package/dist/{chunk-SLKOHWKT.js → chunk-3L4IFGRJ.js} +46 -9
- package/dist/{chunk-MYJJMHR5.js → chunk-4BPQNCF5.js} +1 -1
- package/dist/{chunk-VSLKILOI.js → chunk-4RLXMDIJ.js} +2 -2
- package/dist/{chunk-5GVJXMOU.js → chunk-4XYSIVPO.js} +2 -2
- package/dist/{chunk-PSGHE5YJ.js → chunk-5DAFNAZJ.js} +52 -35
- package/dist/{chunk-BLR3NTU6.js → chunk-5PNM6QNB.js} +2 -0
- package/dist/{chunk-YUUDST4E.js → chunk-5UT374IW.js} +70 -25
- package/dist/{chunk-2YAVXVET.js → chunk-6BWJWA2F.js} +1 -1
- package/dist/{chunk-HSL5IICN.js → chunk-6ZVV2XHU.js} +1 -1
- package/dist/{chunk-5NC6SI6J.js → chunk-7U2JJYMP.js} +42 -14
- package/dist/{chunk-DI2KBXVH.js → chunk-ADTYNS4J.js} +2 -2
- package/dist/{chunk-CE2WRTS7.js → chunk-AMZ2QSSI.js} +1 -1
- package/dist/chunk-APAT344J.js +144 -0
- package/dist/{chunk-74WEDBZ7.js → chunk-BFUHW56P.js} +1 -1
- package/dist/{chunk-YNK25LVO.js → chunk-BQWSY6FS.js} +2 -2
- package/dist/{chunk-MANRAV52.js → chunk-CBD7HK2G.js} +60 -26
- package/dist/{chunk-FLPKTLXN.js → chunk-CHMIK6PK.js} +1 -1
- package/dist/{chunk-WKTRJNOK.js → chunk-COOOOQ2N.js} +1 -1
- package/dist/{chunk-5K5VNKSE.js → chunk-DJD3MWED.js} +1 -1
- package/dist/{chunk-2DSCC2VR.js → chunk-EOSJHPHN.js} +1 -1
- package/dist/{chunk-AVATBB62.js → chunk-F2SZ4LPF.js} +61 -5
- package/dist/{chunk-BVIIRGSW.js → chunk-F3F4JC7E.js} +3 -1
- package/dist/{chunk-7TWARCNU.js → chunk-FNCDMOOR.js} +54 -22
- package/dist/{chunk-DISTPZNS.js → chunk-GWSRWILC.js} +1 -1
- package/dist/{chunk-5DQED4UT.js → chunk-GXU246YJ.js} +32 -5
- package/dist/{chunk-73Y6HKIG.js → chunk-HT34QVZR.js} +1 -1
- package/dist/{chunk-O53E5U52.js → chunk-I5HY5Q3K.js} +1 -1
- package/dist/{chunk-23OLYWMR.js → chunk-IASJSRP5.js} +71 -50
- package/dist/{chunk-FZPSX44L.js → chunk-IMLKFVFH.js} +24 -7
- package/dist/{chunk-LZEEPVQY.js → chunk-IZBV7MCY.js} +71 -37
- package/dist/{chunk-XFKDDRB6.js → chunk-JEDX4KBB.js} +1 -1
- package/dist/{chunk-CY263OE4.js → chunk-JEN37H6L.js} +3 -1
- package/dist/{chunk-PRSTCHB5.js → chunk-JSVYNNPF.js} +1 -3
- package/dist/{chunk-BO4V6CQN.js → chunk-K2JORJRZ.js} +4 -2
- package/dist/{chunk-LH4WPKYK.js → chunk-K7H77TA5.js} +1 -1
- package/dist/{chunk-RNDDYLHV.js → chunk-KRFXBBBU.js} +3 -3
- package/dist/{chunk-CN4FCZPK.js → chunk-KT4DGVRQ.js} +2 -2
- package/dist/{chunk-DWNUEPMI.js → chunk-KUCNCDST.js} +5 -10
- package/dist/{chunk-4NAIC6RG.js → chunk-L2D2AMTK.js} +4 -2
- package/dist/{chunk-WKR3Y2KD.js → chunk-LBDSZT5Q.js} +19 -8
- package/dist/{chunk-P4LTLPTK.js → chunk-LGOPKYNG.js} +1 -1
- package/dist/{chunk-VSKHV5QF.js → chunk-LQSSUC7W.js} +1 -1
- package/dist/{chunk-RIURQMDE.js → chunk-MFCQTAVI.js} +16 -5
- package/dist/{chunk-EUXCKJPT.js → chunk-ML7UVBKL.js} +1 -1
- package/dist/{chunk-LX5XLXPI.js → chunk-NLJ5F7FS.js} +1 -1
- package/dist/{chunk-325DZAT2.js → chunk-NPHYCQMP.js} +6 -4
- package/dist/{chunk-Y62TJJ3P.js → chunk-ORCMDF54.js} +28 -12
- package/dist/{chunk-I3ARNGRC.js → chunk-OVUKVGGD.js} +19 -8
- package/dist/{chunk-IQDZZ5EQ.js → chunk-PLU2GB4L.js} +28 -8
- package/dist/{chunk-FNJEXQ2Z.js → chunk-QAONUPAX.js} +44 -15
- package/dist/{chunk-GUDWUAMT.js → chunk-QFFF542X.js} +10 -4
- package/dist/{chunk-2S2SBRZP.js → chunk-RATQZHCS.js} +7 -6
- package/dist/{chunk-ZO3OJ2UQ.js → chunk-RIO2IHPE.js} +1 -1
- package/dist/{chunk-WBSUHLO7.js → chunk-RMB7MPIT.js} +1 -1
- package/dist/{chunk-HWWET5ZP.js → chunk-S2C6DUQJ.js} +3 -3
- package/dist/{chunk-QH34LF36.js → chunk-TZM63FZ4.js} +2 -2
- package/dist/{chunk-3SHHDCA6.js → chunk-U4MV53CS.js} +33 -15
- package/dist/{chunk-KC4J2WOM.js → chunk-USG4EATH.js} +20 -5
- package/dist/{chunk-LRJNSCMR.js → chunk-VIJXGPDE.js} +79 -25
- package/dist/{chunk-JUMT5GX7.js → chunk-VLYPVR5U.js} +20 -9
- package/dist/{chunk-PWLDTJJX.js → chunk-VXDRQQRZ.js} +4 -4
- package/dist/{chunk-YZBEJ3CY.js → chunk-VYSB4CTB.js} +1500 -1370
- package/dist/{chunk-TBKNLE4M.js → chunk-WEVSVBVF.js} +1 -1
- package/dist/{chunk-WNTHKSLS.js → chunk-WMK3BQPH.js} +2 -2
- package/dist/{chunk-AROCMF45.js → chunk-X5PMVI7H.js} +2 -2
- package/dist/{chunk-RDUSAVT3.js → chunk-X6KFVVHH.js} +3 -3
- package/dist/{chunk-2FPQHWJZ.js → chunk-X7IR2TVL.js} +106 -24
- package/dist/{chunk-7RWFRMQG.js → chunk-ZU74CNL4.js} +1 -1
- package/dist/{collection-add-products-QIEQCILA.js → collection-add-products-XUKFZOCQ.js} +5 -5
- package/dist/{collection-detail-PTVRSXT3.js → collection-detail-ID4FKP22.js} +6 -6
- package/dist/{collection-edit-UMZN5JZ6.js → collection-edit-GPUKISIV.js} +18 -5
- package/dist/{collection-list-O5XBGFTN.js → collection-list-C6U4CPLD.js} +5 -5
- package/dist/{collection-metadata-TOHJL5WW.js → collection-metadata-SBK6SL4C.js} +1 -1
- package/dist/{commission-rule-commission-edit-EXLLNUKM.js → commission-rule-commission-edit-V5JVRNZN.js} +1 -3
- package/dist/{commission-rule-create-3MCNOSWN.js → commission-rule-create-EZ2C6AWK.js} +1 -3
- package/dist/{commission-rule-detail-VTP2JKEG.js → commission-rule-detail-ZQ3OHFA2.js} +2 -2
- package/dist/{commission-rule-edit-X45EQ6BK.js → commission-rule-edit-NQ5EYCGO.js} +1 -3
- package/dist/{commissions-list-T7735Y35.js → commissions-list-M5WLJD2P.js} +3 -3
- package/dist/{customer-detail-IPM3SBHE.js → customer-detail-IG2QAAQL.js} +2 -2
- package/dist/{customer-edit-D55FJLIN.js → customer-edit-TADBOMPB.js} +18 -5
- package/dist/{customer-group-add-customers-QBRVKXGO.js → customer-group-add-customers-O6A5ZFPM.js} +1 -1
- package/dist/{customer-group-detail-3HV3BJOU.js → customer-group-detail-2B7XJ7NT.js} +2 -2
- package/dist/{customer-group-edit-NZ5SUPFQ.js → customer-group-edit-BX4HKVNN.js} +33 -18
- package/dist/{customer-group-list-IR6CW36P.js → customer-group-list-7LN5TN3G.js} +2 -2
- package/dist/{customer-group-metadata-4W32YXXP.js → customer-group-metadata-JX7ZBXLJ.js} +1 -1
- package/dist/{customer-list-276YPXTE.js → customer-list-K5TV3PSF.js} +2 -2
- package/dist/{customer-metadata-L622ZJ43.js → customer-metadata-JT5GGCRV.js} +1 -1
- package/dist/{customers-add-customer-group-PWKJZJBP.js → customers-add-customer-group-KX3XNNMU.js} +1 -1
- package/dist/{edit-inventory-item-73BY4I5T.js → edit-inventory-item-4RXYRJ7O.js} +19 -6
- package/dist/{edit-reservation-BC5IOLK6.js → edit-reservation-HA6J6U2N.js} +18 -5
- package/dist/{edit-rules-OK44K33O.js → edit-rules-4PPNBI7B.js} +1 -1
- package/dist/extension-targets.d.ts +195 -0
- package/dist/extension-targets.js +1 -0
- package/dist/{global-commission-edit-7ZMMIV7B.js → global-commission-edit-TRSS5JBH.js} +1 -3
- package/dist/index.d.ts +6 -2
- package/dist/index.js +199 -171
- package/dist/{inventory-create-66YM6FST.js → inventory-create-B3FHGX6A.js} +1 -1
- package/dist/{inventory-detail-RYFIUKTJ.js → inventory-detail-7VEJHRBB.js} +3 -3
- package/dist/{inventory-list-U4W4AP4E.js → inventory-list-IRQUQD4G.js} +2 -2
- package/dist/{inventory-metadata-W6Z6J2Z2.js → inventory-metadata-W2E4KYG3.js} +1 -1
- package/dist/{inventory-stock-A3TSIGMD.js → inventory-stock-D2BNT2UL.js} +4 -4
- package/dist/{location-fulfillment-providers-TMPZH2KQ.js → location-fulfillment-providers-MFM4SHJJ.js} +3 -3
- package/dist/{location-service-zone-create-U77V3ROT.js → location-service-zone-create-O6GYRZEE.js} +2 -2
- package/dist/{location-service-zone-manage-areas-FUUAAIDJ.js → location-service-zone-manage-areas-DBP3P27I.js} +2 -2
- package/dist/{marketplace-add-currencies-KDNMN57C.js → marketplace-add-currencies-IPE5RJF6.js} +1 -1
- package/dist/{marketplace-detail-KBJSCI2N.js → marketplace-detail-IHGJXVZS.js} +2 -2
- package/dist/{marketplace-edit-26PFXTVD.js → marketplace-edit-WG6LMQ2P.js} +1 -1
- package/dist/{marketplace-metadata-VXFQ3JZW.js → marketplace-metadata-STYABOTX.js} +1 -1
- package/dist/{offer-detail-page-D3J547CC.js → offer-detail-page-THKNBFWZ.js} +62 -17
- package/dist/{offer-variant-detail-page-P4CKF442.js → offer-variant-detail-page-NDGPFP6P.js} +2 -2
- package/dist/{offers-7JTHN6FI.js → offers-LYLEYD3A.js} +23 -8
- package/dist/{order-create-claim-CHXOZH2C.js → order-create-claim-Y7ESDXLI.js} +1 -1
- package/dist/{order-create-edit-O4AOAOF7.js → order-create-edit-6L5S7KQM.js} +1 -1
- package/dist/{order-create-exchange-CG3ODKTK.js → order-create-exchange-WHO3K2MW.js} +1 -1
- package/dist/{order-create-return-DDOYLDT7.js → order-create-return-R5WJBQ5W.js} +1 -1
- package/dist/{order-detail-V6AL4RWB.js → order-detail-NYKOH7OO.js} +2 -2
- package/dist/{order-edit-billing-address-KVX4EPM7.js → order-edit-billing-address-BEOKFNLZ.js} +1 -1
- package/dist/{order-list-WHZJ6B4G.js → order-list-EZWCH5YW.js} +4 -4
- package/dist/{order-metadata-L6SCT4MO.js → order-metadata-VQOA3DOL.js} +1 -1
- package/dist/pages/index.d.ts +60 -60
- package/dist/pages/index.js +66 -66
- package/dist/{payout-list-SOWVPSFQ.js → payout-list-3GQJQSVU.js} +2 -2
- package/dist/{price-list-configuration-OTSYJ3AQ.js → price-list-configuration-BLHIGDSV.js} +2 -2
- package/dist/{price-list-create-2422HUBU.js → price-list-create-YHSA7U3L.js} +7 -7
- package/dist/{price-list-detail-CL3FMPVN.js → price-list-detail-3SS3DGRU.js} +6 -6
- package/dist/{price-list-edit-RZQMPHXU.js → price-list-edit-TRRPPI43.js} +19 -6
- package/dist/{price-list-list-A42VGE3L.js → price-list-list-REIHOWWT.js} +2 -2
- package/dist/{price-list-prices-add-OOG6526Y.js → price-list-prices-add-X2GLUD7O.js} +6 -6
- package/dist/{product-add-existing-attributes-DKKPTZMB.js → product-add-existing-attributes-GPAZOIXH.js} +2 -2
- package/dist/{product-create-IX4TOFNU.js → product-create-6FDBZUB4.js} +4 -4
- package/dist/{product-create-attribute-DQ2RMDPZ.js → product-create-attribute-YFIEH7HD.js} +1 -1
- package/dist/{product-create-variant-TBJJ74ZR.js → product-create-variant-4O22DW7M.js} +3 -3
- package/dist/{product-detail-BLZYOXLS.js → product-detail-VORTX3LT.js} +4 -4
- package/dist/{product-edit-attribute-BSPIDAZJ.js → product-edit-attribute-NUJB7M6R.js} +2 -2
- package/dist/{product-list-PLXUL3YW.js → product-list-2WE2JY4F.js} +16 -13
- package/dist/{product-media-TDEPDO3W.js → product-media-LINHO45U.js} +3 -3
- package/dist/{product-metadata-KBT4QGRF.js → product-metadata-LOF6TSJQ.js} +1 -1
- package/dist/{product-organization-HFC44AOV.js → product-organization-ISVMEWQG.js} +1 -1
- package/dist/{product-tag-detail-222RARIO.js → product-tag-detail-2PMM6RG6.js} +7 -7
- package/dist/{product-tag-list-EZ4JUW4U.js → product-tag-list-KBNI6UDN.js} +7 -7
- package/dist/{product-tag-metadata-4EUBENJ6.js → product-tag-metadata-BXC7GMBB.js} +1 -1
- package/dist/{product-type-detail-SSMTOG47.js → product-type-detail-UKJ6RIHU.js} +6 -6
- package/dist/{product-type-list-XTVTT7ZA.js → product-type-list-JN4SKTFE.js} +2 -2
- package/dist/{product-type-metadata-RAVB4BK2.js → product-type-metadata-24JU4JNK.js} +1 -1
- package/dist/{product-variant-edit-QJK2CLID.js → product-variant-edit-MAM2RQ4V.js} +2 -2
- package/dist/{product-variant-metadata-7VHJ4U6L.js → product-variant-metadata-5PUBLPDN.js} +1 -1
- package/dist/{promotion-create-AWZ7YA5T.js → promotion-create-3EDHAI7E.js} +2 -2
- package/dist/{promotion-detail-EEDQ3GQD.js → promotion-detail-PLGDC3A7.js} +3 -3
- package/dist/{promotion-edit-details-APVHD6J4.js → promotion-edit-details-RTLPOQ4H.js} +22 -13
- package/dist/{promotion-list-SXUXYV6R.js → promotion-list-D6HSZKGU.js} +5 -5
- package/dist/{refund-reason-list-OVTNXVLP.js → refund-reason-list-OWXAGHOQ.js} +5 -5
- package/dist/{region-add-countries-IIHNNE76.js → region-add-countries-UO5A42HM.js} +1 -1
- package/dist/{region-create-PHZNUCJR.js → region-create-7NA6RKWS.js} +1 -1
- package/dist/{region-detail-AECQQ62I.js → region-detail-636IAPYK.js} +2 -2
- package/dist/{region-list-IBQW5J3R.js → region-list-GIU6NFI4.js} +2 -2
- package/dist/{region-metadata-3KASKFZ3.js → region-metadata-NRV3L42D.js} +1 -1
- package/dist/{reservation-detail-MAWHNY2H.js → reservation-detail-PWZ3PLC4.js} +2 -2
- package/dist/{reservation-list-IUYMT4U6.js → reservation-list-URKNAFIX.js} +2 -2
- package/dist/{reservation-metadata-ENY4V2ED.js → reservation-metadata-ZFKKAOWG.js} +1 -1
- package/dist/{reset-password-UIDUOHVW.js → reset-password-UDA5ZMTZ.js} +1 -1
- package/dist/{return-reason-list-FRHFRNKK.js → return-reason-list-4ANB2PXX.js} +6 -6
- package/dist/{sales-channel-add-products-ZCUVTJQN.js → sales-channel-add-products-NATZ7L5S.js} +5 -5
- package/dist/{sales-channel-detail-EZVCWMMS.js → sales-channel-detail-VDYOKH35.js} +6 -6
- package/dist/{sales-channel-metadata-RXC4IDD3.js → sales-channel-metadata-5W4OZZYI.js} +1 -1
- package/dist/{shipping-option-type-list-Y43XD2XM.js → shipping-option-type-list-4FML2ZX5.js} +2 -2
- package/dist/{shipping-profile-metadata-HMQZ6LGB.js → shipping-profile-metadata-52ZW757T.js} +1 -1
- package/dist/{shipping-profiles-list-4VHKTKIL.js → shipping-profiles-list-PZQVMKR4.js} +2 -2
- package/dist/{store-address-edit-B4LWVP73.js → store-address-edit-IJ2UW6WC.js} +1 -1
- package/dist/{store-bulk-edit-IXWGUFY2.js → store-bulk-edit-I2J5YYZK.js} +1 -1
- package/dist/{store-create-PL2XGIR5.js → store-create-4UHISWQE.js} +3 -3
- package/dist/{store-details-4DAUF3CD.js → store-details-4D7MSGVL.js} +6 -6
- package/dist/{store-edit-ESFC2UXE.js → store-edit-MQZMWYXY.js} +23 -9
- package/dist/{store-list-KANREHW5.js → store-list-EBAHJOZO.js} +5 -5
- package/dist/{store-member-invite-U4UQS5VC.js → store-member-invite-J2JFDOHX.js} +2 -2
- package/dist/{tax-region-create-4YEJ3HFY.js → tax-region-create-GGDCD2VU.js} +1 -1
- package/dist/{tax-region-metadata-N3QNTXME.js → tax-region-metadata-4P667IOY.js} +1 -1
- package/dist/{tax-region-tax-override-create-JZHOHCXF.js → tax-region-tax-override-create-5PIUENUZ.js} +7 -7
- package/dist/{tax-region-tax-override-edit-SZRD23P4.js → tax-region-tax-override-edit-GBPRPUTS.js} +7 -7
- package/dist/{user-invite-UN6NCCII.js → user-invite-FCWARLW5.js} +1 -1
- package/dist/{user-list-27ZKEJXN.js → user-list-OU6WS25V.js} +2 -2
- package/dist/{user-metadata-BD73LJWB.js → user-metadata-CHHV7S3A.js} +1 -1
- package/package.json +23 -18
- package/dist/chunk-LFKTHNWI.js +0 -83
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./chunk-RK5N3XIX.js";
|
|
13
13
|
import {
|
|
14
14
|
useProductTableColumns
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-I5HY5Q3K.js";
|
|
16
16
|
import {
|
|
17
17
|
useProductTableFilters
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LGOPKYNG.js";
|
|
19
19
|
import {
|
|
20
20
|
useProductTableQuery
|
|
21
21
|
} from "./chunk-H7NIKMPE.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
_DataTable,
|
|
27
27
|
useDataTable
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
29
29
|
import {
|
|
30
30
|
usePriceList,
|
|
31
31
|
usePriceListLinkProducts
|
|
@@ -47,11 +47,13 @@ import {
|
|
|
47
47
|
// src/pages/price-lists/price-list-detail/price-list-detail.tsx
|
|
48
48
|
import { Children } from "react";
|
|
49
49
|
import { useParams } from "react-router-dom";
|
|
50
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
50
51
|
|
|
51
52
|
// src/pages/price-lists/price-list-detail/components/price-list-configuration-section/price-list-configuration-section.tsx
|
|
52
53
|
import { PencilSquare } from "@medusajs/icons";
|
|
53
54
|
import { Container, Heading } from "@medusajs/ui";
|
|
54
55
|
import { useTranslation } from "react-i18next";
|
|
56
|
+
import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
|
|
55
57
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
56
58
|
var PriceListConfigurationSection = ({
|
|
57
59
|
priceList
|
|
@@ -89,6 +91,14 @@ var PriceListConfigurationSection = ({
|
|
|
89
91
|
showTime: true,
|
|
90
92
|
"data-testid": "price-list-configuration-section-date-range"
|
|
91
93
|
}
|
|
94
|
+
),
|
|
95
|
+
/* @__PURE__ */ jsx(
|
|
96
|
+
DisplayExtensionZone,
|
|
97
|
+
{
|
|
98
|
+
model: "price_list",
|
|
99
|
+
zone: "configuration",
|
|
100
|
+
data: priceList
|
|
101
|
+
}
|
|
92
102
|
)
|
|
93
103
|
] });
|
|
94
104
|
};
|
|
@@ -129,6 +139,7 @@ var CustomerGroupDisplay = ({
|
|
|
129
139
|
import { PencilSquare as PencilSquare2, Trash } from "@medusajs/icons";
|
|
130
140
|
import { Container as Container2, Heading as Heading2, StatusBadge, Text } from "@medusajs/ui";
|
|
131
141
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
142
|
+
import { DisplayExtensionZone as DisplayExtensionZone2, DisplayField } from "@mercurjs/dashboard-shared";
|
|
132
143
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
133
144
|
var PriceListGeneralSection = ({
|
|
134
145
|
priceList
|
|
@@ -138,11 +149,18 @@ var PriceListGeneralSection = ({
|
|
|
138
149
|
const { color, text } = getPriceListStatus(t, priceList);
|
|
139
150
|
const handleDelete = useDeletePriceListAction({ priceList });
|
|
140
151
|
const type = priceList.type === "sale" ? t("priceLists.fields.type.options.sale.label") : t("priceLists.fields.type.options.override.label");
|
|
152
|
+
const GENERAL_FIELD_IDS = [
|
|
153
|
+
"title",
|
|
154
|
+
"status",
|
|
155
|
+
"type",
|
|
156
|
+
"description",
|
|
157
|
+
"price_overrides"
|
|
158
|
+
];
|
|
141
159
|
return /* @__PURE__ */ jsxs2(Container2, { className: "divide-y p-0", "data-testid": "price-list-general-section-container", children: [
|
|
142
160
|
/* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "price-list-general-section-header", children: [
|
|
143
|
-
/* @__PURE__ */ jsx2(Heading2, { "data-testid": "price-list-general-section-title", children: priceList.title }),
|
|
161
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "price_list", zone: "general", id: "title", data: priceList, children: /* @__PURE__ */ jsx2(Heading2, { "data-testid": "price-list-general-section-title", children: priceList.title }) }),
|
|
144
162
|
/* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-x-4", children: [
|
|
145
|
-
/* @__PURE__ */ jsx2(StatusBadge, { color, "data-testid": "price-list-general-section-status", children: text }),
|
|
163
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "price_list", zone: "general", id: "status", data: priceList, children: /* @__PURE__ */ jsx2(StatusBadge, { color, "data-testid": "price-list-general-section-status", children: text }) }),
|
|
146
164
|
/* @__PURE__ */ jsx2(
|
|
147
165
|
ActionMenu,
|
|
148
166
|
{
|
|
@@ -171,18 +189,19 @@ var PriceListGeneralSection = ({
|
|
|
171
189
|
)
|
|
172
190
|
] })
|
|
173
191
|
] }),
|
|
174
|
-
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "price-list-general-section-type", children: [
|
|
192
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "price_list", zone: "general", id: "type", data: priceList, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "price-list-general-section-type", children: [
|
|
175
193
|
/* @__PURE__ */ jsx2(Text, { leading: "compact", size: "small", weight: "plus", "data-testid": "price-list-general-section-type-label", children: t("fields.type") }),
|
|
176
194
|
/* @__PURE__ */ jsx2(Text, { size: "small", className: "text-pretty", "data-testid": "price-list-general-section-type-value", children: type })
|
|
177
|
-
] }),
|
|
178
|
-
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "price-list-general-section-description", children: [
|
|
195
|
+
] }) }),
|
|
196
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "price_list", zone: "general", id: "description", data: priceList, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "price-list-general-section-description", children: [
|
|
179
197
|
/* @__PURE__ */ jsx2(Text, { leading: "compact", size: "small", weight: "plus", "data-testid": "price-list-general-section-description-label", children: t("fields.description") }),
|
|
180
198
|
/* @__PURE__ */ jsx2(Text, { size: "small", className: "text-pretty", "data-testid": "price-list-general-section-description-value", children: priceList.description })
|
|
181
|
-
] }),
|
|
182
|
-
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "price-list-general-section-price-overrides", children: [
|
|
199
|
+
] }) }),
|
|
200
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "price_list", zone: "general", id: "price_overrides", data: priceList, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "price-list-general-section-price-overrides", children: [
|
|
183
201
|
/* @__PURE__ */ jsx2(Text, { leading: "compact", size: "small", weight: "plus", "data-testid": "price-list-general-section-price-overrides-label", children: t("priceLists.fields.priceOverrides.label") }),
|
|
184
202
|
/* @__PURE__ */ jsx2(Text, { size: "small", className: "text-pretty", "data-testid": "price-list-general-section-price-overrides-value", children: overrideCount || "-" })
|
|
185
|
-
] })
|
|
203
|
+
] }) }),
|
|
204
|
+
/* @__PURE__ */ jsx2(DisplayExtensionZone2, { model: "price_list", zone: "general", data: priceList, builtInFieldIds: GENERAL_FIELD_IDS })
|
|
186
205
|
] });
|
|
187
206
|
};
|
|
188
207
|
|
|
@@ -194,6 +213,7 @@ import { createColumnHelper } from "@tanstack/react-table";
|
|
|
194
213
|
import { useMemo, useState } from "react";
|
|
195
214
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
196
215
|
import { useNavigate } from "react-router-dom";
|
|
216
|
+
import { DisplayExtensionZone as DisplayExtensionZone3 } from "@mercurjs/dashboard-shared";
|
|
197
217
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
198
218
|
var PAGE_SIZE = 10;
|
|
199
219
|
var PREFIX = "p";
|
|
@@ -333,6 +353,14 @@ var PriceListProductSection = ({
|
|
|
333
353
|
queryObject: raw,
|
|
334
354
|
"data-testid": "price-list-product-section-table"
|
|
335
355
|
}
|
|
356
|
+
),
|
|
357
|
+
/* @__PURE__ */ jsx3(
|
|
358
|
+
DisplayExtensionZone3,
|
|
359
|
+
{
|
|
360
|
+
model: "price_list",
|
|
361
|
+
zone: "products",
|
|
362
|
+
data: priceList
|
|
363
|
+
}
|
|
336
364
|
)
|
|
337
365
|
] });
|
|
338
366
|
};
|
|
@@ -450,11 +478,11 @@ var Root = ({ children }) => {
|
|
|
450
478
|
throw error;
|
|
451
479
|
}
|
|
452
480
|
return Children.count(children) > 0 ? /* @__PURE__ */ jsx4(TwoColumnPage, { data: price_list, showJSON: true, "data-testid": "price-list-detail-page", children }) : /* @__PURE__ */ jsxs4(TwoColumnPage, { data: price_list, showJSON: true, "data-testid": "price-list-detail-page", children: [
|
|
453
|
-
/* @__PURE__ */
|
|
481
|
+
/* @__PURE__ */ jsx4(TwoColumnPage.Main, { children: /* @__PURE__ */ jsxs4(WidgetZone, { id: "price-lists.detail.main", data: price_list, children: [
|
|
454
482
|
/* @__PURE__ */ jsx4(PriceListGeneralSection, { priceList: price_list }),
|
|
455
483
|
/* @__PURE__ */ jsx4(PriceListProductSection, { priceList: price_list })
|
|
456
|
-
] }),
|
|
457
|
-
/* @__PURE__ */ jsx4(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx4(PriceListConfigurationSection, { priceList: price_list }) })
|
|
484
|
+
] }) }),
|
|
485
|
+
/* @__PURE__ */ jsx4(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx4(WidgetZone, { id: "price-lists.detail.side", data: price_list, children: /* @__PURE__ */ jsx4(PriceListConfigurationSection, { priceList: price_list }) }) })
|
|
458
486
|
] });
|
|
459
487
|
};
|
|
460
488
|
var PriceListDetailPage = Object.assign(Root, {
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
} from "./chunk-KOURHC2N.js";
|
|
10
10
|
import {
|
|
11
11
|
useProductTagTableQuery
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-COOOOQ2N.js";
|
|
13
13
|
import {
|
|
14
14
|
_DataTable,
|
|
15
15
|
useDataTable
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
17
17
|
import {
|
|
18
18
|
SingleColumnPage
|
|
19
19
|
} from "./chunk-H6MYB7GB.js";
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SectionRow
|
|
3
|
+
} from "./chunk-3XPXUIK3.js";
|
|
4
|
+
import {
|
|
5
|
+
ActionMenu
|
|
6
|
+
} from "./chunk-BDGZ4EQO.js";
|
|
7
|
+
|
|
8
|
+
// src/pages/inventory/inventory-detail/components/inventory-item-general-section.tsx
|
|
9
|
+
import { Container, Heading } from "@medusajs/ui";
|
|
10
|
+
import { PencilSquare } from "@medusajs/icons";
|
|
11
|
+
import { useTranslation } from "react-i18next";
|
|
12
|
+
import { DisplayExtensionZone, DisplayField } from "@mercurjs/dashboard-shared";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
var InventoryItemGeneralSection = ({
|
|
15
|
+
inventoryItem
|
|
16
|
+
}) => {
|
|
17
|
+
const { t } = useTranslation();
|
|
18
|
+
const getQuantityFormat = (quantity) => {
|
|
19
|
+
if (quantity !== void 0 && !isNaN(quantity)) {
|
|
20
|
+
return t("inventory.quantityAcrossLocations", {
|
|
21
|
+
quantity,
|
|
22
|
+
locations: inventoryItem.location_levels?.length
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return "-";
|
|
26
|
+
};
|
|
27
|
+
return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", "data-testid": "inventory-item-general-section", children: [
|
|
28
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "inventory-item-general-header", children: [
|
|
29
|
+
/* @__PURE__ */ jsx(
|
|
30
|
+
DisplayField,
|
|
31
|
+
{
|
|
32
|
+
model: "inventory_item",
|
|
33
|
+
zone: "general",
|
|
34
|
+
id: "title",
|
|
35
|
+
data: inventoryItem,
|
|
36
|
+
children: /* @__PURE__ */ jsxs(Heading, { "data-testid": "inventory-item-general-title", children: [
|
|
37
|
+
inventoryItem.title ?? inventoryItem.sku,
|
|
38
|
+
" ",
|
|
39
|
+
t("fields.details")
|
|
40
|
+
] })
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ jsx(
|
|
44
|
+
ActionMenu,
|
|
45
|
+
{
|
|
46
|
+
groups: [
|
|
47
|
+
{
|
|
48
|
+
actions: [
|
|
49
|
+
{
|
|
50
|
+
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
51
|
+
label: t("actions.edit"),
|
|
52
|
+
to: "edit"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"data-testid": "inventory-item-general-action-menu"
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ jsx(
|
|
62
|
+
DisplayField,
|
|
63
|
+
{
|
|
64
|
+
model: "inventory_item",
|
|
65
|
+
zone: "general",
|
|
66
|
+
id: "sku",
|
|
67
|
+
data: inventoryItem,
|
|
68
|
+
children: /* @__PURE__ */ jsx(SectionRow, { title: t("fields.sku"), value: inventoryItem.sku ?? "-", "data-testid": "inventory-item-sku-row" })
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
/* @__PURE__ */ jsx(
|
|
72
|
+
DisplayField,
|
|
73
|
+
{
|
|
74
|
+
model: "inventory_item",
|
|
75
|
+
zone: "general",
|
|
76
|
+
id: "stocked_quantity",
|
|
77
|
+
data: inventoryItem,
|
|
78
|
+
children: /* @__PURE__ */ jsx(
|
|
79
|
+
SectionRow,
|
|
80
|
+
{
|
|
81
|
+
title: t("fields.inStock"),
|
|
82
|
+
value: getQuantityFormat(inventoryItem.stocked_quantity),
|
|
83
|
+
"data-testid": "inventory-item-in-stock-row"
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
}
|
|
87
|
+
),
|
|
88
|
+
/* @__PURE__ */ jsx(
|
|
89
|
+
DisplayField,
|
|
90
|
+
{
|
|
91
|
+
model: "inventory_item",
|
|
92
|
+
zone: "general",
|
|
93
|
+
id: "reserved_quantity",
|
|
94
|
+
data: inventoryItem,
|
|
95
|
+
children: /* @__PURE__ */ jsx(
|
|
96
|
+
SectionRow,
|
|
97
|
+
{
|
|
98
|
+
title: t("inventory.reserved"),
|
|
99
|
+
value: getQuantityFormat(inventoryItem.reserved_quantity),
|
|
100
|
+
"data-testid": "inventory-item-reserved-row"
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
/* @__PURE__ */ jsx(
|
|
106
|
+
DisplayField,
|
|
107
|
+
{
|
|
108
|
+
model: "inventory_item",
|
|
109
|
+
zone: "general",
|
|
110
|
+
id: "available_quantity",
|
|
111
|
+
data: inventoryItem,
|
|
112
|
+
children: /* @__PURE__ */ jsx(
|
|
113
|
+
SectionRow,
|
|
114
|
+
{
|
|
115
|
+
title: t("inventory.available"),
|
|
116
|
+
value: getQuantityFormat(
|
|
117
|
+
inventoryItem.stocked_quantity - inventoryItem.reserved_quantity
|
|
118
|
+
),
|
|
119
|
+
"data-testid": "inventory-item-available-row"
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
}
|
|
123
|
+
),
|
|
124
|
+
/* @__PURE__ */ jsx(
|
|
125
|
+
DisplayExtensionZone,
|
|
126
|
+
{
|
|
127
|
+
model: "inventory_item",
|
|
128
|
+
zone: "general",
|
|
129
|
+
data: inventoryItem,
|
|
130
|
+
builtInFieldIds: [
|
|
131
|
+
"title",
|
|
132
|
+
"sku",
|
|
133
|
+
"stocked_quantity",
|
|
134
|
+
"reserved_quantity",
|
|
135
|
+
"available_quantity"
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
] });
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export {
|
|
143
|
+
InventoryItemGeneralSection
|
|
144
|
+
};
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
} from "./chunk-RQQ53CQJ.js";
|
|
8
8
|
import {
|
|
9
9
|
useReturnReasonTableQuery
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-COOOOQ2N.js";
|
|
11
11
|
import {
|
|
12
12
|
_DataTable,
|
|
13
13
|
useDataTable
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
15
15
|
import {
|
|
16
16
|
SingleColumnPage
|
|
17
17
|
} from "./chunk-H6MYB7GB.js";
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
import {
|
|
79
79
|
_DataTable,
|
|
80
80
|
useDataTable
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
82
82
|
import {
|
|
83
83
|
useDate
|
|
84
84
|
} from "./chunk-UZWFZMOX.js";
|
|
@@ -118,6 +118,7 @@ import {
|
|
|
118
118
|
// src/pages/orders/order-detail/order-detail.tsx
|
|
119
119
|
import { Children } from "react";
|
|
120
120
|
import { useLoaderData, useParams as useParams2 } from "react-router-dom";
|
|
121
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
121
122
|
|
|
122
123
|
// src/pages/orders/order-detail/components/active-order-claim-section/active-order-claim-section.tsx
|
|
123
124
|
import { ExclamationCircle } from "@medusajs/icons";
|
|
@@ -454,6 +455,7 @@ var OrderActiveEditSection = ({
|
|
|
454
455
|
|
|
455
456
|
// src/pages/orders/order-detail/components/order-activity-section/order-activity-section.tsx
|
|
456
457
|
import { Container as Container5, Heading as Heading5 } from "@medusajs/ui";
|
|
458
|
+
import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
|
|
457
459
|
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
458
460
|
|
|
459
461
|
// src/pages/orders/order-detail/components/order-activity-section/order-timeline.tsx
|
|
@@ -1379,12 +1381,14 @@ var OrderActivitySection = ({ order }) => {
|
|
|
1379
1381
|
const { t } = useTranslation8();
|
|
1380
1382
|
return /* @__PURE__ */ jsxs8(Container5, { className: "flex flex-col gap-y-8 px-6 py-4", "data-testid": "order-activity-section", children: [
|
|
1381
1383
|
/* @__PURE__ */ jsx8("div", { className: "flex flex-col gap-y-4", children: /* @__PURE__ */ jsx8("div", { className: "flex items-center justify-between", "data-testid": "order-activity-header", children: /* @__PURE__ */ jsx8(Heading5, { level: "h2", "data-testid": "order-activity-heading", children: t("orders.activity.header") }) }) }),
|
|
1382
|
-
/* @__PURE__ */ jsx8(OrderTimeline, { order })
|
|
1384
|
+
/* @__PURE__ */ jsx8(OrderTimeline, { order }),
|
|
1385
|
+
/* @__PURE__ */ jsx8(DisplayExtensionZone, { model: "order", zone: "activity", data: order })
|
|
1383
1386
|
] });
|
|
1384
1387
|
};
|
|
1385
1388
|
|
|
1386
1389
|
// src/pages/orders/order-detail/components/order-commission-section/order-commission-section.tsx
|
|
1387
1390
|
import { Container as Container6, Heading as Heading6, Text as Text7 } from "@medusajs/ui";
|
|
1391
|
+
import { DisplayExtensionZone as DisplayExtensionZone2 } from "@mercurjs/dashboard-shared";
|
|
1388
1392
|
import { useMemo as useMemo3 } from "react";
|
|
1389
1393
|
import { useTranslation as useTranslation9 } from "react-i18next";
|
|
1390
1394
|
import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
@@ -1408,7 +1412,7 @@ var OrderCommissionSection = ({
|
|
|
1408
1412
|
0
|
|
1409
1413
|
);
|
|
1410
1414
|
return /* @__PURE__ */ jsxs9(Container6, { className: "divide-y p-0", "data-testid": "order-commission-section", children: [
|
|
1411
|
-
/* @__PURE__ */ jsx9("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx9(Heading6, { level: "h2", children: t("fields.commission"
|
|
1415
|
+
/* @__PURE__ */ jsx9("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx9(Heading6, { level: "h2", children: t("fields.commission") }) }),
|
|
1412
1416
|
/* @__PURE__ */ jsx9("div", { className: "divide-y", children: commission_lines.map((line) => {
|
|
1413
1417
|
const label = line.shipping_method_id ? t("fields.shipping") : itemTitleById.get(line.item_id ?? "") ?? line.code;
|
|
1414
1418
|
return /* @__PURE__ */ jsxs9(
|
|
@@ -1424,15 +1428,17 @@ var OrderCommissionSection = ({
|
|
|
1424
1428
|
);
|
|
1425
1429
|
}) }),
|
|
1426
1430
|
/* @__PURE__ */ jsxs9("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
1427
|
-
/* @__PURE__ */ jsx9(Text7, { size: "small", weight: "plus", leading: "compact", children: t("orders.commission.total"
|
|
1431
|
+
/* @__PURE__ */ jsx9(Text7, { size: "small", weight: "plus", leading: "compact", children: t("orders.commission.total") }),
|
|
1428
1432
|
/* @__PURE__ */ jsx9(Text7, { size: "small", weight: "plus", leading: "compact", children: getLocaleAmount(total, order.currency_code) })
|
|
1429
|
-
] })
|
|
1433
|
+
] }),
|
|
1434
|
+
/* @__PURE__ */ jsx9(DisplayExtensionZone2, { model: "order", zone: "commission", data: order })
|
|
1430
1435
|
] });
|
|
1431
1436
|
};
|
|
1432
1437
|
|
|
1433
1438
|
// src/pages/orders/order-detail/components/order-customer-section/order-customer-section.tsx
|
|
1434
1439
|
import { ArrowPath as ArrowPath2, CurrencyDollar, Envelope, FlyingBox } from "@medusajs/icons";
|
|
1435
1440
|
import { Container as Container7, Heading as Heading7 } from "@medusajs/ui";
|
|
1441
|
+
import { DisplayExtensionZone as DisplayExtensionZone3 } from "@mercurjs/dashboard-shared";
|
|
1436
1442
|
import { useTranslation as useTranslation11 } from "react-i18next";
|
|
1437
1443
|
|
|
1438
1444
|
// src/components/common/customer-info/customer-info.tsx
|
|
@@ -1590,7 +1596,8 @@ var OrderCustomerSection = ({ order }) => {
|
|
|
1590
1596
|
/* @__PURE__ */ jsx11(CustomerInfo.ID, { data: order }),
|
|
1591
1597
|
/* @__PURE__ */ jsx11(CustomerInfo.Contact, { data: order }),
|
|
1592
1598
|
/* @__PURE__ */ jsx11(CustomerInfo.Company, { data: order }),
|
|
1593
|
-
/* @__PURE__ */ jsx11(CustomerInfo.Addresses, { data: order })
|
|
1599
|
+
/* @__PURE__ */ jsx11(CustomerInfo.Addresses, { data: order }),
|
|
1600
|
+
/* @__PURE__ */ jsx11(DisplayExtensionZone3, { model: "order", zone: "customer", data: order })
|
|
1594
1601
|
]
|
|
1595
1602
|
}
|
|
1596
1603
|
);
|
|
@@ -1895,7 +1902,15 @@ import {
|
|
|
1895
1902
|
usePrompt as usePrompt2
|
|
1896
1903
|
} from "@medusajs/ui";
|
|
1897
1904
|
import { useTranslation as useTranslation13 } from "react-i18next";
|
|
1905
|
+
import { DisplayExtensionZone as DisplayExtensionZone4, DisplayField } from "@mercurjs/dashboard-shared";
|
|
1898
1906
|
import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1907
|
+
var GENERAL_FIELD_IDS = [
|
|
1908
|
+
"display_id",
|
|
1909
|
+
"created_at",
|
|
1910
|
+
"status",
|
|
1911
|
+
"payment_status",
|
|
1912
|
+
"fulfillment_status"
|
|
1913
|
+
];
|
|
1899
1914
|
var OrderGeneralSection = ({ order }) => {
|
|
1900
1915
|
const { t } = useTranslation13();
|
|
1901
1916
|
const prompt = usePrompt2();
|
|
@@ -1930,23 +1945,23 @@ var OrderGeneralSection = ({ order }) => {
|
|
|
1930
1945
|
};
|
|
1931
1946
|
return /* @__PURE__ */ jsxs13(Container9, { className: "flex items-center justify-between px-6 py-4", "data-testid": "order-general-section", children: [
|
|
1932
1947
|
/* @__PURE__ */ jsxs13("div", { children: [
|
|
1933
|
-
/* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-x-1", "data-testid": "order-general-section-id-container", children: [
|
|
1948
|
+
/* @__PURE__ */ jsx13(DisplayField, { model: "order", zone: "general", id: "display_id", data: order, children: /* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-x-1", "data-testid": "order-general-section-id-container", children: [
|
|
1934
1949
|
/* @__PURE__ */ jsxs13(Heading9, { "data-testid": "order-general-section-id-heading", children: [
|
|
1935
1950
|
"#",
|
|
1936
1951
|
order.display_id
|
|
1937
1952
|
] }),
|
|
1938
1953
|
/* @__PURE__ */ jsx13(Copy4, { content: `#${order.display_id}`, className: "text-ui-fg-muted", "data-testid": "order-general-section-id-copy" })
|
|
1939
|
-
] }),
|
|
1940
|
-
/* @__PURE__ */ jsx13(Text10, { size: "small", className: "text-ui-fg-subtle", "data-testid": "order-general-section-date", children: t("orders.onDateFromSalesChannel", {
|
|
1954
|
+
] }) }),
|
|
1955
|
+
/* @__PURE__ */ jsx13(DisplayField, { model: "order", zone: "general", id: "created_at", data: order, children: /* @__PURE__ */ jsx13(Text10, { size: "small", className: "text-ui-fg-subtle", "data-testid": "order-general-section-date", children: t("orders.onDateFromSalesChannel", {
|
|
1941
1956
|
date: getFullDate({ date: order.created_at, includeTime: true }),
|
|
1942
1957
|
salesChannel: order.sales_channel?.name
|
|
1943
|
-
}) })
|
|
1958
|
+
}) }) })
|
|
1944
1959
|
] }),
|
|
1945
1960
|
/* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-x-4", "data-testid": "order-general-section-badges-container", children: [
|
|
1946
1961
|
/* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-x-1.5", "data-testid": "order-general-section-badges", children: [
|
|
1947
|
-
/* @__PURE__ */ jsx13(OrderBadge, { order }),
|
|
1948
|
-
/* @__PURE__ */ jsx13(PaymentBadge, { order }),
|
|
1949
|
-
/* @__PURE__ */ jsx13(FulfillmentBadge, { order })
|
|
1962
|
+
/* @__PURE__ */ jsx13(DisplayField, { model: "order", zone: "general", id: "status", data: order, children: /* @__PURE__ */ jsx13(OrderBadge, { order }) }),
|
|
1963
|
+
/* @__PURE__ */ jsx13(DisplayField, { model: "order", zone: "general", id: "payment_status", data: order, children: /* @__PURE__ */ jsx13(PaymentBadge, { order }) }),
|
|
1964
|
+
/* @__PURE__ */ jsx13(DisplayField, { model: "order", zone: "general", id: "fulfillment_status", data: order, children: /* @__PURE__ */ jsx13(FulfillmentBadge, { order }) })
|
|
1950
1965
|
] }),
|
|
1951
1966
|
/* @__PURE__ */ jsx13(
|
|
1952
1967
|
ActionMenu,
|
|
@@ -1967,7 +1982,16 @@ var OrderGeneralSection = ({ order }) => {
|
|
|
1967
1982
|
"data-testid": "order-general-section-action-menu"
|
|
1968
1983
|
}
|
|
1969
1984
|
)
|
|
1970
|
-
] })
|
|
1985
|
+
] }),
|
|
1986
|
+
/* @__PURE__ */ jsx13(
|
|
1987
|
+
DisplayExtensionZone4,
|
|
1988
|
+
{
|
|
1989
|
+
model: "order",
|
|
1990
|
+
zone: "general",
|
|
1991
|
+
data: order,
|
|
1992
|
+
builtInFieldIds: GENERAL_FIELD_IDS
|
|
1993
|
+
}
|
|
1994
|
+
)
|
|
1971
1995
|
] });
|
|
1972
1996
|
};
|
|
1973
1997
|
var FulfillmentBadge = ({ order }) => {
|
|
@@ -2035,6 +2059,7 @@ import {
|
|
|
2035
2059
|
Tooltip as Tooltip4,
|
|
2036
2060
|
usePrompt as usePrompt3
|
|
2037
2061
|
} from "@medusajs/ui";
|
|
2062
|
+
import { DisplayExtensionZone as DisplayExtensionZone5 } from "@mercurjs/dashboard-shared";
|
|
2038
2063
|
import { format as format2 } from "date-fns";
|
|
2039
2064
|
import { Trans, useTranslation as useTranslation15 } from "react-i18next";
|
|
2040
2065
|
import { jsx as jsx15, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
@@ -2057,7 +2082,8 @@ var OrderPaymentSection = ({ order }) => {
|
|
|
2057
2082
|
currencyCode: order.currency_code
|
|
2058
2083
|
}
|
|
2059
2084
|
),
|
|
2060
|
-
/* @__PURE__ */ jsx15(Total, { order })
|
|
2085
|
+
/* @__PURE__ */ jsx15(Total, { order }),
|
|
2086
|
+
/* @__PURE__ */ jsx15(DisplayExtensionZone5, { model: "order", zone: "payment", data: order })
|
|
2061
2087
|
]
|
|
2062
2088
|
}
|
|
2063
2089
|
);
|
|
@@ -2422,7 +2448,7 @@ var Total = ({ order }) => {
|
|
|
2422
2448
|
className: "flex items-center justify-between",
|
|
2423
2449
|
"data-testid": "order-payment-total-pending",
|
|
2424
2450
|
children: [
|
|
2425
|
-
/* @__PURE__ */ jsx15(Text11, { size: "small", weight: "plus", leading: "compact", children: "
|
|
2451
|
+
/* @__PURE__ */ jsx15(Text11, { size: "small", weight: "plus", leading: "compact", children: t("orders.payment.totalPending") }),
|
|
2426
2452
|
/* @__PURE__ */ jsx15(Text11, { size: "small", weight: "plus", leading: "compact", children: getStylizedAmount(totalPending, order.currency_code) })
|
|
2427
2453
|
]
|
|
2428
2454
|
}
|
|
@@ -2458,6 +2484,7 @@ import {
|
|
|
2458
2484
|
Tooltip as Tooltip6,
|
|
2459
2485
|
usePrompt as usePrompt4
|
|
2460
2486
|
} from "@medusajs/ui";
|
|
2487
|
+
import { DisplayExtensionZone as DisplayExtensionZone6 } from "@mercurjs/dashboard-shared";
|
|
2461
2488
|
import { format as format3 } from "date-fns";
|
|
2462
2489
|
|
|
2463
2490
|
// src/lib/credit-line.ts
|
|
@@ -2682,7 +2709,8 @@ var OrderSummarySection = ({ order }) => {
|
|
|
2682
2709
|
)
|
|
2683
2710
|
]
|
|
2684
2711
|
}
|
|
2685
|
-
)
|
|
2712
|
+
),
|
|
2713
|
+
/* @__PURE__ */ jsx18(DisplayExtensionZone6, { model: "order", zone: "summary", data: order })
|
|
2686
2714
|
]
|
|
2687
2715
|
}
|
|
2688
2716
|
);
|
|
@@ -3557,6 +3585,7 @@ var Total2 = ({ order }) => {
|
|
|
3557
3585
|
|
|
3558
3586
|
// src/pages/orders/order-detail/components/order-remaining-orders-group-section/order-remaining-orders-group-section.tsx
|
|
3559
3587
|
import { Container as Container12, Heading as Heading12 } from "@medusajs/ui";
|
|
3588
|
+
import { DisplayExtensionZone as DisplayExtensionZone7 } from "@mercurjs/dashboard-shared";
|
|
3560
3589
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
3561
3590
|
import { useMemo as useMemo5 } from "react";
|
|
3562
3591
|
import { useTranslation as useTranslation19 } from "react-i18next";
|
|
@@ -3601,10 +3630,7 @@ var OrderRemainingOrdersGroupSection = () => {
|
|
|
3601
3630
|
{
|
|
3602
3631
|
className: "flex items-center justify-between px-6 py-4",
|
|
3603
3632
|
"data-testid": "order-remaining-orders-group-header",
|
|
3604
|
-
children: /* @__PURE__ */
|
|
3605
|
-
t("orders.domain"),
|
|
3606
|
-
" in group"
|
|
3607
|
-
] })
|
|
3633
|
+
children: /* @__PURE__ */ jsx19(Heading12, { level: "h2", "data-testid": "order-remaining-orders-group-heading", children: t("orders.group.heading") })
|
|
3608
3634
|
}
|
|
3609
3635
|
),
|
|
3610
3636
|
/* @__PURE__ */ jsx19(
|
|
@@ -3617,9 +3643,17 @@ var OrderRemainingOrdersGroupSection = () => {
|
|
|
3617
3643
|
isLoading,
|
|
3618
3644
|
pageSize: orders.length,
|
|
3619
3645
|
noRecords: {
|
|
3620
|
-
message: "
|
|
3646
|
+
message: t("orders.group.noOtherOrders")
|
|
3621
3647
|
}
|
|
3622
3648
|
}
|
|
3649
|
+
),
|
|
3650
|
+
/* @__PURE__ */ jsx19(
|
|
3651
|
+
DisplayExtensionZone7,
|
|
3652
|
+
{
|
|
3653
|
+
model: "order",
|
|
3654
|
+
zone: "order-group",
|
|
3655
|
+
data: order_group
|
|
3656
|
+
}
|
|
3623
3657
|
)
|
|
3624
3658
|
]
|
|
3625
3659
|
}
|
|
@@ -3722,7 +3756,7 @@ var Root = ({ children }) => {
|
|
|
3722
3756
|
hasOutlet: true,
|
|
3723
3757
|
"data-testid": "order-detail-page",
|
|
3724
3758
|
children: [
|
|
3725
|
-
/* @__PURE__ */
|
|
3759
|
+
/* @__PURE__ */ jsx20(TwoColumnPage.Main, { "data-testid": "order-detail-main", children: /* @__PURE__ */ jsxs20(WidgetZone, { id: "orders.detail.main", data: order, children: [
|
|
3726
3760
|
/* @__PURE__ */ jsx20(OrderActiveEditSection, { order }),
|
|
3727
3761
|
/* @__PURE__ */ jsx20(ActiveOrderClaimSection, { orderPreview }),
|
|
3728
3762
|
/* @__PURE__ */ jsx20(ActiveOrderExchangeSection, { orderPreview }),
|
|
@@ -3732,12 +3766,12 @@ var Root = ({ children }) => {
|
|
|
3732
3766
|
/* @__PURE__ */ jsx20(OrderCommissionSection, { order }),
|
|
3733
3767
|
/* @__PURE__ */ jsx20(OrderPaymentSection, { order }),
|
|
3734
3768
|
/* @__PURE__ */ jsx20(OrderFulfillmentSection, { order })
|
|
3735
|
-
] }),
|
|
3736
|
-
/* @__PURE__ */
|
|
3769
|
+
] }) }),
|
|
3770
|
+
/* @__PURE__ */ jsx20(TwoColumnPage.Sidebar, { "data-testid": "order-detail-sidebar", children: /* @__PURE__ */ jsxs20(WidgetZone, { id: "orders.detail.side", data: order, children: [
|
|
3737
3771
|
/* @__PURE__ */ jsx20(OrderCustomerSection, { order }),
|
|
3738
3772
|
/* @__PURE__ */ jsx20(OrderActivitySection, { order }),
|
|
3739
3773
|
/* @__PURE__ */ jsx20(OrderRemainingOrdersGroupSection, {})
|
|
3740
|
-
] })
|
|
3774
|
+
] }) })
|
|
3741
3775
|
]
|
|
3742
3776
|
}
|
|
3743
3777
|
);
|