@mieweb/ui 0.10.0-dev.9 → 0.11.0-dev.0

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