@mercurjs/vendor 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{[id]-S6EPH4OO.js → [id]-6WYSWXWC.js} +30 -28
- package/dist/{[id]-SJXBJLAT.js → [id]-CLZ7BUYL.js} +9 -8
- package/dist/{[id]-47FGVJYM.js → [id]-DCCF7277.js} +35 -33
- package/dist/{[id]-ARXBXGNZ.js → [id]-EJAHMOOE.js} +33 -31
- package/dist/{[id]-HD76VJ2P.js → [id]-ENTJSLN2.js} +16 -15
- package/dist/{[id]-XY3A3EMF.js → [id]-LZPT5Y55.js} +32 -31
- package/dist/{[id]-Z4P7XA4G.js → [id]-OGHRZ2VY.js} +232 -103
- package/dist/{[id]-FLIHBDAS.js → [id]-PHS2WYFX.js} +33 -31
- package/dist/{[id]-JF6CCBRE.js → [id]-T64V4G6T.js} +19 -18
- package/dist/{[id]-IWPWKLOH.js → [id]-TLZZ53G7.js} +13 -12
- package/dist/{[id]-6HM66I3E.js → [id]-UAOAQVEM.js} +48 -45
- package/dist/{[id]-Q6HILUAG.js → [id]-VKG2WEIR.js} +39 -37
- package/dist/{[id]-VTFOP3BF.js → [id]-WRA56ZMU.js} +5 -5
- package/dist/{[id]-MIV4U5UW.js → [id]-XRGNT7CY.js} +7 -7
- package/dist/{[location_id]-AWDD2VHW.js → [location_id]-7ZUB2TTU.js} +14 -14
- package/dist/{[province_id]-36QJ2FKC.js → [province_id]-XGA44S7P.js} +30 -29
- package/dist/add-7ZTE42IE.js +158 -0
- package/dist/{add-YUANWTIL.js → add-AKC7LTK3.js} +49 -46
- package/dist/{add-customer-groups-7SLONTS2.js → add-customer-groups-BRC3DKQ2.js} +29 -27
- package/dist/{add-products-ISR3DRPQ.js → add-products-ZSULNZVI.js} +31 -29
- package/dist/{add-promotions-FZRDYHYX.js → add-promotions-TNFVT5ST.js} +12 -11
- package/dist/{add-to-campaign-V6D7JKRS.js → add-to-campaign-HL6NGRR4.js} +6 -6
- package/dist/address-3DSJESKM.js +249 -0
- package/dist/{adjust-inventory-P7AB7VIB.js → adjust-inventory-H4EUP7J3.js} +4 -4
- package/dist/{allocate-items-QAS5PZLR.js → allocate-items-6OAKG25R.js} +8 -8
- package/dist/{areas-Y7VDWH7G.js → areas-JO6L3M7Y.js} +11 -10
- package/dist/{attributes-UEM2VJKV.js → attributes-WRZYJEYN.js} +5 -4
- package/dist/{breadcrumb-6NAAOPIY.js → breadcrumb-3Z7KZG62.js} +4 -4
- package/dist/{breadcrumb-5OTOCYNL.js → breadcrumb-5BXDYVRO.js} +4 -4
- package/dist/{breadcrumb-3QTVWXZB.js → breadcrumb-BS7Y5OKF.js} +5 -5
- package/dist/{breadcrumb-CIGKLKKS.js → breadcrumb-D3UDTWGE.js} +3 -3
- package/dist/breadcrumb-D6QNYOAO.js +45 -0
- package/dist/{breadcrumb-OVMEC5OZ.js → breadcrumb-F3BN5753.js} +3 -3
- package/dist/{breadcrumb-MOQ7GI3Z.js → breadcrumb-KQSFIXQ4.js} +3 -3
- package/dist/{breadcrumb-NCBGPQML.js → breadcrumb-M5Z5WA6I.js} +4 -4
- package/dist/{breadcrumb-EOYLR3IQ.js → breadcrumb-OIGGCB3L.js} +3 -3
- package/dist/{breadcrumb-LENACUAA.js → breadcrumb-UAUX7XCV.js} +3 -3
- package/dist/breadcrumb-UH7FAYU2.js +46 -0
- package/dist/{breadcrumb-ASB2YCNV.js → breadcrumb-Y5UW3I4C.js} +3 -3
- package/dist/{breadcrumb-WP34OXGQ.js → breadcrumb-YBBYFQYG.js} +3 -3
- package/dist/breadcrumb-ZMVHXCOX.js +32 -0
- package/dist/bulk-edit-C6WJKURW.js +244 -0
- package/dist/{campaigns-PMVKUFEA.js → campaigns-SF2YDBID.js} +9 -8
- package/dist/{categories-JARCKR7M.js → categories-WRDJAJ2Q.js} +9 -8
- package/dist/{chunk-HUZG6A3X.js → chunk-2POPPFAP.js} +3 -3
- package/dist/{chunk-S5GQ2SES.js → chunk-2SLAVXFY.js} +5 -5
- package/dist/{chunk-JVBLYMY2.js → chunk-32RYSB2V.js} +2 -2
- package/dist/{chunk-VHMGJUYN.js → chunk-3B34B2M2.js} +1 -1
- package/dist/{chunk-BI2WWFPS.js → chunk-3BZBEC3Y.js} +1 -1
- package/dist/{chunk-LMHJRE4A.js → chunk-3DXMZA7M.js} +2 -2
- package/dist/{chunk-Z2WPXJ6J.js → chunk-4DYUQ3G5.js} +2 -2
- package/dist/{chunk-HBQC3YQZ.js → chunk-573EQEW2.js} +1 -1
- package/dist/{chunk-FBZHM2QZ.js → chunk-5BONGICL.js} +5 -5
- package/dist/{chunk-ZZ7VKT2S.js → chunk-5IWBNPZX.js} +766 -204
- package/dist/{chunk-KHHY7EEM.js → chunk-6WY5X4PE.js} +5 -5
- package/dist/{chunk-CUO22GTM.js → chunk-7TIZP4YG.js} +1 -1
- package/dist/{chunk-52I65K53.js → chunk-7XC7ZRG7.js} +17 -129
- package/dist/{chunk-AONKZGWL.js → chunk-ASEVHHCT.js} +3 -3
- package/dist/{chunk-TG3TCIL6.js → chunk-AW4WN2EK.js} +6 -6
- package/dist/{chunk-DDEIH66R.js → chunk-B5326BWT.js} +4 -4
- package/dist/{chunk-O6PRBSFL.js → chunk-BI2AYXZQ.js} +50 -35
- package/dist/{chunk-HUNGNEPY.js → chunk-BOZJOOGW.js} +1 -1
- package/dist/{chunk-AIFLEWO2.js → chunk-BWGPN6XV.js} +1 -1
- package/dist/{chunk-5XOCUDS2.js → chunk-CUMY2VZ5.js} +1 -1
- package/dist/chunk-DLNNTQRY.js +217 -0
- package/dist/{chunk-B2RVONU7.js → chunk-DRAZNW7J.js} +4 -4
- package/dist/{chunk-CVVYQI5F.js → chunk-EBZ5VZEO.js} +1 -1
- package/dist/{chunk-ZPGWTLF2.js → chunk-EFIF2GCZ.js} +4 -4
- package/dist/{chunk-DHADGZJ5.js → chunk-F4OJN2F2.js} +40 -5
- package/dist/{chunk-PYQJ5N25.js → chunk-FEUCCLKR.js} +6 -6
- package/dist/{chunk-JKSPDM7I.js → chunk-FNG7ZA7N.js} +1 -1
- package/dist/{chunk-UXKKD4AD.js → chunk-FQTYHU6G.js} +5 -5
- package/dist/chunk-FX4V5JCF.js +37 -0
- package/dist/{chunk-ZFFA36DB.js → chunk-GCSQEJMD.js} +2 -2
- package/dist/{chunk-NANYVBFI.js → chunk-GJM5XI3E.js} +1 -1
- package/dist/{chunk-W6ZVQJYB.js → chunk-GYV6SKY7.js} +1 -1
- package/dist/chunk-I5K5USJM.js +330 -0
- package/dist/{chunk-J2XP7VRG.js → chunk-IBTTL6EJ.js} +4 -4
- package/dist/{chunk-3LPVUPZZ.js → chunk-IDYGSAHT.js} +1 -1
- package/dist/{chunk-DC2K6CFQ.js → chunk-IQWK723D.js} +1 -1
- package/dist/{chunk-PWZKFTJS.js → chunk-ITQW6CK2.js} +5 -5
- package/dist/{chunk-NWFWI4IE.js → chunk-JKKRKFCS.js} +55 -62
- package/dist/chunk-JQV7CXEC.js +37 -0
- package/dist/{chunk-RH2NI4BC.js → chunk-JRT2U4UI.js} +448 -101
- package/dist/{chunk-4FCZDRAE.js → chunk-JTCUWZ7D.js} +5 -5
- package/dist/chunk-LA6XSPQG.js +3723 -0
- package/dist/{chunk-JXP5YZ77.js → chunk-LHKHQAAY.js} +1 -1
- package/dist/{chunk-TTFCO5HU.js → chunk-LKA7QM6R.js} +7 -7
- package/dist/{chunk-FGCKXH45.js → chunk-LPOAVK6Y.js} +1 -0
- package/dist/{chunk-VGJTARSA.js → chunk-LRARA622.js} +2 -2
- package/dist/chunk-LRD242C7.js +40 -0
- package/dist/{chunk-PADOWAXM.js → chunk-LWJF63JW.js} +1 -1
- package/dist/{chunk-DYUTYBAQ.js → chunk-M6N4ISXL.js} +1 -1
- package/dist/{chunk-2F3H6ORE.js → chunk-MWQQVKRU.js} +1 -1
- package/dist/{chunk-JK5CK6SW.js → chunk-N2WKLVUX.js} +20 -3
- package/dist/{chunk-R65A4P4H.js → chunk-N335VHD3.js} +1 -1
- package/dist/chunk-NBMM2TZK.js +33 -0
- package/dist/{chunk-SI4ALL7W.js → chunk-NBPMNUKZ.js} +1 -1
- package/dist/{chunk-GDMNHL7E.js → chunk-NCABGI3E.js} +6 -6
- package/dist/chunk-NYRRRCJS.js +339 -0
- package/dist/{chunk-QJ7QW3SZ.js → chunk-O7E4KQAK.js} +6 -6
- package/dist/{chunk-NKB6WTBH.js → chunk-OWPZ3CIR.js} +5 -5
- package/dist/{chunk-RE7YXVFG.js → chunk-PCMNEUMV.js} +3 -3
- package/dist/{chunk-CFETU5BI.js → chunk-QHQWEERJ.js} +1 -36
- package/dist/{chunk-WHTS4G5K.js → chunk-QXUKJDZB.js} +1 -1
- package/dist/{chunk-Y224F4UU.js → chunk-RIN4CBRB.js} +0 -1
- package/dist/{chunk-LWVBKUUL.js → chunk-RL7SFZOF.js} +2 -2
- package/dist/{chunk-UYJ65N46.js → chunk-RLETOWCM.js} +5 -5
- package/dist/{chunk-DVPTD7LZ.js → chunk-RMBCBXWD.js} +1 -1
- package/dist/{chunk-A2BNIZ7D.js → chunk-RTAWYMQP.js} +1 -1
- package/dist/{chunk-VJTYMQVA.js → chunk-RUE5BPC2.js} +2 -2
- package/dist/{chunk-EOOK6473.js → chunk-RV5UTYBG.js} +15 -13
- package/dist/chunk-S2Q7PO7I.js +177 -0
- package/dist/{chunk-Y4VBOHAP.js → chunk-S7EKBD2C.js} +3 -3
- package/dist/{chunk-CELHWX5P.js → chunk-SDSEW72R.js} +5 -5
- package/dist/{chunk-4TBDDMFP.js → chunk-SGT6QYWH.js} +1 -1
- package/dist/chunk-STBCWNZQ.js +57 -0
- package/dist/{chunk-LZ7QV42C.js → chunk-SYNUA6LQ.js} +1 -1
- package/dist/{chunk-CTWSWZ4R.js → chunk-T7LEJIIM.js} +4 -4
- package/dist/{chunk-7EM7WET3.js → chunk-TZTKHOEK.js} +4 -4
- package/dist/chunk-UL4O5M4S.js +45 -0
- package/dist/{chunk-AW77UWCZ.js → chunk-VBRTC2VU.js} +13 -4
- package/dist/{chunk-VDWGP2U6.js → chunk-VV6IKGCN.js} +1 -1
- package/dist/{chunk-JKXAL7WR.js → chunk-VXMOPVRH.js} +2 -2
- package/dist/{chunk-RIILGKYR.js → chunk-VXWN37PT.js} +1 -1
- package/dist/{chunk-CDIZEXFJ.js → chunk-WQX4ASK4.js} +6 -4
- package/dist/{chunk-SOZMJA7V.js → chunk-X22KTLZ7.js} +1 -1
- package/dist/{chunk-SDA5NDMT.js → chunk-XZG2HZYW.js} +2 -2
- package/dist/{chunk-SECZTXSU.js → chunk-YQYRAD5C.js} +1 -1
- package/dist/{chunk-WPFTRRWV.js → chunk-ZEVYT6IX.js} +202 -6
- package/dist/chunk-ZWTCVOHQ.js +14 -0
- package/dist/{chunk-NX26QE2O.js → chunk-ZYOXKUKZ.js} +1 -1
- package/dist/chunk-ZZO3INVE.js +9631 -0
- package/dist/collections-2M4RFH4P.js +66 -0
- package/dist/{configuration-RNWBTRAH.js → configuration-O5GDANA7.js} +5 -5
- package/dist/{configuration-KWAL2QZ5.js → configuration-RHPIO2QT.js} +3 -3
- package/dist/{create-BEVGWF6U.js → create-2TUWGQ2D.js} +33 -32
- package/dist/{create-YPCVTXAK.js → create-33TRLASX.js} +4 -4
- package/dist/{create-BBFTIFI2.js → create-3WUTLUJO.js} +36 -33
- package/dist/create-6IRE6AMF.js +78 -0
- package/dist/{create-F5K53QPH.js → create-D4F457BD.js} +38 -36
- package/dist/{create-7UEEO5TM.js → create-D6EW3EWC.js} +3 -3
- package/dist/{create-EJM5C2XP.js → create-FFKQAZ5D.js} +6 -6
- package/dist/{create-ZU362U3B.js → create-GHM7OTCR.js} +3 -3
- package/dist/{create-VUKGQU4L.js → create-IFMEEHN4.js} +34 -32
- package/dist/{create-IE6MYOIY.js → create-IOUKWPE4.js} +11 -10
- package/dist/{create-XGF6DB5F.js → create-KGOMJUXR.js} +5 -4
- package/dist/{create-TFDUNJSI.js → create-KGYL7FBM.js} +3 -3
- package/dist/{create-UCU73IXX.js → create-OF2OZ7EI.js} +25 -23
- package/dist/{create-MKBBF2V3.js → create-Q6ITSYJM.js} +3 -3
- package/dist/{create-VEWS4QDP.js → create-QK2SSLZK.js} +48 -45
- package/dist/{create-NPSYO6PE.js → create-YITFTHMA.js} +37 -35
- package/dist/{customers-4QWR5UOL.js → customers-OXAD52MC.js} +10 -9
- package/dist/{edit-J3LD76JS.js → edit-4HZHLYI3.js} +6 -6
- package/dist/{edit-47I7VVNB.js → edit-5CJZRHAA.js} +3 -3
- package/dist/{edit-BYXHU3IG.js → edit-7GVP6SRA.js} +3 -3
- package/dist/{edit-J6WCPHDS.js → edit-7HTH2UJF.js} +5 -5
- package/dist/{edit-XU33IVZH.js → edit-ATXE6CM5.js} +3 -3
- package/dist/{edit-ZMINDMGM.js → edit-B5B3XKDM.js} +3 -3
- package/dist/{edit-DG3MY3ZH.js → edit-FC64DWB2.js} +5 -5
- package/dist/{edit-LOKLQGM2.js → edit-FNDDSSMT.js} +3 -3
- package/dist/{edit-S7B7VPM4.js → edit-J5SC7GHQ.js} +29 -28
- package/dist/{edit-7LQATDUD.js → edit-LRRJTHV2.js} +4 -4
- package/dist/{edit-BQLSTFTQ.js → edit-MYSWY6W4.js} +5 -5
- package/dist/edit-ONSN756P.js +237 -0
- package/dist/{edit-JZVEAKJU.js → edit-PIE7Y73J.js} +49 -46
- package/dist/{edit-CZVL3IVY.js → edit-QRJIWTU2.js} +30 -29
- package/dist/{edit-JAKXFAVP.js → edit-SGEECDCR.js} +25 -24
- package/dist/{edit-5BUGSOTL.js → edit-UAXMJAEI.js} +5 -4
- package/dist/edit-UQAQVEUI.js +353 -0
- package/dist/edit-Z7EZRPUP.js +362 -0
- package/dist/{edit-NHU3LJIH.js → edit-ZEIL7EQW.js} +23 -22
- package/dist/{edit-budget-Z5USV462.js → edit-budget-J27CSEZH.js} +3 -3
- package/dist/{edit-inventory-item-YFW2AFRD.js → edit-inventory-item-US77M2FF.js} +3 -3
- package/dist/{edit-inventory-item-attributes-IYAMJDTB.js → edit-inventory-item-attributes-QYNDTUHT.js} +5 -4
- package/dist/edit-stocks-and-prices-543AYFDJ.js +409 -0
- package/dist/{fulfillment-V3D4XU3R.js → fulfillment-5LNFBSBS.js} +26 -25
- package/dist/{fulfillment-providers-YYN3GVV7.js → fulfillment-providers-U7Z7QMOQ.js} +33 -31
- package/dist/{home-PP7YYCSB.js → home-I3OILW5Z.js} +2 -2
- package/dist/index.css +5127 -3
- package/dist/index.js +453 -215
- package/dist/{inventory-AIRQ2KNS.js → inventory-W6S2NIBI.js} +8 -7
- package/dist/invite-P6HTOEIV.js +301 -0
- package/dist/invite-SI2KIPWI.js +370 -0
- package/dist/{locations-SQKM7JWN.js → locations-7SQJ3O2F.js} +4 -4
- package/dist/login-QDS5UXKV.js +36 -0
- package/dist/{manage-locations-4PQS4QY7.js → manage-locations-R4T72DTA.js} +4 -4
- package/dist/{media-UR73M6X2.js → media-RDXCLPKQ.js} +7 -6
- package/dist/{metadata-REBVXJJF.js → metadata-7JKDCVYY.js} +26 -25
- package/dist/{metadata-DIJTVDF7.js → metadata-AWUKZ25V.js} +6 -6
- package/dist/{metadata-ZKG2TRYU.js → metadata-UKBRUFH2.js} +23 -22
- package/dist/{metadata-UBZXDIFG.js → metadata-W5XIPFVU.js} +26 -25
- package/dist/{metadata-OOM44E2U.js → metadata-X4UIPNL6.js} +26 -25
- package/dist/{metadata-OGVHZEKS.js → metadata-ZV5RYLKR.js} +23 -22
- package/dist/{no-match-BO2NNLCM.js → no-match-JLVLPCRH.js} +1 -1
- package/dist/onboarding-DLIBZRKE.js +873 -0
- package/dist/orders-IAL3JNPU.js +61 -0
- package/dist/organization-QCSXE52A.js +303 -0
- package/dist/{organize-5AIJPYS2.js → organize-5W5KNBM2.js} +5 -5
- package/dist/{organize-YXJVI74L.js → organize-U2LVYSOD.js} +5 -5
- package/dist/pages/index.d.ts +222 -49
- package/dist/pages/index.js +96 -93
- package/dist/payment-details-ATUYMVJX.js +234 -0
- package/dist/{payouts-3BY73LZ3.js → payouts-ZLX3KFQT.js} +9 -8
- package/dist/{price-lists-G256JJN7.js → price-lists-JX22K5EO.js} +10 -9
- package/dist/{prices-EW7KBY6R.js → prices-6NY4DELP.js} +14 -13
- package/dist/{pricing-SQNF3KGG.js → pricing-RBESFX5P.js} +33 -31
- package/dist/{product-tags-FR32HXFW.js → product-tags-W4BL6RWV.js} +43 -40
- package/dist/{product-types-WJPLJI7H.js → product-types-MBLFYJOA.js} +10 -9
- package/dist/{product-variant-detail-G5MBDTFL.js → product-variant-detail-KU5OCL7E.js} +270 -56
- package/dist/{product-variant-edit-PW7W5J5E.js → product-variant-edit-5FMMMH2W.js} +8 -7
- package/dist/{products-C4BF2X7D.js → products-3VVYJUH7.js} +31 -29
- package/dist/products-YYLVCOOY.js +93 -0
- package/dist/professional-details-6Y5K6GBL.js +167 -0
- package/dist/profile-Y4AATQES.js +171 -0
- package/dist/{promotions-INYBMACT.js → promotions-NBJTFP6N.js} +10 -9
- package/dist/register-ZLE6MNPF.js +223 -0
- package/dist/{reset-password-CPTU3KHW.js → reset-password-PLCDLFL4.js} +4 -4
- package/dist/{chunk-5NF4OTVV.js → return-reasons-64WZ5Z3Z.js} +46 -5
- package/dist/{sales-channels-6I3U4W4Z.js → sales-channels-UIDLFCX6.js} +10 -9
- package/dist/{sales-channels-SOACADV2.js → sales-channels-UWPEFKAO.js} +12 -11
- package/dist/{settings-MAXHH7EC.js → settings-5MNWE5CR.js} +53 -56
- package/dist/{shipping-profile-7FTHSPY2.js → shipping-profile-JJBIVZPM.js} +4 -4
- package/dist/shipping-profiles-O7XB2DTE.js +45 -0
- package/dist/{stock-LOO5SU5Q.js → stock-2CGEFBXO.js} +30 -30
- package/dist/{stock-4G4PELBV.js → stock-VJAAYYW5.js} +30 -31
- package/dist/store-ZBSMNWFT.js +568 -0
- package/dist/store-closure-43FK32AQ.js +172 -0
- package/dist/store-select-Q2HE572R.js +166 -0
- package/dist/{tax-regions-45JVTUP3.js → tax-regions-FPMGLITT.js} +8 -8
- package/dist/team-ZLZJJWIY.js +269 -0
- package/package.json +9 -6
- package/dist/additional-attributes-XUFDADGP.js +0 -219
- package/dist/breadcrumb-3RAESPC7.js +0 -31
- package/dist/breadcrumb-54IEJEAX.js +0 -45
- package/dist/breadcrumb-CFDJOGTA.js +0 -44
- package/dist/chunk-6EYGH3TB.js +0 -26
- package/dist/chunk-FPJLYWOU.js +0 -190
- package/dist/chunk-GTUR4HSV.js +0 -53
- package/dist/chunk-LODQAVDC.js +0 -179
- package/dist/chunk-NYK5PQIF.js +0 -2078
- package/dist/chunk-PKBMQBKP.js +0 -7
- package/dist/chunk-RNC4NFVK.js +0 -170
- package/dist/collections-2222I5MO.js +0 -63
- package/dist/create-R3SFYWAH.js +0 -69
- package/dist/edit-HBNCGMQO.js +0 -413
- package/dist/login-RDIRFQ7U.js +0 -35
- package/dist/orders-Q347PBOH.js +0 -59
- package/dist/organization-TDDI3HOH.js +0 -233
- package/dist/products-4WTWZIVH.js +0 -85
- package/dist/register-6WOPLDJK.js +0 -366
- package/dist/return-reasons-4V2KVSRI.js +0 -52
- package/dist/seller-44DTDU26.js +0 -36
- package/dist/shipping-profiles-3PYQLYFE.js +0 -43
- /package/dist/{chunk-XG4PTPRM.js → chunk-NXDFDEKP.js} +0 -0
- /package/dist/{chunk-S3PQKKNV.js → chunk-V74Y5NIV.js} +0 -0
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
currencies
|
|
3
3
|
} from "./chunk-IQPN4PZJ.js";
|
|
4
|
+
import {
|
|
5
|
+
Thumbnail
|
|
6
|
+
} from "./chunk-WIYFXWRI.js";
|
|
4
7
|
import {
|
|
5
8
|
ConditionalTooltip
|
|
6
9
|
} from "./chunk-LAVHRER2.js";
|
|
@@ -12,7 +15,7 @@ import {
|
|
|
12
15
|
} from "./chunk-INNFZYX2.js";
|
|
13
16
|
import {
|
|
14
17
|
__publicField
|
|
15
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NBMM2TZK.js";
|
|
16
19
|
|
|
17
20
|
// src/components/data-grid/components/data-grid-skeleton.tsx
|
|
18
21
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -2194,13 +2197,333 @@ var Inner = ({
|
|
|
2194
2197
|
);
|
|
2195
2198
|
};
|
|
2196
2199
|
|
|
2200
|
+
// src/components/data-grid/components/data-grid-boolean-with-text-cell.tsx
|
|
2201
|
+
import { Switch } from "@medusajs/ui";
|
|
2202
|
+
import { Controller as Controller2 } from "react-hook-form";
|
|
2203
|
+
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
2204
|
+
var DataGridBooleanWithTextCell = ({
|
|
2205
|
+
context,
|
|
2206
|
+
trueLabel = "True",
|
|
2207
|
+
falseLabel = "False"
|
|
2208
|
+
}) => {
|
|
2209
|
+
const { field, control, renderProps } = useDataGridCell({
|
|
2210
|
+
context
|
|
2211
|
+
});
|
|
2212
|
+
const errorProps = useDataGridCellError({ context });
|
|
2213
|
+
const { container, input } = renderProps;
|
|
2214
|
+
return /* @__PURE__ */ jsx5(
|
|
2215
|
+
Controller2,
|
|
2216
|
+
{
|
|
2217
|
+
control,
|
|
2218
|
+
name: field,
|
|
2219
|
+
render: ({ field: field2 }) => {
|
|
2220
|
+
return /* @__PURE__ */ jsx5(DataGridCellContainer, { ...container, ...errorProps, children: /* @__PURE__ */ jsx5(
|
|
2221
|
+
Inner2,
|
|
2222
|
+
{
|
|
2223
|
+
field: field2,
|
|
2224
|
+
inputProps: input,
|
|
2225
|
+
trueLabel,
|
|
2226
|
+
falseLabel
|
|
2227
|
+
}
|
|
2228
|
+
) });
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
);
|
|
2232
|
+
};
|
|
2233
|
+
var Inner2 = ({
|
|
2234
|
+
field,
|
|
2235
|
+
inputProps,
|
|
2236
|
+
trueLabel,
|
|
2237
|
+
falseLabel
|
|
2238
|
+
}) => {
|
|
2239
|
+
const { ref, value, onBlur } = field;
|
|
2240
|
+
const {
|
|
2241
|
+
ref: inputRef,
|
|
2242
|
+
onBlur: onInputBlur,
|
|
2243
|
+
onChange,
|
|
2244
|
+
onFocus,
|
|
2245
|
+
...attributes
|
|
2246
|
+
} = inputProps;
|
|
2247
|
+
const combinedRefs = useCombinedRefs(ref, inputRef);
|
|
2248
|
+
return /* @__PURE__ */ jsxs4("div", { className: "flex size-full items-center justify-between py-2.5", children: [
|
|
2249
|
+
/* @__PURE__ */ jsx5(
|
|
2250
|
+
Switch,
|
|
2251
|
+
{
|
|
2252
|
+
ref: combinedRefs,
|
|
2253
|
+
size: "small",
|
|
2254
|
+
checked: value,
|
|
2255
|
+
onCheckedChange: (newValue) => {
|
|
2256
|
+
onChange(newValue === true, value);
|
|
2257
|
+
},
|
|
2258
|
+
onFocus,
|
|
2259
|
+
onBlur: () => {
|
|
2260
|
+
onBlur();
|
|
2261
|
+
onInputBlur();
|
|
2262
|
+
},
|
|
2263
|
+
tabIndex: -1,
|
|
2264
|
+
...attributes
|
|
2265
|
+
}
|
|
2266
|
+
),
|
|
2267
|
+
/* @__PURE__ */ jsx5("span", { className: "txt-compact-small text-ui-fg-subtle", children: value ? trueLabel : falseLabel })
|
|
2268
|
+
] });
|
|
2269
|
+
};
|
|
2270
|
+
|
|
2271
|
+
// src/components/data-grid/components/data-grid-media-cell.tsx
|
|
2272
|
+
import { useEffect as useEffect3, useRef as useRef3, useState as useState4 } from "react";
|
|
2273
|
+
import { Plus } from "@medusajs/icons";
|
|
2274
|
+
import { Controller as Controller3 } from "react-hook-form";
|
|
2275
|
+
import { Fragment, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
2276
|
+
var DataGridMediaCell = ({
|
|
2277
|
+
context,
|
|
2278
|
+
onOpenMediaModal,
|
|
2279
|
+
disabled,
|
|
2280
|
+
...rest
|
|
2281
|
+
}) => {
|
|
2282
|
+
const { field, control, renderProps } = useDataGridCell({
|
|
2283
|
+
context
|
|
2284
|
+
});
|
|
2285
|
+
const errorProps = useDataGridCellError({ context });
|
|
2286
|
+
const { container, input } = renderProps;
|
|
2287
|
+
return /* @__PURE__ */ jsx6(
|
|
2288
|
+
Controller3,
|
|
2289
|
+
{
|
|
2290
|
+
control,
|
|
2291
|
+
name: field,
|
|
2292
|
+
render: ({ field: field2 }) => {
|
|
2293
|
+
return /* @__PURE__ */ jsx6(
|
|
2294
|
+
DataGridCellContainer,
|
|
2295
|
+
{
|
|
2296
|
+
...container,
|
|
2297
|
+
...errorProps,
|
|
2298
|
+
outerComponent: /* @__PURE__ */ jsx6(
|
|
2299
|
+
OuterComponent,
|
|
2300
|
+
{
|
|
2301
|
+
isAnchor: container.isAnchor,
|
|
2302
|
+
onOpenMediaModal,
|
|
2303
|
+
disabled
|
|
2304
|
+
}
|
|
2305
|
+
),
|
|
2306
|
+
children: /* @__PURE__ */ jsx6(
|
|
2307
|
+
Inner3,
|
|
2308
|
+
{
|
|
2309
|
+
field: field2,
|
|
2310
|
+
inputProps: input,
|
|
2311
|
+
disabled,
|
|
2312
|
+
...rest
|
|
2313
|
+
}
|
|
2314
|
+
)
|
|
2315
|
+
}
|
|
2316
|
+
);
|
|
2317
|
+
}
|
|
2318
|
+
}
|
|
2319
|
+
);
|
|
2320
|
+
};
|
|
2321
|
+
var OuterComponent = ({
|
|
2322
|
+
isAnchor,
|
|
2323
|
+
onOpenMediaModal,
|
|
2324
|
+
disabled
|
|
2325
|
+
}) => {
|
|
2326
|
+
const buttonRef = useRef3(null);
|
|
2327
|
+
useEffect3(() => {
|
|
2328
|
+
const handleKeyDown = (e) => {
|
|
2329
|
+
if (isAnchor && e.key === "Enter" && onOpenMediaModal && !disabled) {
|
|
2330
|
+
e.preventDefault();
|
|
2331
|
+
onOpenMediaModal();
|
|
2332
|
+
}
|
|
2333
|
+
};
|
|
2334
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
2335
|
+
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
2336
|
+
}, [isAnchor, onOpenMediaModal, disabled]);
|
|
2337
|
+
return /* @__PURE__ */ jsx6("div", { className: "absolute inset-y-0 right-4 z-[3] flex w-fit items-center justify-center opacity-0 transition-opacity group-hover/container:opacity-100", children: /* @__PURE__ */ jsx6(
|
|
2338
|
+
"button",
|
|
2339
|
+
{
|
|
2340
|
+
ref: buttonRef,
|
|
2341
|
+
type: "button",
|
|
2342
|
+
onClick: onOpenMediaModal,
|
|
2343
|
+
className: "txt-compact-small-plus flex items-center justify-center rounded-[4px] p-1 text-ui-fg-interactive outline-none transition-fg hover:text-ui-fg-interactive-hover focus-visible:shadow-borders-focus disabled:cursor-not-allowed disabled:opacity-50",
|
|
2344
|
+
disabled: !onOpenMediaModal || disabled,
|
|
2345
|
+
children: /* @__PURE__ */ jsx6(
|
|
2346
|
+
Plus,
|
|
2347
|
+
{
|
|
2348
|
+
className: disabled ? "text-ui-fg-muted" : void 0
|
|
2349
|
+
}
|
|
2350
|
+
)
|
|
2351
|
+
}
|
|
2352
|
+
) });
|
|
2353
|
+
};
|
|
2354
|
+
var Inner3 = ({
|
|
2355
|
+
field,
|
|
2356
|
+
inputProps,
|
|
2357
|
+
disabled
|
|
2358
|
+
}) => {
|
|
2359
|
+
const { ref, value, onChange: _, onBlur, ...fieldProps } = field;
|
|
2360
|
+
const {
|
|
2361
|
+
ref: inputRef,
|
|
2362
|
+
onChange,
|
|
2363
|
+
onBlur: onInputBlur,
|
|
2364
|
+
onFocus
|
|
2365
|
+
} = inputProps;
|
|
2366
|
+
const [localValue, setLocalValue] = useState4(value || []);
|
|
2367
|
+
useEffect3(() => {
|
|
2368
|
+
setLocalValue(value || []);
|
|
2369
|
+
}, [value]);
|
|
2370
|
+
const combinedRef = useCombinedRefs2(inputRef, ref);
|
|
2371
|
+
const handleOnChange = () => {
|
|
2372
|
+
onChange(localValue, value);
|
|
2373
|
+
};
|
|
2374
|
+
const hasMedia = localValue && localValue.length > 0;
|
|
2375
|
+
const MAX_VISIBLE_THUMBNAILS = 4;
|
|
2376
|
+
return /* @__PURE__ */ jsx6(
|
|
2377
|
+
"div",
|
|
2378
|
+
{
|
|
2379
|
+
className: `flex size-full items-center gap-x-2 ${disabled ? "opacity-50" : ""}`,
|
|
2380
|
+
...fieldProps,
|
|
2381
|
+
children: /* @__PURE__ */ jsx6(
|
|
2382
|
+
"div",
|
|
2383
|
+
{
|
|
2384
|
+
ref: combinedRef,
|
|
2385
|
+
className: `flex h-full flex-1 items-center gap-1.5 overflow-hidden py-2.5 ${disabled ? "cursor-not-allowed" : "cursor-default"}`,
|
|
2386
|
+
onFocus: disabled ? void 0 : onFocus,
|
|
2387
|
+
onBlur: disabled ? void 0 : () => {
|
|
2388
|
+
onBlur();
|
|
2389
|
+
onInputBlur();
|
|
2390
|
+
handleOnChange();
|
|
2391
|
+
},
|
|
2392
|
+
tabIndex: disabled ? -1 : -1,
|
|
2393
|
+
children: hasMedia ? /* @__PURE__ */ jsxs5(Fragment, { children: [
|
|
2394
|
+
localValue.slice(0, MAX_VISIBLE_THUMBNAILS).map((media, index) => /* @__PURE__ */ jsx6(
|
|
2395
|
+
"div",
|
|
2396
|
+
{
|
|
2397
|
+
className: "shrink-0",
|
|
2398
|
+
children: /* @__PURE__ */ jsx6(
|
|
2399
|
+
Thumbnail,
|
|
2400
|
+
{
|
|
2401
|
+
src: media.url,
|
|
2402
|
+
alt: media.url ? `Product image ${index + 1}` : void 0,
|
|
2403
|
+
size: "small"
|
|
2404
|
+
}
|
|
2405
|
+
)
|
|
2406
|
+
},
|
|
2407
|
+
media.id || `media-${index}`
|
|
2408
|
+
)),
|
|
2409
|
+
localValue.length > MAX_VISIBLE_THUMBNAILS && /* @__PURE__ */ jsxs5("div", { className: "flex h-5 w-4 shrink-0 items-center justify-center rounded border border-ui-border-base bg-ui-bg-component text-[10px] font-medium text-ui-fg-subtle", children: [
|
|
2410
|
+
"+",
|
|
2411
|
+
localValue.length - MAX_VISIBLE_THUMBNAILS
|
|
2412
|
+
] })
|
|
2413
|
+
] }) : /* @__PURE__ */ jsx6(Thumbnail, { size: "small" })
|
|
2414
|
+
}
|
|
2415
|
+
)
|
|
2416
|
+
}
|
|
2417
|
+
);
|
|
2418
|
+
};
|
|
2419
|
+
function useCombinedRefs2(...refs) {
|
|
2420
|
+
return (value) => {
|
|
2421
|
+
refs.forEach((ref) => {
|
|
2422
|
+
if (typeof ref === "function") {
|
|
2423
|
+
ref(value);
|
|
2424
|
+
} else if (ref) {
|
|
2425
|
+
;
|
|
2426
|
+
ref.current = value;
|
|
2427
|
+
}
|
|
2428
|
+
});
|
|
2429
|
+
};
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2432
|
+
// src/components/data-grid/components/data-grid-status-cell.tsx
|
|
2433
|
+
import { clx as clx2, Select } from "@medusajs/ui";
|
|
2434
|
+
import { Controller as Controller4 } from "react-hook-form";
|
|
2435
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
2436
|
+
import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
2437
|
+
var DataGridStatusCell = ({
|
|
2438
|
+
context
|
|
2439
|
+
}) => {
|
|
2440
|
+
const { field, control, renderProps } = useDataGridCell({
|
|
2441
|
+
context
|
|
2442
|
+
});
|
|
2443
|
+
const errorProps = useDataGridCellError({ context });
|
|
2444
|
+
const { container, input } = renderProps;
|
|
2445
|
+
return /* @__PURE__ */ jsx7(
|
|
2446
|
+
Controller4,
|
|
2447
|
+
{
|
|
2448
|
+
control,
|
|
2449
|
+
name: field,
|
|
2450
|
+
render: ({ field: field2 }) => {
|
|
2451
|
+
return /* @__PURE__ */ jsx7(DataGridCellContainer, { ...container, ...errorProps, children: /* @__PURE__ */ jsx7(
|
|
2452
|
+
Inner4,
|
|
2453
|
+
{
|
|
2454
|
+
field: field2,
|
|
2455
|
+
inputProps: input,
|
|
2456
|
+
isAnchor: container.isAnchor
|
|
2457
|
+
}
|
|
2458
|
+
) });
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
);
|
|
2462
|
+
};
|
|
2463
|
+
var Inner4 = ({
|
|
2464
|
+
field,
|
|
2465
|
+
inputProps,
|
|
2466
|
+
isAnchor
|
|
2467
|
+
}) => {
|
|
2468
|
+
const { t } = useTranslation2();
|
|
2469
|
+
const { ref, value, onChange, onBlur } = field;
|
|
2470
|
+
const {
|
|
2471
|
+
ref: inputRef,
|
|
2472
|
+
onBlur: onInputBlur,
|
|
2473
|
+
onFocus,
|
|
2474
|
+
onChange: _onChange,
|
|
2475
|
+
...attributes
|
|
2476
|
+
} = inputProps;
|
|
2477
|
+
const combinedRefs = useCombinedRefs(ref, inputRef);
|
|
2478
|
+
const options = [
|
|
2479
|
+
{
|
|
2480
|
+
label: t("products.productStatus.draft"),
|
|
2481
|
+
value: "draft"
|
|
2482
|
+
},
|
|
2483
|
+
{
|
|
2484
|
+
label: t("products.productStatus.published"),
|
|
2485
|
+
value: "published"
|
|
2486
|
+
}
|
|
2487
|
+
];
|
|
2488
|
+
return /* @__PURE__ */ jsxs6(
|
|
2489
|
+
Select,
|
|
2490
|
+
{
|
|
2491
|
+
value,
|
|
2492
|
+
onValueChange: (newValue) => {
|
|
2493
|
+
onChange(newValue);
|
|
2494
|
+
},
|
|
2495
|
+
children: [
|
|
2496
|
+
/* @__PURE__ */ jsx7(
|
|
2497
|
+
Select.Trigger,
|
|
2498
|
+
{
|
|
2499
|
+
ref: combinedRefs,
|
|
2500
|
+
className: clx2(
|
|
2501
|
+
"txt-compact-small h-full w-full rounded-none border-none bg-transparent px-0 py-2.5 shadow-none outline-none",
|
|
2502
|
+
"hover:bg-transparent focus:shadow-none data-[state=open]:!shadow-none"
|
|
2503
|
+
),
|
|
2504
|
+
onPointerDown: !isAnchor ? (e) => e.preventDefault() : void 0,
|
|
2505
|
+
onFocus,
|
|
2506
|
+
onBlur: () => {
|
|
2507
|
+
onBlur();
|
|
2508
|
+
onInputBlur();
|
|
2509
|
+
},
|
|
2510
|
+
...attributes,
|
|
2511
|
+
children: /* @__PURE__ */ jsx7(Select.Value, {})
|
|
2512
|
+
}
|
|
2513
|
+
),
|
|
2514
|
+
/* @__PURE__ */ jsx7(Select.Content, { children: options.map((option) => /* @__PURE__ */ jsx7(Select.Item, { value: option.value, children: option.label }, option.value)) })
|
|
2515
|
+
]
|
|
2516
|
+
}
|
|
2517
|
+
);
|
|
2518
|
+
};
|
|
2519
|
+
|
|
2197
2520
|
// src/components/data-grid/components/data-grid-currency-cell.tsx
|
|
2198
2521
|
import CurrencyInput, {
|
|
2199
2522
|
formatValue
|
|
2200
2523
|
} from "react-currency-input-field";
|
|
2201
|
-
import { Controller as
|
|
2202
|
-
import { useCallback as useCallback12, useEffect as
|
|
2203
|
-
import { jsx as
|
|
2524
|
+
import { Controller as Controller5 } from "react-hook-form";
|
|
2525
|
+
import { useCallback as useCallback12, useEffect as useEffect4, useState as useState5 } from "react";
|
|
2526
|
+
import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
2204
2527
|
var DataGridCurrencyCell = ({
|
|
2205
2528
|
context,
|
|
2206
2529
|
code
|
|
@@ -2211,18 +2534,18 @@ var DataGridCurrencyCell = ({
|
|
|
2211
2534
|
const errorProps = useDataGridCellError({ context });
|
|
2212
2535
|
const { container, input } = renderProps;
|
|
2213
2536
|
const currency = currencies[code.toUpperCase()];
|
|
2214
|
-
return /* @__PURE__ */
|
|
2215
|
-
|
|
2537
|
+
return /* @__PURE__ */ jsx8(
|
|
2538
|
+
Controller5,
|
|
2216
2539
|
{
|
|
2217
2540
|
control,
|
|
2218
2541
|
name: field,
|
|
2219
2542
|
render: ({ field: field2 }) => {
|
|
2220
|
-
return /* @__PURE__ */
|
|
2543
|
+
return /* @__PURE__ */ jsx8(DataGridCellContainer, { ...container, ...errorProps, children: /* @__PURE__ */ jsx8(Inner5, { field: field2, inputProps: input, currencyInfo: currency }) });
|
|
2221
2544
|
}
|
|
2222
2545
|
}
|
|
2223
2546
|
);
|
|
2224
2547
|
};
|
|
2225
|
-
var
|
|
2548
|
+
var Inner5 = ({
|
|
2226
2549
|
field,
|
|
2227
2550
|
inputProps,
|
|
2228
2551
|
currencyInfo
|
|
@@ -2247,7 +2570,7 @@ var Inner2 = ({
|
|
|
2247
2570
|
},
|
|
2248
2571
|
[currencyInfo]
|
|
2249
2572
|
);
|
|
2250
|
-
const [localValue, setLocalValue] =
|
|
2573
|
+
const [localValue, setLocalValue] = useState5(value || "");
|
|
2251
2574
|
const handleValueChange = (value2, _name, _values) => {
|
|
2252
2575
|
if (!value2) {
|
|
2253
2576
|
setLocalValue("");
|
|
@@ -2255,7 +2578,7 @@ var Inner2 = ({
|
|
|
2255
2578
|
}
|
|
2256
2579
|
setLocalValue(value2);
|
|
2257
2580
|
};
|
|
2258
|
-
|
|
2581
|
+
useEffect4(() => {
|
|
2259
2582
|
let update = value;
|
|
2260
2583
|
if (!isNaN(Number(value))) {
|
|
2261
2584
|
update = formatter(update);
|
|
@@ -2263,8 +2586,8 @@ var Inner2 = ({
|
|
|
2263
2586
|
setLocalValue(update);
|
|
2264
2587
|
}, [value, formatter]);
|
|
2265
2588
|
const combinedRed = useCombinedRefs(inputRef, ref);
|
|
2266
|
-
return /* @__PURE__ */
|
|
2267
|
-
/* @__PURE__ */
|
|
2589
|
+
return /* @__PURE__ */ jsxs7("div", { className: "relative flex size-full items-center", children: [
|
|
2590
|
+
/* @__PURE__ */ jsx8(
|
|
2268
2591
|
"span",
|
|
2269
2592
|
{
|
|
2270
2593
|
className: "txt-compact-small text-ui-fg-muted pointer-events-none absolute left-0 w-fit min-w-4",
|
|
@@ -2272,7 +2595,7 @@ var Inner2 = ({
|
|
|
2272
2595
|
children: currencyInfo.symbol_native
|
|
2273
2596
|
}
|
|
2274
2597
|
),
|
|
2275
|
-
/* @__PURE__ */
|
|
2598
|
+
/* @__PURE__ */ jsx8(
|
|
2276
2599
|
CurrencyInput,
|
|
2277
2600
|
{
|
|
2278
2601
|
...rest,
|
|
@@ -2298,10 +2621,10 @@ var Inner2 = ({
|
|
|
2298
2621
|
};
|
|
2299
2622
|
|
|
2300
2623
|
// src/components/data-grid/components/data-grid-multiline-cell.tsx
|
|
2301
|
-
import { clx as
|
|
2302
|
-
import { useCallback as useCallback13, useEffect as
|
|
2303
|
-
import { Controller as
|
|
2304
|
-
import { jsx as
|
|
2624
|
+
import { clx as clx3 } from "@medusajs/ui";
|
|
2625
|
+
import { useCallback as useCallback13, useEffect as useEffect5, useRef as useRef4, useState as useState6 } from "react";
|
|
2626
|
+
import { Controller as Controller6 } from "react-hook-form";
|
|
2627
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
2305
2628
|
var DataGridMultilineCell = ({
|
|
2306
2629
|
context
|
|
2307
2630
|
}) => {
|
|
@@ -2310,26 +2633,26 @@ var DataGridMultilineCell = ({
|
|
|
2310
2633
|
});
|
|
2311
2634
|
const errorProps = useDataGridCellError({ context });
|
|
2312
2635
|
const { container, input } = renderProps;
|
|
2313
|
-
return /* @__PURE__ */
|
|
2314
|
-
|
|
2636
|
+
return /* @__PURE__ */ jsx9(
|
|
2637
|
+
Controller6,
|
|
2315
2638
|
{
|
|
2316
2639
|
control,
|
|
2317
2640
|
name: field,
|
|
2318
2641
|
render: ({ field: field2 }) => {
|
|
2319
|
-
return /* @__PURE__ */
|
|
2642
|
+
return /* @__PURE__ */ jsx9(DataGridCellContainer, { ...container, ...errorProps, isMultiLine: true, children: /* @__PURE__ */ jsx9(Inner6, { field: field2, inputProps: input }) });
|
|
2320
2643
|
}
|
|
2321
2644
|
}
|
|
2322
2645
|
);
|
|
2323
2646
|
};
|
|
2324
|
-
var
|
|
2647
|
+
var Inner6 = ({
|
|
2325
2648
|
field,
|
|
2326
2649
|
inputProps
|
|
2327
2650
|
}) => {
|
|
2328
2651
|
const { onChange: _, onBlur, ref, value, ...rest } = field;
|
|
2329
2652
|
const { ref: inputRef, onBlur: onInputBlur, onChange, ...input } = inputProps;
|
|
2330
|
-
const [localValue, setLocalValue] =
|
|
2331
|
-
const textareaRef =
|
|
2332
|
-
|
|
2653
|
+
const [localValue, setLocalValue] = useState6(value);
|
|
2654
|
+
const textareaRef = useRef4(null);
|
|
2655
|
+
useEffect5(() => {
|
|
2333
2656
|
setLocalValue(value);
|
|
2334
2657
|
}, [value]);
|
|
2335
2658
|
const combinedRefs = useCombinedRefs(inputRef, ref, textareaRef);
|
|
@@ -2341,18 +2664,18 @@ var Inner3 = ({
|
|
|
2341
2664
|
textarea.style.height = `${newHeight}px`;
|
|
2342
2665
|
}
|
|
2343
2666
|
}, []);
|
|
2344
|
-
|
|
2667
|
+
useEffect5(() => {
|
|
2345
2668
|
adjustTextareaHeight();
|
|
2346
2669
|
}, [localValue, adjustTextareaHeight]);
|
|
2347
|
-
|
|
2670
|
+
useEffect5(() => {
|
|
2348
2671
|
adjustTextareaHeight();
|
|
2349
2672
|
const timeoutId = setTimeout(adjustTextareaHeight, 50);
|
|
2350
2673
|
return () => clearTimeout(timeoutId);
|
|
2351
2674
|
}, [adjustTextareaHeight]);
|
|
2352
|
-
return /* @__PURE__ */
|
|
2675
|
+
return /* @__PURE__ */ jsx9(
|
|
2353
2676
|
"textarea",
|
|
2354
2677
|
{
|
|
2355
|
-
className:
|
|
2678
|
+
className: clx3(
|
|
2356
2679
|
"txt-compact-small text-ui-fg-subtle flex w-full cursor-pointer bg-transparent outline-none",
|
|
2357
2680
|
"focus:cursor-text",
|
|
2358
2681
|
"resize-none overflow-hidden py-2"
|
|
@@ -2377,10 +2700,10 @@ var Inner3 = ({
|
|
|
2377
2700
|
};
|
|
2378
2701
|
|
|
2379
2702
|
// src/components/data-grid/components/data-grid-number-cell.tsx
|
|
2380
|
-
import { clx as
|
|
2381
|
-
import { useEffect as
|
|
2382
|
-
import { Controller as
|
|
2383
|
-
import { jsx as
|
|
2703
|
+
import { clx as clx4 } from "@medusajs/ui";
|
|
2704
|
+
import { useEffect as useEffect6, useState as useState7 } from "react";
|
|
2705
|
+
import { Controller as Controller7 } from "react-hook-form";
|
|
2706
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
2384
2707
|
var DataGridNumberCell = ({
|
|
2385
2708
|
context,
|
|
2386
2709
|
...rest
|
|
@@ -2390,18 +2713,18 @@ var DataGridNumberCell = ({
|
|
|
2390
2713
|
});
|
|
2391
2714
|
const errorProps = useDataGridCellError({ context });
|
|
2392
2715
|
const { container, input } = renderProps;
|
|
2393
|
-
return /* @__PURE__ */
|
|
2394
|
-
|
|
2716
|
+
return /* @__PURE__ */ jsx10(
|
|
2717
|
+
Controller7,
|
|
2395
2718
|
{
|
|
2396
2719
|
control,
|
|
2397
2720
|
name: field,
|
|
2398
2721
|
render: ({ field: field2 }) => {
|
|
2399
|
-
return /* @__PURE__ */
|
|
2722
|
+
return /* @__PURE__ */ jsx10(DataGridCellContainer, { ...container, ...errorProps, children: /* @__PURE__ */ jsx10(Inner7, { field: field2, inputProps: input, ...rest }) });
|
|
2400
2723
|
}
|
|
2401
2724
|
}
|
|
2402
2725
|
);
|
|
2403
2726
|
};
|
|
2404
|
-
var
|
|
2727
|
+
var Inner7 = ({
|
|
2405
2728
|
field,
|
|
2406
2729
|
inputProps,
|
|
2407
2730
|
...props
|
|
@@ -2414,12 +2737,12 @@ var Inner4 = ({
|
|
|
2414
2737
|
onFocus,
|
|
2415
2738
|
...attributes
|
|
2416
2739
|
} = inputProps;
|
|
2417
|
-
const [localValue, setLocalValue] =
|
|
2418
|
-
|
|
2740
|
+
const [localValue, setLocalValue] = useState7(value);
|
|
2741
|
+
useEffect6(() => {
|
|
2419
2742
|
setLocalValue(value);
|
|
2420
2743
|
}, [value]);
|
|
2421
2744
|
const combinedRefs = useCombinedRefs(inputRef, ref);
|
|
2422
|
-
return /* @__PURE__ */
|
|
2745
|
+
return /* @__PURE__ */ jsx10("div", { className: "size-full", children: /* @__PURE__ */ jsx10(
|
|
2423
2746
|
"input",
|
|
2424
2747
|
{
|
|
2425
2748
|
ref: combinedRefs,
|
|
@@ -2433,7 +2756,7 @@ var Inner4 = ({
|
|
|
2433
2756
|
onFocus,
|
|
2434
2757
|
type: "number",
|
|
2435
2758
|
inputMode: "decimal",
|
|
2436
|
-
className:
|
|
2759
|
+
className: clx4(
|
|
2437
2760
|
"txt-compact-small size-full bg-transparent outline-none",
|
|
2438
2761
|
"placeholder:text-ui-fg-muted"
|
|
2439
2762
|
),
|
|
@@ -2446,8 +2769,8 @@ var Inner4 = ({
|
|
|
2446
2769
|
};
|
|
2447
2770
|
|
|
2448
2771
|
// src/components/data-grid/components/data-grid-readonly-cell.tsx
|
|
2449
|
-
import { clx as
|
|
2450
|
-
import { jsx as
|
|
2772
|
+
import { clx as clx5 } from "@medusajs/ui";
|
|
2773
|
+
import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
2451
2774
|
var DataGridReadonlyCell = ({
|
|
2452
2775
|
context,
|
|
2453
2776
|
color = "muted",
|
|
@@ -2455,27 +2778,27 @@ var DataGridReadonlyCell = ({
|
|
|
2455
2778
|
isMultiLine = false
|
|
2456
2779
|
}) => {
|
|
2457
2780
|
const { rowErrors } = useDataGridCellError({ context });
|
|
2458
|
-
return /* @__PURE__ */
|
|
2781
|
+
return /* @__PURE__ */ jsxs8(
|
|
2459
2782
|
"div",
|
|
2460
2783
|
{
|
|
2461
|
-
className:
|
|
2784
|
+
className: clx5(
|
|
2462
2785
|
"txt-compact-small text-ui-fg-subtle flex w-full cursor-not-allowed justify-between overflow-hidden px-4 py-2.5 outline-none",
|
|
2463
2786
|
color === "muted" && "bg-ui-bg-subtle",
|
|
2464
2787
|
color === "normal" && "bg-ui-bg-base",
|
|
2465
2788
|
"h-full items-center"
|
|
2466
2789
|
),
|
|
2467
2790
|
children: [
|
|
2468
|
-
/* @__PURE__ */
|
|
2791
|
+
/* @__PURE__ */ jsx11(
|
|
2469
2792
|
"div",
|
|
2470
2793
|
{
|
|
2471
|
-
className:
|
|
2794
|
+
className: clx5("flex-1", {
|
|
2472
2795
|
truncate: !isMultiLine,
|
|
2473
2796
|
"whitespace-pre-wrap break-words": isMultiLine
|
|
2474
2797
|
}),
|
|
2475
2798
|
children
|
|
2476
2799
|
}
|
|
2477
2800
|
),
|
|
2478
|
-
/* @__PURE__ */
|
|
2801
|
+
/* @__PURE__ */ jsx11(DataGridRowErrorIndicator, { rowErrors })
|
|
2479
2802
|
]
|
|
2480
2803
|
}
|
|
2481
2804
|
);
|
|
@@ -2487,7 +2810,7 @@ import {
|
|
|
2487
2810
|
AdjustmentsDone,
|
|
2488
2811
|
ExclamationCircle as ExclamationCircle2
|
|
2489
2812
|
} from "@medusajs/icons";
|
|
2490
|
-
import { Button as Button2, DropdownMenu, clx as
|
|
2813
|
+
import { Button as Button2, DropdownMenu, clx as clx7 } from "@medusajs/ui";
|
|
2491
2814
|
import {
|
|
2492
2815
|
flexRender,
|
|
2493
2816
|
getCoreRowModel,
|
|
@@ -2498,18 +2821,18 @@ import {
|
|
|
2498
2821
|
} from "@tanstack/react-virtual";
|
|
2499
2822
|
import {
|
|
2500
2823
|
useCallback as useCallback15,
|
|
2501
|
-
useEffect as
|
|
2824
|
+
useEffect as useEffect7,
|
|
2502
2825
|
useMemo as useMemo5,
|
|
2503
|
-
useRef as
|
|
2504
|
-
useState as
|
|
2826
|
+
useRef as useRef5,
|
|
2827
|
+
useState as useState10
|
|
2505
2828
|
} from "react";
|
|
2506
|
-
import { useTranslation as
|
|
2829
|
+
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
2507
2830
|
|
|
2508
2831
|
// src/hooks/use-command-history.tsx
|
|
2509
|
-
import { useCallback as useCallback14, useState as
|
|
2832
|
+
import { useCallback as useCallback14, useState as useState8 } from "react";
|
|
2510
2833
|
var useCommandHistory = (maxHistory = 20) => {
|
|
2511
|
-
const [past, setPast] =
|
|
2512
|
-
const [future, setFuture] =
|
|
2834
|
+
const [past, setPast] = useState8([]);
|
|
2835
|
+
const [future, setFuture] = useState8([]);
|
|
2513
2836
|
const canUndo = past.length > 0;
|
|
2514
2837
|
const canRedo = future.length > 0;
|
|
2515
2838
|
const undo = useCallback14(() => {
|
|
@@ -2553,7 +2876,7 @@ var useCommandHistory = (maxHistory = 20) => {
|
|
|
2553
2876
|
import { XMark } from "@medusajs/icons";
|
|
2554
2877
|
import {
|
|
2555
2878
|
Button,
|
|
2556
|
-
clx as
|
|
2879
|
+
clx as clx6,
|
|
2557
2880
|
Heading,
|
|
2558
2881
|
IconButton,
|
|
2559
2882
|
Input,
|
|
@@ -2561,11 +2884,11 @@ import {
|
|
|
2561
2884
|
Text
|
|
2562
2885
|
} from "@medusajs/ui";
|
|
2563
2886
|
import { Dialog as RadixDialog } from "radix-ui";
|
|
2564
|
-
import { useMemo as useMemo4, useState as
|
|
2565
|
-
import { useTranslation as
|
|
2566
|
-
import { jsx as
|
|
2887
|
+
import { useMemo as useMemo4, useState as useState9 } from "react";
|
|
2888
|
+
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
2889
|
+
import { jsx as jsx12, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2567
2890
|
var useDataGridShortcuts = () => {
|
|
2568
|
-
const { t } =
|
|
2891
|
+
const { t } = useTranslation3();
|
|
2569
2892
|
const shortcuts = useMemo4(
|
|
2570
2893
|
() => [
|
|
2571
2894
|
{
|
|
@@ -2710,39 +3033,39 @@ var DataGridKeyboardShortcutModal = ({
|
|
|
2710
3033
|
open,
|
|
2711
3034
|
onOpenChange
|
|
2712
3035
|
}) => {
|
|
2713
|
-
const { t } =
|
|
2714
|
-
const [searchValue, onSearchValueChange] =
|
|
3036
|
+
const { t } = useTranslation3();
|
|
3037
|
+
const [searchValue, onSearchValueChange] = useState9("");
|
|
2715
3038
|
const shortcuts = useDataGridShortcuts();
|
|
2716
3039
|
const searchResults = useMemo4(() => {
|
|
2717
3040
|
return shortcuts.filter(
|
|
2718
3041
|
(shortcut) => shortcut.label.toLowerCase().includes(searchValue.toLowerCase())
|
|
2719
3042
|
);
|
|
2720
3043
|
}, [searchValue, shortcuts]);
|
|
2721
|
-
return /* @__PURE__ */
|
|
2722
|
-
/* @__PURE__ */
|
|
2723
|
-
/* @__PURE__ */
|
|
2724
|
-
/* @__PURE__ */
|
|
3044
|
+
return /* @__PURE__ */ jsxs9(RadixDialog.Root, { open, onOpenChange, children: [
|
|
3045
|
+
/* @__PURE__ */ jsx12(RadixDialog.Trigger, { asChild: true, children: /* @__PURE__ */ jsx12(Button, { size: "small", variant: "secondary", children: t("dataGrid.shortcuts.label") }) }),
|
|
3046
|
+
/* @__PURE__ */ jsxs9(RadixDialog.Portal, { children: [
|
|
3047
|
+
/* @__PURE__ */ jsx12(
|
|
2725
3048
|
RadixDialog.Overlay,
|
|
2726
3049
|
{
|
|
2727
|
-
className:
|
|
3050
|
+
className: clx6(
|
|
2728
3051
|
"bg-ui-bg-overlay fixed inset-0",
|
|
2729
3052
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
|
|
2730
3053
|
)
|
|
2731
3054
|
}
|
|
2732
3055
|
),
|
|
2733
|
-
/* @__PURE__ */
|
|
2734
|
-
/* @__PURE__ */
|
|
2735
|
-
/* @__PURE__ */
|
|
2736
|
-
/* @__PURE__ */
|
|
2737
|
-
/* @__PURE__ */
|
|
2738
|
-
/* @__PURE__ */
|
|
3056
|
+
/* @__PURE__ */ jsxs9(RadixDialog.Content, { className: "bg-ui-bg-subtle shadow-elevation-modal fixed left-[50%] top-[50%] flex h-full max-h-[612px] w-full max-w-[560px] translate-x-[-50%] translate-y-[-50%] flex-col divide-y overflow-hidden rounded-lg outline-none", children: [
|
|
3057
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex flex-col gap-y-3 px-6 py-4", children: [
|
|
3058
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex items-center justify-between", children: [
|
|
3059
|
+
/* @__PURE__ */ jsxs9("div", { children: [
|
|
3060
|
+
/* @__PURE__ */ jsx12(RadixDialog.Title, { asChild: true, children: /* @__PURE__ */ jsx12(Heading, { children: t("app.menus.user.shortcuts") }) }),
|
|
3061
|
+
/* @__PURE__ */ jsx12(RadixDialog.Description, { className: "sr-only" })
|
|
2739
3062
|
] }),
|
|
2740
|
-
/* @__PURE__ */
|
|
2741
|
-
/* @__PURE__ */
|
|
2742
|
-
/* @__PURE__ */
|
|
3063
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-x-2", children: [
|
|
3064
|
+
/* @__PURE__ */ jsx12(Kbd, { children: "esc" }),
|
|
3065
|
+
/* @__PURE__ */ jsx12(RadixDialog.Close, { asChild: true, children: /* @__PURE__ */ jsx12(IconButton, { variant: "transparent", size: "small", children: /* @__PURE__ */ jsx12(XMark, {}) }) })
|
|
2743
3066
|
] })
|
|
2744
3067
|
] }),
|
|
2745
|
-
/* @__PURE__ */
|
|
3068
|
+
/* @__PURE__ */ jsx12("div", { children: /* @__PURE__ */ jsx12(
|
|
2746
3069
|
Input,
|
|
2747
3070
|
{
|
|
2748
3071
|
type: "search",
|
|
@@ -2752,15 +3075,15 @@ var DataGridKeyboardShortcutModal = ({
|
|
|
2752
3075
|
}
|
|
2753
3076
|
) })
|
|
2754
3077
|
] }),
|
|
2755
|
-
/* @__PURE__ */
|
|
2756
|
-
return /* @__PURE__ */
|
|
3078
|
+
/* @__PURE__ */ jsx12("div", { className: "flex flex-col divide-y overflow-y-auto", children: searchResults.map((shortcut, index) => {
|
|
3079
|
+
return /* @__PURE__ */ jsxs9(
|
|
2757
3080
|
"div",
|
|
2758
3081
|
{
|
|
2759
3082
|
className: "text-ui-fg-subtle flex items-center justify-between px-6 py-3",
|
|
2760
3083
|
children: [
|
|
2761
|
-
/* @__PURE__ */
|
|
2762
|
-
/* @__PURE__ */
|
|
2763
|
-
return /* @__PURE__ */
|
|
3084
|
+
/* @__PURE__ */ jsx12(Text, { size: "small", children: shortcut.label }),
|
|
3085
|
+
/* @__PURE__ */ jsx12("div", { className: "flex items-center gap-x-1", children: shortcut.keys.Mac?.map((key, index2) => {
|
|
3086
|
+
return /* @__PURE__ */ jsx12("div", { className: "flex items-center gap-x-1", children: /* @__PURE__ */ jsx12(Kbd, { children: key }) }, index2);
|
|
2764
3087
|
}) })
|
|
2765
3088
|
]
|
|
2766
3089
|
},
|
|
@@ -2773,7 +3096,7 @@ var DataGridKeyboardShortcutModal = ({
|
|
|
2773
3096
|
};
|
|
2774
3097
|
|
|
2775
3098
|
// src/components/data-grid/components/data-grid-root.tsx
|
|
2776
|
-
import { jsx as
|
|
3099
|
+
import { jsx as jsx13, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2777
3100
|
var ROW_HEIGHT = 40;
|
|
2778
3101
|
var getCommonPinningStyles = (column) => {
|
|
2779
3102
|
const isPinned = column.getIsPinned();
|
|
@@ -2805,7 +3128,7 @@ var DataGridRoot = ({
|
|
|
2805
3128
|
headerContent
|
|
2806
3129
|
}) => {
|
|
2807
3130
|
const isLazyMode = totalRowCount !== void 0;
|
|
2808
|
-
const containerRef =
|
|
3131
|
+
const containerRef = useRef5(null);
|
|
2809
3132
|
const { redo, undo, execute } = useCommandHistory();
|
|
2810
3133
|
const {
|
|
2811
3134
|
register,
|
|
@@ -2814,16 +3137,16 @@ var DataGridRoot = ({
|
|
|
2814
3137
|
setValue: setValue2,
|
|
2815
3138
|
formState: { errors }
|
|
2816
3139
|
} = state;
|
|
2817
|
-
const [internalTrapActive, setTrapActive] =
|
|
3140
|
+
const [internalTrapActive, setTrapActive] = useState10(true);
|
|
2818
3141
|
const trapActive = !disableInteractions && internalTrapActive;
|
|
2819
|
-
const [anchor, setAnchor] =
|
|
2820
|
-
const [rangeEnd, setRangeEnd] =
|
|
2821
|
-
const [dragEnd, setDragEnd] =
|
|
2822
|
-
const [isSelecting, setIsSelecting] =
|
|
2823
|
-
const [isDragging, setIsDragging] =
|
|
2824
|
-
const [isEditing, setIsEditing] =
|
|
2825
|
-
const [columnVisibility, setColumnVisibility] =
|
|
2826
|
-
const [rowVisibility, setRowVisibility] =
|
|
3142
|
+
const [anchor, setAnchor] = useState10(null);
|
|
3143
|
+
const [rangeEnd, setRangeEnd] = useState10(null);
|
|
3144
|
+
const [dragEnd, setDragEnd] = useState10(null);
|
|
3145
|
+
const [isSelecting, setIsSelecting] = useState10(false);
|
|
3146
|
+
const [isDragging, setIsDragging] = useState10(false);
|
|
3147
|
+
const [isEditing, setIsEditing] = useState10(false);
|
|
3148
|
+
const [columnVisibility, setColumnVisibility] = useState10({});
|
|
3149
|
+
const [rowVisibility, setRowVisibility] = useState10({});
|
|
2827
3150
|
const grid = useReactTable({
|
|
2828
3151
|
data,
|
|
2829
3152
|
columns,
|
|
@@ -2875,13 +3198,13 @@ var DataGridRoot = ({
|
|
|
2875
3198
|
}
|
|
2876
3199
|
});
|
|
2877
3200
|
const virtualRows = rowVirtualizer.getVirtualItems();
|
|
2878
|
-
const lazyLoadingRefs =
|
|
3201
|
+
const lazyLoadingRefs = useRef5({
|
|
2879
3202
|
onFetchMore,
|
|
2880
3203
|
hasNextPage,
|
|
2881
3204
|
isFetchingMore,
|
|
2882
3205
|
loadedRowCount: visibleRows.length
|
|
2883
3206
|
});
|
|
2884
|
-
|
|
3207
|
+
useEffect7(() => {
|
|
2885
3208
|
lazyLoadingRefs.current = {
|
|
2886
3209
|
onFetchMore,
|
|
2887
3210
|
hasNextPage,
|
|
@@ -2904,7 +3227,7 @@ var DataGridRoot = ({
|
|
|
2904
3227
|
onFetchMore2();
|
|
2905
3228
|
}
|
|
2906
3229
|
}, [lazyLoadingRefs, containerRef]);
|
|
2907
|
-
|
|
3230
|
+
useEffect7(() => {
|
|
2908
3231
|
if (!isLazyMode || !hasData) {
|
|
2909
3232
|
return;
|
|
2910
3233
|
}
|
|
@@ -3098,7 +3421,7 @@ var DataGridRoot = ({
|
|
|
3098
3421
|
const { getCellErrorMetadata, getCellMetadata } = useDataGridCellMetadata({
|
|
3099
3422
|
matrix
|
|
3100
3423
|
});
|
|
3101
|
-
|
|
3424
|
+
useEffect7(() => {
|
|
3102
3425
|
if (!trapActive) {
|
|
3103
3426
|
return;
|
|
3104
3427
|
}
|
|
@@ -3119,7 +3442,7 @@ var DataGridRoot = ({
|
|
|
3119
3442
|
handleCopyEvent,
|
|
3120
3443
|
handlePasteEvent
|
|
3121
3444
|
]);
|
|
3122
|
-
|
|
3445
|
+
useEffect7(() => {
|
|
3123
3446
|
const specialFocusHandler = (e) => {
|
|
3124
3447
|
if (isSpecialFocusKey(e)) {
|
|
3125
3448
|
handleSpecialFocusKeys(e);
|
|
@@ -3136,7 +3459,7 @@ var DataGridRoot = ({
|
|
|
3136
3459
|
setTrapActive(false);
|
|
3137
3460
|
}
|
|
3138
3461
|
}, []);
|
|
3139
|
-
|
|
3462
|
+
useEffect7(() => {
|
|
3140
3463
|
if (!anchor) {
|
|
3141
3464
|
return;
|
|
3142
3465
|
}
|
|
@@ -3145,7 +3468,7 @@ var DataGridRoot = ({
|
|
|
3145
3468
|
}
|
|
3146
3469
|
setRangeEnd(anchor);
|
|
3147
3470
|
}, [anchor, rangeEnd]);
|
|
3148
|
-
|
|
3471
|
+
useEffect7(() => {
|
|
3149
3472
|
if (!anchor && matrix) {
|
|
3150
3473
|
const coords = matrix.getFirstNavigableCell();
|
|
3151
3474
|
if (coords) {
|
|
@@ -3207,8 +3530,8 @@ var DataGridRoot = ({
|
|
|
3207
3530
|
});
|
|
3208
3531
|
}
|
|
3209
3532
|
}, [anchor, trapActive, setSingleRange, scrollToCoordinates, queryTool]);
|
|
3210
|
-
return /* @__PURE__ */
|
|
3211
|
-
/* @__PURE__ */
|
|
3533
|
+
return /* @__PURE__ */ jsx13(DataGridContext.Provider, { value: values, children: /* @__PURE__ */ jsxs10("div", { className: "bg-ui-bg-subtle flex size-full flex-col", children: [
|
|
3534
|
+
/* @__PURE__ */ jsx13(
|
|
3212
3535
|
DataGridHeader,
|
|
3213
3536
|
{
|
|
3214
3537
|
showColumnsDropdown,
|
|
@@ -3223,7 +3546,7 @@ var DataGridRoot = ({
|
|
|
3223
3546
|
headerContent
|
|
3224
3547
|
}
|
|
3225
3548
|
),
|
|
3226
|
-
/* @__PURE__ */
|
|
3549
|
+
/* @__PURE__ */ jsx13("div", { className: "size-full overflow-hidden", children: /* @__PURE__ */ jsx13(
|
|
3227
3550
|
"div",
|
|
3228
3551
|
{
|
|
3229
3552
|
ref: containerRef,
|
|
@@ -3234,19 +3557,19 @@ var DataGridRoot = ({
|
|
|
3234
3557
|
onClick: handleRestoreGridFocus,
|
|
3235
3558
|
"data-container": true,
|
|
3236
3559
|
role: "application",
|
|
3237
|
-
children: /* @__PURE__ */
|
|
3238
|
-
/* @__PURE__ */
|
|
3560
|
+
children: /* @__PURE__ */ jsxs10("div", { role: "grid", className: "text-ui-fg-subtle grid", children: [
|
|
3561
|
+
/* @__PURE__ */ jsx13(
|
|
3239
3562
|
"div",
|
|
3240
3563
|
{
|
|
3241
3564
|
role: "rowgroup",
|
|
3242
3565
|
className: "txt-compact-small-plus bg-ui-bg-subtle sticky top-0 z-[1] grid",
|
|
3243
|
-
children: grid.getHeaderGroups().map((headerGroup) => /* @__PURE__ */
|
|
3566
|
+
children: grid.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsxs10(
|
|
3244
3567
|
"div",
|
|
3245
3568
|
{
|
|
3246
3569
|
role: "row",
|
|
3247
3570
|
className: "flex h-10 w-full",
|
|
3248
3571
|
children: [
|
|
3249
|
-
virtualPaddingLeft ? /* @__PURE__ */
|
|
3572
|
+
virtualPaddingLeft ? /* @__PURE__ */ jsx13(
|
|
3250
3573
|
"div",
|
|
3251
3574
|
{
|
|
3252
3575
|
role: "presentation",
|
|
@@ -3258,7 +3581,7 @@ var DataGridRoot = ({
|
|
|
3258
3581
|
const previousVC = array[index - 1];
|
|
3259
3582
|
if (previousVC && vc.index !== previousVC.index + 1) {
|
|
3260
3583
|
acc.push(
|
|
3261
|
-
/* @__PURE__ */
|
|
3584
|
+
/* @__PURE__ */ jsx13(
|
|
3262
3585
|
"div",
|
|
3263
3586
|
{
|
|
3264
3587
|
role: "presentation",
|
|
@@ -3272,7 +3595,7 @@ var DataGridRoot = ({
|
|
|
3272
3595
|
);
|
|
3273
3596
|
}
|
|
3274
3597
|
acc.push(
|
|
3275
|
-
/* @__PURE__ */
|
|
3598
|
+
/* @__PURE__ */ jsx13(
|
|
3276
3599
|
"div",
|
|
3277
3600
|
{
|
|
3278
3601
|
role: "columnheader",
|
|
@@ -3292,7 +3615,7 @@ var DataGridRoot = ({
|
|
|
3292
3615
|
);
|
|
3293
3616
|
return acc;
|
|
3294
3617
|
}, []),
|
|
3295
|
-
virtualPaddingRight ? /* @__PURE__ */
|
|
3618
|
+
virtualPaddingRight ? /* @__PURE__ */ jsx13(
|
|
3296
3619
|
"div",
|
|
3297
3620
|
{
|
|
3298
3621
|
role: "presentation",
|
|
@@ -3308,7 +3631,7 @@ var DataGridRoot = ({
|
|
|
3308
3631
|
))
|
|
3309
3632
|
}
|
|
3310
3633
|
),
|
|
3311
|
-
/* @__PURE__ */
|
|
3634
|
+
/* @__PURE__ */ jsx13(
|
|
3312
3635
|
"div",
|
|
3313
3636
|
{
|
|
3314
3637
|
role: "rowgroup",
|
|
@@ -3319,7 +3642,7 @@ var DataGridRoot = ({
|
|
|
3319
3642
|
children: virtualRows.map((virtualRow) => {
|
|
3320
3643
|
const row = visibleRows[virtualRow.index];
|
|
3321
3644
|
if (!row) {
|
|
3322
|
-
return /* @__PURE__ */
|
|
3645
|
+
return /* @__PURE__ */ jsx13(
|
|
3323
3646
|
DataGridRowSkeleton,
|
|
3324
3647
|
{
|
|
3325
3648
|
virtualRow,
|
|
@@ -3331,7 +3654,7 @@ var DataGridRoot = ({
|
|
|
3331
3654
|
);
|
|
3332
3655
|
}
|
|
3333
3656
|
const rowIndex = flatRows.findIndex((r) => r.id === row.id);
|
|
3334
|
-
return /* @__PURE__ */
|
|
3657
|
+
return /* @__PURE__ */ jsx13(
|
|
3335
3658
|
DataGridRow,
|
|
3336
3659
|
{
|
|
3337
3660
|
row,
|
|
@@ -3368,9 +3691,9 @@ var DataGridHeader = ({
|
|
|
3368
3691
|
showColumnsDropdown,
|
|
3369
3692
|
headerContent
|
|
3370
3693
|
}) => {
|
|
3371
|
-
const [shortcutsOpen, setShortcutsOpen] =
|
|
3372
|
-
const [columnsOpen, setColumnsOpen] =
|
|
3373
|
-
const { t } =
|
|
3694
|
+
const [shortcutsOpen, setShortcutsOpen] = useState10(false);
|
|
3695
|
+
const [columnsOpen, setColumnsOpen] = useState10(false);
|
|
3696
|
+
const { t } = useTranslation4();
|
|
3374
3697
|
const direction = useDocumentDirection();
|
|
3375
3698
|
const hasChanged = columnOptions.some((column) => !column.checked);
|
|
3376
3699
|
const handleShortcutsOpenChange = (value) => {
|
|
@@ -3381,32 +3704,32 @@ var DataGridHeader = ({
|
|
|
3381
3704
|
onHeaderInteractionChange(value);
|
|
3382
3705
|
setColumnsOpen(value);
|
|
3383
3706
|
};
|
|
3384
|
-
return /* @__PURE__ */
|
|
3385
|
-
showColumnsDropdown && /* @__PURE__ */
|
|
3386
|
-
/* @__PURE__ */
|
|
3707
|
+
return /* @__PURE__ */ jsxs10("div", { className: "bg-ui-bg-base flex items-center justify-between border-b p-4", children: [
|
|
3708
|
+
showColumnsDropdown && /* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-x-2", children: [
|
|
3709
|
+
/* @__PURE__ */ jsxs10(
|
|
3387
3710
|
DropdownMenu,
|
|
3388
3711
|
{
|
|
3389
3712
|
dir: direction,
|
|
3390
3713
|
open: columnsOpen,
|
|
3391
3714
|
onOpenChange: handleColumnsOpenChange,
|
|
3392
3715
|
children: [
|
|
3393
|
-
/* @__PURE__ */
|
|
3716
|
+
/* @__PURE__ */ jsx13(
|
|
3394
3717
|
ConditionalTooltip,
|
|
3395
3718
|
{
|
|
3396
3719
|
showTooltip: isDisabled,
|
|
3397
3720
|
content: t("dataGrid.columns.disabled"),
|
|
3398
|
-
children: /* @__PURE__ */
|
|
3399
|
-
hasChanged ? /* @__PURE__ */
|
|
3721
|
+
children: /* @__PURE__ */ jsx13(DropdownMenu.Trigger, { asChild: true, disabled: isDisabled, children: /* @__PURE__ */ jsxs10(Button2, { size: "small", variant: "secondary", children: [
|
|
3722
|
+
hasChanged ? /* @__PURE__ */ jsx13(AdjustmentsDone, {}) : /* @__PURE__ */ jsx13(Adjustments, {}),
|
|
3400
3723
|
t("dataGrid.columns.view")
|
|
3401
3724
|
] }) })
|
|
3402
3725
|
}
|
|
3403
3726
|
),
|
|
3404
|
-
/* @__PURE__ */
|
|
3727
|
+
/* @__PURE__ */ jsx13(DropdownMenu.Content, { children: columnOptions.map((column, index) => {
|
|
3405
3728
|
const { checked, disabled, id, name } = column;
|
|
3406
3729
|
if (disabled) {
|
|
3407
3730
|
return null;
|
|
3408
3731
|
}
|
|
3409
|
-
return /* @__PURE__ */
|
|
3732
|
+
return /* @__PURE__ */ jsx13(
|
|
3410
3733
|
DropdownMenu.CheckboxItem,
|
|
3411
3734
|
{
|
|
3412
3735
|
checked,
|
|
@@ -3420,7 +3743,7 @@ var DataGridHeader = ({
|
|
|
3420
3743
|
]
|
|
3421
3744
|
}
|
|
3422
3745
|
),
|
|
3423
|
-
hasChanged && /* @__PURE__ */
|
|
3746
|
+
hasChanged && /* @__PURE__ */ jsx13(
|
|
3424
3747
|
Button2,
|
|
3425
3748
|
{
|
|
3426
3749
|
size: "small",
|
|
@@ -3434,26 +3757,26 @@ var DataGridHeader = ({
|
|
|
3434
3757
|
)
|
|
3435
3758
|
] }),
|
|
3436
3759
|
headerContent,
|
|
3437
|
-
/* @__PURE__ */
|
|
3438
|
-
errorCount > 0 && /* @__PURE__ */
|
|
3760
|
+
/* @__PURE__ */ jsxs10("div", { className: "ml-auto flex items-center gap-x-2", children: [
|
|
3761
|
+
errorCount > 0 && /* @__PURE__ */ jsxs10(
|
|
3439
3762
|
Button2,
|
|
3440
3763
|
{
|
|
3441
3764
|
size: "small",
|
|
3442
3765
|
variant: "secondary",
|
|
3443
3766
|
type: "button",
|
|
3444
3767
|
onClick: onToggleErrorHighlighting,
|
|
3445
|
-
className:
|
|
3768
|
+
className: clx7({
|
|
3446
3769
|
"bg-ui-button-neutral-pressed": isHighlighted
|
|
3447
3770
|
}),
|
|
3448
3771
|
children: [
|
|
3449
|
-
/* @__PURE__ */
|
|
3450
|
-
/* @__PURE__ */
|
|
3772
|
+
/* @__PURE__ */ jsx13(ExclamationCircle2, { className: "text-ui-fg-subtle" }),
|
|
3773
|
+
/* @__PURE__ */ jsx13("span", { children: t("dataGrid.errors.count", {
|
|
3451
3774
|
count: errorCount
|
|
3452
3775
|
}) })
|
|
3453
3776
|
]
|
|
3454
3777
|
}
|
|
3455
3778
|
),
|
|
3456
|
-
/* @__PURE__ */
|
|
3779
|
+
/* @__PURE__ */ jsx13(
|
|
3457
3780
|
DataGridKeyboardShortcutModal,
|
|
3458
3781
|
{
|
|
3459
3782
|
open: shortcutsOpen,
|
|
@@ -3476,7 +3799,7 @@ var DataGridCell = ({
|
|
|
3476
3799
|
col: columnIndex
|
|
3477
3800
|
};
|
|
3478
3801
|
const isAnchor = isCellMatch(coords, anchor);
|
|
3479
|
-
return /* @__PURE__ */
|
|
3802
|
+
return /* @__PURE__ */ jsx13(
|
|
3480
3803
|
"div",
|
|
3481
3804
|
{
|
|
3482
3805
|
role: "gridcell",
|
|
@@ -3488,21 +3811,21 @@ var DataGridCell = ({
|
|
|
3488
3811
|
},
|
|
3489
3812
|
"data-row-index": rowIndex,
|
|
3490
3813
|
"data-column-index": columnIndex,
|
|
3491
|
-
className:
|
|
3814
|
+
className: clx7(
|
|
3492
3815
|
"relative flex items-stretch border-b border-r p-0 outline-none"
|
|
3493
3816
|
),
|
|
3494
3817
|
tabIndex: -1,
|
|
3495
|
-
children: /* @__PURE__ */
|
|
3818
|
+
children: /* @__PURE__ */ jsxs10("div", { className: "relative w-full", children: [
|
|
3496
3819
|
flexRender(cell.column.columnDef.cell, {
|
|
3497
3820
|
...cell.getContext(),
|
|
3498
3821
|
columnIndex,
|
|
3499
3822
|
rowIndex
|
|
3500
3823
|
}),
|
|
3501
|
-
isAnchor && /* @__PURE__ */
|
|
3824
|
+
isAnchor && /* @__PURE__ */ jsx13(
|
|
3502
3825
|
"div",
|
|
3503
3826
|
{
|
|
3504
3827
|
onMouseDown: onDragToFillStart,
|
|
3505
|
-
className:
|
|
3828
|
+
className: clx7(
|
|
3506
3829
|
"bg-ui-fg-interactive absolute bottom-0 right-0 z-[3] size-1.5 cursor-ns-resize",
|
|
3507
3830
|
{
|
|
3508
3831
|
"cursor-nwse-resize": multiColumnSelection
|
|
@@ -3528,7 +3851,7 @@ var DataGridRow = ({
|
|
|
3528
3851
|
multiColumnSelection
|
|
3529
3852
|
}) => {
|
|
3530
3853
|
const visibleCells = row.getVisibleCells();
|
|
3531
|
-
return /* @__PURE__ */
|
|
3854
|
+
return /* @__PURE__ */ jsxs10(
|
|
3532
3855
|
"div",
|
|
3533
3856
|
{
|
|
3534
3857
|
role: "row",
|
|
@@ -3540,7 +3863,7 @@ var DataGridRow = ({
|
|
|
3540
3863
|
},
|
|
3541
3864
|
className: "bg-ui-bg-subtle txt-compact-small absolute flex min-h-10 w-full",
|
|
3542
3865
|
children: [
|
|
3543
|
-
virtualPaddingLeft ? /* @__PURE__ */
|
|
3866
|
+
virtualPaddingLeft ? /* @__PURE__ */ jsx13(
|
|
3544
3867
|
"div",
|
|
3545
3868
|
{
|
|
3546
3869
|
role: "presentation",
|
|
@@ -3554,7 +3877,7 @@ var DataGridRow = ({
|
|
|
3554
3877
|
const previousVC = array[index - 1];
|
|
3555
3878
|
if (previousVC && vc.index !== previousVC.index + 1) {
|
|
3556
3879
|
acc.push(
|
|
3557
|
-
/* @__PURE__ */
|
|
3880
|
+
/* @__PURE__ */ jsx13(
|
|
3558
3881
|
"div",
|
|
3559
3882
|
{
|
|
3560
3883
|
role: "presentation",
|
|
@@ -3568,7 +3891,7 @@ var DataGridRow = ({
|
|
|
3568
3891
|
);
|
|
3569
3892
|
}
|
|
3570
3893
|
acc.push(
|
|
3571
|
-
/* @__PURE__ */
|
|
3894
|
+
/* @__PURE__ */ jsx13(
|
|
3572
3895
|
DataGridCell,
|
|
3573
3896
|
{
|
|
3574
3897
|
cell,
|
|
@@ -3583,7 +3906,7 @@ var DataGridRow = ({
|
|
|
3583
3906
|
);
|
|
3584
3907
|
return acc;
|
|
3585
3908
|
}, []),
|
|
3586
|
-
virtualPaddingRight ? /* @__PURE__ */
|
|
3909
|
+
virtualPaddingRight ? /* @__PURE__ */ jsx13(
|
|
3587
3910
|
"div",
|
|
3588
3911
|
{
|
|
3589
3912
|
role: "presentation",
|
|
@@ -3600,7 +3923,7 @@ var DataGridRowSkeleton = ({
|
|
|
3600
3923
|
virtualPaddingRight,
|
|
3601
3924
|
virtualColumns
|
|
3602
3925
|
}) => {
|
|
3603
|
-
return /* @__PURE__ */
|
|
3926
|
+
return /* @__PURE__ */ jsxs10(
|
|
3604
3927
|
"div",
|
|
3605
3928
|
{
|
|
3606
3929
|
role: "row",
|
|
@@ -3610,7 +3933,7 @@ var DataGridRowSkeleton = ({
|
|
|
3610
3933
|
},
|
|
3611
3934
|
className: "bg-ui-bg-subtle txt-compact-small absolute flex h-10 w-full",
|
|
3612
3935
|
children: [
|
|
3613
|
-
virtualPaddingLeft ? /* @__PURE__ */
|
|
3936
|
+
virtualPaddingLeft ? /* @__PURE__ */ jsx13(
|
|
3614
3937
|
"div",
|
|
3615
3938
|
{
|
|
3616
3939
|
role: "presentation",
|
|
@@ -3622,7 +3945,7 @@ var DataGridRowSkeleton = ({
|
|
|
3622
3945
|
const elements = [];
|
|
3623
3946
|
if (previousVC && vc.index !== previousVC.index + 1) {
|
|
3624
3947
|
elements.push(
|
|
3625
|
-
/* @__PURE__ */
|
|
3948
|
+
/* @__PURE__ */ jsx13(
|
|
3626
3949
|
"div",
|
|
3627
3950
|
{
|
|
3628
3951
|
role: "presentation",
|
|
@@ -3636,20 +3959,20 @@ var DataGridRowSkeleton = ({
|
|
|
3636
3959
|
);
|
|
3637
3960
|
}
|
|
3638
3961
|
elements.push(
|
|
3639
|
-
/* @__PURE__ */
|
|
3962
|
+
/* @__PURE__ */ jsx13(
|
|
3640
3963
|
"div",
|
|
3641
3964
|
{
|
|
3642
3965
|
role: "gridcell",
|
|
3643
3966
|
style: { width: vc.size },
|
|
3644
3967
|
className: "relative flex items-center border-b border-r p-0 outline-none",
|
|
3645
|
-
children: /* @__PURE__ */
|
|
3968
|
+
children: /* @__PURE__ */ jsx13("div", { className: "flex h-full w-full items-center px-4", children: /* @__PURE__ */ jsx13("div", { className: "bg-ui-bg-component h-4 w-3/4 animate-pulse rounded" }) })
|
|
3646
3969
|
},
|
|
3647
3970
|
`skeleton-cell-${vc.index}`
|
|
3648
3971
|
)
|
|
3649
3972
|
);
|
|
3650
3973
|
return elements;
|
|
3651
3974
|
}),
|
|
3652
|
-
virtualPaddingRight ? /* @__PURE__ */
|
|
3975
|
+
virtualPaddingRight ? /* @__PURE__ */ jsx13(
|
|
3653
3976
|
"div",
|
|
3654
3977
|
{
|
|
3655
3978
|
role: "presentation",
|
|
@@ -3662,10 +3985,10 @@ var DataGridRowSkeleton = ({
|
|
|
3662
3985
|
};
|
|
3663
3986
|
|
|
3664
3987
|
// src/components/data-grid/components/data-grid-text-cell.tsx
|
|
3665
|
-
import { clx as
|
|
3666
|
-
import { useEffect as
|
|
3667
|
-
import { Controller as
|
|
3668
|
-
import { jsx as
|
|
3988
|
+
import { clx as clx8 } from "@medusajs/ui";
|
|
3989
|
+
import { useEffect as useEffect8, useRef as useRef6, useState as useState11 } from "react";
|
|
3990
|
+
import { Controller as Controller8 } from "react-hook-form";
|
|
3991
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
3669
3992
|
var DataGridTextCell = ({
|
|
3670
3993
|
context
|
|
3671
3994
|
}) => {
|
|
@@ -3674,33 +3997,33 @@ var DataGridTextCell = ({
|
|
|
3674
3997
|
});
|
|
3675
3998
|
const errorProps = useDataGridCellError({ context });
|
|
3676
3999
|
const { container, input } = renderProps;
|
|
3677
|
-
return /* @__PURE__ */
|
|
3678
|
-
|
|
4000
|
+
return /* @__PURE__ */ jsx14(
|
|
4001
|
+
Controller8,
|
|
3679
4002
|
{
|
|
3680
4003
|
control,
|
|
3681
4004
|
name: field,
|
|
3682
4005
|
render: ({ field: field2 }) => {
|
|
3683
|
-
return /* @__PURE__ */
|
|
4006
|
+
return /* @__PURE__ */ jsx14(DataGridCellContainer, { ...container, ...errorProps, children: /* @__PURE__ */ jsx14(Inner8, { field: field2, inputProps: input }) });
|
|
3684
4007
|
}
|
|
3685
4008
|
}
|
|
3686
4009
|
);
|
|
3687
4010
|
};
|
|
3688
|
-
var
|
|
4011
|
+
var Inner8 = ({
|
|
3689
4012
|
field,
|
|
3690
4013
|
inputProps
|
|
3691
4014
|
}) => {
|
|
3692
4015
|
const { onChange: _, onBlur, ref, value, ...rest } = field;
|
|
3693
4016
|
const { ref: inputRef, onBlur: onInputBlur, onChange, ...input } = inputProps;
|
|
3694
|
-
const [localValue, setLocalValue] =
|
|
3695
|
-
const inputElRef =
|
|
3696
|
-
|
|
4017
|
+
const [localValue, setLocalValue] = useState11(value);
|
|
4018
|
+
const inputElRef = useRef6(null);
|
|
4019
|
+
useEffect8(() => {
|
|
3697
4020
|
setLocalValue(value);
|
|
3698
4021
|
}, [value]);
|
|
3699
4022
|
const combinedRefs = useCombinedRefs(inputRef, ref, inputElRef);
|
|
3700
|
-
return /* @__PURE__ */
|
|
4023
|
+
return /* @__PURE__ */ jsx14(
|
|
3701
4024
|
"input",
|
|
3702
4025
|
{
|
|
3703
|
-
className:
|
|
4026
|
+
className: clx8(
|
|
3704
4027
|
"txt-compact-small text-ui-fg-subtle flex size-full cursor-pointer bg-transparent outline-none",
|
|
3705
4028
|
"focus:cursor-text",
|
|
3706
4029
|
"items-center justify-center"
|
|
@@ -3722,11 +4045,11 @@ var Inner5 = ({
|
|
|
3722
4045
|
};
|
|
3723
4046
|
|
|
3724
4047
|
// src/components/data-grid/components/data-grid-textarea-modal-cell.tsx
|
|
3725
|
-
import { clx as
|
|
4048
|
+
import { clx as clx9, Textarea } from "@medusajs/ui";
|
|
3726
4049
|
import { Popover as RadixPopover } from "radix-ui";
|
|
3727
|
-
import { useCallback as useCallback16, useEffect as
|
|
3728
|
-
import { Controller as
|
|
3729
|
-
import { jsx as
|
|
4050
|
+
import { useCallback as useCallback16, useEffect as useEffect9, useRef as useRef7, useState as useState12 } from "react";
|
|
4051
|
+
import { Controller as Controller9 } from "react-hook-form";
|
|
4052
|
+
import { jsx as jsx15, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
3730
4053
|
var DataGridExpandableTextCell = ({
|
|
3731
4054
|
context,
|
|
3732
4055
|
fieldLabel
|
|
@@ -3736,14 +4059,14 @@ var DataGridExpandableTextCell = ({
|
|
|
3736
4059
|
});
|
|
3737
4060
|
const errorProps = useDataGridCellError({ context });
|
|
3738
4061
|
const { container, input } = renderProps;
|
|
3739
|
-
return /* @__PURE__ */
|
|
3740
|
-
|
|
4062
|
+
return /* @__PURE__ */ jsx15(
|
|
4063
|
+
Controller9,
|
|
3741
4064
|
{
|
|
3742
4065
|
control,
|
|
3743
4066
|
name: field,
|
|
3744
4067
|
render: ({ field: field2 }) => {
|
|
3745
|
-
return /* @__PURE__ */
|
|
3746
|
-
|
|
4068
|
+
return /* @__PURE__ */ jsx15(
|
|
4069
|
+
Inner9,
|
|
3747
4070
|
{
|
|
3748
4071
|
field: field2,
|
|
3749
4072
|
inputProps: input,
|
|
@@ -3756,7 +4079,7 @@ var DataGridExpandableTextCell = ({
|
|
|
3756
4079
|
}
|
|
3757
4080
|
);
|
|
3758
4081
|
};
|
|
3759
|
-
var
|
|
4082
|
+
var Inner9 = ({
|
|
3760
4083
|
field,
|
|
3761
4084
|
inputProps,
|
|
3762
4085
|
fieldLabel: _fieldLabel,
|
|
@@ -3767,19 +4090,19 @@ var Inner6 = ({
|
|
|
3767
4090
|
const { ref: inputRef, onBlur: onInputBlur, onChange, ...input } = inputProps;
|
|
3768
4091
|
const { setSingleRange, anchor } = useDataGridContext();
|
|
3769
4092
|
const { row, col } = anchor || { row: 0, col: 0 };
|
|
3770
|
-
const [localValue, setLocalValue] =
|
|
3771
|
-
const [isPopoverOpen, setIsPopoverOpen] =
|
|
3772
|
-
const [popoverValue, setPopoverValue] =
|
|
3773
|
-
const popoverContentRef =
|
|
3774
|
-
|
|
4093
|
+
const [localValue, setLocalValue] = useState12(value || "");
|
|
4094
|
+
const [isPopoverOpen, setIsPopoverOpen] = useState12(false);
|
|
4095
|
+
const [popoverValue, setPopoverValue] = useState12(value || "");
|
|
4096
|
+
const popoverContentRef = useRef7(null);
|
|
4097
|
+
useEffect9(() => {
|
|
3775
4098
|
setLocalValue(value || "");
|
|
3776
4099
|
}, [value]);
|
|
3777
|
-
|
|
4100
|
+
useEffect9(() => {
|
|
3778
4101
|
if (isPopoverOpen) {
|
|
3779
4102
|
setPopoverValue(value || "");
|
|
3780
4103
|
}
|
|
3781
4104
|
}, [isPopoverOpen, value]);
|
|
3782
|
-
|
|
4105
|
+
useEffect9(() => {
|
|
3783
4106
|
if (!isPopoverOpen || !popoverContentRef.current) {
|
|
3784
4107
|
return;
|
|
3785
4108
|
}
|
|
@@ -3844,7 +4167,7 @@ var Inner6 = ({
|
|
|
3844
4167
|
}, []);
|
|
3845
4168
|
const displayValue = localValue || "";
|
|
3846
4169
|
const truncatedValue = displayValue.length > 50 ? `${displayValue.substring(0, 50)}...` : displayValue;
|
|
3847
|
-
return /* @__PURE__ */
|
|
4170
|
+
return /* @__PURE__ */ jsxs11(
|
|
3848
4171
|
RadixPopover.Root,
|
|
3849
4172
|
{
|
|
3850
4173
|
open: isPopoverOpen,
|
|
@@ -3856,18 +4179,18 @@ var Inner6 = ({
|
|
|
3856
4179
|
}
|
|
3857
4180
|
},
|
|
3858
4181
|
children: [
|
|
3859
|
-
/* @__PURE__ */
|
|
3860
|
-
/* @__PURE__ */
|
|
4182
|
+
/* @__PURE__ */ jsxs11(DataGridCellContainer, { ...customContainer, ...errorProps, children: [
|
|
4183
|
+
/* @__PURE__ */ jsx15(RadixPopover.Anchor, { asChild: true, children: /* @__PURE__ */ jsx15(
|
|
3861
4184
|
"div",
|
|
3862
4185
|
{
|
|
3863
|
-
className:
|
|
4186
|
+
className: clx9(
|
|
3864
4187
|
"txt-compact-small text-ui-fg-subtle flex size-full cursor-pointer items-center justify-center bg-transparent outline-none",
|
|
3865
4188
|
"focus:cursor-text"
|
|
3866
4189
|
),
|
|
3867
|
-
children: /* @__PURE__ */
|
|
4190
|
+
children: /* @__PURE__ */ jsx15("span", { className: "w-full truncate text-center", children: truncatedValue })
|
|
3868
4191
|
}
|
|
3869
4192
|
) }),
|
|
3870
|
-
/* @__PURE__ */
|
|
4193
|
+
/* @__PURE__ */ jsx15(
|
|
3871
4194
|
"input",
|
|
3872
4195
|
{
|
|
3873
4196
|
className: "sr-only",
|
|
@@ -3886,10 +4209,10 @@ var Inner6 = ({
|
|
|
3886
4209
|
}
|
|
3887
4210
|
)
|
|
3888
4211
|
] }),
|
|
3889
|
-
/* @__PURE__ */
|
|
4212
|
+
/* @__PURE__ */ jsx15(RadixPopover.Portal, { children: /* @__PURE__ */ jsx15(
|
|
3890
4213
|
RadixPopover.Content,
|
|
3891
4214
|
{
|
|
3892
|
-
className:
|
|
4215
|
+
className: clx9(
|
|
3893
4216
|
"bg-ui-bg-base shadow-elevation-flyout flex max-h-[80vh] w-[600px] overflow-hidden p-0 outline-none"
|
|
3894
4217
|
),
|
|
3895
4218
|
align: "start",
|
|
@@ -3899,7 +4222,7 @@ var Inner6 = ({
|
|
|
3899
4222
|
collisionPadding: 24,
|
|
3900
4223
|
onEscapeKeyDown: handlePopoverSave,
|
|
3901
4224
|
onKeyDown: handlePopoverKeyDown,
|
|
3902
|
-
children: /* @__PURE__ */
|
|
4225
|
+
children: /* @__PURE__ */ jsx15("div", { ref: popoverContentRef, className: "h-full w-full", children: /* @__PURE__ */ jsx15(
|
|
3903
4226
|
Textarea,
|
|
3904
4227
|
{
|
|
3905
4228
|
value: popoverValue,
|
|
@@ -3918,7 +4241,7 @@ var Inner6 = ({
|
|
|
3918
4241
|
};
|
|
3919
4242
|
|
|
3920
4243
|
// src/components/data-grid/data-grid.tsx
|
|
3921
|
-
import { jsx as
|
|
4244
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
3922
4245
|
var _DataGrid = ({
|
|
3923
4246
|
isLoading,
|
|
3924
4247
|
// Lazy loading props - passed through to DataGridRoot
|
|
@@ -3928,13 +4251,13 @@ var _DataGrid = ({
|
|
|
3928
4251
|
hasNextPage,
|
|
3929
4252
|
...props
|
|
3930
4253
|
}) => {
|
|
3931
|
-
return isLoading ? /* @__PURE__ */
|
|
4254
|
+
return isLoading ? /* @__PURE__ */ jsx16(
|
|
3932
4255
|
DataGridSkeleton,
|
|
3933
4256
|
{
|
|
3934
4257
|
columns: props.columns,
|
|
3935
4258
|
rows: props.data?.length && props.data.length > 0 ? props.data.length : 10
|
|
3936
4259
|
}
|
|
3937
|
-
) : /* @__PURE__ */
|
|
4260
|
+
) : /* @__PURE__ */ jsx16(
|
|
3938
4261
|
DataGridRoot,
|
|
3939
4262
|
{
|
|
3940
4263
|
...props,
|
|
@@ -3990,27 +4313,260 @@ function createDataGridHelper() {
|
|
|
3990
4313
|
};
|
|
3991
4314
|
}
|
|
3992
4315
|
|
|
4316
|
+
// src/components/data-grid/components/data-grid-toggleable-number-cell.tsx
|
|
4317
|
+
import { Switch as Switch2 } from "@medusajs/ui";
|
|
4318
|
+
import { useEffect as useEffect10, useRef as useRef8, useState as useState13 } from "react";
|
|
4319
|
+
import CurrencyInput2 from "react-currency-input-field";
|
|
4320
|
+
import { Controller as Controller10 } from "react-hook-form";
|
|
4321
|
+
import { jsx as jsx17, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
4322
|
+
var DataGridTogglableNumberCell = ({
|
|
4323
|
+
context,
|
|
4324
|
+
disabledToggleTooltip,
|
|
4325
|
+
hideInput,
|
|
4326
|
+
...rest
|
|
4327
|
+
}) => {
|
|
4328
|
+
const { field, control, renderProps } = useDataGridCell({
|
|
4329
|
+
context
|
|
4330
|
+
});
|
|
4331
|
+
const errorProps = useDataGridCellError({ context });
|
|
4332
|
+
const { container, input } = renderProps;
|
|
4333
|
+
return /* @__PURE__ */ jsx17(
|
|
4334
|
+
Controller10,
|
|
4335
|
+
{
|
|
4336
|
+
control,
|
|
4337
|
+
name: field,
|
|
4338
|
+
render: ({ field: field2 }) => {
|
|
4339
|
+
return /* @__PURE__ */ jsx17(
|
|
4340
|
+
DataGridCellContainer,
|
|
4341
|
+
{
|
|
4342
|
+
...container,
|
|
4343
|
+
...errorProps,
|
|
4344
|
+
outerComponent: /* @__PURE__ */ jsx17(
|
|
4345
|
+
OuterComponent2,
|
|
4346
|
+
{
|
|
4347
|
+
field: field2,
|
|
4348
|
+
inputProps: input,
|
|
4349
|
+
isAnchor: container.isAnchor,
|
|
4350
|
+
tooltip: disabledToggleTooltip
|
|
4351
|
+
}
|
|
4352
|
+
),
|
|
4353
|
+
children: /* @__PURE__ */ jsx17(Inner10, { field: field2, inputProps: input, hideInput, ...rest })
|
|
4354
|
+
}
|
|
4355
|
+
);
|
|
4356
|
+
}
|
|
4357
|
+
}
|
|
4358
|
+
);
|
|
4359
|
+
};
|
|
4360
|
+
var OuterComponent2 = ({
|
|
4361
|
+
field,
|
|
4362
|
+
inputProps,
|
|
4363
|
+
isAnchor,
|
|
4364
|
+
tooltip
|
|
4365
|
+
}) => {
|
|
4366
|
+
const buttonRef = useRef8(null);
|
|
4367
|
+
const { value } = field;
|
|
4368
|
+
const { onChange } = inputProps;
|
|
4369
|
+
const [localValue, setLocalValue] = useState13(value);
|
|
4370
|
+
useEffect10(() => {
|
|
4371
|
+
setLocalValue(value);
|
|
4372
|
+
}, [value]);
|
|
4373
|
+
const handleCheckedChange = (update) => {
|
|
4374
|
+
const newValue = { ...localValue, checked: update };
|
|
4375
|
+
if (update && (newValue.quantity === "" || newValue.quantity === null || newValue.quantity === void 0)) {
|
|
4376
|
+
newValue.quantity = 0;
|
|
4377
|
+
}
|
|
4378
|
+
setLocalValue(newValue);
|
|
4379
|
+
onChange(newValue, value);
|
|
4380
|
+
};
|
|
4381
|
+
useEffect10(() => {
|
|
4382
|
+
const handleKeyDown = (e) => {
|
|
4383
|
+
if (isAnchor && e.key.toLowerCase() === "x") {
|
|
4384
|
+
e.preventDefault();
|
|
4385
|
+
buttonRef.current?.click();
|
|
4386
|
+
}
|
|
4387
|
+
};
|
|
4388
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
4389
|
+
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
4390
|
+
}, [isAnchor]);
|
|
4391
|
+
return /* @__PURE__ */ jsx17(
|
|
4392
|
+
ConditionalTooltip,
|
|
4393
|
+
{
|
|
4394
|
+
showTooltip: localValue.disabledToggle && tooltip,
|
|
4395
|
+
content: tooltip,
|
|
4396
|
+
children: /* @__PURE__ */ jsx17("div", { className: "absolute inset-y-0 left-4 z-[3] flex w-fit items-center justify-center", children: /* @__PURE__ */ jsx17(
|
|
4397
|
+
Switch2,
|
|
4398
|
+
{
|
|
4399
|
+
dir: "ltr",
|
|
4400
|
+
ref: buttonRef,
|
|
4401
|
+
size: "small",
|
|
4402
|
+
className: "shrink-0 rtl:rotate-180",
|
|
4403
|
+
checked: localValue.checked,
|
|
4404
|
+
disabled: localValue.disabledToggle,
|
|
4405
|
+
onCheckedChange: handleCheckedChange
|
|
4406
|
+
}
|
|
4407
|
+
) })
|
|
4408
|
+
}
|
|
4409
|
+
);
|
|
4410
|
+
};
|
|
4411
|
+
var Inner10 = ({
|
|
4412
|
+
field,
|
|
4413
|
+
inputProps,
|
|
4414
|
+
placeholder,
|
|
4415
|
+
hideInput,
|
|
4416
|
+
...props
|
|
4417
|
+
}) => {
|
|
4418
|
+
const { ref, value, onChange: _, onBlur, ...fieldProps } = field;
|
|
4419
|
+
const {
|
|
4420
|
+
ref: inputRef,
|
|
4421
|
+
onChange,
|
|
4422
|
+
onBlur: onInputBlur,
|
|
4423
|
+
onFocus,
|
|
4424
|
+
...attributes
|
|
4425
|
+
} = inputProps;
|
|
4426
|
+
const [localValue, setLocalValue] = useState13(value);
|
|
4427
|
+
useEffect10(() => {
|
|
4428
|
+
setLocalValue(value);
|
|
4429
|
+
}, [value]);
|
|
4430
|
+
const combinedRefs = useCombinedRefs(inputRef, ref);
|
|
4431
|
+
const handleInputChange = (updatedValue, _name, _values) => {
|
|
4432
|
+
const ensuredValue = updatedValue !== void 0 ? updatedValue : "";
|
|
4433
|
+
const newValue = { ...localValue, quantity: ensuredValue };
|
|
4434
|
+
if (ensuredValue !== "") {
|
|
4435
|
+
newValue.checked = true;
|
|
4436
|
+
} else if (newValue.checked && newValue.disabledToggle === false) {
|
|
4437
|
+
newValue.checked = false;
|
|
4438
|
+
}
|
|
4439
|
+
setLocalValue(newValue);
|
|
4440
|
+
};
|
|
4441
|
+
const handleOnChange = () => {
|
|
4442
|
+
if (localValue.disabledToggle && localValue.quantity === "") {
|
|
4443
|
+
localValue.quantity = 0;
|
|
4444
|
+
}
|
|
4445
|
+
onChange(localValue, value);
|
|
4446
|
+
};
|
|
4447
|
+
if (hideInput) {
|
|
4448
|
+
return /* @__PURE__ */ jsxs12("div", { className: "flex size-full items-center gap-x-2 pl-8", children: [
|
|
4449
|
+
/* @__PURE__ */ jsx17(
|
|
4450
|
+
"input",
|
|
4451
|
+
{
|
|
4452
|
+
ref: combinedRefs,
|
|
4453
|
+
className: "sr-only",
|
|
4454
|
+
onFocus,
|
|
4455
|
+
onBlur: () => {
|
|
4456
|
+
onBlur();
|
|
4457
|
+
onInputBlur();
|
|
4458
|
+
},
|
|
4459
|
+
tabIndex: -1,
|
|
4460
|
+
readOnly: true
|
|
4461
|
+
}
|
|
4462
|
+
),
|
|
4463
|
+
/* @__PURE__ */ jsx17("span", { className: "txt-compact-small text-ui-fg-subtle", children: localValue?.checked ? "Enabled" : "Not enabled" })
|
|
4464
|
+
] });
|
|
4465
|
+
}
|
|
4466
|
+
if (!localValue?.checked) {
|
|
4467
|
+
return /* @__PURE__ */ jsxs12("div", { className: "flex size-full items-center gap-x-2 pl-8", children: [
|
|
4468
|
+
/* @__PURE__ */ jsx17(
|
|
4469
|
+
"input",
|
|
4470
|
+
{
|
|
4471
|
+
ref: combinedRefs,
|
|
4472
|
+
className: "sr-only",
|
|
4473
|
+
onFocus,
|
|
4474
|
+
onBlur: () => {
|
|
4475
|
+
onBlur();
|
|
4476
|
+
onInputBlur();
|
|
4477
|
+
},
|
|
4478
|
+
tabIndex: -1,
|
|
4479
|
+
readOnly: true
|
|
4480
|
+
}
|
|
4481
|
+
),
|
|
4482
|
+
/* @__PURE__ */ jsx17("span", { className: "txt-compact-small text-ui-fg-subtle", children: "Not enabled" })
|
|
4483
|
+
] });
|
|
4484
|
+
}
|
|
4485
|
+
return /* @__PURE__ */ jsx17("div", { className: "flex size-full items-center gap-x-2", children: /* @__PURE__ */ jsx17(
|
|
4486
|
+
CurrencyInput2,
|
|
4487
|
+
{
|
|
4488
|
+
...fieldProps,
|
|
4489
|
+
...attributes,
|
|
4490
|
+
...props,
|
|
4491
|
+
ref: combinedRefs,
|
|
4492
|
+
className: "txt-compact-small w-full flex-1 cursor-default appearance-none bg-transparent pl-8 text-right outline-none",
|
|
4493
|
+
value: localValue?.quantity,
|
|
4494
|
+
onValueChange: handleInputChange,
|
|
4495
|
+
formatValueOnBlur: true,
|
|
4496
|
+
onBlur: () => {
|
|
4497
|
+
onBlur();
|
|
4498
|
+
onInputBlur();
|
|
4499
|
+
handleOnChange();
|
|
4500
|
+
},
|
|
4501
|
+
onFocus,
|
|
4502
|
+
decimalsLimit: 0,
|
|
4503
|
+
autoComplete: "off",
|
|
4504
|
+
tabIndex: -1
|
|
4505
|
+
}
|
|
4506
|
+
) });
|
|
4507
|
+
};
|
|
4508
|
+
|
|
4509
|
+
// src/components/data-grid/helpers/create-data-grid-location-stock-columns.tsx
|
|
4510
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
4511
|
+
var createDataGridLocationStockColumns = ({
|
|
4512
|
+
stockLocations,
|
|
4513
|
+
isReadyOnly,
|
|
4514
|
+
getFieldName,
|
|
4515
|
+
t
|
|
4516
|
+
}) => {
|
|
4517
|
+
const columnHelper = createDataGridHelper();
|
|
4518
|
+
return [
|
|
4519
|
+
...stockLocations.map((stockLocation, index) => {
|
|
4520
|
+
return columnHelper.column({
|
|
4521
|
+
id: `stock_locations.${stockLocation.id}`,
|
|
4522
|
+
name: stockLocation.name,
|
|
4523
|
+
field: (context) => {
|
|
4524
|
+
const isReadyOnlyValue = isReadyOnly?.(context);
|
|
4525
|
+
if (isReadyOnlyValue) {
|
|
4526
|
+
return null;
|
|
4527
|
+
}
|
|
4528
|
+
return getFieldName(context, index);
|
|
4529
|
+
},
|
|
4530
|
+
type: "togglable-number",
|
|
4531
|
+
header: () => /* @__PURE__ */ jsx18("div", { className: "flex w-full items-center justify-between gap-3", children: /* @__PURE__ */ jsx18("span", { className: "truncate", title: stockLocation.name, children: stockLocation.name }) }),
|
|
4532
|
+
cell: (context) => {
|
|
4533
|
+
if (isReadyOnly?.(context)) {
|
|
4534
|
+
return /* @__PURE__ */ jsx18(DataGridReadonlyCell, { context });
|
|
4535
|
+
}
|
|
4536
|
+
return /* @__PURE__ */ jsx18(
|
|
4537
|
+
DataGridTogglableNumberCell,
|
|
4538
|
+
{
|
|
4539
|
+
context,
|
|
4540
|
+
disabledToggleTooltip: t("inventory.stock.disabledToggleTooltip")
|
|
4541
|
+
}
|
|
4542
|
+
);
|
|
4543
|
+
}
|
|
4544
|
+
});
|
|
4545
|
+
}) ?? []
|
|
4546
|
+
];
|
|
4547
|
+
};
|
|
4548
|
+
|
|
3993
4549
|
// src/components/common/tax-badge/tax-badge.tsx
|
|
3994
4550
|
import { TaxExclusive, TaxInclusive } from "@medusajs/icons";
|
|
3995
4551
|
import { Tooltip as Tooltip3 } from "@medusajs/ui";
|
|
3996
|
-
import { useTranslation as
|
|
3997
|
-
import { jsx as
|
|
4552
|
+
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
4553
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
3998
4554
|
var IncludesTaxTooltip = ({
|
|
3999
4555
|
includesTax
|
|
4000
4556
|
}) => {
|
|
4001
|
-
const { t } =
|
|
4002
|
-
return /* @__PURE__ */
|
|
4557
|
+
const { t } = useTranslation5();
|
|
4558
|
+
return /* @__PURE__ */ jsx19(
|
|
4003
4559
|
Tooltip3,
|
|
4004
4560
|
{
|
|
4005
4561
|
maxWidth: 999,
|
|
4006
4562
|
content: includesTax ? t("general.includesTaxTooltip") : t("general.excludesTaxTooltip"),
|
|
4007
|
-
children: includesTax ? /* @__PURE__ */
|
|
4563
|
+
children: includesTax ? /* @__PURE__ */ jsx19(TaxInclusive, { className: "text-ui-fg-muted shrink-0" }) : /* @__PURE__ */ jsx19(TaxExclusive, { className: "text-ui-fg-muted shrink-0" })
|
|
4008
4564
|
}
|
|
4009
4565
|
);
|
|
4010
4566
|
};
|
|
4011
4567
|
|
|
4012
4568
|
// src/components/data-grid/helpers/create-data-grid-price-columns.tsx
|
|
4013
|
-
import { jsx as
|
|
4569
|
+
import { jsx as jsx20, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
4014
4570
|
var createDataGridPriceColumns = ({
|
|
4015
4571
|
currencies: currencies2,
|
|
4016
4572
|
regions,
|
|
@@ -4041,15 +4597,15 @@ var createDataGridPriceColumns = ({
|
|
|
4041
4597
|
return getFieldName(context, currency);
|
|
4042
4598
|
},
|
|
4043
4599
|
type: "number",
|
|
4044
|
-
header: () => /* @__PURE__ */
|
|
4045
|
-
/* @__PURE__ */
|
|
4046
|
-
/* @__PURE__ */
|
|
4600
|
+
header: () => /* @__PURE__ */ jsxs13("div", { className: "flex w-full items-center justify-between gap-3", children: [
|
|
4601
|
+
/* @__PURE__ */ jsx20("span", { className: "truncate", title: translatedCurrencyName, children: translatedCurrencyName }),
|
|
4602
|
+
/* @__PURE__ */ jsx20(IncludesTaxTooltip, { includesTax: preference?.is_tax_inclusive })
|
|
4047
4603
|
] }),
|
|
4048
4604
|
cell: (context) => {
|
|
4049
4605
|
if (isReadyOnly?.(context)) {
|
|
4050
|
-
return /* @__PURE__ */
|
|
4606
|
+
return /* @__PURE__ */ jsx20(DataGridReadonlyCell, { context });
|
|
4051
4607
|
}
|
|
4052
|
-
return /* @__PURE__ */
|
|
4608
|
+
return /* @__PURE__ */ jsx20(DataGridCurrencyCell, { code: currency, context });
|
|
4053
4609
|
}
|
|
4054
4610
|
});
|
|
4055
4611
|
}) ?? [],
|
|
@@ -4073,19 +4629,19 @@ var createDataGridPriceColumns = ({
|
|
|
4073
4629
|
return getFieldName(context, region.id);
|
|
4074
4630
|
},
|
|
4075
4631
|
type: "number",
|
|
4076
|
-
header: () => /* @__PURE__ */
|
|
4077
|
-
/* @__PURE__ */
|
|
4078
|
-
/* @__PURE__ */
|
|
4632
|
+
header: () => /* @__PURE__ */ jsxs13("div", { className: "flex w-full items-center justify-between gap-3", children: [
|
|
4633
|
+
/* @__PURE__ */ jsx20("span", { className: "truncate", title: translatedRegionName, children: translatedRegionName }),
|
|
4634
|
+
/* @__PURE__ */ jsx20(IncludesTaxTooltip, { includesTax: preference?.is_tax_inclusive })
|
|
4079
4635
|
] }),
|
|
4080
4636
|
cell: (context) => {
|
|
4081
4637
|
if (isReadyOnly?.(context)) {
|
|
4082
|
-
return /* @__PURE__ */
|
|
4638
|
+
return /* @__PURE__ */ jsx20(DataGridReadonlyCell, { context });
|
|
4083
4639
|
}
|
|
4084
4640
|
const currency = currencies2?.find((c) => c === region.currency_code);
|
|
4085
4641
|
if (!currency) {
|
|
4086
4642
|
return null;
|
|
4087
4643
|
}
|
|
4088
|
-
return /* @__PURE__ */
|
|
4644
|
+
return /* @__PURE__ */ jsx20(
|
|
4089
4645
|
DataGridCurrencyCell,
|
|
4090
4646
|
{
|
|
4091
4647
|
code: region.currency_code,
|
|
@@ -4104,10 +4660,16 @@ export {
|
|
|
4104
4660
|
useDataGridCellError,
|
|
4105
4661
|
useDataGridDuplicateCell,
|
|
4106
4662
|
DataGridCellContainer,
|
|
4663
|
+
DataGridBooleanWithTextCell,
|
|
4664
|
+
DataGridMediaCell,
|
|
4665
|
+
DataGridStatusCell,
|
|
4107
4666
|
DataGridReadonlyCell,
|
|
4108
4667
|
DataGridSkeleton,
|
|
4668
|
+
DataGridTextCell,
|
|
4109
4669
|
DataGrid,
|
|
4110
4670
|
createDataGridHelper,
|
|
4671
|
+
DataGridTogglableNumberCell,
|
|
4672
|
+
createDataGridLocationStockColumns,
|
|
4111
4673
|
IncludesTaxTooltip,
|
|
4112
4674
|
createDataGridPriceColumns
|
|
4113
4675
|
};
|