@lincyaw/aegis-ui 0.9.3 → 0.10.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 (661) hide show
  1. package/dist/agent/ask/AskOverlay.cjs +3 -1
  2. package/dist/agent/ask/AskOverlay.cjs.map +1 -1
  3. package/dist/agent/ask/AskOverlay.d.ts +17 -1
  4. package/dist/agent/ask/AskOverlay.js +115 -58
  5. package/dist/agent/ask/AskOverlay.js.map +1 -1
  6. package/dist/agent/ask/AskPanel.cjs +1 -1
  7. package/dist/agent/ask/AskPanel.cjs.map +1 -1
  8. package/dist/agent/ask/AskPanel.d.ts +13 -3
  9. package/dist/agent/ask/AskPanel.js +130 -109
  10. package/dist/agent/ask/AskPanel.js.map +1 -1
  11. package/dist/agent/chat/chat.cjs +1 -1
  12. package/dist/agent/chat/chat.cjs.map +1 -1
  13. package/dist/agent/chat/chat.d.ts +1 -1
  14. package/dist/agent/chat/chat.js +3 -5
  15. package/dist/agent/chat/chat.js.map +1 -1
  16. package/dist/agent/chat/useAgentChat.cjs +1 -1
  17. package/dist/agent/chat/useAgentChat.cjs.map +1 -1
  18. package/dist/agent/chat/useAgentChat.d.ts +2 -0
  19. package/dist/agent/chat/useAgentChat.js +8 -4
  20. package/dist/agent/chat/useAgentChat.js.map +1 -1
  21. package/dist/agent/core/AegisRuntimeProvider.cjs.map +1 -1
  22. package/dist/agent/core/AegisRuntimeProvider.d.ts +2 -2
  23. package/dist/agent/core/AegisRuntimeProvider.js.map +1 -1
  24. package/dist/agent/core/hooks.cjs +1 -1
  25. package/dist/agent/core/hooks.cjs.map +1 -1
  26. package/dist/agent/core/hooks.js +21 -20
  27. package/dist/agent/core/hooks.js.map +1 -1
  28. package/dist/agent/core/runtime.cjs +1 -1
  29. package/dist/agent/core/runtime.cjs.map +1 -1
  30. package/dist/agent/core/runtime.d.ts +28 -9
  31. package/dist/agent/core/runtime.js +435 -268
  32. package/dist/agent/core/runtime.js.map +1 -1
  33. package/dist/agent/core/types.d.ts +65 -10
  34. package/dist/agent/index.d.ts +4 -3
  35. package/dist/commands/CommandProvider.cjs +1 -1
  36. package/dist/commands/CommandProvider.cjs.map +1 -1
  37. package/dist/commands/CommandProvider.js +33 -37
  38. package/dist/commands/CommandProvider.js.map +1 -1
  39. package/dist/commands/commandContext.cjs +1 -1
  40. package/dist/commands/commandContext.cjs.map +1 -1
  41. package/dist/commands/commandContext.d.ts +2 -5
  42. package/dist/commands/commandContext.js +3 -17
  43. package/dist/commands/commandContext.js.map +1 -1
  44. package/dist/commands/index.d.ts +1 -1
  45. package/dist/commands/useCommands.cjs +1 -1
  46. package/dist/commands/useCommands.cjs.map +1 -1
  47. package/dist/commands/useCommands.d.ts +4 -2
  48. package/dist/commands/useCommands.js +21 -5
  49. package/dist/commands/useCommands.js.map +1 -1
  50. package/dist/commands/useRegisterCommands.cjs +2 -1
  51. package/dist/commands/useRegisterCommands.cjs.map +1 -1
  52. package/dist/commands/useRegisterCommands.d.ts +3 -2
  53. package/dist/commands/useRegisterCommands.js +35 -8
  54. package/dist/commands/useRegisterCommands.js.map +1 -1
  55. package/dist/components/ui/Alert.cjs +1 -1
  56. package/dist/components/ui/Alert.cjs.map +1 -1
  57. package/dist/components/ui/Alert.js +11 -11
  58. package/dist/components/ui/Alert.js.map +1 -1
  59. package/dist/components/ui/BlastRadiusBar.cjs +1 -1
  60. package/dist/components/ui/BlastRadiusBar.cjs.map +1 -1
  61. package/dist/components/ui/BlastRadiusBar.d.ts +3 -1
  62. package/dist/components/ui/BlastRadiusBar.js +20 -17
  63. package/dist/components/ui/BlastRadiusBar.js.map +1 -1
  64. package/dist/components/ui/Button.cjs.map +1 -1
  65. package/dist/components/ui/Button.d.ts +1 -1
  66. package/dist/components/ui/Button.js.map +1 -1
  67. package/dist/components/ui/ChatComposer.cjs +1 -1
  68. package/dist/components/ui/ChatComposer.cjs.map +1 -1
  69. package/dist/components/ui/ChatComposer.js +3 -3
  70. package/dist/components/ui/ChatComposer.js.map +1 -1
  71. package/dist/components/ui/ChatSessionList.cjs +1 -1
  72. package/dist/components/ui/ChatSessionList.cjs.map +1 -1
  73. package/dist/components/ui/ChatSessionList.js +127 -150
  74. package/dist/components/ui/ChatSessionList.js.map +1 -1
  75. package/dist/components/ui/Checkbox.cjs +1 -1
  76. package/dist/components/ui/Checkbox.cjs.map +1 -1
  77. package/dist/components/ui/Checkbox.d.ts +3 -1
  78. package/dist/components/ui/Checkbox.js +19 -17
  79. package/dist/components/ui/Checkbox.js.map +1 -1
  80. package/dist/components/ui/Chip.cjs +1 -1
  81. package/dist/components/ui/Chip.cjs.map +1 -1
  82. package/dist/components/ui/Chip.d.ts +6 -1
  83. package/dist/components/ui/Chip.js +20 -18
  84. package/dist/components/ui/Chip.js.map +1 -1
  85. package/dist/components/ui/ChoiceCardGroup.cjs +2 -0
  86. package/dist/components/ui/ChoiceCardGroup.cjs.map +1 -0
  87. package/dist/components/ui/ChoiceCardGroup.d.ts +25 -0
  88. package/dist/components/ui/ChoiceCardGroup.js +44 -0
  89. package/dist/components/ui/ChoiceCardGroup.js.map +1 -0
  90. package/dist/components/ui/CodeBlock.cjs +2 -2
  91. package/dist/components/ui/CodeBlock.cjs.map +1 -1
  92. package/dist/components/ui/CodeBlock.js +31 -27
  93. package/dist/components/ui/CodeBlock.js.map +1 -1
  94. package/dist/components/ui/CodeEditor.cjs +1 -1
  95. package/dist/components/ui/CodeEditor.cjs.map +1 -1
  96. package/dist/components/ui/CodeEditor.d.ts +5 -4
  97. package/dist/components/ui/CodeEditor.js +210 -63
  98. package/dist/components/ui/CodeEditor.js.map +1 -1
  99. package/dist/components/ui/Collapse.cjs +1 -1
  100. package/dist/components/ui/Collapse.cjs.map +1 -1
  101. package/dist/components/ui/Collapse.js +29 -26
  102. package/dist/components/ui/Collapse.js.map +1 -1
  103. package/dist/components/ui/ColumnChart.cjs +1 -1
  104. package/dist/components/ui/ColumnChart.cjs.map +1 -1
  105. package/dist/components/ui/ColumnChart.js +21 -20
  106. package/dist/components/ui/ColumnChart.js.map +1 -1
  107. package/dist/components/ui/CommandPalette.cjs +1 -1
  108. package/dist/components/ui/CommandPalette.cjs.map +1 -1
  109. package/dist/components/ui/CommandPalette.d.ts +23 -1
  110. package/dist/components/ui/CommandPalette.js +145 -120
  111. package/dist/components/ui/CommandPalette.js.map +1 -1
  112. package/dist/components/ui/CommitGraph.cjs +2 -0
  113. package/dist/components/ui/CommitGraph.cjs.map +1 -0
  114. package/dist/components/ui/CommitGraph.d.ts +77 -0
  115. package/dist/components/ui/CommitGraph.js +380 -0
  116. package/dist/components/ui/CommitGraph.js.map +1 -0
  117. package/dist/components/ui/ContentInspectorDialog.cjs +1 -3
  118. package/dist/components/ui/ContentInspectorDialog.cjs.map +1 -1
  119. package/dist/components/ui/ContentInspectorDialog.d.ts +4 -10
  120. package/dist/components/ui/ContentInspectorDialog.js +40 -193
  121. package/dist/components/ui/ContentInspectorDialog.js.map +1 -1
  122. package/dist/components/ui/ContentPreview.cjs +3 -0
  123. package/dist/components/ui/ContentPreview.cjs.map +1 -0
  124. package/dist/components/ui/ContentPreview.d.ts +13 -0
  125. package/dist/components/ui/ContentPreview.js +134 -0
  126. package/dist/components/ui/ContentPreview.js.map +1 -0
  127. package/dist/components/ui/CopyGlyph.cjs +2 -0
  128. package/dist/components/ui/CopyGlyph.cjs.map +1 -0
  129. package/dist/components/ui/CopyGlyph.d.ts +7 -0
  130. package/dist/components/ui/CopyGlyph.js +48 -0
  131. package/dist/components/ui/CopyGlyph.js.map +1 -0
  132. package/dist/components/ui/DataList.cjs +1 -1
  133. package/dist/components/ui/DataList.cjs.map +1 -1
  134. package/dist/components/ui/DataList.d.ts +7 -1
  135. package/dist/components/ui/DataList.js +87 -32
  136. package/dist/components/ui/DataList.js.map +1 -1
  137. package/dist/components/ui/DataTable.cjs +1 -1
  138. package/dist/components/ui/DataTable.cjs.map +1 -1
  139. package/dist/components/ui/DataTable.d.ts +22 -18
  140. package/dist/components/ui/DataTable.js +279 -341
  141. package/dist/components/ui/DataTable.js.map +1 -1
  142. package/dist/components/ui/DropdownMenu.cjs +1 -1
  143. package/dist/components/ui/DropdownMenu.cjs.map +1 -1
  144. package/dist/components/ui/DropdownMenu.d.ts +8 -1
  145. package/dist/components/ui/DropdownMenu.js +66 -50
  146. package/dist/components/ui/DropdownMenu.js.map +1 -1
  147. package/dist/components/ui/ErrorState.cjs +1 -1
  148. package/dist/components/ui/ErrorState.cjs.map +1 -1
  149. package/dist/components/ui/ErrorState.d.ts +1 -0
  150. package/dist/components/ui/ErrorState.js +1 -1
  151. package/dist/components/ui/ErrorState.js.map +1 -1
  152. package/dist/components/ui/EventTable.cjs +1 -1
  153. package/dist/components/ui/EventTable.cjs.map +1 -1
  154. package/dist/components/ui/EventTable.d.ts +16 -2
  155. package/dist/components/ui/EventTable.js +190 -164
  156. package/dist/components/ui/EventTable.js.map +1 -1
  157. package/dist/components/ui/FileDropzone.cjs +1 -1
  158. package/dist/components/ui/FileDropzone.cjs.map +1 -1
  159. package/dist/components/ui/FileDropzone.d.ts +3 -21
  160. package/dist/components/ui/FileDropzone.js +41 -64
  161. package/dist/components/ui/FileDropzone.js.map +1 -1
  162. package/dist/components/ui/FilePreview.cjs +1 -1
  163. package/dist/components/ui/FilePreview.cjs.map +1 -1
  164. package/dist/components/ui/FilePreview.d.ts +4 -1
  165. package/dist/components/ui/FilePreview.js +45 -42
  166. package/dist/components/ui/FilePreview.js.map +1 -1
  167. package/dist/components/ui/FileTree.cjs +1 -1
  168. package/dist/components/ui/FileTree.cjs.map +1 -1
  169. package/dist/components/ui/FileTree.d.ts +18 -2
  170. package/dist/components/ui/FileTree.js +141 -110
  171. package/dist/components/ui/FileTree.js.map +1 -1
  172. package/dist/components/ui/FolderDropzone.cjs +1 -1
  173. package/dist/components/ui/FolderDropzone.cjs.map +1 -1
  174. package/dist/components/ui/FolderDropzone.d.ts +10 -1
  175. package/dist/components/ui/FolderDropzone.js +108 -128
  176. package/dist/components/ui/FolderDropzone.js.map +1 -1
  177. package/dist/components/ui/ForgotPasswordForm.cjs +1 -1
  178. package/dist/components/ui/ForgotPasswordForm.cjs.map +1 -1
  179. package/dist/components/ui/ForgotPasswordForm.d.ts +1 -0
  180. package/dist/components/ui/ForgotPasswordForm.js +21 -19
  181. package/dist/components/ui/ForgotPasswordForm.js.map +1 -1
  182. package/dist/components/ui/FormRow.cjs +1 -1
  183. package/dist/components/ui/FormRow.cjs.map +1 -1
  184. package/dist/components/ui/FormRow.d.ts +10 -1
  185. package/dist/components/ui/FormRow.js +22 -11
  186. package/dist/components/ui/FormRow.js.map +1 -1
  187. package/dist/components/ui/HeadlineStat.cjs +1 -1
  188. package/dist/components/ui/HeadlineStat.cjs.map +1 -1
  189. package/dist/components/ui/HeadlineStat.js +6 -5
  190. package/dist/components/ui/HeadlineStat.js.map +1 -1
  191. package/dist/components/ui/InboxPage.cjs +1 -1
  192. package/dist/components/ui/InboxPage.cjs.map +1 -1
  193. package/dist/components/ui/InboxPage.d.ts +16 -2
  194. package/dist/components/ui/InboxPage.js +54 -52
  195. package/dist/components/ui/InboxPage.js.map +1 -1
  196. package/dist/components/ui/KeyValueList.cjs +1 -1
  197. package/dist/components/ui/KeyValueList.cjs.map +1 -1
  198. package/dist/components/ui/KeyValueList.d.ts +6 -5
  199. package/dist/components/ui/KeyValueList.js +14 -17
  200. package/dist/components/ui/KeyValueList.js.map +1 -1
  201. package/dist/components/ui/LoginForm.cjs +1 -1
  202. package/dist/components/ui/LoginForm.cjs.map +1 -1
  203. package/dist/components/ui/LoginForm.d.ts +1 -0
  204. package/dist/components/ui/LoginForm.js +56 -48
  205. package/dist/components/ui/LoginForm.js.map +1 -1
  206. package/dist/components/ui/Markdown.cjs +1 -1
  207. package/dist/components/ui/Markdown.cjs.map +1 -1
  208. package/dist/components/ui/Markdown.d.ts +3 -2
  209. package/dist/components/ui/Markdown.js +57 -49
  210. package/dist/components/ui/Markdown.js.map +1 -1
  211. package/dist/components/ui/MdxDocument.cjs +1 -1
  212. package/dist/components/ui/MdxDocument.cjs.map +1 -1
  213. package/dist/components/ui/MdxDocument.d.ts +7 -2
  214. package/dist/components/ui/MdxDocument.js +34 -49
  215. package/dist/components/ui/MdxDocument.js.map +1 -1
  216. package/dist/components/ui/MetadataList.cjs +1 -1
  217. package/dist/components/ui/MetadataList.cjs.map +1 -1
  218. package/dist/components/ui/MetadataList.d.ts +7 -1
  219. package/dist/components/ui/MetadataList.js +29 -20
  220. package/dist/components/ui/MetadataList.js.map +1 -1
  221. package/dist/components/ui/MetricCard.cjs +1 -1
  222. package/dist/components/ui/MetricCard.cjs.map +1 -1
  223. package/dist/components/ui/MetricCard.js +16 -16
  224. package/dist/components/ui/MetricCard.js.map +1 -1
  225. package/dist/components/ui/MonoValue.cjs +1 -1
  226. package/dist/components/ui/MonoValue.cjs.map +1 -1
  227. package/dist/components/ui/MonoValue.d.ts +8 -1
  228. package/dist/components/ui/MonoValue.js +15 -13
  229. package/dist/components/ui/MonoValue.js.map +1 -1
  230. package/dist/components/ui/NotificationBell.cjs +1 -1
  231. package/dist/components/ui/NotificationBell.cjs.map +1 -1
  232. package/dist/components/ui/NotificationBell.d.ts +15 -3
  233. package/dist/components/ui/NotificationBell.js +41 -39
  234. package/dist/components/ui/NotificationBell.js.map +1 -1
  235. package/dist/components/ui/NumberField.cjs +2 -0
  236. package/dist/components/ui/NumberField.cjs.map +1 -0
  237. package/dist/components/ui/NumberField.d.ts +32 -0
  238. package/dist/components/ui/NumberField.js +77 -0
  239. package/dist/components/ui/NumberField.js.map +1 -0
  240. package/dist/components/ui/ObjectBrowser.cjs +1 -1
  241. package/dist/components/ui/ObjectBrowser.cjs.map +1 -1
  242. package/dist/components/ui/ObjectBrowser.js +38 -30
  243. package/dist/components/ui/ObjectBrowser.js.map +1 -1
  244. package/dist/components/ui/ObjectInspector.cjs +1 -1
  245. package/dist/components/ui/ObjectInspector.cjs.map +1 -1
  246. package/dist/components/ui/ObjectInspector.d.ts +5 -0
  247. package/dist/components/ui/ObjectInspector.js +61 -69
  248. package/dist/components/ui/ObjectInspector.js.map +1 -1
  249. package/dist/components/ui/PageSizeSelect.cjs.map +1 -1
  250. package/dist/components/ui/PageSizeSelect.d.ts +3 -4
  251. package/dist/components/ui/PageSizeSelect.js.map +1 -1
  252. package/dist/components/ui/Pagination.cjs +1 -1
  253. package/dist/components/ui/Pagination.cjs.map +1 -1
  254. package/dist/components/ui/Pagination.d.ts +16 -6
  255. package/dist/components/ui/Pagination.js +58 -45
  256. package/dist/components/ui/Pagination.js.map +1 -1
  257. package/dist/components/ui/Panel.cjs +1 -1
  258. package/dist/components/ui/Panel.cjs.map +1 -1
  259. package/dist/components/ui/Panel.d.ts +12 -2
  260. package/dist/components/ui/Panel.js +53 -40
  261. package/dist/components/ui/Panel.js.map +1 -1
  262. package/dist/components/ui/ParquetViewer.cjs +1 -1
  263. package/dist/components/ui/ParquetViewer.cjs.map +1 -1
  264. package/dist/components/ui/ParquetViewer.d.ts +1 -1
  265. package/dist/components/ui/ParquetViewer.js +124 -118
  266. package/dist/components/ui/ParquetViewer.js.map +1 -1
  267. package/dist/components/ui/ProjectSelector.cjs +1 -1
  268. package/dist/components/ui/ProjectSelector.cjs.map +1 -1
  269. package/dist/components/ui/ProjectSelector.js +9 -9
  270. package/dist/components/ui/ProjectSelector.js.map +1 -1
  271. package/dist/components/ui/QueryAutocomplete.cjs +1 -1
  272. package/dist/components/ui/QueryAutocomplete.cjs.map +1 -1
  273. package/dist/components/ui/QueryAutocomplete.js +123 -107
  274. package/dist/components/ui/QueryAutocomplete.js.map +1 -1
  275. package/dist/components/ui/RegisterForm.cjs +1 -1
  276. package/dist/components/ui/RegisterForm.cjs.map +1 -1
  277. package/dist/components/ui/RegisterForm.d.ts +1 -0
  278. package/dist/components/ui/RegisterForm.js +46 -38
  279. package/dist/components/ui/RegisterForm.js.map +1 -1
  280. package/dist/components/ui/RollingValue.cjs +2 -0
  281. package/dist/components/ui/RollingValue.cjs.map +1 -0
  282. package/dist/components/ui/RollingValue.d.ts +14 -0
  283. package/dist/components/ui/RollingValue.js +39 -0
  284. package/dist/components/ui/RollingValue.js.map +1 -0
  285. package/dist/components/ui/SavedQueryBar.cjs +1 -1
  286. package/dist/components/ui/SavedQueryBar.cjs.map +1 -1
  287. package/dist/components/ui/SavedQueryBar.d.ts +8 -2
  288. package/dist/components/ui/SavedQueryBar.js +162 -161
  289. package/dist/components/ui/SavedQueryBar.js.map +1 -1
  290. package/dist/components/ui/ScrollStory.cjs +1 -2
  291. package/dist/components/ui/ScrollStory.cjs.map +1 -1
  292. package/dist/components/ui/ScrollStory.js +57 -75
  293. package/dist/components/ui/ScrollStory.js.map +1 -1
  294. package/dist/components/ui/Select.cjs +1 -1
  295. package/dist/components/ui/Select.cjs.map +1 -1
  296. package/dist/components/ui/Select.d.ts +1 -1
  297. package/dist/components/ui/Select.js +33 -32
  298. package/dist/components/ui/Select.js.map +1 -1
  299. package/dist/components/ui/ServiceMap.cjs +1 -1
  300. package/dist/components/ui/ServiceMap.cjs.map +1 -1
  301. package/dist/components/ui/ServiceMap.d.ts +51 -2
  302. package/dist/components/ui/ServiceMap.js +314 -117
  303. package/dist/components/ui/ServiceMap.js.map +1 -1
  304. package/dist/components/ui/ShareLinkDialog.cjs +1 -1
  305. package/dist/components/ui/ShareLinkDialog.cjs.map +1 -1
  306. package/dist/components/ui/ShareLinkDialog.d.ts +5 -3
  307. package/dist/components/ui/ShareLinkDialog.js +107 -98
  308. package/dist/components/ui/ShareLinkDialog.js.map +1 -1
  309. package/dist/components/ui/Slider.cjs +2 -0
  310. package/dist/components/ui/Slider.cjs.map +1 -0
  311. package/dist/components/ui/Slider.d.ts +22 -0
  312. package/dist/components/ui/Slider.js +53 -0
  313. package/dist/components/ui/Slider.js.map +1 -0
  314. package/dist/components/ui/SparkLine.cjs +1 -1
  315. package/dist/components/ui/SparkLine.cjs.map +1 -1
  316. package/dist/components/ui/SparkLine.d.ts +4 -1
  317. package/dist/components/ui/SparkLine.js +30 -25
  318. package/dist/components/ui/SparkLine.js.map +1 -1
  319. package/dist/components/ui/StatBlock.cjs +1 -1
  320. package/dist/components/ui/StatBlock.cjs.map +1 -1
  321. package/dist/components/ui/StatBlock.js +17 -16
  322. package/dist/components/ui/StatBlock.js.map +1 -1
  323. package/dist/components/ui/StatusDot.cjs.map +1 -1
  324. package/dist/components/ui/StatusDot.d.ts +5 -1
  325. package/dist/components/ui/StatusDot.js.map +1 -1
  326. package/dist/components/ui/Steps.cjs +2 -0
  327. package/dist/components/ui/Steps.cjs.map +1 -0
  328. package/dist/components/ui/Steps.d.ts +19 -0
  329. package/dist/components/ui/Steps.js +57 -0
  330. package/dist/components/ui/Steps.js.map +1 -0
  331. package/dist/components/ui/TableOfContents.cjs +1 -1
  332. package/dist/components/ui/TableOfContents.cjs.map +1 -1
  333. package/dist/components/ui/TableOfContents.d.ts +3 -3
  334. package/dist/components/ui/TableOfContents.js +47 -28
  335. package/dist/components/ui/TableOfContents.js.map +1 -1
  336. package/dist/components/ui/Tabs.cjs +2 -2
  337. package/dist/components/ui/Tabs.cjs.map +1 -1
  338. package/dist/components/ui/Tabs.d.ts +37 -3
  339. package/dist/components/ui/Tabs.js +169 -109
  340. package/dist/components/ui/Tabs.js.map +1 -1
  341. package/dist/components/ui/TextField.cjs +1 -1
  342. package/dist/components/ui/TextField.cjs.map +1 -1
  343. package/dist/components/ui/TextField.js +16 -15
  344. package/dist/components/ui/TextField.js.map +1 -1
  345. package/dist/components/ui/TimeDisplay.cjs +1 -1
  346. package/dist/components/ui/TimeDisplay.cjs.map +1 -1
  347. package/dist/components/ui/TimeDisplay.d.ts +14 -4
  348. package/dist/components/ui/TimeDisplay.js +43 -44
  349. package/dist/components/ui/TimeDisplay.js.map +1 -1
  350. package/dist/components/ui/TimelineChart.cjs +2 -1
  351. package/dist/components/ui/TimelineChart.cjs.map +1 -1
  352. package/dist/components/ui/TimelineChart.d.ts +1 -0
  353. package/dist/components/ui/TimelineChart.js +221 -169
  354. package/dist/components/ui/TimelineChart.js.map +1 -1
  355. package/dist/components/ui/ToolCallCard.cjs +1 -1
  356. package/dist/components/ui/ToolCallCard.cjs.map +1 -1
  357. package/dist/components/ui/ToolCallCard.js +22 -22
  358. package/dist/components/ui/ToolCallCard.js.map +1 -1
  359. package/dist/components/ui/Toolbar.cjs +1 -1
  360. package/dist/components/ui/Toolbar.cjs.map +1 -1
  361. package/dist/components/ui/Toolbar.d.ts +4 -16
  362. package/dist/components/ui/Toolbar.js +8 -62
  363. package/dist/components/ui/Toolbar.js.map +1 -1
  364. package/dist/components/ui/TraceSpanInspector.cjs +1 -1
  365. package/dist/components/ui/TraceSpanInspector.cjs.map +1 -1
  366. package/dist/components/ui/TraceSpanInspector.js +93 -72
  367. package/dist/components/ui/TraceSpanInspector.js.map +1 -1
  368. package/dist/components/ui/TraceTree.cjs +1 -1
  369. package/dist/components/ui/TraceTree.cjs.map +1 -1
  370. package/dist/components/ui/TraceTree.d.ts +36 -2
  371. package/dist/components/ui/TraceTree.js +278 -170
  372. package/dist/components/ui/TraceTree.js.map +1 -1
  373. package/dist/components/ui/TrajectoryStep.cjs +1 -1
  374. package/dist/components/ui/TrajectoryStep.cjs.map +1 -1
  375. package/dist/components/ui/TrajectoryStep.js +39 -43
  376. package/dist/components/ui/TrajectoryStep.js.map +1 -1
  377. package/dist/components/ui/TrajectoryTimeline.cjs +1 -1
  378. package/dist/components/ui/TrajectoryTimeline.cjs.map +1 -1
  379. package/dist/components/ui/TrajectoryTimeline.js +31 -28
  380. package/dist/components/ui/TrajectoryTimeline.js.map +1 -1
  381. package/dist/components/ui/UploadQueue.cjs +1 -1
  382. package/dist/components/ui/UploadQueue.cjs.map +1 -1
  383. package/dist/components/ui/UploadQueue.d.ts +18 -2
  384. package/dist/components/ui/UploadQueue.js +56 -63
  385. package/dist/components/ui/UploadQueue.js.map +1 -1
  386. package/dist/components/ui/authValidation.cjs +2 -0
  387. package/dist/components/ui/authValidation.cjs.map +1 -0
  388. package/dist/components/ui/authValidation.d.ts +3 -0
  389. package/dist/components/ui/authValidation.js +9 -0
  390. package/dist/components/ui/authValidation.js.map +1 -0
  391. package/dist/components/ui/classifyContent.cjs +6 -0
  392. package/dist/components/ui/classifyContent.cjs.map +1 -0
  393. package/dist/components/ui/classifyContent.d.ts +39 -0
  394. package/dist/components/ui/classifyContent.js +169 -0
  395. package/dist/components/ui/classifyContent.js.map +1 -0
  396. package/dist/components/ui/dropFiles.cjs +2 -0
  397. package/dist/components/ui/dropFiles.cjs.map +1 -0
  398. package/dist/components/ui/dropFiles.d.ts +7 -0
  399. package/dist/components/ui/dropFiles.js +16 -0
  400. package/dist/components/ui/dropFiles.js.map +1 -0
  401. package/dist/components/ui/index.d.ts +23 -10
  402. package/dist/components/ui/linkComponent.cjs +1 -1
  403. package/dist/components/ui/linkComponent.cjs.map +1 -1
  404. package/dist/components/ui/linkComponent.d.ts +4 -2
  405. package/dist/components/ui/linkComponent.js +15 -5
  406. package/dist/components/ui/linkComponent.js.map +1 -1
  407. package/dist/components/ui/markdownDocument.cjs +2 -0
  408. package/dist/components/ui/markdownDocument.cjs.map +1 -0
  409. package/dist/components/ui/markdownDocument.d.ts +40 -0
  410. package/dist/components/ui/markdownDocument.js +39 -0
  411. package/dist/components/ui/markdownDocument.js.map +1 -0
  412. package/dist/components/ui/traceStatus.cjs +2 -0
  413. package/dist/components/ui/traceStatus.cjs.map +1 -0
  414. package/dist/components/ui/{traceFormat.d.ts → traceStatus.d.ts} +0 -1
  415. package/dist/components/ui/traceStatus.js +7 -0
  416. package/dist/components/ui/traceStatus.js.map +1 -0
  417. package/dist/components/ui/useColumnWidths.cjs +2 -0
  418. package/dist/components/ui/useColumnWidths.cjs.map +1 -0
  419. package/dist/components/ui/useColumnWidths.d.ts +60 -0
  420. package/dist/components/ui/useColumnWidths.js +196 -0
  421. package/dist/components/ui/useColumnWidths.js.map +1 -0
  422. package/dist/hooks/useDevelopAfterLoad.cjs +2 -0
  423. package/dist/hooks/useDevelopAfterLoad.cjs.map +1 -0
  424. package/dist/hooks/useDevelopAfterLoad.d.ts +8 -0
  425. package/dist/hooks/useDevelopAfterLoad.js +9 -0
  426. package/dist/hooks/useDevelopAfterLoad.js.map +1 -0
  427. package/dist/hooks/useResizable.cjs +1 -1
  428. package/dist/hooks/useResizable.cjs.map +1 -1
  429. package/dist/hooks/useResizable.js +87 -78
  430. package/dist/hooks/useResizable.js.map +1 -1
  431. package/dist/hooks/useSavedQueries.cjs +1 -1
  432. package/dist/hooks/useSavedQueries.cjs.map +1 -1
  433. package/dist/hooks/useSavedQueries.d.ts +6 -0
  434. package/dist/hooks/useSavedQueries.js +49 -58
  435. package/dist/hooks/useSavedQueries.js.map +1 -1
  436. package/dist/hooks/useSectionSpy.cjs +1 -1
  437. package/dist/hooks/useSectionSpy.cjs.map +1 -1
  438. package/dist/hooks/useSectionSpy.d.ts +6 -1
  439. package/dist/hooks/useSectionSpy.js +87 -57
  440. package/dist/hooks/useSectionSpy.js.map +1 -1
  441. package/dist/hooks/useStorageItem.cjs +2 -0
  442. package/dist/hooks/useStorageItem.cjs.map +1 -0
  443. package/dist/hooks/useStorageItem.d.ts +6 -0
  444. package/dist/hooks/useStorageItem.js +36 -0
  445. package/dist/hooks/useStorageItem.js.map +1 -0
  446. package/dist/index.cjs +1 -1
  447. package/dist/index.d.ts +4 -4
  448. package/dist/index.js +321 -313
  449. package/dist/index.js.map +1 -1
  450. package/dist/layouts/shell/AegisShell.cjs +1 -1
  451. package/dist/layouts/shell/AegisShell.cjs.map +1 -1
  452. package/dist/layouts/shell/AegisShell.d.ts +4 -2
  453. package/dist/layouts/shell/AegisShell.js +149 -242
  454. package/dist/layouts/shell/AegisShell.js.map +1 -1
  455. package/dist/layouts/shell/AppRoutes.cjs +2 -0
  456. package/dist/layouts/shell/AppRoutes.cjs.map +1 -0
  457. package/dist/layouts/shell/AppRoutes.d.ts +5 -0
  458. package/dist/layouts/shell/AppRoutes.js +8 -0
  459. package/dist/layouts/shell/AppRoutes.js.map +1 -0
  460. package/dist/layouts/shell/BreadcrumbBar.cjs +1 -1
  461. package/dist/layouts/shell/BreadcrumbBar.cjs.map +1 -1
  462. package/dist/layouts/shell/BreadcrumbBar.d.ts +1 -2
  463. package/dist/layouts/shell/BreadcrumbBar.js +19 -26
  464. package/dist/layouts/shell/BreadcrumbBar.js.map +1 -1
  465. package/dist/layouts/shell/RouteErrorBoundary.cjs +2 -0
  466. package/dist/layouts/shell/RouteErrorBoundary.cjs.map +1 -0
  467. package/dist/layouts/shell/RouteErrorBoundary.d.ts +23 -0
  468. package/dist/layouts/shell/RouteErrorBoundary.js +35 -0
  469. package/dist/layouts/shell/RouteErrorBoundary.js.map +1 -0
  470. package/dist/layouts/shell/RouterLink.cjs +2 -0
  471. package/dist/layouts/shell/RouterLink.cjs.map +1 -0
  472. package/dist/layouts/shell/RouterLink.d.ts +3 -0
  473. package/dist/layouts/shell/RouterLink.js +22 -0
  474. package/dist/layouts/shell/RouterLink.js.map +1 -0
  475. package/dist/layouts/shell/ShellCommandPalette.cjs +2 -0
  476. package/dist/layouts/shell/ShellCommandPalette.cjs.map +1 -0
  477. package/dist/layouts/shell/ShellCommandPalette.d.ts +7 -0
  478. package/dist/layouts/shell/ShellCommandPalette.js +32 -0
  479. package/dist/layouts/shell/ShellCommandPalette.js.map +1 -0
  480. package/dist/layouts/shell/ShellInboxPage.cjs +2 -0
  481. package/dist/layouts/shell/ShellInboxPage.cjs.map +1 -0
  482. package/dist/layouts/shell/ShellInboxPage.d.ts +12 -0
  483. package/dist/layouts/shell/ShellInboxPage.js +32 -0
  484. package/dist/layouts/shell/ShellInboxPage.js.map +1 -0
  485. package/dist/layouts/shell/ShellNotificationBell.cjs +2 -0
  486. package/dist/layouts/shell/ShellNotificationBell.cjs.map +1 -0
  487. package/dist/layouts/shell/ShellNotificationBell.d.ts +5 -0
  488. package/dist/layouts/shell/ShellNotificationBell.js +24 -0
  489. package/dist/layouts/shell/ShellNotificationBell.js.map +1 -0
  490. package/dist/layouts/shell/Sidebar.cjs +1 -1
  491. package/dist/layouts/shell/Sidebar.cjs.map +1 -1
  492. package/dist/layouts/shell/Sidebar.d.ts +4 -2
  493. package/dist/layouts/shell/Sidebar.js +14 -11
  494. package/dist/layouts/shell/Sidebar.js.map +1 -1
  495. package/dist/layouts/shell/TopHeader.cjs +1 -1
  496. package/dist/layouts/shell/TopHeader.cjs.map +1 -1
  497. package/dist/layouts/shell/TopHeader.d.ts +6 -2
  498. package/dist/layouts/shell/TopHeader.js +77 -65
  499. package/dist/layouts/shell/TopHeader.js.map +1 -1
  500. package/dist/layouts/shell/apps.cjs +2 -0
  501. package/dist/layouts/shell/apps.cjs.map +1 -0
  502. package/dist/layouts/shell/apps.d.ts +12 -0
  503. package/dist/layouts/shell/apps.js +34 -0
  504. package/dist/layouts/shell/apps.js.map +1 -0
  505. package/dist/layouts/shell/buildRouteTree.cjs +2 -0
  506. package/dist/layouts/shell/buildRouteTree.cjs.map +1 -0
  507. package/dist/layouts/shell/buildRouteTree.d.ts +22 -0
  508. package/dist/layouts/shell/buildRouteTree.js +49 -0
  509. package/dist/layouts/shell/buildRouteTree.js.map +1 -0
  510. package/dist/layouts/shell/environments/EnvironmentProvider.cjs +2 -0
  511. package/dist/layouts/shell/environments/EnvironmentProvider.cjs.map +1 -0
  512. package/dist/layouts/shell/environments/EnvironmentProvider.d.ts +13 -0
  513. package/dist/layouts/shell/environments/EnvironmentProvider.js +90 -0
  514. package/dist/layouts/shell/environments/EnvironmentProvider.js.map +1 -0
  515. package/dist/layouts/shell/environments/{context.cjs → environmentContext.cjs} +2 -2
  516. package/dist/layouts/shell/environments/environmentContext.cjs.map +1 -0
  517. package/dist/layouts/shell/environments/environmentContext.d.ts +6 -0
  518. package/dist/layouts/shell/environments/environmentContext.js +8 -0
  519. package/dist/layouts/shell/environments/environmentContext.js.map +1 -0
  520. package/dist/layouts/shell/environments/index.d.ts +2 -3
  521. package/dist/layouts/shell/environments/types.cjs.map +1 -1
  522. package/dist/layouts/shell/environments/types.d.ts +23 -15
  523. package/dist/layouts/shell/environments/types.js.map +1 -1
  524. package/dist/layouts/shell/environments/useEnvironment.cjs +2 -0
  525. package/dist/layouts/shell/environments/useEnvironment.cjs.map +1 -0
  526. package/dist/layouts/shell/environments/{hooks.d.ts → useEnvironment.d.ts} +3 -2
  527. package/dist/layouts/shell/environments/useEnvironment.js +25 -0
  528. package/dist/layouts/shell/environments/useEnvironment.js.map +1 -0
  529. package/dist/layouts/shell/index.d.ts +3 -1
  530. package/dist/layouts/shell/types.d.ts +14 -14
  531. package/dist/layouts/shell/useAgentPanel.cjs +2 -0
  532. package/dist/layouts/shell/useAgentPanel.cjs.map +1 -0
  533. package/dist/layouts/shell/useAgentPanel.d.ts +13 -0
  534. package/dist/layouts/shell/useAgentPanel.js +21 -0
  535. package/dist/layouts/shell/useAgentPanel.js.map +1 -0
  536. package/dist/layouts/shell/useAppCommands.cjs +2 -0
  537. package/dist/layouts/shell/useAppCommands.cjs.map +1 -0
  538. package/dist/layouts/shell/useAppCommands.d.ts +6 -0
  539. package/dist/layouts/shell/useAppCommands.js +19 -0
  540. package/dist/layouts/shell/useAppCommands.js.map +1 -0
  541. package/dist/layouts/shell/useMobileNav.cjs +2 -0
  542. package/dist/layouts/shell/useMobileNav.cjs.map +1 -0
  543. package/dist/layouts/shell/useMobileNav.d.ts +20 -0
  544. package/dist/layouts/shell/useMobileNav.js +54 -0
  545. package/dist/layouts/shell/useMobileNav.js.map +1 -0
  546. package/dist/layouts/shell/useOpenNotification.cjs +2 -0
  547. package/dist/layouts/shell/useOpenNotification.cjs.map +1 -0
  548. package/dist/layouts/shell/useOpenNotification.d.ts +3 -0
  549. package/dist/layouts/shell/useOpenNotification.js +16 -0
  550. package/dist/layouts/shell/useOpenNotification.js.map +1 -0
  551. package/dist/layouts/shell/useShellUser.cjs +2 -0
  552. package/dist/layouts/shell/useShellUser.cjs.map +1 -0
  553. package/dist/layouts/shell/useShellUser.d.ts +7 -0
  554. package/dist/layouts/shell/useShellUser.js +21 -0
  555. package/dist/layouts/shell/useShellUser.js.map +1 -0
  556. package/dist/layouts/shell/useWarnOnce.cjs +2 -0
  557. package/dist/layouts/shell/useWarnOnce.cjs.map +1 -0
  558. package/dist/layouts/shell/useWarnOnce.d.ts +1 -0
  559. package/dist/layouts/shell/useWarnOnce.js +11 -0
  560. package/dist/layouts/shell/useWarnOnce.js.map +1 -0
  561. package/dist/lib/format.cjs +1 -1
  562. package/dist/lib/format.cjs.map +1 -1
  563. package/dist/lib/format.d.ts +34 -0
  564. package/dist/lib/format.js +98 -9
  565. package/dist/lib/format.js.map +1 -1
  566. package/dist/lib/luceneQuery/tokenizeAtCursor.cjs +1 -1
  567. package/dist/lib/luceneQuery/tokenizeAtCursor.cjs.map +1 -1
  568. package/dist/lib/luceneQuery/tokenizeAtCursor.js +29 -29
  569. package/dist/lib/luceneQuery/tokenizeAtCursor.js.map +1 -1
  570. package/dist/lib/storage.cjs +1 -1
  571. package/dist/lib/storage.cjs.map +1 -1
  572. package/dist/lib/storage.js +19 -12
  573. package/dist/lib/storage.js.map +1 -1
  574. package/dist/lib/timeRange.cjs +1 -1
  575. package/dist/lib/timeRange.cjs.map +1 -1
  576. package/dist/lib/timeRange.js +4 -1
  577. package/dist/lib/timeRange.js.map +1 -1
  578. package/dist/locale/strings.cjs +1 -1
  579. package/dist/locale/strings.cjs.map +1 -1
  580. package/dist/locale/strings.d.ts +2 -0
  581. package/dist/locale/strings.js +2 -0
  582. package/dist/locale/strings.js.map +1 -1
  583. package/dist/notifications/notificationContext.cjs.map +1 -1
  584. package/dist/notifications/notificationContext.d.ts +5 -0
  585. package/dist/notifications/notificationContext.js.map +1 -1
  586. package/dist/style.css +1 -1
  587. package/dist/theme/ThemeProvider.cjs +1 -1
  588. package/dist/theme/ThemeProvider.cjs.map +1 -1
  589. package/dist/theme/ThemeProvider.d.ts +2 -1
  590. package/dist/theme/ThemeProvider.js +47 -33
  591. package/dist/theme/ThemeProvider.js.map +1 -1
  592. package/dist/theme/antdTheme.cjs +1 -1
  593. package/dist/theme/antdTheme.cjs.map +1 -1
  594. package/dist/theme/antdTheme.d.ts +0 -2
  595. package/dist/theme/antdTheme.js +26 -20
  596. package/dist/theme/antdTheme.js.map +1 -1
  597. package/dist/transports/agentm/AgentmChannelProvider.cjs +1 -1
  598. package/dist/transports/agentm/AgentmChannelProvider.cjs.map +1 -1
  599. package/dist/transports/agentm/AgentmChannelProvider.d.ts +1 -0
  600. package/dist/transports/agentm/AgentmChannelProvider.js +119 -131
  601. package/dist/transports/agentm/AgentmChannelProvider.js.map +1 -1
  602. package/dist/transports/agentm/agentmChannelClient.cjs +1 -1
  603. package/dist/transports/agentm/agentmChannelClient.cjs.map +1 -1
  604. package/dist/transports/agentm/agentmChannelClient.d.ts +8 -3
  605. package/dist/transports/agentm/agentmChannelClient.js +133 -89
  606. package/dist/transports/agentm/agentmChannelClient.js.map +1 -1
  607. package/dist/transports/index.d.ts +2 -2
  608. package/dist/transports/mcpBridge.cjs +2 -0
  609. package/dist/transports/mcpBridge.cjs.map +1 -0
  610. package/dist/transports/{bridge.d.ts → mcpBridge.d.ts} +2 -1
  611. package/dist/transports/mcpBridge.js +144 -0
  612. package/dist/transports/mcpBridge.js.map +1 -0
  613. package/dist/transports/mcpTools.cjs +2 -0
  614. package/dist/transports/mcpTools.cjs.map +1 -0
  615. package/dist/transports/mcpTools.d.ts +15 -0
  616. package/dist/transports/mcpTools.js +283 -0
  617. package/dist/transports/mcpTools.js.map +1 -0
  618. package/dist/transports.cjs +1 -1
  619. package/dist/transports.js +1 -1
  620. package/package.json +5 -4
  621. package/dist/agent/core/mcpToolCatalogue.cjs +0 -2
  622. package/dist/agent/core/mcpToolCatalogue.cjs.map +0 -1
  623. package/dist/agent/core/mcpToolCatalogue.d.ts +0 -2
  624. package/dist/agent/core/mcpToolCatalogue.js +0 -101
  625. package/dist/agent/core/mcpToolCatalogue.js.map +0 -1
  626. package/dist/components/ui/BucketCard.cjs +0 -2
  627. package/dist/components/ui/BucketCard.cjs.map +0 -1
  628. package/dist/components/ui/BucketCard.d.ts +0 -24
  629. package/dist/components/ui/BucketCard.js +0 -73
  630. package/dist/components/ui/BucketCard.js.map +0 -1
  631. package/dist/components/ui/ContentInspectorContent.cjs +0 -5
  632. package/dist/components/ui/ContentInspectorContent.cjs.map +0 -1
  633. package/dist/components/ui/ContentInspectorContent.d.ts +0 -14
  634. package/dist/components/ui/ContentInspectorContent.js +0 -101
  635. package/dist/components/ui/ContentInspectorContent.js.map +0 -1
  636. package/dist/components/ui/traceFormat.cjs +0 -2
  637. package/dist/components/ui/traceFormat.cjs.map +0 -1
  638. package/dist/components/ui/traceFormat.js +0 -11
  639. package/dist/components/ui/traceFormat.js.map +0 -1
  640. package/dist/layouts/shell/environments/EnvironmentContext.cjs +0 -2
  641. package/dist/layouts/shell/environments/EnvironmentContext.cjs.map +0 -1
  642. package/dist/layouts/shell/environments/EnvironmentContext.d.ts +0 -12
  643. package/dist/layouts/shell/environments/EnvironmentContext.js +0 -94
  644. package/dist/layouts/shell/environments/EnvironmentContext.js.map +0 -1
  645. package/dist/layouts/shell/environments/context.cjs.map +0 -1
  646. package/dist/layouts/shell/environments/context.d.ts +0 -6
  647. package/dist/layouts/shell/environments/context.js +0 -6
  648. package/dist/layouts/shell/environments/context.js.map +0 -1
  649. package/dist/layouts/shell/environments/hooks.cjs +0 -2
  650. package/dist/layouts/shell/environments/hooks.cjs.map +0 -1
  651. package/dist/layouts/shell/environments/hooks.js +0 -24
  652. package/dist/layouts/shell/environments/hooks.js.map +0 -1
  653. package/dist/layouts/shell/environments/manifest.cjs +0 -2
  654. package/dist/layouts/shell/environments/manifest.cjs.map +0 -1
  655. package/dist/layouts/shell/environments/manifest.d.ts +0 -26
  656. package/dist/layouts/shell/environments/manifest.js +0 -82
  657. package/dist/layouts/shell/environments/manifest.js.map +0 -1
  658. package/dist/transports/bridge.cjs +0 -2
  659. package/dist/transports/bridge.cjs.map +0 -1
  660. package/dist/transports/bridge.js +0 -143
  661. package/dist/transports/bridge.js.map +0 -1
@@ -1,46 +1,45 @@
1
- import { jsxs as c, jsx as a, Fragment as at } from "react/jsx-runtime";
2
- import { useId as nt, useState as $, useMemo as M, useRef as _e, useEffect as st, useCallback as it, Fragment as lt } from "react";
3
- import { RightOutlined as X, LeftOutlined as ot } from "@ant-design/icons";
4
- import { usePrimitiveSurface as rt } from "../../agent/core/usePrimitiveSurface.js";
5
- import { useIsomorphicLayoutEffect as dt } from "../../hooks/useIsomorphicLayoutEffect.js";
6
- import { useMediaQuery as ct } from "../../hooks/useMediaQuery.js";
7
- import { readStorage as gt, writeStorage as _t } from "../../lib/storage.js";
8
- import { Button as ue } from "./Button.js";
9
- import { Checkbox as he } from "./Checkbox.js";
1
+ import { jsxs as o, jsx as a } from "react/jsx-runtime";
2
+ import { useId as ze, useState as A, useMemo as He, useRef as ae, Fragment as Ue } from "react";
3
+ import { RightOutlined as le } from "@ant-design/icons";
4
+ import { usePrimitiveSurface as Ve } from "../../agent/core/usePrimitiveSurface.js";
5
+ import { useDevelopAfterLoad as Ge } from "../../hooks/useDevelopAfterLoad.js";
6
+ import { useMediaQuery as Qe } from "../../hooks/useMediaQuery.js";
7
+ import { Checkbox as se } from "./Checkbox.js";
10
8
  /* empty css */
11
- import { EmptyState as ut } from "./EmptyState.js";
12
- import { PageSizeSelect as ht } from "./PageSizeSelect.js";
13
- import { SkeletonText as mt, Skeleton as bt } from "./Skeleton.js";
14
- import { useStrings as fe } from "../../locale/useStrings.js";
15
- const ft = 60, pt = 120, O = 44, V = 32, me = 40, vt = "(max-width: 768px)", yt = 'a, button, input, select, textarea, label, [role="button"], [role="link"], [role="checkbox"]';
16
- function Nt(s) {
9
+ import { EmptyState as qe } from "./EmptyState.js";
10
+ import { Pagination as Fe } from "./Pagination.js";
11
+ import { SkeletonText as Ye, Skeleton as Je } from "./Skeleton.js";
12
+ import { useColumnWidths as Xe } from "./useColumnWidths.js";
13
+ import { useStrings as Ze } from "../../locale/useStrings.js";
14
+ const L = 44, M = 32, ie = 40, Ke = "(max-width: 768px)", et = 'a, button, input, select, textarea, label, [role="button"], [role="link"], [role="checkbox"]';
15
+ function tt(s) {
17
16
  if (window.getSelection()?.type === "Range")
18
17
  return !0;
19
- const o = s.target;
20
- if (!(o instanceof Element))
18
+ const g = s.target;
19
+ if (!(g instanceof Element))
21
20
  return !1;
22
- const g = o.closest(yt);
23
- return g !== null && s.currentTarget.contains(g);
21
+ const f = g.closest(et);
22
+ return f !== null && s.currentTarget.contains(f);
24
23
  }
25
- function wt(s, o, g) {
26
- const f = o?.sortValue;
27
- if (!f)
24
+ function at(s, g, f) {
25
+ const S = g?.sortValue;
26
+ if (!S)
28
27
  return s;
29
- const v = g === "asc" ? 1 : -1;
30
- return s.map((i, l) => {
31
- const u = f(i);
32
- return { row: i, index: l, v: typeof u == "number" && isNaN(u) ? null : u };
33
- }).sort((i, l) => {
34
- if (i.v === null || l.v === null)
35
- return i.v === l.v ? i.index - l.index : i.v === null ? 1 : -1;
36
- const u = typeof i.v == "number" && typeof l.v == "number" ? i.v - l.v : String(i.v).localeCompare(String(l.v));
37
- return u === 0 ? i.index - l.index : u * v;
28
+ const y = f === "asc" ? 1 : -1;
29
+ return s.map((i, n) => {
30
+ const u = S(i);
31
+ return { row: i, index: n, v: typeof u == "number" && isNaN(u) ? null : u };
32
+ }).sort((i, n) => {
33
+ if (i.v === null || n.v === null)
34
+ return i.v === n.v ? i.index - n.index : i.v === null ? 1 : -1;
35
+ const u = typeof i.v == "number" && typeof n.v == "number" ? i.v - n.v : String(i.v).localeCompare(String(n.v));
36
+ return u === 0 ? i.index - n.index : u * y;
38
37
  }).map((i) => i.row);
39
38
  }
40
- function kt({
39
+ function lt({
41
40
  direction: s
42
41
  }) {
43
- return /* @__PURE__ */ c(
42
+ return /* @__PURE__ */ o(
44
43
  "svg",
45
44
  {
46
45
  className: "aegis-data-table__sort-icon",
@@ -65,292 +64,265 @@ function kt({
65
64
  }
66
65
  );
67
66
  }
68
- function St(s) {
69
- if (s !== void 0)
70
- return typeof s == "number" ? `${s}px` : s;
71
- }
72
- function q(s) {
73
- return `aegis-data-table:${s}`;
74
- }
75
- function be(s) {
76
- const o = gt(q(s));
77
- if (!o)
78
- return {};
79
- try {
80
- const g = JSON.parse(o);
81
- return g && typeof g == "object" ? g : {};
82
- } catch {
83
- return {};
84
- }
85
- }
86
- function Ct(s, o) {
87
- _t(q(s), JSON.stringify(o));
88
- }
89
- function Bt({
67
+ function ft({
90
68
  columns: s,
91
- data: o,
92
- rowKey: g,
93
- loading: f = !1,
94
- emptyTitle: v = "No data",
95
- emptyDescription: i,
96
- emptyAction: l,
97
- className: u,
98
- framed: L = !0,
99
- persistKey: _,
100
- pagination: C,
101
- selectable: h = !1,
102
- selectedKeys: W,
103
- onSelectedKeysChange: G,
104
- renderExpanded: J,
105
- expandedKeys: Q,
106
- defaultExpandedKeys: pe,
107
- onExpandedKeysChange: ve,
108
- renderMobileCard: Y,
109
- onRowClick: D,
110
- stickyFirstColumn: ye = !1,
111
- stale: Z = !1,
112
- sort: I,
113
- defaultSort: Ne,
114
- onSortChange: we,
115
- surface: ke
69
+ data: g,
70
+ rowKey: f,
71
+ ariaLabel: S,
72
+ loading: y = !1,
73
+ emptyTitle: i = "No data",
74
+ emptyDescription: n,
75
+ emptyAction: u,
76
+ className: ne,
77
+ framed: oe = !0,
78
+ persistKey: de,
79
+ pagination: P,
80
+ selectable: d = !1,
81
+ selectedKeys: z,
82
+ onSelectedKeysChange: H,
83
+ renderExpanded: U,
84
+ expandedKeys: V,
85
+ defaultExpandedKeys: re,
86
+ onExpandedKeysChange: ce,
87
+ renderMobileCard: G,
88
+ onRowClick: $,
89
+ stickyFirstColumn: _e = !1,
90
+ stale: Q = !1,
91
+ sort: D,
92
+ defaultSort: ge,
93
+ onSortChange: he,
94
+ surface: ue
116
95
  }) {
117
- const E = fe(), Se = ct(vt), Ce = nt(), y = Y !== void 0 && Se, [xe, Le] = $(Ne ?? null), p = I === void 0 ? xe : I, K = s.find((e) => e.key === p?.key), P = M(
118
- () => wt(o, K, p?.direction ?? "asc"),
119
- [o, K, p?.direction]
120
- ), Ee = (e) => {
121
- const t = e.firstSortDirection ?? (e.numeric ? "desc" : "asc"), n = {
96
+ const R = Ze(), me = Qe(Ke), be = ze(), m = G !== void 0 && me, pe = Ge(y), [fe, ve] = A(ge ?? null), h = D === void 0 ? fe : D, q = s.find((e) => e.key === h?.key), O = He(
97
+ () => at(g, q, h?.direction ?? "asc"),
98
+ [g, q, h?.direction]
99
+ ), ye = (e) => {
100
+ const t = e.firstSortDirection ?? (e.numeric ? "desc" : "asc"), l = {
122
101
  key: e.key,
123
- direction: p?.key === e.key ? p.direction === "asc" ? "desc" : "asc" : t
102
+ direction: h?.key === e.key ? h.direction === "asc" ? "desc" : "asc" : t
124
103
  };
125
- I === void 0 && Le(n), we?.(n);
126
- }, x = W ?? [], k = P.map((e, t) => g(e, t)), j = k.filter((e) => x.includes(e)).length, Re = (e, t) => {
127
- G?.(
128
- t ? [...x, e] : x.filter((n) => n !== e)
104
+ D === void 0 && ve(l), he?.(l);
105
+ }, C = z ?? [], N = O.map((e, t) => f(e, t)), j = N.filter((e) => C.includes(e)).length, Ne = (e, t) => {
106
+ H?.(
107
+ t ? [...C, e] : C.filter((l) => l !== e)
129
108
  );
130
- }, Te = (e) => {
131
- const t = x.filter((n) => !k.includes(n));
132
- G?.(e ? [...t, ...k] : t);
133
- }, $e = (e, t) => /* @__PURE__ */ a(
134
- he,
109
+ }, ke = (e) => {
110
+ const t = C.filter((l) => !N.includes(l));
111
+ H?.(e ? [...t, ...N] : t);
112
+ }, we = (e, t) => /* @__PURE__ */ a(
113
+ se,
135
114
  {
136
115
  checked: e,
137
116
  onChange: t,
138
- ariaLabel: E.selectRow
117
+ ariaLabel: R.selectRow
139
118
  }
140
- ), [Me, Oe] = $(pe ?? []), w = Q ?? Me, [z, We] = $(w), ee = w.filter((e) => !z.includes(e));
141
- ee.length > 0 && We([...z, ...ee]);
142
- const De = (e) => {
143
- const t = w.includes(e) ? w.filter((n) => n !== e) : [...w, e];
144
- Q === void 0 && Oe(t), ve?.(t);
145
- }, te = _e(null), ae = _e(null), Ie = rt(ke, o, "table", ae), [m, ne] = $(
146
- () => _ ? be(_) : {}
147
- );
148
- st(() => {
149
- _ && Ct(_, m);
150
- }, [_, m]);
151
- const A = M(
152
- () => s.some(
153
- (e) => e.width !== void 0 || e.resizable === !0 || e.key in m
154
- ),
155
- [s, m]
156
- ), se = M(
157
- () => s.map((e) => e.key in m ? `${m[e.key]}px` : St(e.width)),
158
- [s, m]
159
- ), N = J !== void 0, b = D !== void 0, B = (h ? O : 0) + (N ? V : 0), ie = b ? me : 0, le = M(() => A ? `${s.reduce((t, n) => {
160
- const r = n.key in m ? m[n.key] : typeof n.width == "number" ? n.width : void 0;
161
- return t + (r ?? n.minWidth ?? pt);
162
- }, B + ie).toString()}px` : void 0, [s, m, A, B, ie]), Pe = it(
163
- (e, t) => (n) => {
164
- if (n.button !== 0)
165
- return;
166
- n.preventDefault(), n.stopPropagation();
167
- const r = te.current;
168
- if (!r)
169
- return;
170
- const d = r.querySelectorAll("thead th")[t];
171
- if (!(d instanceof HTMLElement))
172
- return;
173
- const T = n.clientX, Qe = d.getBoundingClientRect().width, Ye = e.minWidth ?? ft, Ze = e.maxWidth ?? 1 / 0;
174
- document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
175
- const ce = (Ke) => {
176
- const et = Math.min(
177
- Math.max(Qe + (Ke.clientX - T), Ye),
178
- Ze
179
- );
180
- ne((tt) => ({ ...tt, [e.key]: Math.round(et) }));
181
- }, ge = () => {
182
- document.body.style.cursor = "", document.body.style.userSelect = "", window.removeEventListener("pointermove", ce), window.removeEventListener("pointerup", ge);
183
- };
184
- window.addEventListener("pointermove", ce), window.addEventListener("pointerup", ge);
185
- },
186
- []
187
- );
188
- dt(() => {
189
- if (!_ || typeof window > "u")
190
- return;
191
- const e = (t) => {
192
- t.key === q(_) && ne(be(_));
193
- };
194
- return window.addEventListener("storage", e), () => window.removeEventListener("storage", e);
195
- }, [_]);
196
- const je = [
119
+ ), [Ce, Se] = A(re ?? []), v = V ?? Ce, [I, Re] = A(v), F = v.filter((e) => !I.includes(e));
120
+ F.length > 0 && Re([...I, ...F]);
121
+ const xe = (e) => {
122
+ const t = v.includes(e) ? v.filter((l) => l !== e) : [...v, e];
123
+ V === void 0 && Se(t), ce?.(t);
124
+ }, Y = ae(null), J = ae(null), Ee = Ve(ue, g, "table", J), b = U !== void 0, r = $ !== void 0, X = (d ? L : 0) + (b ? M : 0), k = Xe({
125
+ columns: s,
126
+ persistKey: de,
127
+ leadWidth: X,
128
+ trailWidth: r ? ie : 0,
129
+ tableRef: Y
130
+ }), Te = [
197
131
  "aegis-data-table",
198
- L ? "aegis-data-table--framed" : "",
199
- Z ? "aegis-data-table--stale" : "",
200
- u ?? ""
201
- ].filter(Boolean).join(" "), H = A && !y, R = ye && !y, oe = (y ? 1 : s.length) + (b ? 1 : 0), ze = oe + (h ? 1 : 0) + (N ? 1 : 0), Ae = h ? O : 0, S = (e, t) => ({
132
+ oe ? "aegis-data-table--framed" : "",
133
+ Q ? "aegis-data-table--stale" : "",
134
+ ne ?? ""
135
+ ].filter(Boolean).join(" "), x = k.sized && !m, E = x && k.fillerStyle !== void 0, T = _e && !m, Z = (m ? 1 : s.length) + (E ? 1 : 0) + (r ? 1 : 0), Le = Z + (d ? 1 : 0) + (b ? 1 : 0), $e = d ? L : 0, w = (e, t) => ({
202
136
  className: [
203
137
  `aegis-data-table__${t}`,
204
138
  `aegis-data-table__${e}-cell`,
205
- R ? `aegis-data-table__${t}--sticky` : ""
139
+ T ? `aegis-data-table__${t}--sticky` : ""
206
140
  ].filter(Boolean).join(" "),
207
141
  style: {
208
- width: e === "select" ? O : V,
209
- left: R ? e === "select" ? 0 : Ae : void 0
142
+ width: e === "select" ? L : M,
143
+ left: T ? e === "select" ? 0 : $e : void 0
210
144
  }
211
- }), U = (e, t, n) => {
212
- const r = `aegis-data-table__${e}`, d = [r];
213
- return R && t === 0 && d.push(`${r}--sticky`), n !== void 0 && (d.push(
145
+ }), W = (e, t, l) => {
146
+ const c = `aegis-data-table__${e}`, _ = [c];
147
+ return T && t === 0 && _.push(`${c}--sticky`), l !== void 0 && (_.push(
214
148
  "aegis-data-table__td--tone",
215
- `aegis-data-table__td--tone-${n.tone}`
216
- ), n.step !== void 0 && n.step > 1 && d.push(`aegis-data-table__td--step-${String(n.step)}`)), d.join(" ");
217
- }, re = (e) => e.kind === "actions" || e.numeric === !0 ? "right" : e.align ?? "left", F = (e, t) => ({
218
- textAlign: re(e),
219
- left: R && t === 0 ? B : void 0
220
- }), de = (e, t) => {
221
- const n = [
149
+ `aegis-data-table__td--tone-${l.tone}`
150
+ ), l.step !== void 0 && l.step > 1 && _.push(`aegis-data-table__td--step-${String(l.step)}`)), _.join(" ");
151
+ }, K = (e) => e.kind === "actions" || e.numeric === !0 ? "right" : e.align ?? "left", B = (e, t) => ({
152
+ textAlign: K(e),
153
+ left: T && t === 0 ? X : void 0
154
+ }), ee = (e, t) => {
155
+ const l = [
222
156
  "aegis-data-table__cell",
223
- `aegis-data-table__cell--${re(e)}`
157
+ `aegis-data-table__cell--${K(e)}`
224
158
  ];
225
- return e.numeric && n.push("aegis-data-table__cell--numeric"), e.kind === "actions" ? n.push("aegis-data-table__cell--actions") : (e.truncate ?? !0) && n.push("aegis-data-table__cell--truncate"), /* @__PURE__ */ a("div", { className: n.join(" "), children: t });
226
- }, Be = (e, t) => y ? /* @__PURE__ */ a("td", { className: "aegis-data-table__td aegis-data-table__card-cell", children: Y(e, t) }) : s.map((n, r) => /* @__PURE__ */ a(
159
+ return e.numeric && l.push("aegis-data-table__cell--numeric"), e.kind === "actions" ? l.push("aegis-data-table__cell--actions") : (e.truncate ?? !0) && l.push("aegis-data-table__cell--truncate"), /* @__PURE__ */ a("div", { className: l.join(" "), children: t });
160
+ }, De = (e, t) => m ? /* @__PURE__ */ a("td", { className: "aegis-data-table__td aegis-data-table__card-cell", children: G(e, t) }) : s.map((l, c) => /* @__PURE__ */ a(
227
161
  "td",
228
162
  {
229
- className: U("td", r, n.cellTone?.(e, t)),
230
- style: F(n, r),
231
- children: de(n, n.render(e, t))
163
+ className: W("td", c, l.cellTone?.(e, t)),
164
+ style: B(l, c),
165
+ children: ee(l, l.render(e, t))
232
166
  },
233
- n.key
234
- )), He = () => y ? /* @__PURE__ */ a("td", { className: "aegis-data-table__td aegis-data-table__card-cell", children: /* @__PURE__ */ a(mt, { lines: 2 }) }) : s.map((e, t) => /* @__PURE__ */ a(
167
+ l.key
168
+ )), Oe = () => m ? /* @__PURE__ */ a("td", { className: "aegis-data-table__td aegis-data-table__card-cell", children: /* @__PURE__ */ a(Ye, { lines: 2 }) }) : s.map((e, t) => /* @__PURE__ */ a(
235
169
  "td",
236
170
  {
237
- className: U("td", t),
238
- style: F(e, t),
239
- children: de(
171
+ className: W("td", t),
172
+ style: B(e, t),
173
+ children: ee(
240
174
  e,
241
- /* @__PURE__ */ a(bt, { width: "80%", height: "var(--space-3)" })
175
+ /* @__PURE__ */ a(Je, { width: "80%", height: "var(--space-3)" })
242
176
  )
243
177
  },
244
178
  e.key
245
- )), Ue = b && /* @__PURE__ */ a("td", { className: "aegis-data-table__td aegis-data-table__chevron-cell", children: /* @__PURE__ */ a(X, { className: "aegis-data-table__chevron", "aria-hidden": !0 }) }), Fe = (e, t) => {
246
- const n = w.includes(e);
179
+ )), te = E && /* @__PURE__ */ a("td", { className: "aegis-data-table__td aegis-data-table__filler", "aria-hidden": !0 }), je = r && /* @__PURE__ */ a(
180
+ "td",
181
+ {
182
+ className: "aegis-data-table__td aegis-data-table__chevron-cell",
183
+ "aria-hidden": !0,
184
+ children: /* @__PURE__ */ a(le, { className: "aegis-data-table__chevron", "aria-hidden": !0 })
185
+ }
186
+ ), Ie = (e, t) => {
187
+ const l = v.includes(e);
247
188
  return /* @__PURE__ */ a(
248
189
  "button",
249
190
  {
250
191
  type: "button",
251
192
  className: "aegis-data-table__toggle",
252
- "aria-expanded": n,
193
+ "aria-expanded": l,
253
194
  "aria-controls": t,
254
- "aria-label": n ? E.collapseRow : E.expandRow,
195
+ "aria-label": l ? R.collapseRow : R.expandRow,
255
196
  onClick: () => {
256
- De(e);
197
+ xe(e);
257
198
  },
258
- children: /* @__PURE__ */ a(X, { className: "aegis-data-table__toggle-icon", "aria-hidden": !0 })
199
+ children: /* @__PURE__ */ a(le, { className: "aegis-data-table__toggle-icon", "aria-hidden": !0 })
259
200
  }
260
201
  );
261
- }, Ve = (e, t, n, r, d) => {
262
- const T = w.includes(n);
263
- return /* @__PURE__ */ c(
202
+ }, We = (e, t, l, c, _) => {
203
+ const p = v.includes(l);
204
+ return /* @__PURE__ */ o(
264
205
  "tr",
265
206
  {
266
- className: T ? "aegis-data-table__detail-row aegis-data-table__detail-row--open" : "aegis-data-table__detail-row",
207
+ className: p ? "aegis-data-table__detail-row aegis-data-table__detail-row--open" : "aegis-data-table__detail-row",
267
208
  children: [
268
- h && /* @__PURE__ */ a("td", { className: "aegis-data-table__detail-cell" }),
209
+ d && /* @__PURE__ */ a("td", { className: "aegis-data-table__detail-cell" }),
269
210
  /* @__PURE__ */ a("td", { className: "aegis-data-table__detail-cell" }),
270
211
  /* @__PURE__ */ a(
271
212
  "td",
272
213
  {
273
- id: r,
274
- colSpan: oe,
214
+ id: c,
215
+ colSpan: Z,
275
216
  className: "aegis-data-table__detail-cell",
276
- children: /* @__PURE__ */ a("div", { className: "aegis-data-table__detail", children: /* @__PURE__ */ a("div", { className: "aegis-data-table__detail-clip", children: /* @__PURE__ */ a("div", { className: "aegis-data-table__detail-body", children: (T || z.includes(n)) && d(e, t) }) }) })
217
+ children: /* @__PURE__ */ a("div", { className: "aegis-data-table__detail", children: /* @__PURE__ */ a("div", { className: "aegis-data-table__detail-clip", children: /* @__PURE__ */ a("div", { className: "aegis-data-table__detail-body", children: (p || I.includes(l)) && _(e, t) }) }) })
277
218
  }
278
219
  )
279
220
  ]
280
221
  }
281
222
  );
282
- }, Xe = (e, t, n) => {
283
- Nt(e) || D?.(t, n);
284
- }, qe = (e, t, n) => {
285
- e.key === "Enter" && e.target === e.currentTarget && (e.preventDefault(), D?.(t, n));
286
- }, Ge = [
223
+ }, Be = (e, t, l) => {
224
+ tt(e) || $?.(t, l);
225
+ }, Ae = (e, t, l) => {
226
+ e.key === "Enter" && e.target === e.currentTarget && (e.preventDefault(), $?.(t, l));
227
+ }, Me = (e) => [
287
228
  "aegis-data-table__row",
288
- b ? "aegis-data-table__row--clickable" : "",
289
- N ? "aegis-data-table__row--expandable" : ""
290
- ].filter(Boolean).join(" "), Je = [
229
+ r ? "aegis-data-table__row--clickable" : "",
230
+ b ? "aegis-data-table__row--expandable" : "",
231
+ e ? "aegis-data-table__row--selected" : ""
232
+ ].filter(Boolean).join(" "), Pe = [
291
233
  "aegis-data-table__table",
292
- H ? "aegis-data-table__table--fixed" : "",
293
- y ? "aegis-data-table__table--cards" : ""
234
+ x ? "aegis-data-table__table--fixed" : "",
235
+ m ? "aegis-data-table__table--cards" : ""
294
236
  ].filter(Boolean).join(" ");
295
- return /* @__PURE__ */ c(
237
+ return /* @__PURE__ */ o(
296
238
  "div",
297
239
  {
298
- ref: ae,
299
- className: je,
300
- "aria-busy": Z ? !0 : void 0,
301
- ...Ie,
240
+ ref: J,
241
+ className: Te,
242
+ "aria-busy": Q || y ? !0 : void 0,
243
+ ...Ee,
302
244
  children: [
303
- /* @__PURE__ */ a("div", { className: "aegis-data-table__scroll", children: /* @__PURE__ */ c(
245
+ /* @__PURE__ */ a("div", { className: "aegis-data-table__scroll", children: /* @__PURE__ */ o(
304
246
  "table",
305
247
  {
306
- ref: te,
307
- className: Je,
308
- style: le && H ? { minWidth: le } : void 0,
248
+ ref: Y,
249
+ "aria-label": S,
250
+ className: Pe,
251
+ style: x ? k.tableStyle : void 0,
309
252
  children: [
310
- H && /* @__PURE__ */ c("colgroup", { children: [
311
- h && /* @__PURE__ */ a("col", { style: { width: O } }, "__select"),
312
- N && /* @__PURE__ */ a("col", { style: { width: V } }, "__toggle"),
313
- s.map((e, t) => /* @__PURE__ */ a(
253
+ x && /* @__PURE__ */ o("colgroup", { children: [
254
+ d && /* @__PURE__ */ a("col", { style: { width: L } }, "__select"),
255
+ b && /* @__PURE__ */ a("col", { style: { width: M } }, "__toggle"),
256
+ s.map((e, t) => {
257
+ const l = k.widths[t];
258
+ return /* @__PURE__ */ a(
259
+ "col",
260
+ {
261
+ "data-column-key": e.key,
262
+ style: l ? { width: l } : void 0
263
+ },
264
+ e.key
265
+ );
266
+ }),
267
+ E && /* @__PURE__ */ a(
314
268
  "col",
315
269
  {
316
- style: se[t] ? { width: se[t] } : void 0
270
+ "data-column-filler": !0,
271
+ style: k.fillerStyle
317
272
  },
318
- e.key
319
- )),
320
- b && /* @__PURE__ */ a("col", { style: { width: me } }, "__chevron")
273
+ "__filler"
274
+ ),
275
+ r && /* @__PURE__ */ a("col", { style: { width: ie } }, "__chevron")
321
276
  ] }),
322
- (!y || h) && /* @__PURE__ */ a("thead", { children: /* @__PURE__ */ c("tr", { children: [
323
- h && /* @__PURE__ */ a("th", { ...S("select", "th"), children: /* @__PURE__ */ a("span", { className: "aegis-data-table__th-label", children: /* @__PURE__ */ a(
324
- he,
277
+ (!m || d) && /* @__PURE__ */ a("thead", { children: /* @__PURE__ */ o("tr", { children: [
278
+ d && /* @__PURE__ */ a(
279
+ "th",
325
280
  {
326
- checked: k.length > 0 && j === k.length,
327
- indeterminate: j > 0 && j < k.length,
328
- onChange: Te,
329
- ariaLabel: E.selectAllRows
330
- }
331
- ) }) }, "__select"),
332
- N && /* @__PURE__ */ a("th", { ...S("toggle", "th") }, "__toggle"),
333
- y ? /* @__PURE__ */ a("th", { className: "aegis-data-table__th" }) : s.map((e, t) => /* @__PURE__ */ c(
281
+ scope: "col",
282
+ ...w("select", "th"),
283
+ children: /* @__PURE__ */ a("span", { className: "aegis-data-table__th-label", children: /* @__PURE__ */ a(
284
+ se,
285
+ {
286
+ checked: N.length > 0 && j === N.length,
287
+ indeterminate: j > 0 && j < N.length,
288
+ onChange: ke,
289
+ ariaLabel: R.selectAllRows
290
+ }
291
+ ) })
292
+ },
293
+ "__select"
294
+ ),
295
+ b && /* @__PURE__ */ a(
334
296
  "th",
335
297
  {
336
- className: U("th", t),
337
- style: F(e, t),
338
- "aria-sort": e.sortable ? p?.key === e.key ? p.direction === "asc" ? "ascending" : "descending" : "none" : void 0,
298
+ scope: "col",
299
+ ...w("toggle", "th")
300
+ },
301
+ "__toggle"
302
+ ),
303
+ m ? /* @__PURE__ */ a("th", { scope: "col", className: "aegis-data-table__th" }) : s.map((e, t) => /* @__PURE__ */ o(
304
+ "th",
305
+ {
306
+ scope: "col",
307
+ "data-column-key": e.key,
308
+ className: W("th", t),
309
+ style: B(e, t),
310
+ "aria-sort": e.sortable ? h?.key === e.key ? h.direction === "asc" ? "ascending" : "descending" : "none" : void 0,
339
311
  children: [
340
- e.sortable ? /* @__PURE__ */ c(
312
+ e.sortable ? /* @__PURE__ */ o(
341
313
  "button",
342
314
  {
343
315
  type: "button",
344
316
  className: "aegis-data-table__sort",
345
317
  onClick: () => {
346
- Ee(e);
318
+ ye(e);
347
319
  },
348
320
  children: [
349
321
  /* @__PURE__ */ a("span", { className: "aegis-data-table__th-label", children: e.header }),
350
322
  /* @__PURE__ */ a(
351
- kt,
323
+ lt,
352
324
  {
353
- direction: p?.key === e.key ? p.direction : null
325
+ direction: h?.key === e.key ? h.direction : null
354
326
  }
355
327
  )
356
328
  ]
@@ -359,135 +331,101 @@ function Bt({
359
331
  e.resizable && /* @__PURE__ */ a(
360
332
  "span",
361
333
  {
362
- role: "separator",
363
- "aria-orientation": "vertical",
364
334
  "aria-label": "Resize column",
365
335
  className: "aegis-data-table__resizer",
366
- onPointerDown: Pe(e, t)
336
+ ...k.handleProps(e)
367
337
  }
368
338
  )
369
339
  ]
370
340
  },
371
341
  e.key
372
342
  )),
373
- b && /* @__PURE__ */ a("th", { className: "aegis-data-table__th aegis-data-table__chevron-cell" })
343
+ E && /* @__PURE__ */ a(
344
+ "th",
345
+ {
346
+ scope: "col",
347
+ className: "aegis-data-table__th aegis-data-table__filler",
348
+ "aria-hidden": !0
349
+ }
350
+ ),
351
+ r && /* @__PURE__ */ a(
352
+ "th",
353
+ {
354
+ scope: "col",
355
+ className: "aegis-data-table__th aegis-data-table__chevron-cell",
356
+ "aria-hidden": !0
357
+ }
358
+ )
374
359
  ] }) }),
375
- /* @__PURE__ */ a("tbody", { children: f ? Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ c("tr", { className: "aegis-data-table__row", children: [
376
- h && /* @__PURE__ */ a("td", { ...S("select", "td") }, "__select"),
377
- N && /* @__PURE__ */ a("td", { ...S("toggle", "td") }, "__toggle"),
378
- He(),
379
- b && /* @__PURE__ */ a("td", { className: "aegis-data-table__td" })
380
- ] }, `sk-${t}`)) : P.length === 0 ? /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a(
381
- "td",
382
- {
383
- colSpan: ze,
384
- className: "aegis-data-table__empty-cell",
385
- children: /* @__PURE__ */ a("div", { className: "aegis-data-table__empty", children: /* @__PURE__ */ a(
386
- ut,
387
- {
388
- title: v,
389
- description: i,
390
- action: l
391
- }
392
- ) })
393
- }
394
- ) }) : P.map((e, t) => {
395
- const n = g(e, t), r = `${Ce}-detail-${String(t)}`;
396
- return /* @__PURE__ */ c(lt, { children: [
397
- /* @__PURE__ */ c(
360
+ /* @__PURE__ */ a("tbody", { "data-aegis-develop": pe || void 0, children: y ? Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ o("tr", { className: "aegis-data-table__row", children: [
361
+ d && /* @__PURE__ */ a("td", { ...w("select", "td") }, "__select"),
362
+ b && /* @__PURE__ */ a("td", { ...w("toggle", "td") }, "__toggle"),
363
+ Oe(),
364
+ te,
365
+ r && /* @__PURE__ */ a("td", { className: "aegis-data-table__td", "aria-hidden": !0 })
366
+ ] }, `sk-${t}`)) : O.length === 0 ? (
367
+ // Not a data row, so an empty table has no rows to read.
368
+ /* @__PURE__ */ a("tr", { role: "presentation", children: /* @__PURE__ */ a(
369
+ "td",
370
+ {
371
+ colSpan: Le,
372
+ className: "aegis-data-table__empty-cell",
373
+ children: /* @__PURE__ */ a("div", { className: "aegis-data-table__empty", children: /* @__PURE__ */ a(
374
+ qe,
375
+ {
376
+ title: i,
377
+ description: n,
378
+ action: u
379
+ }
380
+ ) })
381
+ }
382
+ ) })
383
+ ) : O.map((e, t) => {
384
+ const l = f(e, t), c = `${be}-detail-${String(t)}`, _ = C.includes(l);
385
+ return /* @__PURE__ */ o(Ue, { children: [
386
+ /* @__PURE__ */ o(
398
387
  "tr",
399
388
  {
400
- className: Ge,
401
- tabIndex: b ? 0 : void 0,
402
- onClick: b ? (d) => {
403
- Xe(d, e, t);
389
+ className: Me(_),
390
+ "aria-selected": d || z !== void 0 ? _ : void 0,
391
+ tabIndex: r ? 0 : void 0,
392
+ onClick: r ? (p) => {
393
+ Be(p, e, t);
404
394
  } : void 0,
405
- onKeyDown: b ? (d) => {
406
- qe(d, e, t);
395
+ onKeyDown: r ? (p) => {
396
+ Ae(p, e, t);
407
397
  } : void 0,
408
398
  children: [
409
- h && /* @__PURE__ */ a("td", { ...S("select", "td"), children: $e(x.includes(n), (d) => {
410
- Re(n, d);
399
+ d && /* @__PURE__ */ a("td", { ...w("select", "td"), children: we(_, (p) => {
400
+ Ne(l, p);
411
401
  }) }),
412
- N && /* @__PURE__ */ a("td", { ...S("toggle", "td"), children: Fe(n, r) }),
413
- Be(e, t),
414
- Ue
402
+ b && /* @__PURE__ */ a("td", { ...w("toggle", "td"), children: Ie(l, c) }),
403
+ De(e, t),
404
+ te,
405
+ je
415
406
  ]
416
407
  }
417
408
  ),
418
- N && Ve(e, t, n, r, J)
419
- ] }, n);
409
+ b && We(e, t, l, c, U)
410
+ ] }, l);
420
411
  }) })
421
412
  ]
422
413
  }
423
414
  ) }),
424
- C && /* @__PURE__ */ a(
425
- xt,
415
+ P && /* @__PURE__ */ a(
416
+ Fe,
426
417
  {
427
- pagination: C,
428
- rowCount: o.length,
429
- loading: f
418
+ ...P,
419
+ pageRowCount: g.length,
420
+ disabled: y,
421
+ className: "aegis-data-table__footer"
430
422
  }
431
423
  )
432
424
  ]
433
425
  }
434
426
  );
435
427
  }
436
- function xt({
437
- pagination: s,
438
- rowCount: o,
439
- loading: g
440
- }) {
441
- const f = fe(), { page: v, pageSize: i, total: l, onChange: u, pageSizeOptions: L } = s, _ = (v - 1) * i, C = l === void 0 ? o : Math.max(0, Math.min(i, l - _)), h = l === void 0 ? o >= i : _ + i < l;
442
- return /* @__PURE__ */ c("div", { className: "aegis-data-table__footer", children: [
443
- L && /* @__PURE__ */ a(
444
- ht,
445
- {
446
- value: i,
447
- options: L,
448
- onChange: (W) => {
449
- u(1, W);
450
- }
451
- }
452
- ),
453
- /* @__PURE__ */ c("div", { className: "aegis-data-table__pager", children: [
454
- /* @__PURE__ */ c("span", { className: "aegis-data-table__range", children: [
455
- /* @__PURE__ */ a("span", { className: "aegis-data-table__range-num", children: C > 0 ? `${(_ + 1).toLocaleString()}–${(_ + C).toLocaleString()}` : "0" }),
456
- l !== void 0 && /* @__PURE__ */ c(at, { children: [
457
- f.rangeOf,
458
- /* @__PURE__ */ a("span", { className: "aegis-data-table__range-num", children: l.toLocaleString() })
459
- ] })
460
- ] }),
461
- /* @__PURE__ */ a(
462
- ue,
463
- {
464
- tone: "secondary",
465
- className: "aegis-data-table__page-btn",
466
- "aria-label": f.previousPage,
467
- disabled: g || v <= 1,
468
- onClick: () => {
469
- u(v - 1, i);
470
- },
471
- children: /* @__PURE__ */ a(ot, {})
472
- }
473
- ),
474
- /* @__PURE__ */ a(
475
- ue,
476
- {
477
- tone: "secondary",
478
- className: "aegis-data-table__page-btn",
479
- "aria-label": f.nextPage,
480
- disabled: g || !h,
481
- onClick: () => {
482
- u(v + 1, i);
483
- },
484
- children: /* @__PURE__ */ a(X, {})
485
- }
486
- )
487
- ] })
488
- ] });
489
- }
490
428
  export {
491
- Bt as DataTable
429
+ ft as DataTable
492
430
  };
493
431
  //# sourceMappingURL=DataTable.js.map