@kdcloudjs/shoelace 1.0.29 → 1.0.31

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 (651) hide show
  1. package/cdn/chunks/{chunk.IXK74NKY.js → chunk.24WW36SE.js} +1 -1
  2. package/{dist/chunks/chunk.ZYEU5MVF.js → cdn/chunks/chunk.2I3QE4LS.js} +1 -1
  3. package/cdn/chunks/{chunk.6UZXCK6P.js → chunk.2RHE6UUM.js} +1 -1
  4. package/cdn/chunks/{chunk.OXQMELDN.js → chunk.2TWXBBYA.js} +1 -1
  5. package/cdn/chunks/{chunk.64FMXGBD.js → chunk.2UGFGPFO.js} +1 -1
  6. package/cdn/chunks/{chunk.OKEGJW6Y.js → chunk.2VXAPR3U.js} +1 -1
  7. package/cdn/chunks/{chunk.L74RGBMJ.js → chunk.2XZTJH3J.js} +1 -1
  8. package/cdn/chunks/{chunk.XWGQQ6NF.js → chunk.32QJTA5O.js} +1 -1
  9. package/cdn/chunks/{chunk.YWZB7GE3.js → chunk.3DRIHIOU.js} +1 -1
  10. package/cdn/chunks/chunk.3JHXVHMD.js +152 -0
  11. package/cdn/chunks/{chunk.ZPQFNTKC.js → chunk.3LJIDT6C.js} +1 -1
  12. package/cdn/chunks/chunk.3Q6AWNUW.js +154 -0
  13. package/cdn/chunks/chunk.43HIWDJN.js +11 -0
  14. package/cdn/chunks/{chunk.YOWALB6A.js → chunk.4EK6KNBC.js} +3 -3
  15. package/cdn/chunks/{chunk.SDRTJBSH.js → chunk.4QIMAJZU.js} +27 -9
  16. package/cdn/chunks/{chunk.VXY6IJM2.js → chunk.4ROHG6YW.js} +1 -1
  17. package/cdn/chunks/chunk.5DSHVTBU.js +338 -0
  18. package/cdn/chunks/{chunk.BN5EFUPY.js → chunk.5RGUSMA7.js} +1 -1
  19. package/cdn/chunks/{chunk.VU4ZS5DE.js → chunk.6MAGFWEV.js} +1 -1
  20. package/cdn/chunks/{chunk.P7TUEL7V.js → chunk.6XAK4BE3.js} +1 -1
  21. package/cdn/chunks/{chunk.24RHFOSL.js → chunk.74D4HZDZ.js} +2 -2
  22. package/cdn/chunks/{chunk.6VJJVWDV.js → chunk.77NGAFFB.js} +1 -1
  23. package/cdn/chunks/chunk.7FDLKXHH.js +45 -0
  24. package/cdn/chunks/{chunk.S2ZNUNYX.js → chunk.AIWRCLGO.js} +1 -1
  25. package/cdn/chunks/{chunk.L27ZP5M3.js → chunk.AQCX7OCI.js} +1 -1
  26. package/cdn/chunks/chunk.B5NTZCHJ.js +29 -0
  27. package/cdn/chunks/{chunk.W5B22CS4.js → chunk.BXCHFN5R.js} +1 -1
  28. package/cdn/chunks/{chunk.FEYPR3WK.js → chunk.C4N3GUEY.js} +1 -1
  29. package/cdn/chunks/chunk.CNMRVXFY.js +158 -0
  30. package/cdn/chunks/{chunk.AK3CJEZE.js → chunk.D2DVKNXX.js} +1 -1
  31. package/cdn/chunks/{chunk.K72KXZIJ.js → chunk.DAIAFYJT.js} +1 -1
  32. package/{dist/chunks/chunk.RS5RBPPC.js → cdn/chunks/chunk.DMM3PKQP.js} +1 -1
  33. package/{dist/chunks/chunk.SJFD3WIY.js → cdn/chunks/chunk.DPTOAIBI.js} +1 -1
  34. package/cdn/chunks/{chunk.IU5X6EHL.js → chunk.DR56AOD6.js} +1 -1
  35. package/{dist/chunks/chunk.FZHUM3HC.js → cdn/chunks/chunk.E7KUGXMS.js} +1 -1
  36. package/cdn/chunks/{chunk.JVTUZMLX.js → chunk.EAXP3GJF.js} +1 -1
  37. package/{dist/chunks/chunk.RCQO3ENT.js → cdn/chunks/chunk.EQ6GHEUX.js} +1 -1
  38. package/cdn/chunks/{chunk.7MQOX762.js → chunk.EQM3ROLB.js} +1 -1
  39. package/cdn/chunks/{chunk.K5W33AST.js → chunk.EVHE3P3B.js} +1 -1
  40. package/cdn/chunks/{chunk.FAOO3Q67.js → chunk.F22SPZB3.js} +4 -3
  41. package/cdn/chunks/{chunk.BQ5RKZFW.js → chunk.F4WJ35X3.js} +1 -1
  42. package/cdn/chunks/{chunk.ORT5WHZ4.js → chunk.FFVI2IXF.js} +1 -1
  43. package/cdn/chunks/{chunk.VJXJ24OK.js → chunk.FKC5SAC5.js} +1 -1
  44. package/cdn/chunks/{chunk.A5ILMN26.js → chunk.G62U2BDB.js} +1 -1
  45. package/cdn/chunks/{chunk.CUQWZ7IO.js → chunk.GAP3NMP6.js} +1 -1
  46. package/cdn/chunks/{chunk.UKLPQIYL.js → chunk.GZXB5Q7I.js} +8 -7
  47. package/cdn/chunks/chunk.H5ZKOE44.js +11 -0
  48. package/cdn/chunks/{chunk.AAHHK24C.js → chunk.HAFCRWWF.js} +7 -7
  49. package/cdn/chunks/{chunk.JC7NCTV3.js → chunk.HFPCERTR.js} +4 -4
  50. package/cdn/chunks/{chunk.ODCA53YM.js → chunk.HFX36NAZ.js} +1 -1
  51. package/cdn/chunks/{chunk.HDUGD4BT.js → chunk.HH4KTEOX.js} +7 -7
  52. package/cdn/chunks/{chunk.EGWQFRSJ.js → chunk.HZNHRGUW.js} +1 -1
  53. package/cdn/chunks/{chunk.NVO6AEKX.js → chunk.IAH6V4O6.js} +1 -1
  54. package/cdn/chunks/{chunk.D623GSPR.js → chunk.IBFQ4MLS.js} +1 -1
  55. package/cdn/chunks/{chunk.DJAGMFXZ.js → chunk.IFUMP3SM.js} +1 -1
  56. package/cdn/chunks/{chunk.YHGPKOXY.js → chunk.ILBB5HJK.js} +1 -1
  57. package/cdn/chunks/{chunk.FWXONNTU.js → chunk.IXTHDSH2.js} +1 -1
  58. package/{dist/chunks/chunk.4H7NUAAN.js → cdn/chunks/chunk.JGM5QSDL.js} +10 -2
  59. package/cdn/chunks/chunk.K3MR62NZ.js +181 -0
  60. package/{dist/chunks/chunk.QN5KURZ4.js → cdn/chunks/chunk.KF2IXR6F.js} +1 -1
  61. package/cdn/chunks/{chunk.Z3Z4ETP5.js → chunk.KFKG6VML.js} +1 -1
  62. package/{dist/chunks/chunk.RRE67WPJ.js → cdn/chunks/chunk.KHAA7DOA.js} +1 -1
  63. package/cdn/chunks/{chunk.M4S2IRFM.js → chunk.L3XGNBZC.js} +1 -1
  64. package/cdn/chunks/{chunk.PLPY7MLS.js → chunk.L54BOFZZ.js} +1 -1
  65. package/{dist/chunks/chunk.U3TBBNK7.js → cdn/chunks/chunk.LEWH7YKP.js} +1 -1
  66. package/{dist/chunks/chunk.QBOVLXXP.js → cdn/chunks/chunk.LRDC5FNM.js} +1 -1
  67. package/cdn/chunks/{chunk.3K5NTKB5.js → chunk.LRHB4GGU.js} +1 -1
  68. package/cdn/chunks/chunk.M22RVKD5.js +1156 -0
  69. package/cdn/chunks/{chunk.OHEL4NP5.js → chunk.MNIYL75K.js} +4 -4
  70. package/cdn/chunks/{chunk.WP3ZMSVT.js → chunk.MOGUH7GN.js} +1 -1
  71. package/{dist/chunks/chunk.UT7IPPSO.js → cdn/chunks/chunk.MOXXBMVH.js} +1 -1
  72. package/cdn/chunks/{chunk.FMPFP5OE.js → chunk.MRLC3567.js} +1 -1
  73. package/{dist/chunks/chunk.IJ3VMW2R.js → cdn/chunks/chunk.MW477ANT.js} +1 -1
  74. package/cdn/chunks/{chunk.OCJROKVC.js → chunk.MYLFX5LX.js} +1 -1
  75. package/cdn/chunks/{chunk.AIOAAHPL.js → chunk.NBCWBDT4.js} +1 -1
  76. package/cdn/chunks/{chunk.DN35DSU5.js → chunk.NBWMMBCI.js} +1 -1
  77. package/cdn/chunks/{chunk.MOV5RV53.js → chunk.NKXBOUPT.js} +1 -1
  78. package/cdn/chunks/{chunk.S23U5OGR.js → chunk.NPB5H3GH.js} +1 -1
  79. package/cdn/chunks/{chunk.H7LVX6WK.js → chunk.NSCQ5BDB.js} +1 -1
  80. package/cdn/chunks/chunk.NYQXSK4K.js +11 -0
  81. package/cdn/chunks/{chunk.N7W7BBNU.js → chunk.NZU6BSSA.js} +227 -0
  82. package/{dist/chunks/chunk.F5KDDEGG.js → cdn/chunks/chunk.NZXWOPL3.js} +1 -1
  83. package/cdn/chunks/{chunk.3FO6PJTD.js → chunk.O7BMIARB.js} +1 -1
  84. package/cdn/chunks/{chunk.WFGZ25EF.js → chunk.OBQXUZUT.js} +4 -4
  85. package/cdn/chunks/{chunk.22L6GGEN.js → chunk.OPUWOUN3.js} +1 -1
  86. package/cdn/chunks/{chunk.XPSRGG4H.js → chunk.OTYDDGYD.js} +1 -1
  87. package/cdn/chunks/{chunk.TBG5G4ET.js → chunk.PBB7322Y.js} +1 -1
  88. package/cdn/chunks/{chunk.2CWFRKQO.js → chunk.PG6GVAA4.js} +3 -3
  89. package/cdn/chunks/{chunk.ENXY5MW5.js → chunk.PLJLGB2U.js} +1 -1
  90. package/{dist/chunks/chunk.QZ6SOV43.js → cdn/chunks/chunk.POIE2XDG.js} +1 -1
  91. package/cdn/chunks/{chunk.4KPHRQ7L.js → chunk.PTU5C4HV.js} +1 -1
  92. package/{dist/chunks/chunk.I7A23GA6.js → cdn/chunks/chunk.QFZJJX6A.js} +1 -1
  93. package/cdn/chunks/chunk.QMAX5HQE.js +11 -0
  94. package/cdn/chunks/{chunk.XCZ57DS7.js → chunk.QPXE274O.js} +1 -1
  95. package/{dist/chunks/chunk.CSVWI6Y4.js → cdn/chunks/chunk.QROBXPC7.js} +1 -1
  96. package/{dist/chunks/chunk.ID3OSK4H.js → cdn/chunks/chunk.RJ3FTBIG.js} +1 -1
  97. package/cdn/chunks/{chunk.DKLBJEHD.js → chunk.RNK6BFDN.js} +11 -11
  98. package/{dist/chunks/chunk.MEBOP6MN.js → cdn/chunks/chunk.RSOAZPCO.js} +1 -1
  99. package/cdn/chunks/{chunk.77A7ZSJQ.js → chunk.RSREJ5ZX.js} +1 -1
  100. package/cdn/chunks/{chunk.ARH726IJ.js → chunk.S35STP65.js} +1 -1
  101. package/{dist/chunks/chunk.EBJFB5ED.js → cdn/chunks/chunk.S5S2NY35.js} +1 -1
  102. package/cdn/chunks/chunk.SFJXFFYI.js +24 -0
  103. package/cdn/chunks/chunk.SGCGLCRE.js +24 -0
  104. package/cdn/chunks/{chunk.2IJ4DOTI.js → chunk.SRPRGHBX.js} +1 -1
  105. package/cdn/chunks/chunk.SSB6QUTO.js +24 -0
  106. package/{dist/chunks/chunk.FJILDL42.js → cdn/chunks/chunk.STU2GAK3.js} +1 -1
  107. package/cdn/chunks/{chunk.IF3S5BNR.js → chunk.STYVQ3GY.js} +1 -1
  108. package/cdn/chunks/{chunk.ZNIGUQLJ.js → chunk.SXN43BZH.js} +1 -1
  109. package/cdn/chunks/{chunk.HIHQQRTZ.js → chunk.SZDK7V5H.js} +2 -2
  110. package/cdn/chunks/{chunk.AXVQ6SZ6.js → chunk.T4N2FGGL.js} +1 -1
  111. package/cdn/chunks/{chunk.KP4WXHNO.js → chunk.T5VRBH5J.js} +4 -4
  112. package/{dist/chunks/chunk.VDIOOKK3.js → cdn/chunks/chunk.T7OBFEH3.js} +1 -1
  113. package/{dist/chunks/chunk.566J3G5O.js → cdn/chunks/chunk.TKYOUUS4.js} +1 -1
  114. package/cdn/chunks/{chunk.UK67OQX4.js → chunk.TNUMW7A7.js} +1 -1
  115. package/cdn/chunks/chunk.UCVTBQUH.js +89 -0
  116. package/{dist/chunks/chunk.7ENY6KCX.js → cdn/chunks/chunk.UNHUSGU4.js} +1 -1
  117. package/cdn/chunks/chunk.UUVTBD2A.js +34 -0
  118. package/{dist/chunks/chunk.TJEPUVRV.js → cdn/chunks/chunk.V4N7IJQQ.js} +1 -1
  119. package/cdn/chunks/{chunk.J5NOE5GV.js → chunk.VAUFSUSB.js} +1 -1
  120. package/cdn/chunks/{chunk.CEKIG6XK.js → chunk.VBKSHZG6.js} +1 -1
  121. package/cdn/chunks/chunk.VKB6LKH4.js +91 -0
  122. package/{dist/chunks/chunk.77DZUVS6.js → cdn/chunks/chunk.VPGMGU5T.js} +1 -1
  123. package/cdn/chunks/{chunk.JNFUW4AH.js → chunk.VQ4QS2IG.js} +4 -4
  124. package/cdn/chunks/{chunk.EY32EKVK.js → chunk.VQZYCZBT.js} +4 -4
  125. package/cdn/chunks/{chunk.IGSMYZPJ.js → chunk.VVNUUKOU.js} +1 -1
  126. package/cdn/chunks/{chunk.QT6GUJBT.js → chunk.VYSCBDFH.js} +1 -1
  127. package/cdn/chunks/chunk.WBCR74E3.js +25 -0
  128. package/cdn/chunks/chunk.WEXM5ZNH.js +11 -0
  129. package/cdn/chunks/{chunk.W2JTEAS7.js → chunk.WPESYCFW.js} +1 -1
  130. package/cdn/chunks/{chunk.GFQ55FWN.js → chunk.WTJDLUX5.js} +7 -7
  131. package/cdn/chunks/{chunk.3T64H6HE.js → chunk.X3YUXAYG.js} +1 -1
  132. package/cdn/chunks/{chunk.JYH4JK7N.js → chunk.XNGBMHEJ.js} +2 -2
  133. package/cdn/chunks/{chunk.5ETPM5Y2.js → chunk.XRHTDMWI.js} +16 -12
  134. package/cdn/chunks/{chunk.VCCYYUGH.js → chunk.XTB2EMPO.js} +4 -4
  135. package/cdn/chunks/{chunk.E3KU5ZUQ.js → chunk.XTZD43PS.js} +1 -1
  136. package/cdn/chunks/{chunk.N2OQN5XQ.js → chunk.XY7Q4XXB.js} +1 -1
  137. package/{dist/chunks/chunk.LI6FEX4U.js → cdn/chunks/chunk.XZLP3R7F.js} +1 -1
  138. package/cdn/chunks/{chunk.I7QQDK7H.js → chunk.YATAWBAE.js} +1 -1
  139. package/cdn/chunks/{chunk.UXGLUGIV.js → chunk.YCNZNFG7.js} +2 -3
  140. package/{dist/chunks/chunk.2AGMSWQ3.js → cdn/chunks/chunk.YLTSE26T.js} +1 -1
  141. package/cdn/chunks/{chunk.BUTJ2U7V.js → chunk.YNIOT4PI.js} +8 -8
  142. package/cdn/chunks/{chunk.HNN73HJU.js → chunk.YNJYQXVB.js} +480 -8
  143. package/cdn/chunks/{chunk.N5NZNXBO.js → chunk.Z5YUILXA.js} +5 -5
  144. package/cdn/chunks/{chunk.MVBM42IW.js → chunk.ZFCRZORN.js} +1 -1
  145. package/cdn/chunks/{chunk.64S2MHOQ.js → chunk.ZIDTQCIT.js} +1 -1
  146. package/cdn/chunks/{chunk.BRSGTB5E.js → chunk.ZTVV5FSP.js} +1 -1
  147. package/cdn/chunks/{chunk.6WQO4RV4.js → chunk.ZUG342V6.js} +1 -1
  148. package/cdn/chunks/{chunk.G2AWY2X3.js → chunk.ZVNL2EA7.js} +1 -1
  149. package/cdn/chunks/{chunk.EQDPX25E.js → chunk.ZX24V6F5.js} +4 -4
  150. package/cdn/components/alert/alert.component.js +7 -7
  151. package/cdn/components/alert/alert.js +8 -8
  152. package/cdn/components/animated-image/animated-image.component.js +4 -4
  153. package/cdn/components/animated-image/animated-image.js +5 -5
  154. package/cdn/components/avatar/avatar.component.js +3 -3
  155. package/cdn/components/avatar/avatar.js +4 -4
  156. package/cdn/components/breadcrumb/breadcrumb.component.js +3 -3
  157. package/cdn/components/breadcrumb/breadcrumb.js +4 -4
  158. package/cdn/components/button/button.component.js +5 -5
  159. package/cdn/components/button/button.js +6 -6
  160. package/cdn/components/calendar/calendar.component.js +8 -8
  161. package/cdn/components/calendar/calendar.js +8 -8
  162. package/cdn/components/carousel/carousel.component.js +3 -3
  163. package/cdn/components/carousel/carousel.js +4 -4
  164. package/cdn/components/checkbox/checkbox.component.js +4 -4
  165. package/cdn/components/checkbox/checkbox.js +5 -5
  166. package/cdn/components/color-picker/color-picker.component.js +12 -12
  167. package/cdn/components/color-picker/color-picker.js +13 -13
  168. package/cdn/components/copy-button/copy-button.component.js +4 -4
  169. package/cdn/components/copy-button/copy-button.js +5 -5
  170. package/cdn/components/date-panel/date-panel.component.js +11 -11
  171. package/cdn/components/date-panel/date-panel.js +11 -11
  172. package/cdn/components/datepicker/datepicker.component.js +16 -16
  173. package/cdn/components/datepicker/datepicker.js +16 -16
  174. package/cdn/components/daterangepicker/daterangepicker.component.js +21 -10
  175. package/cdn/components/daterangepicker/daterangepicker.js +22 -11
  176. package/cdn/components/daterangepicker/daterangepicker.styles.js +1 -1
  177. package/cdn/components/details/details.component.js +3 -3
  178. package/cdn/components/details/details.js +4 -4
  179. package/cdn/components/dialog/dialog.component.js +6 -6
  180. package/cdn/components/dialog/dialog.js +7 -7
  181. package/cdn/components/drawer/drawer.component.js +6 -6
  182. package/cdn/components/drawer/drawer.js +7 -7
  183. package/cdn/components/dropdown/dropdown.component.js +2 -2
  184. package/cdn/components/dropdown/dropdown.js +3 -3
  185. package/cdn/components/float-button/float-button.component.js +34 -0
  186. package/cdn/components/float-button/float-button.js +35 -0
  187. package/cdn/components/float-button/float-button.styles.js +9 -0
  188. package/cdn/components/float-button-group/float-button-group.component.js +22 -0
  189. package/cdn/components/float-button-group/float-button-group.js +23 -0
  190. package/cdn/components/float-button-group/float-button-group.styles.js +9 -0
  191. package/cdn/components/icon/icon.component.js +2 -2
  192. package/cdn/components/icon/icon.js +3 -3
  193. package/cdn/components/icon-button/icon-button.component.js +3 -3
  194. package/cdn/components/icon-button/icon-button.js +4 -4
  195. package/cdn/components/image-comparer/image-comparer.component.js +3 -3
  196. package/cdn/components/image-comparer/image-comparer.js +4 -4
  197. package/cdn/components/include/include.component.js +2 -2
  198. package/cdn/components/include/include.js +3 -3
  199. package/cdn/components/input/input.component.js +5 -5
  200. package/cdn/components/input/input.js +6 -6
  201. package/cdn/components/menu-item/menu-item.component.js +4 -4
  202. package/cdn/components/menu-item/menu-item.js +5 -5
  203. package/cdn/components/nav/nav.component.js +9 -9
  204. package/cdn/components/nav/nav.js +10 -10
  205. package/cdn/components/nav-submenu/nav-submenu.component.js +4 -4
  206. package/cdn/components/nav-submenu/nav-submenu.js +5 -5
  207. package/cdn/components/option/option.component.js +3 -3
  208. package/cdn/components/option/option.js +4 -4
  209. package/cdn/components/pagination/custom-select.js +9 -9
  210. package/cdn/components/pagination/pagination.component.js +10 -10
  211. package/cdn/components/pagination/pagination.js +10 -10
  212. package/cdn/components/progress-bar/progress-bar.component.js +2 -2
  213. package/cdn/components/progress-bar/progress-bar.js +3 -3
  214. package/cdn/components/radio/radio.component.js +3 -3
  215. package/cdn/components/radio/radio.js +4 -4
  216. package/cdn/components/radio-group/radio-group.component.js +2 -2
  217. package/cdn/components/radio-group/radio-group.js +3 -3
  218. package/cdn/components/range/range.component.js +3 -3
  219. package/cdn/components/range/range.js +4 -4
  220. package/cdn/components/rating/rating.component.js +3 -3
  221. package/cdn/components/rating/rating.js +4 -4
  222. package/cdn/components/select/select.component.js +8 -8
  223. package/cdn/components/select/select.js +9 -9
  224. package/cdn/components/sender/sender.component.js +54 -0
  225. package/cdn/components/sender/sender.js +55 -0
  226. package/cdn/components/sender/sender.styles.js +9 -0
  227. package/cdn/components/sender-header/sender-header.component.js +33 -0
  228. package/cdn/components/sender-header/sender-header.js +34 -0
  229. package/cdn/components/sender-header/sender-header.styles.js +9 -0
  230. package/cdn/components/sender-switch/sender-switch.component.js +33 -0
  231. package/cdn/components/sender-switch/sender-switch.js +34 -0
  232. package/cdn/components/sender-switch/sender-switch.styles.js +9 -0
  233. package/cdn/components/split-panel/split-panel.component.js +2 -2
  234. package/cdn/components/split-panel/split-panel.js +3 -3
  235. package/cdn/components/tab/tab.component.js +5 -5
  236. package/cdn/components/tab/tab.js +6 -6
  237. package/cdn/components/tab-group/tab-group.component.js +5 -5
  238. package/cdn/components/tab-group/tab-group.js +6 -6
  239. package/cdn/components/table/body-table.js +2 -2
  240. package/cdn/components/table/features/index.js +3 -3
  241. package/cdn/components/table/features/row-drag-controller.js +1 -1
  242. package/cdn/components/table/head-table.js +19 -19
  243. package/cdn/components/table/table.component.js +28 -28
  244. package/cdn/components/table/table.js +30 -30
  245. package/cdn/components/tag/tag.component.js +5 -5
  246. package/cdn/components/tag/tag.js +6 -6
  247. package/cdn/components/think/think.component.js +4 -4
  248. package/cdn/components/think/think.js +5 -5
  249. package/cdn/components/think/think.styles.js +1 -1
  250. package/cdn/components/thought-chain-item/thought-chain-item.component.js +3 -3
  251. package/cdn/components/thought-chain-item/thought-chain-item.js +4 -4
  252. package/cdn/components/thought-chain-node/thought-chain-node.component.js +3 -3
  253. package/cdn/components/thought-chain-node/thought-chain-node.js +4 -4
  254. package/cdn/components/time-panel/time-panel.component.js +7 -7
  255. package/cdn/components/time-panel/time-panel.js +7 -7
  256. package/cdn/components/time-panel/time-panel.styles.js +1 -1
  257. package/cdn/components/timepicker/timepicker.component.js +16 -16
  258. package/cdn/components/timepicker/timepicker.js +16 -16
  259. package/cdn/components/tree/tree.component.js +9 -9
  260. package/cdn/components/tree/tree.js +10 -10
  261. package/cdn/components/tree-item/tree-item.component.js +7 -7
  262. package/cdn/components/tree-item/tree-item.js +8 -8
  263. package/cdn/components/x-markdown/markdown/render.js +2 -2
  264. package/cdn/components/x-markdown/x-markdown.component.js +3 -3
  265. package/cdn/components/x-markdown/x-markdown.js +4 -4
  266. package/cdn/custom-elements.json +5099 -3012
  267. package/cdn/react/alert/index.js +8 -8
  268. package/cdn/react/animated-image/index.js +5 -5
  269. package/cdn/react/avatar/index.js +4 -4
  270. package/cdn/react/breadcrumb/index.js +4 -4
  271. package/cdn/react/button/index.js +6 -6
  272. package/cdn/react/carousel/index.js +4 -4
  273. package/cdn/react/checkbox/index.js +5 -5
  274. package/cdn/react/color-picker/index.js +13 -13
  275. package/cdn/react/copy-button/index.js +5 -5
  276. package/cdn/react/date-panel/index.js +12 -12
  277. package/cdn/react/datepicker/index.js +17 -17
  278. package/cdn/react/daterangepicker/index.js +22 -11
  279. package/cdn/react/details/index.js +4 -4
  280. package/cdn/react/dialog/index.js +7 -7
  281. package/cdn/react/drawer/index.js +7 -7
  282. package/cdn/react/dropdown/index.js +3 -3
  283. package/cdn/react/float-button/index.js +35 -0
  284. package/cdn/react/float-button-group/index.js +23 -0
  285. package/cdn/react/icon/index.js +3 -3
  286. package/cdn/react/icon-button/index.js +4 -4
  287. package/cdn/react/image-comparer/index.js +4 -4
  288. package/cdn/react/include/index.js +3 -3
  289. package/cdn/react/index.js +255 -225
  290. package/cdn/react/input/index.js +6 -6
  291. package/cdn/react/menu-item/index.js +5 -5
  292. package/cdn/react/nav/index.js +10 -10
  293. package/cdn/react/nav-submenu/index.js +5 -5
  294. package/cdn/react/option/index.js +4 -4
  295. package/cdn/react/pagination/index.js +11 -11
  296. package/cdn/react/progress-bar/index.js +3 -3
  297. package/cdn/react/radio/index.js +4 -4
  298. package/cdn/react/radio-group/index.js +3 -3
  299. package/cdn/react/range/index.js +4 -4
  300. package/cdn/react/rating/index.js +4 -4
  301. package/cdn/react/select/index.js +9 -9
  302. package/cdn/react/sender/index.js +55 -0
  303. package/cdn/react/sender-header/index.js +34 -0
  304. package/cdn/react/sender-switch/index.js +34 -0
  305. package/cdn/react/split-panel/index.js +3 -3
  306. package/cdn/react/tab/index.js +6 -6
  307. package/cdn/react/tab-group/index.js +6 -6
  308. package/cdn/react/table/index.js +29 -29
  309. package/cdn/react/tag/index.js +6 -6
  310. package/cdn/react/think/index.js +5 -5
  311. package/cdn/react/thought-chain-item/index.js +4 -4
  312. package/cdn/react/thought-chain-node/index.js +4 -4
  313. package/cdn/react/timepicker/index.js +17 -17
  314. package/cdn/react/tree/index.js +10 -10
  315. package/cdn/react/tree-item/index.js +8 -8
  316. package/cdn/react/x-markdown/index.js +4 -4
  317. package/cdn/shoelace.js +272 -242
  318. package/cdn/themes/dark.css +14 -16
  319. package/cdn/themes/dark.styles.js +14 -16
  320. package/cdn/themes/light.css +47 -4
  321. package/cdn/themes/light.styles.js +47 -4
  322. package/cdn/themes/nova.css +20 -52
  323. package/cdn/themes/nova.styles.js +20 -52
  324. package/cdn/types/vue/index.d.ts +615 -340
  325. package/cdn/vscode.html-custom-data.json +468 -277
  326. package/cdn/web-types.json +1622 -1075
  327. package/{cdn/chunks/chunk.VVM2WFCF.js → dist/chunks/chunk.2222Y2UK.js} +1 -1
  328. package/dist/chunks/{chunk.TN7PWYQP.js → chunk.24YRDJWM.js} +2 -2
  329. package/dist/chunks/chunk.255ED3AX.js +29 -0
  330. package/dist/chunks/{chunk.4B3M6B7S.js → chunk.277V6KES.js} +1 -1
  331. package/dist/chunks/{chunk.F3B2VXIE.js → chunk.2T32M5MK.js} +7 -7
  332. package/dist/chunks/{chunk.RSLDQNZV.js → chunk.2ZZFGPJB.js} +1 -1
  333. package/{cdn/chunks/chunk.PRUWH44M.js → dist/chunks/chunk.3BI3ZBWV.js} +1 -1
  334. package/dist/chunks/{chunk.LHB2IX4Q.js → chunk.3ONOB433.js} +1 -1
  335. package/dist/chunks/{chunk.JGOR72YW.js → chunk.4QJCVJBF.js} +1 -1
  336. package/dist/chunks/{chunk.HUZFXLTR.js → chunk.4UNNJGN7.js} +3 -3
  337. package/dist/chunks/{chunk.RZEI373K.js → chunk.4UZHYDUY.js} +1 -1
  338. package/dist/chunks/{chunk.SJQBLTVX.js → chunk.4V3MCNCG.js} +4 -4
  339. package/dist/chunks/{chunk.UH4QRZF2.js → chunk.4X653G5O.js} +4 -4
  340. package/dist/chunks/{chunk.BU33S5IX.js → chunk.4XRAGUIQ.js} +1 -1
  341. package/dist/chunks/{chunk.K6WZPHYX.js → chunk.56LFKZBN.js} +1 -1
  342. package/{cdn/chunks/chunk.6YC7EQ35.js → dist/chunks/chunk.576UYCIO.js} +1 -1
  343. package/dist/chunks/{chunk.UUFFPP2C.js → chunk.5XQT43Z6.js} +4 -4
  344. package/dist/chunks/{chunk.LGPVZ5VZ.js → chunk.5YOOCYJR.js} +1 -1
  345. package/dist/chunks/{chunk.VFO6XX4A.js → chunk.6B322ONF.js} +1 -1
  346. package/dist/chunks/{chunk.OX3TLBRT.js → chunk.6JMQ2TIB.js} +1 -1
  347. package/{cdn/chunks/chunk.6WFV6NC7.js → dist/chunks/chunk.73BK3LQW.js} +1 -1
  348. package/dist/chunks/{chunk.KIRCNHCN.js → chunk.75YPNEVH.js} +1 -1
  349. package/dist/chunks/{chunk.3MI6FFND.js → chunk.7FBPST7K.js} +1 -1
  350. package/dist/chunks/{chunk.WYYIVPNV.js → chunk.7HG6ANKZ.js} +1 -1
  351. package/dist/chunks/{chunk.VZFYIASQ.js → chunk.7UIHF6BL.js} +1 -1
  352. package/dist/chunks/chunk.7UUWTJQR.js +178 -0
  353. package/{cdn/chunks/chunk.DTQ34BNA.js → dist/chunks/chunk.A4I7TNK6.js} +1 -1
  354. package/dist/chunks/{chunk.GMC3L4HB.js → chunk.A5FVRZ2V.js} +1 -1
  355. package/dist/chunks/{chunk.3OVZFWLQ.js → chunk.ACYS3462.js} +1 -1
  356. package/dist/chunks/{chunk.MU5AZVCP.js → chunk.AMPAX7MW.js} +1 -1
  357. package/dist/chunks/{chunk.BN4VTNVI.js → chunk.AR55FJTM.js} +1 -1
  358. package/{cdn/chunks/chunk.4H4WSGCJ.js → dist/chunks/chunk.AT6Q3CT3.js} +1 -1
  359. package/{cdn/chunks/chunk.4VDEW5WY.js → dist/chunks/chunk.ATWVDQCS.js} +1 -1
  360. package/dist/chunks/{chunk.FACUDL3Y.js → chunk.AV6HVIYO.js} +1 -1
  361. package/dist/chunks/{chunk.JEIRYLA7.js → chunk.AZ2WMYLE.js} +1 -1
  362. package/dist/chunks/chunk.AZTRAFIF.js +86 -0
  363. package/dist/chunks/{chunk.D3Y3WW77.js → chunk.BDR6VFV5.js} +1 -1
  364. package/dist/chunks/chunk.BW24FEPY.js +42 -0
  365. package/dist/chunks/{chunk.XLVA5ZEI.js → chunk.CBSZF36H.js} +1 -1
  366. package/dist/chunks/{chunk.QEB3AMG2.js → chunk.CJJNKIGS.js} +1 -1
  367. package/dist/chunks/{chunk.LDYNEEPR.js → chunk.CMHVCSO3.js} +1 -1
  368. package/dist/chunks/chunk.CMQDL7CN.js +25 -0
  369. package/dist/chunks/{chunk.VOXZIPYZ.js → chunk.COGPFCGH.js} +1 -1
  370. package/dist/chunks/{chunk.7Q6JJ7KV.js → chunk.CPYCCN74.js} +1 -1
  371. package/{cdn/chunks/chunk.OSXVD4NI.js → dist/chunks/chunk.CS3KGM3I.js} +1 -1
  372. package/dist/chunks/{chunk.2AQN4JQJ.js → chunk.CSJDM3I6.js} +8 -7
  373. package/dist/chunks/chunk.CVSDG6FV.js +24 -0
  374. package/dist/chunks/chunk.D23WFKHD.js +31 -0
  375. package/{cdn/chunks/chunk.72QKDL6S.js → dist/chunks/chunk.D46NZRNK.js} +1 -1
  376. package/dist/chunks/{chunk.MDNVBBZH.js → chunk.D7XNHHL2.js} +4 -3
  377. package/{cdn/chunks/chunk.QRPICAKD.js → dist/chunks/chunk.DEITFGBS.js} +1 -1
  378. package/{cdn/chunks/chunk.62S3UIKH.js → dist/chunks/chunk.DKX5VTND.js} +1 -1
  379. package/dist/chunks/chunk.DNWRKWYS.js +11 -0
  380. package/dist/chunks/{chunk.ADTP5OV5.js → chunk.DQABKHDM.js} +9 -9
  381. package/dist/chunks/{chunk.PLFXQQK7.js → chunk.DTKQCP3B.js} +1 -1
  382. package/dist/chunks/{chunk.WYGWB63T.js → chunk.DVZSBAMK.js} +1 -1
  383. package/dist/chunks/{chunk.IDAAUGHM.js → chunk.F3YAUNWY.js} +1 -1
  384. package/dist/chunks/{chunk.7DCG5NJM.js → chunk.FJR4PM7P.js} +1 -1
  385. package/dist/chunks/{chunk.QYRMBDMM.js → chunk.FZW6GDBE.js} +1 -1
  386. package/dist/chunks/chunk.GGRJO2OJ.js +335 -0
  387. package/dist/chunks/{chunk.ZB5UNZGF.js → chunk.GJTIA2ID.js} +1 -1
  388. package/dist/chunks/{chunk.FHEE6NC4.js → chunk.GT3XTQOL.js} +1 -1
  389. package/dist/chunks/chunk.GURJBGDH.js +24 -0
  390. package/dist/chunks/{chunk.GFT5UP3U.js → chunk.H6E5FUQA.js} +2 -3
  391. package/dist/chunks/{chunk.7RHFV3RB.js → chunk.HEIDKY6A.js} +1 -1
  392. package/dist/chunks/{chunk.PRNRZ46M.js → chunk.HUEJ6FJI.js} +1 -1
  393. package/dist/chunks/chunk.HXJCURBU.js +84 -0
  394. package/dist/chunks/{chunk.PKSNYBHX.js → chunk.I3E7XRJD.js} +1 -1
  395. package/dist/chunks/{chunk.6VOY3F7S.js → chunk.IBO3W47J.js} +4 -4
  396. package/dist/chunks/{chunk.3JH4YGTR.js → chunk.IFLJEMM4.js} +1 -1
  397. package/dist/chunks/{chunk.F5QCDAZD.js → chunk.IIITTBKF.js} +1 -1
  398. package/dist/chunks/{chunk.Q5QQPLBB.js → chunk.IL42CGIL.js} +1 -1
  399. package/dist/chunks/{chunk.7N2XFSOU.js → chunk.INWQRWZW.js} +1 -1
  400. package/dist/chunks/chunk.IPRT4PW2.js +148 -0
  401. package/dist/chunks/{chunk.ZDWVDDKH.js → chunk.IWLHXROM.js} +2 -2
  402. package/dist/chunks/{chunk.QIBAK7JU.js → chunk.J273PGYD.js} +1 -1
  403. package/dist/chunks/{chunk.RB2I5S6R.js → chunk.KFSHKNTI.js} +1 -1
  404. package/dist/chunks/{chunk.4TUTWGUS.js → chunk.KFT7NHGH.js} +227 -0
  405. package/dist/chunks/{chunk.ODVC7KHR.js → chunk.KWBC22UR.js} +28 -10
  406. package/dist/chunks/{chunk.DK37NZTT.js → chunk.KXLNRRER.js} +1 -1
  407. package/dist/chunks/{chunk.CKXVVDDK.js → chunk.LJUGR5OF.js} +4 -4
  408. package/dist/chunks/{chunk.LDKADK5S.js → chunk.LVUUWAFL.js} +480 -8
  409. package/{cdn/chunks/chunk.RN2Q4HOE.js → dist/chunks/chunk.M4PMEYE2.js} +1 -1
  410. package/{cdn/chunks/chunk.HH7XVAMC.js → dist/chunks/chunk.MAWNPWPF.js} +10 -2
  411. package/dist/chunks/{chunk.6D337CRO.js → chunk.MHCVVLCT.js} +1 -1
  412. package/dist/chunks/{chunk.QJTW7WJF.js → chunk.MHMUDAVA.js} +1 -1
  413. package/{cdn/chunks/chunk.7X5AEKPB.js → dist/chunks/chunk.MZLRGXPI.js} +1 -1
  414. package/{cdn/chunks/chunk.4N2I2AUC.js → dist/chunks/chunk.N46JKT2J.js} +1 -1
  415. package/dist/chunks/chunk.N5D2F64K.js +11 -0
  416. package/dist/chunks/{chunk.2HWAAINE.js → chunk.N7JHDJGM.js} +1 -1
  417. package/dist/chunks/{chunk.4GEQTMEV.js → chunk.NJCLPQUU.js} +6 -6
  418. package/{cdn/chunks/chunk.IS65YVZ6.js → dist/chunks/chunk.NKOQAWVZ.js} +1 -1
  419. package/dist/chunks/{chunk.7IZ4S4JF.js → chunk.NOJSANXR.js} +4 -4
  420. package/dist/chunks/{chunk.AR2OP4VW.js → chunk.NYQ75SBP.js} +1 -1
  421. package/dist/chunks/{chunk.6QHPFU7W.js → chunk.ON4ZSL6J.js} +1 -1
  422. package/dist/chunks/{chunk.5WEDPOQM.js → chunk.OSALHQGA.js} +1 -1
  423. package/{cdn/chunks/chunk.JS5UK2QZ.js → dist/chunks/chunk.P43PK6RL.js} +1 -1
  424. package/dist/chunks/{chunk.PJ5F7CV7.js → chunk.PGTN7J4V.js} +4 -4
  425. package/{cdn/chunks/chunk.4KRZJIAJ.js → dist/chunks/chunk.PMI7GCY2.js} +1 -1
  426. package/dist/chunks/{chunk.56HIWCX6.js → chunk.POUWYLGI.js} +1 -1
  427. package/{cdn/chunks/chunk.RD4VINFB.js → dist/chunks/chunk.PW7XZMYT.js} +1 -1
  428. package/{cdn/chunks/chunk.FPMCB7RB.js → dist/chunks/chunk.Q73UA4YW.js} +1 -1
  429. package/dist/chunks/chunk.QAYUT4BX.js +24 -0
  430. package/{cdn/chunks/chunk.WSNHPA4G.js → dist/chunks/chunk.QP5DAVFM.js} +1 -1
  431. package/dist/chunks/{chunk.NPS3ESCM.js → chunk.QQVS2P2C.js} +1 -1
  432. package/{cdn/chunks/chunk.QM45FXEX.js → dist/chunks/chunk.R5WPNMCQ.js} +1 -1
  433. package/dist/chunks/chunk.RS2GWDLW.js +153 -0
  434. package/{cdn/chunks/chunk.TCDIALPO.js → dist/chunks/chunk.RY2V2DAG.js} +1 -1
  435. package/dist/chunks/{chunk.6PXKSSWB.js → chunk.RZAJZ3DQ.js} +1 -1
  436. package/dist/chunks/{chunk.CD3W4OKL.js → chunk.S3JB2UHY.js} +1 -1
  437. package/dist/chunks/{chunk.NNXYAEOE.js → chunk.S4YBE4U3.js} +3 -3
  438. package/dist/chunks/{chunk.5RQBRMVA.js → chunk.S6OTSVTK.js} +1 -1
  439. package/dist/chunks/chunk.SI5MIM74.js +11 -0
  440. package/dist/chunks/{chunk.WNE6EGZT.js → chunk.SL5TVNJJ.js} +7 -7
  441. package/{cdn/chunks/chunk.533QXPAJ.js → dist/chunks/chunk.T2MF4VUY.js} +1 -1
  442. package/dist/chunks/{chunk.Q4TZCBZJ.js → chunk.TDWRSVI2.js} +1 -1
  443. package/dist/chunks/chunk.TFVPZDQP.js +1150 -0
  444. package/dist/chunks/{chunk.4TR2RXVB.js → chunk.TOIQDGSN.js} +1 -1
  445. package/dist/chunks/chunk.TTNMH7HL.js +11 -0
  446. package/dist/chunks/{chunk.5VMZZO5N.js → chunk.U546SMOX.js} +1 -1
  447. package/dist/chunks/{chunk.VR5RMHED.js → chunk.U7ELM3KR.js} +1 -1
  448. package/dist/chunks/{chunk.CLWK62MG.js → chunk.UQBEXQPA.js} +1 -1
  449. package/dist/chunks/{chunk.5KR42J46.js → chunk.VGZSH2J3.js} +1 -1
  450. package/{cdn/chunks/chunk.K7FKD6TO.js → dist/chunks/chunk.VOBHSZHJ.js} +1 -1
  451. package/dist/chunks/{chunk.LQCPIDQK.js → chunk.VTDIICXK.js} +1 -1
  452. package/dist/chunks/{chunk.4L4G75M3.js → chunk.VW4UAUYL.js} +1 -1
  453. package/dist/chunks/chunk.VX2XAZP7.js +149 -0
  454. package/dist/chunks/{chunk.G2POJAIO.js → chunk.W2MX7XQG.js} +1 -1
  455. package/{cdn/chunks/chunk.3ER5B33F.js → dist/chunks/chunk.W2XAF2TT.js} +1 -1
  456. package/dist/chunks/{chunk.QHAMOKMK.js → chunk.W6RAVHWZ.js} +2 -2
  457. package/dist/chunks/{chunk.NGEK5MSS.js → chunk.WDHQTWCE.js} +1 -1
  458. package/dist/chunks/{chunk.LNEYI7LV.js → chunk.WGWXYQAT.js} +4 -4
  459. package/dist/chunks/chunk.WTQNDLPG.js +11 -0
  460. package/dist/chunks/{chunk.LX5NM5NQ.js → chunk.X3FWAJEG.js} +1 -1
  461. package/dist/chunks/{chunk.PAHARZQS.js → chunk.XGK7HEDC.js} +1 -1
  462. package/{cdn/chunks/chunk.27S4WN5H.js → dist/chunks/chunk.XQMCPLLN.js} +1 -1
  463. package/dist/chunks/{chunk.FFNLDJFZ.js → chunk.XZNGEUYB.js} +1 -1
  464. package/dist/chunks/{chunk.KOMHPUGR.js → chunk.YO7DMVSG.js} +8 -8
  465. package/dist/chunks/{chunk.5AT3BVD5.js → chunk.YT7X6G4Q.js} +11 -7
  466. package/dist/chunks/{chunk.2XKG643M.js → chunk.ZE3LRPQR.js} +1 -1
  467. package/dist/chunks/{chunk.67C5V6BY.js → chunk.ZIK6UFCB.js} +4 -4
  468. package/dist/chunks/{chunk.X5WLR642.js → chunk.ZPSIFGI7.js} +1 -1
  469. package/dist/chunks/{chunk.CC7B3VFN.js → chunk.ZXDRF2AZ.js} +1 -1
  470. package/dist/components/alert/alert.component.js +6 -6
  471. package/dist/components/alert/alert.js +7 -7
  472. package/dist/components/animated-image/animated-image.component.js +4 -4
  473. package/dist/components/animated-image/animated-image.js +5 -5
  474. package/dist/components/avatar/avatar.component.js +3 -3
  475. package/dist/components/avatar/avatar.js +4 -4
  476. package/dist/components/breadcrumb/breadcrumb.component.js +3 -3
  477. package/dist/components/breadcrumb/breadcrumb.js +4 -4
  478. package/dist/components/button/button.component.js +4 -4
  479. package/dist/components/button/button.js +5 -5
  480. package/dist/components/calendar/calendar.component.js +7 -7
  481. package/dist/components/calendar/calendar.js +7 -7
  482. package/dist/components/carousel/carousel.component.js +3 -3
  483. package/dist/components/carousel/carousel.js +4 -4
  484. package/dist/components/checkbox/checkbox.component.js +4 -4
  485. package/dist/components/checkbox/checkbox.js +5 -5
  486. package/dist/components/color-picker/color-picker.component.js +10 -10
  487. package/dist/components/color-picker/color-picker.js +11 -11
  488. package/dist/components/copy-button/copy-button.component.js +4 -4
  489. package/dist/components/copy-button/copy-button.js +5 -5
  490. package/dist/components/date-panel/date-panel.component.js +10 -10
  491. package/dist/components/date-panel/date-panel.js +10 -10
  492. package/dist/components/datepicker/datepicker.component.js +15 -15
  493. package/dist/components/datepicker/datepicker.js +15 -15
  494. package/dist/components/daterangepicker/daterangepicker.component.js +20 -9
  495. package/dist/components/daterangepicker/daterangepicker.js +21 -10
  496. package/dist/components/daterangepicker/daterangepicker.styles.js +1 -1
  497. package/dist/components/details/details.component.js +3 -3
  498. package/dist/components/details/details.js +4 -4
  499. package/dist/components/dialog/dialog.component.js +5 -5
  500. package/dist/components/dialog/dialog.js +6 -6
  501. package/dist/components/drawer/drawer.component.js +5 -5
  502. package/dist/components/drawer/drawer.js +6 -6
  503. package/dist/components/float-button/float-button.component.js +27 -0
  504. package/dist/components/float-button/float-button.js +28 -0
  505. package/dist/components/float-button/float-button.styles.js +7 -0
  506. package/dist/components/float-button-group/float-button-group.component.js +17 -0
  507. package/dist/components/float-button-group/float-button-group.js +18 -0
  508. package/dist/components/float-button-group/float-button-group.styles.js +7 -0
  509. package/dist/components/icon/icon.component.js +2 -2
  510. package/dist/components/icon/icon.js +3 -3
  511. package/dist/components/icon-button/icon-button.component.js +3 -3
  512. package/dist/components/icon-button/icon-button.js +4 -4
  513. package/dist/components/image-comparer/image-comparer.component.js +3 -3
  514. package/dist/components/image-comparer/image-comparer.js +4 -4
  515. package/dist/components/include/include.component.js +2 -2
  516. package/dist/components/include/include.js +3 -3
  517. package/dist/components/input/input.component.js +4 -4
  518. package/dist/components/input/input.js +5 -5
  519. package/dist/components/menu-item/menu-item.component.js +4 -4
  520. package/dist/components/menu-item/menu-item.js +5 -5
  521. package/dist/components/nav/nav.component.js +9 -9
  522. package/dist/components/nav/nav.js +10 -10
  523. package/dist/components/nav-submenu/nav-submenu.component.js +4 -4
  524. package/dist/components/nav-submenu/nav-submenu.js +5 -5
  525. package/dist/components/option/option.component.js +3 -3
  526. package/dist/components/option/option.js +4 -4
  527. package/dist/components/pagination/custom-select.js +7 -7
  528. package/dist/components/pagination/pagination.component.js +8 -8
  529. package/dist/components/pagination/pagination.js +8 -8
  530. package/dist/components/radio/radio.component.js +3 -3
  531. package/dist/components/radio/radio.js +4 -4
  532. package/dist/components/radio-group/radio-group.component.js +2 -2
  533. package/dist/components/radio-group/radio-group.js +3 -3
  534. package/dist/components/range/range.component.js +2 -2
  535. package/dist/components/range/range.js +3 -3
  536. package/dist/components/rating/rating.component.js +3 -3
  537. package/dist/components/rating/rating.js +4 -4
  538. package/dist/components/select/select.component.js +7 -7
  539. package/dist/components/select/select.js +8 -8
  540. package/dist/components/sender/sender.component.js +45 -0
  541. package/dist/components/sender/sender.js +46 -0
  542. package/dist/components/sender/sender.styles.js +7 -0
  543. package/dist/components/sender-header/sender-header.component.js +25 -0
  544. package/dist/components/sender-header/sender-header.js +26 -0
  545. package/dist/components/sender-header/sender-header.styles.js +7 -0
  546. package/dist/components/sender-switch/sender-switch.component.js +25 -0
  547. package/dist/components/sender-switch/sender-switch.js +26 -0
  548. package/dist/components/sender-switch/sender-switch.styles.js +7 -0
  549. package/dist/components/tab/tab.component.js +4 -4
  550. package/dist/components/tab/tab.js +5 -5
  551. package/dist/components/tab-group/tab-group.component.js +4 -4
  552. package/dist/components/tab-group/tab-group.js +5 -5
  553. package/dist/components/table/body-table.js +2 -2
  554. package/dist/components/table/features/index.js +3 -3
  555. package/dist/components/table/features/row-drag-controller.js +1 -1
  556. package/dist/components/table/head-table.js +17 -17
  557. package/dist/components/table/table.component.js +25 -25
  558. package/dist/components/table/table.js +27 -27
  559. package/dist/components/tag/tag.component.js +4 -4
  560. package/dist/components/tag/tag.js +5 -5
  561. package/dist/components/think/think.component.js +4 -4
  562. package/dist/components/think/think.js +5 -5
  563. package/dist/components/think/think.styles.js +1 -1
  564. package/dist/components/thought-chain-item/thought-chain-item.component.js +3 -3
  565. package/dist/components/thought-chain-item/thought-chain-item.js +4 -4
  566. package/dist/components/thought-chain-node/thought-chain-node.component.js +3 -3
  567. package/dist/components/thought-chain-node/thought-chain-node.js +4 -4
  568. package/dist/components/time-panel/time-panel.component.js +6 -6
  569. package/dist/components/time-panel/time-panel.js +6 -6
  570. package/dist/components/time-panel/time-panel.styles.js +1 -1
  571. package/dist/components/timepicker/timepicker.component.js +15 -15
  572. package/dist/components/timepicker/timepicker.js +15 -15
  573. package/dist/components/tree/tree.component.js +8 -8
  574. package/dist/components/tree/tree.js +9 -9
  575. package/dist/components/tree-item/tree-item.component.js +6 -6
  576. package/dist/components/tree-item/tree-item.js +7 -7
  577. package/dist/components/x-markdown/markdown/render.js +2 -2
  578. package/dist/components/x-markdown/x-markdown.component.js +3 -3
  579. package/dist/components/x-markdown/x-markdown.js +4 -4
  580. package/dist/custom-elements.json +5099 -3012
  581. package/dist/react/alert/index.js +7 -7
  582. package/dist/react/animated-image/index.js +5 -5
  583. package/dist/react/avatar/index.js +4 -4
  584. package/dist/react/breadcrumb/index.js +4 -4
  585. package/dist/react/button/index.js +5 -5
  586. package/dist/react/carousel/index.js +4 -4
  587. package/dist/react/checkbox/index.js +5 -5
  588. package/dist/react/color-picker/index.js +11 -11
  589. package/dist/react/copy-button/index.js +5 -5
  590. package/dist/react/date-panel/index.js +11 -11
  591. package/dist/react/datepicker/index.js +16 -16
  592. package/dist/react/daterangepicker/index.js +21 -10
  593. package/dist/react/details/index.js +4 -4
  594. package/dist/react/dialog/index.js +6 -6
  595. package/dist/react/drawer/index.js +6 -6
  596. package/dist/react/float-button/index.js +28 -0
  597. package/dist/react/float-button-group/index.js +18 -0
  598. package/dist/react/icon/index.js +3 -3
  599. package/dist/react/icon-button/index.js +4 -4
  600. package/dist/react/image-comparer/index.js +4 -4
  601. package/dist/react/include/index.js +3 -3
  602. package/dist/react/index.js +248 -218
  603. package/dist/react/input/index.js +5 -5
  604. package/dist/react/menu-item/index.js +5 -5
  605. package/dist/react/nav/index.js +10 -10
  606. package/dist/react/nav-submenu/index.js +5 -5
  607. package/dist/react/option/index.js +4 -4
  608. package/dist/react/pagination/index.js +9 -9
  609. package/dist/react/radio/index.js +4 -4
  610. package/dist/react/radio-group/index.js +3 -3
  611. package/dist/react/range/index.js +3 -3
  612. package/dist/react/rating/index.js +4 -4
  613. package/dist/react/select/index.js +8 -8
  614. package/dist/react/sender/index.js +46 -0
  615. package/dist/react/sender-header/index.js +26 -0
  616. package/dist/react/sender-switch/index.js +26 -0
  617. package/dist/react/tab/index.js +5 -5
  618. package/dist/react/tab-group/index.js +5 -5
  619. package/dist/react/table/index.js +26 -26
  620. package/dist/react/tag/index.js +5 -5
  621. package/dist/react/think/index.js +5 -5
  622. package/dist/react/thought-chain-item/index.js +4 -4
  623. package/dist/react/thought-chain-node/index.js +4 -4
  624. package/dist/react/timepicker/index.js +16 -16
  625. package/dist/react/tree/index.js +9 -9
  626. package/dist/react/tree-item/index.js +7 -7
  627. package/dist/react/x-markdown/index.js +4 -4
  628. package/dist/shoelace.js +266 -236
  629. package/dist/themes/dark.css +14 -16
  630. package/dist/themes/dark.styles.js +14 -16
  631. package/dist/themes/light.css +47 -4
  632. package/dist/themes/light.styles.js +47 -4
  633. package/dist/themes/nova.css +20 -52
  634. package/dist/themes/nova.styles.js +20 -52
  635. package/dist/types/vue/index.d.ts +615 -340
  636. package/dist/vscode.html-custom-data.json +468 -277
  637. package/dist/web-types.json +1622 -1075
  638. package/package.json +2 -2
  639. package/cdn/chunks/{chunk.ZNCN2NE6.js → chunk.2AP733KC.js} +3 -3
  640. package/cdn/chunks/{chunk.QHLGXENI.js → chunk.6WEMAOXM.js} +3 -3
  641. package/cdn/chunks/{chunk.3GW6TCA3.js → chunk.7P4TKLSC.js} +3 -3
  642. package/cdn/chunks/{chunk.HIUGXXPV.js → chunk.D2GTY7PE.js} +3 -3
  643. package/cdn/chunks/{chunk.ULJSHWM3.js → chunk.EG5DXJSS.js} +3 -3
  644. package/cdn/chunks/{chunk.TGZRAX7P.js → chunk.JUHP7VBG.js} +3 -3
  645. package/cdn/chunks/{chunk.CFBUJD3D.js → chunk.RQQ7FUGE.js} +3 -3
  646. package/cdn/chunks/{chunk.XLNV2YNC.js → chunk.WUFUS2OW.js} +3 -3
  647. package/dist/chunks/{chunk.4UGGBC4S.js → chunk.GPSGJKTW.js} +3 -3
  648. package/dist/chunks/{chunk.MBBHJ5GO.js → chunk.P6QATVJO.js} +3 -3
  649. package/dist/chunks/{chunk.2XVFEHSO.js → chunk.PHBT3MJN.js} +3 -3
  650. package/dist/chunks/{chunk.3EOJVTR3.js → chunk.UNJJA52B.js} +3 -3
  651. package/dist/chunks/{chunk.TJTYBIR7.js → chunk.XRCLRCVM.js} +3 -3
@@ -0,0 +1,1150 @@
1
+ import {
2
+ SlTextarea
3
+ } from "./chunk.GQGC3KU4.js";
4
+ import {
5
+ SlSelect
6
+ } from "./chunk.YO7DMVSG.js";
7
+ import {
8
+ SlTag
9
+ } from "./chunk.6B322ONF.js";
10
+ import {
11
+ sender_styles_default
12
+ } from "./chunk.GGRJO2OJ.js";
13
+ import {
14
+ SlOption
15
+ } from "./chunk.W2MX7XQG.js";
16
+ import {
17
+ SlInput
18
+ } from "./chunk.IBO3W47J.js";
19
+ import {
20
+ SlButton
21
+ } from "./chunk.4V3MCNCG.js";
22
+ import {
23
+ SlSpinner
24
+ } from "./chunk.F2BIKL72.js";
25
+ import {
26
+ SlIconButton
27
+ } from "./chunk.QQVS2P2C.js";
28
+ import {
29
+ SlIcon
30
+ } from "./chunk.XRCLRCVM.js";
31
+ import {
32
+ component_styles_default
33
+ } from "./chunk.TUVJKY7S.js";
34
+ import {
35
+ ShoelaceElement
36
+ } from "./chunk.JRE3XEGV.js";
37
+ import {
38
+ __decorateClass,
39
+ __spreadProps,
40
+ __spreadValues
41
+ } from "./chunk.W5KB6T3Z.js";
42
+
43
+ // src/components/sender/sender.component.ts
44
+ import { html } from "lit";
45
+ import { property, query, state } from "lit/decorators.js";
46
+ import { classMap } from "lit/directives/class-map.js";
47
+ var SlSender = class extends ShoelaceElement {
48
+ constructor() {
49
+ super(...arguments);
50
+ this.value = "";
51
+ this.placeholder = "";
52
+ this.loading = false;
53
+ this.disabled = false;
54
+ this.readOnly = false;
55
+ this.rows = 1;
56
+ this.submitType = "enter";
57
+ this.allowSpeech = false;
58
+ this.speechRecording = false;
59
+ // SpeechRecognition 实例,用于浏览器内置语音输入
60
+ this.recognition = null;
61
+ // 麦克风权限状态缓存
62
+ this.permissionState = null;
63
+ // PermissionStatus 引用,用于移除 onchange 监听
64
+ this.permissionStatus = null;
65
+ // 强制停止时忽略下一次转写结果
66
+ this.forceBreak = false;
67
+ this.slotValues = /* @__PURE__ */ new Map();
68
+ this.hasHeaderContent = false;
69
+ this.hasFooterContent = false;
70
+ this.handleInput = (event) => {
71
+ this.value = event.target.value;
72
+ this.dispatchEvent(new CustomEvent("sl-change", {
73
+ detail: { value: this.value, slotConfig: [], skill: this.skill },
74
+ bubbles: true,
75
+ composed: true
76
+ }));
77
+ };
78
+ this.handleFocus = () => {
79
+ this.emit("sl-focus");
80
+ };
81
+ this.handleBlur = () => {
82
+ this.emit("sl-blur");
83
+ };
84
+ /** 处理 slot 区域的自由文本输入 */
85
+ this.handleSlotAreaInput = () => {
86
+ const snapshot = this.getEditorSnapshot();
87
+ this.value = snapshot.value;
88
+ this.dispatchEvent(new CustomEvent("sl-change", {
89
+ detail: snapshot,
90
+ bubbles: true,
91
+ composed: true
92
+ }));
93
+ };
94
+ this.handlePaste = (event) => {
95
+ var _a;
96
+ this.dispatchEvent(new CustomEvent("sl-paste", {
97
+ detail: { event },
98
+ bubbles: true,
99
+ composed: true
100
+ }));
101
+ const files = (_a = event.clipboardData) == null ? void 0 : _a.files;
102
+ if (files == null ? void 0 : files.length) {
103
+ this.dispatchEvent(new CustomEvent("sl-paste-file", {
104
+ detail: { files },
105
+ bubbles: true,
106
+ composed: true
107
+ }));
108
+ }
109
+ };
110
+ this.handleSlotValueChange = (key, value) => {
111
+ this.slotValues.set(key, value);
112
+ this.requestUpdate();
113
+ this.updateComplete.then(() => {
114
+ const snapshot = this.getEditorSnapshot();
115
+ this.value = snapshot.value;
116
+ this.dispatchEvent(new CustomEvent("sl-change", {
117
+ detail: snapshot,
118
+ bubbles: true,
119
+ composed: true
120
+ }));
121
+ });
122
+ };
123
+ }
124
+ /**
125
+ * 聚焦输入区域,支持 cursor 选项控制光标位置。
126
+ * - 'end'(默认):光标移到内容末尾
127
+ * - 'start':光标移到内容开头
128
+ * - 'all':全选内容
129
+ * - 'slot':聚焦第一个 slot input,若不存在则等同 'end'
130
+ */
131
+ focus(options) {
132
+ var _a, _b, _c, _d, _e, _f, _g;
133
+ const preventScroll = (_a = options == null ? void 0 : options.preventScroll) != null ? _a : false;
134
+ const cursor = (_b = options == null ? void 0 : options.cursor) != null ? _b : "end";
135
+ if (this.isSlotMode) {
136
+ const slotArea = this.slotArea;
137
+ if (!slotArea) return;
138
+ if (cursor === "slot") {
139
+ const firstSlotInput = (_c = this.shadowRoot) == null ? void 0 : _c.querySelector(
140
+ ".sender__slot-area sl-input, .sender__slot-area sl-select, .sender__slot-area .sender__slot-content"
141
+ );
142
+ if (firstSlotInput) {
143
+ firstSlotInput.focus({ preventScroll });
144
+ return;
145
+ }
146
+ this.focusSlotAreaAt(slotArea, "end", preventScroll);
147
+ return;
148
+ }
149
+ if (cursor === "all") {
150
+ slotArea.focus({ preventScroll });
151
+ const selection = document.getSelection();
152
+ if (selection) {
153
+ const range = document.createRange();
154
+ range.selectNodeContents(slotArea);
155
+ const skillEl = slotArea.querySelector(".sender__skill");
156
+ if (skillEl) {
157
+ const idx = Array.from(slotArea.childNodes).indexOf(skillEl);
158
+ if (idx >= 0) range.setStart(slotArea, idx + 1);
159
+ }
160
+ selection.removeAllRanges();
161
+ selection.addRange(range);
162
+ }
163
+ return;
164
+ }
165
+ this.focusSlotAreaAt(slotArea, cursor, preventScroll);
166
+ return;
167
+ }
168
+ const textareaEl = (_e = (_d = this.textarea) == null ? void 0 : _d.shadowRoot) == null ? void 0 : _e.querySelector("textarea");
169
+ if (!textareaEl) {
170
+ (_f = this.textarea) == null ? void 0 : _f.focus({ preventScroll });
171
+ return;
172
+ }
173
+ (_g = this.textarea) == null ? void 0 : _g.focus({ preventScroll });
174
+ if (cursor === "start") {
175
+ textareaEl.setSelectionRange(0, 0);
176
+ } else if (cursor === "all") {
177
+ textareaEl.setSelectionRange(0, textareaEl.value.length);
178
+ } else {
179
+ const len = textareaEl.value.length;
180
+ textareaEl.setSelectionRange(len, len);
181
+ }
182
+ }
183
+ /** slot 模式下将光标定位到 slotArea 的 start 或 end */
184
+ focusSlotAreaAt(slotArea, position, preventScroll) {
185
+ slotArea.focus({ preventScroll });
186
+ const selection = document.getSelection();
187
+ if (!selection) return;
188
+ const range = document.createRange();
189
+ range.selectNodeContents(slotArea);
190
+ if (position === "start") {
191
+ const skillEl = slotArea.querySelector(".sender__skill");
192
+ if (skillEl) {
193
+ const idx = Array.from(slotArea.childNodes).indexOf(skillEl);
194
+ if (idx >= 0) range.setStart(slotArea, idx + 1);
195
+ }
196
+ range.collapse(true);
197
+ } else {
198
+ range.collapse(false);
199
+ }
200
+ selection.removeAllRanges();
201
+ selection.addRange(range);
202
+ }
203
+ /** 移除输入区域焦点 */
204
+ blur() {
205
+ var _a, _b;
206
+ if (this.isSlotMode) {
207
+ (_a = this.slotArea) == null ? void 0 : _a.blur();
208
+ } else {
209
+ (_b = this.textarea) == null ? void 0 : _b.blur();
210
+ }
211
+ }
212
+ /** 清空输入内容,slot 模式下同时重置 slotValues */
213
+ clear() {
214
+ this.handleClear();
215
+ }
216
+ /** 获取当前输入值,slot 模式下返回完整的 { value, slotConfig, skill } */
217
+ getValue() {
218
+ if (this.isSlotMode) {
219
+ return this.getEditorSnapshot();
220
+ }
221
+ return { value: this.value, slotConfig: [], skill: void 0 };
222
+ }
223
+ /**
224
+ * 插入文本或 slot 配置项到输入区域
225
+ * slot 模式下将 slotConfig 项渲染为 DOM 节点插入到 slot-area
226
+ * 普通模式下将各项文本拼接后插入到 textarea
227
+ */
228
+ insert(slotConfig, position = "end", _replaceCharacters, preventScroll) {
229
+ if (!slotConfig || slotConfig.length === 0) return;
230
+ if (this.isSlotMode) {
231
+ this.insertSlotNodes(slotConfig, position, preventScroll);
232
+ } else {
233
+ const text = slotConfig.filter((item) => item.type === "text").map((item) => {
234
+ var _a;
235
+ return (_a = item.value) != null ? _a : "";
236
+ }).join("");
237
+ if (!text) return;
238
+ this.insertTextToTextarea(text, position);
239
+ }
240
+ const snapshot = this.isSlotMode ? this.getEditorSnapshot() : { value: this.value, slotConfig: [], skill: void 0 };
241
+ this.dispatchEvent(new CustomEvent("sl-change", {
242
+ detail: snapshot,
243
+ bubbles: true,
244
+ composed: true
245
+ }));
246
+ }
247
+ /** 普通模式下插入文本到 textarea */
248
+ insertTextToTextarea(text, position) {
249
+ var _a, _b;
250
+ if (position === "start") {
251
+ this.value = text + this.value;
252
+ } else if (position === "end") {
253
+ this.value = this.value + text;
254
+ } else {
255
+ const textareaEl = (_b = (_a = this.textarea) == null ? void 0 : _a.shadowRoot) == null ? void 0 : _b.querySelector("textarea");
256
+ if (textareaEl && typeof textareaEl.selectionStart === "number") {
257
+ const start = textareaEl.selectionStart;
258
+ const end = textareaEl.selectionEnd;
259
+ this.value = this.value.slice(0, start) + text + this.value.slice(end);
260
+ this.updateComplete.then(() => {
261
+ const newPos = start + text.length;
262
+ textareaEl.setSelectionRange(newPos, newPos);
263
+ });
264
+ } else {
265
+ this.value = this.value + text;
266
+ }
267
+ }
268
+ }
269
+ /** slot 模式下将 slotConfig 项创建为 DOM 节点并插入到 slot-area */
270
+ insertSlotNodes(configs, position, preventScroll) {
271
+ var _a;
272
+ const slotArea = (_a = this.shadowRoot) == null ? void 0 : _a.querySelector(".sender__slot-area");
273
+ if (!slotArea) return;
274
+ const fragment = document.createDocumentFragment();
275
+ configs.forEach((config, i) => {
276
+ var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
277
+ if (config.type === "text") {
278
+ fragment.appendChild(document.createTextNode(String((_a2 = config.value) != null ? _a2 : "")));
279
+ return;
280
+ }
281
+ const key = (_b = config.key) != null ? _b : `insert-${Date.now()}-${i}`;
282
+ const defaultValue = this.getSlotDefaultValue(config);
283
+ if (defaultValue !== void 0) {
284
+ this.slotValues.set(key, defaultValue);
285
+ }
286
+ if (config.type === "tag") {
287
+ const tag = document.createElement("sl-tag");
288
+ tag.setAttribute("size", "small");
289
+ tag.setAttribute("data-slot-key", key);
290
+ tag.className = "sender__slot-tag";
291
+ tag.textContent = String((_f = (_e = (_c = config.props) == null ? void 0 : _c.label) != null ? _e : (_d = config.props) == null ? void 0 : _d.value) != null ? _f : "");
292
+ fragment.appendChild(tag);
293
+ } else if (config.type === "input") {
294
+ const input = document.createElement("sl-input");
295
+ input.setAttribute("size", "small");
296
+ input.setAttribute("data-slot-key", key);
297
+ input.className = "sender__slot-input";
298
+ if ((_g = config.props) == null ? void 0 : _g.placeholder) input.setAttribute("placeholder", config.props.placeholder);
299
+ if ((_h = config.props) == null ? void 0 : _h.defaultValue) input.value = String(config.props.defaultValue);
300
+ input.addEventListener("sl-input", () => {
301
+ this.handleSlotValueChange(key, input.value);
302
+ });
303
+ fragment.appendChild(input);
304
+ } else if (config.type === "select") {
305
+ const select = document.createElement("sl-select");
306
+ select.setAttribute("size", "small");
307
+ select.setAttribute("data-slot-key", key);
308
+ select.className = "sender__slot-select";
309
+ if ((_i = config.props) == null ? void 0 : _i.placeholder) select.setAttribute("placeholder", config.props.placeholder);
310
+ ((_k = (_j = config.props) == null ? void 0 : _j.options) != null ? _k : []).forEach((opt) => {
311
+ const option = document.createElement("sl-option");
312
+ option.setAttribute("value", opt.value);
313
+ option.textContent = String(opt.label);
314
+ select.appendChild(option);
315
+ });
316
+ if ((_l = config.props) == null ? void 0 : _l.defaultValue) select.value = String(config.props.defaultValue);
317
+ select.addEventListener("sl-change", () => {
318
+ this.handleSlotValueChange(key, select.value);
319
+ });
320
+ fragment.appendChild(select);
321
+ } else if (config.type === "content") {
322
+ const span = document.createElement("span");
323
+ span.className = "sender__slot-content";
324
+ span.setAttribute("contenteditable", this.readOnly || this.disabled ? "false" : "true");
325
+ span.setAttribute("data-slot-key", key);
326
+ if ((_m = config.props) == null ? void 0 : _m.placeholder) span.setAttribute("data-placeholder", config.props.placeholder);
327
+ span.setAttribute("spellcheck", "false");
328
+ span.textContent = String((_o = (_n = config.props) == null ? void 0 : _n.defaultValue) != null ? _o : "");
329
+ span.addEventListener("input", () => {
330
+ var _a3;
331
+ this.handleSlotValueChange(key, (_a3 = span.textContent) != null ? _a3 : "");
332
+ });
333
+ fragment.appendChild(span);
334
+ }
335
+ });
336
+ if (position === "start") {
337
+ const skillEl = slotArea.querySelector(".sender__skill");
338
+ if (skillEl) {
339
+ skillEl.after(fragment);
340
+ } else {
341
+ slotArea.prepend(fragment);
342
+ }
343
+ } else if (position === "end") {
344
+ slotArea.appendChild(fragment);
345
+ } else {
346
+ const selection = document.getSelection();
347
+ if (selection && selection.rangeCount > 0) {
348
+ const range = selection.getRangeAt(0);
349
+ if (slotArea.contains(range.commonAncestorContainer)) {
350
+ range.deleteContents();
351
+ range.insertNode(fragment);
352
+ range.collapse(false);
353
+ } else {
354
+ slotArea.appendChild(fragment);
355
+ }
356
+ } else {
357
+ slotArea.appendChild(fragment);
358
+ }
359
+ }
360
+ if (!preventScroll) {
361
+ slotArea.focus({ preventScroll: false });
362
+ }
363
+ }
364
+ handleKeyDown(event) {
365
+ if (event.key === "Enter") {
366
+ const isShift = event.shiftKey;
367
+ if (this.submitType === "enter" && !isShift || this.submitType === "shift-enter" && isShift) {
368
+ event.preventDefault();
369
+ this.handleSubmit();
370
+ }
371
+ }
372
+ }
373
+ handleSubmit() {
374
+ const value = this.currentValue.trim();
375
+ if (this.loading || this.disabled || !value) return;
376
+ if (this.isSlotMode) {
377
+ const snapshot = this.getEditorSnapshot();
378
+ this.dispatchEvent(new CustomEvent("sl-submit", {
379
+ detail: { value: snapshot.value, slotConfig: snapshot.slotConfig, skill: snapshot.skill },
380
+ bubbles: true,
381
+ composed: true
382
+ }));
383
+ return;
384
+ }
385
+ this.dispatchEvent(new CustomEvent("sl-submit", {
386
+ detail: { value },
387
+ bubbles: true,
388
+ composed: true
389
+ }));
390
+ }
391
+ handleClear() {
392
+ var _a, _b;
393
+ if (this.isSlotMode) {
394
+ const slotArea = (_a = this.shadowRoot) == null ? void 0 : _a.querySelector(".sender__slot-area");
395
+ if (slotArea) {
396
+ slotArea.innerHTML = "";
397
+ }
398
+ this.slotValues = /* @__PURE__ */ new Map();
399
+ this.value = "";
400
+ this.requestUpdate();
401
+ } else {
402
+ this.value = "";
403
+ }
404
+ this.emit("sl-clear");
405
+ if (this.isSlotMode) {
406
+ this.updateComplete.then(() => this.focusSlotInput());
407
+ return;
408
+ }
409
+ (_b = this.textarea) == null ? void 0 : _b.focus();
410
+ }
411
+ handleSkillRemove() {
412
+ if (!this.skill) return;
413
+ const closable = this.skill.closable;
414
+ if (typeof closable === "object" && closable.disabled) return;
415
+ if (typeof closable === "object" && closable.onClose) {
416
+ closable.onClose();
417
+ }
418
+ this.skill = void 0;
419
+ this.requestUpdate();
420
+ this.updateComplete.then(() => {
421
+ const snapshot = this.getEditorSnapshot();
422
+ this.dispatchEvent(new CustomEvent("sl-change", {
423
+ detail: __spreadProps(__spreadValues({}, snapshot), { skill: void 0 }),
424
+ bubbles: true,
425
+ composed: true
426
+ }));
427
+ });
428
+ }
429
+ // 触发语音按钮点击逻辑
430
+ handleSpeechClick() {
431
+ if (this.disabled || this.readOnly || !this.allowSpeech) return;
432
+ if (!this.speechPermission) return;
433
+ this.triggerSpeech(false);
434
+ this.emit("sl-speech-toggle");
435
+ }
436
+ connectedCallback() {
437
+ super.connectedCallback();
438
+ this.updatePermissionState();
439
+ }
440
+ disconnectedCallback() {
441
+ super.disconnectedCallback();
442
+ this.cleanupPermissionStatus();
443
+ this.stopRecognition();
444
+ }
445
+ updated(changedProperties) {
446
+ var _a;
447
+ super.updated(changedProperties);
448
+ if (changedProperties.has("allowSpeech")) {
449
+ if (!this.allowSpeech) {
450
+ this.stopRecognition();
451
+ this.cleanupPermissionStatus();
452
+ this.permissionState = null;
453
+ if (this.speechRecording) this.speechRecording = false;
454
+ } else {
455
+ this.updatePermissionState();
456
+ }
457
+ }
458
+ if (changedProperties.has("slotConfig")) {
459
+ this.syncSlotValues((_a = this.slotConfig) != null ? _a : []);
460
+ }
461
+ }
462
+ // 规范化 allowSpeech 配置,区分受控与非受控
463
+ get speechConfig() {
464
+ if (typeof this.allowSpeech === "object" && this.allowSpeech) {
465
+ const controlledRecording = this.allowSpeech.recording;
466
+ const onControlledRecordingChange = this.allowSpeech.onRecordingChange;
467
+ const speechInControlled = typeof controlledRecording === "boolean";
468
+ return { controlledRecording, onControlledRecordingChange, speechInControlled };
469
+ }
470
+ return { controlledRecording: void 0, onControlledRecordingChange: void 0, speechInControlled: false };
471
+ }
472
+ // 当前录音状态(受控配置或内部状态)
473
+ get currentRecording() {
474
+ const { controlledRecording, speechInControlled } = this.speechConfig;
475
+ if (speechInControlled) return !!controlledRecording;
476
+ return this.speechRecording;
477
+ }
478
+ // 当前环境是否允许语音输入
479
+ get speechPermission() {
480
+ if (!this.allowSpeech) return false;
481
+ const { speechInControlled } = this.speechConfig;
482
+ if (speechInControlled) return true;
483
+ const SpeechRecognition = this.getSpeechRecognitionConstructor();
484
+ return !!SpeechRecognition && this.permissionState !== "denied";
485
+ }
486
+ get isSlotMode() {
487
+ var _a;
488
+ return Array.isArray(this.slotConfig) && this.slotConfig.length > 0 || !!((_a = this.skill) == null ? void 0 : _a.value);
489
+ }
490
+ get currentValue() {
491
+ return this.isSlotMode ? this.getSlotValueString() : this.value;
492
+ }
493
+ getSlotKey(item, index) {
494
+ var _a;
495
+ return (_a = item.key) != null ? _a : `slot-${index}`;
496
+ }
497
+ syncSlotValues(config) {
498
+ const nextValues = /* @__PURE__ */ new Map();
499
+ config.forEach((item, index) => {
500
+ const key = this.getSlotKey(item, index);
501
+ const existing = this.slotValues.get(key);
502
+ if (existing !== void 0) {
503
+ nextValues.set(key, existing);
504
+ return;
505
+ }
506
+ const defaultValue = this.getSlotDefaultValue(item);
507
+ if (defaultValue !== void 0) {
508
+ nextValues.set(key, defaultValue);
509
+ }
510
+ });
511
+ this.slotValues = nextValues;
512
+ this.requestUpdate();
513
+ }
514
+ focusSlotInput() {
515
+ var _a;
516
+ const slotInput = (_a = this.shadowRoot) == null ? void 0 : _a.querySelector(
517
+ ".sender__slot-area sl-input, .sender__slot-area sl-select"
518
+ );
519
+ slotInput == null ? void 0 : slotInput.focus();
520
+ }
521
+ getSlotDefaultValue(item) {
522
+ var _a, _b, _c, _d, _e, _f, _g, _h;
523
+ if (item.type === "input") return (_a = item.props) == null ? void 0 : _a.defaultValue;
524
+ if (item.type === "select") return (_b = item.props) == null ? void 0 : _b.defaultValue;
525
+ if (item.type === "content") return (_c = item.props) == null ? void 0 : _c.defaultValue;
526
+ if (item.type === "custom") return (_d = item.props) == null ? void 0 : _d.defaultValue;
527
+ if (item.type === "tag") return (_g = (_e = item.props) == null ? void 0 : _e.value) != null ? _g : (_f = item.props) == null ? void 0 : _f.label;
528
+ if (item.type === "text") return (_h = item.value) != null ? _h : "";
529
+ return void 0;
530
+ }
531
+ getSlotItemValue(item, index) {
532
+ var _a;
533
+ if (item.type === "text") return (_a = item.value) != null ? _a : "";
534
+ const key = this.getSlotKey(item, index);
535
+ if (this.slotValues.has(key)) return this.slotValues.get(key);
536
+ return this.getSlotDefaultValue(item);
537
+ }
538
+ getSlotValueString() {
539
+ var _a;
540
+ if (!this.isSlotMode) return "";
541
+ const slotArea = (_a = this.shadowRoot) == null ? void 0 : _a.querySelector(".sender__slot-area");
542
+ if (!slotArea) return "";
543
+ return this.getEditorValue(slotArea).value;
544
+ }
545
+ /**
546
+ * 遍历 slot 区域的 DOM 子节点,提取完整的 { value, slotConfig, skill }。
547
+ * 参考 ant-design-x getEditorValue 实现:
548
+ * - 文本节点:计入 value,并作为 { type: 'text', value } 加入 slotConfig
549
+ * - skill 节点:跳过文本值,记录 skill
550
+ * - slot 组件节点:从 slotValues / DOM 读取最新值,计入 value 和 slotConfig
551
+ * - 其他元素:取 textContent
552
+ */
553
+ getEditorValue(container) {
554
+ const parts = [];
555
+ const currentSlotConfig = [];
556
+ let currentSkill;
557
+ container.childNodes.forEach((node) => {
558
+ var _a, _b, _c, _d, _e, _f, _g;
559
+ if (node.nodeType === Node.TEXT_NODE) {
560
+ const text = (_a = node.textContent) != null ? _a : "";
561
+ if (!text || /^\s+$/.test(text)) {
562
+ return;
563
+ }
564
+ parts.push(text);
565
+ currentSlotConfig.push({ type: "text", value: text });
566
+ return;
567
+ }
568
+ if (node.nodeType !== Node.ELEMENT_NODE) return;
569
+ const el = node;
570
+ if (el.classList.contains("sender__skill")) {
571
+ if (this.skill) {
572
+ currentSkill = this.skill;
573
+ }
574
+ return;
575
+ }
576
+ if (el.classList.contains("sender__slot-content")) {
577
+ const text = (_b = el.textContent) != null ? _b : "";
578
+ const key = (_c = el.dataset) == null ? void 0 : _c.slotKey;
579
+ parts.push(text);
580
+ const config = key ? this.getSlotConfigByKey(key) : void 0;
581
+ if (config) {
582
+ currentSlotConfig.push(__spreadProps(__spreadValues({}, config), { value: text }));
583
+ }
584
+ return;
585
+ }
586
+ if (el.tagName === "SL-INPUT") {
587
+ const key = this.getSlotKeyFromElement(el);
588
+ const rawValue = key && this.slotValues.has(key) ? this.slotValues.get(key) : el.value;
589
+ const config = key ? this.getSlotConfigByKey(key) : void 0;
590
+ const text = (config == null ? void 0 : config.formatResult) ? config.formatResult(rawValue) : String(rawValue != null ? rawValue : "");
591
+ parts.push(text);
592
+ if (config) {
593
+ currentSlotConfig.push(__spreadProps(__spreadValues({}, config), { value: rawValue }));
594
+ }
595
+ return;
596
+ }
597
+ if (el.tagName === "SL-SELECT") {
598
+ const key = this.getSlotKeyFromElement(el);
599
+ const rawValue = key && this.slotValues.has(key) ? this.slotValues.get(key) : el.value;
600
+ const config = key ? this.getSlotConfigByKey(key) : void 0;
601
+ const text = (config == null ? void 0 : config.formatResult) ? config.formatResult(rawValue) : String(rawValue != null ? rawValue : "");
602
+ parts.push(text);
603
+ if (config) {
604
+ currentSlotConfig.push(__spreadProps(__spreadValues({}, config), { value: rawValue }));
605
+ }
606
+ return;
607
+ }
608
+ if (el.tagName === "SL-TAG") {
609
+ const text = (_e = (_d = el.textContent) == null ? void 0 : _d.trim()) != null ? _e : "";
610
+ const key = this.getSlotKeyFromElement(el);
611
+ parts.push(text);
612
+ const config = key ? this.getSlotConfigByKey(key) : void 0;
613
+ if (config) {
614
+ currentSlotConfig.push(__spreadProps(__spreadValues({}, config), { value: text }));
615
+ }
616
+ return;
617
+ }
618
+ if (el.tagName === "BR") {
619
+ parts.push("\n");
620
+ currentSlotConfig.push({ type: "text", value: "\n" });
621
+ return;
622
+ }
623
+ if (el.tagName === "DIV") {
624
+ const text = (_f = el.innerText) != null ? _f : "";
625
+ if (text) {
626
+ parts.push("\n" + text);
627
+ currentSlotConfig.push({ type: "text", value: "\n" + text });
628
+ }
629
+ return;
630
+ }
631
+ parts.push((_g = el.textContent) != null ? _g : "");
632
+ });
633
+ return {
634
+ value: parts.join(""),
635
+ slotConfig: currentSlotConfig,
636
+ skill: currentSkill
637
+ };
638
+ }
639
+ /** 获取 slot 区域的完整快照(value + slotConfig + skill),从 DOM 遍历得到最新状态 */
640
+ getEditorSnapshot() {
641
+ var _a;
642
+ const slotArea = (_a = this.shadowRoot) == null ? void 0 : _a.querySelector(".sender__slot-area");
643
+ if (!slotArea) return { value: "", slotConfig: [], skill: this.skill };
644
+ return this.getEditorValue(slotArea);
645
+ }
646
+ /** 根据 slot 区域中的 DOM 元素,反查对应的 slotConfig key */
647
+ getSlotKeyFromElement(el) {
648
+ var _a;
649
+ return (_a = el.dataset) == null ? void 0 : _a.slotKey;
650
+ }
651
+ /** 根据 key 查找对应的 slotConfig 项 */
652
+ getSlotConfigByKey(key) {
653
+ if (!this.slotConfig) return void 0;
654
+ return this.slotConfig.find((item, index) => this.getSlotKey(item, index) === key);
655
+ }
656
+ // 获取厂商前缀的 SpeechRecognition 构造函数
657
+ getSpeechRecognitionConstructor() {
658
+ if (typeof window === "undefined") return null;
659
+ const speechWindow = window;
660
+ return speechWindow.SpeechRecognition || speechWindow.webkitSpeechRecognition || null;
661
+ }
662
+ // 非受控模式下查询麦克风权限
663
+ updatePermissionState() {
664
+ const { speechInControlled } = this.speechConfig;
665
+ if (!this.allowSpeech || speechInControlled) return;
666
+ this.cleanupPermissionStatus();
667
+ if (!navigator.permissions) return;
668
+ navigator.permissions.query({ name: "microphone" }).then((permissionStatus) => {
669
+ this.permissionState = permissionStatus.state;
670
+ permissionStatus.onchange = () => {
671
+ this.permissionState = permissionStatus.state;
672
+ };
673
+ this.permissionStatus = permissionStatus;
674
+ }).catch(() => {
675
+ this.permissionState = null;
676
+ });
677
+ }
678
+ // 移除权限监听,避免泄漏
679
+ cleanupPermissionStatus() {
680
+ if (this.permissionStatus) {
681
+ this.permissionStatus.onchange = null;
682
+ this.permissionStatus = null;
683
+ }
684
+ }
685
+ // 按需创建识别实例并绑定事件
686
+ ensureRecognition() {
687
+ if (!this.allowSpeech || this.speechConfig.speechInControlled) return;
688
+ const SpeechRecognition = this.getSpeechRecognitionConstructor();
689
+ if (!SpeechRecognition || this.recognition) return;
690
+ const recognition = new SpeechRecognition();
691
+ recognition.onstart = () => {
692
+ this.speechRecording = true;
693
+ };
694
+ recognition.onend = () => {
695
+ this.speechRecording = false;
696
+ };
697
+ recognition.onresult = (event) => {
698
+ var _a, _b, _c;
699
+ if (!this.forceBreak) {
700
+ const transcript = (_c = (_b = (_a = event.results) == null ? void 0 : _a[0]) == null ? void 0 : _b[0]) == null ? void 0 : _c.transcript;
701
+ if (transcript) this.applyTranscript(transcript);
702
+ }
703
+ this.forceBreak = false;
704
+ };
705
+ this.recognition = recognition;
706
+ }
707
+ // 停止识别并释放实例
708
+ stopRecognition() {
709
+ if (this.recognition && this.currentRecording) {
710
+ this.recognition.stop();
711
+ }
712
+ this.recognition = null;
713
+ }
714
+ // 切换录音;forceBreak 为 true 时停止且不消费转写结果
715
+ triggerSpeech(forceBreak) {
716
+ if (!this.speechPermission) return;
717
+ if (forceBreak && !this.currentRecording) return;
718
+ this.forceBreak = forceBreak;
719
+ const { speechInControlled, onControlledRecordingChange } = this.speechConfig;
720
+ if (speechInControlled) {
721
+ onControlledRecordingChange == null ? void 0 : onControlledRecordingChange(!this.currentRecording);
722
+ return;
723
+ }
724
+ this.ensureRecognition();
725
+ if (!this.recognition) return;
726
+ if (this.currentRecording) {
727
+ this.recognition.stop();
728
+ } else {
729
+ this.recognition.start();
730
+ }
731
+ }
732
+ // 将语音转写内容追加到输入框
733
+ applyTranscript(transcript) {
734
+ if (this.disabled || this.readOnly) return;
735
+ if (this.isSlotMode) return;
736
+ this.value = this.value ? `${this.value} ${transcript}` : transcript;
737
+ this.dispatchEvent(new CustomEvent("sl-change", {
738
+ detail: { value: this.value, slotConfig: [], skill: this.skill },
739
+ bubbles: true,
740
+ composed: true
741
+ }));
742
+ }
743
+ renderSendButton(props) {
744
+ var _a, _b;
745
+ const loading = (_a = props == null ? void 0 : props.loading) != null ? _a : this.loading;
746
+ const disabled = (_b = props == null ? void 0 : props.disabled) != null ? _b : this.disabled || !this.currentValue.trim();
747
+ const name = loading ? "app" : "arrow-up-short";
748
+ return html`
749
+ <sl-icon-button
750
+ class="send-button"
751
+ name=${name}
752
+ ?disabled=${disabled}
753
+ @click=${this.handleSubmit}
754
+ >
755
+ </sl-icon-button>
756
+ `;
757
+ }
758
+ renderClearButton(props) {
759
+ var _a;
760
+ const disabled = (_a = props == null ? void 0 : props.disabled) != null ? _a : this.disabled || !this.currentValue;
761
+ return html`
762
+ <sl-icon-button
763
+ name="trash"
764
+ ?disabled=${disabled}
765
+ @click=${this.handleClear}
766
+ >
767
+ </sl-icon-button>
768
+ `;
769
+ }
770
+ renderRecordingIcon() {
771
+ return html`
772
+ <span class="sender__recording-icon" aria-label="Recording">
773
+ <span class="sender__recording-bar"></span>
774
+ <span class="sender__recording-bar"></span>
775
+ <span class="sender__recording-bar"></span>
776
+ <span class="sender__recording-bar"></span>
777
+ </span>
778
+ `;
779
+ }
780
+ renderSpeechButton(props) {
781
+ var _a, _b;
782
+ if (!this.allowSpeech) return null;
783
+ const disabled = (_a = props == null ? void 0 : props.disabled) != null ? _a : this.disabled || this.readOnly || !this.speechPermission;
784
+ const onClick = (_b = props == null ? void 0 : props.onClick) != null ? _b : this.handleSpeechClick.bind(this);
785
+ if (this.currentRecording) {
786
+ return html`
787
+ <button
788
+ class="sender__speech-btn sender__speech-btn--recording"
789
+ @click=${onClick}
790
+ ?disabled=${disabled}
791
+ aria-label="Stop recording"
792
+ >
793
+ ${this.renderRecordingIcon()}
794
+ </button>
795
+ `;
796
+ }
797
+ const iconName = disabled ? "mic-mute" : "mic";
798
+ return html`
799
+ <sl-icon-button
800
+ name=${iconName}
801
+ class="sender__speech-btn"
802
+ @click=${onClick}
803
+ ?disabled=${disabled}
804
+ >
805
+ </sl-icon-button>
806
+ `;
807
+ }
808
+ renderLoadingButton(props) {
809
+ var _a, _b;
810
+ const disabled = (_a = props == null ? void 0 : props.disabled) != null ? _a : this.disabled;
811
+ const onClick = (_b = props == null ? void 0 : props.onClick) != null ? _b : this.handleSubmit.bind(this);
812
+ return html`
813
+ <sl-icon-button
814
+ name="send"
815
+ ?loading=${true}
816
+ ?disabled=${disabled}
817
+ @click=${this.handleSubmit}
818
+ >
819
+ </sl-icon-button>
820
+ `;
821
+ }
822
+ get actionComponents() {
823
+ return {
824
+ SendButton: (props) => this.renderSendButton(props),
825
+ ClearButton: (props) => this.renderClearButton(props),
826
+ LoadingButton: (props) => this.renderLoadingButton(props),
827
+ SpeechButton: (props) => this.renderSpeechButton(props)
828
+ };
829
+ }
830
+ renderFooter() {
831
+ const defaultFooter = html`
832
+ <div
833
+ class=${classMap({
834
+ sender__footer: true,
835
+ sender__footer_content: this.hasFooterContent
836
+ })}
837
+ part="footer"
838
+ >
839
+ <slot name="footer" @slotchange=${this.handleFooterSlotChange}></slot>
840
+ </div>
841
+ `;
842
+ if (this.footer === false) return null;
843
+ if (typeof this.footer === "function") {
844
+ return this.footer(defaultFooter, { components: this.actionComponents });
845
+ }
846
+ if (this.footer !== void 0) return this.footer;
847
+ return defaultFooter;
848
+ }
849
+ handleFooterSlotChange() {
850
+ var _a;
851
+ const slot = (_a = this.shadowRoot) == null ? void 0 : _a.querySelector('slot[name="footer"]');
852
+ this.hasFooterContent = !!slot && slot.assignedNodes({ flatten: true }).length > 0;
853
+ }
854
+ handleHeaderSlotChange() {
855
+ var _a;
856
+ const slot = (_a = this.shadowRoot) == null ? void 0 : _a.querySelector('slot[name="header"]');
857
+ this.hasHeaderContent = !!slot && slot.assignedNodes({ flatten: true }).length > 0;
858
+ }
859
+ renderHeader() {
860
+ const defaultHeader = html`
861
+ <div
862
+ class=${classMap({
863
+ sender__header: true,
864
+ sender__header_content: this.hasHeaderContent
865
+ })}
866
+ part="header"
867
+ >
868
+ <slot name="header" @slotchange=${this.handleHeaderSlotChange}></slot>
869
+ </div>
870
+ `;
871
+ if (this.header === false) return null;
872
+ if (typeof this.header === "function") {
873
+ return this.header(defaultHeader, { components: this.actionComponents });
874
+ }
875
+ if (this.header !== void 0) return this.header;
876
+ return defaultHeader;
877
+ }
878
+ renderPrefix() {
879
+ const defaultPrefix = html`<slot name="prefix"></slot>`;
880
+ if (this.prefixContent === false) return null;
881
+ if (typeof this.prefixContent === "function") {
882
+ return this.prefixContent(defaultPrefix, { components: this.actionComponents });
883
+ }
884
+ if (this.prefixContent !== void 0) return this.prefixContent;
885
+ return defaultPrefix;
886
+ }
887
+ renderSuffix() {
888
+ const defaultActions = html`
889
+ <div class="sender__actions" part="actions">
890
+ <slot name="suffix">
891
+ ${this.renderSpeechButton()}
892
+ ${this.renderSendButton()}
893
+ </slot>
894
+ </div>
895
+ `;
896
+ if (this.suffixContent === false) return null;
897
+ console.log("this.suffixContent", this.suffixContent, typeof this.suffixContent);
898
+ if (typeof this.suffixContent === "function") {
899
+ console.log("custom suffix");
900
+ return this.suffixContent(defaultActions, { components: this.actionComponents });
901
+ }
902
+ if (this.suffixContent !== void 0) return this.suffixContent;
903
+ console.log("\u8FD8\u662F\u6267\u884C\u5230\u4E86\u8FD9\u91CC", this.suffixContent);
904
+ return defaultActions;
905
+ }
906
+ renderSlotItem(item, index) {
907
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
908
+ const key = this.getSlotKey(item, index);
909
+ if (item.type === "text") {
910
+ return html`${(_a = item.value) != null ? _a : ""}`;
911
+ }
912
+ if (item.type === "content") {
913
+ const value = (_b = this.getSlotItemValue(item, index)) != null ? _b : "";
914
+ return html`
915
+ <span
916
+ class="sender__slot-content"
917
+ contenteditable=${this.readOnly || this.disabled ? "false" : "true"}
918
+ data-slot-key=${key}
919
+ data-placeholder=${(_d = (_c = item.props) == null ? void 0 : _c.placeholder) != null ? _d : ""}
920
+ spellcheck="false"
921
+ @input=${(event) => {
922
+ var _a2;
923
+ const target = event.target;
924
+ this.handleSlotValueChange(key, (_a2 = target.textContent) != null ? _a2 : "");
925
+ }}
926
+ @keydown=${(event) => this.handleKeyDown(event)}
927
+ @paste=${(event) => {
928
+ var _a2, _b2;
929
+ event.preventDefault();
930
+ const text = (_b2 = (_a2 = event.clipboardData) == null ? void 0 : _a2.getData("text/plain")) != null ? _b2 : "";
931
+ document.execCommand("insertText", false, text);
932
+ }}
933
+ >${String(value)}</span>
934
+ `;
935
+ }
936
+ if (item.type === "input") {
937
+ const value = (_e = this.getSlotItemValue(item, index)) != null ? _e : "";
938
+ return html`
939
+ <sl-input
940
+ class="sender__slot-input"
941
+ size="small"
942
+ data-slot-key=${key}
943
+ .value=${String(value != null ? value : "")}
944
+ placeholder=${(_g = (_f = item.props) == null ? void 0 : _f.placeholder) != null ? _g : ""}
945
+ ?disabled=${this.disabled}
946
+ ?readonly=${this.readOnly}
947
+ @sl-input=${(event) => {
948
+ const target = event.target;
949
+ this.handleSlotValueChange(key, target.value);
950
+ }}
951
+ ></sl-input>
952
+ `;
953
+ }
954
+ if (item.type === "select") {
955
+ const value = this.getSlotItemValue(item, index);
956
+ return html`
957
+ <sl-select
958
+ class="sender__slot-select"
959
+ size="small"
960
+ data-slot-key=${key}
961
+ .value=${String(value != null ? value : "")}
962
+ placeholder=${(_i = (_h = item.props) == null ? void 0 : _h.placeholder) != null ? _i : ""}
963
+ ?disabled=${this.disabled}
964
+ @sl-change=${(event) => {
965
+ const target = event.target;
966
+ this.handleSlotValueChange(key, target.value);
967
+ }}
968
+ >
969
+ ${((_k = (_j = item.props) == null ? void 0 : _j.options) != null ? _k : []).map((option) => html`<sl-option value=${option.value}>${option.label}</sl-option>`)}
970
+ </sl-select>
971
+ `;
972
+ }
973
+ if (item.type === "tag") {
974
+ return html`
975
+ <sl-tag class="sender__slot-tag" size="small" data-slot-key=${key}>
976
+ ${(_o = (_n = (_l = item.props) == null ? void 0 : _l.label) != null ? _n : (_m = item.props) == null ? void 0 : _m.value) != null ? _o : ""}
977
+ </sl-tag>
978
+ `;
979
+ }
980
+ if (item.type === "custom") {
981
+ const value = this.getSlotItemValue(item, index);
982
+ const onChange = (nextValue) => this.handleSlotValueChange(key, nextValue);
983
+ return (_q = (_p = item.customRender) == null ? void 0 : _p.call(item, value, onChange, { disabled: this.disabled, readOnly: this.readOnly }, item)) != null ? _q : null;
984
+ }
985
+ return null;
986
+ }
987
+ renderSlotConfig() {
988
+ var _a;
989
+ if (!this.isSlotMode) return null;
990
+ return html`
991
+ <div
992
+ class="sender__slot-area"
993
+ part="slot-area"
994
+ contenteditable=${this.readOnly || this.disabled ? "false" : "true"}
995
+ @keydown=${this.handleKeyDown}
996
+ @paste=${this.handlePaste}
997
+ @focus=${this.handleFocus}
998
+ @blur=${this.handleBlur}
999
+ @input=${this.handleSlotAreaInput}
1000
+ >
1001
+ ${this.renderSkill()}
1002
+ ${(_a = this.slotConfig) == null ? void 0 : _a.map((item, index) => this.renderSlotItem(item, index))}
1003
+ </div>
1004
+ `;
1005
+ }
1006
+ renderSkill() {
1007
+ var _a;
1008
+ if (!this.skill) return null;
1009
+ const displayTitle = (_a = this.skill.title) != null ? _a : this.skill.value;
1010
+ const closable = this.skill.closable;
1011
+ const showClose = !!closable;
1012
+ const closeDisabled = typeof closable === "object" && closable.disabled;
1013
+ const closeIcon = typeof closable === "object" && closable.closeIcon ? closable.closeIcon : "x-lg";
1014
+ return html`
1015
+ <span class="sender__skill" part="skill" contenteditable="false">
1016
+ <span class="sender__skill-tag">
1017
+ <span class="sender__skill-text">${displayTitle}</span>
1018
+ ${showClose ? html`
1019
+ <span
1020
+ class="sender__skill-close ${closeDisabled ? "sender__skill-close--disabled" : ""}"
1021
+ role="button"
1022
+ aria-label="Remove skill"
1023
+ tabindex=${closeDisabled ? -1 : 0}
1024
+ @click=${() => !closeDisabled && this.handleSkillRemove()}
1025
+ @keydown=${(e) => {
1026
+ if (!closeDisabled && (e.key === "Enter" || e.key === " ")) {
1027
+ e.preventDefault();
1028
+ this.handleSkillRemove();
1029
+ }
1030
+ }}
1031
+ >
1032
+ <sl-icon name=${closeIcon}></sl-icon>
1033
+ </span>
1034
+ ` : null}
1035
+ </span>
1036
+ </span>
1037
+ `;
1038
+ }
1039
+ render() {
1040
+ return html`
1041
+ <div
1042
+ class=${classMap({
1043
+ sender: true,
1044
+ "sender--disabled": this.disabled
1045
+ })}
1046
+ part="base"
1047
+ >
1048
+ ${this.renderHeader()}
1049
+
1050
+ <div class="sender__content">
1051
+ <div class="sender__input-area">
1052
+ ${this.renderPrefix()}
1053
+ ${this.isSlotMode ? this.renderSlotConfig() : html`
1054
+ <sl-textarea
1055
+ part="input"
1056
+ .value=${this.value}
1057
+ placeholder=${this.placeholder}
1058
+ ?disabled=${this.disabled}
1059
+ ?readonly=${this.readOnly}
1060
+ resize="auto"
1061
+ rows=${this.rows}
1062
+ @sl-input=${this.handleInput}
1063
+ @keydown=${this.handleKeyDown}
1064
+ @paste=${this.handlePaste}
1065
+ @sl-focus=${this.handleFocus}
1066
+ @sl-blur=${this.handleBlur}
1067
+ ></sl-textarea>
1068
+ `}
1069
+ ${this.renderSuffix()}
1070
+ </div>
1071
+ </div>
1072
+
1073
+ ${this.renderFooter()}
1074
+ </div>
1075
+ `;
1076
+ }
1077
+ };
1078
+ SlSender.styles = [component_styles_default, sender_styles_default];
1079
+ SlSender.dependencies = {
1080
+ "sl-textarea": SlTextarea,
1081
+ "sl-input": SlInput,
1082
+ "sl-select": SlSelect,
1083
+ "sl-option": SlOption,
1084
+ "sl-tag": SlTag,
1085
+ "sl-button": SlButton,
1086
+ "sl-icon-button": SlIconButton,
1087
+ "sl-icon": SlIcon,
1088
+ "sl-spinner": SlSpinner
1089
+ };
1090
+ __decorateClass([
1091
+ query("sl-textarea")
1092
+ ], SlSender.prototype, "textarea", 2);
1093
+ __decorateClass([
1094
+ query(".sender__slot-area")
1095
+ ], SlSender.prototype, "slotArea", 2);
1096
+ __decorateClass([
1097
+ property({ type: String })
1098
+ ], SlSender.prototype, "value", 2);
1099
+ __decorateClass([
1100
+ property({ type: String })
1101
+ ], SlSender.prototype, "placeholder", 2);
1102
+ __decorateClass([
1103
+ property({ type: Boolean })
1104
+ ], SlSender.prototype, "loading", 2);
1105
+ __decorateClass([
1106
+ property({ type: Boolean })
1107
+ ], SlSender.prototype, "disabled", 2);
1108
+ __decorateClass([
1109
+ property({ type: Boolean, attribute: "read-only" })
1110
+ ], SlSender.prototype, "readOnly", 2);
1111
+ __decorateClass([
1112
+ property({ type: Number })
1113
+ ], SlSender.prototype, "rows", 2);
1114
+ __decorateClass([
1115
+ property({ type: String, attribute: "submit-type" })
1116
+ ], SlSender.prototype, "submitType", 2);
1117
+ __decorateClass([
1118
+ property({ attribute: false })
1119
+ ], SlSender.prototype, "slotConfig", 2);
1120
+ __decorateClass([
1121
+ property({ attribute: false })
1122
+ ], SlSender.prototype, "skill", 2);
1123
+ __decorateClass([
1124
+ property({ attribute: false })
1125
+ ], SlSender.prototype, "footer", 2);
1126
+ __decorateClass([
1127
+ property({ attribute: false })
1128
+ ], SlSender.prototype, "header", 2);
1129
+ __decorateClass([
1130
+ property({ attribute: false })
1131
+ ], SlSender.prototype, "prefixContent", 2);
1132
+ __decorateClass([
1133
+ property({ attribute: false })
1134
+ ], SlSender.prototype, "suffixContent", 2);
1135
+ __decorateClass([
1136
+ property({ type: Boolean, attribute: "allow-speech" })
1137
+ ], SlSender.prototype, "allowSpeech", 2);
1138
+ __decorateClass([
1139
+ property({ type: Boolean, attribute: "speech-recording" })
1140
+ ], SlSender.prototype, "speechRecording", 2);
1141
+ __decorateClass([
1142
+ state()
1143
+ ], SlSender.prototype, "hasHeaderContent", 2);
1144
+ __decorateClass([
1145
+ state()
1146
+ ], SlSender.prototype, "hasFooterContent", 2);
1147
+
1148
+ export {
1149
+ SlSender
1150
+ };