@dmsi/wedgekit-react 0.0.4
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/README.md +35 -0
- package/dist/acc.css +3 -0
- package/dist/agility.css +7 -0
- package/dist/chunk-22YZ6LFN.js +322 -0
- package/dist/chunk-25Y2OMTD.js +38 -0
- package/dist/chunk-27KIIUAR.js +59 -0
- package/dist/chunk-27OSC5OM.js +68 -0
- package/dist/chunk-2B7WUAOV.js +28 -0
- package/dist/chunk-2EHJFFX4.js +124 -0
- package/dist/chunk-2G2E2JMA.js +123 -0
- package/dist/chunk-2GC2SPSS.js +130 -0
- package/dist/chunk-2KLCMD2M.js +106 -0
- package/dist/chunk-2TLQVCQQ.js +130 -0
- package/dist/chunk-2Y6GPKXR.js +263 -0
- package/dist/chunk-322ATVWD.js +298 -0
- package/dist/chunk-35DCQU2F.js +127 -0
- package/dist/chunk-3B7FAEF7.js +38 -0
- package/dist/chunk-3FLOLZYP.js +21 -0
- package/dist/chunk-3IZWY2C7.js +221 -0
- package/dist/chunk-3NGYDV56.js +38 -0
- package/dist/chunk-3NLKVKFR.js +72 -0
- package/dist/chunk-3R7YVBRL.js +135 -0
- package/dist/chunk-3RDFNEVD.js +91 -0
- package/dist/chunk-3TPGMRVY.js +123 -0
- package/dist/chunk-42X2EOOI.js +129 -0
- package/dist/chunk-47GJZWOH.js +103 -0
- package/dist/chunk-4BUU5MTT.js +263 -0
- package/dist/chunk-4C66DLIJ.js +51 -0
- package/dist/chunk-4IZG2UCW.js +31 -0
- package/dist/chunk-4M7CJVTZ.js +136 -0
- package/dist/chunk-4NZBVXM3.js +53 -0
- package/dist/chunk-4RD5ZF2V.js +55 -0
- package/dist/chunk-4RJKB7LC.js +14 -0
- package/dist/chunk-4S4WZ3MQ.js +103 -0
- package/dist/chunk-4SV7MJMP.js +340 -0
- package/dist/chunk-4T7F5BZZ.js +26 -0
- package/dist/chunk-4TH2SUHQ.js +145 -0
- package/dist/chunk-56ORPWGF.js +148 -0
- package/dist/chunk-5GOBP2JS.js +53 -0
- package/dist/chunk-5HIUW5CM.js +128 -0
- package/dist/chunk-5K3U4IUW.js +34 -0
- package/dist/chunk-5KOZKEEM.js +91 -0
- package/dist/chunk-5OIRPFRD.js +114 -0
- package/dist/chunk-5QW5SJNW.js +31 -0
- package/dist/chunk-5QZO37QK.js +263 -0
- package/dist/chunk-5ROMJJRK.js +135 -0
- package/dist/chunk-5VHYVTZI.js +123 -0
- package/dist/chunk-6277DY3K.js +437 -0
- package/dist/chunk-6C5NOV6D.js +263 -0
- package/dist/chunk-6CDVHKTS.js +103 -0
- package/dist/chunk-6E4OJA7E.js +263 -0
- package/dist/chunk-6GBZFWQ4.js +105 -0
- package/dist/chunk-6GGLA6DI.js +263 -0
- package/dist/chunk-6HKVN4QK.js +340 -0
- package/dist/chunk-6HLJFPGY.js +284 -0
- package/dist/chunk-6KUUK27D.js +31 -0
- package/dist/chunk-6Q5NNY5V.js +135 -0
- package/dist/chunk-6VAZR5GK.js +122 -0
- package/dist/chunk-6XDXJ3Z3.js +131 -0
- package/dist/chunk-6XIXUFSA.js +114 -0
- package/dist/chunk-7CG4GVU7.js +21 -0
- package/dist/chunk-7DNCGSXK.js +284 -0
- package/dist/chunk-7GFGBJCU.js +287 -0
- package/dist/chunk-7VA3AERB.js +31 -0
- package/dist/chunk-7YJLGGIR.js +83 -0
- package/dist/chunk-7ZCBQXHR.js +272 -0
- package/dist/chunk-A4BGWCF6.js +221 -0
- package/dist/chunk-A6RDEIAN.js +254 -0
- package/dist/chunk-AE7SZPWF.js +121 -0
- package/dist/chunk-AEQYZFXI.js +50 -0
- package/dist/chunk-AFEIB2Y7.js +213 -0
- package/dist/chunk-AGQML5BM.js +340 -0
- package/dist/chunk-AHBE63RV.js +263 -0
- package/dist/chunk-AHHXD4EH.js +31 -0
- package/dist/chunk-AILPQXDY.js +47 -0
- package/dist/chunk-AKTL6JU5.js +25 -0
- package/dist/chunk-AMZFEIAM.js +114 -0
- package/dist/chunk-ANI7PKSV.js +38 -0
- package/dist/chunk-AO6WGDPJ.js +105 -0
- package/dist/chunk-ASDN5OZ3.js +318 -0
- package/dist/chunk-ASSOOV4N.js +53 -0
- package/dist/chunk-AWQSSKCK.js +32 -0
- package/dist/chunk-AWSUZLRR.js +79 -0
- package/dist/chunk-B6A3BOGW.js +31 -0
- package/dist/chunk-B6NMINKX.js +72 -0
- package/dist/chunk-B7UOXS2S.js +221 -0
- package/dist/chunk-BDN7SDV5.js +31 -0
- package/dist/chunk-BDPJYJD2.js +218 -0
- package/dist/chunk-BDYWCYRG.js +263 -0
- package/dist/chunk-BENTHNAQ.js +51 -0
- package/dist/chunk-BGPBLXQ5.js +131 -0
- package/dist/chunk-BKC5DNOX.js +162 -0
- package/dist/chunk-BMGYSXYW.js +50 -0
- package/dist/chunk-BNHSAFMP.js +93 -0
- package/dist/chunk-BNOE4DGB.js +79 -0
- package/dist/chunk-BQMI4NKT.js +103 -0
- package/dist/chunk-BSBXTPTA.js +84 -0
- package/dist/chunk-BYNATA7V.js +114 -0
- package/dist/chunk-BZFVPEG3.js +98 -0
- package/dist/chunk-C2GYWE4S.js +263 -0
- package/dist/chunk-C5NNFQ4B.js +114 -0
- package/dist/chunk-C7ALJGJG.js +322 -0
- package/dist/chunk-C7S6DKZ6.js +31 -0
- package/dist/chunk-CA4BW655.js +50 -0
- package/dist/chunk-CABAANHQ.js +249 -0
- package/dist/chunk-CELC37U6.js +38 -0
- package/dist/chunk-CIWOBFZ4.js +340 -0
- package/dist/chunk-CKB4S3O3.js +284 -0
- package/dist/chunk-CL6RYGIT.js +263 -0
- package/dist/chunk-CLB4OQS5.js +84 -0
- package/dist/chunk-CMBMFSP4.js +340 -0
- package/dist/chunk-CTHHLBRT.js +90 -0
- package/dist/chunk-DDQ4KWHW.js +74 -0
- package/dist/chunk-DHWXCPF2.js +56 -0
- package/dist/chunk-DV3IMUO6.js +50 -0
- package/dist/chunk-DZHPNWUL.js +70 -0
- package/dist/chunk-DZLUR2I7.js +34 -0
- package/dist/chunk-E5ALT5W7.js +182 -0
- package/dist/chunk-E7H6GJIB.js +31 -0
- package/dist/chunk-EAJ37R7R.js +31 -0
- package/dist/chunk-EDMIKY4Q.js +50 -0
- package/dist/chunk-EE4GUGFX.js +31 -0
- package/dist/chunk-EHCD3FVZ.js +50 -0
- package/dist/chunk-EHOMG5B4.js +31 -0
- package/dist/chunk-EM7ODK2O.js +53 -0
- package/dist/chunk-ER3HQRPL.js +105 -0
- package/dist/chunk-ER6TD3DA.js +30 -0
- package/dist/chunk-ESK7AT3B.js +38 -0
- package/dist/chunk-ETWMDEUU.js +114 -0
- package/dist/chunk-EWX2EDF5.js +236 -0
- package/dist/chunk-EXJKOP3Y.js +236 -0
- package/dist/chunk-F2YQE6G5.js +145 -0
- package/dist/chunk-F3U3RHIB.js +131 -0
- package/dist/chunk-F433MJII.js +91 -0
- package/dist/chunk-F4JE6AD2.js +160 -0
- package/dist/chunk-FCYGYC7R.js +30 -0
- package/dist/chunk-FEEMBYZR.js +98 -0
- package/dist/chunk-FKQ63FLW.js +91 -0
- package/dist/chunk-FNFDOS7L.js +263 -0
- package/dist/chunk-FNLYAP3I.js +135 -0
- package/dist/chunk-FQVCRL3Z.js +145 -0
- package/dist/chunk-FY7PTP6E.js +322 -0
- package/dist/chunk-FZ6I2KRT.js +263 -0
- package/dist/chunk-FZLYFJ53.js +26 -0
- package/dist/chunk-G3AYBQ2Y.js +221 -0
- package/dist/chunk-G4V7WZAV.js +72 -0
- package/dist/chunk-GDAY5XPY.js +47 -0
- package/dist/chunk-GELM4Z36.js +263 -0
- package/dist/chunk-GGR5UY3Q.js +83 -0
- package/dist/chunk-GK556OXV.js +263 -0
- package/dist/chunk-GOB3NB3Q.js +130 -0
- package/dist/chunk-GPIG2QUB.js +437 -0
- package/dist/chunk-GV63QYC5.js +130 -0
- package/dist/chunk-GWNDXZUZ.js +263 -0
- package/dist/chunk-H3INEB6H.js +296 -0
- package/dist/chunk-H3VQYL46.js +50 -0
- package/dist/chunk-H53EBFHV.js +114 -0
- package/dist/chunk-HBD6NLMB.js +51 -0
- package/dist/chunk-HBTQFVPW.js +121 -0
- package/dist/chunk-HCDYAZGJ.js +91 -0
- package/dist/chunk-HE3XKR3P.js +130 -0
- package/dist/chunk-HK3NQMPY.js +51 -0
- package/dist/chunk-HK54SJNM.js +103 -0
- package/dist/chunk-HL2IYNCS.js +50 -0
- package/dist/chunk-I5A3SU35.js +282 -0
- package/dist/chunk-I5HKQSF2.js +59 -0
- package/dist/chunk-I7LXSGQA.js +10 -0
- package/dist/chunk-IDAZ53A4.js +261 -0
- package/dist/chunk-IGQVA7SC.js +41 -0
- package/dist/chunk-II6HWGH6.js +295 -0
- package/dist/chunk-IIDPTJCI.js +31 -0
- package/dist/chunk-IJ6AAL4W.js +59 -0
- package/dist/chunk-IKZQIIV3.js +123 -0
- package/dist/chunk-ISKELMPI.js +67 -0
- package/dist/chunk-IWUZ6NSN.js +218 -0
- package/dist/chunk-IYDKL3OH.js +130 -0
- package/dist/chunk-IZ75D7KD.js +30 -0
- package/dist/chunk-JCLVMFRY.js +122 -0
- package/dist/chunk-JDHZQIFC.js +135 -0
- package/dist/chunk-JFMZU3WS.js +123 -0
- package/dist/chunk-JI54AM6E.js +105 -0
- package/dist/chunk-JM4DMO5V.js +91 -0
- package/dist/chunk-JNLDVEK3.js +221 -0
- package/dist/chunk-JU3RVFK5.js +114 -0
- package/dist/chunk-JU4PINK3.js +282 -0
- package/dist/chunk-K2YPB4SV.js +38 -0
- package/dist/chunk-K3IKUSZW.js +59 -0
- package/dist/chunk-K5EXR7F7.js +253 -0
- package/dist/chunk-K7CWFWAA.js +263 -0
- package/dist/chunk-KENSVWOY.js +151 -0
- package/dist/chunk-KGCFZ3ZY.js +263 -0
- package/dist/chunk-KJEU2OLC.js +263 -0
- package/dist/chunk-KNZWZVWO.js +50 -0
- package/dist/chunk-KVQDUSDT.js +33 -0
- package/dist/chunk-KX3O6GJ6.js +138 -0
- package/dist/chunk-KXFCVFX7.js +50 -0
- package/dist/chunk-KXWYWY7O.js +135 -0
- package/dist/chunk-KYJFCVGO.js +53 -0
- package/dist/chunk-L4SK5HYC.js +114 -0
- package/dist/chunk-L5OMTPWT.js +130 -0
- package/dist/chunk-LBL6VQ5F.js +51 -0
- package/dist/chunk-LCJKAY5H.js +122 -0
- package/dist/chunk-LEPHUIU3.js +263 -0
- package/dist/chunk-LFNCUQNK.js +103 -0
- package/dist/chunk-LIQIMUDD.js +270 -0
- package/dist/chunk-LJ2W2FEG.js +134 -0
- package/dist/chunk-LJGUNBDS.js +238 -0
- package/dist/chunk-LK6UNOMX.js +24 -0
- package/dist/chunk-LQLPGMGP.js +238 -0
- package/dist/chunk-LRNZOITG.js +318 -0
- package/dist/chunk-LSDPH4GX.js +38 -0
- package/dist/chunk-LXYDGV6K.js +437 -0
- package/dist/chunk-MFNBBTWX.js +177 -0
- package/dist/chunk-MGJ3GO6Z.js +284 -0
- package/dist/chunk-MIMYQH75.js +91 -0
- package/dist/chunk-MKIVQLZW.js +122 -0
- package/dist/chunk-MLQQU3ZN.js +31 -0
- package/dist/chunk-MLTOT73W.js +38 -0
- package/dist/chunk-MM2YBW7A.js +31 -0
- package/dist/chunk-MMHTKJ7Z.js +50 -0
- package/dist/chunk-MNZUBPVB.js +263 -0
- package/dist/chunk-MRXJRTKP.js +62 -0
- package/dist/chunk-MSM2B2VT.js +106 -0
- package/dist/chunk-MTJDLHR6.js +218 -0
- package/dist/chunk-MU4ZBPUT.js +263 -0
- package/dist/chunk-MUQHKNFV.js +158 -0
- package/dist/chunk-N2XNU5PP.js +91 -0
- package/dist/chunk-N4NGR36H.js +263 -0
- package/dist/chunk-NA4H2JQX.js +145 -0
- package/dist/chunk-NBV3Y6UB.js +315 -0
- package/dist/chunk-NEBYCDGE.js +284 -0
- package/dist/chunk-NS2KPONF.js +263 -0
- package/dist/chunk-O2KOOPL4.js +148 -0
- package/dist/chunk-OEIQDS7X.js +50 -0
- package/dist/chunk-OJ4PX3ZG.js +59 -0
- package/dist/chunk-OOIM4AHV.js +106 -0
- package/dist/chunk-OQ2SDHRA.js +267 -0
- package/dist/chunk-OQAOAEH5.js +114 -0
- package/dist/chunk-OQWOF5CI.js +322 -0
- package/dist/chunk-ORMEWXMH.js +37 -0
- package/dist/chunk-ORW5CX24.js +316 -0
- package/dist/chunk-OUHI4UBN.js +38 -0
- package/dist/chunk-OULD24TE.js +98 -0
- package/dist/chunk-P66A67NV.js +30 -0
- package/dist/chunk-PC5JSEHD.js +269 -0
- package/dist/chunk-PLCJ56FF.js +72 -0
- package/dist/chunk-PMNRGAPH.js +191 -0
- package/dist/chunk-PMQOPIJZ.js +75 -0
- package/dist/chunk-PPU6PK34.js +263 -0
- package/dist/chunk-PQEWSSM5.js +31 -0
- package/dist/chunk-PY6MF2II.js +51 -0
- package/dist/chunk-QBXVAKCM.js +59 -0
- package/dist/chunk-QDAFX66E.js +55 -0
- package/dist/chunk-QEXYUSGH.js +201 -0
- package/dist/chunk-QFEYPU44.js +91 -0
- package/dist/chunk-QJWVR7FR.js +387 -0
- package/dist/chunk-QKKRKHFR.js +38 -0
- package/dist/chunk-QKQ4M6UK.js +263 -0
- package/dist/chunk-QTKPVQAY.js +66 -0
- package/dist/chunk-R3IEEDQ6.js +284 -0
- package/dist/chunk-R4UZI5WE.js +171 -0
- package/dist/chunk-RBXILAST.js +437 -0
- package/dist/chunk-RENGWIST.js +263 -0
- package/dist/chunk-REZ33AJK.js +172 -0
- package/dist/chunk-RGI3V47F.js +216 -0
- package/dist/chunk-RMIQDOJV.js +287 -0
- package/dist/chunk-ROYYCT4A.js +31 -0
- package/dist/chunk-RWVJ2YAO.js +131 -0
- package/dist/chunk-RZLSOKZB.js +123 -0
- package/dist/chunk-S3POCSOH.js +31 -0
- package/dist/chunk-S4IHG5J6.js +54 -0
- package/dist/chunk-SEKKGFM6.js +28 -0
- package/dist/chunk-SHQVFIVR.js +122 -0
- package/dist/chunk-SPQH4CSJ.js +31 -0
- package/dist/chunk-SPV52UKB.js +50 -0
- package/dist/chunk-SSBZHFHQ.js +123 -0
- package/dist/chunk-STVC6SBJ.js +91 -0
- package/dist/chunk-SY3HT54E.js +91 -0
- package/dist/chunk-T23U4LBM.js +148 -0
- package/dist/chunk-TBHTISFW.js +119 -0
- package/dist/chunk-TC5ACZ3X.js +263 -0
- package/dist/chunk-TD5JMMNX.js +72 -0
- package/dist/chunk-TDEEN7O7.js +50 -0
- package/dist/chunk-TKRAU33B.js +53 -0
- package/dist/chunk-TMLPJ27P.js +126 -0
- package/dist/chunk-TTKSTVEF.js +41 -0
- package/dist/chunk-TVYKK7ZX.js +123 -0
- package/dist/chunk-TWZZB4WO.js +114 -0
- package/dist/chunk-TYI74BSP.js +62 -0
- package/dist/chunk-TZCA2T5D.js +282 -0
- package/dist/chunk-U2CMWI75.js +250 -0
- package/dist/chunk-UA7N4NQJ.js +30 -0
- package/dist/chunk-UEN5BURK.js +106 -0
- package/dist/chunk-UGXT677T.js +437 -0
- package/dist/chunk-ULCNZZBV.js +38 -0
- package/dist/chunk-UO4T3RQ7.js +62 -0
- package/dist/chunk-US3SPKKB.js +266 -0
- package/dist/chunk-UU3FA6LV.js +72 -0
- package/dist/chunk-UUNHTQDU.js +79 -0
- package/dist/chunk-UUZXVVJY.js +161 -0
- package/dist/chunk-UZJMB6V7.js +26 -0
- package/dist/chunk-V3HXUE6V.js +221 -0
- package/dist/chunk-V6UMVJGA.js +53 -0
- package/dist/chunk-V7C6DTJ6.js +72 -0
- package/dist/chunk-VFWFORJJ.js +131 -0
- package/dist/chunk-VHWB6H64.js +75 -0
- package/dist/chunk-VI62SXXU.js +284 -0
- package/dist/chunk-VK3FB67Z.js +31 -0
- package/dist/chunk-VKC7QT46.js +83 -0
- package/dist/chunk-VVTY2NT4.js +105 -0
- package/dist/chunk-VWEOVI4O.js +123 -0
- package/dist/chunk-WOCMJF6O.js +221 -0
- package/dist/chunk-WPDU5H5L.js +114 -0
- package/dist/chunk-WQMFGEAF.js +235 -0
- package/dist/chunk-WTAZ6P6T.js +263 -0
- package/dist/chunk-WUJFEG3H.js +118 -0
- package/dist/chunk-WUTFZGXS.js +50 -0
- package/dist/chunk-WVUIIBRR.js +51 -0
- package/dist/chunk-X65IBJJM.js +436 -0
- package/dist/chunk-XATMLZOP.js +263 -0
- package/dist/chunk-XFCRKJRI.js +261 -0
- package/dist/chunk-XGKHSZ6E.js +38 -0
- package/dist/chunk-XJAQVF2E.js +83 -0
- package/dist/chunk-XQX7HSL5.js +38 -0
- package/dist/chunk-XTP3ODBD.js +56 -0
- package/dist/chunk-XWF3ZJCZ.js +97 -0
- package/dist/chunk-XX3GHFG5.js +121 -0
- package/dist/chunk-XZ6AMNDQ.js +290 -0
- package/dist/chunk-Y2LOHSZL.js +72 -0
- package/dist/chunk-Y66VCVZZ.js +122 -0
- package/dist/chunk-YD462QK7.js +346 -0
- package/dist/chunk-YELD6VJI.js +68 -0
- package/dist/chunk-YHPZ5T3W.js +91 -0
- package/dist/chunk-YJV7JCIC.js +38 -0
- package/dist/chunk-YMZUZ5HX.js +263 -0
- package/dist/chunk-YN7MUHAZ.js +218 -0
- package/dist/chunk-YOCKCBUA.js +72 -0
- package/dist/chunk-YPFUW2PT.js +306 -0
- package/dist/chunk-YRLRIQNP.js +284 -0
- package/dist/chunk-YRTR6KJN.js +210 -0
- package/dist/chunk-YSSJHCRC.js +221 -0
- package/dist/chunk-YWLJJNJY.js +259 -0
- package/dist/chunk-YYRH2SGW.js +114 -0
- package/dist/chunk-YZRIJ4AP.js +263 -0
- package/dist/chunk-Z4UCFUF7.js +299 -0
- package/dist/chunk-Z64CLA4J.js +53 -0
- package/dist/chunk-ZCFOYW2U.js +296 -0
- package/dist/chunk-ZEYZVUG5.js +53 -0
- package/dist/chunk-ZHRZMJA3.js +31 -0
- package/dist/chunk-ZJQAMKIP.js +113 -0
- package/dist/chunk-ZRQZOT6X.js +141 -0
- package/dist/chunk-ZUTAZW53.js +306 -0
- package/dist/chunk-ZVJ2T3DC.js +79 -0
- package/dist/chunk-ZWJZHUKU.js +50 -0
- package/dist/chunk-ZXQKFHBO.js +221 -0
- package/dist/components/Breadcrumbs.cjs +376 -0
- package/dist/components/Breadcrumbs.js +90 -0
- package/dist/components/Button.cjs +319 -0
- package/dist/components/Button.js +8 -0
- package/dist/components/Calendar.cjs +219 -0
- package/dist/components/Calendar.js +10 -0
- package/dist/components/CalendarRange.cjs +520 -0
- package/dist/components/CalendarRange.js +13 -0
- package/dist/components/CalendarRange.stories.cjs +1 -0
- package/dist/components/CalendarRange.stories.js +0 -0
- package/dist/components/Caption.cjs +283 -0
- package/dist/components/Caption.js +80 -0
- package/dist/components/Checkbox.cjs +377 -0
- package/dist/components/Checkbox.js +11 -0
- package/dist/components/ContentTab.cjs +382 -0
- package/dist/components/ContentTab.js +10 -0
- package/dist/components/ContentTabs.cjs +472 -0
- package/dist/components/ContentTabs.js +98 -0
- package/dist/components/DMSiLogo.cjs +79 -0
- package/dist/components/DMSiLogo.js +56 -0
- package/dist/components/DataGrid.cjs +2985 -0
- package/dist/components/DataGrid.js +639 -0
- package/dist/components/DataGridCell.cjs +1905 -0
- package/dist/components/DataGridCell.js +24 -0
- package/dist/components/DataTable.cjs +791 -0
- package/dist/components/DataTable.js +720 -0
- package/dist/components/DateInput.cjs +1128 -0
- package/dist/components/DateInput.js +170 -0
- package/dist/components/DateRangeInput.cjs +1129 -0
- package/dist/components/DateRangeInput.js +171 -0
- package/dist/components/DebugJson.cjs +50 -0
- package/dist/components/DebugJson.js +27 -0
- package/dist/components/Display.cjs +234 -0
- package/dist/components/Display.js +12 -0
- package/dist/components/Display1.cjs +223 -0
- package/dist/components/Display1.js +8 -0
- package/dist/components/Display2.cjs +220 -0
- package/dist/components/Display2.js +46 -0
- package/dist/components/EditingContext.cjs +73 -0
- package/dist/components/EditingContext.js +35 -0
- package/dist/components/FilterGroup.cjs +903 -0
- package/dist/components/FilterGroup.js +213 -0
- package/dist/components/FullViewportBox.cjs +35 -0
- package/dist/components/FullViewportBox.js +12 -0
- package/dist/components/Grid.cjs +69 -0
- package/dist/components/Grid.js +36 -0
- package/dist/components/GridContainer.cjs +125 -0
- package/dist/components/GridContainer.js +92 -0
- package/dist/components/Heading.cjs +238 -0
- package/dist/components/Heading.js +14 -0
- package/dist/components/Heading1.cjs +223 -0
- package/dist/components/Heading1.js +49 -0
- package/dist/components/Heading2.cjs +223 -0
- package/dist/components/Heading2.js +8 -0
- package/dist/components/Heading3.cjs +223 -0
- package/dist/components/Heading3.js +8 -0
- package/dist/components/HorizontalDivider.cjs +33 -0
- package/dist/components/HorizontalDivider.js +10 -0
- package/dist/components/Icon.cjs +98 -0
- package/dist/components/Icon.js +7 -0
- package/dist/components/Input.cjs +670 -0
- package/dist/components/Input.js +21 -0
- package/dist/components/InputGroup.cjs +270 -0
- package/dist/components/InputGroup.js +60 -0
- package/dist/components/Label.cjs +223 -0
- package/dist/components/Label.js +8 -0
- package/dist/components/Link.cjs +262 -0
- package/dist/components/Link.js +8 -0
- package/dist/components/List.cjs +37 -0
- package/dist/components/List.js +14 -0
- package/dist/components/LiveChatComponent.cjs +63 -0
- package/dist/components/LiveChatComponent.js +40 -0
- package/dist/components/LogoAgilityTopBar.cjs +115 -0
- package/dist/components/LogoAgilityTopBar.js +92 -0
- package/dist/components/LogoDMSiTopBar.cjs +79 -0
- package/dist/components/LogoDMSiTopBar.js +7 -0
- package/dist/components/LogoMillworkTopBar.cjs +221 -0
- package/dist/components/LogoMillworkTopBar.js +198 -0
- package/dist/components/MainBar.cjs +210 -0
- package/dist/components/MainBar.js +64 -0
- package/dist/components/Menu.cjs +437 -0
- package/dist/components/Menu.js +11 -0
- package/dist/components/MenuOption.cjs +483 -0
- package/dist/components/MenuOption.js +13 -0
- package/dist/components/Modal.cjs +688 -0
- package/dist/components/Modal.js +195 -0
- package/dist/components/ModalButtons.cjs +381 -0
- package/dist/components/ModalButtons.js +10 -0
- package/dist/components/ModalContent.cjs +34 -0
- package/dist/components/ModalContent.js +7 -0
- package/dist/components/ModalHeader.cjs +418 -0
- package/dist/components/ModalHeader.js +11 -0
- package/dist/components/ModalScrim.cjs +65 -0
- package/dist/components/ModalScrim.js +7 -0
- package/dist/components/NavigationTab.cjs +431 -0
- package/dist/components/NavigationTab.js +10 -0
- package/dist/components/NavigationTabs.cjs +477 -0
- package/dist/components/NavigationTabs.js +56 -0
- package/dist/components/Notification.cjs +529 -0
- package/dist/components/Notification.js +104 -0
- package/dist/components/OptionPill.cjs +478 -0
- package/dist/components/OptionPill.js +11 -0
- package/dist/components/Paragraph.cjs +231 -0
- package/dist/components/Paragraph.js +8 -0
- package/dist/components/Password.cjs +698 -0
- package/dist/components/Password.js +53 -0
- package/dist/components/ProjectBar.cjs +242 -0
- package/dist/components/ProjectBar.js +63 -0
- package/dist/components/Radio.cjs +349 -0
- package/dist/components/Radio.js +131 -0
- package/dist/components/Search.cjs +765 -0
- package/dist/components/Search.js +12 -0
- package/dist/components/Select.cjs +750 -0
- package/dist/components/Select.js +12 -0
- package/dist/components/SideMenu.cjs +54 -0
- package/dist/components/SideMenu.js +21 -0
- package/dist/components/SideMenuGroup.cjs +393 -0
- package/dist/components/SideMenuGroup.js +83 -0
- package/dist/components/SideMenuItem.cjs +359 -0
- package/dist/components/SideMenuItem.js +70 -0
- package/dist/components/Stack.cjs +109 -0
- package/dist/components/Stack.js +7 -0
- package/dist/components/StatusPill.cjs +265 -0
- package/dist/components/StatusPill.js +52 -0
- package/dist/components/Stepper.cjs +883 -0
- package/dist/components/Stepper.js +105 -0
- package/dist/components/Subheader.cjs +226 -0
- package/dist/components/Subheader.js +8 -0
- package/dist/components/Surface.cjs +98 -0
- package/dist/components/Surface.js +7 -0
- package/dist/components/Swatch.cjs +779 -0
- package/dist/components/Swatch.js +398 -0
- package/dist/components/Textarea.cjs +269 -0
- package/dist/components/Textarea.js +96 -0
- package/dist/components/Theme.cjs +36 -0
- package/dist/components/Theme.js +13 -0
- package/dist/components/Time.cjs +1059 -0
- package/dist/components/Time.js +365 -0
- package/dist/components/Toast.cjs +644 -0
- package/dist/components/Toast.js +218 -0
- package/dist/components/Tooltip.cjs +273 -0
- package/dist/components/Tooltip.js +9 -0
- package/dist/components/TopBar.cjs +352 -0
- package/dist/components/TopBar.js +132 -0
- package/dist/components/useInfiniteScroll.cjs +57 -0
- package/dist/components/useInfiniteScroll.js +8 -0
- package/dist/components/useMatchesMedia.cjs +53 -0
- package/dist/components/useMatchesMedia.js +9 -0
- package/dist/components/useMenuSystem.cjs +358 -0
- package/dist/components/useMenuSystem.js +11 -0
- package/dist/components/useMounted.cjs +39 -0
- package/dist/components/useMounted.js +8 -0
- package/dist/fonts.css +19 -0
- package/dist/icons-light-QXLRBPC4.woff2 +0 -0
- package/dist/icons-light[FILL]-PPZXOLWS.woff2 +0 -0
- package/dist/icons-normal-MJATZ73K.woff2 +0 -0
- package/dist/icons-normal[FILL]-PPZXOLWS.woff2 +0 -0
- package/dist/index.css +4049 -0
- package/dist/millwork.css +4 -0
- package/dist/open-sans-55T6A4JE.woff2 +0 -0
- package/dist/types.cjs +18 -0
- package/dist/types.js +0 -0
- package/package.json +66 -0
- package/src/brand.css +110 -0
- package/src/classNames.ts +144 -0
- package/src/components/Breadcrumbs.tsx +116 -0
- package/src/components/Button.tsx +210 -0
- package/src/components/CalendarRange.tsx +429 -0
- package/src/components/Caption.tsx +101 -0
- package/src/components/Checkbox.tsx +195 -0
- package/src/components/ContentTab.tsx +66 -0
- package/src/components/ContentTabs.tsx +103 -0
- package/src/components/DMSiLogo.tsx +32 -0
- package/src/components/DataGrid.tsx +819 -0
- package/src/components/DataGridCell.tsx +384 -0
- package/src/components/DataTable.tsx +835 -0
- package/src/components/DateInput.tsx +188 -0
- package/src/components/DateRangeInput.tsx +179 -0
- package/src/components/DebugJson.tsx +24 -0
- package/src/components/Display.tsx +60 -0
- package/src/components/EditingContext.tsx +40 -0
- package/src/components/FilterGroup.tsx +211 -0
- package/src/components/FullViewportBox.tsx +11 -0
- package/src/components/Grid.tsx +75 -0
- package/src/components/GridContainer.tsx +124 -0
- package/src/components/Heading.tsx +66 -0
- package/src/components/HorizontalDivider.tsx +3 -0
- package/src/components/Icon.tsx +36 -0
- package/src/components/Input.tsx +508 -0
- package/src/components/InputGroup.tsx +51 -0
- package/src/components/Label.tsx +40 -0
- package/src/components/Link.tsx +106 -0
- package/src/components/List.tsx +10 -0
- package/src/components/LiveChatComponent.tsx +56 -0
- package/src/components/LogoAgilityTopBar.tsx +53 -0
- package/src/components/LogoDMSiTopBar.tsx +32 -0
- package/src/components/LogoMillworkTopBar.tsx +118 -0
- package/src/components/MainBar.tsx +82 -0
- package/src/components/Menu.tsx +279 -0
- package/src/components/MenuOption.tsx +275 -0
- package/src/components/Modal.tsx +211 -0
- package/src/components/ModalButtons.tsx +35 -0
- package/src/components/ModalContent.tsx +5 -0
- package/src/components/ModalHeader.tsx +30 -0
- package/src/components/ModalScrim.tsx +34 -0
- package/src/components/NavigationTab.tsx +89 -0
- package/src/components/NavigationTabs.tsx +63 -0
- package/src/components/Notification.tsx +113 -0
- package/src/components/OptionPill.tsx +114 -0
- package/src/components/Paragraph.tsx +49 -0
- package/src/components/Password.tsx +46 -0
- package/src/components/ProjectBar.tsx +76 -0
- package/src/components/Radio.tsx +140 -0
- package/src/components/Search.tsx +129 -0
- package/src/components/Select.tsx +106 -0
- package/src/components/SideMenu.tsx +21 -0
- package/src/components/SideMenuGroup.tsx +81 -0
- package/src/components/SideMenuItem.tsx +90 -0
- package/src/components/Stack.tsx +114 -0
- package/src/components/StatusPill.tsx +51 -0
- package/src/components/Stepper.tsx +91 -0
- package/src/components/Subheader.tsx +44 -0
- package/src/components/Surface.tsx +35 -0
- package/src/components/Swatch.tsx +293 -0
- package/src/components/Textarea.tsx +101 -0
- package/src/components/Theme.tsx +13 -0
- package/src/components/Time.tsx +457 -0
- package/src/components/Toast.tsx +244 -0
- package/src/components/Tooltip.tsx +137 -0
- package/src/components/TopBar.tsx +124 -0
- package/src/components/useInfiniteScroll.tsx +40 -0
- package/src/components/useMatchesMedia.tsx +28 -0
- package/src/components/useMenuSystem.tsx +367 -0
- package/src/components/useMounted.tsx +14 -0
- package/src/darkmode.css +125 -0
- package/src/fonts.css +21 -0
- package/src/index.css +489 -0
- package/src/index.tsx +2 -0
- package/src/types.ts +149 -0
- package/src/utils/formatting.tsx +81 -0
- package/src/utils.ts +23 -0
|
@@ -0,0 +1,639 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Tooltip
|
|
4
|
+
} from "../chunk-2G2E2JMA.js";
|
|
5
|
+
import {
|
|
6
|
+
useInfiniteScroll
|
|
7
|
+
} from "../chunk-AWQSSKCK.js";
|
|
8
|
+
import {
|
|
9
|
+
Subheader
|
|
10
|
+
} from "../chunk-5GOBP2JS.js";
|
|
11
|
+
import {
|
|
12
|
+
Select
|
|
13
|
+
} from "../chunk-UEN5BURK.js";
|
|
14
|
+
import {
|
|
15
|
+
DataGridCell,
|
|
16
|
+
DragAlongCell,
|
|
17
|
+
DraggableCellHeader
|
|
18
|
+
} from "../chunk-YD462QK7.js";
|
|
19
|
+
import {
|
|
20
|
+
Search
|
|
21
|
+
} from "../chunk-TBHTISFW.js";
|
|
22
|
+
import {
|
|
23
|
+
Menu
|
|
24
|
+
} from "../chunk-CABAANHQ.js";
|
|
25
|
+
import "../chunk-Z4UCFUF7.js";
|
|
26
|
+
import {
|
|
27
|
+
MenuOption
|
|
28
|
+
} from "../chunk-E5ALT5W7.js";
|
|
29
|
+
import "../chunk-SEKKGFM6.js";
|
|
30
|
+
import "../chunk-WVUIIBRR.js";
|
|
31
|
+
import "../chunk-4T7F5BZZ.js";
|
|
32
|
+
import {
|
|
33
|
+
Input
|
|
34
|
+
} from "../chunk-UGXT677T.js";
|
|
35
|
+
import {
|
|
36
|
+
Label
|
|
37
|
+
} from "../chunk-4C66DLIJ.js";
|
|
38
|
+
import {
|
|
39
|
+
Button
|
|
40
|
+
} from "../chunk-KENSVWOY.js";
|
|
41
|
+
import {
|
|
42
|
+
Checkbox
|
|
43
|
+
} from "../chunk-VFWFORJJ.js";
|
|
44
|
+
import {
|
|
45
|
+
Paragraph
|
|
46
|
+
} from "../chunk-K3IKUSZW.js";
|
|
47
|
+
import {
|
|
48
|
+
Icon
|
|
49
|
+
} from "../chunk-IGQVA7SC.js";
|
|
50
|
+
import {
|
|
51
|
+
componentGap,
|
|
52
|
+
componentPadding
|
|
53
|
+
} from "../chunk-KX3O6GJ6.js";
|
|
54
|
+
import {
|
|
55
|
+
__spreadProps,
|
|
56
|
+
__spreadValues
|
|
57
|
+
} from "../chunk-ORMEWXMH.js";
|
|
58
|
+
|
|
59
|
+
// src/components/DataGrid.tsx
|
|
60
|
+
import React, { useId, useState } from "react";
|
|
61
|
+
import {
|
|
62
|
+
flexRender,
|
|
63
|
+
getCoreRowModel,
|
|
64
|
+
getFilteredRowModel,
|
|
65
|
+
getSortedRowModel,
|
|
66
|
+
useReactTable
|
|
67
|
+
} from "@tanstack/react-table";
|
|
68
|
+
import {
|
|
69
|
+
useVirtualizer
|
|
70
|
+
} from "@tanstack/react-virtual";
|
|
71
|
+
import {
|
|
72
|
+
closestCenter,
|
|
73
|
+
DndContext,
|
|
74
|
+
KeyboardSensor,
|
|
75
|
+
MouseSensor,
|
|
76
|
+
TouchSensor,
|
|
77
|
+
useSensor,
|
|
78
|
+
useSensors
|
|
79
|
+
} from "@dnd-kit/core";
|
|
80
|
+
import {
|
|
81
|
+
arrayMove,
|
|
82
|
+
horizontalListSortingStrategy,
|
|
83
|
+
SortableContext
|
|
84
|
+
} from "@dnd-kit/sortable";
|
|
85
|
+
import { restrictToHorizontalAxis } from "@dnd-kit/modifiers";
|
|
86
|
+
import clsx from "clsx";
|
|
87
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
88
|
+
var PAGE_SIZE_OPTIONS = [5, 10, 15, 20, 25, 30, 35];
|
|
89
|
+
var NO_RESULTS_HEIGHT = "h-[120px]";
|
|
90
|
+
function adaptTableStateSetter(setter) {
|
|
91
|
+
return (valueOrFn) => {
|
|
92
|
+
setter(
|
|
93
|
+
(prev) => typeof valueOrFn === "function" ? valueOrFn(prev) : valueOrFn
|
|
94
|
+
);
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function DataGrid({
|
|
98
|
+
data,
|
|
99
|
+
columns,
|
|
100
|
+
status,
|
|
101
|
+
isLoadingMore = false,
|
|
102
|
+
onLoadMore,
|
|
103
|
+
pagination,
|
|
104
|
+
showFilterRow = false,
|
|
105
|
+
hasMore = false,
|
|
106
|
+
sorting: externalSorting,
|
|
107
|
+
onSortingChange,
|
|
108
|
+
columnFilters: externalColumnFilters,
|
|
109
|
+
onColumnFiltersChange,
|
|
110
|
+
rowSelection: externalRowSelection,
|
|
111
|
+
onRowSelectionChange,
|
|
112
|
+
filteredSortedData,
|
|
113
|
+
totalRowCount,
|
|
114
|
+
hideStatusBar,
|
|
115
|
+
centerHeader
|
|
116
|
+
}) {
|
|
117
|
+
var _a, _b, _c, _d, _e;
|
|
118
|
+
const [columnOrder, setColumnOrder] = useState(
|
|
119
|
+
() => columns.map((c) => c.id)
|
|
120
|
+
);
|
|
121
|
+
const [localSorting, setLocalSorting] = useState([]);
|
|
122
|
+
const [localColumnFilters, setLocalColumnFilters] = useState([]);
|
|
123
|
+
const [localRowSelection, setLocalRowSelection] = useState({});
|
|
124
|
+
const sortingState = pagination ? externalSorting != null ? externalSorting : localSorting : localSorting;
|
|
125
|
+
const setSortingState = pagination ? (updaterOrValue) => {
|
|
126
|
+
const value = typeof updaterOrValue === "function" ? updaterOrValue(
|
|
127
|
+
externalSorting != null ? externalSorting : []
|
|
128
|
+
) : updaterOrValue;
|
|
129
|
+
(onSortingChange != null ? onSortingChange : setLocalSorting)(value);
|
|
130
|
+
} : setLocalSorting;
|
|
131
|
+
const columnFilterState = pagination ? externalColumnFilters != null ? externalColumnFilters : localColumnFilters : localColumnFilters;
|
|
132
|
+
const setColumnFilterState = pagination ? (updaterOrValue) => {
|
|
133
|
+
const value = typeof updaterOrValue === "function" ? updaterOrValue(externalColumnFilters != null ? externalColumnFilters : []) : updaterOrValue;
|
|
134
|
+
(onColumnFiltersChange != null ? onColumnFiltersChange : setLocalColumnFilters)(value);
|
|
135
|
+
} : setLocalColumnFilters;
|
|
136
|
+
const rowSelection = pagination ? externalRowSelection != null ? externalRowSelection : localRowSelection : localRowSelection;
|
|
137
|
+
const setRowSelection = pagination ? (updaterOrValue) => {
|
|
138
|
+
const value = typeof updaterOrValue === "function" ? updaterOrValue(externalRowSelection != null ? externalRowSelection : {}) : updaterOrValue;
|
|
139
|
+
(onRowSelectionChange != null ? onRowSelectionChange : setLocalRowSelection)(value);
|
|
140
|
+
} : setLocalRowSelection;
|
|
141
|
+
const id = useId();
|
|
142
|
+
const containerRef = React.useRef(null);
|
|
143
|
+
const table = useReactTable({
|
|
144
|
+
columns,
|
|
145
|
+
data,
|
|
146
|
+
getCoreRowModel: getCoreRowModel(),
|
|
147
|
+
getSortedRowModel: getSortedRowModel(),
|
|
148
|
+
getFilteredRowModel: getFilteredRowModel(),
|
|
149
|
+
columnResizeMode: "onChange",
|
|
150
|
+
getRowId: (row, index) => {
|
|
151
|
+
var _a2;
|
|
152
|
+
return String((_a2 = row.id) != null ? _a2 : index + 1);
|
|
153
|
+
},
|
|
154
|
+
state: {
|
|
155
|
+
columnOrder,
|
|
156
|
+
sorting: sortingState,
|
|
157
|
+
columnFilters: columnFilterState,
|
|
158
|
+
rowSelection
|
|
159
|
+
},
|
|
160
|
+
onColumnOrderChange: setColumnOrder,
|
|
161
|
+
onSortingChange: adaptTableStateSetter(setSortingState),
|
|
162
|
+
onColumnFiltersChange: adaptTableStateSetter(setColumnFilterState),
|
|
163
|
+
onRowSelectionChange: adaptTableStateSetter(setRowSelection),
|
|
164
|
+
filterFns: {
|
|
165
|
+
startsWith: (row, columnId, filterValue) => {
|
|
166
|
+
var _a2;
|
|
167
|
+
return (_a2 = row.getValue(columnId)) == null ? void 0 : _a2.toLowerCase().startsWith(filterValue.toLowerCase());
|
|
168
|
+
},
|
|
169
|
+
endsWith: (row, columnId, filterValue) => {
|
|
170
|
+
var _a2;
|
|
171
|
+
return (_a2 = row.getValue(columnId)) == null ? void 0 : _a2.toLowerCase().endsWith(filterValue.toLowerCase());
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
const allRowIds = pagination ? (_a = filteredSortedData == null ? void 0 : filteredSortedData.map((row) => String(row.id))) != null ? _a : [] : Array.from(
|
|
176
|
+
{ length: totalRowCount != null ? totalRowCount : data.length },
|
|
177
|
+
(_, i) => String(i + 1)
|
|
178
|
+
);
|
|
179
|
+
const allSelectedAcrossPages = allRowIds.every((id2) => rowSelection[id2]);
|
|
180
|
+
const someSelectedAcrossPages = !allSelectedAcrossPages && allRowIds.some((id2) => rowSelection[id2]);
|
|
181
|
+
const toggleSelectAllAcrossPages = () => {
|
|
182
|
+
setRowSelection((prev) => {
|
|
183
|
+
const isSelecting = !allSelectedAcrossPages;
|
|
184
|
+
if (isSelecting) {
|
|
185
|
+
const newSelection = {};
|
|
186
|
+
for (const id2 of allRowIds) {
|
|
187
|
+
newSelection[id2] = true;
|
|
188
|
+
}
|
|
189
|
+
return __spreadValues(__spreadValues({}, prev), newSelection);
|
|
190
|
+
} else {
|
|
191
|
+
const updatedSelection = __spreadValues({}, prev);
|
|
192
|
+
for (const id2 of allRowIds) {
|
|
193
|
+
delete updatedSelection[id2];
|
|
194
|
+
}
|
|
195
|
+
return updatedSelection;
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
};
|
|
199
|
+
useInfiniteScroll({
|
|
200
|
+
containerRef,
|
|
201
|
+
onLoadMore: onLoadMore != null ? onLoadMore : () => {
|
|
202
|
+
},
|
|
203
|
+
isLoading: isLoadingMore,
|
|
204
|
+
enabled: !pagination
|
|
205
|
+
});
|
|
206
|
+
const handleDragEnd = (event) => {
|
|
207
|
+
const { active, over } = event;
|
|
208
|
+
if (active && over && active.id !== over.id) {
|
|
209
|
+
setColumnOrder((prev) => {
|
|
210
|
+
const oldIndex = prev.indexOf(active.id);
|
|
211
|
+
const newIndex = prev.indexOf(over.id);
|
|
212
|
+
return arrayMove(prev, oldIndex, newIndex);
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
const sensors = useSensors(
|
|
217
|
+
useSensor(MouseSensor),
|
|
218
|
+
useSensor(TouchSensor),
|
|
219
|
+
useSensor(KeyboardSensor)
|
|
220
|
+
);
|
|
221
|
+
const visibleColumns = table.getVisibleLeafColumns();
|
|
222
|
+
const columnVirtualizer = useVirtualizer({
|
|
223
|
+
count: visibleColumns.length,
|
|
224
|
+
estimateSize: (index) => visibleColumns[index].getSize(),
|
|
225
|
+
//estimate width of each column for accurate scrollbar dragging
|
|
226
|
+
getScrollElement: () => containerRef.current,
|
|
227
|
+
horizontal: true,
|
|
228
|
+
overscan: 3
|
|
229
|
+
//how many columns to render on each side off screen each way
|
|
230
|
+
});
|
|
231
|
+
const virtualColumns = columnVirtualizer.getVirtualItems();
|
|
232
|
+
let virtualPaddingLeft;
|
|
233
|
+
let virtualPaddingRight;
|
|
234
|
+
if (columnVirtualizer && (virtualColumns == null ? void 0 : virtualColumns.length)) {
|
|
235
|
+
virtualPaddingLeft = (_c = (_b = virtualColumns[0]) == null ? void 0 : _b.start) != null ? _c : 0;
|
|
236
|
+
virtualPaddingRight = columnVirtualizer.getTotalSize() - ((_e = (_d = virtualColumns[virtualColumns.length - 1]) == null ? void 0 : _d.end) != null ? _e : 0);
|
|
237
|
+
}
|
|
238
|
+
return /* @__PURE__ */ jsx(
|
|
239
|
+
DndContext,
|
|
240
|
+
{
|
|
241
|
+
id,
|
|
242
|
+
collisionDetection: closestCenter,
|
|
243
|
+
modifiers: [restrictToHorizontalAxis],
|
|
244
|
+
onDragEnd: handleDragEnd,
|
|
245
|
+
sensors,
|
|
246
|
+
children: /* @__PURE__ */ jsx(
|
|
247
|
+
SortableContext,
|
|
248
|
+
{
|
|
249
|
+
items: columnOrder,
|
|
250
|
+
strategy: horizontalListSortingStrategy,
|
|
251
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col flex-1 max-h-screen m-4 rounded border border-border-primary-normal overflow-hidden text-text-primary-normal", children: [
|
|
252
|
+
/* @__PURE__ */ jsx(
|
|
253
|
+
"div",
|
|
254
|
+
{
|
|
255
|
+
className: "overflow-auto scrollbar-thin max-h-full relative contain-paint will-change-transform",
|
|
256
|
+
ref: containerRef,
|
|
257
|
+
children: /* @__PURE__ */ jsxs("table", { className: "min-w-full grid", children: [
|
|
258
|
+
/* @__PURE__ */ jsx("thead", { className: "sticky top-0 z-10 grid", children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsxs("tr", { className: "flex w-full", children: [
|
|
259
|
+
virtualPaddingLeft ? (
|
|
260
|
+
// fake empty column to the left for virtualization scroll padding
|
|
261
|
+
/* @__PURE__ */ jsx(
|
|
262
|
+
"th",
|
|
263
|
+
{
|
|
264
|
+
style: { display: "flex", width: virtualPaddingLeft }
|
|
265
|
+
}
|
|
266
|
+
)
|
|
267
|
+
) : null,
|
|
268
|
+
virtualColumns.map((virtualColumn) => {
|
|
269
|
+
var _a2, _b2, _c2, _d2, _e2;
|
|
270
|
+
const header = headerGroup.headers[virtualColumn.index];
|
|
271
|
+
if (typeof header.column.columnDef.header === "string") {
|
|
272
|
+
const customHeaderWidth = (_a2 = header.column.columnDef.meta) == null ? void 0 : _a2.headerWidth;
|
|
273
|
+
return /* @__PURE__ */ jsxs(
|
|
274
|
+
DraggableCellHeader,
|
|
275
|
+
{
|
|
276
|
+
header,
|
|
277
|
+
locked: (_b2 = header.column.columnDef.meta) == null ? void 0 : _b2.locked,
|
|
278
|
+
center: centerHeader,
|
|
279
|
+
width: customHeaderWidth,
|
|
280
|
+
className: clsx(
|
|
281
|
+
header.column.getCanSort() ? "cursor-pointer" : "cursor-grab",
|
|
282
|
+
"group"
|
|
283
|
+
),
|
|
284
|
+
children: [
|
|
285
|
+
/* @__PURE__ */ jsx(Subheader, { tall: true, children: header.column.columnDef.header }),
|
|
286
|
+
getSortIcon(header.column.getIsSorted()),
|
|
287
|
+
!header.column.getIsSorted() && header.column.getCanSort() && getSortIcon(
|
|
288
|
+
header.column.getNextSortingOrder(),
|
|
289
|
+
true
|
|
290
|
+
),
|
|
291
|
+
header.column.getSortIndex() !== -1 && table.getState().sorting.length > 1 && /* @__PURE__ */ jsx(Subheader, { tall: true, children: header.column.getSortIndex() + 1 }),
|
|
292
|
+
!((_c2 = header.column.columnDef.meta) == null ? void 0 : _c2.locked) && /* @__PURE__ */ jsx(
|
|
293
|
+
"div",
|
|
294
|
+
{
|
|
295
|
+
onDoubleClick: (e) => {
|
|
296
|
+
e.stopPropagation();
|
|
297
|
+
header.column.resetSize();
|
|
298
|
+
},
|
|
299
|
+
onMouseDown: (e) => {
|
|
300
|
+
e.stopPropagation();
|
|
301
|
+
header.getResizeHandler()(e);
|
|
302
|
+
},
|
|
303
|
+
onTouchStart: (e) => {
|
|
304
|
+
e.stopPropagation();
|
|
305
|
+
header.getResizeHandler()(e);
|
|
306
|
+
},
|
|
307
|
+
className: "absolute right-0 inset-y-0 w-px bg-black cursor-col-resize"
|
|
308
|
+
}
|
|
309
|
+
)
|
|
310
|
+
]
|
|
311
|
+
},
|
|
312
|
+
header.id
|
|
313
|
+
);
|
|
314
|
+
}
|
|
315
|
+
return /* @__PURE__ */ jsx(React.Fragment, { children: ((_d2 = header.column.columnDef.meta) == null ? void 0 : _d2.checkbox) ? /* @__PURE__ */ jsx(
|
|
316
|
+
DataGridCell,
|
|
317
|
+
{
|
|
318
|
+
type: "header",
|
|
319
|
+
component: "checkbox",
|
|
320
|
+
locked: (_e2 = header.column.columnDef.meta) == null ? void 0 : _e2.locked,
|
|
321
|
+
children: /* @__PURE__ */ jsx(
|
|
322
|
+
Checkbox,
|
|
323
|
+
{
|
|
324
|
+
checked: allSelectedAcrossPages,
|
|
325
|
+
indeterminate: someSelectedAcrossPages,
|
|
326
|
+
onChange: toggleSelectAllAcrossPages
|
|
327
|
+
}
|
|
328
|
+
)
|
|
329
|
+
}
|
|
330
|
+
) : flexRender(
|
|
331
|
+
header.column.columnDef.header,
|
|
332
|
+
header.getContext()
|
|
333
|
+
) }, header.id);
|
|
334
|
+
}),
|
|
335
|
+
virtualPaddingRight ? (
|
|
336
|
+
//fake empty column to the right for virtualization scroll padding
|
|
337
|
+
/* @__PURE__ */ jsx(
|
|
338
|
+
"th",
|
|
339
|
+
{
|
|
340
|
+
style: { display: "flex", width: virtualPaddingRight }
|
|
341
|
+
}
|
|
342
|
+
)
|
|
343
|
+
) : null
|
|
344
|
+
] }, headerGroup.id)) }),
|
|
345
|
+
/* @__PURE__ */ jsx(
|
|
346
|
+
TableBody,
|
|
347
|
+
{
|
|
348
|
+
columnVirtualizer,
|
|
349
|
+
table,
|
|
350
|
+
tableContainerRef: containerRef,
|
|
351
|
+
virtualPaddingLeft,
|
|
352
|
+
virtualPaddingRight,
|
|
353
|
+
pagination,
|
|
354
|
+
isLoadingMore,
|
|
355
|
+
hasMore,
|
|
356
|
+
showFilterRow
|
|
357
|
+
}
|
|
358
|
+
)
|
|
359
|
+
] })
|
|
360
|
+
}
|
|
361
|
+
),
|
|
362
|
+
table.getRowModel().rows.length === 0 && /* @__PURE__ */ jsxs(
|
|
363
|
+
"div",
|
|
364
|
+
{
|
|
365
|
+
className: clsx(
|
|
366
|
+
NO_RESULTS_HEIGHT,
|
|
367
|
+
"flex flex-col items-center justify-center",
|
|
368
|
+
componentGap,
|
|
369
|
+
componentPadding
|
|
370
|
+
),
|
|
371
|
+
children: [
|
|
372
|
+
/* @__PURE__ */ jsx(Subheader, { color: "text-secondary-normal", children: "No Results" }),
|
|
373
|
+
/* @__PURE__ */ jsx(Paragraph, { color: "text-secondary-normal", children: "To view results, enter or update your search criteria." })
|
|
374
|
+
]
|
|
375
|
+
}
|
|
376
|
+
),
|
|
377
|
+
!hideStatusBar && /* @__PURE__ */ jsxs("div", { className: "p-2 pt-[7px] border-t border-border-primary-normal h-full min-h-[34px]", children: [
|
|
378
|
+
pagination && /* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
|
|
379
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1 w-min", children: [
|
|
380
|
+
/* @__PURE__ */ jsx(
|
|
381
|
+
Select,
|
|
382
|
+
{
|
|
383
|
+
wrapperClassName: "!w-20",
|
|
384
|
+
value: pagination.pageSize.toString(),
|
|
385
|
+
onChange: (e) => {
|
|
386
|
+
var _a2;
|
|
387
|
+
return (_a2 = pagination.onPageSizeChange) == null ? void 0 : _a2.call(pagination, Number(e.target.value));
|
|
388
|
+
},
|
|
389
|
+
renderMenu: (props) => /* @__PURE__ */ jsx(Menu, __spreadProps(__spreadValues({}, props), { onClick: () => props.setShow(false), children: PAGE_SIZE_OPTIONS.map((option) => /* @__PURE__ */ jsx(
|
|
390
|
+
MenuOption,
|
|
391
|
+
{
|
|
392
|
+
selected: pagination.pageSize === option,
|
|
393
|
+
onClick: () => {
|
|
394
|
+
var _a2;
|
|
395
|
+
return (_a2 = pagination.onPageSizeChange) == null ? void 0 : _a2.call(pagination, option);
|
|
396
|
+
},
|
|
397
|
+
children: option
|
|
398
|
+
},
|
|
399
|
+
option
|
|
400
|
+
)) }))
|
|
401
|
+
}
|
|
402
|
+
),
|
|
403
|
+
/* @__PURE__ */ jsx(Label, { className: "whitespace-nowrap", children: "Per Page" })
|
|
404
|
+
] }),
|
|
405
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
406
|
+
/* @__PURE__ */ jsx(
|
|
407
|
+
Button,
|
|
408
|
+
{
|
|
409
|
+
iconOnly: true,
|
|
410
|
+
leftIcon: /* @__PURE__ */ jsx(Icon, { name: "chevron_left" }),
|
|
411
|
+
onClick: () => pagination.onPageChange(pagination.pageIndex - 1),
|
|
412
|
+
variant: "tertiary",
|
|
413
|
+
disabled: pagination.pageIndex === 0
|
|
414
|
+
}
|
|
415
|
+
),
|
|
416
|
+
/* @__PURE__ */ jsxs(Paragraph, { children: [
|
|
417
|
+
pagination.pageIndex * pagination.pageSize + 1,
|
|
418
|
+
" -",
|
|
419
|
+
" ",
|
|
420
|
+
Math.min(
|
|
421
|
+
(pagination.pageIndex + 1) * pagination.pageSize,
|
|
422
|
+
pagination.total
|
|
423
|
+
),
|
|
424
|
+
" ",
|
|
425
|
+
"of ",
|
|
426
|
+
pagination.total
|
|
427
|
+
] }),
|
|
428
|
+
/* @__PURE__ */ jsx(
|
|
429
|
+
Button,
|
|
430
|
+
{
|
|
431
|
+
iconOnly: true,
|
|
432
|
+
leftIcon: /* @__PURE__ */ jsx(Icon, { name: "chevron_right" }),
|
|
433
|
+
onClick: () => pagination.onPageChange(pagination.pageIndex + 1),
|
|
434
|
+
variant: "tertiary",
|
|
435
|
+
disabled: (pagination.pageIndex + 1) * pagination.pageSize >= pagination.total
|
|
436
|
+
}
|
|
437
|
+
)
|
|
438
|
+
] })
|
|
439
|
+
] }),
|
|
440
|
+
status && /* @__PURE__ */ jsx(Paragraph, { children: status })
|
|
441
|
+
] })
|
|
442
|
+
] })
|
|
443
|
+
}
|
|
444
|
+
)
|
|
445
|
+
}
|
|
446
|
+
);
|
|
447
|
+
}
|
|
448
|
+
DataGrid.displayName = "DataGrid";
|
|
449
|
+
function TableBody({
|
|
450
|
+
columnVirtualizer,
|
|
451
|
+
table,
|
|
452
|
+
tableContainerRef,
|
|
453
|
+
virtualPaddingLeft,
|
|
454
|
+
virtualPaddingRight,
|
|
455
|
+
pagination,
|
|
456
|
+
isLoadingMore,
|
|
457
|
+
hasMore,
|
|
458
|
+
showFilterRow
|
|
459
|
+
}) {
|
|
460
|
+
const { rows } = table.getRowModel();
|
|
461
|
+
const rowVirtualizer = useVirtualizer({
|
|
462
|
+
count: rows.length,
|
|
463
|
+
estimateSize: () => 40,
|
|
464
|
+
getScrollElement: () => tableContainerRef.current,
|
|
465
|
+
overscan: 8
|
|
466
|
+
});
|
|
467
|
+
const virtualRows = rowVirtualizer.getVirtualItems();
|
|
468
|
+
return /* @__PURE__ */ jsxs(
|
|
469
|
+
"tbody",
|
|
470
|
+
{
|
|
471
|
+
style: {
|
|
472
|
+
display: "grid",
|
|
473
|
+
height: `${showFilterRow ? rowVirtualizer.getTotalSize() + 40 : rowVirtualizer.getTotalSize()}px`,
|
|
474
|
+
// tells scrollbar how big the table is
|
|
475
|
+
position: "relative"
|
|
476
|
+
// needed for absolute positioning of rows
|
|
477
|
+
},
|
|
478
|
+
children: [
|
|
479
|
+
showFilterRow && /* @__PURE__ */ jsx(
|
|
480
|
+
"tr",
|
|
481
|
+
{
|
|
482
|
+
style: {
|
|
483
|
+
display: "flex",
|
|
484
|
+
position: "sticky",
|
|
485
|
+
top: "40px",
|
|
486
|
+
width: "100%",
|
|
487
|
+
height: "40px",
|
|
488
|
+
zIndex: 10
|
|
489
|
+
},
|
|
490
|
+
className: "even:bg-background-grouped-primary-normal odd:bg-background-grouped-secondary-normal",
|
|
491
|
+
children: table.getHeaderGroups().flatMap(
|
|
492
|
+
(x) => x.headers.map((header) => {
|
|
493
|
+
var _a, _b, _c, _d, _e;
|
|
494
|
+
return /* @__PURE__ */ jsx(
|
|
495
|
+
DragAlongCell,
|
|
496
|
+
{
|
|
497
|
+
noPadding: true,
|
|
498
|
+
cell: header,
|
|
499
|
+
width: (_a = header.column.columnDef.meta) == null ? void 0 : _a.headerWidth,
|
|
500
|
+
children: header.column.getCanFilter() && ((_e = (_c = (_b = header.column.columnDef.meta) == null ? void 0 : _b.filterRowCell) == null ? void 0 : _c.call(_b, {
|
|
501
|
+
header,
|
|
502
|
+
table
|
|
503
|
+
})) != null ? _e : /* @__PURE__ */ jsx(
|
|
504
|
+
Search,
|
|
505
|
+
{
|
|
506
|
+
removeRoundness: true,
|
|
507
|
+
onChange: (e) => header.column.setFilterValue(e.target.value),
|
|
508
|
+
value: (_d = header.column.getFilterValue()) != null ? _d : "",
|
|
509
|
+
placeholder: "",
|
|
510
|
+
removeSearchIcon: true
|
|
511
|
+
}
|
|
512
|
+
))
|
|
513
|
+
},
|
|
514
|
+
header.id
|
|
515
|
+
);
|
|
516
|
+
})
|
|
517
|
+
)
|
|
518
|
+
}
|
|
519
|
+
),
|
|
520
|
+
virtualRows.map((virtualRow) => {
|
|
521
|
+
const row = rows[virtualRow.index];
|
|
522
|
+
return /* @__PURE__ */ jsx(
|
|
523
|
+
TableBodyRow,
|
|
524
|
+
{
|
|
525
|
+
columnVirtualizer,
|
|
526
|
+
row,
|
|
527
|
+
rowVirtualizer,
|
|
528
|
+
virtualPaddingLeft,
|
|
529
|
+
virtualPaddingRight,
|
|
530
|
+
virtualRow,
|
|
531
|
+
showFilterRow
|
|
532
|
+
},
|
|
533
|
+
row.id
|
|
534
|
+
);
|
|
535
|
+
}),
|
|
536
|
+
!pagination && isLoadingMore && hasMore && /* @__PURE__ */ jsx(
|
|
537
|
+
"tr",
|
|
538
|
+
{
|
|
539
|
+
style: {
|
|
540
|
+
display: "flex",
|
|
541
|
+
position: "absolute",
|
|
542
|
+
width: "100%",
|
|
543
|
+
transform: `translateY(${virtualRows[virtualRows.length - 1].start + 40}px)`
|
|
544
|
+
},
|
|
545
|
+
className: "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal",
|
|
546
|
+
children: table.getAllLeafColumns().map((column) => /* @__PURE__ */ jsx(LoadingCell, { column: column.columnDef }, column.id))
|
|
547
|
+
}
|
|
548
|
+
)
|
|
549
|
+
]
|
|
550
|
+
}
|
|
551
|
+
);
|
|
552
|
+
}
|
|
553
|
+
function TableBodyRow({
|
|
554
|
+
columnVirtualizer,
|
|
555
|
+
row,
|
|
556
|
+
// rowVirtualizer,
|
|
557
|
+
virtualPaddingLeft,
|
|
558
|
+
virtualPaddingRight,
|
|
559
|
+
virtualRow,
|
|
560
|
+
showFilterRow
|
|
561
|
+
}) {
|
|
562
|
+
const visibleCells = row.getVisibleCells();
|
|
563
|
+
const virtualColumns = columnVirtualizer.getVirtualItems();
|
|
564
|
+
const isError = typeof row.original === "object" && row.original !== null && "rowState" in row.original && row.original.rowState === "error";
|
|
565
|
+
return /* @__PURE__ */ jsxs(
|
|
566
|
+
"tr",
|
|
567
|
+
{
|
|
568
|
+
className: clsx(
|
|
569
|
+
"transition-colors hover:bg-background-action-secondary-hover",
|
|
570
|
+
row.getIsSelected() && "!bg-background-action-secondary-hover",
|
|
571
|
+
isError && "!bg-background-action-critical-secondary-hover",
|
|
572
|
+
showFilterRow ? "even:bg-background-grouped-primary-normal odd:bg-background-grouped-secondary-normal" : "odd:bg-background-grouped-primary-normal even:bg-background-grouped-secondary-normal"
|
|
573
|
+
),
|
|
574
|
+
style: {
|
|
575
|
+
display: "flex",
|
|
576
|
+
position: "absolute",
|
|
577
|
+
transform: `translateY(${showFilterRow ? virtualRow.start + 40 : virtualRow.start}px)`,
|
|
578
|
+
width: "100%"
|
|
579
|
+
},
|
|
580
|
+
children: [
|
|
581
|
+
virtualPaddingLeft ? (
|
|
582
|
+
// fake empty column to the left for virtualization scroll padding
|
|
583
|
+
/* @__PURE__ */ jsx("td", { style: { display: "flex", width: virtualPaddingLeft } })
|
|
584
|
+
) : null,
|
|
585
|
+
virtualColumns.map((virtualColumn) => {
|
|
586
|
+
var _a;
|
|
587
|
+
const cell = visibleCells[virtualColumn.index];
|
|
588
|
+
return ((_a = cell.column.columnDef.meta) == null ? void 0 : _a.useCustomRenderer) ? /* @__PURE__ */ jsx(React.Fragment, { children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ jsx(DragAlongCell, { cell, children: /* @__PURE__ */ jsx(
|
|
589
|
+
Tooltip,
|
|
590
|
+
{
|
|
591
|
+
showOnTruncation: true,
|
|
592
|
+
message: cell.getValue(),
|
|
593
|
+
position: "bottom",
|
|
594
|
+
children: /* @__PURE__ */ jsx(Paragraph, { addOverflow: true, tall: true, children: cell.getValue() })
|
|
595
|
+
}
|
|
596
|
+
) }, cell.id);
|
|
597
|
+
}),
|
|
598
|
+
virtualPaddingRight ? (
|
|
599
|
+
// fake empty column to the right for virtualization scroll padding
|
|
600
|
+
/* @__PURE__ */ jsx("td", { style: { display: "flex", width: virtualPaddingRight } })
|
|
601
|
+
) : null
|
|
602
|
+
]
|
|
603
|
+
},
|
|
604
|
+
row.id
|
|
605
|
+
);
|
|
606
|
+
}
|
|
607
|
+
var LoadingCell = ({
|
|
608
|
+
column
|
|
609
|
+
}) => {
|
|
610
|
+
const key = `loading-${column.id}`;
|
|
611
|
+
if (column.cell === "checkbox") {
|
|
612
|
+
return /* @__PURE__ */ jsx(DataGridCell, { children: /* @__PURE__ */ jsx(Checkbox, { disabled: true }) }, key);
|
|
613
|
+
}
|
|
614
|
+
if (column.cell === "input") {
|
|
615
|
+
return /* @__PURE__ */ jsx(DataGridCell, { component: "input", children: /* @__PURE__ */ jsx(
|
|
616
|
+
Input,
|
|
617
|
+
{
|
|
618
|
+
align: "left",
|
|
619
|
+
disabled: true,
|
|
620
|
+
wrapperClassName: "!rounded-none !border-0"
|
|
621
|
+
}
|
|
622
|
+
) }, key);
|
|
623
|
+
}
|
|
624
|
+
return /* @__PURE__ */ jsx(DataGridCell, { children: /* @__PURE__ */ jsx("div", { className: "bg-linear-270 to-neutral-300/[24%] from-neutral-300/[12%] rounded-xs w-full max-w-25 h-6" }) }, key);
|
|
625
|
+
};
|
|
626
|
+
function getSortIcon(sort, nextSort = false) {
|
|
627
|
+
const iconClassName = clsx(
|
|
628
|
+
"text-icon-on-action-primary-normal",
|
|
629
|
+
nextSort && "hidden group-hover:block"
|
|
630
|
+
);
|
|
631
|
+
if (sort === "asc")
|
|
632
|
+
return /* @__PURE__ */ jsx(Icon, { size: 16, className: iconClassName, name: "arrow_upward" });
|
|
633
|
+
if (sort === "desc")
|
|
634
|
+
return /* @__PURE__ */ jsx(Icon, { size: 16, className: iconClassName, name: "arrow_downward" });
|
|
635
|
+
return null;
|
|
636
|
+
}
|
|
637
|
+
export {
|
|
638
|
+
DataGrid
|
|
639
|
+
};
|