@mieweb/ui 0.10.0-dev.4 → 0.10.0-dev.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/agent/mieweb-ui.instructions.md +90 -1
- package/dist/CsvBlock-CFXSDPBI.js +9 -0
- package/dist/{CsvBlock-UWPMTLE2.js.map → CsvBlock-CFXSDPBI.js.map} +1 -1
- package/dist/CsvBlock-RGO7JXHJ.cjs +18 -0
- package/dist/{CsvBlock-ROJCKJDP.cjs.map → CsvBlock-RGO7JXHJ.cjs.map} +1 -1
- package/dist/HtmlPreviewBlock-VBYXCXVT.cjs +18 -0
- package/dist/{HtmlPreviewBlock-DWFN6EUB.cjs.map → HtmlPreviewBlock-VBYXCXVT.cjs.map} +1 -1
- package/dist/HtmlPreviewBlock-Z2GCK325.js +9 -0
- package/dist/{HtmlPreviewBlock-ME5U3XNS.js.map → HtmlPreviewBlock-Z2GCK325.js.map} +1 -1
- package/dist/MermaidBlock-I2R2BQOX.cjs +18 -0
- package/dist/{MermaidBlock-D2UC5M55.cjs.map → MermaidBlock-I2R2BQOX.cjs.map} +1 -1
- package/dist/MermaidBlock-XCAK7IA5.js +9 -0
- package/dist/{MermaidBlock-2B6CPD6Y.js.map → MermaidBlock-XCAK7IA5.js.map} +1 -1
- package/dist/SurveyBlock-KI5JOWCL.js +9 -0
- package/dist/{SurveyBlock-4DO62RBT.js.map → SurveyBlock-KI5JOWCL.js.map} +1 -1
- package/dist/SurveyBlock-UKSGISRT.cjs +18 -0
- package/dist/{SurveyBlock-4CD4AYMJ.cjs.map → SurveyBlock-UKSGISRT.cjs.map} +1 -1
- package/dist/ag-grid.d.cts +142 -1
- package/dist/ag-grid.d.ts +142 -1
- package/dist/brands/bluehive.cjs +3 -3
- package/dist/brands/bluehive.css +3 -0
- package/dist/brands/bluehive.js +1 -1
- package/dist/brands/index.cjs +14 -14
- package/dist/brands/index.js +4 -4
- package/dist/{chunk-3M7TAXNR.js → chunk-24AFHH4J.js} +3 -3
- package/dist/{chunk-3M7TAXNR.js.map → chunk-24AFHH4J.js.map} +1 -1
- package/dist/{chunk-JYZW2PZS.cjs → chunk-254QK722.cjs} +7 -7
- package/dist/chunk-254QK722.cjs.map +1 -0
- package/dist/{chunk-VPIYTQCV.cjs → chunk-2I4IRQQG.cjs} +12 -5
- package/dist/chunk-2I4IRQQG.cjs.map +1 -0
- package/dist/chunk-2X54ZLT6.js +874 -0
- package/dist/chunk-2X54ZLT6.js.map +1 -0
- package/dist/{chunk-5MCBWTIF.cjs → chunk-32ZCJOSR.cjs} +4 -4
- package/dist/{chunk-5MCBWTIF.cjs.map → chunk-32ZCJOSR.cjs.map} +1 -1
- package/dist/chunk-3YBS4WUQ.js +52 -0
- package/dist/chunk-3YBS4WUQ.js.map +1 -0
- package/dist/{chunk-WNJRS7Y7.cjs → chunk-3ZWCIPFT.cjs} +4 -2
- package/dist/chunk-3ZWCIPFT.cjs.map +1 -0
- package/dist/chunk-434L5RYF.js +314 -0
- package/dist/chunk-434L5RYF.js.map +1 -0
- package/dist/{chunk-TPWKM7JH.js → chunk-43K7OQ3E.js} +3 -3
- package/dist/{chunk-TPWKM7JH.js.map → chunk-43K7OQ3E.js.map} +1 -1
- package/dist/chunk-47P5QLX4.cjs +42 -0
- package/dist/chunk-47P5QLX4.cjs.map +1 -0
- package/dist/chunk-4IS3QCOQ.cjs +453 -0
- package/dist/chunk-4IS3QCOQ.cjs.map +1 -0
- package/dist/chunk-4NCDU5IG.cjs +56 -0
- package/dist/chunk-4NCDU5IG.cjs.map +1 -0
- package/dist/chunk-4ZB7RSMY.cjs +306 -0
- package/dist/chunk-4ZB7RSMY.cjs.map +1 -0
- package/dist/chunk-522WJIVI.js +99 -0
- package/dist/chunk-522WJIVI.js.map +1 -0
- package/dist/chunk-56VTM4OX.js +261 -0
- package/dist/chunk-56VTM4OX.js.map +1 -0
- package/dist/chunk-5HKZR6UG.js +248 -0
- package/dist/chunk-5HKZR6UG.js.map +1 -0
- package/dist/chunk-6BNZLN4B.cjs +548 -0
- package/dist/chunk-6BNZLN4B.cjs.map +1 -0
- package/dist/chunk-6N7NMOSV.js +233 -0
- package/dist/chunk-6N7NMOSV.js.map +1 -0
- package/dist/chunk-6TTCZY3P.cjs +4 -0
- package/dist/chunk-6TTCZY3P.cjs.map +1 -0
- package/dist/{chunk-YQDA366U.js → chunk-753ENNB6.js} +2 -2
- package/dist/{chunk-YQDA366U.js.map → chunk-753ENNB6.js.map} +1 -1
- package/dist/{chunk-N6IY47YA.cjs → chunk-7C5W744U.cjs} +8 -8
- package/dist/{chunk-N6IY47YA.cjs.map → chunk-7C5W744U.cjs.map} +1 -1
- package/dist/chunk-7E46YDOT.cjs +122 -0
- package/dist/chunk-7E46YDOT.cjs.map +1 -0
- package/dist/chunk-7HUTR6RX.js +178 -0
- package/dist/chunk-7HUTR6RX.js.map +1 -0
- package/dist/chunk-7IRTD4JT.cjs +61 -0
- package/dist/chunk-7IRTD4JT.cjs.map +1 -0
- package/dist/{chunk-KZFBQ7GY.js → chunk-7QW6TU4X.js} +3 -3
- package/dist/{chunk-KZFBQ7GY.js.map → chunk-7QW6TU4X.js.map} +1 -1
- package/dist/{chunk-MWVW4APN.cjs → chunk-7UTBDFFL.cjs} +4 -4
- package/dist/{chunk-MWVW4APN.cjs.map → chunk-7UTBDFFL.cjs.map} +1 -1
- package/dist/chunk-7WJ6MBF5.cjs +47 -0
- package/dist/chunk-7WJ6MBF5.cjs.map +1 -0
- package/dist/{chunk-FJ7YPVKV.js → chunk-7X6R3JIA.js} +3 -3
- package/dist/{chunk-FJ7YPVKV.js.map → chunk-7X6R3JIA.js.map} +1 -1
- package/dist/chunk-A4W5CSK7.cjs +216 -0
- package/dist/chunk-A4W5CSK7.cjs.map +1 -0
- package/dist/{chunk-2G75X6TS.cjs → chunk-AHHFFXJR.cjs} +3 -3
- package/dist/{chunk-2G75X6TS.cjs.map → chunk-AHHFFXJR.cjs.map} +1 -1
- package/dist/chunk-AJPFQF3H.cjs +896 -0
- package/dist/chunk-AJPFQF3H.cjs.map +1 -0
- package/dist/chunk-AMYFRY7K.js +3 -0
- package/dist/chunk-AMYFRY7K.js.map +1 -0
- package/dist/{chunk-VNYW4C4J.cjs → chunk-ANMX7YDL.cjs} +4 -84
- package/dist/chunk-ANMX7YDL.cjs.map +1 -0
- package/dist/chunk-ARIJ5OHW.cjs +139 -0
- package/dist/chunk-ARIJ5OHW.cjs.map +1 -0
- package/dist/{chunk-DVOQ3JNO.js → chunk-B4CKCNWD.js} +16 -8
- package/dist/chunk-B4CKCNWD.js.map +1 -0
- package/dist/chunk-BJ6ABRSQ.cjs +256 -0
- package/dist/chunk-BJ6ABRSQ.cjs.map +1 -0
- package/dist/chunk-BM35CACB.js +148 -0
- package/dist/chunk-BM35CACB.js.map +1 -0
- package/dist/{chunk-G3JX3UAU.cjs → chunk-BWSZ2BHJ.cjs} +6 -6
- package/dist/{chunk-G3JX3UAU.cjs.map → chunk-BWSZ2BHJ.cjs.map} +1 -1
- package/dist/chunk-BXRQ6HEP.cjs +4 -0
- package/dist/chunk-BXRQ6HEP.cjs.map +1 -0
- package/dist/{chunk-SGFYA22I.cjs → chunk-C77FAR3F.cjs} +8 -8
- package/dist/{chunk-SGFYA22I.cjs.map → chunk-C77FAR3F.cjs.map} +1 -1
- package/dist/chunk-CBBKWRLG.js +213 -0
- package/dist/chunk-CBBKWRLG.js.map +1 -0
- package/dist/{chunk-UAMXCMST.cjs → chunk-CFI3TQMA.cjs} +3 -3
- package/dist/{chunk-UAMXCMST.cjs.map → chunk-CFI3TQMA.cjs.map} +1 -1
- package/dist/chunk-CLQW724U.cjs +271 -0
- package/dist/chunk-CLQW724U.cjs.map +1 -0
- package/dist/chunk-CPDNX3LS.cjs +47 -0
- package/dist/chunk-CPDNX3LS.cjs.map +1 -0
- package/dist/chunk-CVNPNZMX.js +44 -0
- package/dist/chunk-CVNPNZMX.js.map +1 -0
- package/dist/{chunk-2YCERQWC.js → chunk-CVXESGXJ.js} +10 -9
- package/dist/chunk-CVXESGXJ.js.map +1 -0
- package/dist/chunk-DGHS5IVD.js +305 -0
- package/dist/chunk-DGHS5IVD.js.map +1 -0
- package/dist/chunk-DHGCLPFZ.js +91 -0
- package/dist/chunk-DHGCLPFZ.js.map +1 -0
- package/dist/{chunk-GD7EBGC4.cjs → chunk-DHU3FFC3.cjs} +49 -19
- package/dist/chunk-DHU3FFC3.cjs.map +1 -0
- package/dist/chunk-DO2YN46R.cjs +201 -0
- package/dist/chunk-DO2YN46R.cjs.map +1 -0
- package/dist/chunk-DVDT7TX7.js +151 -0
- package/dist/chunk-DVDT7TX7.js.map +1 -0
- package/dist/chunk-DXEPYK3I.cjs +92 -0
- package/dist/chunk-DXEPYK3I.cjs.map +1 -0
- package/dist/{chunk-X4XPNTCZ.cjs → chunk-DZ3JTMKM.cjs} +136 -58
- package/dist/chunk-DZ3JTMKM.cjs.map +1 -0
- package/dist/chunk-EACNRR3C.cjs +4 -0
- package/dist/chunk-EACNRR3C.cjs.map +1 -0
- package/dist/{chunk-ZGRCSNPK.js → chunk-EEOGIGIA.js} +4 -4
- package/dist/{chunk-ZGRCSNPK.js.map → chunk-EEOGIGIA.js.map} +1 -1
- package/dist/chunk-EPCUPHEO.js +193 -0
- package/dist/chunk-EPCUPHEO.js.map +1 -0
- package/dist/{chunk-7ZXAQTV4.cjs → chunk-ERACGSDY.cjs} +8 -8
- package/dist/{chunk-7ZXAQTV4.cjs.map → chunk-ERACGSDY.cjs.map} +1 -1
- package/dist/{chunk-OD47TTAW.cjs → chunk-F2FOG4EG.cjs} +9 -9
- package/dist/{chunk-OD47TTAW.cjs.map → chunk-F2FOG4EG.cjs.map} +1 -1
- package/dist/chunk-F3EWRDIT.js +312 -0
- package/dist/chunk-F3EWRDIT.js.map +1 -0
- package/dist/{chunk-XCP454Q6.js → chunk-F4N67NAF.js} +12 -3
- package/dist/chunk-F4N67NAF.js.map +1 -0
- package/dist/{chunk-WGPLUCBD.js → chunk-F6W62K4J.js} +4 -4
- package/dist/{chunk-WGPLUCBD.js.map → chunk-F6W62K4J.js.map} +1 -1
- package/dist/chunk-FBCDYTWM.js +385 -0
- package/dist/chunk-FBCDYTWM.js.map +1 -0
- package/dist/{chunk-V7D3YGUV.js → chunk-FGLIP6YR.js} +4 -4
- package/dist/{chunk-V7D3YGUV.js.map → chunk-FGLIP6YR.js.map} +1 -1
- package/dist/{chunk-VU6UTJRM.js → chunk-FIKO4WR6.js} +3 -3
- package/dist/{chunk-VU6UTJRM.js.map → chunk-FIKO4WR6.js.map} +1 -1
- package/dist/chunk-FSGJXCBG.cjs +318 -0
- package/dist/chunk-FSGJXCBG.cjs.map +1 -0
- package/dist/chunk-FSWHZY3T.cjs +328 -0
- package/dist/chunk-FSWHZY3T.cjs.map +1 -0
- package/dist/chunk-FTEZNCRI.js +29 -0
- package/dist/chunk-FTEZNCRI.js.map +1 -0
- package/dist/{chunk-YVPC65ZJ.cjs → chunk-GF2BE4FB.cjs} +91 -32
- package/dist/chunk-GF2BE4FB.cjs.map +1 -0
- package/dist/{chunk-JEIW7BSV.cjs → chunk-GKDHMNUA.cjs} +2 -52
- package/dist/chunk-GKDHMNUA.cjs.map +1 -0
- package/dist/chunk-GM32IDVL.cjs +356 -0
- package/dist/chunk-GM32IDVL.cjs.map +1 -0
- package/dist/chunk-GVM6DTR5.js +90 -0
- package/dist/chunk-GVM6DTR5.js.map +1 -0
- package/dist/{chunk-SQHMGT4W.js → chunk-GW4RFJZ5.js} +7 -7
- package/dist/chunk-GW4RFJZ5.js.map +1 -0
- package/dist/chunk-GY5SP4ST.js +3 -0
- package/dist/chunk-GY5SP4ST.js.map +1 -0
- package/dist/chunk-H2Y7HZV5.js +3 -0
- package/dist/chunk-H2Y7HZV5.js.map +1 -0
- package/dist/chunk-H3P7POFC.cjs +337 -0
- package/dist/chunk-H3P7POFC.cjs.map +1 -0
- package/dist/{chunk-JID7AZTO.cjs → chunk-H3ROMJYI.cjs} +4 -4
- package/dist/{chunk-JID7AZTO.cjs.map → chunk-H3ROMJYI.cjs.map} +1 -1
- package/dist/{chunk-462XSCP3.cjs → chunk-HCIXGFWR.cjs} +4 -4
- package/dist/{chunk-462XSCP3.cjs.map → chunk-HCIXGFWR.cjs.map} +1 -1
- package/dist/{chunk-H4ZXMQQW.js → chunk-HDY7YQFX.js} +3 -3
- package/dist/{chunk-H4ZXMQQW.js.map → chunk-HDY7YQFX.js.map} +1 -1
- package/dist/chunk-HNFFFFYH.cjs +114 -0
- package/dist/chunk-HNFFFFYH.cjs.map +1 -0
- package/dist/chunk-HNXLLDPN.js +25 -0
- package/dist/chunk-HNXLLDPN.js.map +1 -0
- package/dist/{chunk-NV2CWBI2.cjs → chunk-IEY3ZJIT.cjs} +12 -3
- package/dist/chunk-IEY3ZJIT.cjs.map +1 -0
- package/dist/{chunk-3QEVGSFG.cjs → chunk-IGDO62KR.cjs} +5 -5
- package/dist/{chunk-3QEVGSFG.cjs.map → chunk-IGDO62KR.cjs.map} +1 -1
- package/dist/chunk-IT775BYG.js +179 -0
- package/dist/chunk-IT775BYG.js.map +1 -0
- package/dist/{chunk-N5O47VGS.cjs → chunk-IVGI353O.cjs} +2 -2
- package/dist/{chunk-N5O47VGS.cjs.map → chunk-IVGI353O.cjs.map} +1 -1
- package/dist/chunk-IWRBJHO3.cjs +51 -0
- package/dist/chunk-IWRBJHO3.cjs.map +1 -0
- package/dist/{chunk-VILW53UZ.js → chunk-JMAZ2GKT.js} +3 -3
- package/dist/{chunk-VILW53UZ.js.map → chunk-JMAZ2GKT.js.map} +1 -1
- package/dist/{chunk-WWJIW2IH.cjs → chunk-JSXIB6EJ.cjs} +4 -4
- package/dist/{chunk-WWJIW2IH.cjs.map → chunk-JSXIB6EJ.cjs.map} +1 -1
- package/dist/{chunk-KRU6IGV7.js → chunk-JUJGWUAN.js} +28 -6
- package/dist/chunk-JUJGWUAN.js.map +1 -0
- package/dist/{chunk-FXO5ARBB.cjs → chunk-KDW6BD4O.cjs} +4 -4
- package/dist/{chunk-FXO5ARBB.cjs.map → chunk-KDW6BD4O.cjs.map} +1 -1
- package/dist/{chunk-Z5V7SAZ4.js → chunk-KFEN2SRZ.js} +3 -3
- package/dist/{chunk-Z5V7SAZ4.js.map → chunk-KFEN2SRZ.js.map} +1 -1
- package/dist/{chunk-XEAT7XJG.cjs → chunk-KQ6GLYFZ.cjs} +29 -13
- package/dist/chunk-KQ6GLYFZ.cjs.map +1 -0
- package/dist/chunk-L6K4PRZK.cjs +4 -0
- package/dist/chunk-L6K4PRZK.cjs.map +1 -0
- package/dist/{chunk-7ZDPD5ZX.cjs → chunk-LC3JL2HB.cjs} +11 -7
- package/dist/chunk-LC3JL2HB.cjs.map +1 -0
- package/dist/{chunk-P7UMS4E6.cjs → chunk-LC7PVBXH.cjs} +16 -8
- package/dist/chunk-LC7PVBXH.cjs.map +1 -0
- package/dist/{chunk-Y5HFM7LO.js → chunk-LDBNUJB7.js} +5 -5
- package/dist/{chunk-Y5HFM7LO.js.map → chunk-LDBNUJB7.js.map} +1 -1
- package/dist/chunk-LRAAJRE7.cjs +2707 -0
- package/dist/chunk-LRAAJRE7.cjs.map +1 -0
- package/dist/chunk-LUPRGPKP.js +2540 -0
- package/dist/chunk-LUPRGPKP.js.map +1 -0
- package/dist/chunk-M3VPGJMV.js +283 -0
- package/dist/chunk-M3VPGJMV.js.map +1 -0
- package/dist/{chunk-VKELAMAZ.js → chunk-N54FYWG6.js} +27 -11
- package/dist/chunk-N54FYWG6.js.map +1 -0
- package/dist/chunk-N5JDL4VE.js +3 -0
- package/dist/chunk-N5JDL4VE.js.map +1 -0
- package/dist/{chunk-2QKBTPUC.cjs → chunk-NAH65KPK.cjs} +8 -8
- package/dist/{chunk-2QKBTPUC.cjs.map → chunk-NAH65KPK.cjs.map} +1 -1
- package/dist/{chunk-PYJDVWXM.js → chunk-NUB5HRKS.js} +3 -3
- package/dist/{chunk-PYJDVWXM.js.map → chunk-NUB5HRKS.js.map} +1 -1
- package/dist/{chunk-WNZAYBVB.cjs → chunk-O6BJMVGT.cjs} +48 -48
- package/dist/{chunk-WNZAYBVB.cjs.map → chunk-O6BJMVGT.cjs.map} +1 -1
- package/dist/{chunk-SVSHA7XV.js → chunk-O6XDA3SI.js} +31 -33
- package/dist/chunk-O6XDA3SI.js.map +1 -0
- package/dist/chunk-OIF34LEN.cjs +425 -0
- package/dist/chunk-OIF34LEN.cjs.map +1 -0
- package/dist/chunk-OIMXMPH2.cjs +218 -0
- package/dist/chunk-OIMXMPH2.cjs.map +1 -0
- package/dist/{chunk-J5CSLNCN.cjs → chunk-OODVC2UD.cjs} +2 -2
- package/dist/{chunk-J5CSLNCN.cjs.map → chunk-OODVC2UD.cjs.map} +1 -1
- package/dist/{chunk-ACCAXVOG.js → chunk-OSTSZDQC.js} +134 -56
- package/dist/chunk-OSTSZDQC.js.map +1 -0
- package/dist/{chunk-LL6IWKI3.js → chunk-OW3SQJ7P.js} +3 -3
- package/dist/{chunk-LL6IWKI3.js.map → chunk-OW3SQJ7P.js.map} +1 -1
- package/dist/chunk-P22YCUVM.cjs +4 -0
- package/dist/chunk-P22YCUVM.cjs.map +1 -0
- package/dist/{chunk-CEQJGUAS.js → chunk-P4E3K3ND.js} +12 -5
- package/dist/chunk-P4E3K3ND.js.map +1 -0
- package/dist/{chunk-5GUOOLPR.cjs → chunk-P5CMZZRZ.cjs} +5 -5
- package/dist/{chunk-5GUOOLPR.cjs.map → chunk-P5CMZZRZ.cjs.map} +1 -1
- package/dist/{chunk-TMMVIUUN.js → chunk-P7D7BYFE.js} +4 -4
- package/dist/{chunk-TMMVIUUN.js.map → chunk-P7D7BYFE.js.map} +1 -1
- package/dist/{chunk-3T7QGLNB.js → chunk-PJEL5ZZV.js} +4 -2
- package/dist/chunk-PJEL5ZZV.js.map +1 -0
- package/dist/chunk-PYI2IWNX.cjs +281 -0
- package/dist/chunk-PYI2IWNX.cjs.map +1 -0
- package/dist/chunk-Q3YVLO52.cjs +174 -0
- package/dist/chunk-Q3YVLO52.cjs.map +1 -0
- package/dist/{chunk-WNM7IZJ7.js → chunk-QJ2L5RU6.js} +7 -7
- package/dist/{chunk-WNM7IZJ7.js.map → chunk-QJ2L5RU6.js.map} +1 -1
- package/dist/{chunk-X4LBUPJO.cjs → chunk-QX6AAVDE.cjs} +31 -33
- package/dist/chunk-QX6AAVDE.cjs.map +1 -0
- package/dist/{chunk-UV2FVNWT.cjs → chunk-RIUQP2QS.cjs} +5 -5
- package/dist/{chunk-UV2FVNWT.cjs.map → chunk-RIUQP2QS.cjs.map} +1 -1
- package/dist/chunk-RLVYWUXG.js +115 -0
- package/dist/chunk-RLVYWUXG.js.map +1 -0
- package/dist/{chunk-22CYDCXA.js → chunk-RM2HPQIC.js} +105 -14
- package/dist/chunk-RM2HPQIC.js.map +1 -0
- package/dist/{chunk-DEDN5HAG.js → chunk-RSJGTWLM.js} +3 -3
- package/dist/{chunk-DEDN5HAG.js.map → chunk-RSJGTWLM.js.map} +1 -1
- package/dist/{chunk-6EN3IQQI.cjs → chunk-RV45J2ZT.cjs} +8 -8
- package/dist/{chunk-6EN3IQQI.cjs.map → chunk-RV45J2ZT.cjs.map} +1 -1
- package/dist/chunk-RZSSQ7AT.js +333 -0
- package/dist/chunk-RZSSQ7AT.js.map +1 -0
- package/dist/{chunk-ENKFJJZX.js → chunk-S2JZL4JC.js} +6 -6
- package/dist/{chunk-ENKFJJZX.js.map → chunk-S2JZL4JC.js.map} +1 -1
- package/dist/{chunk-ELPW32ZI.cjs → chunk-S4XCPDEO.cjs} +60 -59
- package/dist/chunk-S4XCPDEO.cjs.map +1 -0
- package/dist/{chunk-OE5CKRUC.js → chunk-SACHTD7B.js} +34 -4
- package/dist/chunk-SACHTD7B.js.map +1 -0
- package/dist/{chunk-U42F3HLE.cjs → chunk-SAGJHL2Z.cjs} +275 -5
- package/dist/chunk-SAGJHL2Z.cjs.map +1 -0
- package/dist/{chunk-VROIMIHB.cjs → chunk-SHBCUXFS.cjs} +28 -6
- package/dist/chunk-SHBCUXFS.cjs.map +1 -0
- package/dist/{chunk-RJ6NTJHC.js → chunk-SRMTRD7F.js} +3 -3
- package/dist/{chunk-RJ6NTJHC.js.map → chunk-SRMTRD7F.js.map} +1 -1
- package/dist/{chunk-IX6KFB3K.cjs → chunk-SW2E7XKY.cjs} +9 -9
- package/dist/{chunk-IX6KFB3K.cjs.map → chunk-SW2E7XKY.cjs.map} +1 -1
- package/dist/chunk-SZSRGUVO.js +402 -0
- package/dist/chunk-SZSRGUVO.js.map +1 -0
- package/dist/{chunk-NJ6MY6V5.js → chunk-T5BBZQ66.js} +3 -3
- package/dist/{chunk-NJ6MY6V5.js.map → chunk-T5BBZQ66.js.map} +1 -1
- package/dist/{chunk-JI244Y7C.js → chunk-T5NOFXOL.js} +275 -5
- package/dist/chunk-T5NOFXOL.js.map +1 -0
- package/dist/{chunk-2IZLKPUW.js → chunk-THLIL6PY.js} +3 -3
- package/dist/{chunk-2IZLKPUW.js.map → chunk-THLIL6PY.js.map} +1 -1
- package/dist/{chunk-HZ4MBUC3.js → chunk-TI3TQQ7F.js} +4 -53
- package/dist/chunk-TI3TQQ7F.js.map +1 -0
- package/dist/chunk-TVU4KB27.cjs +353 -0
- package/dist/chunk-TVU4KB27.cjs.map +1 -0
- package/dist/{chunk-5JJ2DAE4.js → chunk-TWQSMUE6.js} +7 -3
- package/dist/chunk-TWQSMUE6.js.map +1 -0
- package/dist/{chunk-TAXD5ADA.cjs → chunk-UEDTZYGI.cjs} +3 -3
- package/dist/{chunk-TAXD5ADA.cjs.map → chunk-UEDTZYGI.cjs.map} +1 -1
- package/dist/{chunk-3QGS6CXD.js → chunk-UJDWFDKE.js} +3 -3
- package/dist/{chunk-3QGS6CXD.js.map → chunk-UJDWFDKE.js.map} +1 -1
- package/dist/chunk-UNFDIBKJ.js +258 -0
- package/dist/chunk-UNFDIBKJ.js.map +1 -0
- package/dist/{chunk-UQ3VVR6A.cjs → chunk-UPWIJC6I.cjs} +3 -3
- package/dist/{chunk-UQ3VVR6A.cjs.map → chunk-UPWIJC6I.cjs.map} +1 -1
- package/dist/chunk-UTIPENPW.cjs +286 -0
- package/dist/chunk-UTIPENPW.cjs.map +1 -0
- package/dist/{chunk-S7WCHDBO.js → chunk-VCI2Y7ST.js} +3 -3
- package/dist/{chunk-S7WCHDBO.js.map → chunk-VCI2Y7ST.js.map} +1 -1
- package/dist/chunk-VEE46VTX.js +166 -0
- package/dist/chunk-VEE46VTX.js.map +1 -0
- package/dist/chunk-VFFV7EMT.cjs +188 -0
- package/dist/chunk-VFFV7EMT.cjs.map +1 -0
- package/dist/chunk-VINZZQBD.cjs +323 -0
- package/dist/chunk-VINZZQBD.cjs.map +1 -0
- package/dist/chunk-VPTASZ2O.cjs +171 -0
- package/dist/chunk-VPTASZ2O.cjs.map +1 -0
- package/dist/{chunk-P2CA3XGI.js → chunk-VSRO4PAI.js} +23 -5
- package/dist/chunk-VSRO4PAI.js.map +1 -0
- package/dist/{chunk-L6MDULYB.js → chunk-VU3ZMJBN.js} +2 -2
- package/dist/{chunk-L6MDULYB.js.map → chunk-VU3ZMJBN.js.map} +1 -1
- package/dist/{chunk-XI34EGK5.cjs → chunk-VV2U36T6.cjs} +9 -9
- package/dist/{chunk-XI34EGK5.cjs.map → chunk-VV2U36T6.cjs.map} +1 -1
- package/dist/{chunk-VPWJCJCX.cjs → chunk-VXW7D5LR.cjs} +26 -8
- package/dist/chunk-VXW7D5LR.cjs.map +1 -0
- package/dist/chunk-W3HXHIDO.cjs +2573 -0
- package/dist/chunk-W3HXHIDO.cjs.map +1 -0
- package/dist/{chunk-GOALNQZ2.js → chunk-WFBUBT54.js} +4 -83
- package/dist/chunk-WFBUBT54.js.map +1 -0
- package/dist/chunk-WFL4N5PC.js +283 -0
- package/dist/chunk-WFL4N5PC.js.map +1 -0
- package/dist/chunk-WQHBMZSC.js +295 -0
- package/dist/chunk-WQHBMZSC.js.map +1 -0
- package/dist/chunk-X3RSNAMX.js +195 -0
- package/dist/chunk-X3RSNAMX.js.map +1 -0
- package/dist/chunk-X5JOEZVR.js +525 -0
- package/dist/chunk-X5JOEZVR.js.map +1 -0
- package/dist/chunk-XBAAHOCP.js +3 -0
- package/dist/chunk-XBAAHOCP.js.map +1 -0
- package/dist/chunk-XDIMTPZU.cjs +202 -0
- package/dist/chunk-XDIMTPZU.cjs.map +1 -0
- package/dist/chunk-XDU65GLW.js +21 -0
- package/dist/chunk-XDU65GLW.js.map +1 -0
- package/dist/chunk-XI74P5F2.cjs +424 -0
- package/dist/chunk-XI74P5F2.cjs.map +1 -0
- package/dist/chunk-XNPDZANN.cjs +238 -0
- package/dist/chunk-XNPDZANN.cjs.map +1 -0
- package/dist/{chunk-WIAQQNFU.cjs → chunk-XRVMYT5G.cjs} +106 -13
- package/dist/chunk-XRVMYT5G.cjs.map +1 -0
- package/dist/chunk-XVW5DPPP.js +429 -0
- package/dist/chunk-XVW5DPPP.js.map +1 -0
- package/dist/chunk-XXA4NZUC.js +3 -0
- package/dist/chunk-XXA4NZUC.js.map +1 -0
- package/dist/chunk-Y424YL55.js +59 -0
- package/dist/chunk-Y424YL55.js.map +1 -0
- package/dist/chunk-Y4QNLW7W.js +300 -0
- package/dist/chunk-Y4QNLW7W.js.map +1 -0
- package/dist/chunk-Y7ZJZLJY.js +2657 -0
- package/dist/chunk-Y7ZJZLJY.js.map +1 -0
- package/dist/chunk-YGS2TRMP.js +38 -0
- package/dist/chunk-YGS2TRMP.js.map +1 -0
- package/dist/chunk-YUMOM3KE.js +167 -0
- package/dist/chunk-YUMOM3KE.js.map +1 -0
- package/dist/chunk-YW2AKBLS.cjs +23 -0
- package/dist/chunk-YW2AKBLS.cjs.map +1 -0
- package/dist/chunk-ZNUMOJOI.cjs +4 -0
- package/dist/chunk-ZNUMOJOI.cjs.map +1 -0
- package/dist/chunk-ZSNFL736.cjs +306 -0
- package/dist/chunk-ZSNFL736.cjs.map +1 -0
- package/dist/components/Accordion/index.cjs +2 -2
- package/dist/components/Accordion/index.d.cts +6 -0
- package/dist/components/Accordion/index.d.ts +6 -0
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/ActionPlan/index.cjs +34 -0
- package/dist/components/ActionPlan/index.cjs.map +1 -0
- package/dist/components/ActionPlan/index.d.cts +65 -0
- package/dist/components/ActionPlan/index.d.ts +65 -0
- package/dist/components/ActionPlan/index.js +21 -0
- package/dist/components/ActionPlan/index.js.map +1 -0
- package/dist/components/ActivityFeed/index.cjs +31 -0
- package/dist/components/ActivityFeed/index.cjs.map +1 -0
- package/dist/components/ActivityFeed/index.d.cts +99 -0
- package/dist/components/ActivityFeed/index.d.ts +99 -0
- package/dist/components/ActivityFeed/index.js +18 -0
- package/dist/components/ActivityFeed/index.js.map +1 -0
- package/dist/components/Alert/index.d.cts +1 -1
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/AlertDialog/index.cjs +19 -5
- package/dist/components/AlertDialog/index.d.cts +94 -16
- package/dist/components/AlertDialog/index.d.ts +94 -16
- package/dist/components/AlertDialog/index.js +6 -4
- package/dist/components/AssociationList/index.cjs +29 -0
- package/dist/components/AssociationList/index.cjs.map +1 -0
- package/dist/components/AssociationList/index.d.cts +50 -0
- package/dist/components/AssociationList/index.d.ts +50 -0
- package/dist/components/AssociationList/index.js +16 -0
- package/dist/components/AssociationList/index.js.map +1 -0
- package/dist/components/AudioRecorder/index.d.cts +2 -2
- package/dist/components/AudioRecorder/index.d.ts +2 -2
- package/dist/components/Autocomplete/index.d.cts +8 -2
- package/dist/components/Autocomplete/index.d.ts +8 -2
- package/dist/components/Avatar/index.cjs +9 -7
- package/dist/components/Avatar/index.d.cts +46 -15
- package/dist/components/Avatar/index.d.ts +46 -15
- package/dist/components/Avatar/index.js +3 -1
- package/dist/components/AvatarGroup/index.cjs +20 -0
- package/dist/components/AvatarGroup/index.cjs.map +1 -0
- package/dist/components/AvatarGroup/index.d.cts +57 -0
- package/dist/components/AvatarGroup/index.d.ts +57 -0
- package/dist/components/AvatarGroup/index.js +7 -0
- package/dist/components/AvatarGroup/index.js.map +1 -0
- package/dist/components/Badge/index.cjs +3 -3
- package/dist/components/Badge/index.d.cts +16 -2
- package/dist/components/Badge/index.d.ts +16 -2
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/BoardView/index.cjs +24 -0
- package/dist/components/BoardView/index.cjs.map +1 -0
- package/dist/components/BoardView/index.d.cts +41 -0
- package/dist/components/BoardView/index.d.ts +41 -0
- package/dist/components/BoardView/index.js +7 -0
- package/dist/components/BoardView/index.js.map +1 -0
- package/dist/components/Button/index.cjs +5 -3
- package/dist/components/Button/index.d.cts +2 -1
- package/dist/components/Button/index.d.ts +2 -1
- package/dist/components/Button/index.js +3 -1
- package/dist/components/CalendarHeatmap/index.cjs +18 -0
- package/dist/components/CalendarHeatmap/index.cjs.map +1 -0
- package/dist/components/CalendarHeatmap/index.d.cts +47 -0
- package/dist/components/CalendarHeatmap/index.d.ts +47 -0
- package/dist/components/CalendarHeatmap/index.js +5 -0
- package/dist/components/CalendarHeatmap/index.js.map +1 -0
- package/dist/components/CalendarView/index.cjs +24 -0
- package/dist/components/CalendarView/index.cjs.map +1 -0
- package/dist/components/CalendarView/index.d.cts +39 -0
- package/dist/components/CalendarView/index.d.ts +39 -0
- package/dist/components/CalendarView/index.js +11 -0
- package/dist/components/CalendarView/index.js.map +1 -0
- package/dist/components/Card/index.d.cts +3 -3
- package/dist/components/Card/index.d.ts +3 -3
- package/dist/components/ClampedText/index.cjs +3 -2
- package/dist/components/ClampedText/index.js +2 -1
- package/dist/components/CollabStatus/index.cjs +6 -4
- package/dist/components/CollabStatus/index.d.cts +11 -0
- package/dist/components/CollabStatus/index.d.ts +11 -0
- package/dist/components/CollabStatus/index.js +3 -1
- package/dist/components/Collapsible/index.cjs +6 -6
- package/dist/components/Collapsible/index.d.cts +6 -0
- package/dist/components/Collapsible/index.d.ts +6 -0
- package/dist/components/Collapsible/index.js +3 -3
- package/dist/components/CompletenessMeter/index.cjs +23 -0
- package/dist/components/CompletenessMeter/index.cjs.map +1 -0
- package/dist/components/CompletenessMeter/index.d.cts +52 -0
- package/dist/components/CompletenessMeter/index.d.ts +52 -0
- package/dist/components/CompletenessMeter/index.js +6 -0
- package/dist/components/CompletenessMeter/index.js.map +1 -0
- package/dist/components/CountryCodeDropdown/index.cjs +5 -5
- package/dist/components/CountryCodeDropdown/index.js +2 -2
- package/dist/components/CustomizableDashboard/index.cjs +12 -10
- package/dist/components/CustomizableDashboard/index.js +5 -3
- package/dist/components/DateInput/index.d.cts +36 -4
- package/dist/components/DateInput/index.d.ts +36 -4
- package/dist/components/Dropdown/index.cjs +11 -10
- package/dist/components/Dropdown/index.d.cts +2 -1
- package/dist/components/Dropdown/index.d.ts +2 -1
- package/dist/components/Dropdown/index.js +4 -3
- package/dist/components/EmailEditor/index.cjs +67 -0
- package/dist/components/EmailEditor/index.cjs.map +1 -0
- package/dist/components/EmailEditor/index.d.cts +347 -0
- package/dist/components/EmailEditor/index.d.ts +347 -0
- package/dist/components/EmailEditor/index.js +26 -0
- package/dist/components/EmailEditor/index.js.map +1 -0
- package/dist/components/FieldHistory/index.cjs +34 -0
- package/dist/components/FieldHistory/index.cjs.map +1 -0
- package/dist/components/FieldHistory/index.d.cts +66 -0
- package/dist/components/FieldHistory/index.d.ts +66 -0
- package/dist/components/FieldHistory/index.js +21 -0
- package/dist/components/FieldHistory/index.js.map +1 -0
- package/dist/components/FloatingWindow/index.cjs +6 -4
- package/dist/components/FloatingWindow/index.js +4 -2
- package/dist/components/GanttView/index.cjs +20 -0
- package/dist/components/GanttView/index.cjs.map +1 -0
- package/dist/components/GanttView/index.d.cts +36 -0
- package/dist/components/GanttView/index.d.ts +36 -0
- package/dist/components/GanttView/index.js +7 -0
- package/dist/components/GanttView/index.js.map +1 -0
- package/dist/components/GlossaryTooltip/index.cjs +3 -3
- package/dist/components/GlossaryTooltip/index.js +2 -2
- package/dist/components/InlineEdit/index.cjs +20 -0
- package/dist/components/InlineEdit/index.cjs.map +1 -0
- package/dist/components/InlineEdit/index.d.cts +56 -0
- package/dist/components/InlineEdit/index.d.ts +56 -0
- package/dist/components/InlineEdit/index.js +7 -0
- package/dist/components/InlineEdit/index.js.map +1 -0
- package/dist/components/KeyboardShortcutsOverlay/index.cjs +5 -5
- package/dist/components/KeyboardShortcutsOverlay/index.js +3 -3
- package/dist/components/ListView/index.cjs +24 -0
- package/dist/components/ListView/index.cjs.map +1 -0
- package/dist/components/ListView/index.d.cts +124 -0
- package/dist/components/ListView/index.d.ts +124 -0
- package/dist/components/ListView/index.js +11 -0
- package/dist/components/ListView/index.js.map +1 -0
- package/dist/components/LogoUploader/index.cjs +18 -0
- package/dist/components/LogoUploader/index.cjs.map +1 -0
- package/dist/components/LogoUploader/index.d.cts +49 -0
- package/dist/components/LogoUploader/index.d.ts +49 -0
- package/dist/components/LogoUploader/index.js +5 -0
- package/dist/components/LogoUploader/index.js.map +1 -0
- package/dist/components/Markdown/index.cjs +21 -19
- package/dist/components/Markdown/index.js +9 -7
- package/dist/components/MediaEditor/index.cjs +16 -14
- package/dist/components/MediaEditor/index.d.cts +91 -2
- package/dist/components/MediaEditor/index.d.ts +91 -2
- package/dist/components/MediaEditor/index.js +11 -9
- package/dist/components/MediaFeed/index.cjs +29 -0
- package/dist/components/MediaFeed/index.cjs.map +1 -0
- package/dist/components/MediaFeed/index.d.cts +104 -0
- package/dist/components/MediaFeed/index.d.ts +104 -0
- package/dist/components/MediaFeed/index.js +20 -0
- package/dist/components/MediaFeed/index.js.map +1 -0
- package/dist/components/MediaPlayer/index.cjs +8 -6
- package/dist/components/MediaPlayer/index.d.cts +19 -1
- package/dist/components/MediaPlayer/index.d.ts +19 -1
- package/dist/components/MediaPlayer/index.js +5 -3
- package/dist/components/MegaMenu/index.cjs +7 -5
- package/dist/components/MegaMenu/index.js +4 -2
- package/dist/components/Modal/index.cjs +10 -10
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/Pagination/index.d.cts +1 -1
- package/dist/components/Pagination/index.d.ts +1 -1
- package/dist/components/PhiMask/index.cjs +18 -0
- package/dist/components/PhiMask/index.cjs.map +1 -0
- package/dist/components/PhiMask/index.d.cts +45 -0
- package/dist/components/PhiMask/index.d.ts +45 -0
- package/dist/components/PhiMask/index.js +5 -0
- package/dist/components/PhiMask/index.js.map +1 -0
- package/dist/components/Progress/index.cjs +6 -6
- package/dist/components/Progress/index.d.cts +8 -2
- package/dist/components/Progress/index.d.ts +8 -2
- package/dist/components/Progress/index.js +1 -1
- package/dist/components/PropertyList/index.cjs +25 -0
- package/dist/components/PropertyList/index.cjs.map +1 -0
- package/dist/components/PropertyList/index.d.cts +87 -0
- package/dist/components/PropertyList/index.d.ts +87 -0
- package/dist/components/PropertyList/index.js +12 -0
- package/dist/components/PropertyList/index.js.map +1 -0
- package/dist/components/Q/index.d.cts +2 -2
- package/dist/components/Q/index.d.ts +2 -2
- package/dist/components/QuickAction/index.d.cts +1 -1
- package/dist/components/QuickAction/index.d.ts +1 -1
- package/dist/components/RadialExplorer/index.cjs +7 -5
- package/dist/components/RadialExplorer/index.js +6 -4
- package/dist/components/Rating/index.cjs +28 -0
- package/dist/components/Rating/index.cjs.map +1 -0
- package/dist/components/Rating/index.d.cts +85 -0
- package/dist/components/Rating/index.d.ts +85 -0
- package/dist/components/Rating/index.js +7 -0
- package/dist/components/Rating/index.js.map +1 -0
- package/dist/components/RecordButton/index.d.cts +1 -1
- package/dist/components/RecordButton/index.d.ts +1 -1
- package/dist/components/RecordHeader/index.cjs +29 -0
- package/dist/components/RecordHeader/index.cjs.map +1 -0
- package/dist/components/RecordHeader/index.d.cts +96 -0
- package/dist/components/RecordHeader/index.d.ts +96 -0
- package/dist/components/RecordHeader/index.js +16 -0
- package/dist/components/RecordHeader/index.js.map +1 -0
- package/dist/components/RecordLayout/index.cjs +21 -0
- package/dist/components/RecordLayout/index.cjs.map +1 -0
- package/dist/components/RecordLayout/index.d.cts +40 -0
- package/dist/components/RecordLayout/index.d.ts +40 -0
- package/dist/components/RecordLayout/index.js +8 -0
- package/dist/components/RecordLayout/index.js.map +1 -0
- package/dist/components/RichTextEditor/index.cjs +11 -8
- package/dist/components/RichTextEditor/index.d.cts +12 -2
- package/dist/components/RichTextEditor/index.d.ts +12 -2
- package/dist/components/RichTextEditor/index.js +8 -5
- package/dist/components/ScrollArea/index.d.cts +1 -1
- package/dist/components/ScrollArea/index.d.ts +1 -1
- package/dist/components/SectionSpyNav/index.cjs +5 -3
- package/dist/components/SectionSpyNav/index.js +4 -2
- package/dist/components/Select/index.cjs +4 -4
- package/dist/components/Select/index.d.cts +2 -2
- package/dist/components/Select/index.d.ts +2 -2
- package/dist/components/Select/index.js +2 -2
- package/dist/components/Skeleton/index.d.cts +1 -1
- package/dist/components/Skeleton/index.d.ts +1 -1
- package/dist/components/Slider/index.d.cts +2 -2
- package/dist/components/Slider/index.d.ts +2 -2
- package/dist/components/SliderCalculator/index.cjs +4 -4
- package/dist/components/SliderCalculator/index.js +2 -2
- package/dist/components/SourceTip/index.cjs +3 -3
- package/dist/components/SourceTip/index.js +2 -2
- package/dist/components/Spinner/index.d.cts +2 -2
- package/dist/components/Spinner/index.d.ts +2 -2
- package/dist/components/SuperChat/index.cjs +1300 -713
- package/dist/components/SuperChat/index.cjs.map +1 -1
- package/dist/components/SuperChat/index.d.cts +126 -8
- package/dist/components/SuperChat/index.d.ts +126 -8
- package/dist/components/SuperChat/index.js +1404 -817
- package/dist/components/SuperChat/index.js.map +1 -1
- package/dist/components/SuperChat/plugins/index.cjs +7 -6
- package/dist/components/SuperChat/plugins/index.cjs.map +1 -1
- package/dist/components/SuperChat/plugins/index.d.cts +2 -3
- package/dist/components/SuperChat/plugins/index.d.ts +2 -3
- package/dist/components/SuperChat/plugins/index.js +6 -5
- package/dist/components/SuperChat/plugins/index.js.map +1 -1
- package/dist/components/Tabs/index.cjs +9 -7
- package/dist/components/Tabs/index.d.cts +12 -1
- package/dist/components/Tabs/index.d.ts +12 -1
- package/dist/components/Tabs/index.js +3 -1
- package/dist/components/TagEditor/index.cjs +22 -0
- package/dist/components/TagEditor/index.cjs.map +1 -0
- package/dist/components/TagEditor/index.d.cts +46 -0
- package/dist/components/TagEditor/index.d.ts +46 -0
- package/dist/components/TagEditor/index.js +9 -0
- package/dist/components/TagEditor/index.js.map +1 -0
- package/dist/components/Text/index.d.cts +3 -3
- package/dist/components/Text/index.d.ts +3 -3
- package/dist/components/Textarea/index.d.cts +2 -2
- package/dist/components/Textarea/index.d.ts +2 -2
- package/dist/components/ThemeProvider/index.cjs +9 -9
- package/dist/components/ThemeProvider/index.d.cts +3 -1
- package/dist/components/ThemeProvider/index.d.ts +3 -1
- package/dist/components/ThemeProvider/index.js +3 -3
- package/dist/components/Tooltip/index.cjs +3 -3
- package/dist/components/Tooltip/index.js +2 -2
- package/dist/components/TranscriptView/index.d.cts +85 -4
- package/dist/components/TranscriptView/index.d.ts +85 -4
- package/dist/components/UserPicker/index.cjs +24 -0
- package/dist/components/UserPicker/index.cjs.map +1 -0
- package/dist/components/UserPicker/index.d.cts +60 -0
- package/dist/components/UserPicker/index.d.ts +60 -0
- package/dist/components/UserPicker/index.js +11 -0
- package/dist/components/UserPicker/index.js.map +1 -0
- package/dist/components/VideoCard/index.cjs +4 -4
- package/dist/components/VideoCard/index.js +2 -2
- package/dist/components/ViewSet/index.cjs +25 -0
- package/dist/components/ViewSet/index.cjs.map +1 -0
- package/dist/components/ViewSet/index.d.cts +201 -0
- package/dist/components/ViewSet/index.d.ts +201 -0
- package/dist/components/ViewSet/index.js +16 -0
- package/dist/components/ViewSet/index.js.map +1 -0
- package/dist/components/ViewSwitcher/index.cjs +20 -0
- package/dist/components/ViewSwitcher/index.cjs.map +1 -0
- package/dist/components/ViewSwitcher/index.d.cts +39 -0
- package/dist/components/ViewSwitcher/index.d.ts +39 -0
- package/dist/components/ViewSwitcher/index.js +7 -0
- package/dist/components/ViewSwitcher/index.js.map +1 -0
- package/dist/datavis.cjs +6 -4
- package/dist/datavis.cjs.map +1 -1
- package/dist/datavis.d.cts +167 -13
- package/dist/datavis.d.ts +167 -13
- package/dist/datavis.js +4 -2
- package/dist/datavis.js.map +1 -1
- package/dist/deck.cjs +3360 -0
- package/dist/deck.cjs.map +1 -0
- package/dist/deck.d.cts +712 -0
- package/dist/deck.d.ts +712 -0
- package/dist/deck.js +3316 -0
- package/dist/deck.js.map +1 -0
- package/dist/esheet.cjs +19 -16
- package/dist/esheet.cjs.map +1 -1
- package/dist/esheet.d.cts +183 -1
- package/dist/esheet.d.ts +183 -1
- package/dist/esheet.js +16 -13
- package/dist/esheet.js.map +1 -1
- package/dist/globe.cjs +2 -2
- package/dist/globe.js +1 -1
- package/dist/hooks/index.cjs +94 -35
- package/dist/hooks/index.d.cts +680 -36
- package/dist/hooks/index.d.ts +680 -36
- package/dist/hooks/index.js +10 -7
- package/dist/icons-wBacj6BW.d.cts +142 -0
- package/dist/icons-wBacj6BW.d.ts +142 -0
- package/dist/index.cjs +2215 -1321
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10386 -628
- package/dist/index.d.ts +10386 -628
- package/dist/index.js +805 -360
- package/dist/index.js.map +1 -1
- package/dist/kerebron.cjs +58 -19
- package/dist/kerebron.cjs.map +1 -1
- package/dist/kerebron.css +115 -0
- package/dist/kerebron.d.cts +37 -0
- package/dist/kerebron.d.ts +37 -0
- package/dist/kerebron.js +58 -19
- package/dist/kerebron.js.map +1 -1
- package/dist/maps.cjs +160 -0
- package/dist/maps.cjs.map +1 -0
- package/dist/maps.d.cts +42 -0
- package/dist/maps.d.ts +42 -0
- package/dist/maps.js +138 -0
- package/dist/maps.js.map +1 -0
- package/dist/motion.cjs +7 -7
- package/dist/motion.d.cts +186 -2
- package/dist/motion.d.ts +186 -2
- package/dist/motion.js +2 -2
- package/dist/org-chart.cjs +1302 -0
- package/dist/org-chart.cjs.map +1 -0
- package/dist/org-chart.d.cts +164 -0
- package/dist/org-chart.d.ts +164 -0
- package/dist/org-chart.js +1277 -0
- package/dist/org-chart.js.map +1 -0
- package/dist/q.d.cts +25 -3
- package/dist/q.d.ts +25 -3
- package/dist/styles/effects.css +133 -0
- package/dist/styles/init.css +22 -3
- package/dist/styles.css +1 -1
- package/dist/tailwind-preset.cjs +4 -4
- package/dist/tailwind-preset.js +1 -1
- package/dist/templates.cjs +156 -0
- package/dist/templates.cjs.map +1 -0
- package/dist/templates.d.cts +734 -0
- package/dist/templates.d.ts +734 -0
- package/dist/templates.js +11 -0
- package/dist/templates.js.map +1 -0
- package/dist/types-CDeBNZiE.d.cts +92 -0
- package/dist/types-CDeBNZiE.d.ts +92 -0
- package/dist/types-Cx1FHLq2.d.cts +548 -0
- package/dist/types-Cx1FHLq2.d.ts +548 -0
- package/dist/types-DsdZvEI1.d.cts +92 -0
- package/dist/types-DsdZvEI1.d.ts +92 -0
- package/dist/utils/index.cjs +9 -9
- package/dist/utils/index.d.cts +13 -2
- package/dist/utils/index.d.ts +13 -2
- package/dist/utils/index.js +1 -1
- package/package.json +82 -13
- package/dist/Animated-XmH6k8pZ.d.cts +0 -188
- package/dist/Animated-XmH6k8pZ.d.ts +0 -188
- package/dist/CsvBlock-ROJCKJDP.cjs +0 -16
- package/dist/CsvBlock-UWPMTLE2.js +0 -7
- package/dist/HtmlPreviewBlock-DWFN6EUB.cjs +0 -16
- package/dist/HtmlPreviewBlock-ME5U3XNS.js +0 -7
- package/dist/MedicationEditor-Bp4NLy7y.d.cts +0 -352
- package/dist/MedicationEditor-Bp4NLy7y.d.ts +0 -352
- package/dist/MermaidBlock-2B6CPD6Y.js +0 -7
- package/dist/MermaidBlock-D2UC5M55.cjs +0 -16
- package/dist/SurveyBlock-4CD4AYMJ.cjs +0 -16
- package/dist/SurveyBlock-4DO62RBT.js +0 -7
- package/dist/chunk-22CYDCXA.js.map +0 -1
- package/dist/chunk-2YCERQWC.js.map +0 -1
- package/dist/chunk-3T7QGLNB.js.map +0 -1
- package/dist/chunk-5JJ2DAE4.js.map +0 -1
- package/dist/chunk-6HFFWEM3.cjs +0 -22
- package/dist/chunk-6HFFWEM3.cjs.map +0 -1
- package/dist/chunk-7ZDPD5ZX.cjs.map +0 -1
- package/dist/chunk-7ZVTLTJF.js +0 -109
- package/dist/chunk-7ZVTLTJF.js.map +0 -1
- package/dist/chunk-ACCAXVOG.js.map +0 -1
- package/dist/chunk-BMSG4NBH.js +0 -56
- package/dist/chunk-BMSG4NBH.js.map +0 -1
- package/dist/chunk-CEQJGUAS.js.map +0 -1
- package/dist/chunk-DVOQ3JNO.js.map +0 -1
- package/dist/chunk-E4IBHYJ7.cjs +0 -80
- package/dist/chunk-E4IBHYJ7.cjs.map +0 -1
- package/dist/chunk-ELPW32ZI.cjs.map +0 -1
- package/dist/chunk-GD7EBGC4.cjs.map +0 -1
- package/dist/chunk-GOALNQZ2.js.map +0 -1
- package/dist/chunk-HB7C7NB5.js +0 -20
- package/dist/chunk-HB7C7NB5.js.map +0 -1
- package/dist/chunk-HZ4MBUC3.js.map +0 -1
- package/dist/chunk-JEIW7BSV.cjs.map +0 -1
- package/dist/chunk-JHULS3EC.js +0 -130
- package/dist/chunk-JHULS3EC.js.map +0 -1
- package/dist/chunk-JI244Y7C.js.map +0 -1
- package/dist/chunk-JYZW2PZS.cjs.map +0 -1
- package/dist/chunk-KRU6IGV7.js.map +0 -1
- package/dist/chunk-NV2CWBI2.cjs.map +0 -1
- package/dist/chunk-OE5CKRUC.js.map +0 -1
- package/dist/chunk-P2CA3XGI.js.map +0 -1
- package/dist/chunk-P7UMS4E6.cjs.map +0 -1
- package/dist/chunk-SQHMGT4W.js.map +0 -1
- package/dist/chunk-SVSHA7XV.js.map +0 -1
- package/dist/chunk-U42F3HLE.cjs.map +0 -1
- package/dist/chunk-VKELAMAZ.js.map +0 -1
- package/dist/chunk-VNYW4C4J.cjs.map +0 -1
- package/dist/chunk-VOKVG3ER.js +0 -78
- package/dist/chunk-VOKVG3ER.js.map +0 -1
- package/dist/chunk-VPIYTQCV.cjs.map +0 -1
- package/dist/chunk-VPWJCJCX.cjs.map +0 -1
- package/dist/chunk-VROIMIHB.cjs.map +0 -1
- package/dist/chunk-WIAQQNFU.cjs.map +0 -1
- package/dist/chunk-WNAA6CLE.cjs +0 -143
- package/dist/chunk-WNAA6CLE.cjs.map +0 -1
- package/dist/chunk-WNJRS7Y7.cjs.map +0 -1
- package/dist/chunk-X4LBUPJO.cjs.map +0 -1
- package/dist/chunk-X4XPNTCZ.cjs.map +0 -1
- package/dist/chunk-XCP454Q6.js.map +0 -1
- package/dist/chunk-XEAT7XJG.cjs.map +0 -1
- package/dist/chunk-YVL3XATO.cjs +0 -79
- package/dist/chunk-YVL3XATO.cjs.map +0 -1
- package/dist/chunk-YVPC65ZJ.cjs.map +0 -1
- package/dist/html-MdxqSzjD.d.cts +0 -13
- package/dist/html-MdxqSzjD.d.ts +0 -13
- package/dist/orderRows-BUJYgSc7.d.cts +0 -221
- package/dist/orderRows-BUJYgSc7.d.ts +0 -221
- package/dist/transcript-Cg7uSW-C.d.cts +0 -84
- package/dist/transcript-Cg7uSW-C.d.ts +0 -84
- package/dist/types-B97JNRNQ.d.cts +0 -251
- package/dist/types-CnPEwzlp.d.cts +0 -254
- package/dist/types-CnPEwzlp.d.ts +0 -254
- package/dist/types-gZXrfLj6.d.ts +0 -251
- package/dist/useAnchoredPosition-CKwLSQW8.d.cts +0 -76
- package/dist/useAnchoredPosition-CKwLSQW8.d.ts +0 -76
- package/dist/useTheme-B9SWu6ui.d.cts +0 -24
- package/dist/useTheme-B9SWu6ui.d.ts +0 -24
- package/dist/useTranscriptEdits-CGzlemHT.d.cts +0 -182
- package/dist/useTranscriptEdits-D32bLs0l.d.ts +0 -182
|
@@ -0,0 +1,1277 @@
|
|
|
1
|
+
import './chunk-H2Y7HZV5.js';
|
|
2
|
+
import './chunk-DVDT7TX7.js';
|
|
3
|
+
import { Avatar } from './chunk-TI3TQQ7F.js';
|
|
4
|
+
import { accentClasses } from './chunk-3YBS4WUQ.js';
|
|
5
|
+
import { Spinner } from './chunk-UA7E7PDS.js';
|
|
6
|
+
import './chunk-N5JDL4VE.js';
|
|
7
|
+
import { Button } from './chunk-WFBUBT54.js';
|
|
8
|
+
import './chunk-GVM6DTR5.js';
|
|
9
|
+
import { cn } from './chunk-TQONQSJO.js';
|
|
10
|
+
import './chunk-PX6F3LHL.js';
|
|
11
|
+
import * as React3 from 'react';
|
|
12
|
+
import { Search, Network, List, X, ExternalLink, ChevronDown, ChevronRight, UnfoldVertical, FoldVertical, Scan, Map as Map$1, Minimize, Maximize, Building2 } from 'lucide-react';
|
|
13
|
+
import { ReactFlowProvider, useReactFlow, ReactFlow, Background, BackgroundVariant, Panel, MiniMap, Position, Handle } from '@xyflow/react';
|
|
14
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
15
|
+
|
|
16
|
+
// src/components/OrgChart/layout.ts
|
|
17
|
+
var ORG_CHART_LAYOUT_OPTIONS = {
|
|
18
|
+
"elk.algorithm": "layered",
|
|
19
|
+
"elk.layered.considerModelOrder.strategy": "NODES_AND_EDGES",
|
|
20
|
+
"elk.layered.nodePlacement.strategy": "BRANDES_KOEPF",
|
|
21
|
+
"elk.layered.spacing.nodeNodeBetweenLayers": "64",
|
|
22
|
+
"elk.spacing.nodeNode": "28",
|
|
23
|
+
"elk.spacing.componentComponent": "64",
|
|
24
|
+
"elk.edgeRouting": "ORTHOGONAL"
|
|
25
|
+
};
|
|
26
|
+
var elkPromise = null;
|
|
27
|
+
function getElk() {
|
|
28
|
+
elkPromise ??= import('elkjs/lib/elk.bundled.js').then(
|
|
29
|
+
(m) => new m.default()
|
|
30
|
+
);
|
|
31
|
+
return elkPromise;
|
|
32
|
+
}
|
|
33
|
+
async function layoutOrgChart(req) {
|
|
34
|
+
const graph = {
|
|
35
|
+
id: "org-chart-root",
|
|
36
|
+
layoutOptions: {
|
|
37
|
+
...ORG_CHART_LAYOUT_OPTIONS,
|
|
38
|
+
"elk.direction": req.direction
|
|
39
|
+
},
|
|
40
|
+
children: req.ids.map((id) => ({
|
|
41
|
+
id,
|
|
42
|
+
width: req.width,
|
|
43
|
+
height: req.height
|
|
44
|
+
})),
|
|
45
|
+
edges: req.edges.map((e) => ({
|
|
46
|
+
id: JSON.stringify([e.source, e.target]),
|
|
47
|
+
sources: [e.source],
|
|
48
|
+
targets: [e.target]
|
|
49
|
+
}))
|
|
50
|
+
};
|
|
51
|
+
try {
|
|
52
|
+
const elk = await getElk();
|
|
53
|
+
const out = await elk.layout(graph);
|
|
54
|
+
return new Map(
|
|
55
|
+
(out.children ?? []).map((c) => [c.id, { x: c.x ?? 0, y: c.y ?? 0 }])
|
|
56
|
+
);
|
|
57
|
+
} catch {
|
|
58
|
+
return gridLayout(req);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function gridLayout(req) {
|
|
62
|
+
const parent = new Map(req.edges.map((e) => [e.target, e.source]));
|
|
63
|
+
const perDepth = /* @__PURE__ */ new Map();
|
|
64
|
+
const out = /* @__PURE__ */ new Map();
|
|
65
|
+
for (const id of req.ids) {
|
|
66
|
+
let depth = 0;
|
|
67
|
+
for (let p = parent.get(id); p != null; p = parent.get(p)) depth++;
|
|
68
|
+
const slot = perDepth.get(depth) ?? 0;
|
|
69
|
+
perDepth.set(depth, slot + 1);
|
|
70
|
+
const along = slot * (req.direction === "DOWN" ? req.width + 28 : req.height + 28);
|
|
71
|
+
const across = depth * (req.direction === "DOWN" ? req.height + 64 : req.width + 64);
|
|
72
|
+
out.set(
|
|
73
|
+
id,
|
|
74
|
+
req.direction === "DOWN" ? { x: along, y: across } : { x: across, y: along }
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
return out;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// src/components/OrgChart/shared.ts
|
|
81
|
+
var plural = (n, one, many) => `${n} ${n === 1 ? one : many}`;
|
|
82
|
+
var defaultOrgChartLabels = {
|
|
83
|
+
chart: "Organization chart",
|
|
84
|
+
tree: "Organization",
|
|
85
|
+
toolbar: "Organization chart tools",
|
|
86
|
+
search: "Search",
|
|
87
|
+
searchPlaceholder: "Search name, title or group",
|
|
88
|
+
results: (n) => n === 0 ? "No matches" : plural(n, "match", "matches"),
|
|
89
|
+
groupFilter: "Filter by group",
|
|
90
|
+
allGroups: "All groups",
|
|
91
|
+
expandAll: "Expand all",
|
|
92
|
+
collapseAll: "Collapse all",
|
|
93
|
+
fitView: "Fit to view",
|
|
94
|
+
minimap: "Minimap",
|
|
95
|
+
fullscreen: "Full screen",
|
|
96
|
+
viewToggle: "View",
|
|
97
|
+
chartView: "Chart",
|
|
98
|
+
listView: "List",
|
|
99
|
+
canvasHint: "Use the card buttons to show details or expand reports. Switch to the list view to browse with arrow keys.",
|
|
100
|
+
expand: (name, n) => `Expand ${name}, ${plural(n, "report", "reports")}`,
|
|
101
|
+
collapse: (name) => `Collapse ${name}`,
|
|
102
|
+
directReports: (n) => plural(n, "direct report", "direct reports"),
|
|
103
|
+
orgSize: (n) => `${n} in organization`,
|
|
104
|
+
reportsTo: (name) => `Reports to ${name}`,
|
|
105
|
+
highlighted: "Current",
|
|
106
|
+
open: "Open",
|
|
107
|
+
close: "Close details",
|
|
108
|
+
loading: "Loading organization",
|
|
109
|
+
empty: "No one to show",
|
|
110
|
+
error: "Could not load the organization",
|
|
111
|
+
retry: "Try again"
|
|
112
|
+
};
|
|
113
|
+
var ORG_CHART_GROUP_ACCENTS = [
|
|
114
|
+
"primary",
|
|
115
|
+
"info",
|
|
116
|
+
"success",
|
|
117
|
+
"warning",
|
|
118
|
+
"neutral"
|
|
119
|
+
];
|
|
120
|
+
var accentClassesFor = (accent) => accent ? accentClasses[accent] : void 0;
|
|
121
|
+
var ORG_CHART_NODE_SIZE = {
|
|
122
|
+
person: { width: 248, height: 92 },
|
|
123
|
+
location: { width: 248, height: 76 }
|
|
124
|
+
};
|
|
125
|
+
function prefersReducedMotion() {
|
|
126
|
+
return typeof window !== "undefined" && !!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
|
|
127
|
+
}
|
|
128
|
+
function GroupPill({
|
|
129
|
+
group,
|
|
130
|
+
accent
|
|
131
|
+
}) {
|
|
132
|
+
const a = accentClassesFor(accent);
|
|
133
|
+
return /* @__PURE__ */ jsxs(
|
|
134
|
+
"span",
|
|
135
|
+
{
|
|
136
|
+
className: cn(
|
|
137
|
+
"text-foreground inline-flex max-w-full items-center gap-1.5 rounded-full px-2 py-0.5 text-[11px] font-medium",
|
|
138
|
+
a?.tint ?? "bg-muted"
|
|
139
|
+
),
|
|
140
|
+
children: [
|
|
141
|
+
/* @__PURE__ */ jsx(
|
|
142
|
+
"span",
|
|
143
|
+
{
|
|
144
|
+
"aria-hidden": "true",
|
|
145
|
+
className: cn("size-1.5 shrink-0 rounded-full", a?.marker)
|
|
146
|
+
}
|
|
147
|
+
),
|
|
148
|
+
/* @__PURE__ */ jsx("span", { className: "truncate", children: group })
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
function NodeBody({
|
|
154
|
+
node,
|
|
155
|
+
variant,
|
|
156
|
+
accent
|
|
157
|
+
}) {
|
|
158
|
+
const secondary = variant === "person" ? node.title : node.subtitle;
|
|
159
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
160
|
+
variant === "person" ? /* @__PURE__ */ jsx(Avatar, { src: node.avatarUrl, name: node.name, alt: "", size: "md" }) : /* @__PURE__ */ jsx(
|
|
161
|
+
"span",
|
|
162
|
+
{
|
|
163
|
+
"aria-hidden": "true",
|
|
164
|
+
className: "bg-primary-500/10 text-primary-700 dark:text-primary-300 flex size-10 shrink-0 items-center justify-center rounded-md",
|
|
165
|
+
children: /* @__PURE__ */ jsx(Building2, { className: "size-5" })
|
|
166
|
+
}
|
|
167
|
+
),
|
|
168
|
+
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [
|
|
169
|
+
/* @__PURE__ */ jsx("span", { className: "text-foreground truncate text-sm font-semibold", children: node.name }),
|
|
170
|
+
secondary && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground truncate text-xs", children: secondary }),
|
|
171
|
+
node.group && /* @__PURE__ */ jsx("span", { className: "mt-0.5 flex", children: /* @__PURE__ */ jsx(GroupPill, { group: node.group, accent }) })
|
|
172
|
+
] })
|
|
173
|
+
] });
|
|
174
|
+
}
|
|
175
|
+
var CanvasContext = React3.createContext(null);
|
|
176
|
+
var hiddenHandle = { opacity: 0, pointerEvents: "none" };
|
|
177
|
+
function OrgFlowNodeView({ data }) {
|
|
178
|
+
const c = React3.useContext(CanvasContext);
|
|
179
|
+
const { node, ctx, focused } = data;
|
|
180
|
+
const accent = accentClassesFor(ctx.accent);
|
|
181
|
+
const start = c.horizontal ? c.rtl ? Position.Right : Position.Left : Position.Top;
|
|
182
|
+
const end = c.horizontal ? c.rtl ? Position.Left : Position.Right : Position.Bottom;
|
|
183
|
+
const Chevron = ctx.expanded ? ChevronDown : ChevronRight;
|
|
184
|
+
return /* @__PURE__ */ jsxs(
|
|
185
|
+
"div",
|
|
186
|
+
{
|
|
187
|
+
"data-slot": "org-chart-node",
|
|
188
|
+
"data-highlighted": ctx.highlighted || void 0,
|
|
189
|
+
"data-matched": ctx.matched || void 0,
|
|
190
|
+
style: { pointerEvents: "auto" },
|
|
191
|
+
className: cn(
|
|
192
|
+
"bg-card text-foreground relative h-full w-full rounded-lg border border-s-4 shadow-sm",
|
|
193
|
+
"motion-safe:transition-[opacity,box-shadow]",
|
|
194
|
+
accent?.border ?? "border-border",
|
|
195
|
+
(ctx.highlighted || focused) && "ring-primary-500 ring-offset-background ring-2 ring-offset-2",
|
|
196
|
+
ctx.matched && "ring-ring ring-2",
|
|
197
|
+
ctx.dimmed && "opacity-40",
|
|
198
|
+
c.classNames?.node
|
|
199
|
+
),
|
|
200
|
+
children: [
|
|
201
|
+
/* @__PURE__ */ jsx(
|
|
202
|
+
Handle,
|
|
203
|
+
{
|
|
204
|
+
type: "target",
|
|
205
|
+
position: start,
|
|
206
|
+
isConnectable: false,
|
|
207
|
+
style: hiddenHandle
|
|
208
|
+
}
|
|
209
|
+
),
|
|
210
|
+
/* @__PURE__ */ jsx(
|
|
211
|
+
"button",
|
|
212
|
+
{
|
|
213
|
+
type: "button",
|
|
214
|
+
"aria-haspopup": "dialog",
|
|
215
|
+
onClick: () => c.onSelect(node.id),
|
|
216
|
+
className: "nodrag nopan focus-visible:ring-ring flex h-full w-full items-center gap-3 rounded-md px-3 text-start focus-visible:ring-2 focus-visible:outline-none",
|
|
217
|
+
children: c.renderNode ? c.renderNode(node, ctx) : /* @__PURE__ */ jsx(NodeBody, { node, variant: ctx.variant, accent: ctx.accent })
|
|
218
|
+
}
|
|
219
|
+
),
|
|
220
|
+
(ctx.highlighted || c.renderBadges) && /* @__PURE__ */ jsxs("span", { className: "absolute end-2 -top-2.5 flex gap-1", children: [
|
|
221
|
+
ctx.highlighted && /* @__PURE__ */ jsx("span", { className: "bg-primary-600 rounded-full px-1.5 py-0.5 text-[10px] font-bold text-white uppercase shadow-sm", children: c.labels.highlighted }),
|
|
222
|
+
c.renderBadges?.(node)
|
|
223
|
+
] }),
|
|
224
|
+
ctx.directReports > 0 && /* @__PURE__ */ jsxs(
|
|
225
|
+
"button",
|
|
226
|
+
{
|
|
227
|
+
type: "button",
|
|
228
|
+
"aria-expanded": ctx.expanded,
|
|
229
|
+
"aria-label": ctx.expanded ? c.labels.collapse(node.name) : c.labels.expand(node.name, ctx.directReports),
|
|
230
|
+
onClick: () => c.onToggle(node.id),
|
|
231
|
+
className: cn(
|
|
232
|
+
"nodrag nopan absolute z-10 flex h-6 min-w-6 items-center justify-center gap-0.5 rounded-full border px-1.5 text-[11px] font-semibold shadow-sm",
|
|
233
|
+
"focus-visible:ring-ring focus-visible:ring-2 focus-visible:outline-none",
|
|
234
|
+
c.horizontal ? "-end-3 top-1/2 -translate-y-1/2" : "-bottom-3 left-1/2 -translate-x-1/2",
|
|
235
|
+
ctx.expanded ? "border-primary-600 bg-primary-600 text-white" : "border-border bg-card text-foreground hover:border-primary-500"
|
|
236
|
+
),
|
|
237
|
+
children: [
|
|
238
|
+
/* @__PURE__ */ jsx(Chevron, { "aria-hidden": "true", className: "size-3 rtl:-scale-x-100" }),
|
|
239
|
+
ctx.directReports
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
),
|
|
243
|
+
/* @__PURE__ */ jsx(
|
|
244
|
+
Handle,
|
|
245
|
+
{
|
|
246
|
+
type: "source",
|
|
247
|
+
position: end,
|
|
248
|
+
isConnectable: false,
|
|
249
|
+
style: hiddenHandle
|
|
250
|
+
}
|
|
251
|
+
)
|
|
252
|
+
]
|
|
253
|
+
}
|
|
254
|
+
);
|
|
255
|
+
}
|
|
256
|
+
var nodeTypes = { org: OrgFlowNodeView };
|
|
257
|
+
var flowStyle = {
|
|
258
|
+
"--xy-background-color": "transparent",
|
|
259
|
+
"--xy-background-pattern-color": "var(--mieweb-border)",
|
|
260
|
+
"--xy-edge-stroke": "var(--mieweb-muted-foreground)",
|
|
261
|
+
"--xy-edge-stroke-width": "1.25",
|
|
262
|
+
"--xy-node-background-color": "transparent",
|
|
263
|
+
"--xy-node-border": "none",
|
|
264
|
+
"--xy-node-border-radius": "0.5rem",
|
|
265
|
+
"--xy-node-boxshadow-hover": "none",
|
|
266
|
+
"--xy-node-boxshadow-selected": "none",
|
|
267
|
+
"--xy-node-color": "inherit",
|
|
268
|
+
"--xy-minimap-background-color": "var(--mieweb-card)",
|
|
269
|
+
"--xy-minimap-mask-background-color": "color-mix(in srgb, var(--mieweb-muted) 70%, transparent)",
|
|
270
|
+
"--xy-minimap-node-background-color": "var(--mieweb-muted-foreground)",
|
|
271
|
+
"--xy-attribution-background-color": "transparent"
|
|
272
|
+
};
|
|
273
|
+
function OrgChartCanvas(props) {
|
|
274
|
+
return /* @__PURE__ */ jsx(ReactFlowProvider, { children: /* @__PURE__ */ jsx(CanvasInner, { ...props }) });
|
|
275
|
+
}
|
|
276
|
+
function CanvasInner({
|
|
277
|
+
forest,
|
|
278
|
+
visible,
|
|
279
|
+
nodeContext,
|
|
280
|
+
focusId,
|
|
281
|
+
direction,
|
|
282
|
+
variant,
|
|
283
|
+
showMinimap,
|
|
284
|
+
fitTargets,
|
|
285
|
+
fitRequest,
|
|
286
|
+
labels,
|
|
287
|
+
classNames,
|
|
288
|
+
renderNode,
|
|
289
|
+
renderBadges,
|
|
290
|
+
onToggle,
|
|
291
|
+
onSelect,
|
|
292
|
+
children
|
|
293
|
+
}) {
|
|
294
|
+
const { fitView } = useReactFlow();
|
|
295
|
+
const wrapRef = React3.useRef(null);
|
|
296
|
+
const [rtl, setRtl] = React3.useState(false);
|
|
297
|
+
const [positions, setPositions] = React3.useState(null);
|
|
298
|
+
const size = ORG_CHART_NODE_SIZE[variant];
|
|
299
|
+
const horizontal = direction === "RIGHT";
|
|
300
|
+
React3.useLayoutEffect(() => {
|
|
301
|
+
const el = wrapRef.current;
|
|
302
|
+
if (el) setRtl(getComputedStyle(el).direction === "rtl");
|
|
303
|
+
}, []);
|
|
304
|
+
const edgeList = React3.useMemo(() => {
|
|
305
|
+
const out = [];
|
|
306
|
+
for (const v of visible) {
|
|
307
|
+
const p = forest.parentOf.get(v.node.id);
|
|
308
|
+
if (p != null) out.push({ source: p, target: v.node.id });
|
|
309
|
+
}
|
|
310
|
+
return out;
|
|
311
|
+
}, [visible, forest]);
|
|
312
|
+
const layoutKey = JSON.stringify([
|
|
313
|
+
direction,
|
|
314
|
+
variant,
|
|
315
|
+
visible.map((v) => v.node.id),
|
|
316
|
+
edgeList.map((e) => [e.source, e.target])
|
|
317
|
+
]);
|
|
318
|
+
React3.useEffect(() => {
|
|
319
|
+
let cancelled = false;
|
|
320
|
+
void layoutOrgChart({
|
|
321
|
+
ids: visible.map((v) => v.node.id),
|
|
322
|
+
edges: edgeList,
|
|
323
|
+
direction,
|
|
324
|
+
...size
|
|
325
|
+
}).then((p) => {
|
|
326
|
+
if (!cancelled) setPositions(p);
|
|
327
|
+
});
|
|
328
|
+
return () => {
|
|
329
|
+
cancelled = true;
|
|
330
|
+
};
|
|
331
|
+
}, [layoutKey]);
|
|
332
|
+
const flowNodes = React3.useMemo(() => {
|
|
333
|
+
if (!positions) return [];
|
|
334
|
+
const out = [];
|
|
335
|
+
for (const v of visible) {
|
|
336
|
+
const pos = positions.get(v.node.id);
|
|
337
|
+
if (!pos) continue;
|
|
338
|
+
out.push({
|
|
339
|
+
id: v.node.id,
|
|
340
|
+
type: "org",
|
|
341
|
+
position: { x: rtl ? -pos.x - size.width : pos.x, y: pos.y },
|
|
342
|
+
width: size.width,
|
|
343
|
+
height: size.height,
|
|
344
|
+
draggable: false,
|
|
345
|
+
selectable: false,
|
|
346
|
+
connectable: false,
|
|
347
|
+
data: {
|
|
348
|
+
node: v.node,
|
|
349
|
+
ctx: nodeContext(v),
|
|
350
|
+
focused: v.node.id === focusId
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
return out;
|
|
355
|
+
}, [positions, visible, nodeContext, focusId, rtl, size.width, size.height]);
|
|
356
|
+
const flowEdges = React3.useMemo(
|
|
357
|
+
() => positions ? edgeList.filter((e) => positions.has(e.source) && positions.has(e.target)).map((e) => ({
|
|
358
|
+
id: JSON.stringify([e.source, e.target]),
|
|
359
|
+
source: e.source,
|
|
360
|
+
target: e.target,
|
|
361
|
+
type: "smoothstep",
|
|
362
|
+
focusable: false
|
|
363
|
+
})) : [],
|
|
364
|
+
[edgeList, positions]
|
|
365
|
+
);
|
|
366
|
+
const fitKey = JSON.stringify(fitTargets);
|
|
367
|
+
const pendingFit = React3.useRef(true);
|
|
368
|
+
React3.useEffect(() => {
|
|
369
|
+
pendingFit.current = true;
|
|
370
|
+
}, [fitKey, fitRequest]);
|
|
371
|
+
React3.useEffect(() => {
|
|
372
|
+
if (!pendingFit.current || !positions || positions.size === 0) return;
|
|
373
|
+
const targets = fitTargets?.filter((id) => positions.has(id));
|
|
374
|
+
if (fitTargets && fitTargets.length && !targets?.length) return;
|
|
375
|
+
const raf = requestAnimationFrame(() => {
|
|
376
|
+
pendingFit.current = false;
|
|
377
|
+
void fitView({
|
|
378
|
+
nodes: targets?.length ? targets.map((id) => ({ id })) : void 0,
|
|
379
|
+
padding: 0.2,
|
|
380
|
+
maxZoom: 1.1,
|
|
381
|
+
duration: prefersReducedMotion() ? 0 : 300
|
|
382
|
+
});
|
|
383
|
+
});
|
|
384
|
+
return () => cancelAnimationFrame(raf);
|
|
385
|
+
}, [positions, fitKey, fitRequest, fitTargets, fitView]);
|
|
386
|
+
const ctxValue = React3.useMemo(
|
|
387
|
+
() => ({
|
|
388
|
+
labels,
|
|
389
|
+
classNames,
|
|
390
|
+
horizontal,
|
|
391
|
+
rtl,
|
|
392
|
+
renderNode,
|
|
393
|
+
renderBadges,
|
|
394
|
+
onToggle,
|
|
395
|
+
onSelect
|
|
396
|
+
}),
|
|
397
|
+
[
|
|
398
|
+
labels,
|
|
399
|
+
classNames,
|
|
400
|
+
horizontal,
|
|
401
|
+
rtl,
|
|
402
|
+
renderNode,
|
|
403
|
+
renderBadges,
|
|
404
|
+
onToggle,
|
|
405
|
+
onSelect
|
|
406
|
+
]
|
|
407
|
+
);
|
|
408
|
+
return /* @__PURE__ */ jsx(CanvasContext.Provider, { value: ctxValue, children: /* @__PURE__ */ jsxs(
|
|
409
|
+
"div",
|
|
410
|
+
{
|
|
411
|
+
ref: wrapRef,
|
|
412
|
+
role: "region",
|
|
413
|
+
"aria-label": labels.chart,
|
|
414
|
+
"data-slot": "org-chart-canvas",
|
|
415
|
+
className: cn("relative h-[560px] w-full", classNames?.canvas),
|
|
416
|
+
children: [
|
|
417
|
+
/* @__PURE__ */ jsxs(
|
|
418
|
+
ReactFlow,
|
|
419
|
+
{
|
|
420
|
+
nodes: flowNodes,
|
|
421
|
+
edges: flowEdges,
|
|
422
|
+
nodeTypes,
|
|
423
|
+
nodesDraggable: false,
|
|
424
|
+
nodesConnectable: false,
|
|
425
|
+
nodesFocusable: false,
|
|
426
|
+
edgesFocusable: false,
|
|
427
|
+
elementsSelectable: false,
|
|
428
|
+
minZoom: 0.1,
|
|
429
|
+
maxZoom: 2,
|
|
430
|
+
style: flowStyle,
|
|
431
|
+
proOptions: { hideAttribution: true },
|
|
432
|
+
ariaLabelConfig: {
|
|
433
|
+
"node.a11yDescription.default": labels.canvasHint,
|
|
434
|
+
"node.a11yDescription.keyboardDisabled": labels.canvasHint,
|
|
435
|
+
"edge.a11yDescription.default": labels.canvasHint,
|
|
436
|
+
"minimap.ariaLabel": labels.minimap
|
|
437
|
+
},
|
|
438
|
+
children: [
|
|
439
|
+
/* @__PURE__ */ jsx(Background, { variant: BackgroundVariant.Dots, gap: 20, size: 1 }),
|
|
440
|
+
/* @__PURE__ */ jsx(Panel, { position: rtl ? "bottom-right" : "bottom-left", children: /* @__PURE__ */ jsx(
|
|
441
|
+
"a",
|
|
442
|
+
{
|
|
443
|
+
href: "https://reactflow.dev",
|
|
444
|
+
target: "_blank",
|
|
445
|
+
rel: "noopener noreferrer",
|
|
446
|
+
className: "text-muted-foreground hover:text-foreground focus-visible:ring-ring rounded-sm text-[10px] focus-visible:ring-2 focus-visible:outline-none",
|
|
447
|
+
children: "React Flow"
|
|
448
|
+
}
|
|
449
|
+
) }),
|
|
450
|
+
showMinimap && /* @__PURE__ */ jsx(
|
|
451
|
+
MiniMap,
|
|
452
|
+
{
|
|
453
|
+
pannable: true,
|
|
454
|
+
zoomable: true,
|
|
455
|
+
position: rtl ? "bottom-left" : "bottom-right",
|
|
456
|
+
className: "border-border overflow-hidden rounded-md border"
|
|
457
|
+
}
|
|
458
|
+
)
|
|
459
|
+
]
|
|
460
|
+
}
|
|
461
|
+
),
|
|
462
|
+
children
|
|
463
|
+
]
|
|
464
|
+
}
|
|
465
|
+
) });
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
// src/components/OrgChart/tree.ts
|
|
469
|
+
var EMPTY = [];
|
|
470
|
+
function buildOrgForest(nodes) {
|
|
471
|
+
const byId = /* @__PURE__ */ new Map();
|
|
472
|
+
for (const n of nodes) if (!byId.has(n.id)) byId.set(n.id, n);
|
|
473
|
+
const declared = /* @__PURE__ */ new Map();
|
|
474
|
+
const roots = [];
|
|
475
|
+
for (const n of byId.values()) {
|
|
476
|
+
const p = n.parentId;
|
|
477
|
+
if (p != null && p !== n.id && byId.has(p)) {
|
|
478
|
+
const list = declared.get(p);
|
|
479
|
+
if (list) list.push(n);
|
|
480
|
+
else declared.set(p, [n]);
|
|
481
|
+
} else {
|
|
482
|
+
roots.push(n);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
const children = /* @__PURE__ */ new Map();
|
|
486
|
+
const parentOf = /* @__PURE__ */ new Map();
|
|
487
|
+
const depth = /* @__PURE__ */ new Map();
|
|
488
|
+
const order = [];
|
|
489
|
+
const walk = (root) => {
|
|
490
|
+
parentOf.set(root.id, null);
|
|
491
|
+
depth.set(root.id, 0);
|
|
492
|
+
const stack = [root];
|
|
493
|
+
while (stack.length) {
|
|
494
|
+
const u = stack.pop();
|
|
495
|
+
order.push(u.id);
|
|
496
|
+
const kids = [];
|
|
497
|
+
for (const c of declared.get(u.id) ?? EMPTY) {
|
|
498
|
+
if (depth.has(c.id)) continue;
|
|
499
|
+
depth.set(c.id, depth.get(u.id) + 1);
|
|
500
|
+
parentOf.set(c.id, u.id);
|
|
501
|
+
kids.push(c);
|
|
502
|
+
}
|
|
503
|
+
if (kids.length) children.set(u.id, kids);
|
|
504
|
+
for (let i = kids.length - 1; i >= 0; i--) stack.push(kids[i]);
|
|
505
|
+
}
|
|
506
|
+
};
|
|
507
|
+
for (const r of roots) walk(r);
|
|
508
|
+
for (const n of byId.values()) {
|
|
509
|
+
if (depth.has(n.id)) continue;
|
|
510
|
+
roots.push(n);
|
|
511
|
+
walk(n);
|
|
512
|
+
}
|
|
513
|
+
const orgSize = /* @__PURE__ */ new Map();
|
|
514
|
+
for (let i = order.length - 1; i >= 0; i--) {
|
|
515
|
+
const id = order[i];
|
|
516
|
+
let size = 0;
|
|
517
|
+
for (const c of children.get(id) ?? EMPTY) size += 1 + orgSize.get(c.id);
|
|
518
|
+
orgSize.set(id, size);
|
|
519
|
+
}
|
|
520
|
+
return { byId, roots, children, parentOf, depth, orgSize };
|
|
521
|
+
}
|
|
522
|
+
function childrenOf(forest, id) {
|
|
523
|
+
return forest.children.get(id) ?? EMPTY;
|
|
524
|
+
}
|
|
525
|
+
function ancestorsOf(forest, id) {
|
|
526
|
+
const out = [];
|
|
527
|
+
let p = forest.parentOf.get(id) ?? null;
|
|
528
|
+
while (p != null) {
|
|
529
|
+
out.push(p);
|
|
530
|
+
p = forest.parentOf.get(p) ?? null;
|
|
531
|
+
}
|
|
532
|
+
return out;
|
|
533
|
+
}
|
|
534
|
+
function initialExpanded(forest, levels) {
|
|
535
|
+
const out = /* @__PURE__ */ new Set();
|
|
536
|
+
for (const [id, d] of forest.depth) {
|
|
537
|
+
if (d < levels - 1 && forest.children.has(id)) out.add(id);
|
|
538
|
+
}
|
|
539
|
+
return out;
|
|
540
|
+
}
|
|
541
|
+
function allExpandable(forest) {
|
|
542
|
+
return new Set(forest.children.keys());
|
|
543
|
+
}
|
|
544
|
+
function visibleNodes(forest, expanded) {
|
|
545
|
+
const out = [];
|
|
546
|
+
const visit = (n, depth) => {
|
|
547
|
+
out.push({ node: n, depth });
|
|
548
|
+
if (!expanded.has(n.id)) return;
|
|
549
|
+
for (const c of childrenOf(forest, n.id)) visit(c, depth + 1);
|
|
550
|
+
};
|
|
551
|
+
for (const r of forest.roots) visit(r, 0);
|
|
552
|
+
return out;
|
|
553
|
+
}
|
|
554
|
+
function matchesQuery(node, query) {
|
|
555
|
+
const q = query.trim().toLocaleLowerCase();
|
|
556
|
+
if (!q) return false;
|
|
557
|
+
return [node.name, node.title, node.subtitle, node.group].some(
|
|
558
|
+
(v) => v?.toLocaleLowerCase().includes(q)
|
|
559
|
+
);
|
|
560
|
+
}
|
|
561
|
+
function distinctGroups(nodes) {
|
|
562
|
+
const set = /* @__PURE__ */ new Set();
|
|
563
|
+
for (const n of nodes) if (n.group) set.add(n.group);
|
|
564
|
+
return [...set].sort((a, b) => a.localeCompare(b));
|
|
565
|
+
}
|
|
566
|
+
function OrgChartTree({
|
|
567
|
+
forest,
|
|
568
|
+
visible,
|
|
569
|
+
nodeContext,
|
|
570
|
+
selectedId,
|
|
571
|
+
labels,
|
|
572
|
+
classNames,
|
|
573
|
+
renderBadges,
|
|
574
|
+
onToggle,
|
|
575
|
+
onSelect
|
|
576
|
+
}) {
|
|
577
|
+
const listRef = React3.useRef(null);
|
|
578
|
+
const items = React3.useRef(/* @__PURE__ */ new Map());
|
|
579
|
+
const [activeId, setActiveId] = React3.useState(selectedId);
|
|
580
|
+
const active = activeId && visible.some((v) => v.node.id === activeId) ? activeId : visible[0]?.node.id ?? null;
|
|
581
|
+
const move = (id) => {
|
|
582
|
+
if (!id) return;
|
|
583
|
+
setActiveId(id);
|
|
584
|
+
items.current.get(id)?.focus();
|
|
585
|
+
};
|
|
586
|
+
const onKeyDown = (e) => {
|
|
587
|
+
const index = visible.findIndex((v) => v.node.id === active);
|
|
588
|
+
if (index < 0) return;
|
|
589
|
+
const current = visible[index];
|
|
590
|
+
const id = current.node.id;
|
|
591
|
+
const hasKids = childrenOf(forest, id).length > 0;
|
|
592
|
+
const expanded = nodeContext(current).expanded;
|
|
593
|
+
const rtl = !!listRef.current && getComputedStyle(listRef.current).direction === "rtl";
|
|
594
|
+
let key = e.key;
|
|
595
|
+
if (rtl && key === "ArrowLeft") key = "ArrowRight";
|
|
596
|
+
else if (rtl && key === "ArrowRight") key = "ArrowLeft";
|
|
597
|
+
switch (key) {
|
|
598
|
+
case "ArrowDown":
|
|
599
|
+
move(visible[index + 1]?.node.id);
|
|
600
|
+
break;
|
|
601
|
+
case "ArrowUp":
|
|
602
|
+
move(visible[index - 1]?.node.id);
|
|
603
|
+
break;
|
|
604
|
+
case "Home":
|
|
605
|
+
move(visible[0]?.node.id);
|
|
606
|
+
break;
|
|
607
|
+
case "End":
|
|
608
|
+
move(visible[visible.length - 1]?.node.id);
|
|
609
|
+
break;
|
|
610
|
+
case "ArrowRight":
|
|
611
|
+
if (hasKids && !expanded) onToggle(id);
|
|
612
|
+
else if (hasKids) move(childrenOf(forest, id)[0]?.id);
|
|
613
|
+
break;
|
|
614
|
+
case "ArrowLeft":
|
|
615
|
+
if (hasKids && expanded) onToggle(id);
|
|
616
|
+
else move(forest.parentOf.get(id) ?? void 0);
|
|
617
|
+
break;
|
|
618
|
+
case "Enter":
|
|
619
|
+
case " ":
|
|
620
|
+
onSelect(id);
|
|
621
|
+
break;
|
|
622
|
+
default:
|
|
623
|
+
return;
|
|
624
|
+
}
|
|
625
|
+
e.preventDefault();
|
|
626
|
+
};
|
|
627
|
+
return /* @__PURE__ */ jsx(
|
|
628
|
+
"ul",
|
|
629
|
+
{
|
|
630
|
+
ref: listRef,
|
|
631
|
+
role: "tree",
|
|
632
|
+
"aria-label": labels.tree,
|
|
633
|
+
"data-slot": "org-chart-tree",
|
|
634
|
+
className: cn("max-h-[560px] overflow-auto p-2", classNames?.tree),
|
|
635
|
+
children: visible.map((v) => {
|
|
636
|
+
const { node } = v;
|
|
637
|
+
const ctx = nodeContext(v);
|
|
638
|
+
const parent = forest.parentOf.get(node.id);
|
|
639
|
+
const siblings = parent != null ? childrenOf(forest, parent) : forest.roots;
|
|
640
|
+
const Chevron = ctx.expanded ? ChevronDown : ChevronRight;
|
|
641
|
+
const secondary = ctx.variant === "person" ? node.title : node.subtitle;
|
|
642
|
+
return /* @__PURE__ */ jsxs(
|
|
643
|
+
"li",
|
|
644
|
+
{
|
|
645
|
+
ref: (el) => {
|
|
646
|
+
if (el) items.current.set(node.id, el);
|
|
647
|
+
else items.current.delete(node.id);
|
|
648
|
+
},
|
|
649
|
+
role: "treeitem",
|
|
650
|
+
"aria-level": v.depth + 1,
|
|
651
|
+
"aria-setsize": siblings.length,
|
|
652
|
+
"aria-posinset": siblings.indexOf(node) + 1,
|
|
653
|
+
"aria-expanded": ctx.directReports > 0 ? ctx.expanded : void 0,
|
|
654
|
+
"aria-selected": node.id === selectedId,
|
|
655
|
+
"aria-current": ctx.highlighted || void 0,
|
|
656
|
+
tabIndex: node.id === active ? 0 : -1,
|
|
657
|
+
"data-slot": "org-chart-tree-item",
|
|
658
|
+
"data-matched": ctx.matched || void 0,
|
|
659
|
+
onFocus: () => setActiveId(node.id),
|
|
660
|
+
onKeyDown,
|
|
661
|
+
onClick: (e) => {
|
|
662
|
+
setActiveId(node.id);
|
|
663
|
+
const onChevron = e.target.closest(
|
|
664
|
+
'[data-slot="org-chart-tree-toggle"]'
|
|
665
|
+
);
|
|
666
|
+
if (onChevron && ctx.directReports > 0) onToggle(node.id);
|
|
667
|
+
else onSelect(node.id);
|
|
668
|
+
},
|
|
669
|
+
style: { paddingInlineStart: `${v.depth * 1.25 + 0.25}rem` },
|
|
670
|
+
className: cn(
|
|
671
|
+
"flex cursor-pointer items-center gap-2 rounded-md py-1.5 pe-2 text-sm",
|
|
672
|
+
"hover:bg-muted focus-visible:ring-ring focus-visible:ring-2 focus-visible:outline-none",
|
|
673
|
+
node.id === selectedId && "bg-primary-500/10",
|
|
674
|
+
ctx.matched && "ring-ring ring-1",
|
|
675
|
+
ctx.dimmed && "opacity-50",
|
|
676
|
+
classNames?.treeItem
|
|
677
|
+
),
|
|
678
|
+
children: [
|
|
679
|
+
/* @__PURE__ */ jsx(
|
|
680
|
+
"span",
|
|
681
|
+
{
|
|
682
|
+
"aria-hidden": "true",
|
|
683
|
+
"data-slot": "org-chart-tree-toggle",
|
|
684
|
+
className: "text-muted-foreground flex size-5 shrink-0 items-center justify-center",
|
|
685
|
+
children: ctx.directReports > 0 && /* @__PURE__ */ jsx(Chevron, { className: "size-4 rtl:-scale-x-100" })
|
|
686
|
+
}
|
|
687
|
+
),
|
|
688
|
+
/* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-1 flex-wrap items-baseline gap-x-2", children: [
|
|
689
|
+
/* @__PURE__ */ jsx("span", { className: "text-foreground font-medium", children: node.name }),
|
|
690
|
+
secondary && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-xs", children: secondary })
|
|
691
|
+
] }),
|
|
692
|
+
ctx.highlighted && /* @__PURE__ */ jsx("span", { className: "bg-primary-600 rounded-full px-1.5 text-[10px] font-bold text-white uppercase", children: labels.highlighted }),
|
|
693
|
+
renderBadges?.(node),
|
|
694
|
+
node.group && /* @__PURE__ */ jsx(GroupPill, { group: node.group, accent: ctx.accent }),
|
|
695
|
+
ctx.directReports > 0 && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-xs tabular-nums", children: ctx.directReports })
|
|
696
|
+
]
|
|
697
|
+
},
|
|
698
|
+
node.id
|
|
699
|
+
);
|
|
700
|
+
})
|
|
701
|
+
}
|
|
702
|
+
);
|
|
703
|
+
}
|
|
704
|
+
var isNarrow = () => typeof window !== "undefined" && !!window.matchMedia?.("(max-width: 639px)").matches;
|
|
705
|
+
var union = (a, ids) => {
|
|
706
|
+
let out = null;
|
|
707
|
+
for (const id of ids) {
|
|
708
|
+
if (a.has(id)) continue;
|
|
709
|
+
out ??= new Set(a);
|
|
710
|
+
out.add(id);
|
|
711
|
+
}
|
|
712
|
+
return out ?? a;
|
|
713
|
+
};
|
|
714
|
+
var ancestorsOfAll = (forest, ids) => {
|
|
715
|
+
const out = [];
|
|
716
|
+
for (const id of ids) out.push(...ancestorsOf(forest, id));
|
|
717
|
+
return out;
|
|
718
|
+
};
|
|
719
|
+
var OrgChart = React3.forwardRef(
|
|
720
|
+
function OrgChart2({
|
|
721
|
+
nodes,
|
|
722
|
+
loading = false,
|
|
723
|
+
error = null,
|
|
724
|
+
onRetry,
|
|
725
|
+
nodeVariant = "person",
|
|
726
|
+
direction = "DOWN",
|
|
727
|
+
initialDepth = 2,
|
|
728
|
+
focusId = null,
|
|
729
|
+
highlightedId = null,
|
|
730
|
+
defaultQuery = "",
|
|
731
|
+
defaultGroup = "",
|
|
732
|
+
view: viewProp,
|
|
733
|
+
defaultView,
|
|
734
|
+
onViewChange,
|
|
735
|
+
defaultShowMinimap = false,
|
|
736
|
+
getGroupAccent,
|
|
737
|
+
onSelect,
|
|
738
|
+
onOpen,
|
|
739
|
+
getHref,
|
|
740
|
+
renderNode,
|
|
741
|
+
renderBadges,
|
|
742
|
+
renderDetail,
|
|
743
|
+
emptyState,
|
|
744
|
+
labels: labelsProp,
|
|
745
|
+
classNames,
|
|
746
|
+
className,
|
|
747
|
+
...rest
|
|
748
|
+
}, ref) {
|
|
749
|
+
const labels = React3.useMemo(
|
|
750
|
+
() => ({ ...defaultOrgChartLabels, ...labelsProp }),
|
|
751
|
+
[labelsProp]
|
|
752
|
+
);
|
|
753
|
+
const rootRef = React3.useRef(null);
|
|
754
|
+
React3.useImperativeHandle(ref, () => rootRef.current);
|
|
755
|
+
const searchId = React3.useId();
|
|
756
|
+
const forest = React3.useMemo(() => buildOrgForest(nodes), [nodes]);
|
|
757
|
+
const groups = React3.useMemo(() => distinctGroups(nodes), [nodes]);
|
|
758
|
+
const accentOf = React3.useMemo(() => {
|
|
759
|
+
const map = /* @__PURE__ */ new Map();
|
|
760
|
+
groups.forEach(
|
|
761
|
+
(g, i) => map.set(
|
|
762
|
+
g,
|
|
763
|
+
getGroupAccent?.(g, i) ?? ORG_CHART_GROUP_ACCENTS[i % ORG_CHART_GROUP_ACCENTS.length]
|
|
764
|
+
)
|
|
765
|
+
);
|
|
766
|
+
return map;
|
|
767
|
+
}, [groups, getGroupAccent]);
|
|
768
|
+
const [expanded, setExpanded] = React3.useState(
|
|
769
|
+
() => union(
|
|
770
|
+
initialExpanded(forest, initialDepth),
|
|
771
|
+
ancestorsOfAll(
|
|
772
|
+
forest,
|
|
773
|
+
[focusId, highlightedId].filter((id) => !!id)
|
|
774
|
+
)
|
|
775
|
+
)
|
|
776
|
+
);
|
|
777
|
+
const seeded = React3.useRef(forest.byId.size > 0);
|
|
778
|
+
const [query, setQuery] = React3.useState(defaultQuery);
|
|
779
|
+
const [groupState, setGroup] = React3.useState(defaultGroup);
|
|
780
|
+
const group = groupState && groups.includes(groupState) ? groupState : "";
|
|
781
|
+
const [selectedId, setSelectedId] = React3.useState(null);
|
|
782
|
+
const [viewState, setViewState] = React3.useState(
|
|
783
|
+
defaultView ?? "chart"
|
|
784
|
+
);
|
|
785
|
+
const appliedNarrowDefault = React3.useRef(false);
|
|
786
|
+
React3.useEffect(() => {
|
|
787
|
+
if (appliedNarrowDefault.current) return;
|
|
788
|
+
appliedNarrowDefault.current = true;
|
|
789
|
+
if (defaultView === void 0 && isNarrow()) setViewState("list");
|
|
790
|
+
}, [defaultView]);
|
|
791
|
+
const view = viewProp ?? viewState;
|
|
792
|
+
const [showMinimap, setShowMinimap] = React3.useState(defaultShowMinimap);
|
|
793
|
+
const [nativeFull, setNativeFull] = React3.useState(false);
|
|
794
|
+
const [pseudoFull, setPseudoFull] = React3.useState(false);
|
|
795
|
+
const fullscreen = nativeFull || pseudoFull;
|
|
796
|
+
const [fitRequest, setFitRequest] = React3.useState(0);
|
|
797
|
+
const returnFocus = React3.useRef(null);
|
|
798
|
+
React3.useEffect(() => {
|
|
799
|
+
if (seeded.current || forest.byId.size === 0) return;
|
|
800
|
+
seeded.current = true;
|
|
801
|
+
setExpanded((prev) => union(prev, initialExpanded(forest, initialDepth)));
|
|
802
|
+
}, [forest, initialDepth]);
|
|
803
|
+
React3.useEffect(() => {
|
|
804
|
+
const ids = [focusId, highlightedId].filter(
|
|
805
|
+
(id) => !!id && forest.byId.has(id)
|
|
806
|
+
);
|
|
807
|
+
if (ids.length)
|
|
808
|
+
setExpanded((prev) => union(prev, ancestorsOfAll(forest, ids)));
|
|
809
|
+
}, [forest, focusId, highlightedId]);
|
|
810
|
+
const matches = React3.useMemo(() => {
|
|
811
|
+
if (!query.trim()) return null;
|
|
812
|
+
const out = [];
|
|
813
|
+
for (const n of forest.byId.values())
|
|
814
|
+
if (matchesQuery(n, query)) out.push(n.id);
|
|
815
|
+
return out;
|
|
816
|
+
}, [forest, query]);
|
|
817
|
+
const groupMembers = React3.useMemo(() => {
|
|
818
|
+
if (!group) return null;
|
|
819
|
+
const out = [];
|
|
820
|
+
for (const n of forest.byId.values())
|
|
821
|
+
if (n.group === group) out.push(n.id);
|
|
822
|
+
return out;
|
|
823
|
+
}, [forest, group]);
|
|
824
|
+
const revealKey = JSON.stringify([matches, groupMembers]);
|
|
825
|
+
React3.useEffect(() => {
|
|
826
|
+
const ids = [...matches ?? [], ...groupMembers ?? []];
|
|
827
|
+
if (ids.length)
|
|
828
|
+
setExpanded((prev) => union(prev, ancestorsOfAll(forest, ids)));
|
|
829
|
+
}, [revealKey, forest]);
|
|
830
|
+
React3.useEffect(() => {
|
|
831
|
+
const onChange = () => setNativeFull(
|
|
832
|
+
!!rootRef.current && document.fullscreenElement === rootRef.current
|
|
833
|
+
);
|
|
834
|
+
document.addEventListener("fullscreenchange", onChange);
|
|
835
|
+
return () => document.removeEventListener("fullscreenchange", onChange);
|
|
836
|
+
}, []);
|
|
837
|
+
React3.useEffect(() => {
|
|
838
|
+
if (!pseudoFull) return;
|
|
839
|
+
const onKey = (e) => {
|
|
840
|
+
if (e.key === "Escape") setPseudoFull(false);
|
|
841
|
+
};
|
|
842
|
+
document.addEventListener("keydown", onKey);
|
|
843
|
+
return () => document.removeEventListener("keydown", onKey);
|
|
844
|
+
}, [pseudoFull]);
|
|
845
|
+
const visible = React3.useMemo(
|
|
846
|
+
() => visibleNodes(forest, expanded),
|
|
847
|
+
[forest, expanded]
|
|
848
|
+
);
|
|
849
|
+
const matchSet = React3.useMemo(() => new Set(matches ?? []), [matches]);
|
|
850
|
+
const groupSet = React3.useMemo(
|
|
851
|
+
() => groupMembers ? new Set(groupMembers) : null,
|
|
852
|
+
[groupMembers]
|
|
853
|
+
);
|
|
854
|
+
const nodeContext = React3.useCallback(
|
|
855
|
+
(v) => ({
|
|
856
|
+
variant: nodeVariant,
|
|
857
|
+
depth: v.depth,
|
|
858
|
+
directReports: childrenOf(forest, v.node.id).length,
|
|
859
|
+
expanded: expanded.has(v.node.id),
|
|
860
|
+
highlighted: v.node.id === highlightedId,
|
|
861
|
+
matched: matchSet.has(v.node.id),
|
|
862
|
+
dimmed: !!groupSet && !groupSet.has(v.node.id),
|
|
863
|
+
accent: v.node.group ? accentOf.get(v.node.group) : void 0
|
|
864
|
+
}),
|
|
865
|
+
[
|
|
866
|
+
nodeVariant,
|
|
867
|
+
forest,
|
|
868
|
+
expanded,
|
|
869
|
+
highlightedId,
|
|
870
|
+
matchSet,
|
|
871
|
+
groupSet,
|
|
872
|
+
accentOf
|
|
873
|
+
]
|
|
874
|
+
);
|
|
875
|
+
const fitTargets = React3.useMemo(() => {
|
|
876
|
+
if (matches?.length) return matches;
|
|
877
|
+
if (groupMembers?.length) return groupMembers;
|
|
878
|
+
if (focusId && forest.byId.has(focusId)) return [focusId];
|
|
879
|
+
return null;
|
|
880
|
+
}, [matches, groupMembers, focusId, forest]);
|
|
881
|
+
const toggle = React3.useCallback((id) => {
|
|
882
|
+
setExpanded((prev) => {
|
|
883
|
+
const next = new Set(prev);
|
|
884
|
+
if (next.has(id)) next.delete(id);
|
|
885
|
+
else next.add(id);
|
|
886
|
+
return next;
|
|
887
|
+
});
|
|
888
|
+
}, []);
|
|
889
|
+
const select = React3.useCallback(
|
|
890
|
+
(id) => {
|
|
891
|
+
if (id && typeof document !== "undefined")
|
|
892
|
+
returnFocus.current = document.activeElement;
|
|
893
|
+
setSelectedId(id);
|
|
894
|
+
onSelect?.(id, id ? forest.byId.get(id) ?? null : null);
|
|
895
|
+
},
|
|
896
|
+
[forest, onSelect]
|
|
897
|
+
);
|
|
898
|
+
const closeDetail = React3.useCallback(() => {
|
|
899
|
+
select(null);
|
|
900
|
+
const el = returnFocus.current;
|
|
901
|
+
if (el?.isConnected) el.focus();
|
|
902
|
+
}, [select]);
|
|
903
|
+
const setView = (v) => {
|
|
904
|
+
setViewState(v);
|
|
905
|
+
onViewChange?.(v);
|
|
906
|
+
};
|
|
907
|
+
const toggleFullscreen = async () => {
|
|
908
|
+
const el = rootRef.current;
|
|
909
|
+
if (!el) return;
|
|
910
|
+
if (fullscreen) {
|
|
911
|
+
setPseudoFull(false);
|
|
912
|
+
if (document.fullscreenElement) await document.exitFullscreen?.();
|
|
913
|
+
return;
|
|
914
|
+
}
|
|
915
|
+
try {
|
|
916
|
+
if (!el.requestFullscreen) throw new Error("unsupported");
|
|
917
|
+
await el.requestFullscreen();
|
|
918
|
+
} catch {
|
|
919
|
+
setPseudoFull(true);
|
|
920
|
+
}
|
|
921
|
+
};
|
|
922
|
+
const stateBox = (content) => /* @__PURE__ */ jsx(
|
|
923
|
+
"div",
|
|
924
|
+
{
|
|
925
|
+
"data-slot": "org-chart-state",
|
|
926
|
+
className: cn(
|
|
927
|
+
"text-muted-foreground flex min-h-48 flex-col items-center justify-center gap-3 p-6 text-center text-sm",
|
|
928
|
+
classNames?.state
|
|
929
|
+
),
|
|
930
|
+
children: content
|
|
931
|
+
}
|
|
932
|
+
);
|
|
933
|
+
let body;
|
|
934
|
+
if (error) {
|
|
935
|
+
body = stateBox(
|
|
936
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
937
|
+
/* @__PURE__ */ jsx(
|
|
938
|
+
"p",
|
|
939
|
+
{
|
|
940
|
+
role: "alert",
|
|
941
|
+
className: "text-destructive-700 dark:text-destructive-400",
|
|
942
|
+
children: labels.error
|
|
943
|
+
}
|
|
944
|
+
),
|
|
945
|
+
onRetry && /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", onClick: onRetry, children: labels.retry })
|
|
946
|
+
] })
|
|
947
|
+
);
|
|
948
|
+
} else if (loading) {
|
|
949
|
+
body = stateBox(
|
|
950
|
+
/* @__PURE__ */ jsxs("div", { role: "status", className: "flex items-center gap-2", children: [
|
|
951
|
+
/* @__PURE__ */ jsx(Spinner, { size: "sm" }),
|
|
952
|
+
/* @__PURE__ */ jsx("span", { children: labels.loading })
|
|
953
|
+
] })
|
|
954
|
+
);
|
|
955
|
+
} else if (forest.byId.size === 0) {
|
|
956
|
+
body = stateBox(emptyState ?? /* @__PURE__ */ jsx("p", { children: labels.empty }));
|
|
957
|
+
}
|
|
958
|
+
const selected = selectedId ? forest.byId.get(selectedId) ?? null : null;
|
|
959
|
+
const detail = selected && /* @__PURE__ */ jsx(
|
|
960
|
+
DetailPanel,
|
|
961
|
+
{
|
|
962
|
+
node: selected,
|
|
963
|
+
forest,
|
|
964
|
+
variant: nodeVariant,
|
|
965
|
+
accent: selected.group ? accentOf.get(selected.group) : void 0,
|
|
966
|
+
labels,
|
|
967
|
+
className: classNames?.detail,
|
|
968
|
+
onClose: closeDetail,
|
|
969
|
+
onOpen,
|
|
970
|
+
getHref,
|
|
971
|
+
renderDetail,
|
|
972
|
+
renderBadges
|
|
973
|
+
},
|
|
974
|
+
selected.id
|
|
975
|
+
);
|
|
976
|
+
const iconButton = (label, icon, onClick, pressed) => /* @__PURE__ */ jsx(
|
|
977
|
+
Button,
|
|
978
|
+
{
|
|
979
|
+
type: "button",
|
|
980
|
+
variant: "ghost",
|
|
981
|
+
size: "icon",
|
|
982
|
+
"aria-label": label,
|
|
983
|
+
title: label,
|
|
984
|
+
"aria-pressed": pressed,
|
|
985
|
+
onClick,
|
|
986
|
+
className: cn(pressed && "bg-primary-500/10"),
|
|
987
|
+
children: icon
|
|
988
|
+
}
|
|
989
|
+
);
|
|
990
|
+
return /* @__PURE__ */ jsx(
|
|
991
|
+
"div",
|
|
992
|
+
{
|
|
993
|
+
ref: rootRef,
|
|
994
|
+
"data-slot": "org-chart",
|
|
995
|
+
"data-view": view,
|
|
996
|
+
className: cn(
|
|
997
|
+
"bg-card text-foreground border-border relative flex flex-col overflow-hidden rounded-lg border",
|
|
998
|
+
fullscreen && "bg-background",
|
|
999
|
+
pseudoFull && "fixed inset-0 z-50 rounded-none",
|
|
1000
|
+
className,
|
|
1001
|
+
classNames?.root
|
|
1002
|
+
),
|
|
1003
|
+
...rest,
|
|
1004
|
+
children: body ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1005
|
+
/* @__PURE__ */ jsxs(
|
|
1006
|
+
"div",
|
|
1007
|
+
{
|
|
1008
|
+
role: "toolbar",
|
|
1009
|
+
"aria-label": labels.toolbar,
|
|
1010
|
+
"data-slot": "org-chart-toolbar",
|
|
1011
|
+
className: cn(
|
|
1012
|
+
"border-border flex flex-wrap items-center gap-2 border-b p-2",
|
|
1013
|
+
classNames?.toolbar
|
|
1014
|
+
),
|
|
1015
|
+
children: [
|
|
1016
|
+
/* @__PURE__ */ jsxs("div", { className: "relative min-w-40 flex-1", children: [
|
|
1017
|
+
/* @__PURE__ */ jsx("label", { htmlFor: searchId, className: "sr-only", children: labels.search }),
|
|
1018
|
+
/* @__PURE__ */ jsx(
|
|
1019
|
+
Search,
|
|
1020
|
+
{
|
|
1021
|
+
"aria-hidden": "true",
|
|
1022
|
+
className: "text-muted-foreground pointer-events-none absolute start-2.5 top-1/2 size-4 -translate-y-1/2"
|
|
1023
|
+
}
|
|
1024
|
+
),
|
|
1025
|
+
/* @__PURE__ */ jsx(
|
|
1026
|
+
"input",
|
|
1027
|
+
{
|
|
1028
|
+
id: searchId,
|
|
1029
|
+
type: "search",
|
|
1030
|
+
value: query,
|
|
1031
|
+
placeholder: labels.searchPlaceholder,
|
|
1032
|
+
onChange: (e) => setQuery(e.target.value),
|
|
1033
|
+
className: "border-border bg-background text-foreground placeholder:text-muted-foreground focus-visible:ring-ring h-9 w-full rounded-md border ps-8 pe-2 text-sm focus-visible:ring-2 focus-visible:outline-none"
|
|
1034
|
+
}
|
|
1035
|
+
)
|
|
1036
|
+
] }),
|
|
1037
|
+
/* @__PURE__ */ jsx(
|
|
1038
|
+
"p",
|
|
1039
|
+
{
|
|
1040
|
+
role: "status",
|
|
1041
|
+
"aria-live": "polite",
|
|
1042
|
+
className: "text-muted-foreground min-w-0 text-xs empty:hidden",
|
|
1043
|
+
children: matches ? labels.results(matches.length) : ""
|
|
1044
|
+
}
|
|
1045
|
+
),
|
|
1046
|
+
groups.length > 0 && /* @__PURE__ */ jsxs(
|
|
1047
|
+
"select",
|
|
1048
|
+
{
|
|
1049
|
+
"aria-label": labels.groupFilter,
|
|
1050
|
+
value: group,
|
|
1051
|
+
onChange: (e) => setGroup(e.target.value),
|
|
1052
|
+
className: "border-border bg-background text-foreground focus-visible:ring-ring h-9 max-w-48 rounded-md border px-2 text-sm focus-visible:ring-2 focus-visible:outline-none",
|
|
1053
|
+
children: [
|
|
1054
|
+
/* @__PURE__ */ jsx("option", { value: "", children: labels.allGroups }),
|
|
1055
|
+
groups.map((g) => /* @__PURE__ */ jsx("option", { value: g, children: g }, g))
|
|
1056
|
+
]
|
|
1057
|
+
}
|
|
1058
|
+
),
|
|
1059
|
+
/* @__PURE__ */ jsxs("div", { className: "ms-auto flex flex-wrap items-center gap-1", children: [
|
|
1060
|
+
iconButton(
|
|
1061
|
+
labels.expandAll,
|
|
1062
|
+
/* @__PURE__ */ jsx(UnfoldVertical, { "aria-hidden": "true", className: "size-4" }),
|
|
1063
|
+
() => setExpanded(allExpandable(forest))
|
|
1064
|
+
),
|
|
1065
|
+
iconButton(
|
|
1066
|
+
labels.collapseAll,
|
|
1067
|
+
/* @__PURE__ */ jsx(FoldVertical, { "aria-hidden": "true", className: "size-4" }),
|
|
1068
|
+
() => setExpanded(/* @__PURE__ */ new Set())
|
|
1069
|
+
),
|
|
1070
|
+
view === "chart" && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1071
|
+
iconButton(
|
|
1072
|
+
labels.fitView,
|
|
1073
|
+
/* @__PURE__ */ jsx(Scan, { "aria-hidden": "true", className: "size-4" }),
|
|
1074
|
+
() => setFitRequest((n) => n + 1)
|
|
1075
|
+
),
|
|
1076
|
+
iconButton(
|
|
1077
|
+
labels.minimap,
|
|
1078
|
+
/* @__PURE__ */ jsx(Map$1, { "aria-hidden": "true", className: "size-4" }),
|
|
1079
|
+
() => setShowMinimap((v) => !v),
|
|
1080
|
+
showMinimap
|
|
1081
|
+
)
|
|
1082
|
+
] }),
|
|
1083
|
+
iconButton(
|
|
1084
|
+
labels.fullscreen,
|
|
1085
|
+
fullscreen ? /* @__PURE__ */ jsx(Minimize, { "aria-hidden": "true", className: "size-4" }) : /* @__PURE__ */ jsx(Maximize, { "aria-hidden": "true", className: "size-4" }),
|
|
1086
|
+
() => void toggleFullscreen(),
|
|
1087
|
+
fullscreen
|
|
1088
|
+
),
|
|
1089
|
+
/* @__PURE__ */ jsx(
|
|
1090
|
+
"div",
|
|
1091
|
+
{
|
|
1092
|
+
role: "group",
|
|
1093
|
+
"aria-label": labels.viewToggle,
|
|
1094
|
+
className: "border-border ms-1 flex rounded-md border p-0.5",
|
|
1095
|
+
children: [
|
|
1096
|
+
["chart", labels.chartView, Network],
|
|
1097
|
+
["list", labels.listView, List]
|
|
1098
|
+
].map(([v, label, Icon]) => /* @__PURE__ */ jsxs(
|
|
1099
|
+
"button",
|
|
1100
|
+
{
|
|
1101
|
+
type: "button",
|
|
1102
|
+
"aria-pressed": view === v,
|
|
1103
|
+
onClick: () => setView(v),
|
|
1104
|
+
className: cn(
|
|
1105
|
+
"focus-visible:ring-ring flex h-7 items-center gap-1 rounded px-2 text-xs font-medium focus-visible:ring-2 focus-visible:outline-none",
|
|
1106
|
+
view === v ? "bg-primary-500/10 text-foreground" : "text-muted-foreground hover:bg-muted"
|
|
1107
|
+
),
|
|
1108
|
+
children: [
|
|
1109
|
+
/* @__PURE__ */ jsx(Icon, { "aria-hidden": "true", className: "size-3.5" }),
|
|
1110
|
+
label
|
|
1111
|
+
]
|
|
1112
|
+
},
|
|
1113
|
+
v
|
|
1114
|
+
))
|
|
1115
|
+
}
|
|
1116
|
+
)
|
|
1117
|
+
] })
|
|
1118
|
+
]
|
|
1119
|
+
}
|
|
1120
|
+
),
|
|
1121
|
+
view === "chart" ? /* @__PURE__ */ jsx(
|
|
1122
|
+
OrgChartCanvas,
|
|
1123
|
+
{
|
|
1124
|
+
forest,
|
|
1125
|
+
visible,
|
|
1126
|
+
nodeContext,
|
|
1127
|
+
focusId,
|
|
1128
|
+
direction,
|
|
1129
|
+
variant: nodeVariant,
|
|
1130
|
+
showMinimap,
|
|
1131
|
+
fitTargets,
|
|
1132
|
+
fitRequest,
|
|
1133
|
+
labels,
|
|
1134
|
+
classNames: fullscreen ? {
|
|
1135
|
+
...classNames,
|
|
1136
|
+
canvas: cn(classNames?.canvas, "h-auto flex-1")
|
|
1137
|
+
} : classNames,
|
|
1138
|
+
renderNode,
|
|
1139
|
+
renderBadges,
|
|
1140
|
+
onToggle: toggle,
|
|
1141
|
+
onSelect: select,
|
|
1142
|
+
children: detail
|
|
1143
|
+
}
|
|
1144
|
+
) : /* @__PURE__ */ jsxs("div", { className: cn("relative", fullscreen && "flex-1"), children: [
|
|
1145
|
+
/* @__PURE__ */ jsx(
|
|
1146
|
+
OrgChartTree,
|
|
1147
|
+
{
|
|
1148
|
+
forest,
|
|
1149
|
+
visible,
|
|
1150
|
+
nodeContext,
|
|
1151
|
+
selectedId,
|
|
1152
|
+
labels,
|
|
1153
|
+
classNames,
|
|
1154
|
+
renderBadges,
|
|
1155
|
+
onToggle: toggle,
|
|
1156
|
+
onSelect: select
|
|
1157
|
+
}
|
|
1158
|
+
),
|
|
1159
|
+
detail
|
|
1160
|
+
] })
|
|
1161
|
+
] })
|
|
1162
|
+
}
|
|
1163
|
+
);
|
|
1164
|
+
}
|
|
1165
|
+
);
|
|
1166
|
+
function DetailPanel({
|
|
1167
|
+
node,
|
|
1168
|
+
forest,
|
|
1169
|
+
variant,
|
|
1170
|
+
accent,
|
|
1171
|
+
labels,
|
|
1172
|
+
className,
|
|
1173
|
+
onClose,
|
|
1174
|
+
onOpen,
|
|
1175
|
+
getHref,
|
|
1176
|
+
renderDetail,
|
|
1177
|
+
renderBadges
|
|
1178
|
+
}) {
|
|
1179
|
+
const ref = React3.useRef(null);
|
|
1180
|
+
const closeRef = React3.useRef(onClose);
|
|
1181
|
+
React3.useEffect(() => {
|
|
1182
|
+
closeRef.current = onClose;
|
|
1183
|
+
});
|
|
1184
|
+
React3.useEffect(() => {
|
|
1185
|
+
const el = ref.current;
|
|
1186
|
+
if (!el) return;
|
|
1187
|
+
el.focus();
|
|
1188
|
+
const onKey = (e) => {
|
|
1189
|
+
if (e.key !== "Escape") return;
|
|
1190
|
+
e.stopPropagation();
|
|
1191
|
+
closeRef.current();
|
|
1192
|
+
};
|
|
1193
|
+
el.addEventListener("keydown", onKey);
|
|
1194
|
+
return () => el.removeEventListener("keydown", onKey);
|
|
1195
|
+
}, []);
|
|
1196
|
+
const directReports = childrenOf(forest, node.id).length;
|
|
1197
|
+
const orgSize = forest.orgSize.get(node.id) ?? 0;
|
|
1198
|
+
const parentId = forest.parentOf.get(node.id);
|
|
1199
|
+
const parent = parentId ? forest.byId.get(parentId) ?? null : null;
|
|
1200
|
+
const secondary = variant === "person" ? node.title : node.subtitle;
|
|
1201
|
+
const href = getHref?.(node.id, node);
|
|
1202
|
+
const actionClass = "bg-primary-600 hover:bg-primary-700 focus-visible:ring-ring inline-flex h-8 items-center gap-1.5 rounded-md px-3 text-sm font-medium text-white focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none";
|
|
1203
|
+
return /* @__PURE__ */ jsxs(
|
|
1204
|
+
"div",
|
|
1205
|
+
{
|
|
1206
|
+
ref,
|
|
1207
|
+
role: "dialog",
|
|
1208
|
+
"aria-modal": "false",
|
|
1209
|
+
"aria-label": node.name,
|
|
1210
|
+
tabIndex: -1,
|
|
1211
|
+
"data-slot": "org-chart-detail",
|
|
1212
|
+
className: cn(
|
|
1213
|
+
"bg-card text-foreground border-border absolute end-3 top-3 z-10 w-72 max-w-[calc(100%-1.5rem)] rounded-lg border p-4 shadow-lg focus:outline-none",
|
|
1214
|
+
className
|
|
1215
|
+
),
|
|
1216
|
+
children: [
|
|
1217
|
+
/* @__PURE__ */ jsx(
|
|
1218
|
+
"button",
|
|
1219
|
+
{
|
|
1220
|
+
type: "button",
|
|
1221
|
+
"aria-label": labels.close,
|
|
1222
|
+
onClick: onClose,
|
|
1223
|
+
className: "text-muted-foreground hover:bg-muted focus-visible:ring-ring absolute end-2 top-2 rounded p-1 focus-visible:ring-2 focus-visible:outline-none",
|
|
1224
|
+
children: /* @__PURE__ */ jsx(X, { "aria-hidden": "true", className: "size-4" })
|
|
1225
|
+
}
|
|
1226
|
+
),
|
|
1227
|
+
renderDetail ? renderDetail(node, { directReports, orgSize, parent, close: onClose }) : /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 pe-6", children: [
|
|
1228
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
1229
|
+
variant === "person" && /* @__PURE__ */ jsx(Avatar, { src: node.avatarUrl, name: node.name, alt: "", size: "lg" }),
|
|
1230
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
1231
|
+
/* @__PURE__ */ jsx("p", { className: "text-foreground font-semibold", children: node.name }),
|
|
1232
|
+
secondary && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: secondary })
|
|
1233
|
+
] })
|
|
1234
|
+
] }),
|
|
1235
|
+
(node.group || renderBadges) && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-1.5", children: [
|
|
1236
|
+
node.group && /* @__PURE__ */ jsx(GroupPill, { group: node.group, accent }),
|
|
1237
|
+
renderBadges?.(node)
|
|
1238
|
+
] }),
|
|
1239
|
+
/* @__PURE__ */ jsxs("ul", { className: "text-muted-foreground flex flex-col gap-1 text-sm", children: [
|
|
1240
|
+
parent && /* @__PURE__ */ jsx("li", { children: labels.reportsTo(parent.name) }),
|
|
1241
|
+
/* @__PURE__ */ jsx("li", { children: labels.directReports(directReports) }),
|
|
1242
|
+
orgSize > directReports && /* @__PURE__ */ jsx("li", { children: labels.orgSize(orgSize) })
|
|
1243
|
+
] }),
|
|
1244
|
+
href ? /* @__PURE__ */ jsxs(
|
|
1245
|
+
"a",
|
|
1246
|
+
{
|
|
1247
|
+
href,
|
|
1248
|
+
className: cn(actionClass, "self-start"),
|
|
1249
|
+
onClick: (e) => {
|
|
1250
|
+
if (!onOpen || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey)
|
|
1251
|
+
return;
|
|
1252
|
+
e.preventDefault();
|
|
1253
|
+
onOpen(node.id, node);
|
|
1254
|
+
},
|
|
1255
|
+
children: [
|
|
1256
|
+
labels.open,
|
|
1257
|
+
/* @__PURE__ */ jsx(ExternalLink, { "aria-hidden": "true", className: "size-3.5" })
|
|
1258
|
+
]
|
|
1259
|
+
}
|
|
1260
|
+
) : onOpen && /* @__PURE__ */ jsx(
|
|
1261
|
+
"button",
|
|
1262
|
+
{
|
|
1263
|
+
type: "button",
|
|
1264
|
+
className: cn(actionClass, "self-start"),
|
|
1265
|
+
onClick: () => onOpen(node.id, node),
|
|
1266
|
+
children: labels.open
|
|
1267
|
+
}
|
|
1268
|
+
)
|
|
1269
|
+
] })
|
|
1270
|
+
]
|
|
1271
|
+
}
|
|
1272
|
+
);
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
export { ORG_CHART_GROUP_ACCENTS, ORG_CHART_LAYOUT_OPTIONS, OrgChart, defaultOrgChartLabels };
|
|
1276
|
+
//# sourceMappingURL=org-chart.js.map
|
|
1277
|
+
//# sourceMappingURL=org-chart.js.map
|