@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
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
usePromotionTableColumns,
|
|
3
3
|
usePromotionTableQuery
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ML7UVBKL.js";
|
|
5
5
|
import {
|
|
6
6
|
usePromotionTableFilters
|
|
7
7
|
} from "./chunk-S2WEYEQR.js";
|
|
8
8
|
import {
|
|
9
9
|
_DataTable,
|
|
10
10
|
useDataTable
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
12
12
|
import {
|
|
13
13
|
SingleColumnPage
|
|
14
14
|
} from "./chunk-H6MYB7GB.js";
|
|
@@ -22,11 +22,13 @@ import {
|
|
|
22
22
|
|
|
23
23
|
// src/pages/promotions/promotion-list/promotions-list.tsx
|
|
24
24
|
import { Children as Children2 } from "react";
|
|
25
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
25
26
|
|
|
26
27
|
// src/pages/promotions/promotion-list/components/promotion-list-table/promotion-list-table.tsx
|
|
27
28
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
28
29
|
import { Button, Container, Heading, usePrompt } from "@medusajs/ui";
|
|
29
30
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
31
|
+
import { useExtendableTable } from "@mercurjs/dashboard-shared";
|
|
30
32
|
import { Children, useMemo } from "react";
|
|
31
33
|
import { useTranslation } from "react-i18next";
|
|
32
34
|
import { Link, Outlet, useLoaderData, useNavigate } from "react-router-dom";
|
|
@@ -68,8 +70,12 @@ var PromotionListDataTable = () => {
|
|
|
68
70
|
placeholderData: keepPreviousData
|
|
69
71
|
}
|
|
70
72
|
);
|
|
71
|
-
const
|
|
72
|
-
const columns = useColumns();
|
|
73
|
+
const baseFilters = usePromotionTableFilters();
|
|
74
|
+
const { columns, filters: extFilters } = useColumns();
|
|
75
|
+
const filters = useMemo(
|
|
76
|
+
() => [...baseFilters, ...extFilters],
|
|
77
|
+
[baseFilters, extFilters]
|
|
78
|
+
);
|
|
73
79
|
const { table } = useDataTable({
|
|
74
80
|
data: promotions ?? [],
|
|
75
81
|
columns,
|
|
@@ -166,9 +172,13 @@ var PromotionActions = ({ promotion }) => {
|
|
|
166
172
|
var columnHelper = createColumnHelper();
|
|
167
173
|
var useColumns = () => {
|
|
168
174
|
const base = usePromotionTableColumns();
|
|
169
|
-
|
|
175
|
+
const { columns: extended, filters } = useExtendableTable({
|
|
176
|
+
model: "promotion",
|
|
177
|
+
columns: base
|
|
178
|
+
});
|
|
179
|
+
const columns = useMemo(
|
|
170
180
|
() => [
|
|
171
|
-
...
|
|
181
|
+
...extended,
|
|
172
182
|
columnHelper.display({
|
|
173
183
|
id: "actions",
|
|
174
184
|
cell: ({ row }) => {
|
|
@@ -176,14 +186,15 @@ var useColumns = () => {
|
|
|
176
186
|
}
|
|
177
187
|
})
|
|
178
188
|
],
|
|
179
|
-
[
|
|
189
|
+
[extended]
|
|
180
190
|
);
|
|
191
|
+
return { columns, filters };
|
|
181
192
|
};
|
|
182
193
|
|
|
183
194
|
// src/pages/promotions/promotion-list/promotions-list.tsx
|
|
184
195
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
185
196
|
var Root = ({ children }) => {
|
|
186
|
-
return /* @__PURE__ */ jsx2(SingleColumnPage, { children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx2(PromotionListTable, {}) });
|
|
197
|
+
return /* @__PURE__ */ jsx2(SingleColumnPage, { children: /* @__PURE__ */ jsx2(WidgetZone, { id: "promotions.list", children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx2(PromotionListTable, {}) }) });
|
|
187
198
|
};
|
|
188
199
|
var PromotionListPage = Object.assign(Root, {
|
|
189
200
|
Table: PromotionListTable,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
_DataTable,
|
|
26
26
|
useDataTable
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
28
28
|
import {
|
|
29
29
|
SingleColumnPage
|
|
30
30
|
} from "./chunk-H6MYB7GB.js";
|
|
@@ -34,6 +34,7 @@ import {
|
|
|
34
34
|
|
|
35
35
|
// src/pages/orders/order-list/order-list.tsx
|
|
36
36
|
import { Children as Children3 } from "react";
|
|
37
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
37
38
|
|
|
38
39
|
// src/pages/orders/order-list/components/order-list-table/order-list-table.tsx
|
|
39
40
|
import { Children as Children2 } from "react";
|
|
@@ -71,6 +72,7 @@ import { IconButton as IconButton2, clx } from "@medusajs/ui";
|
|
|
71
72
|
import { TriangleRightMini } from "@medusajs/icons";
|
|
72
73
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
73
74
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
75
|
+
import { useExtendableTable } from "@mercurjs/dashboard-shared";
|
|
74
76
|
import { useMemo } from "react";
|
|
75
77
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
76
78
|
|
|
@@ -196,8 +198,12 @@ var OrderListDataTable = () => {
|
|
|
196
198
|
() => transformOrderGroups(order_groups ?? [], t),
|
|
197
199
|
[order_groups, t]
|
|
198
200
|
);
|
|
199
|
-
const
|
|
200
|
-
const columns = useColumns();
|
|
201
|
+
const baseFilters = useOrderGroupTableFilters();
|
|
202
|
+
const { columns, filters: extFilters } = useColumns();
|
|
203
|
+
const filters = useMemo(
|
|
204
|
+
() => [...baseFilters, ...extFilters],
|
|
205
|
+
[baseFilters, extFilters]
|
|
206
|
+
);
|
|
201
207
|
const { table } = useDataTable({
|
|
202
208
|
data: rows,
|
|
203
209
|
columns,
|
|
@@ -245,7 +251,7 @@ var OrderListDataTable = () => {
|
|
|
245
251
|
var columnHelper = createColumnHelper();
|
|
246
252
|
var useColumns = () => {
|
|
247
253
|
const { t } = useTranslation3();
|
|
248
|
-
|
|
254
|
+
const base = useMemo(
|
|
249
255
|
() => [
|
|
250
256
|
columnHelper.accessor("display_id", {
|
|
251
257
|
header: () => /* @__PURE__ */ jsx3(TextHeader, { text: t("orders.fields.groupId") }),
|
|
@@ -340,6 +346,11 @@ var useColumns = () => {
|
|
|
340
346
|
],
|
|
341
347
|
[t]
|
|
342
348
|
);
|
|
349
|
+
const { columns: extended, filters } = useExtendableTable({
|
|
350
|
+
model: "order",
|
|
351
|
+
columns: base
|
|
352
|
+
});
|
|
353
|
+
return { columns: extended, filters };
|
|
343
354
|
};
|
|
344
355
|
|
|
345
356
|
// src/pages/orders/order-list/components/order-list-table/order-list-table.tsx
|
|
@@ -354,7 +365,7 @@ var OrderListTable = ({ children }) => {
|
|
|
354
365
|
// src/pages/orders/order-list/order-list.tsx
|
|
355
366
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
356
367
|
var Root = ({ children }) => {
|
|
357
|
-
return /* @__PURE__ */ jsx5(SingleColumnPage, { hasOutlet: false, "data-testid": "orders-list-page", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx5(OrderListTable, {}) });
|
|
368
|
+
return /* @__PURE__ */ jsx5(SingleColumnPage, { hasOutlet: false, "data-testid": "orders-list-page", children: /* @__PURE__ */ jsx5(WidgetZone, { id: "orders.list", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx5(OrderListTable, {}) }) });
|
|
358
369
|
};
|
|
359
370
|
var OrderListPage = Object.assign(Root, {
|
|
360
371
|
Table: OrderListTable,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PriceListCustomerGroupRuleForm
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CHMIK6PK.js";
|
|
4
4
|
import {
|
|
5
5
|
PriceListCreateProductsSchema,
|
|
6
6
|
PriceListRulesSchema,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
} from "./chunk-U5MJIHLY.js";
|
|
14
14
|
import {
|
|
15
15
|
useProductTableColumns
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-I5HY5Q3K.js";
|
|
17
17
|
import {
|
|
18
18
|
useProductTableFilters
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LGOPKYNG.js";
|
|
20
20
|
import {
|
|
21
21
|
useProductTableQuery
|
|
22
22
|
} from "./chunk-H7NIKMPE.js";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
import {
|
|
41
41
|
_DataTable,
|
|
42
42
|
useDataTable
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
44
44
|
import {
|
|
45
45
|
useCreatePriceList
|
|
46
46
|
} from "./chunk-LSMTJU6Y.js";
|
|
@@ -705,6 +705,8 @@ var PriceListCreateForm = ({
|
|
|
705
705
|
return /* @__PURE__ */ jsx4(
|
|
706
706
|
TabbedForm,
|
|
707
707
|
{
|
|
708
|
+
model: "price_list",
|
|
709
|
+
zone: "create",
|
|
708
710
|
form,
|
|
709
711
|
onSubmit: handleSubmit,
|
|
710
712
|
isLoading: isPending,
|
|
@@ -4,17 +4,17 @@ import {
|
|
|
4
4
|
} from "./chunk-VM56ZITS.js";
|
|
5
5
|
import {
|
|
6
6
|
useProductTableColumns
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-I5HY5Q3K.js";
|
|
8
8
|
import {
|
|
9
9
|
useProductTableFilters
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LGOPKYNG.js";
|
|
11
11
|
import {
|
|
12
12
|
useProductTableQuery
|
|
13
13
|
} from "./chunk-H7NIKMPE.js";
|
|
14
14
|
import {
|
|
15
15
|
_DataTable,
|
|
16
16
|
useDataTable
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
18
18
|
import {
|
|
19
19
|
SingleColumnPage
|
|
20
20
|
} from "./chunk-H6MYB7GB.js";
|
|
@@ -36,10 +36,12 @@ import {
|
|
|
36
36
|
// src/pages/collections/collection-detail/collection-detail.tsx
|
|
37
37
|
import { Children } from "react";
|
|
38
38
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
39
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
39
40
|
|
|
40
41
|
// src/pages/collections/collection-detail/components/collection-general-section/collection-general-section.tsx
|
|
41
42
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
42
43
|
import { Container, Heading, Text, usePrompt } from "@medusajs/ui";
|
|
44
|
+
import { DisplayExtensionZone, DisplayField } from "@mercurjs/dashboard-shared";
|
|
43
45
|
import { useTranslation } from "react-i18next";
|
|
44
46
|
import { useNavigate } from "react-router-dom";
|
|
45
47
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -66,7 +68,7 @@ var CollectionGeneralSection = ({
|
|
|
66
68
|
};
|
|
67
69
|
return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", children: [
|
|
68
70
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
69
|
-
/* @__PURE__ */ jsx(Heading, { children: collection.title }),
|
|
71
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "collection", zone: "general", id: "title", data: collection, children: /* @__PURE__ */ jsx(Heading, { children: collection.title }) }),
|
|
70
72
|
/* @__PURE__ */ jsx(
|
|
71
73
|
ActionMenu,
|
|
72
74
|
{
|
|
@@ -95,19 +97,29 @@ var CollectionGeneralSection = ({
|
|
|
95
97
|
}
|
|
96
98
|
)
|
|
97
99
|
] }),
|
|
98
|
-
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
100
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "collection", zone: "general", id: "handle", data: collection, children: /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
99
101
|
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("fields.handle") }),
|
|
100
102
|
/* @__PURE__ */ jsxs(Text, { size: "small", children: [
|
|
101
103
|
"/",
|
|
102
104
|
collection.handle
|
|
103
105
|
] })
|
|
104
|
-
] })
|
|
106
|
+
] }) }),
|
|
107
|
+
/* @__PURE__ */ jsx(
|
|
108
|
+
DisplayExtensionZone,
|
|
109
|
+
{
|
|
110
|
+
model: "collection",
|
|
111
|
+
zone: "general",
|
|
112
|
+
data: collection,
|
|
113
|
+
builtInFieldIds: ["title", "handle"]
|
|
114
|
+
}
|
|
115
|
+
)
|
|
105
116
|
] });
|
|
106
117
|
};
|
|
107
118
|
|
|
108
119
|
// src/pages/collections/collection-detail/components/collection-icon-section/collection-icon-section.tsx
|
|
109
120
|
import { PencilSquare as PencilSquare2 } from "@medusajs/icons";
|
|
110
121
|
import { Container as Container2, Heading as Heading2, Text as Text2 } from "@medusajs/ui";
|
|
122
|
+
import { DisplayExtensionZone as DisplayExtensionZone2 } from "@mercurjs/dashboard-shared";
|
|
111
123
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
112
124
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
113
125
|
var CollectionIconSection = ({
|
|
@@ -156,13 +168,14 @@ var CollectionIconSection = ({
|
|
|
156
168
|
}
|
|
157
169
|
),
|
|
158
170
|
/* @__PURE__ */ jsx2(Text2, { size: "small", className: "text-ui-fg-muted", children: t("collections.icon.empty.description") })
|
|
159
|
-
] }) })
|
|
171
|
+
] }) }),
|
|
172
|
+
/* @__PURE__ */ jsx2(DisplayExtensionZone2, { model: "collection", zone: "icon", data: collection })
|
|
160
173
|
] });
|
|
161
174
|
};
|
|
162
175
|
|
|
163
176
|
// src/pages/collections/collection-detail/components/collection-media-section/collection-media-section.tsx
|
|
164
177
|
import { PencilSquare as PencilSquare3, ThumbnailBadge } from "@medusajs/icons";
|
|
165
|
-
import { ListBadge } from "@mercurjs/dashboard-shared";
|
|
178
|
+
import { DisplayExtensionZone as DisplayExtensionZone3, ListBadge } from "@mercurjs/dashboard-shared";
|
|
166
179
|
import { Container as Container3, Heading as Heading3, Text as Text3, Tooltip } from "@medusajs/ui";
|
|
167
180
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
168
181
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
@@ -225,13 +238,15 @@ var CollectionMediaSection = ({
|
|
|
225
238
|
}
|
|
226
239
|
),
|
|
227
240
|
/* @__PURE__ */ jsx3(Text3, { size: "small", className: "text-ui-fg-muted", children: t("collections.media.empty.description") })
|
|
228
|
-
] }) })
|
|
241
|
+
] }) }),
|
|
242
|
+
/* @__PURE__ */ jsx3(DisplayExtensionZone3, { model: "collection", zone: "media", data: collection })
|
|
229
243
|
] });
|
|
230
244
|
};
|
|
231
245
|
|
|
232
246
|
// src/pages/collections/collection-detail/components/collection-product-section/collection-product-section.tsx
|
|
233
247
|
import { PencilSquare as PencilSquare4, Plus, Trash as Trash2 } from "@medusajs/icons";
|
|
234
248
|
import { Checkbox, Container as Container4, Heading as Heading4, toast, usePrompt as usePrompt2 } from "@medusajs/ui";
|
|
249
|
+
import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
|
|
235
250
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
236
251
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
237
252
|
import { useMemo } from "react";
|
|
@@ -352,7 +367,8 @@ var CollectionProductSection = ({
|
|
|
352
367
|
message: t("collections.products.list.noRecordsMessage")
|
|
353
368
|
}
|
|
354
369
|
}
|
|
355
|
-
)
|
|
370
|
+
),
|
|
371
|
+
/* @__PURE__ */ jsx4(DisplayExtensionZone4, { model: "collection", zone: "products", data: collection })
|
|
356
372
|
] });
|
|
357
373
|
};
|
|
358
374
|
var ProductActions = ({
|
|
@@ -480,12 +496,12 @@ var Root = ({ children }) => {
|
|
|
480
496
|
if (isError) {
|
|
481
497
|
throw error;
|
|
482
498
|
}
|
|
483
|
-
return Children.count(children) > 0 ? /* @__PURE__ */ jsx5(SingleColumnPage, { showJSON: true, showMetadata: true, data: collection, children }) : /* @__PURE__ */
|
|
499
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx5(SingleColumnPage, { showJSON: true, showMetadata: true, data: collection, children }) : /* @__PURE__ */ jsx5(SingleColumnPage, { showJSON: true, showMetadata: true, data: collection, children: /* @__PURE__ */ jsxs5(WidgetZone, { id: "collections.detail.main", data: collection, children: [
|
|
484
500
|
/* @__PURE__ */ jsx5(CollectionGeneralSection, { collection }),
|
|
485
501
|
/* @__PURE__ */ jsx5(CollectionMediaSection, { collection }),
|
|
486
502
|
/* @__PURE__ */ jsx5(CollectionIconSection, { collection }),
|
|
487
503
|
/* @__PURE__ */ jsx5(CollectionProductSection, { collection })
|
|
488
|
-
] });
|
|
504
|
+
] }) });
|
|
489
505
|
};
|
|
490
506
|
var CollectionDetailPage = Object.assign(Root, {
|
|
491
507
|
GeneralSection: CollectionGeneralSection,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
_DataTable,
|
|
12
12
|
useDataTable
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
14
14
|
import {
|
|
15
15
|
SingleColumnPage
|
|
16
16
|
} from "./chunk-H6MYB7GB.js";
|
|
@@ -23,12 +23,14 @@ import {
|
|
|
23
23
|
|
|
24
24
|
// src/pages/customers/customer-list/customer-list.tsx
|
|
25
25
|
import { Children as Children2 } from "react";
|
|
26
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
26
27
|
|
|
27
28
|
// src/pages/customers/customer-list/components/customer-list-table/customer-list-table.tsx
|
|
28
29
|
import { PencilSquare } from "@medusajs/icons";
|
|
29
30
|
import { Button, Container, Heading } from "@medusajs/ui";
|
|
30
31
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
31
32
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
33
|
+
import { useExtendableTable } from "@mercurjs/dashboard-shared";
|
|
32
34
|
import { useMemo, Children } from "react";
|
|
33
35
|
import { useTranslation } from "react-i18next";
|
|
34
36
|
import { Link } from "react-router-dom";
|
|
@@ -69,8 +71,12 @@ var CustomerListDataTable = () => {
|
|
|
69
71
|
placeholderData: keepPreviousData
|
|
70
72
|
}
|
|
71
73
|
);
|
|
72
|
-
const
|
|
73
|
-
const columns = useColumns();
|
|
74
|
+
const baseFilters = useCustomerTableFilters();
|
|
75
|
+
const { columns, filters: extFilters } = useColumns();
|
|
76
|
+
const filters = useMemo(
|
|
77
|
+
() => [...baseFilters, ...extFilters],
|
|
78
|
+
[baseFilters, extFilters]
|
|
79
|
+
);
|
|
74
80
|
const { table } = useDataTable({
|
|
75
81
|
data: customers ?? [],
|
|
76
82
|
columns,
|
|
@@ -139,23 +145,28 @@ var CustomerActions = ({
|
|
|
139
145
|
};
|
|
140
146
|
var columnHelper = createColumnHelper();
|
|
141
147
|
var useColumns = () => {
|
|
142
|
-
const
|
|
143
|
-
|
|
148
|
+
const base = useCustomerTableColumns();
|
|
149
|
+
const { columns: extended, filters } = useExtendableTable({
|
|
150
|
+
model: "customer",
|
|
151
|
+
columns: base
|
|
152
|
+
});
|
|
153
|
+
const columns = useMemo(
|
|
144
154
|
() => [
|
|
145
|
-
...
|
|
155
|
+
...extended,
|
|
146
156
|
columnHelper.display({
|
|
147
157
|
id: "actions",
|
|
148
158
|
cell: ({ row }) => /* @__PURE__ */ jsx(CustomerActions, { customer: row.original })
|
|
149
159
|
})
|
|
150
160
|
],
|
|
151
|
-
[
|
|
161
|
+
[extended]
|
|
152
162
|
);
|
|
163
|
+
return { columns, filters };
|
|
153
164
|
};
|
|
154
165
|
|
|
155
166
|
// src/pages/customers/customer-list/customer-list.tsx
|
|
156
167
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
157
168
|
var Root = ({ children }) => {
|
|
158
|
-
return /* @__PURE__ */ jsx2(SingleColumnPage, { children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx2(CustomerListTable, {}) });
|
|
169
|
+
return /* @__PURE__ */ jsx2(SingleColumnPage, { children: /* @__PURE__ */ jsx2(WidgetZone, { id: "customers.list", children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx2(CustomerListTable, {}) }) });
|
|
159
170
|
};
|
|
160
171
|
var CustomerListPage = Object.assign(Root, {
|
|
161
172
|
Table: CustomerListTable,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
_DataTable,
|
|
12
12
|
useDataTable
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6ZVV2XHU.js";
|
|
14
14
|
import {
|
|
15
15
|
SingleColumnPage
|
|
16
16
|
} from "./chunk-H6MYB7GB.js";
|
|
@@ -30,10 +30,12 @@ import {
|
|
|
30
30
|
// src/pages/customer-groups/customer-group-detail/customer-group-detail.tsx
|
|
31
31
|
import { Children } from "react";
|
|
32
32
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
33
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
33
34
|
|
|
34
35
|
// src/pages/customer-groups/customer-group-detail/components/customer-group-customer-section/customer-group-customer-section.tsx
|
|
35
36
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
36
37
|
import { Button, Checkbox, Container, Heading, usePrompt } from "@medusajs/ui";
|
|
38
|
+
import { DisplayExtensionZone } from "@mercurjs/dashboard-shared";
|
|
37
39
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
38
40
|
import { useMemo, useState } from "react";
|
|
39
41
|
import { useTranslation } from "react-i18next";
|
|
@@ -131,6 +133,14 @@ var CustomerGroupCustomerSection = ({
|
|
|
131
133
|
message: t("customerGroups.customers.list.noRecordsMessage")
|
|
132
134
|
}
|
|
133
135
|
}
|
|
136
|
+
),
|
|
137
|
+
/* @__PURE__ */ jsx(
|
|
138
|
+
DisplayExtensionZone,
|
|
139
|
+
{
|
|
140
|
+
model: "customer_group",
|
|
141
|
+
zone: "customers",
|
|
142
|
+
data: group
|
|
143
|
+
}
|
|
134
144
|
)
|
|
135
145
|
] });
|
|
136
146
|
};
|
|
@@ -235,6 +245,7 @@ var useColumns = () => {
|
|
|
235
245
|
// src/pages/customer-groups/customer-group-detail/components/customer-group-general-section/customer-group-general-section.tsx
|
|
236
246
|
import { PencilSquare as PencilSquare2, Trash as Trash2 } from "@medusajs/icons";
|
|
237
247
|
import { Container as Container2, Heading as Heading2, Text, toast, usePrompt as usePrompt2 } from "@medusajs/ui";
|
|
248
|
+
import { DisplayExtensionZone as DisplayExtensionZone2, DisplayField } from "@mercurjs/dashboard-shared";
|
|
238
249
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
239
250
|
import { useNavigate } from "react-router-dom";
|
|
240
251
|
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
@@ -273,7 +284,7 @@ var CustomerGroupGeneralSection = ({
|
|
|
273
284
|
};
|
|
274
285
|
return /* @__PURE__ */ jsxs2(Container2, { className: "divide-y p-0", "data-testid": "customer-group-general-section", children: [
|
|
275
286
|
/* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "customer-group-general-section-header", children: [
|
|
276
|
-
/* @__PURE__ */ jsx2(Heading2, { "data-testid": "customer-group-general-section-name", children: group.name }),
|
|
287
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "customer_group", zone: "general", id: "name", data: group, children: /* @__PURE__ */ jsx2(Heading2, { "data-testid": "customer-group-general-section-name", children: group.name }) }),
|
|
277
288
|
/* @__PURE__ */ jsx2(
|
|
278
289
|
ActionMenu,
|
|
279
290
|
{
|
|
@@ -301,14 +312,23 @@ var CustomerGroupGeneralSection = ({
|
|
|
301
312
|
}
|
|
302
313
|
)
|
|
303
314
|
] }),
|
|
304
|
-
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "customer-group-general-section-customers-row", children: [
|
|
315
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "customer_group", zone: "general", id: "customers", data: group, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "customer-group-general-section-customers-row", children: [
|
|
305
316
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "customer-group-general-section-customers-label", children: t("customers.domain") }),
|
|
306
317
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", "data-testid": "customer-group-general-section-customers-value", children: group.customers?.length || "-" })
|
|
307
|
-
] }),
|
|
308
|
-
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "customer-group-general-section-owner-row", children: [
|
|
318
|
+
] }) }),
|
|
319
|
+
/* @__PURE__ */ jsx2(DisplayField, { model: "customer_group", zone: "general", id: "owner", data: group, children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "customer-group-general-section-owner-row", children: [
|
|
309
320
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "customer-group-general-section-owner-label", children: t("fields.owner") }),
|
|
310
321
|
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", "data-testid": "customer-group-general-section-owner-value", children: group.seller?.name || "-" })
|
|
311
|
-
] })
|
|
322
|
+
] }) }),
|
|
323
|
+
/* @__PURE__ */ jsx2(
|
|
324
|
+
DisplayExtensionZone2,
|
|
325
|
+
{
|
|
326
|
+
model: "customer_group",
|
|
327
|
+
zone: "general",
|
|
328
|
+
data: group,
|
|
329
|
+
builtInFieldIds: ["name", "customers", "owner"]
|
|
330
|
+
}
|
|
331
|
+
)
|
|
312
332
|
] });
|
|
313
333
|
};
|
|
314
334
|
|
|
@@ -333,10 +353,10 @@ var Root = ({ children }) => {
|
|
|
333
353
|
if (isError) {
|
|
334
354
|
throw error;
|
|
335
355
|
}
|
|
336
|
-
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: customer_group, children }) : /* @__PURE__ */
|
|
356
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: customer_group, children }) : /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: customer_group, children: /* @__PURE__ */ jsxs3(WidgetZone, { id: "customer-groups.detail.main", data: customer_group, children: [
|
|
337
357
|
/* @__PURE__ */ jsx3(CustomerGroupGeneralSection, { group: customer_group }),
|
|
338
358
|
/* @__PURE__ */ jsx3(CustomerGroupCustomerSection, { group: customer_group })
|
|
339
|
-
] });
|
|
359
|
+
] }) });
|
|
340
360
|
};
|
|
341
361
|
var CustomerGroupDetailPage = Object.assign(Root, {
|
|
342
362
|
GeneralSection: CustomerGroupGeneralSection,
|