@aceshooting/lyra-ui 2.0.0 → 2.2.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 (1133) hide show
  1. package/README.md +107 -19
  2. package/custom-elements.json +40136 -17102
  3. package/dist/components/app-rail/app-rail-item.class.d.ts +36 -0
  4. package/dist/components/app-rail/app-rail-item.class.d.ts.map +1 -0
  5. package/dist/components/app-rail/app-rail-item.class.js +77 -0
  6. package/dist/components/app-rail/app-rail-item.class.js.map +1 -0
  7. package/dist/components/app-rail/app-rail-item.d.ts +2 -0
  8. package/dist/components/app-rail/app-rail-item.d.ts.map +1 -0
  9. package/dist/components/app-rail/app-rail-item.js +5 -0
  10. package/dist/components/app-rail/app-rail-item.js.map +1 -0
  11. package/dist/components/app-rail/app-rail-item.styles.d.ts +2 -0
  12. package/dist/components/app-rail/app-rail-item.styles.d.ts.map +1 -0
  13. package/dist/components/app-rail/app-rail-item.styles.js +71 -0
  14. package/dist/components/app-rail/app-rail-item.styles.js.map +1 -0
  15. package/dist/components/app-rail/app-rail.class.d.ts +213 -0
  16. package/dist/components/app-rail/app-rail.class.d.ts.map +1 -0
  17. package/dist/components/app-rail/app-rail.class.js +545 -0
  18. package/dist/components/app-rail/app-rail.class.js.map +1 -0
  19. package/dist/components/app-rail/app-rail.d.ts +3 -171
  20. package/dist/components/app-rail/app-rail.d.ts.map +1 -0
  21. package/dist/components/app-rail/app-rail.js +4 -481
  22. package/dist/components/app-rail/app-rail.js.map +1 -0
  23. package/dist/components/app-rail/app-rail.styles.d.ts +1 -0
  24. package/dist/components/app-rail/app-rail.styles.d.ts.map +1 -0
  25. package/dist/components/app-rail/app-rail.styles.js +42 -10
  26. package/dist/components/app-rail/app-rail.styles.js.map +1 -0
  27. package/dist/components/attachment-chip/attachment-chip.class.d.ts +151 -0
  28. package/dist/components/attachment-chip/attachment-chip.class.d.ts.map +1 -0
  29. package/dist/components/attachment-chip/attachment-chip.class.js +370 -0
  30. package/dist/components/attachment-chip/attachment-chip.class.js.map +1 -0
  31. package/dist/components/attachment-chip/attachment-chip.d.ts +2 -114
  32. package/dist/components/attachment-chip/attachment-chip.d.ts.map +1 -0
  33. package/dist/components/attachment-chip/attachment-chip.js +3 -310
  34. package/dist/components/attachment-chip/attachment-chip.js.map +1 -0
  35. package/dist/components/attachment-chip/attachment-chip.styles.d.ts +1 -0
  36. package/dist/components/attachment-chip/attachment-chip.styles.d.ts.map +1 -0
  37. package/dist/components/attachment-chip/attachment-chip.styles.js +29 -13
  38. package/dist/components/attachment-chip/attachment-chip.styles.js.map +1 -0
  39. package/dist/components/attachment-trigger/attachment-trigger.class.d.ts +106 -0
  40. package/dist/components/attachment-trigger/attachment-trigger.class.d.ts.map +1 -0
  41. package/dist/components/attachment-trigger/attachment-trigger.class.js +227 -0
  42. package/dist/components/attachment-trigger/attachment-trigger.class.js.map +1 -0
  43. package/dist/components/attachment-trigger/attachment-trigger.d.ts +4 -83
  44. package/dist/components/attachment-trigger/attachment-trigger.d.ts.map +1 -0
  45. package/dist/components/attachment-trigger/attachment-trigger.js +5 -256
  46. package/dist/components/attachment-trigger/attachment-trigger.js.map +1 -0
  47. package/dist/components/attachment-trigger/attachment-trigger.styles.d.ts +1 -0
  48. package/dist/components/attachment-trigger/attachment-trigger.styles.d.ts.map +1 -0
  49. package/dist/components/attachment-trigger/attachment-trigger.styles.js +38 -11
  50. package/dist/components/attachment-trigger/attachment-trigger.styles.js.map +1 -0
  51. package/dist/components/chart/bar-chart.class.d.ts +15 -0
  52. package/dist/components/chart/bar-chart.class.d.ts.map +1 -0
  53. package/dist/components/chart/bar-chart.class.js +10 -0
  54. package/dist/components/chart/bar-chart.class.js.map +1 -0
  55. package/dist/components/chart/bar-chart.d.ts +3 -14
  56. package/dist/components/chart/bar-chart.d.ts.map +1 -0
  57. package/dist/components/chart/bar-chart.js +4 -25
  58. package/dist/components/chart/bar-chart.js.map +1 -0
  59. package/dist/components/chart/box-plot.class.d.ts +78 -0
  60. package/dist/components/chart/box-plot.class.d.ts.map +1 -0
  61. package/dist/components/chart/box-plot.class.js +320 -0
  62. package/dist/components/chart/box-plot.class.js.map +1 -0
  63. package/dist/components/chart/box-plot.d.ts +3 -53
  64. package/dist/components/chart/box-plot.d.ts.map +1 -0
  65. package/dist/components/chart/box-plot.js +4 -189
  66. package/dist/components/chart/box-plot.js.map +1 -0
  67. package/dist/components/chart/box-plot.styles.d.ts +1 -0
  68. package/dist/components/chart/box-plot.styles.d.ts.map +1 -0
  69. package/dist/components/chart/box-plot.styles.js +15 -1
  70. package/dist/components/chart/box-plot.styles.js.map +1 -0
  71. package/dist/components/chart/bubble-chart.class.d.ts +19 -0
  72. package/dist/components/chart/bubble-chart.class.d.ts.map +1 -0
  73. package/dist/components/chart/bubble-chart.class.js +14 -0
  74. package/dist/components/chart/bubble-chart.class.js.map +1 -0
  75. package/dist/components/chart/bubble-chart.d.ts +3 -18
  76. package/dist/components/chart/bubble-chart.d.ts.map +1 -0
  77. package/dist/components/chart/bubble-chart.js +4 -29
  78. package/dist/components/chart/bubble-chart.js.map +1 -0
  79. package/dist/components/chart/chart-loader.d.ts +12 -9
  80. package/dist/components/chart/chart-loader.d.ts.map +1 -0
  81. package/dist/components/chart/chart-loader.js +1 -0
  82. package/dist/components/chart/chart-loader.js.map +1 -0
  83. package/dist/components/chart/chart.class.d.ts +209 -0
  84. package/dist/components/chart/chart.class.d.ts.map +1 -0
  85. package/dist/components/chart/chart.class.js +651 -0
  86. package/dist/components/chart/chart.class.js.map +1 -0
  87. package/dist/components/chart/chart.d.ts +3 -152
  88. package/dist/components/chart/chart.d.ts.map +1 -0
  89. package/dist/components/chart/chart.js +4 -539
  90. package/dist/components/chart/chart.js.map +1 -0
  91. package/dist/components/chart/chart.styles.d.ts +1 -0
  92. package/dist/components/chart/chart.styles.d.ts.map +1 -0
  93. package/dist/components/chart/chart.styles.js +5 -4
  94. package/dist/components/chart/chart.styles.js.map +1 -0
  95. package/dist/components/chart/doughnut-chart.class.d.ts +15 -0
  96. package/dist/components/chart/doughnut-chart.class.d.ts.map +1 -0
  97. package/dist/components/chart/doughnut-chart.class.js +10 -0
  98. package/dist/components/chart/doughnut-chart.class.js.map +1 -0
  99. package/dist/components/chart/doughnut-chart.d.ts +3 -14
  100. package/dist/components/chart/doughnut-chart.d.ts.map +1 -0
  101. package/dist/components/chart/doughnut-chart.js +4 -25
  102. package/dist/components/chart/doughnut-chart.js.map +1 -0
  103. package/dist/components/chart/histogram-bin.d.ts +6 -2
  104. package/dist/components/chart/histogram-bin.d.ts.map +1 -0
  105. package/dist/components/chart/histogram-bin.js +13 -4
  106. package/dist/components/chart/histogram-bin.js.map +1 -0
  107. package/dist/components/chart/histogram.class.d.ts +23 -0
  108. package/dist/components/chart/histogram.class.d.ts.map +1 -0
  109. package/dist/components/chart/histogram.class.js +91 -0
  110. package/dist/components/chart/histogram.class.js.map +1 -0
  111. package/dist/components/chart/histogram.d.ts +3 -22
  112. package/dist/components/chart/histogram.d.ts.map +1 -0
  113. package/dist/components/chart/histogram.js +4 -98
  114. package/dist/components/chart/histogram.js.map +1 -0
  115. package/dist/components/chart/histogram.styles.d.ts +1 -0
  116. package/dist/components/chart/histogram.styles.d.ts.map +1 -0
  117. package/dist/components/chart/histogram.styles.js +1 -0
  118. package/dist/components/chart/histogram.styles.js.map +1 -0
  119. package/dist/components/chart/line-chart.class.d.ts +15 -0
  120. package/dist/components/chart/line-chart.class.d.ts.map +1 -0
  121. package/dist/components/chart/line-chart.class.js +10 -0
  122. package/dist/components/chart/line-chart.class.js.map +1 -0
  123. package/dist/components/chart/line-chart.d.ts +3 -14
  124. package/dist/components/chart/line-chart.d.ts.map +1 -0
  125. package/dist/components/chart/line-chart.js +4 -25
  126. package/dist/components/chart/line-chart.js.map +1 -0
  127. package/dist/components/chart/lite-chart.class.d.ts +237 -0
  128. package/dist/components/chart/lite-chart.class.d.ts.map +1 -0
  129. package/dist/components/chart/lite-chart.class.js +757 -0
  130. package/dist/components/chart/lite-chart.class.js.map +1 -0
  131. package/dist/components/chart/lite-chart.d.ts +2 -137
  132. package/dist/components/chart/lite-chart.d.ts.map +1 -0
  133. package/dist/components/chart/lite-chart.js +3 -540
  134. package/dist/components/chart/lite-chart.js.map +1 -0
  135. package/dist/components/chart/lite-chart.styles.d.ts +1 -0
  136. package/dist/components/chart/lite-chart.styles.d.ts.map +1 -0
  137. package/dist/components/chart/lite-chart.styles.js +19 -10
  138. package/dist/components/chart/lite-chart.styles.js.map +1 -0
  139. package/dist/components/chart/pie-chart.class.d.ts +16 -0
  140. package/dist/components/chart/pie-chart.class.d.ts.map +1 -0
  141. package/dist/components/chart/pie-chart.class.js +11 -0
  142. package/dist/components/chart/pie-chart.class.js.map +1 -0
  143. package/dist/components/chart/pie-chart.d.ts +3 -15
  144. package/dist/components/chart/pie-chart.d.ts.map +1 -0
  145. package/dist/components/chart/pie-chart.js +4 -26
  146. package/dist/components/chart/pie-chart.js.map +1 -0
  147. package/dist/components/chart/polar-area-chart.class.d.ts +15 -0
  148. package/dist/components/chart/polar-area-chart.class.d.ts.map +1 -0
  149. package/dist/components/chart/polar-area-chart.class.js +10 -0
  150. package/dist/components/chart/polar-area-chart.class.js.map +1 -0
  151. package/dist/components/chart/polar-area-chart.d.ts +3 -14
  152. package/dist/components/chart/polar-area-chart.d.ts.map +1 -0
  153. package/dist/components/chart/polar-area-chart.js +4 -25
  154. package/dist/components/chart/polar-area-chart.js.map +1 -0
  155. package/dist/components/chart/radar-chart.class.d.ts +15 -0
  156. package/dist/components/chart/radar-chart.class.d.ts.map +1 -0
  157. package/dist/components/chart/radar-chart.class.js +10 -0
  158. package/dist/components/chart/radar-chart.class.js.map +1 -0
  159. package/dist/components/chart/radar-chart.d.ts +3 -14
  160. package/dist/components/chart/radar-chart.d.ts.map +1 -0
  161. package/dist/components/chart/radar-chart.js +4 -25
  162. package/dist/components/chart/radar-chart.js.map +1 -0
  163. package/dist/components/chart/scatter-chart.class.d.ts +16 -0
  164. package/dist/components/chart/scatter-chart.class.d.ts.map +1 -0
  165. package/dist/components/chart/scatter-chart.class.js +11 -0
  166. package/dist/components/chart/scatter-chart.class.js.map +1 -0
  167. package/dist/components/chart/scatter-chart.d.ts +3 -15
  168. package/dist/components/chart/scatter-chart.d.ts.map +1 -0
  169. package/dist/components/chart/scatter-chart.js +4 -26
  170. package/dist/components/chart/scatter-chart.js.map +1 -0
  171. package/dist/components/chat-composer/chat-composer.class.d.ts +145 -0
  172. package/dist/components/chat-composer/chat-composer.class.d.ts.map +1 -0
  173. package/dist/components/chat-composer/chat-composer.class.js +314 -0
  174. package/dist/components/chat-composer/chat-composer.class.js.map +1 -0
  175. package/dist/components/chat-composer/chat-composer.d.ts +2 -92
  176. package/dist/components/chat-composer/chat-composer.d.ts.map +1 -0
  177. package/dist/components/chat-composer/chat-composer.js +3 -283
  178. package/dist/components/chat-composer/chat-composer.js.map +1 -0
  179. package/dist/components/chat-composer/chat-composer.styles.d.ts +1 -0
  180. package/dist/components/chat-composer/chat-composer.styles.d.ts.map +1 -0
  181. package/dist/components/chat-composer/chat-composer.styles.js +16 -5
  182. package/dist/components/chat-composer/chat-composer.styles.js.map +1 -0
  183. package/dist/components/chat-message/chat-message.class.d.ts +145 -0
  184. package/dist/components/chat-message/chat-message.class.d.ts.map +1 -0
  185. package/dist/components/chat-message/chat-message.class.js +270 -0
  186. package/dist/components/chat-message/chat-message.class.js.map +1 -0
  187. package/dist/components/chat-message/chat-message.d.ts +3 -113
  188. package/dist/components/chat-message/chat-message.d.ts.map +1 -0
  189. package/dist/components/chat-message/chat-message.js +4 -289
  190. package/dist/components/chat-message/chat-message.js.map +1 -0
  191. package/dist/components/chat-message/chat-message.styles.d.ts +1 -0
  192. package/dist/components/chat-message/chat-message.styles.d.ts.map +1 -0
  193. package/dist/components/chat-message/chat-message.styles.js +13 -12
  194. package/dist/components/chat-message/chat-message.styles.js.map +1 -0
  195. package/dist/components/checkbox/checkbox.class.d.ts +123 -0
  196. package/dist/components/checkbox/checkbox.class.d.ts.map +1 -0
  197. package/dist/components/checkbox/checkbox.class.js +328 -0
  198. package/dist/components/checkbox/checkbox.class.js.map +1 -0
  199. package/dist/components/checkbox/checkbox.d.ts +2 -59
  200. package/dist/components/checkbox/checkbox.d.ts.map +1 -0
  201. package/dist/components/checkbox/checkbox.js +3 -228
  202. package/dist/components/checkbox/checkbox.js.map +1 -0
  203. package/dist/components/checkbox/checkbox.styles.d.ts +1 -0
  204. package/dist/components/checkbox/checkbox.styles.d.ts.map +1 -0
  205. package/dist/components/checkbox/checkbox.styles.js +14 -6
  206. package/dist/components/checkbox/checkbox.styles.js.map +1 -0
  207. package/dist/components/chip/chip-group.class.d.ts +57 -0
  208. package/dist/components/chip/chip-group.class.d.ts.map +1 -0
  209. package/dist/components/chip/chip-group.class.js +129 -0
  210. package/dist/components/chip/chip-group.class.js.map +1 -0
  211. package/dist/components/chip/chip-group.d.ts +2 -56
  212. package/dist/components/chip/chip-group.d.ts.map +1 -0
  213. package/dist/components/chip/chip-group.js +3 -122
  214. package/dist/components/chip/chip-group.js.map +1 -0
  215. package/dist/components/chip/chip-group.styles.d.ts +1 -0
  216. package/dist/components/chip/chip-group.styles.d.ts.map +1 -0
  217. package/dist/components/chip/chip-group.styles.js +7 -6
  218. package/dist/components/chip/chip-group.styles.js.map +1 -0
  219. package/dist/components/chip/chip.class.d.ts +65 -0
  220. package/dist/components/chip/chip.class.d.ts.map +1 -0
  221. package/dist/components/chip/chip.class.js +121 -0
  222. package/dist/components/chip/chip.class.js.map +1 -0
  223. package/dist/components/chip/chip.d.ts +2 -64
  224. package/dist/components/chip/chip.d.ts.map +1 -0
  225. package/dist/components/chip/chip.js +3 -113
  226. package/dist/components/chip/chip.js.map +1 -0
  227. package/dist/components/chip/chip.styles.d.ts +1 -0
  228. package/dist/components/chip/chip.styles.d.ts.map +1 -0
  229. package/dist/components/chip/chip.styles.js +12 -11
  230. package/dist/components/chip/chip.styles.js.map +1 -0
  231. package/dist/components/citation-badge/citation-badge.class.d.ts +114 -0
  232. package/dist/components/citation-badge/citation-badge.class.d.ts.map +1 -0
  233. package/dist/components/citation-badge/citation-badge.class.js +317 -0
  234. package/dist/components/citation-badge/citation-badge.class.js.map +1 -0
  235. package/dist/components/citation-badge/citation-badge.d.ts +2 -113
  236. package/dist/components/citation-badge/citation-badge.d.ts.map +1 -0
  237. package/dist/components/citation-badge/citation-badge.js +3 -298
  238. package/dist/components/citation-badge/citation-badge.js.map +1 -0
  239. package/dist/components/citation-badge/citation-badge.styles.d.ts +1 -0
  240. package/dist/components/citation-badge/citation-badge.styles.d.ts.map +1 -0
  241. package/dist/components/citation-badge/citation-badge.styles.js +12 -11
  242. package/dist/components/citation-badge/citation-badge.styles.js.map +1 -0
  243. package/dist/components/code-block/code-block.class.d.ts +141 -0
  244. package/dist/components/code-block/code-block.class.d.ts.map +1 -0
  245. package/dist/components/code-block/code-block.class.js +333 -0
  246. package/dist/components/code-block/code-block.class.js.map +1 -0
  247. package/dist/components/code-block/code-block.d.ts +3 -89
  248. package/dist/components/code-block/code-block.d.ts.map +1 -0
  249. package/dist/components/code-block/code-block.js +4 -315
  250. package/dist/components/code-block/code-block.js.map +1 -0
  251. package/dist/components/code-block/code-block.styles.d.ts +1 -0
  252. package/dist/components/code-block/code-block.styles.d.ts.map +1 -0
  253. package/dist/components/code-block/code-block.styles.js +25 -21
  254. package/dist/components/code-block/code-block.styles.js.map +1 -0
  255. package/dist/components/code-block/code-loader.d.ts +49 -5
  256. package/dist/components/code-block/code-loader.d.ts.map +1 -0
  257. package/dist/components/code-block/code-loader.js +64 -0
  258. package/dist/components/code-block/code-loader.js.map +1 -0
  259. package/dist/components/combobox/combobox.class.d.ts +205 -0
  260. package/dist/components/combobox/combobox.class.d.ts.map +1 -0
  261. package/dist/components/combobox/combobox.class.js +854 -0
  262. package/dist/components/combobox/combobox.class.js.map +1 -0
  263. package/dist/components/combobox/combobox.d.ts +3 -158
  264. package/dist/components/combobox/combobox.d.ts.map +1 -0
  265. package/dist/components/combobox/combobox.js +4 -751
  266. package/dist/components/combobox/combobox.js.map +1 -0
  267. package/dist/components/combobox/combobox.styles.d.ts +1 -0
  268. package/dist/components/combobox/combobox.styles.d.ts.map +1 -0
  269. package/dist/components/combobox/combobox.styles.js +34 -33
  270. package/dist/components/combobox/combobox.styles.js.map +1 -0
  271. package/dist/components/combobox/option.class.d.ts +44 -0
  272. package/dist/components/combobox/option.class.d.ts.map +1 -0
  273. package/dist/components/combobox/option.class.js +101 -0
  274. package/dist/components/combobox/option.class.js.map +1 -0
  275. package/dist/components/combobox/option.d.ts +2 -40
  276. package/dist/components/combobox/option.d.ts.map +1 -0
  277. package/dist/components/combobox/option.js +3 -109
  278. package/dist/components/combobox/option.js.map +1 -0
  279. package/dist/components/context-meter/context-meter.class.d.ts +54 -0
  280. package/dist/components/context-meter/context-meter.class.d.ts.map +1 -0
  281. package/dist/components/context-meter/context-meter.class.js +158 -0
  282. package/dist/components/context-meter/context-meter.class.js.map +1 -0
  283. package/dist/components/context-meter/context-meter.d.ts +2 -53
  284. package/dist/components/context-meter/context-meter.d.ts.map +1 -0
  285. package/dist/components/context-meter/context-meter.js +3 -148
  286. package/dist/components/context-meter/context-meter.js.map +1 -0
  287. package/dist/components/context-meter/context-meter.styles.d.ts +1 -0
  288. package/dist/components/context-meter/context-meter.styles.d.ts.map +1 -0
  289. package/dist/components/context-meter/context-meter.styles.js +7 -12
  290. package/dist/components/context-meter/context-meter.styles.js.map +1 -0
  291. package/dist/components/conversation-item/conversation-item.class.d.ts +127 -0
  292. package/dist/components/conversation-item/conversation-item.class.d.ts.map +1 -0
  293. package/dist/components/conversation-item/conversation-item.class.js +259 -0
  294. package/dist/components/conversation-item/conversation-item.class.js.map +1 -0
  295. package/dist/components/conversation-item/conversation-item.d.ts +2 -128
  296. package/dist/components/conversation-item/conversation-item.d.ts.map +1 -0
  297. package/dist/components/conversation-item/conversation-item.js +3 -320
  298. package/dist/components/conversation-item/conversation-item.js.map +1 -0
  299. package/dist/components/conversation-item/conversation-item.styles.d.ts +1 -0
  300. package/dist/components/conversation-item/conversation-item.styles.d.ts.map +1 -0
  301. package/dist/components/conversation-item/conversation-item.styles.js +12 -11
  302. package/dist/components/conversation-item/conversation-item.styles.js.map +1 -0
  303. package/dist/components/copy-button/copy-button.class.d.ts +37 -0
  304. package/dist/components/copy-button/copy-button.class.d.ts.map +1 -0
  305. package/dist/components/copy-button/copy-button.class.js +103 -0
  306. package/dist/components/copy-button/copy-button.class.js.map +1 -0
  307. package/dist/components/copy-button/copy-button.d.ts +2 -0
  308. package/dist/components/copy-button/copy-button.d.ts.map +1 -0
  309. package/dist/components/copy-button/copy-button.js +5 -0
  310. package/dist/components/copy-button/copy-button.js.map +1 -0
  311. package/dist/components/copy-button/copy-button.styles.d.ts +2 -0
  312. package/dist/components/copy-button/copy-button.styles.d.ts.map +1 -0
  313. package/dist/components/copy-button/copy-button.styles.js +40 -0
  314. package/dist/components/copy-button/copy-button.styles.js.map +1 -0
  315. package/dist/components/date-picker/calendar-core.d.ts +25 -0
  316. package/dist/components/date-picker/calendar-core.d.ts.map +1 -0
  317. package/dist/components/date-picker/calendar-core.js +52 -4
  318. package/dist/components/date-picker/calendar-core.js.map +1 -0
  319. package/dist/components/date-picker/date-input.class.d.ts +185 -0
  320. package/dist/components/date-picker/date-input.class.d.ts.map +1 -0
  321. package/dist/components/date-picker/date-input.class.js +676 -0
  322. package/dist/components/date-picker/date-input.class.js.map +1 -0
  323. package/dist/components/date-picker/date-input.d.ts +3 -101
  324. package/dist/components/date-picker/date-input.d.ts.map +1 -0
  325. package/dist/components/date-picker/date-input.js +4 -470
  326. package/dist/components/date-picker/date-input.js.map +1 -0
  327. package/dist/components/date-picker/date-input.styles.d.ts +1 -0
  328. package/dist/components/date-picker/date-input.styles.d.ts.map +1 -0
  329. package/dist/components/date-picker/date-input.styles.js +11 -10
  330. package/dist/components/date-picker/date-input.styles.js.map +1 -0
  331. package/dist/components/date-picker/date-picker.class.d.ts +121 -0
  332. package/dist/components/date-picker/date-picker.class.d.ts.map +1 -0
  333. package/dist/components/date-picker/date-picker.class.js +513 -0
  334. package/dist/components/date-picker/date-picker.class.js.map +1 -0
  335. package/dist/components/date-picker/date-picker.d.ts +2 -79
  336. package/dist/components/date-picker/date-picker.d.ts.map +1 -0
  337. package/dist/components/date-picker/date-picker.js +3 -432
  338. package/dist/components/date-picker/date-picker.js.map +1 -0
  339. package/dist/components/date-picker/date-picker.styles.d.ts +1 -0
  340. package/dist/components/date-picker/date-picker.styles.d.ts.map +1 -0
  341. package/dist/components/date-picker/date-picker.styles.js +10 -9
  342. package/dist/components/date-picker/date-picker.styles.js.map +1 -0
  343. package/dist/components/dialog/confirm.d.ts +1 -0
  344. package/dist/components/dialog/confirm.d.ts.map +1 -0
  345. package/dist/components/dialog/confirm.js +4 -6
  346. package/dist/components/dialog/confirm.js.map +1 -0
  347. package/dist/components/dialog/dialog.class.d.ts +137 -0
  348. package/dist/components/dialog/dialog.class.d.ts.map +1 -0
  349. package/dist/components/dialog/dialog.class.js +301 -0
  350. package/dist/components/dialog/dialog.class.js.map +1 -0
  351. package/dist/components/dialog/dialog.d.ts +2 -85
  352. package/dist/components/dialog/dialog.d.ts.map +1 -0
  353. package/dist/components/dialog/dialog.js +3 -270
  354. package/dist/components/dialog/dialog.js.map +1 -0
  355. package/dist/components/dialog/dialog.styles.d.ts +1 -0
  356. package/dist/components/dialog/dialog.styles.d.ts.map +1 -0
  357. package/dist/components/dialog/dialog.styles.js +54 -6
  358. package/dist/components/dialog/dialog.styles.js.map +1 -0
  359. package/dist/components/dock-panel/dock-panel.class.d.ts +143 -0
  360. package/dist/components/dock-panel/dock-panel.class.d.ts.map +1 -0
  361. package/dist/components/dock-panel/dock-panel.class.js +358 -0
  362. package/dist/components/dock-panel/dock-panel.class.js.map +1 -0
  363. package/dist/components/dock-panel/dock-panel.d.ts +2 -134
  364. package/dist/components/dock-panel/dock-panel.d.ts.map +1 -0
  365. package/dist/components/dock-panel/dock-panel.js +3 -343
  366. package/dist/components/dock-panel/dock-panel.js.map +1 -0
  367. package/dist/components/dock-panel/dock-panel.styles.d.ts +1 -0
  368. package/dist/components/dock-panel/dock-panel.styles.d.ts.map +1 -0
  369. package/dist/components/dock-panel/dock-panel.styles.js +34 -13
  370. package/dist/components/dock-panel/dock-panel.styles.js.map +1 -0
  371. package/dist/components/document-preview/document-preview.class.d.ts +153 -0
  372. package/dist/components/document-preview/document-preview.class.d.ts.map +1 -0
  373. package/dist/components/document-preview/document-preview.class.js +304 -0
  374. package/dist/components/document-preview/document-preview.class.js.map +1 -0
  375. package/dist/components/document-preview/document-preview.d.ts +2 -135
  376. package/dist/components/document-preview/document-preview.d.ts.map +1 -0
  377. package/dist/components/document-preview/document-preview.js +3 -370
  378. package/dist/components/document-preview/document-preview.js.map +1 -0
  379. package/dist/components/document-preview/document-preview.styles.d.ts +1 -0
  380. package/dist/components/document-preview/document-preview.styles.d.ts.map +1 -0
  381. package/dist/components/document-preview/document-preview.styles.js +22 -21
  382. package/dist/components/document-preview/document-preview.styles.js.map +1 -0
  383. package/dist/components/empty/empty.class.d.ts +43 -0
  384. package/dist/components/empty/empty.class.d.ts.map +1 -0
  385. package/dist/components/empty/empty.class.js +112 -0
  386. package/dist/components/empty/empty.class.js.map +1 -0
  387. package/dist/components/empty/empty.d.ts +2 -43
  388. package/dist/components/empty/empty.d.ts.map +1 -0
  389. package/dist/components/empty/empty.js +3 -105
  390. package/dist/components/empty/empty.js.map +1 -0
  391. package/dist/components/empty/empty.styles.d.ts +1 -0
  392. package/dist/components/empty/empty.styles.d.ts.map +1 -0
  393. package/dist/components/empty/empty.styles.js +6 -8
  394. package/dist/components/empty/empty.styles.js.map +1 -0
  395. package/dist/components/export-button/csv.d.ts +1 -0
  396. package/dist/components/export-button/csv.d.ts.map +1 -0
  397. package/dist/components/export-button/csv.js +1 -0
  398. package/dist/components/export-button/csv.js.map +1 -0
  399. package/dist/components/export-button/export-button.class.d.ts +76 -0
  400. package/dist/components/export-button/export-button.class.d.ts.map +1 -0
  401. package/dist/components/export-button/export-button.class.js +249 -0
  402. package/dist/components/export-button/export-button.class.js.map +1 -0
  403. package/dist/components/export-button/export-button.d.ts +2 -55
  404. package/dist/components/export-button/export-button.d.ts.map +1 -0
  405. package/dist/components/export-button/export-button.js +3 -233
  406. package/dist/components/export-button/export-button.js.map +1 -0
  407. package/dist/components/export-button/export-button.styles.d.ts +1 -0
  408. package/dist/components/export-button/export-button.styles.d.ts.map +1 -0
  409. package/dist/components/export-button/export-button.styles.js +11 -6
  410. package/dist/components/export-button/export-button.styles.js.map +1 -0
  411. package/dist/components/file-input/accept.d.ts +1 -0
  412. package/dist/components/file-input/accept.d.ts.map +1 -0
  413. package/dist/components/file-input/accept.js +3 -0
  414. package/dist/components/file-input/accept.js.map +1 -0
  415. package/dist/components/file-input/file-input.class.d.ts +66 -0
  416. package/dist/components/file-input/file-input.class.d.ts.map +1 -0
  417. package/dist/components/file-input/file-input.class.js +213 -0
  418. package/dist/components/file-input/file-input.class.js.map +1 -0
  419. package/dist/components/file-input/file-input.d.ts +2 -50
  420. package/dist/components/file-input/file-input.d.ts.map +1 -0
  421. package/dist/components/file-input/file-input.js +3 -195
  422. package/dist/components/file-input/file-input.js.map +1 -0
  423. package/dist/components/file-input/file-input.styles.d.ts +1 -0
  424. package/dist/components/file-input/file-input.styles.d.ts.map +1 -0
  425. package/dist/components/file-input/file-input.styles.js +5 -4
  426. package/dist/components/file-input/file-input.styles.js.map +1 -0
  427. package/dist/components/flag/flag-peer.d.ts +8 -0
  428. package/dist/components/flag/flag-peer.d.ts.map +1 -0
  429. package/dist/components/flag/flag-peer.js +13 -0
  430. package/dist/components/flag/flag-peer.js.map +1 -0
  431. package/dist/components/flag/flag.class.d.ts +124 -0
  432. package/dist/components/flag/flag.class.d.ts.map +1 -0
  433. package/dist/components/flag/flag.class.js +251 -0
  434. package/dist/components/flag/flag.class.js.map +1 -0
  435. package/dist/components/flag/flag.d.ts +3 -121
  436. package/dist/components/flag/flag.d.ts.map +1 -0
  437. package/dist/components/flag/flag.js +4 -225
  438. package/dist/components/flag/flag.js.map +1 -0
  439. package/dist/components/flag/flag.styles.d.ts +1 -0
  440. package/dist/components/flag/flag.styles.d.ts.map +1 -0
  441. package/dist/components/flag/flag.styles.js +6 -5
  442. package/dist/components/flag/flag.styles.js.map +1 -0
  443. package/dist/components/flag/language-map.d.ts +5 -1
  444. package/dist/components/flag/language-map.d.ts.map +1 -0
  445. package/dist/components/flag/language-map.js +7 -3
  446. package/dist/components/flag/language-map.js.map +1 -0
  447. package/dist/components/gauge/gauge.class.d.ts +41 -0
  448. package/dist/components/gauge/gauge.class.d.ts.map +1 -0
  449. package/dist/components/gauge/gauge.class.js +178 -0
  450. package/dist/components/gauge/gauge.class.js.map +1 -0
  451. package/dist/components/gauge/gauge.d.ts +2 -31
  452. package/dist/components/gauge/gauge.d.ts.map +1 -0
  453. package/dist/components/gauge/gauge.js +3 -158
  454. package/dist/components/gauge/gauge.js.map +1 -0
  455. package/dist/components/gauge/gauge.styles.d.ts +1 -0
  456. package/dist/components/gauge/gauge.styles.d.ts.map +1 -0
  457. package/dist/components/gauge/gauge.styles.js +9 -8
  458. package/dist/components/gauge/gauge.styles.js.map +1 -0
  459. package/dist/components/generation-status/generation-status.class.d.ts +121 -0
  460. package/dist/components/generation-status/generation-status.class.d.ts.map +1 -0
  461. package/dist/components/generation-status/generation-status.class.js +260 -0
  462. package/dist/components/generation-status/generation-status.class.js.map +1 -0
  463. package/dist/components/generation-status/generation-status.d.ts +2 -109
  464. package/dist/components/generation-status/generation-status.d.ts.map +1 -0
  465. package/dist/components/generation-status/generation-status.js +3 -271
  466. package/dist/components/generation-status/generation-status.js.map +1 -0
  467. package/dist/components/generation-status/generation-status.styles.d.ts +1 -0
  468. package/dist/components/generation-status/generation-status.styles.d.ts.map +1 -0
  469. package/dist/components/generation-status/generation-status.styles.js +7 -6
  470. package/dist/components/generation-status/generation-status.styles.js.map +1 -0
  471. package/dist/components/graph/graph-loader.d.ts +13 -13
  472. package/dist/components/graph/graph-loader.d.ts.map +1 -0
  473. package/dist/components/graph/graph-loader.js +1 -0
  474. package/dist/components/graph/graph-loader.js.map +1 -0
  475. package/dist/components/graph/graph.class.d.ts +167 -0
  476. package/dist/components/graph/graph.class.d.ts.map +1 -0
  477. package/dist/components/graph/graph.class.js +552 -0
  478. package/dist/components/graph/graph.class.js.map +1 -0
  479. package/dist/components/graph/graph.d.ts +3 -123
  480. package/dist/components/graph/graph.d.ts.map +1 -0
  481. package/dist/components/graph/graph.js +4 -465
  482. package/dist/components/graph/graph.js.map +1 -0
  483. package/dist/components/graph/graph.styles.d.ts +1 -0
  484. package/dist/components/graph/graph.styles.d.ts.map +1 -0
  485. package/dist/components/graph/graph.styles.js +2 -1
  486. package/dist/components/graph/graph.styles.js.map +1 -0
  487. package/dist/components/heatmap/calendar-grid.d.ts +16 -6
  488. package/dist/components/heatmap/calendar-grid.d.ts.map +1 -0
  489. package/dist/components/heatmap/calendar-grid.js +18 -6
  490. package/dist/components/heatmap/calendar-grid.js.map +1 -0
  491. package/dist/components/heatmap/heatmap-scale.d.ts +14 -1
  492. package/dist/components/heatmap/heatmap-scale.d.ts.map +1 -0
  493. package/dist/components/heatmap/heatmap-scale.js +21 -2
  494. package/dist/components/heatmap/heatmap-scale.js.map +1 -0
  495. package/dist/components/heatmap/heatmap.class.d.ts +478 -0
  496. package/dist/components/heatmap/heatmap.class.d.ts.map +1 -0
  497. package/dist/components/heatmap/heatmap.class.js +1211 -0
  498. package/dist/components/heatmap/heatmap.class.js.map +1 -0
  499. package/dist/components/heatmap/heatmap.d.ts +2 -296
  500. package/dist/components/heatmap/heatmap.d.ts.map +1 -0
  501. package/dist/components/heatmap/heatmap.js +3 -892
  502. package/dist/components/heatmap/heatmap.js.map +1 -0
  503. package/dist/components/heatmap/heatmap.styles.d.ts +1 -0
  504. package/dist/components/heatmap/heatmap.styles.d.ts.map +1 -0
  505. package/dist/components/heatmap/heatmap.styles.js +20 -20
  506. package/dist/components/heatmap/heatmap.styles.js.map +1 -0
  507. package/dist/components/json-viewer/json-viewer.class.d.ts +77 -0
  508. package/dist/components/json-viewer/json-viewer.class.d.ts.map +1 -0
  509. package/dist/components/json-viewer/json-viewer.class.js +340 -0
  510. package/dist/components/json-viewer/json-viewer.class.js.map +1 -0
  511. package/dist/components/json-viewer/json-viewer.d.ts +2 -53
  512. package/dist/components/json-viewer/json-viewer.d.ts.map +1 -0
  513. package/dist/components/json-viewer/json-viewer.js +3 -281
  514. package/dist/components/json-viewer/json-viewer.js.map +1 -0
  515. package/dist/components/json-viewer/json-viewer.styles.d.ts +1 -0
  516. package/dist/components/json-viewer/json-viewer.styles.d.ts.map +1 -0
  517. package/dist/components/json-viewer/json-viewer.styles.js +25 -21
  518. package/dist/components/json-viewer/json-viewer.styles.js.map +1 -0
  519. package/dist/components/kbd/kbd.class.d.ts +78 -0
  520. package/dist/components/kbd/kbd.class.d.ts.map +1 -0
  521. package/dist/components/kbd/kbd.class.js +230 -0
  522. package/dist/components/kbd/kbd.class.js.map +1 -0
  523. package/dist/components/kbd/kbd.d.ts +2 -77
  524. package/dist/components/kbd/kbd.d.ts.map +1 -0
  525. package/dist/components/kbd/kbd.js +3 -212
  526. package/dist/components/kbd/kbd.js.map +1 -0
  527. package/dist/components/kbd/kbd.styles.d.ts +1 -0
  528. package/dist/components/kbd/kbd.styles.d.ts.map +1 -0
  529. package/dist/components/kbd/kbd.styles.js +10 -9
  530. package/dist/components/kbd/kbd.styles.js.map +1 -0
  531. package/dist/components/live-region/live-region.class.d.ts +91 -0
  532. package/dist/components/live-region/live-region.class.d.ts.map +1 -0
  533. package/dist/components/live-region/live-region.class.js +188 -0
  534. package/dist/components/live-region/live-region.class.js.map +1 -0
  535. package/dist/components/live-region/live-region.d.ts +2 -81
  536. package/dist/components/live-region/live-region.d.ts.map +1 -0
  537. package/dist/components/live-region/live-region.js +3 -151
  538. package/dist/components/live-region/live-region.js.map +1 -0
  539. package/dist/components/live-region/live-region.styles.d.ts +1 -0
  540. package/dist/components/live-region/live-region.styles.d.ts.map +1 -0
  541. package/dist/components/live-region/live-region.styles.js +1 -0
  542. package/dist/components/live-region/live-region.styles.js.map +1 -0
  543. package/dist/components/map/map-loader.d.ts +5 -2
  544. package/dist/components/map/map-loader.d.ts.map +1 -0
  545. package/dist/components/map/map-loader.js +1 -0
  546. package/dist/components/map/map-loader.js.map +1 -0
  547. package/dist/components/map/map.class.d.ts +121 -0
  548. package/dist/components/map/map.class.d.ts.map +1 -0
  549. package/dist/components/map/map.class.js +450 -0
  550. package/dist/components/map/map.class.js.map +1 -0
  551. package/dist/components/map/map.d.ts +3 -88
  552. package/dist/components/map/map.d.ts.map +1 -0
  553. package/dist/components/map/map.js +4 -412
  554. package/dist/components/map/map.js.map +1 -0
  555. package/dist/components/map/map.styles.d.ts +1 -0
  556. package/dist/components/map/map.styles.d.ts.map +1 -0
  557. package/dist/components/map/map.styles.js +8 -7
  558. package/dist/components/map/map.styles.js.map +1 -0
  559. package/dist/components/markdown/markdown-loader.d.ts +30 -6
  560. package/dist/components/markdown/markdown-loader.d.ts.map +1 -0
  561. package/dist/components/markdown/markdown-loader.js +36 -1
  562. package/dist/components/markdown/markdown-loader.js.map +1 -0
  563. package/dist/components/markdown/markdown.class.d.ts +129 -0
  564. package/dist/components/markdown/markdown.class.d.ts.map +1 -0
  565. package/dist/components/markdown/markdown.class.js +354 -0
  566. package/dist/components/markdown/markdown.class.js.map +1 -0
  567. package/dist/components/markdown/markdown.d.ts +2 -81
  568. package/dist/components/markdown/markdown.d.ts.map +1 -0
  569. package/dist/components/markdown/markdown.js +3 -282
  570. package/dist/components/markdown/markdown.js.map +1 -0
  571. package/dist/components/markdown/markdown.styles.d.ts +1 -0
  572. package/dist/components/markdown/markdown.styles.d.ts.map +1 -0
  573. package/dist/components/markdown/markdown.styles.js +19 -12
  574. package/dist/components/markdown/markdown.styles.js.map +1 -0
  575. package/dist/components/media-card/media-card.class.d.ts +131 -0
  576. package/dist/components/media-card/media-card.class.d.ts.map +1 -0
  577. package/dist/components/media-card/media-card.class.js +272 -0
  578. package/dist/components/media-card/media-card.class.js.map +1 -0
  579. package/dist/components/media-card/media-card.d.ts +2 -122
  580. package/dist/components/media-card/media-card.d.ts.map +1 -0
  581. package/dist/components/media-card/media-card.js +3 -293
  582. package/dist/components/media-card/media-card.js.map +1 -0
  583. package/dist/components/media-card/media-card.styles.d.ts +1 -0
  584. package/dist/components/media-card/media-card.styles.d.ts.map +1 -0
  585. package/dist/components/media-card/media-card.styles.js +8 -7
  586. package/dist/components/media-card/media-card.styles.js.map +1 -0
  587. package/dist/components/mention-popover/mention-popover.class.d.ts +207 -0
  588. package/dist/components/mention-popover/mention-popover.class.d.ts.map +1 -0
  589. package/dist/components/mention-popover/mention-popover.class.js +379 -0
  590. package/dist/components/mention-popover/mention-popover.class.js.map +1 -0
  591. package/dist/components/mention-popover/mention-popover.d.ts +2 -200
  592. package/dist/components/mention-popover/mention-popover.d.ts.map +1 -0
  593. package/dist/components/mention-popover/mention-popover.js +3 -473
  594. package/dist/components/mention-popover/mention-popover.js.map +1 -0
  595. package/dist/components/mention-popover/mention-popover.styles.d.ts +1 -0
  596. package/dist/components/mention-popover/mention-popover.styles.d.ts.map +1 -0
  597. package/dist/components/mention-popover/mention-popover.styles.js +11 -10
  598. package/dist/components/mention-popover/mention-popover.styles.js.map +1 -0
  599. package/dist/components/menu/menu-item.class.d.ts +99 -0
  600. package/dist/components/menu/menu-item.class.d.ts.map +1 -0
  601. package/dist/components/menu/menu-item.class.js +150 -0
  602. package/dist/components/menu/menu-item.class.js.map +1 -0
  603. package/dist/components/menu/menu-item.d.ts +2 -62
  604. package/dist/components/menu/menu-item.d.ts.map +1 -0
  605. package/dist/components/menu/menu-item.js +3 -117
  606. package/dist/components/menu/menu-item.js.map +1 -0
  607. package/dist/components/menu/menu-item.styles.d.ts +1 -0
  608. package/dist/components/menu/menu-item.styles.d.ts.map +1 -0
  609. package/dist/components/menu/menu-item.styles.js +11 -2
  610. package/dist/components/menu/menu-item.styles.js.map +1 -0
  611. package/dist/components/menu/menu.class.d.ts +173 -0
  612. package/dist/components/menu/menu.class.d.ts.map +1 -0
  613. package/dist/components/menu/menu.class.js +378 -0
  614. package/dist/components/menu/menu.class.js.map +1 -0
  615. package/dist/components/menu/menu.d.ts +3 -143
  616. package/dist/components/menu/menu.d.ts.map +1 -0
  617. package/dist/components/menu/menu.js +4 -363
  618. package/dist/components/menu/menu.js.map +1 -0
  619. package/dist/components/menu/menu.styles.d.ts +1 -0
  620. package/dist/components/menu/menu.styles.d.ts.map +1 -0
  621. package/dist/components/menu/menu.styles.js +9 -7
  622. package/dist/components/menu/menu.styles.js.map +1 -0
  623. package/dist/components/model-select/model-select.class.d.ts +177 -0
  624. package/dist/components/model-select/model-select.class.d.ts.map +1 -0
  625. package/dist/components/model-select/model-select.class.js +555 -0
  626. package/dist/components/model-select/model-select.class.js.map +1 -0
  627. package/dist/components/model-select/model-select.d.ts +2 -125
  628. package/dist/components/model-select/model-select.d.ts.map +1 -0
  629. package/dist/components/model-select/model-select.js +3 -488
  630. package/dist/components/model-select/model-select.js.map +1 -0
  631. package/dist/components/model-select/model-select.styles.d.ts +1 -0
  632. package/dist/components/model-select/model-select.styles.d.ts.map +1 -0
  633. package/dist/components/model-select/model-select.styles.js +39 -24
  634. package/dist/components/model-select/model-select.styles.js.map +1 -0
  635. package/dist/components/model-settings-panel/model-settings-panel.class.d.ts +94 -0
  636. package/dist/components/model-settings-panel/model-settings-panel.class.d.ts.map +1 -0
  637. package/dist/components/model-settings-panel/model-settings-panel.class.js +208 -0
  638. package/dist/components/model-settings-panel/model-settings-panel.class.js.map +1 -0
  639. package/dist/components/model-settings-panel/model-settings-panel.d.ts +4 -69
  640. package/dist/components/model-settings-panel/model-settings-panel.d.ts.map +1 -0
  641. package/dist/components/model-settings-panel/model-settings-panel.js +5 -143
  642. package/dist/components/model-settings-panel/model-settings-panel.js.map +1 -0
  643. package/dist/components/model-settings-panel/model-settings-panel.styles.d.ts +1 -0
  644. package/dist/components/model-settings-panel/model-settings-panel.styles.d.ts.map +1 -0
  645. package/dist/components/model-settings-panel/model-settings-panel.styles.js +12 -11
  646. package/dist/components/model-settings-panel/model-settings-panel.styles.js.map +1 -0
  647. package/dist/components/playback/playback.class.d.ts +79 -0
  648. package/dist/components/playback/playback.class.d.ts.map +1 -0
  649. package/dist/components/playback/playback.class.js +238 -0
  650. package/dist/components/playback/playback.class.js.map +1 -0
  651. package/dist/components/playback/playback.d.ts +2 -67
  652. package/dist/components/playback/playback.d.ts.map +1 -0
  653. package/dist/components/playback/playback.js +3 -207
  654. package/dist/components/playback/playback.js.map +1 -0
  655. package/dist/components/playback/playback.styles.d.ts +1 -0
  656. package/dist/components/playback/playback.styles.d.ts.map +1 -0
  657. package/dist/components/playback/playback.styles.js +8 -2
  658. package/dist/components/playback/playback.styles.js.map +1 -0
  659. package/dist/components/responsive-panel/responsive-panel.class.d.ts +164 -0
  660. package/dist/components/responsive-panel/responsive-panel.class.d.ts.map +1 -0
  661. package/dist/components/responsive-panel/responsive-panel.class.js +362 -0
  662. package/dist/components/responsive-panel/responsive-panel.class.js.map +1 -0
  663. package/dist/components/responsive-panel/responsive-panel.d.ts +2 -150
  664. package/dist/components/responsive-panel/responsive-panel.d.ts.map +1 -0
  665. package/dist/components/responsive-panel/responsive-panel.js +3 -363
  666. package/dist/components/responsive-panel/responsive-panel.js.map +1 -0
  667. package/dist/components/responsive-panel/responsive-panel.styles.d.ts +1 -0
  668. package/dist/components/responsive-panel/responsive-panel.styles.d.ts.map +1 -0
  669. package/dist/components/responsive-panel/responsive-panel.styles.js +8 -5
  670. package/dist/components/responsive-panel/responsive-panel.styles.js.map +1 -0
  671. package/dist/components/result-card/result-card.class.d.ts +51 -0
  672. package/dist/components/result-card/result-card.class.d.ts.map +1 -0
  673. package/dist/components/result-card/result-card.class.js +88 -0
  674. package/dist/components/result-card/result-card.class.js.map +1 -0
  675. package/dist/components/result-card/result-card.d.ts +2 -44
  676. package/dist/components/result-card/result-card.d.ts.map +1 -0
  677. package/dist/components/result-card/result-card.js +3 -81
  678. package/dist/components/result-card/result-card.js.map +1 -0
  679. package/dist/components/result-card/result-card.styles.d.ts +1 -0
  680. package/dist/components/result-card/result-card.styles.d.ts.map +1 -0
  681. package/dist/components/result-card/result-card.styles.js +5 -5
  682. package/dist/components/result-card/result-card.styles.js.map +1 -0
  683. package/dist/components/result-card/result-field.class.d.ts +37 -0
  684. package/dist/components/result-card/result-field.class.d.ts.map +1 -0
  685. package/dist/components/result-card/result-field.class.js +86 -0
  686. package/dist/components/result-card/result-field.class.js.map +1 -0
  687. package/dist/components/result-card/result-field.d.ts +2 -36
  688. package/dist/components/result-card/result-field.d.ts.map +1 -0
  689. package/dist/components/result-card/result-field.js +3 -85
  690. package/dist/components/result-card/result-field.js.map +1 -0
  691. package/dist/components/result-card/result-field.styles.d.ts +1 -0
  692. package/dist/components/result-card/result-field.styles.d.ts.map +1 -0
  693. package/dist/components/result-card/result-field.styles.js +3 -2
  694. package/dist/components/result-card/result-field.styles.js.map +1 -0
  695. package/dist/components/select/select.class.d.ts +212 -0
  696. package/dist/components/select/select.class.d.ts.map +1 -0
  697. package/dist/components/select/select.class.js +637 -0
  698. package/dist/components/select/select.class.js.map +1 -0
  699. package/dist/components/select/select.d.ts +3 -166
  700. package/dist/components/select/select.d.ts.map +1 -0
  701. package/dist/components/select/select.js +4 -611
  702. package/dist/components/select/select.js.map +1 -0
  703. package/dist/components/select/select.styles.d.ts +1 -0
  704. package/dist/components/select/select.styles.d.ts.map +1 -0
  705. package/dist/components/select/select.styles.js +35 -34
  706. package/dist/components/select/select.styles.js.map +1 -0
  707. package/dist/components/skeleton/skeleton.class.d.ts +30 -0
  708. package/dist/components/skeleton/skeleton.class.d.ts.map +1 -0
  709. package/dist/components/skeleton/skeleton.class.js +67 -0
  710. package/dist/components/skeleton/skeleton.class.js.map +1 -0
  711. package/dist/components/skeleton/skeleton.d.ts +2 -26
  712. package/dist/components/skeleton/skeleton.d.ts.map +1 -0
  713. package/dist/components/skeleton/skeleton.js +3 -60
  714. package/dist/components/skeleton/skeleton.js.map +1 -0
  715. package/dist/components/skeleton/skeleton.styles.d.ts +1 -0
  716. package/dist/components/skeleton/skeleton.styles.d.ts.map +1 -0
  717. package/dist/components/skeleton/skeleton.styles.js +7 -5
  718. package/dist/components/skeleton/skeleton.styles.js.map +1 -0
  719. package/dist/components/slider/slider.class.d.ts +152 -0
  720. package/dist/components/slider/slider.class.d.ts.map +1 -0
  721. package/dist/components/slider/slider.class.js +433 -0
  722. package/dist/components/slider/slider.class.js.map +1 -0
  723. package/dist/components/slider/slider.d.ts +2 -89
  724. package/dist/components/slider/slider.d.ts.map +1 -0
  725. package/dist/components/slider/slider.js +3 -350
  726. package/dist/components/slider/slider.js.map +1 -0
  727. package/dist/components/slider/slider.styles.d.ts +1 -0
  728. package/dist/components/slider/slider.styles.d.ts.map +1 -0
  729. package/dist/components/slider/slider.styles.js +15 -14
  730. package/dist/components/slider/slider.styles.js.map +1 -0
  731. package/dist/components/source-card/source-card.class.d.ts +105 -0
  732. package/dist/components/source-card/source-card.class.d.ts.map +1 -0
  733. package/dist/components/source-card/source-card.class.js +194 -0
  734. package/dist/components/source-card/source-card.class.js.map +1 -0
  735. package/dist/components/source-card/source-card.d.ts +2 -92
  736. package/dist/components/source-card/source-card.d.ts.map +1 -0
  737. package/dist/components/source-card/source-card.js +3 -146
  738. package/dist/components/source-card/source-card.js.map +1 -0
  739. package/dist/components/source-card/source-card.styles.d.ts +1 -0
  740. package/dist/components/source-card/source-card.styles.d.ts.map +1 -0
  741. package/dist/components/source-card/source-card.styles.js +12 -11
  742. package/dist/components/source-card/source-card.styles.js.map +1 -0
  743. package/dist/components/source-list/source-list.class.d.ts +64 -0
  744. package/dist/components/source-list/source-list.class.d.ts.map +1 -0
  745. package/dist/components/source-list/source-list.class.js +129 -0
  746. package/dist/components/source-list/source-list.class.js.map +1 -0
  747. package/dist/components/source-list/source-list.d.ts +2 -63
  748. package/dist/components/source-list/source-list.d.ts.map +1 -0
  749. package/dist/components/source-list/source-list.js +3 -120
  750. package/dist/components/source-list/source-list.js.map +1 -0
  751. package/dist/components/source-list/source-list.styles.d.ts +1 -0
  752. package/dist/components/source-list/source-list.styles.d.ts.map +1 -0
  753. package/dist/components/source-list/source-list.styles.js +5 -4
  754. package/dist/components/source-list/source-list.styles.js.map +1 -0
  755. package/dist/components/sparkline/sparkline.class.d.ts +31 -0
  756. package/dist/components/sparkline/sparkline.class.d.ts.map +1 -0
  757. package/dist/components/sparkline/sparkline.class.js +140 -0
  758. package/dist/components/sparkline/sparkline.class.js.map +1 -0
  759. package/dist/components/sparkline/sparkline.d.ts +2 -30
  760. package/dist/components/sparkline/sparkline.d.ts.map +1 -0
  761. package/dist/components/sparkline/sparkline.js +3 -113
  762. package/dist/components/sparkline/sparkline.js.map +1 -0
  763. package/dist/components/sparkline/sparkline.styles.d.ts +1 -0
  764. package/dist/components/sparkline/sparkline.styles.d.ts.map +1 -0
  765. package/dist/components/sparkline/sparkline.styles.js +3 -2
  766. package/dist/components/sparkline/sparkline.styles.js.map +1 -0
  767. package/dist/components/split/split.class.d.ts +293 -0
  768. package/dist/components/split/split.class.d.ts.map +1 -0
  769. package/dist/components/split/split.class.js +831 -0
  770. package/dist/components/split/split.class.js.map +1 -0
  771. package/dist/components/split/split.d.ts +2 -155
  772. package/dist/components/split/split.d.ts.map +1 -0
  773. package/dist/components/split/split.js +3 -583
  774. package/dist/components/split/split.js.map +1 -0
  775. package/dist/components/split/split.styles.d.ts +1 -0
  776. package/dist/components/split/split.styles.d.ts.map +1 -0
  777. package/dist/components/split/split.styles.js +24 -6
  778. package/dist/components/split/split.styles.js.map +1 -0
  779. package/dist/components/stat/stat.class.d.ts +90 -0
  780. package/dist/components/stat/stat.class.d.ts.map +1 -0
  781. package/dist/components/stat/stat.class.js +249 -0
  782. package/dist/components/stat/stat.class.js.map +1 -0
  783. package/dist/components/stat/stat.d.ts +2 -83
  784. package/dist/components/stat/stat.d.ts.map +1 -0
  785. package/dist/components/stat/stat.js +3 -213
  786. package/dist/components/stat/stat.js.map +1 -0
  787. package/dist/components/stat/stat.styles.d.ts +1 -0
  788. package/dist/components/stat/stat.styles.d.ts.map +1 -0
  789. package/dist/components/stat/stat.styles.js +23 -22
  790. package/dist/components/stat/stat.styles.js.map +1 -0
  791. package/dist/components/stream-status/stream-status.class.d.ts +131 -0
  792. package/dist/components/stream-status/stream-status.class.d.ts.map +1 -0
  793. package/dist/components/stream-status/stream-status.class.js +212 -0
  794. package/dist/components/stream-status/stream-status.class.js.map +1 -0
  795. package/dist/components/stream-status/stream-status.d.ts +3 -110
  796. package/dist/components/stream-status/stream-status.d.ts.map +1 -0
  797. package/dist/components/stream-status/stream-status.js +4 -208
  798. package/dist/components/stream-status/stream-status.js.map +1 -0
  799. package/dist/components/stream-status/stream-status.styles.d.ts +1 -0
  800. package/dist/components/stream-status/stream-status.styles.d.ts.map +1 -0
  801. package/dist/components/stream-status/stream-status.styles.js +7 -6
  802. package/dist/components/stream-status/stream-status.styles.js.map +1 -0
  803. package/dist/components/streaming-text/streaming-text.class.d.ts +105 -0
  804. package/dist/components/streaming-text/streaming-text.class.d.ts.map +1 -0
  805. package/dist/components/streaming-text/streaming-text.class.js +223 -0
  806. package/dist/components/streaming-text/streaming-text.class.js.map +1 -0
  807. package/dist/components/streaming-text/streaming-text.d.ts +3 -98
  808. package/dist/components/streaming-text/streaming-text.d.ts.map +1 -0
  809. package/dist/components/streaming-text/streaming-text.js +4 -207
  810. package/dist/components/streaming-text/streaming-text.js.map +1 -0
  811. package/dist/components/streaming-text/streaming-text.styles.d.ts +1 -0
  812. package/dist/components/streaming-text/streaming-text.styles.d.ts.map +1 -0
  813. package/dist/components/streaming-text/streaming-text.styles.js +6 -4
  814. package/dist/components/streaming-text/streaming-text.styles.js.map +1 -0
  815. package/dist/components/switch/switch.class.d.ts +109 -0
  816. package/dist/components/switch/switch.class.d.ts.map +1 -0
  817. package/dist/components/switch/switch.class.js +225 -0
  818. package/dist/components/switch/switch.class.js.map +1 -0
  819. package/dist/components/switch/switch.d.ts +2 -58
  820. package/dist/components/switch/switch.d.ts.map +1 -0
  821. package/dist/components/switch/switch.js +3 -177
  822. package/dist/components/switch/switch.js.map +1 -0
  823. package/dist/components/switch/switch.styles.d.ts +1 -0
  824. package/dist/components/switch/switch.styles.d.ts.map +1 -0
  825. package/dist/components/switch/switch.styles.js +19 -15
  826. package/dist/components/switch/switch.styles.js.map +1 -0
  827. package/dist/components/table/table.class.d.ts +212 -0
  828. package/dist/components/table/table.class.d.ts.map +1 -0
  829. package/dist/components/table/table.class.js +562 -0
  830. package/dist/components/table/table.class.js.map +1 -0
  831. package/dist/components/table/table.d.ts +3 -184
  832. package/dist/components/table/table.d.ts.map +1 -0
  833. package/dist/components/table/table.js +4 -543
  834. package/dist/components/table/table.js.map +1 -0
  835. package/dist/components/table/table.styles.d.ts +1 -0
  836. package/dist/components/table/table.styles.d.ts.map +1 -0
  837. package/dist/components/table/table.styles.js +9 -8
  838. package/dist/components/table/table.styles.js.map +1 -0
  839. package/dist/components/tabs/tabs.class.d.ts +80 -0
  840. package/dist/components/tabs/tabs.class.d.ts.map +1 -0
  841. package/dist/components/tabs/tabs.class.js +215 -0
  842. package/dist/components/tabs/tabs.class.js.map +1 -0
  843. package/dist/components/tabs/tabs.d.ts +2 -51
  844. package/dist/components/tabs/tabs.d.ts.map +1 -0
  845. package/dist/components/tabs/tabs.js +3 -188
  846. package/dist/components/tabs/tabs.js.map +1 -0
  847. package/dist/components/tabs/tabs.styles.d.ts +1 -0
  848. package/dist/components/tabs/tabs.styles.d.ts.map +1 -0
  849. package/dist/components/tabs/tabs.styles.js +21 -4
  850. package/dist/components/tabs/tabs.styles.js.map +1 -0
  851. package/dist/components/thinking-panel/thinking-panel.class.d.ts +124 -0
  852. package/dist/components/thinking-panel/thinking-panel.class.d.ts.map +1 -0
  853. package/dist/components/thinking-panel/thinking-panel.class.js +259 -0
  854. package/dist/components/thinking-panel/thinking-panel.class.js.map +1 -0
  855. package/dist/components/thinking-panel/thinking-panel.d.ts +2 -121
  856. package/dist/components/thinking-panel/thinking-panel.d.ts.map +1 -0
  857. package/dist/components/thinking-panel/thinking-panel.js +3 -233
  858. package/dist/components/thinking-panel/thinking-panel.js.map +1 -0
  859. package/dist/components/thinking-panel/thinking-panel.styles.d.ts +1 -0
  860. package/dist/components/thinking-panel/thinking-panel.styles.d.ts.map +1 -0
  861. package/dist/components/thinking-panel/thinking-panel.styles.js +19 -12
  862. package/dist/components/thinking-panel/thinking-panel.styles.js.map +1 -0
  863. package/dist/components/time-range/time-range.class.d.ts +137 -0
  864. package/dist/components/time-range/time-range.class.d.ts.map +1 -0
  865. package/dist/components/time-range/time-range.class.js +467 -0
  866. package/dist/components/time-range/time-range.class.js.map +1 -0
  867. package/dist/components/time-range/time-range.d.ts +2 -69
  868. package/dist/components/time-range/time-range.d.ts.map +1 -0
  869. package/dist/components/time-range/time-range.js +3 -398
  870. package/dist/components/time-range/time-range.js.map +1 -0
  871. package/dist/components/time-range/time-range.styles.d.ts +1 -0
  872. package/dist/components/time-range/time-range.styles.d.ts.map +1 -0
  873. package/dist/components/time-range/time-range.styles.js +21 -13
  874. package/dist/components/time-range/time-range.styles.js.map +1 -0
  875. package/dist/components/toast/toast-item.class.d.ts +79 -0
  876. package/dist/components/toast/toast-item.class.d.ts.map +1 -0
  877. package/dist/components/toast/toast-item.class.js +307 -0
  878. package/dist/components/toast/toast-item.class.js.map +1 -0
  879. package/dist/components/toast/toast-item.d.ts +2 -63
  880. package/dist/components/toast/toast-item.d.ts.map +1 -0
  881. package/dist/components/toast/toast-item.js +3 -286
  882. package/dist/components/toast/toast-item.js.map +1 -0
  883. package/dist/components/toast/toast-item.styles.d.ts +1 -0
  884. package/dist/components/toast/toast-item.styles.d.ts.map +1 -0
  885. package/dist/components/toast/toast-item.styles.js +64 -32
  886. package/dist/components/toast/toast-item.styles.js.map +1 -0
  887. package/dist/components/toast/toast.class.d.ts +33 -0
  888. package/dist/components/toast/toast.class.d.ts.map +1 -0
  889. package/dist/components/toast/toast.class.js +59 -0
  890. package/dist/components/toast/toast.class.js.map +1 -0
  891. package/dist/components/toast/toast.d.ts +3 -32
  892. package/dist/components/toast/toast.d.ts.map +1 -0
  893. package/dist/components/toast/toast.js +4 -46
  894. package/dist/components/toast/toast.js.map +1 -0
  895. package/dist/components/toast/toast.styles.d.ts +1 -0
  896. package/dist/components/toast/toast.styles.d.ts.map +1 -0
  897. package/dist/components/toast/toast.styles.js +20 -16
  898. package/dist/components/toast/toast.styles.js.map +1 -0
  899. package/dist/components/toast/toaster.d.ts +1 -0
  900. package/dist/components/toast/toaster.d.ts.map +1 -0
  901. package/dist/components/toast/toaster.js +11 -1
  902. package/dist/components/toast/toaster.js.map +1 -0
  903. package/dist/components/tool-approval-dialog/tool-approval-dialog.class.d.ts +135 -0
  904. package/dist/components/tool-approval-dialog/tool-approval-dialog.class.d.ts.map +1 -0
  905. package/dist/components/tool-approval-dialog/tool-approval-dialog.class.js +257 -0
  906. package/dist/components/tool-approval-dialog/tool-approval-dialog.class.js.map +1 -0
  907. package/dist/components/tool-approval-dialog/tool-approval-dialog.d.ts +3 -130
  908. package/dist/components/tool-approval-dialog/tool-approval-dialog.d.ts.map +1 -0
  909. package/dist/components/tool-approval-dialog/tool-approval-dialog.js +4 -401
  910. package/dist/components/tool-approval-dialog/tool-approval-dialog.js.map +1 -0
  911. package/dist/components/tool-approval-dialog/tool-approval-dialog.styles.d.ts +1 -0
  912. package/dist/components/tool-approval-dialog/tool-approval-dialog.styles.d.ts.map +1 -0
  913. package/dist/components/tool-approval-dialog/tool-approval-dialog.styles.js +22 -18
  914. package/dist/components/tool-approval-dialog/tool-approval-dialog.styles.js.map +1 -0
  915. package/dist/components/tool-call-chip/tool-call-chip.class.d.ts +106 -0
  916. package/dist/components/tool-call-chip/tool-call-chip.class.d.ts.map +1 -0
  917. package/dist/components/tool-call-chip/tool-call-chip.class.js +348 -0
  918. package/dist/components/tool-call-chip/tool-call-chip.class.js.map +1 -0
  919. package/dist/components/tool-call-chip/tool-call-chip.d.ts +2 -89
  920. package/dist/components/tool-call-chip/tool-call-chip.d.ts.map +1 -0
  921. package/dist/components/tool-call-chip/tool-call-chip.js +3 -286
  922. package/dist/components/tool-call-chip/tool-call-chip.js.map +1 -0
  923. package/dist/components/tool-call-chip/tool-call-chip.styles.d.ts +1 -0
  924. package/dist/components/tool-call-chip/tool-call-chip.styles.d.ts.map +1 -0
  925. package/dist/components/tool-call-chip/tool-call-chip.styles.js +22 -21
  926. package/dist/components/tool-call-chip/tool-call-chip.styles.js.map +1 -0
  927. package/dist/components/tool-param-form/tool-param-form.class.d.ts +216 -0
  928. package/dist/components/tool-param-form/tool-param-form.class.d.ts.map +1 -0
  929. package/dist/components/tool-param-form/tool-param-form.class.js +548 -0
  930. package/dist/components/tool-param-form/tool-param-form.class.js.map +1 -0
  931. package/dist/components/tool-param-form/tool-param-form.d.ts +5 -145
  932. package/dist/components/tool-param-form/tool-param-form.d.ts.map +1 -0
  933. package/dist/components/tool-param-form/tool-param-form.js +6 -364
  934. package/dist/components/tool-param-form/tool-param-form.js.map +1 -0
  935. package/dist/components/tool-param-form/tool-param-form.styles.d.ts +1 -0
  936. package/dist/components/tool-param-form/tool-param-form.styles.d.ts.map +1 -0
  937. package/dist/components/tool-param-form/tool-param-form.styles.js +9 -8
  938. package/dist/components/tool-param-form/tool-param-form.styles.js.map +1 -0
  939. package/dist/components/tool-result-dialog/tool-result-dialog.class.d.ts +123 -0
  940. package/dist/components/tool-result-dialog/tool-result-dialog.class.d.ts.map +1 -0
  941. package/dist/components/tool-result-dialog/tool-result-dialog.class.js +357 -0
  942. package/dist/components/tool-result-dialog/tool-result-dialog.class.js.map +1 -0
  943. package/dist/components/tool-result-dialog/tool-result-dialog.d.ts +2 -102
  944. package/dist/components/tool-result-dialog/tool-result-dialog.d.ts.map +1 -0
  945. package/dist/components/tool-result-dialog/tool-result-dialog.js +3 -391
  946. package/dist/components/tool-result-dialog/tool-result-dialog.js.map +1 -0
  947. package/dist/components/tool-result-dialog/tool-result-dialog.styles.d.ts +1 -0
  948. package/dist/components/tool-result-dialog/tool-result-dialog.styles.d.ts.map +1 -0
  949. package/dist/components/tool-result-dialog/tool-result-dialog.styles.js +24 -16
  950. package/dist/components/tool-result-dialog/tool-result-dialog.styles.js.map +1 -0
  951. package/dist/components/tool-result-view/registry.d.ts +1 -8
  952. package/dist/components/tool-result-view/registry.d.ts.map +1 -0
  953. package/dist/components/tool-result-view/registry.js +8 -2
  954. package/dist/components/tool-result-view/registry.js.map +1 -0
  955. package/dist/components/tool-result-view/tool-result-view.class.d.ts +65 -0
  956. package/dist/components/tool-result-view/tool-result-view.class.d.ts.map +1 -0
  957. package/dist/components/tool-result-view/tool-result-view.class.js +124 -0
  958. package/dist/components/tool-result-view/tool-result-view.class.js.map +1 -0
  959. package/dist/components/tool-result-view/tool-result-view.d.ts +4 -55
  960. package/dist/components/tool-result-view/tool-result-view.d.ts.map +1 -0
  961. package/dist/components/tool-result-view/tool-result-view.js +5 -136
  962. package/dist/components/tool-result-view/tool-result-view.js.map +1 -0
  963. package/dist/components/tool-result-view/tool-result-view.styles.d.ts +1 -0
  964. package/dist/components/tool-result-view/tool-result-view.styles.d.ts.map +1 -0
  965. package/dist/components/tool-result-view/tool-result-view.styles.js +1 -0
  966. package/dist/components/tool-result-view/tool-result-view.styles.js.map +1 -0
  967. package/dist/components/tool-select-dialog/tool-select-dialog.class.d.ts +152 -0
  968. package/dist/components/tool-select-dialog/tool-select-dialog.class.d.ts.map +1 -0
  969. package/dist/components/tool-select-dialog/tool-select-dialog.class.js +349 -0
  970. package/dist/components/tool-select-dialog/tool-select-dialog.class.js.map +1 -0
  971. package/dist/components/tool-select-dialog/tool-select-dialog.d.ts +4 -151
  972. package/dist/components/tool-select-dialog/tool-select-dialog.d.ts.map +1 -0
  973. package/dist/components/tool-select-dialog/tool-select-dialog.js +5 -437
  974. package/dist/components/tool-select-dialog/tool-select-dialog.js.map +1 -0
  975. package/dist/components/tool-select-dialog/tool-select-dialog.styles.d.ts +1 -0
  976. package/dist/components/tool-select-dialog/tool-select-dialog.styles.d.ts.map +1 -0
  977. package/dist/components/tool-select-dialog/tool-select-dialog.styles.js +40 -27
  978. package/dist/components/tool-select-dialog/tool-select-dialog.styles.js.map +1 -0
  979. package/dist/components/tree/tree-node.class.d.ts +78 -0
  980. package/dist/components/tree/tree-node.class.d.ts.map +1 -0
  981. package/dist/components/tree/tree-node.class.js +204 -0
  982. package/dist/components/tree/tree-node.class.js.map +1 -0
  983. package/dist/components/tree/tree-node.d.ts +2 -65
  984. package/dist/components/tree/tree-node.d.ts.map +1 -0
  985. package/dist/components/tree/tree-node.js +4 -219
  986. package/dist/components/tree/tree-node.js.map +1 -0
  987. package/dist/components/tree/tree.class.d.ts +130 -0
  988. package/dist/components/tree/tree.class.d.ts.map +1 -0
  989. package/dist/components/tree/tree.class.js +326 -0
  990. package/dist/components/tree/tree.class.js.map +1 -0
  991. package/dist/components/tree/tree.d.ts +3 -120
  992. package/dist/components/tree/tree.d.ts.map +1 -0
  993. package/dist/components/tree/tree.js +5 -324
  994. package/dist/components/tree/tree.js.map +1 -0
  995. package/dist/components/tree/tree.styles.d.ts +1 -0
  996. package/dist/components/tree/tree.styles.d.ts.map +1 -0
  997. package/dist/components/tree/tree.styles.js +1 -0
  998. package/dist/components/tree/tree.styles.js.map +1 -0
  999. package/dist/components/tree/update-cascade.d.ts +1 -0
  1000. package/dist/components/tree/update-cascade.d.ts.map +1 -0
  1001. package/dist/components/tree/update-cascade.js +1 -0
  1002. package/dist/components/tree/update-cascade.js.map +1 -0
  1003. package/dist/components/typing-indicator/typing-indicator.class.d.ts +71 -0
  1004. package/dist/components/typing-indicator/typing-indicator.class.d.ts.map +1 -0
  1005. package/dist/components/typing-indicator/typing-indicator.class.js +107 -0
  1006. package/dist/components/typing-indicator/typing-indicator.class.js.map +1 -0
  1007. package/dist/components/typing-indicator/typing-indicator.d.ts +2 -60
  1008. package/dist/components/typing-indicator/typing-indicator.d.ts.map +1 -0
  1009. package/dist/components/typing-indicator/typing-indicator.js +3 -94
  1010. package/dist/components/typing-indicator/typing-indicator.js.map +1 -0
  1011. package/dist/components/typing-indicator/typing-indicator.styles.d.ts +1 -0
  1012. package/dist/components/typing-indicator/typing-indicator.styles.d.ts.map +1 -0
  1013. package/dist/components/typing-indicator/typing-indicator.styles.js +9 -8
  1014. package/dist/components/typing-indicator/typing-indicator.styles.js.map +1 -0
  1015. package/dist/components/virtual-list/virtual-list.class.d.ts +215 -0
  1016. package/dist/components/virtual-list/virtual-list.class.d.ts.map +1 -0
  1017. package/dist/components/virtual-list/virtual-list.class.js +520 -0
  1018. package/dist/components/virtual-list/virtual-list.class.js.map +1 -0
  1019. package/dist/components/virtual-list/virtual-list.d.ts +2 -173
  1020. package/dist/components/virtual-list/virtual-list.d.ts.map +1 -0
  1021. package/dist/components/virtual-list/virtual-list.js +3 -459
  1022. package/dist/components/virtual-list/virtual-list.js.map +1 -0
  1023. package/dist/components/virtual-list/virtual-list.styles.d.ts +1 -0
  1024. package/dist/components/virtual-list/virtual-list.styles.d.ts.map +1 -0
  1025. package/dist/components/virtual-list/virtual-list.styles.js +14 -1
  1026. package/dist/components/virtual-list/virtual-list.styles.js.map +1 -0
  1027. package/dist/components/widget/widget.class.d.ts +70 -0
  1028. package/dist/components/widget/widget.class.d.ts.map +1 -0
  1029. package/dist/components/widget/widget.class.js +224 -0
  1030. package/dist/components/widget/widget.class.js.map +1 -0
  1031. package/dist/components/widget/widget.d.ts +2 -64
  1032. package/dist/components/widget/widget.d.ts.map +1 -0
  1033. package/dist/components/widget/widget.js +3 -315
  1034. package/dist/components/widget/widget.js.map +1 -0
  1035. package/dist/components/widget/widget.styles.d.ts +1 -0
  1036. package/dist/components/widget/widget.styles.d.ts.map +1 -0
  1037. package/dist/components/widget/widget.styles.js +19 -8
  1038. package/dist/components/widget/widget.styles.js.map +1 -0
  1039. package/dist/components/word-cloud/word-cloud-layout.d.ts +8 -0
  1040. package/dist/components/word-cloud/word-cloud-layout.d.ts.map +1 -0
  1041. package/dist/components/word-cloud/word-cloud-layout.js +21 -6
  1042. package/dist/components/word-cloud/word-cloud-layout.js.map +1 -0
  1043. package/dist/components/word-cloud/word-cloud.class.d.ts +99 -0
  1044. package/dist/components/word-cloud/word-cloud.class.d.ts.map +1 -0
  1045. package/dist/components/word-cloud/word-cloud.class.js +279 -0
  1046. package/dist/components/word-cloud/word-cloud.class.js.map +1 -0
  1047. package/dist/components/word-cloud/word-cloud.d.ts +2 -71
  1048. package/dist/components/word-cloud/word-cloud.d.ts.map +1 -0
  1049. package/dist/components/word-cloud/word-cloud.js +3 -264
  1050. package/dist/components/word-cloud/word-cloud.js.map +1 -0
  1051. package/dist/components/word-cloud/word-cloud.styles.d.ts +1 -0
  1052. package/dist/components/word-cloud/word-cloud.styles.d.ts.map +1 -0
  1053. package/dist/components/word-cloud/word-cloud.styles.js +37 -11
  1054. package/dist/components/word-cloud/word-cloud.styles.js.map +1 -0
  1055. package/dist/internal/a11y.d.ts +1 -0
  1056. package/dist/internal/a11y.d.ts.map +1 -0
  1057. package/dist/internal/a11y.js +1 -0
  1058. package/dist/internal/a11y.js.map +1 -0
  1059. package/dist/internal/anchored-validity.d.ts +2 -0
  1060. package/dist/internal/anchored-validity.d.ts.map +1 -0
  1061. package/dist/internal/anchored-validity.js +87 -0
  1062. package/dist/internal/anchored-validity.js.map +1 -0
  1063. package/dist/internal/announcer.d.ts +1 -0
  1064. package/dist/internal/announcer.d.ts.map +1 -0
  1065. package/dist/internal/announcer.js +1 -0
  1066. package/dist/internal/announcer.js.map +1 -0
  1067. package/dist/internal/form-associated.d.ts +8 -0
  1068. package/dist/internal/form-associated.d.ts.map +1 -0
  1069. package/dist/internal/form-associated.js +44 -4
  1070. package/dist/internal/form-associated.js.map +1 -0
  1071. package/dist/internal/group-by-recency.d.ts +1 -0
  1072. package/dist/internal/group-by-recency.d.ts.map +1 -0
  1073. package/dist/internal/group-by-recency.js +1 -0
  1074. package/dist/internal/group-by-recency.js.map +1 -0
  1075. package/dist/internal/icons.d.ts +1 -0
  1076. package/dist/internal/icons.d.ts.map +1 -0
  1077. package/dist/internal/icons.js +1 -0
  1078. package/dist/internal/icons.js.map +1 -0
  1079. package/dist/internal/localization.d.ts +27 -0
  1080. package/dist/internal/localization.d.ts.map +1 -0
  1081. package/dist/internal/localization.js +141 -0
  1082. package/dist/internal/localization.js.map +1 -0
  1083. package/dist/internal/lyra-element.d.ts +27 -3
  1084. package/dist/internal/lyra-element.d.ts.map +1 -0
  1085. package/dist/internal/lyra-element.js +52 -3
  1086. package/dist/internal/lyra-element.js.map +1 -0
  1087. package/dist/internal/numbers.d.ts +13 -0
  1088. package/dist/internal/numbers.d.ts.map +1 -0
  1089. package/dist/internal/numbers.js +27 -0
  1090. package/dist/internal/numbers.js.map +1 -0
  1091. package/dist/internal/optional-peer-types.d.ts +8 -0
  1092. package/dist/internal/optional-peer-types.d.ts.map +1 -0
  1093. package/dist/internal/optional-peer-types.js +2 -0
  1094. package/dist/internal/optional-peer-types.js.map +1 -0
  1095. package/dist/internal/overlay-manager.d.ts +52 -0
  1096. package/dist/internal/overlay-manager.d.ts.map +1 -0
  1097. package/dist/internal/overlay-manager.js +524 -0
  1098. package/dist/internal/overlay-manager.js.map +1 -0
  1099. package/dist/internal/positioner.d.ts +1 -0
  1100. package/dist/internal/positioner.d.ts.map +1 -0
  1101. package/dist/internal/positioner.js +28 -3
  1102. package/dist/internal/positioner.js.map +1 -0
  1103. package/dist/internal/prefix.d.ts +1 -0
  1104. package/dist/internal/prefix.d.ts.map +1 -0
  1105. package/dist/internal/prefix.js +9 -2
  1106. package/dist/internal/prefix.js.map +1 -0
  1107. package/dist/internal/root-registration-allowlist.d.ts +8 -0
  1108. package/dist/internal/root-registration-allowlist.d.ts.map +1 -0
  1109. package/dist/internal/root-registration-allowlist.js +95 -0
  1110. package/dist/internal/root-registration-allowlist.js.map +1 -0
  1111. package/dist/internal/rtl.d.ts +1 -0
  1112. package/dist/internal/rtl.d.ts.map +1 -0
  1113. package/dist/internal/rtl.js +1 -0
  1114. package/dist/internal/rtl.js.map +1 -0
  1115. package/dist/internal/safe-url.d.ts +13 -0
  1116. package/dist/internal/safe-url.d.ts.map +1 -0
  1117. package/dist/internal/safe-url.js +42 -0
  1118. package/dist/internal/safe-url.js.map +1 -0
  1119. package/dist/internal/scroll-lock.d.ts +1 -0
  1120. package/dist/internal/scroll-lock.d.ts.map +1 -0
  1121. package/dist/internal/scroll-lock.js +1 -0
  1122. package/dist/internal/scroll-lock.js.map +1 -0
  1123. package/dist/internal/tokens.styles.d.ts +1 -0
  1124. package/dist/internal/tokens.styles.d.ts.map +1 -0
  1125. package/dist/internal/tokens.styles.js +224 -11
  1126. package/dist/internal/tokens.styles.js.map +1 -0
  1127. package/dist/lyra.d.ts +56 -5
  1128. package/dist/lyra.d.ts.map +1 -0
  1129. package/dist/lyra.js +7 -2
  1130. package/dist/lyra.js.map +1 -0
  1131. package/llms-full.txt +1079 -472
  1132. package/llms.txt +11 -10
  1133. package/package.json +201 -6
@@ -0,0 +1,279 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { html, nothing, svg } from 'lit';
8
+ import { property, query, state } from 'lit/decorators.js';
9
+ import { LyraElement } from '../../internal/lyra-element.js';
10
+ import { srOnly } from '../../internal/a11y.js';
11
+ import { layoutWordCloud, MAX_WORDS } from './word-cloud-layout.js';
12
+ import { styles } from './word-cloud.styles.js';
13
+ const DEFAULT_MIN_FONT_SIZE = 12;
14
+ const DEFAULT_MAX_FONT_SIZE = 48;
15
+ const PALETTE_SIZE = 8;
16
+ const FALLBACK_PALETTE = ['#0969da', '#1a7f37', '#9a6700', '#cf222e', '#8250df', '#bf3989', '#0a7d91', '#57606a'];
17
+ /** Must match `[part='word']`'s `font-weight` in word-cloud.styles.ts -- canvas
18
+ * measures at `normal` weight by default, which is narrower than the actually
19
+ * rendered bold glyphs, so the spiral layout's collision boxes would end up
20
+ * too small versus what's actually painted if this ever drifts out of sync. */
21
+ const WORD_FONT_WEIGHT = 600;
22
+ const NAV_KEYS = new Set(['ArrowRight', 'ArrowDown', 'ArrowLeft', 'ArrowUp', 'Home', 'End']);
23
+ /** Padding, in px, between a focused word's glyph box and its drawn focus ring. */
24
+ const FOCUS_RING_PAD = 2;
25
+ let scratchCtx;
26
+ /** A detached canvas used solely to measure rendered text width for layout. */
27
+ function getScratchCtx() {
28
+ if (scratchCtx === undefined) {
29
+ scratchCtx = document.createElement('canvas').getContext('2d');
30
+ }
31
+ return scratchCtx;
32
+ }
33
+ const warnedSkipCounts = new Set();
34
+ function warnSkippedWords(count) {
35
+ if (warnedSkipCounts.has(count))
36
+ return;
37
+ warnedSkipCounts.add(count);
38
+ console.warn(`<lyra-word-cloud> could not place ${count} word(s) (blank text, over the ${MAX_WORDS}-word cap, or ` +
39
+ 'the layout search was exhausted) -- they were dropped, not rendered.');
40
+ }
41
+ export class LyraWordCloud extends LyraElement {
42
+ constructor() {
43
+ super(...arguments);
44
+ /** The words to lay out. Re-laid-out whenever this (or a sizing property) changes. */
45
+ this.words = [];
46
+ /** Font size, in px, for the lowest-weight word. */
47
+ this.minFontSize = DEFAULT_MIN_FONT_SIZE;
48
+ /** Font size, in px, for the highest-weight word. */
49
+ this.maxFontSize = DEFAULT_MAX_FONT_SIZE;
50
+ /** `sqrt` compresses the weight->font-size mapping so one heavy word doesn't dwarf the rest. */
51
+ this.scale = 'linear';
52
+ /** `mixed` lets some words render rotated 90° for denser packing. */
53
+ this.orientations = 'horizontal';
54
+ this.cachedLayout = { placed: [], skipped: [], width: 0, height: 0 };
55
+ /** Roving-focus cursor -- an index into `navOrder()`, not into `cachedLayout.placed`. */
56
+ this.focusedIndex = null;
57
+ /** Text of the visually-hidden `aria-live="polite"` status announcement. */
58
+ this.liveText = '';
59
+ /**
60
+ * Whether `role`/`aria-label` were present on the host *before* this
61
+ * element's own code ever wrote to them -- snapshotted once, in the very
62
+ * first `willUpdate()` (guarded by `hasUpdated`, which Lit only flips to
63
+ * `true` after that first update commits). Re-checking `hasAttribute()` on
64
+ * every update instead would self-poison: once this element writes its own
65
+ * default `aria-label` on the first render, `hasAttribute('aria-label')` is
66
+ * permanently `true` afterwards, which would wrongly look like an
67
+ * author-supplied value and freeze the label instead of refreshing it as
68
+ * `words` changes on later updates.
69
+ */
70
+ this.authorSuppliedRole = false;
71
+ this.authorSuppliedAriaLabel = false;
72
+ this.measureText = (text, fontSize) => {
73
+ const ctx = getScratchCtx();
74
+ if (!ctx)
75
+ return text.length * fontSize * 0.6;
76
+ ctx.font = `${WORD_FONT_WEIGHT} ${fontSize}px ${this.fontFamily()}`;
77
+ return ctx.measureText(text).width;
78
+ };
79
+ this.onWordClick = (word) => {
80
+ const order = this.navOrder();
81
+ const idx = order.findIndex((w) => w.originalIndex === word.originalIndex);
82
+ this.focusedIndex = idx === -1 ? null : idx;
83
+ if (idx !== -1)
84
+ this.announce(order[idx]);
85
+ this.svgEl?.focus();
86
+ this.activate(word);
87
+ };
88
+ this.onKeyDown = (e) => {
89
+ const order = this.navOrder();
90
+ if (order.length === 0)
91
+ return;
92
+ if (e.key === 'Enter' || e.key === ' ') {
93
+ e.preventDefault();
94
+ if (this.focusedIndex !== null)
95
+ this.activate(order[this.focusedIndex]);
96
+ return;
97
+ }
98
+ if (!NAV_KEYS.has(e.key))
99
+ return;
100
+ e.preventDefault();
101
+ if (this.focusedIndex === null) {
102
+ this.focusedIndex = 0;
103
+ this.announce(order[0]);
104
+ return;
105
+ }
106
+ let next = this.focusedIndex;
107
+ if (e.key === 'ArrowRight' || e.key === 'ArrowDown')
108
+ next = Math.min(order.length - 1, this.focusedIndex + 1);
109
+ else if (e.key === 'ArrowLeft' || e.key === 'ArrowUp')
110
+ next = Math.max(0, this.focusedIndex - 1);
111
+ else if (e.key === 'Home')
112
+ next = 0;
113
+ else if (e.key === 'End')
114
+ next = order.length - 1;
115
+ this.focusedIndex = next;
116
+ this.announce(order[next]);
117
+ };
118
+ }
119
+ static { this.styles = [LyraElement.styles, styles, srOnly]; }
120
+ fontFamily() {
121
+ return getComputedStyle(this).getPropertyValue('--lyra-font').trim() || 'sans-serif';
122
+ }
123
+ paletteColors() {
124
+ if (this.palette?.length)
125
+ return this.palette;
126
+ const cs = getComputedStyle(this);
127
+ const colors = [];
128
+ for (let i = 0; i < PALETTE_SIZE; i++) {
129
+ colors.push(cs.getPropertyValue(`--lyra-word-cloud-color-${i + 1}`).trim() || FALLBACK_PALETTE[i]);
130
+ }
131
+ return colors;
132
+ }
133
+ /** Stable keyboard tab order -- the order words were declared in `words`,
134
+ * independent of the weight-sorted placement order. */
135
+ navOrder() {
136
+ return [...this.cachedLayout.placed].sort((a, b) => a.originalIndex - b.originalIndex);
137
+ }
138
+ willUpdate(changed) {
139
+ if (changed.has('words') ||
140
+ changed.has('minFontSize') ||
141
+ changed.has('maxFontSize') ||
142
+ changed.has('scale') ||
143
+ changed.has('orientations')) {
144
+ this.relayout();
145
+ }
146
+ if (!this.hasUpdated) {
147
+ this.authorSuppliedRole = this.hasAttribute('role');
148
+ this.authorSuppliedAriaLabel = this.hasAttribute('aria-label');
149
+ }
150
+ // Only default role/aria-label when the author hasn't already supplied
151
+ // one -- unconditionally overwriting them on every update (including
152
+ // ones triggered purely by a `words` re-layout) would silently clobber a
153
+ // host's own accessible name/role on the very next data refresh.
154
+ if (!this.authorSuppliedRole)
155
+ this.setAttribute('role', 'group');
156
+ if (!this.authorSuppliedAriaLabel) {
157
+ this.setAttribute('aria-label', this.localize('wordCloud', undefined, {
158
+ count: this.cachedLayout.placed.length,
159
+ word: this.cachedLayout.placed.length === 1 ? 'word' : 'words',
160
+ }));
161
+ }
162
+ }
163
+ relayout() {
164
+ this.cachedLayout = layoutWordCloud(this.words, {
165
+ minFontSize: this.minFontSize,
166
+ maxFontSize: this.maxFontSize,
167
+ scale: this.scale,
168
+ orientations: this.orientations,
169
+ measureText: this.measureText,
170
+ });
171
+ if (this.cachedLayout.skipped.length > 0)
172
+ warnSkippedWords(this.cachedLayout.skipped.length);
173
+ // The previous focus cursor may no longer address a real word once the
174
+ // data changes out from under it.
175
+ this.focusedIndex = null;
176
+ this.liveText = '';
177
+ }
178
+ /** Forces a relayout so the font-family theme token (`--lyra-font`) is
179
+ * re-read from computed style — mirrors `lyra-chart`'s `refreshTheme()`.
180
+ * No global theme-broadcast event exists in lyra-ui to subscribe to
181
+ * automatically; call this from a consumer's own theme-toggle handler. */
182
+ refreshTheme() {
183
+ this.relayout();
184
+ this.requestUpdate();
185
+ }
186
+ activate(word) {
187
+ this.emit('lyra-word-click', { text: word.text, weight: word.weight, group: word.group });
188
+ }
189
+ announce(word) {
190
+ this.liveText = `${word.text}, ${word.weight}`;
191
+ }
192
+ /** Axis-aligned focus-ring rect for `w`, already accounting for its rotation. */
193
+ focusRingRect(w) {
194
+ const boxW = w.rotated ? w.height : w.width;
195
+ const boxH = w.rotated ? w.width : w.height;
196
+ return {
197
+ x: w.x - boxW / 2 - FOCUS_RING_PAD,
198
+ y: w.y - boxH / 2 - FOCUS_RING_PAD,
199
+ width: boxW + 2 * FOCUS_RING_PAD,
200
+ height: boxH + 2 * FOCUS_RING_PAD,
201
+ };
202
+ }
203
+ render() {
204
+ const layout = this.cachedLayout;
205
+ if (layout.placed.length === 0) {
206
+ return html `<div part="base"><div part="empty">${this.localize('noData')}</div></div>`;
207
+ }
208
+ const colors = this.paletteColors();
209
+ const groupColor = new Map();
210
+ const colorFor = (word) => {
211
+ if (word.color)
212
+ return word.color;
213
+ if (word.group) {
214
+ if (!groupColor.has(word.group))
215
+ groupColor.set(word.group, colors[groupColor.size % colors.length]);
216
+ return groupColor.get(word.group);
217
+ }
218
+ return colors[word.originalIndex % colors.length];
219
+ };
220
+ const order = this.navOrder();
221
+ const focused = this.focusedIndex !== null ? order[this.focusedIndex] : undefined;
222
+ const ring = focused ? this.focusRingRect(focused) : undefined;
223
+ return html `
224
+ <div part="base">
225
+ <svg
226
+ part="svg"
227
+ role="group"
228
+ aria-label=${this.getAttribute('aria-label') ?? nothing}
229
+ aria-describedby="live-region"
230
+ tabindex="0"
231
+ viewBox="0 0 ${layout.width} ${layout.height}"
232
+ @keydown=${this.onKeyDown}
233
+ >
234
+ ${layout.placed.map((w) => svg `<text
235
+ part="word"
236
+ x=${w.x}
237
+ y=${w.y}
238
+ font-size=${w.fontSize}
239
+ fill=${colorFor(w)}
240
+ transform=${w.rotated ? `rotate(-90, ${w.x}, ${w.y})` : nothing}
241
+ @click=${() => this.onWordClick(w)}
242
+ >${w.text}</text>`)}
243
+ ${ring
244
+ ? svg `<rect part="focus-ring" x=${ring.x} y=${ring.y} width=${ring.width} height=${ring.height}></rect>`
245
+ : ''}
246
+ </svg>
247
+ <div id="live-region" part="live-region" class="sr-only" role="status" aria-live="polite">${this.liveText}</div>
248
+ </div>
249
+ `;
250
+ }
251
+ }
252
+ __decorate([
253
+ property({ attribute: false })
254
+ ], LyraWordCloud.prototype, "words", void 0);
255
+ __decorate([
256
+ property({ attribute: 'min-font-size', type: Number })
257
+ ], LyraWordCloud.prototype, "minFontSize", void 0);
258
+ __decorate([
259
+ property({ attribute: 'max-font-size', type: Number })
260
+ ], LyraWordCloud.prototype, "maxFontSize", void 0);
261
+ __decorate([
262
+ property()
263
+ ], LyraWordCloud.prototype, "scale", void 0);
264
+ __decorate([
265
+ property()
266
+ ], LyraWordCloud.prototype, "orientations", void 0);
267
+ __decorate([
268
+ property({ attribute: false })
269
+ ], LyraWordCloud.prototype, "palette", void 0);
270
+ __decorate([
271
+ query('[part="svg"]')
272
+ ], LyraWordCloud.prototype, "svgEl", void 0);
273
+ __decorate([
274
+ state()
275
+ ], LyraWordCloud.prototype, "focusedIndex", void 0);
276
+ __decorate([
277
+ state()
278
+ ], LyraWordCloud.prototype, "liveText", void 0);
279
+ //# sourceMappingURL=word-cloud.class.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"word-cloud.class.js","sourceRoot":"","sources":["../../../src/components/word-cloud/word-cloud.class.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAA4C,MAAM,KAAK,CAAC;AACnF,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,SAAS,EAAmE,MAAM,wBAAwB,CAAC;AACrI,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAIhD,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,YAAY,GAAG,CAAC,CAAC;AACvB,MAAM,gBAAgB,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAClH;;;gFAGgF;AAChF,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,CAAC,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;AAC7F,mFAAmF;AACnF,MAAM,cAAc,GAAG,CAAC,CAAC;AAEzB,IAAI,UAAuD,CAAC;AAE5D,+EAA+E;AAC/E,S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AAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO;uBACtD,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;eACjC,CAAC,CAAC,IAAI,SAAS,CACnB;YACC,IAAI;YACJ,CAAC,CAAC,GAAG,CAAA,6BAA6B,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,UAAU,IAAI,CAAC,KAAK,WAAW,IAAI,CAAC,MAAM,UAAU;YACxG,CAAC,CAAC,EAAE;;oGAEoF,IAAI,CAAC,QAAQ;;KAE5G,CAAC;IACJ,CAAC;CACF;AAnOiC;IAA/B,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;4CAA6B;AAGJ;IAAvD,QAAQ,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAAqC;AAGpC;IAAvD,QAAQ,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAAqC;AAGhF;IAAX,QAAQ,EAAE;4CAAqC;AAGpC;IAAX,QAAQ,EAAE;mDAAqD;AAGhC;IAA/B,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;8CAAoB;AAEpB;IAA9B,KAAK,CAAC,cAAc,CAAC;4CAA+B;AAKpC;IAAhB,KAAK,EAAE;mDAA4C;AAEnC;IAAhB,KAAK,EAAE;+CAAuB"}
@@ -1,71 +1,2 @@
1
- import { type PropertyValues, type TemplateResult } from 'lit';
2
- import { LyraElement } from '../../internal/lyra-element.js';
3
- import { type WordCloudWord } from './word-cloud-layout.js';
4
- export type { WordCloudWord };
5
- /**
6
- * `<lyra-word-cloud>` — a zero-dependency SVG word/tag cloud. First-party
7
- * invention (no Web Awesome equivalent). Each word's rendered size is scaled
8
- * from its `weight` and placed via an outward Archimedean-spiral search (the
9
- * standard word-cloud heuristic: heaviest words placed first, each one
10
- * spiraling out from the center until it clears every word already placed).
11
- *
12
- * Unlike sibling `lyra-sparkline`/`lyra-heatmap` (one `role="img"` glyph
13
- * standing in for an aggregate value), the individual words here are the
14
- * meaningful interactive content — but with up to `MAX_WORDS` of them, making
15
- * every single one its own tab stop would be a poor keyboard experience.
16
- * Instead, like `lyra-heatmap`'s cells, the whole `[part="svg"]` is one tab
17
- * stop with roving arrow-key focus (Home/End jump to the first/last word,
18
- * Enter/Space activates the focused one), a drawn `[part="focus-ring"]`, and
19
- * a visually-hidden `aria-live="polite"` status announcement.
20
- *
21
- * @customElement lyra-word-cloud
22
- * @event lyra-word-click - Fired on click, or Enter/Space on the focused word.
23
- * `detail: { text, weight, group }`.
24
- * @csspart base, svg, word, focus-ring, live-region, empty
25
- */
26
- export declare class LyraWordCloud extends LyraElement {
27
- static styles: import("lit").CSSResultGroup[];
28
- /** The words to lay out. Re-laid-out whenever this (or a sizing property) changes. */
29
- words: WordCloudWord[];
30
- /** Font size, in px, for the lowest-weight word. */
31
- minFontSize: number;
32
- /** Font size, in px, for the highest-weight word. */
33
- maxFontSize: number;
34
- /** `sqrt` compresses the weight->font-size mapping so one heavy word doesn't dwarf the rest. */
35
- scale: 'linear' | 'sqrt';
36
- /** `mixed` lets some words render rotated 90° for denser packing. */
37
- orientations: 'horizontal' | 'mixed';
38
- /** Custom categorical palette, cycled by word index (or by `group`, see `words`). Defaults to the `--lyra-word-cloud-color-*` tokens. */
39
- palette?: string[];
40
- private svgEl?;
41
- private cachedLayout;
42
- /** Roving-focus cursor -- an index into `navOrder()`, not into `cachedLayout.placed`. */
43
- private focusedIndex;
44
- /** Text of the visually-hidden `aria-live="polite"` status announcement. */
45
- private liveText;
46
- private measureText;
47
- private fontFamily;
48
- private paletteColors;
49
- /** Stable keyboard tab order -- the order words were declared in `words`,
50
- * independent of the weight-sorted placement order. */
51
- private navOrder;
52
- protected willUpdate(changed: PropertyValues): void;
53
- private relayout;
54
- /** Forces a relayout so the font-family theme token (`--lyra-font`) is
55
- * re-read from computed style — mirrors `lyra-chart`'s `refreshTheme()`.
56
- * No global theme-broadcast event exists in lyra-ui to subscribe to
57
- * automatically; call this from a consumer's own theme-toggle handler. */
58
- refreshTheme(): void;
59
- private activate;
60
- private announce;
61
- private onWordClick;
62
- private onKeyDown;
63
- /** Axis-aligned focus-ring rect for `w`, already accounting for its rotation. */
64
- private focusRingRect;
65
- render(): TemplateResult;
66
- }
67
- declare global {
68
- interface HTMLElementTagNameMap {
69
- 'lyra-word-cloud': LyraWordCloud;
70
- }
71
- }
1
+ export * from './word-cloud.class.js';
2
+ //# sourceMappingURL=word-cloud.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"word-cloud.d.ts","sourceRoot":"","sources":["../../../src/components/word-cloud/word-cloud.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
@@ -1,266 +1,5 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { html, nothing, svg } from 'lit';
8
- import { property, query, state } from 'lit/decorators.js';
9
- import { LyraElement } from '../../internal/lyra-element.js';
1
+ export * from './word-cloud.class.js';
2
+ import { LyraWordCloud } from './word-cloud.class.js';
10
3
  import { defineElement } from '../../internal/prefix.js';
11
- import { srOnly } from '../../internal/a11y.js';
12
- import { layoutWordCloud, MAX_WORDS } from './word-cloud-layout.js';
13
- import { styles } from './word-cloud.styles.js';
14
- const DEFAULT_MIN_FONT_SIZE = 12;
15
- const DEFAULT_MAX_FONT_SIZE = 48;
16
- const PALETTE_SIZE = 8;
17
- const FALLBACK_PALETTE = ['#0969da', '#1a7f37', '#9a6700', '#cf222e', '#8250df', '#bf3989', '#0a7d91', '#57606a'];
18
- /** Must match `[part='word']`'s `font-weight` in word-cloud.styles.ts -- canvas
19
- * measures at `normal` weight by default, which is narrower than the actually
20
- * rendered bold glyphs, so the spiral layout's collision boxes would end up
21
- * too small versus what's actually painted if this ever drifts out of sync. */
22
- const WORD_FONT_WEIGHT = 600;
23
- const NAV_KEYS = new Set(['ArrowRight', 'ArrowDown', 'ArrowLeft', 'ArrowUp', 'Home', 'End']);
24
- /** Padding, in px, between a focused word's glyph box and its drawn focus ring. */
25
- const FOCUS_RING_PAD = 2;
26
- let scratchCtx;
27
- /** A detached canvas used solely to measure rendered text width for layout. */
28
- function getScratchCtx() {
29
- if (scratchCtx === undefined) {
30
- scratchCtx = document.createElement('canvas').getContext('2d');
31
- }
32
- return scratchCtx;
33
- }
34
- const warnedSkipCounts = new Set();
35
- function warnSkippedWords(count) {
36
- if (warnedSkipCounts.has(count))
37
- return;
38
- warnedSkipCounts.add(count);
39
- console.warn(`<lyra-word-cloud> could not place ${count} word(s) (blank text, over the ${MAX_WORDS}-word cap, or ` +
40
- 'the layout search was exhausted) -- they were dropped, not rendered.');
41
- }
42
- /**
43
- * `<lyra-word-cloud>` — a zero-dependency SVG word/tag cloud. First-party
44
- * invention (no Web Awesome equivalent). Each word's rendered size is scaled
45
- * from its `weight` and placed via an outward Archimedean-spiral search (the
46
- * standard word-cloud heuristic: heaviest words placed first, each one
47
- * spiraling out from the center until it clears every word already placed).
48
- *
49
- * Unlike sibling `lyra-sparkline`/`lyra-heatmap` (one `role="img"` glyph
50
- * standing in for an aggregate value), the individual words here are the
51
- * meaningful interactive content — but with up to `MAX_WORDS` of them, making
52
- * every single one its own tab stop would be a poor keyboard experience.
53
- * Instead, like `lyra-heatmap`'s cells, the whole `[part="svg"]` is one tab
54
- * stop with roving arrow-key focus (Home/End jump to the first/last word,
55
- * Enter/Space activates the focused one), a drawn `[part="focus-ring"]`, and
56
- * a visually-hidden `aria-live="polite"` status announcement.
57
- *
58
- * @customElement lyra-word-cloud
59
- * @event lyra-word-click - Fired on click, or Enter/Space on the focused word.
60
- * `detail: { text, weight, group }`.
61
- * @csspart base, svg, word, focus-ring, live-region, empty
62
- */
63
- export class LyraWordCloud extends LyraElement {
64
- constructor() {
65
- super(...arguments);
66
- /** The words to lay out. Re-laid-out whenever this (or a sizing property) changes. */
67
- this.words = [];
68
- /** Font size, in px, for the lowest-weight word. */
69
- this.minFontSize = DEFAULT_MIN_FONT_SIZE;
70
- /** Font size, in px, for the highest-weight word. */
71
- this.maxFontSize = DEFAULT_MAX_FONT_SIZE;
72
- /** `sqrt` compresses the weight->font-size mapping so one heavy word doesn't dwarf the rest. */
73
- this.scale = 'linear';
74
- /** `mixed` lets some words render rotated 90° for denser packing. */
75
- this.orientations = 'horizontal';
76
- this.cachedLayout = { placed: [], skipped: [], width: 0, height: 0 };
77
- /** Roving-focus cursor -- an index into `navOrder()`, not into `cachedLayout.placed`. */
78
- this.focusedIndex = null;
79
- /** Text of the visually-hidden `aria-live="polite"` status announcement. */
80
- this.liveText = '';
81
- this.measureText = (text, fontSize) => {
82
- const ctx = getScratchCtx();
83
- if (!ctx)
84
- return text.length * fontSize * 0.6;
85
- ctx.font = `${WORD_FONT_WEIGHT} ${fontSize}px ${this.fontFamily()}`;
86
- return ctx.measureText(text).width;
87
- };
88
- this.onWordClick = (word) => {
89
- const order = this.navOrder();
90
- const idx = order.findIndex((w) => w.originalIndex === word.originalIndex);
91
- this.focusedIndex = idx === -1 ? null : idx;
92
- if (idx !== -1)
93
- this.announce(order[idx]);
94
- this.svgEl?.focus();
95
- this.activate(word);
96
- };
97
- this.onKeyDown = (e) => {
98
- const order = this.navOrder();
99
- if (order.length === 0)
100
- return;
101
- if (e.key === 'Enter' || e.key === ' ') {
102
- e.preventDefault();
103
- if (this.focusedIndex !== null)
104
- this.activate(order[this.focusedIndex]);
105
- return;
106
- }
107
- if (!NAV_KEYS.has(e.key))
108
- return;
109
- e.preventDefault();
110
- if (this.focusedIndex === null) {
111
- this.focusedIndex = 0;
112
- this.announce(order[0]);
113
- return;
114
- }
115
- let next = this.focusedIndex;
116
- if (e.key === 'ArrowRight' || e.key === 'ArrowDown')
117
- next = Math.min(order.length - 1, this.focusedIndex + 1);
118
- else if (e.key === 'ArrowLeft' || e.key === 'ArrowUp')
119
- next = Math.max(0, this.focusedIndex - 1);
120
- else if (e.key === 'Home')
121
- next = 0;
122
- else if (e.key === 'End')
123
- next = order.length - 1;
124
- this.focusedIndex = next;
125
- this.announce(order[next]);
126
- };
127
- }
128
- static { this.styles = [LyraElement.styles, styles, srOnly]; }
129
- fontFamily() {
130
- return getComputedStyle(this).getPropertyValue('--lyra-font').trim() || 'sans-serif';
131
- }
132
- paletteColors() {
133
- if (this.palette?.length)
134
- return this.palette;
135
- const cs = getComputedStyle(this);
136
- const colors = [];
137
- for (let i = 0; i < PALETTE_SIZE; i++) {
138
- colors.push(cs.getPropertyValue(`--lyra-word-cloud-color-${i + 1}`).trim() || FALLBACK_PALETTE[i]);
139
- }
140
- return colors;
141
- }
142
- /** Stable keyboard tab order -- the order words were declared in `words`,
143
- * independent of the weight-sorted placement order. */
144
- navOrder() {
145
- return [...this.cachedLayout.placed].sort((a, b) => a.originalIndex - b.originalIndex);
146
- }
147
- willUpdate(changed) {
148
- if (changed.has('words') ||
149
- changed.has('minFontSize') ||
150
- changed.has('maxFontSize') ||
151
- changed.has('scale') ||
152
- changed.has('orientations')) {
153
- this.relayout();
154
- }
155
- this.setAttribute('role', 'group');
156
- this.setAttribute('aria-label', `Word cloud of ${this.cachedLayout.placed.length} word${this.cachedLayout.placed.length === 1 ? '' : 's'}`);
157
- }
158
- relayout() {
159
- this.cachedLayout = layoutWordCloud(this.words, {
160
- minFontSize: this.minFontSize,
161
- maxFontSize: this.maxFontSize,
162
- scale: this.scale,
163
- orientations: this.orientations,
164
- measureText: this.measureText,
165
- });
166
- if (this.cachedLayout.skipped.length > 0)
167
- warnSkippedWords(this.cachedLayout.skipped.length);
168
- // The previous focus cursor may no longer address a real word once the
169
- // data changes out from under it.
170
- this.focusedIndex = null;
171
- this.liveText = '';
172
- }
173
- /** Forces a relayout so the font-family theme token (`--lyra-font`) is
174
- * re-read from computed style — mirrors `lyra-chart`'s `refreshTheme()`.
175
- * No global theme-broadcast event exists in lyra-ui to subscribe to
176
- * automatically; call this from a consumer's own theme-toggle handler. */
177
- refreshTheme() {
178
- this.relayout();
179
- this.requestUpdate();
180
- }
181
- activate(word) {
182
- this.emit('lyra-word-click', { text: word.text, weight: word.weight, group: word.group });
183
- }
184
- announce(word) {
185
- this.liveText = `${word.text}, ${word.weight}`;
186
- }
187
- /** Axis-aligned focus-ring rect for `w`, already accounting for its rotation. */
188
- focusRingRect(w) {
189
- const boxW = w.rotated ? w.height : w.width;
190
- const boxH = w.rotated ? w.width : w.height;
191
- return {
192
- x: w.x - boxW / 2 - FOCUS_RING_PAD,
193
- y: w.y - boxH / 2 - FOCUS_RING_PAD,
194
- width: boxW + 2 * FOCUS_RING_PAD,
195
- height: boxH + 2 * FOCUS_RING_PAD,
196
- };
197
- }
198
- render() {
199
- const layout = this.cachedLayout;
200
- if (layout.placed.length === 0) {
201
- return html `<div part="base"><div part="empty">No data</div></div>`;
202
- }
203
- const colors = this.paletteColors();
204
- const groupColor = new Map();
205
- const colorFor = (word) => {
206
- if (word.color)
207
- return word.color;
208
- if (word.group) {
209
- if (!groupColor.has(word.group))
210
- groupColor.set(word.group, colors[groupColor.size % colors.length]);
211
- return groupColor.get(word.group);
212
- }
213
- return colors[word.originalIndex % colors.length];
214
- };
215
- const order = this.navOrder();
216
- const focused = this.focusedIndex !== null ? order[this.focusedIndex] : undefined;
217
- const ring = focused ? this.focusRingRect(focused) : undefined;
218
- return html `
219
- <div part="base">
220
- <svg part="svg" tabindex="0" viewBox="0 0 ${layout.width} ${layout.height}" @keydown=${this.onKeyDown}>
221
- ${layout.placed.map((w) => svg `<text
222
- part="word"
223
- x=${w.x}
224
- y=${w.y}
225
- font-size=${w.fontSize}
226
- fill=${colorFor(w)}
227
- transform=${w.rotated ? `rotate(-90, ${w.x}, ${w.y})` : nothing}
228
- @click=${() => this.onWordClick(w)}
229
- >${w.text}</text>`)}
230
- ${ring
231
- ? svg `<rect part="focus-ring" x=${ring.x} y=${ring.y} width=${ring.width} height=${ring.height}></rect>`
232
- : ''}
233
- </svg>
234
- <div part="live-region" class="sr-only" role="status" aria-live="polite">${this.liveText}</div>
235
- </div>
236
- `;
237
- }
238
- }
239
- __decorate([
240
- property({ attribute: false })
241
- ], LyraWordCloud.prototype, "words", void 0);
242
- __decorate([
243
- property({ attribute: 'min-font-size', type: Number })
244
- ], LyraWordCloud.prototype, "minFontSize", void 0);
245
- __decorate([
246
- property({ attribute: 'max-font-size', type: Number })
247
- ], LyraWordCloud.prototype, "maxFontSize", void 0);
248
- __decorate([
249
- property()
250
- ], LyraWordCloud.prototype, "scale", void 0);
251
- __decorate([
252
- property()
253
- ], LyraWordCloud.prototype, "orientations", void 0);
254
- __decorate([
255
- property({ attribute: false })
256
- ], LyraWordCloud.prototype, "palette", void 0);
257
- __decorate([
258
- query('[part="svg"]')
259
- ], LyraWordCloud.prototype, "svgEl", void 0);
260
- __decorate([
261
- state()
262
- ], LyraWordCloud.prototype, "focusedIndex", void 0);
263
- __decorate([
264
- state()
265
- ], LyraWordCloud.prototype, "liveText", void 0);
266
4
  defineElement('word-cloud', LyraWordCloud);
5
+ //# sourceMappingURL=word-cloud.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"word-cloud.js","sourceRoot":"","sources":["../../../src/components/word-cloud/word-cloud.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,aAAa,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare const styles: import("lit").CSSResult;
2
+ //# sourceMappingURL=word-cloud.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"word-cloud.styles.d.ts","sourceRoot":"","sources":["../../../src/components/word-cloud/word-cloud.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBA+ElB,CAAC"}