@lincyaw/aegis-ui 0.10.0 → 0.12.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 (396) hide show
  1. package/dist/agent/ask/AskPanel.cjs +1 -1
  2. package/dist/agent/ask/AskPanel.cjs.map +1 -1
  3. package/dist/agent/ask/AskPanel.d.ts +5 -0
  4. package/dist/agent/ask/AskPanel.js +105 -98
  5. package/dist/agent/ask/AskPanel.js.map +1 -1
  6. package/dist/commands/commandContext.cjs.map +1 -1
  7. package/dist/commands/commandContext.d.ts +4 -1
  8. package/dist/commands/commandContext.js.map +1 -1
  9. package/dist/components/ui/AgentPanel.cjs +1 -1
  10. package/dist/components/ui/AgentPanel.cjs.map +1 -1
  11. package/dist/components/ui/AgentPanel.js +15 -14
  12. package/dist/components/ui/AgentPanel.js.map +1 -1
  13. package/dist/components/ui/Avatar.cjs +1 -1
  14. package/dist/components/ui/Avatar.cjs.map +1 -1
  15. package/dist/components/ui/Avatar.js +21 -19
  16. package/dist/components/ui/Avatar.js.map +1 -1
  17. package/dist/components/ui/BlastRadiusBar.cjs +1 -1
  18. package/dist/components/ui/BlastRadiusBar.cjs.map +1 -1
  19. package/dist/components/ui/BlastRadiusBar.d.ts +16 -4
  20. package/dist/components/ui/BlastRadiusBar.js +27 -23
  21. package/dist/components/ui/BlastRadiusBar.js.map +1 -1
  22. package/dist/components/ui/Button.cjs.map +1 -1
  23. package/dist/components/ui/Button.d.ts +4 -2
  24. package/dist/components/ui/Button.js.map +1 -1
  25. package/dist/components/ui/ChatComposer.cjs +1 -1
  26. package/dist/components/ui/ChatComposer.cjs.map +1 -1
  27. package/dist/components/ui/ChatComposer.js +32 -31
  28. package/dist/components/ui/ChatComposer.js.map +1 -1
  29. package/dist/components/ui/ChatSessionList.cjs +1 -1
  30. package/dist/components/ui/ChatSessionList.cjs.map +1 -1
  31. package/dist/components/ui/ChatSessionList.js +68 -66
  32. package/dist/components/ui/ChatSessionList.js.map +1 -1
  33. package/dist/components/ui/CheckGrid.cjs +1 -1
  34. package/dist/components/ui/CheckGrid.cjs.map +1 -1
  35. package/dist/components/ui/CheckGrid.js +18 -17
  36. package/dist/components/ui/CheckGrid.js.map +1 -1
  37. package/dist/components/ui/Checkbox.cjs +1 -1
  38. package/dist/components/ui/Checkbox.cjs.map +1 -1
  39. package/dist/components/ui/Checkbox.d.ts +6 -2
  40. package/dist/components/ui/Checkbox.js +21 -17
  41. package/dist/components/ui/Checkbox.js.map +1 -1
  42. package/dist/components/ui/ChoiceCardGroup.cjs +1 -1
  43. package/dist/components/ui/ChoiceCardGroup.cjs.map +1 -1
  44. package/dist/components/ui/ChoiceCardGroup.d.ts +13 -4
  45. package/dist/components/ui/ChoiceCardGroup.js +47 -35
  46. package/dist/components/ui/ChoiceCardGroup.js.map +1 -1
  47. package/dist/components/ui/CodeEditor.cjs +1 -1
  48. package/dist/components/ui/CodeEditor.cjs.map +1 -1
  49. package/dist/components/ui/CodeEditor.d.ts +11 -1
  50. package/dist/components/ui/CodeEditor.js +108 -74
  51. package/dist/components/ui/CodeEditor.js.map +1 -1
  52. package/dist/components/ui/CommandInvocationCard.cjs +1 -1
  53. package/dist/components/ui/CommandInvocationCard.cjs.map +1 -1
  54. package/dist/components/ui/CommandInvocationCard.js +23 -26
  55. package/dist/components/ui/CommandInvocationCard.js.map +1 -1
  56. package/dist/components/ui/CommandPalette.cjs +1 -1
  57. package/dist/components/ui/CommandPalette.cjs.map +1 -1
  58. package/dist/components/ui/CommandPalette.d.ts +3 -3
  59. package/dist/components/ui/CommandPalette.js +75 -75
  60. package/dist/components/ui/CommandPalette.js.map +1 -1
  61. package/dist/components/ui/CommitGraph.cjs +1 -1
  62. package/dist/components/ui/CommitGraph.cjs.map +1 -1
  63. package/dist/components/ui/CommitGraph.d.ts +3 -1
  64. package/dist/components/ui/CommitGraph.js +77 -74
  65. package/dist/components/ui/CommitGraph.js.map +1 -1
  66. package/dist/components/ui/ContentInspectorDialog.cjs +1 -1
  67. package/dist/components/ui/ContentInspectorDialog.cjs.map +1 -1
  68. package/dist/components/ui/ContentInspectorDialog.js +25 -31
  69. package/dist/components/ui/ContentInspectorDialog.js.map +1 -1
  70. package/dist/components/ui/ContentPreview.cjs +2 -2
  71. package/dist/components/ui/ContentPreview.cjs.map +1 -1
  72. package/dist/components/ui/ContentPreview.js +55 -56
  73. package/dist/components/ui/ContentPreview.js.map +1 -1
  74. package/dist/components/ui/DangerZone.cjs +1 -1
  75. package/dist/components/ui/DangerZone.cjs.map +1 -1
  76. package/dist/components/ui/DangerZone.js +9 -8
  77. package/dist/components/ui/DangerZone.js.map +1 -1
  78. package/dist/components/ui/DataList.cjs +1 -1
  79. package/dist/components/ui/DataList.cjs.map +1 -1
  80. package/dist/components/ui/DataList.js +27 -25
  81. package/dist/components/ui/DataList.js.map +1 -1
  82. package/dist/components/ui/DataTable.cjs +1 -1
  83. package/dist/components/ui/DataTable.cjs.map +1 -1
  84. package/dist/components/ui/DataTable.d.ts +2 -1
  85. package/dist/components/ui/DataTable.js +141 -124
  86. package/dist/components/ui/DataTable.js.map +1 -1
  87. package/dist/components/ui/DiffViewer.cjs +1 -1
  88. package/dist/components/ui/DiffViewer.cjs.map +1 -1
  89. package/dist/components/ui/DiffViewer.js +29 -25
  90. package/dist/components/ui/DiffViewer.js.map +1 -1
  91. package/dist/components/ui/DropdownMenu.cjs +1 -1
  92. package/dist/components/ui/DropdownMenu.cjs.map +1 -1
  93. package/dist/components/ui/DropdownMenu.d.ts +1 -0
  94. package/dist/components/ui/DropdownMenu.js +41 -40
  95. package/dist/components/ui/DropdownMenu.js.map +1 -1
  96. package/dist/components/ui/EnvironmentSwitcher.cjs +1 -1
  97. package/dist/components/ui/EnvironmentSwitcher.cjs.map +1 -1
  98. package/dist/components/ui/EnvironmentSwitcher.js +26 -24
  99. package/dist/components/ui/EnvironmentSwitcher.js.map +1 -1
  100. package/dist/components/ui/EventTable.cjs +1 -1
  101. package/dist/components/ui/EventTable.cjs.map +1 -1
  102. package/dist/components/ui/EventTable.js +60 -53
  103. package/dist/components/ui/EventTable.js.map +1 -1
  104. package/dist/components/ui/FileDropzone.cjs +1 -1
  105. package/dist/components/ui/FileDropzone.cjs.map +1 -1
  106. package/dist/components/ui/FileDropzone.js +40 -42
  107. package/dist/components/ui/FileDropzone.js.map +1 -1
  108. package/dist/components/ui/FilePreview.cjs +1 -1
  109. package/dist/components/ui/FilePreview.cjs.map +1 -1
  110. package/dist/components/ui/FilePreview.js +63 -61
  111. package/dist/components/ui/FilePreview.js.map +1 -1
  112. package/dist/components/ui/FolderDropzone.cjs +1 -1
  113. package/dist/components/ui/FolderDropzone.cjs.map +1 -1
  114. package/dist/components/ui/FolderDropzone.js +114 -84
  115. package/dist/components/ui/FolderDropzone.js.map +1 -1
  116. package/dist/components/ui/ForgotPasswordForm.cjs +1 -1
  117. package/dist/components/ui/ForgotPasswordForm.cjs.map +1 -1
  118. package/dist/components/ui/ForgotPasswordForm.js +22 -21
  119. package/dist/components/ui/ForgotPasswordForm.js.map +1 -1
  120. package/dist/components/ui/FormRow.cjs +1 -1
  121. package/dist/components/ui/FormRow.cjs.map +1 -1
  122. package/dist/components/ui/FormRow.d.ts +32 -11
  123. package/dist/components/ui/FormRow.js +24 -15
  124. package/dist/components/ui/FormRow.js.map +1 -1
  125. package/dist/components/ui/InboxPage.cjs +1 -1
  126. package/dist/components/ui/InboxPage.cjs.map +1 -1
  127. package/dist/components/ui/InboxPage.d.ts +12 -3
  128. package/dist/components/ui/InboxPage.js +91 -77
  129. package/dist/components/ui/InboxPage.js.map +1 -1
  130. package/dist/components/ui/LoginForm.cjs +1 -1
  131. package/dist/components/ui/LoginForm.cjs.map +1 -1
  132. package/dist/components/ui/LoginForm.js +43 -43
  133. package/dist/components/ui/LoginForm.js.map +1 -1
  134. package/dist/components/ui/MonoValue.cjs +1 -1
  135. package/dist/components/ui/MonoValue.cjs.map +1 -1
  136. package/dist/components/ui/MonoValue.d.ts +5 -1
  137. package/dist/components/ui/MonoValue.js +17 -17
  138. package/dist/components/ui/MonoValue.js.map +1 -1
  139. package/dist/components/ui/NotificationBell.cjs +1 -1
  140. package/dist/components/ui/NotificationBell.cjs.map +1 -1
  141. package/dist/components/ui/NotificationBell.d.ts +17 -1
  142. package/dist/components/ui/NotificationBell.js +129 -75
  143. package/dist/components/ui/NotificationBell.js.map +1 -1
  144. package/dist/components/ui/NumberField.cjs +1 -1
  145. package/dist/components/ui/NumberField.cjs.map +1 -1
  146. package/dist/components/ui/NumberField.d.ts +3 -1
  147. package/dist/components/ui/NumberField.js +52 -49
  148. package/dist/components/ui/NumberField.js.map +1 -1
  149. package/dist/components/ui/ObjectBrowser.cjs +1 -1
  150. package/dist/components/ui/ObjectBrowser.cjs.map +1 -1
  151. package/dist/components/ui/ObjectBrowser.js +83 -78
  152. package/dist/components/ui/ObjectBrowser.js.map +1 -1
  153. package/dist/components/ui/PageSizeSelect.cjs +1 -1
  154. package/dist/components/ui/PageSizeSelect.cjs.map +1 -1
  155. package/dist/components/ui/PageSizeSelect.js +30 -29
  156. package/dist/components/ui/PageSizeSelect.js.map +1 -1
  157. package/dist/components/ui/Panel.cjs.map +1 -1
  158. package/dist/components/ui/Panel.d.ts +5 -2
  159. package/dist/components/ui/Panel.js.map +1 -1
  160. package/dist/components/ui/ParetoChart.cjs +1 -1
  161. package/dist/components/ui/ParetoChart.cjs.map +1 -1
  162. package/dist/components/ui/ParetoChart.js +247 -212
  163. package/dist/components/ui/ParetoChart.js.map +1 -1
  164. package/dist/components/ui/ParquetViewer.cjs +1 -1
  165. package/dist/components/ui/ParquetViewer.cjs.map +1 -1
  166. package/dist/components/ui/ParquetViewer.js +69 -74
  167. package/dist/components/ui/ParquetViewer.js.map +1 -1
  168. package/dist/components/ui/PasswordField.cjs +1 -1
  169. package/dist/components/ui/PasswordField.cjs.map +1 -1
  170. package/dist/components/ui/PasswordField.js +28 -27
  171. package/dist/components/ui/PasswordField.js.map +1 -1
  172. package/dist/components/ui/PickerField.cjs +1 -1
  173. package/dist/components/ui/PickerField.cjs.map +1 -1
  174. package/dist/components/ui/PickerField.d.ts +25 -6
  175. package/dist/components/ui/PickerField.js +20 -17
  176. package/dist/components/ui/PickerField.js.map +1 -1
  177. package/dist/components/ui/ProjectSelector.cjs +1 -1
  178. package/dist/components/ui/ProjectSelector.cjs.map +1 -1
  179. package/dist/components/ui/ProjectSelector.js +40 -37
  180. package/dist/components/ui/ProjectSelector.js.map +1 -1
  181. package/dist/components/ui/QueryAutocomplete.cjs +1 -1
  182. package/dist/components/ui/QueryAutocomplete.cjs.map +1 -1
  183. package/dist/components/ui/QueryAutocomplete.d.ts +11 -2
  184. package/dist/components/ui/QueryAutocomplete.js +146 -126
  185. package/dist/components/ui/QueryAutocomplete.js.map +1 -1
  186. package/dist/components/ui/RankBar.cjs +1 -1
  187. package/dist/components/ui/RankBar.cjs.map +1 -1
  188. package/dist/components/ui/RankBar.js +9 -9
  189. package/dist/components/ui/RankBar.js.map +1 -1
  190. package/dist/components/ui/RegisterForm.cjs +1 -1
  191. package/dist/components/ui/RegisterForm.cjs.map +1 -1
  192. package/dist/components/ui/RegisterForm.js +41 -40
  193. package/dist/components/ui/RegisterForm.js.map +1 -1
  194. package/dist/components/ui/ReplayStepStrip.cjs +1 -1
  195. package/dist/components/ui/ReplayStepStrip.cjs.map +1 -1
  196. package/dist/components/ui/ReplayStepStrip.d.ts +6 -3
  197. package/dist/components/ui/ReplayStepStrip.js +71 -61
  198. package/dist/components/ui/ReplayStepStrip.js.map +1 -1
  199. package/dist/components/ui/ResizableSidePanel.cjs +1 -1
  200. package/dist/components/ui/ResizableSidePanel.cjs.map +1 -1
  201. package/dist/components/ui/ResizableSidePanel.js +41 -40
  202. package/dist/components/ui/ResizableSidePanel.js.map +1 -1
  203. package/dist/components/ui/SavedQueryBar.cjs +1 -1
  204. package/dist/components/ui/SavedQueryBar.cjs.map +1 -1
  205. package/dist/components/ui/SavedQueryBar.d.ts +1 -1
  206. package/dist/components/ui/SavedQueryBar.js +375 -277
  207. package/dist/components/ui/SavedQueryBar.js.map +1 -1
  208. package/dist/components/ui/SearchInput.cjs +1 -1
  209. package/dist/components/ui/SearchInput.cjs.map +1 -1
  210. package/dist/components/ui/SearchInput.d.ts +5 -1
  211. package/dist/components/ui/SearchInput.js +28 -24
  212. package/dist/components/ui/SearchInput.js.map +1 -1
  213. package/dist/components/ui/Select.cjs +1 -1
  214. package/dist/components/ui/Select.cjs.map +1 -1
  215. package/dist/components/ui/Select.d.ts +3 -1
  216. package/dist/components/ui/Select.js +21 -19
  217. package/dist/components/ui/Select.js.map +1 -1
  218. package/dist/components/ui/ServiceMap.cjs +1 -1
  219. package/dist/components/ui/ServiceMap.cjs.map +1 -1
  220. package/dist/components/ui/ServiceMap.d.ts +18 -4
  221. package/dist/components/ui/ServiceMap.js +353 -228
  222. package/dist/components/ui/ServiceMap.js.map +1 -1
  223. package/dist/components/ui/Slider.cjs +1 -1
  224. package/dist/components/ui/Slider.cjs.map +1 -1
  225. package/dist/components/ui/Slider.d.ts +3 -1
  226. package/dist/components/ui/Slider.js +11 -9
  227. package/dist/components/ui/Slider.js.map +1 -1
  228. package/dist/components/ui/SparkLine.cjs +1 -1
  229. package/dist/components/ui/SparkLine.cjs.map +1 -1
  230. package/dist/components/ui/SparkLine.d.ts +5 -2
  231. package/dist/components/ui/SparkLine.js +36 -31
  232. package/dist/components/ui/SparkLine.js.map +1 -1
  233. package/dist/components/ui/Steps.cjs +1 -1
  234. package/dist/components/ui/Steps.cjs.map +1 -1
  235. package/dist/components/ui/Steps.js +25 -29
  236. package/dist/components/ui/Steps.js.map +1 -1
  237. package/dist/components/ui/TableOfContents.cjs +1 -1
  238. package/dist/components/ui/TableOfContents.cjs.map +1 -1
  239. package/dist/components/ui/TableOfContents.js +16 -19
  240. package/dist/components/ui/TableOfContents.js.map +1 -1
  241. package/dist/components/ui/Tabs.cjs +2 -2
  242. package/dist/components/ui/Tabs.cjs.map +1 -1
  243. package/dist/components/ui/Tabs.js +107 -87
  244. package/dist/components/ui/Tabs.js.map +1 -1
  245. package/dist/components/ui/Terminal.cjs +1 -1
  246. package/dist/components/ui/Terminal.cjs.map +1 -1
  247. package/dist/components/ui/Terminal.js +18 -17
  248. package/dist/components/ui/Terminal.js.map +1 -1
  249. package/dist/components/ui/TextField.cjs +1 -1
  250. package/dist/components/ui/TextField.cjs.map +1 -1
  251. package/dist/components/ui/TextField.js +6 -6
  252. package/dist/components/ui/TextField.js.map +1 -1
  253. package/dist/components/ui/ThemeToggle.cjs +1 -1
  254. package/dist/components/ui/ThemeToggle.cjs.map +1 -1
  255. package/dist/components/ui/ThemeToggle.js +15 -18
  256. package/dist/components/ui/ThemeToggle.js.map +1 -1
  257. package/dist/components/ui/TimeDisplay.cjs +1 -1
  258. package/dist/components/ui/TimeDisplay.cjs.map +1 -1
  259. package/dist/components/ui/TimeDisplay.js +12 -12
  260. package/dist/components/ui/TimeDisplay.js.map +1 -1
  261. package/dist/components/ui/TimeRangePicker.cjs +1 -1
  262. package/dist/components/ui/TimeRangePicker.cjs.map +1 -1
  263. package/dist/components/ui/TimeRangePicker.d.ts +12 -1
  264. package/dist/components/ui/TimeRangePicker.js +136 -113
  265. package/dist/components/ui/TimeRangePicker.js.map +1 -1
  266. package/dist/components/ui/Timeline.cjs.map +1 -1
  267. package/dist/components/ui/Timeline.d.ts +4 -4
  268. package/dist/components/ui/Timeline.js.map +1 -1
  269. package/dist/components/ui/TimelineChart.cjs +2 -2
  270. package/dist/components/ui/TimelineChart.cjs.map +1 -1
  271. package/dist/components/ui/TimelineChart.d.ts +1 -0
  272. package/dist/components/ui/TimelineChart.js +131 -137
  273. package/dist/components/ui/TimelineChart.js.map +1 -1
  274. package/dist/components/ui/TraceSpanInspector.cjs +1 -1
  275. package/dist/components/ui/TraceSpanInspector.cjs.map +1 -1
  276. package/dist/components/ui/TraceSpanInspector.js +43 -46
  277. package/dist/components/ui/TraceSpanInspector.js.map +1 -1
  278. package/dist/components/ui/TraceTree.cjs +1 -1
  279. package/dist/components/ui/TraceTree.cjs.map +1 -1
  280. package/dist/components/ui/TraceTree.d.ts +5 -1
  281. package/dist/components/ui/TraceTree.js +98 -97
  282. package/dist/components/ui/TraceTree.js.map +1 -1
  283. package/dist/components/ui/TrajectoryStep.cjs +2 -1
  284. package/dist/components/ui/TrajectoryStep.cjs.map +1 -1
  285. package/dist/components/ui/TrajectoryStep.js +64 -43
  286. package/dist/components/ui/TrajectoryStep.js.map +1 -1
  287. package/dist/components/ui/UploadQueue.cjs +1 -1
  288. package/dist/components/ui/UploadQueue.cjs.map +1 -1
  289. package/dist/components/ui/UploadQueue.js +59 -70
  290. package/dist/components/ui/UploadQueue.js.map +1 -1
  291. package/dist/components/ui/authValidation.cjs +1 -1
  292. package/dist/components/ui/authValidation.cjs.map +1 -1
  293. package/dist/components/ui/authValidation.d.ts +2 -2
  294. package/dist/components/ui/authValidation.js +4 -5
  295. package/dist/components/ui/authValidation.js.map +1 -1
  296. package/dist/components/ui/classifyContent.cjs +3 -3
  297. package/dist/components/ui/classifyContent.cjs.map +1 -1
  298. package/dist/components/ui/classifyContent.d.ts +2 -1
  299. package/dist/components/ui/classifyContent.js +52 -54
  300. package/dist/components/ui/classifyContent.js.map +1 -1
  301. package/dist/components/ui/relativeTime.cjs +1 -1
  302. package/dist/components/ui/relativeTime.cjs.map +1 -1
  303. package/dist/components/ui/relativeTime.d.ts +5 -3
  304. package/dist/components/ui/relativeTime.js +15 -6
  305. package/dist/components/ui/relativeTime.js.map +1 -1
  306. package/dist/components/ui/useColumnWidths.cjs +1 -1
  307. package/dist/components/ui/useColumnWidths.cjs.map +1 -1
  308. package/dist/components/ui/useColumnWidths.d.ts +6 -1
  309. package/dist/components/ui/useColumnWidths.js +139 -123
  310. package/dist/components/ui/useColumnWidths.js.map +1 -1
  311. package/dist/hooks/popoverOverflow.cjs +2 -0
  312. package/dist/hooks/popoverOverflow.cjs.map +1 -0
  313. package/dist/hooks/popoverOverflow.d.ts +8 -0
  314. package/dist/hooks/popoverOverflow.js +9 -0
  315. package/dist/hooks/popoverOverflow.js.map +1 -0
  316. package/dist/hooks/useDialogPopover.cjs +2 -0
  317. package/dist/hooks/useDialogPopover.cjs.map +1 -0
  318. package/dist/hooks/useDialogPopover.d.ts +23 -0
  319. package/dist/hooks/useDialogPopover.js +48 -0
  320. package/dist/hooks/useDialogPopover.js.map +1 -0
  321. package/dist/hooks/useMenuPopover.cjs +1 -1
  322. package/dist/hooks/useMenuPopover.cjs.map +1 -1
  323. package/dist/hooks/useMenuPopover.d.ts +0 -8
  324. package/dist/hooks/useMenuPopover.js +17 -22
  325. package/dist/hooks/useMenuPopover.js.map +1 -1
  326. package/dist/hooks/useSavedQueries.cjs +1 -1
  327. package/dist/hooks/useSavedQueries.cjs.map +1 -1
  328. package/dist/hooks/useSavedQueries.js +29 -28
  329. package/dist/hooks/useSavedQueries.js.map +1 -1
  330. package/dist/index.d.ts +1 -1
  331. package/dist/layouts/shell/AegisShell.cjs +1 -1
  332. package/dist/layouts/shell/AegisShell.cjs.map +1 -1
  333. package/dist/layouts/shell/AegisShell.js +58 -59
  334. package/dist/layouts/shell/AegisShell.js.map +1 -1
  335. package/dist/layouts/shell/AppSwitcher.cjs +1 -1
  336. package/dist/layouts/shell/AppSwitcher.cjs.map +1 -1
  337. package/dist/layouts/shell/AppSwitcher.js +53 -36
  338. package/dist/layouts/shell/AppSwitcher.js.map +1 -1
  339. package/dist/layouts/shell/AuthRequiredCard.cjs +1 -1
  340. package/dist/layouts/shell/AuthRequiredCard.cjs.map +1 -1
  341. package/dist/layouts/shell/AuthRequiredCard.js +24 -22
  342. package/dist/layouts/shell/AuthRequiredCard.js.map +1 -1
  343. package/dist/layouts/shell/RouteErrorBoundary.cjs +1 -1
  344. package/dist/layouts/shell/RouteErrorBoundary.cjs.map +1 -1
  345. package/dist/layouts/shell/RouteErrorBoundary.d.ts +4 -1
  346. package/dist/layouts/shell/RouteErrorBoundary.js +15 -10
  347. package/dist/layouts/shell/RouteErrorBoundary.js.map +1 -1
  348. package/dist/layouts/shell/ShellInboxPage.cjs +1 -1
  349. package/dist/layouts/shell/ShellInboxPage.cjs.map +1 -1
  350. package/dist/layouts/shell/ShellInboxPage.js +17 -16
  351. package/dist/layouts/shell/ShellInboxPage.js.map +1 -1
  352. package/dist/layouts/shell/ShellNotificationBell.cjs +1 -1
  353. package/dist/layouts/shell/ShellNotificationBell.cjs.map +1 -1
  354. package/dist/layouts/shell/ShellNotificationBell.js +20 -14
  355. package/dist/layouts/shell/ShellNotificationBell.js.map +1 -1
  356. package/dist/layouts/shell/TopHeader.cjs +1 -1
  357. package/dist/layouts/shell/TopHeader.cjs.map +1 -1
  358. package/dist/layouts/shell/TopHeader.js +74 -74
  359. package/dist/layouts/shell/TopHeader.js.map +1 -1
  360. package/dist/layouts/shell/useShellUser.cjs +1 -1
  361. package/dist/layouts/shell/useShellUser.cjs.map +1 -1
  362. package/dist/layouts/shell/useShellUser.js +15 -13
  363. package/dist/layouts/shell/useShellUser.js.map +1 -1
  364. package/dist/lib/breakAtSeparators.cjs +2 -0
  365. package/dist/lib/breakAtSeparators.cjs.map +1 -0
  366. package/dist/lib/breakAtSeparators.d.ts +6 -0
  367. package/dist/lib/breakAtSeparators.js +10 -0
  368. package/dist/lib/breakAtSeparators.js.map +1 -0
  369. package/dist/lib/chart.cjs +1 -1
  370. package/dist/lib/chart.cjs.map +1 -1
  371. package/dist/lib/chart.d.ts +5 -7
  372. package/dist/lib/chart.js +49 -34
  373. package/dist/lib/chart.js.map +1 -1
  374. package/dist/lib/timeRange.cjs +1 -1
  375. package/dist/lib/timeRange.cjs.map +1 -1
  376. package/dist/lib/timeRange.d.ts +14 -4
  377. package/dist/lib/timeRange.js +41 -40
  378. package/dist/lib/timeRange.js.map +1 -1
  379. package/dist/locale/strings.cjs +1 -1
  380. package/dist/locale/strings.cjs.map +1 -1
  381. package/dist/locale/strings.d.ts +247 -2
  382. package/dist/locale/strings.js +562 -37
  383. package/dist/locale/strings.js.map +1 -1
  384. package/dist/notifications/notificationContext.cjs.map +1 -1
  385. package/dist/notifications/notificationContext.d.ts +12 -2
  386. package/dist/notifications/notificationContext.js.map +1 -1
  387. package/dist/style.css +1 -1
  388. package/dist/theme/antdTheme.cjs +1 -1
  389. package/dist/theme/antdTheme.cjs.map +1 -1
  390. package/dist/theme/antdTheme.js +52 -29
  391. package/dist/theme/antdTheme.js.map +1 -1
  392. package/dist/transports/agentm/AgentmChannelProvider.cjs +1 -1
  393. package/dist/transports/agentm/AgentmChannelProvider.cjs.map +1 -1
  394. package/dist/transports/agentm/AgentmChannelProvider.js +66 -61
  395. package/dist/transports/agentm/AgentmChannelProvider.js.map +1 -1
  396. package/package.json +1 -1
@@ -1,369 +1,404 @@
1
- import { jsx as o, jsxs as me } from "react/jsx-runtime";
2
- import { useId as ke, useRef as Ae, useMemo as Le } from "react";
3
- import { useElementWidth as Ne } from "../../hooks/useElementWidth.js";
4
- import { zeroAnchoredDomain as xe, staggeredProgress as Z, chartColorValue as Ee } from "../../lib/chart.js";
5
- import { ChartLegend as Ie } from "./ChartLegend.js";
6
- import { EmptyState as we } from "./EmptyState.js";
1
+ import { jsx as l, jsxs as fe } from "react/jsx-runtime";
2
+ import { useId as Ne, useRef as Ee, useMemo as Me } from "react";
3
+ import { useElementWidth as Ie } from "../../hooks/useElementWidth.js";
4
+ import { zeroAnchoredDomain as _e, staggeredProgress as ae, chartColorValue as we } from "../../lib/chart.js";
5
+ import { ChartLegend as Be } from "./ChartLegend.js";
6
+ import { EmptyState as Pe } from "./EmptyState.js";
7
7
  /* empty css */
8
- import { useStrings as Me } from "../../locale/useStrings.js";
9
- const Pe = 320, de = 220, Be = 56, $e = 16, He = 28, Se = 44, B = 5, $ = 8, he = 4, Ce = 6.2, Re = 11, X = 14, Te = 520;
10
- function K(r, m, i) {
11
- return i === "lower" ? r < m : r > m;
8
+ import { useStrings as $e } from "../../locale/useStrings.js";
9
+ const He = 320, pe = 220, Se = 56, Ce = 16, Te = 28, De = 44, S = 5, A = 8, ue = 4, Re = 6.2, je = 11, L = 14, z = L / 4, Oe = 520;
10
+ function q(t, g, y) {
11
+ return y === "lower" ? t < g : t > g;
12
12
  }
13
- function je(r) {
14
- return [...r].reduce(
15
- (m, i) => m + ((i.codePointAt(0) ?? 0) > 255 ? Re : Ce),
13
+ function ve(t) {
14
+ return [...t].reduce(
15
+ (g, y) => g + ((y.codePointAt(0) ?? 0) > 255 ? je : Re),
16
16
  0
17
17
  );
18
18
  }
19
- function De(r, m, i) {
20
- const b = [], u = /* @__PURE__ */ new Map(), v = B + $ / 2;
21
- for (const s of r) {
22
- const h = je(s.label), k = [
23
- { x: s.x + v, y: s.y + X / 3, anchor: "start" },
24
- { x: s.x - v, y: s.y + X / 3, anchor: "end" },
25
- { x: s.x - h / 2, y: s.y - v, anchor: "start" },
26
- { x: s.x - h / 2, y: s.y + v + X, anchor: "start" }
27
- ], A = (y) => {
28
- const g = y.anchor === "end" ? y.x - h : y.x;
19
+ function Ge([t, g], y) {
20
+ const _ = g.x - t.x, x = g.y - t.y;
21
+ let p = 0, u = 1;
22
+ for (const [s, o] of [
23
+ [-_, t.x - y.l],
24
+ [_, y.r - t.x],
25
+ [-x, t.y - y.t],
26
+ [x, y.b - t.y]
27
+ ])
28
+ if (s === 0) {
29
+ if (o < 0)
30
+ return !1;
31
+ } else s < 0 ? p = Math.max(p, o / s) : u = Math.min(u, o / s);
32
+ return p <= u;
33
+ }
34
+ function We(t, g, y, _, x) {
35
+ const p = [..._], u = /* @__PURE__ */ new Map(), s = S + A / 2;
36
+ for (const o of t) {
37
+ const N = ve(o.label), v = [
38
+ { x: o.x + s, y: o.y + L / 3, anchor: "start" },
39
+ { x: o.x - s, y: o.y + L / 3, anchor: "end" },
40
+ { x: o.x - N / 2, y: o.y - s, anchor: "start" },
41
+ { x: o.x - N / 2, y: o.y + s + L, anchor: "start" },
42
+ { x: o.x - s, y: o.y - s, anchor: "end" },
43
+ { x: o.x + s, y: o.y + s + L, anchor: "start" },
44
+ { x: o.x + s, y: o.y - s, anchor: "start" },
45
+ { x: o.x - s, y: o.y + s + L, anchor: "end" }
46
+ ], b = (a) => {
47
+ const m = a.anchor === "end" ? a.x - N : a.x;
29
48
  return {
30
- l: g,
31
- r: g + h,
32
- t: y.y - X,
33
- b: y.y
49
+ l: m,
50
+ r: m + N,
51
+ t: a.y - L + z,
52
+ b: a.y + z
34
53
  };
35
- }, L = (y) => {
36
- const { l: g, r: _, t: n, b: E } = A(y);
37
- return g >= i.left && _ <= i.right && n >= i.top && E <= i.bottom;
38
- }, H = (y) => {
39
- const { l: g, r: _, t: n, b: E } = A(y);
40
- return L(y) && b.every(
41
- (c) => _ < c.l || g > c.r || E < c.t || n > c.b
42
- ) && m.every(
43
- (c) => c.key === s.key || c.x + B < g || c.x - B > _ || c.y + B < n || c.y - B > E
54
+ }, w = (a) => {
55
+ const { l: m, r: E, t: B, b: P } = b(a);
56
+ return m >= x.left && E <= x.right && B >= x.top && P <= x.bottom;
57
+ }, j = (a) => {
58
+ const { l: m, r: E, t: B, b: P } = b(a);
59
+ return w(a) && p.every(
60
+ (n) => E < n.l || m > n.r || P < n.t || B > n.b
61
+ ) && g.every(
62
+ (n) => n.key === o.key || n.x + S < m || n.x - S > E || n.y + S < B || n.y - S > P
44
63
  );
45
- }, N = k.find(H) ?? k.find(L) ?? k[s.x > (i.left + i.right) / 2 ? 1 : 0];
46
- b.push(A(N)), u.set(s.key, N);
64
+ }, O = (a) => j(a) && y.every((m) => !Ge(m, b(a))), C = v.find(O) ?? v.find(j) ?? v.find(w) ?? v[o.x > (x.left + x.right) / 2 ? 1 : 0];
65
+ p.push(b(C)), u.set(o.key, C);
47
66
  }
48
67
  return u;
49
68
  }
50
- function Fe({
51
- points: r,
52
- xLabel: m,
53
- yLabel: i,
54
- xDirection: b = "lower",
55
- yDirection: u = "higher",
56
- formatX: v = String,
57
- formatY: s = String,
58
- xScale: h = "linear",
59
- xDomain: k,
60
- yDomain: A,
61
- xTicks: L,
62
- yTicks: H,
63
- labels: N = "front",
64
- fadeDominated: y = !0,
65
- highlightKeys: g,
66
- maxHeight: _ = Pe,
67
- onSelect: n,
68
- legend: E,
69
- empty: c,
70
- emptyTitle: _e,
71
- emptyDescription: fe,
72
- progress: f,
73
- frontProgress: ee,
74
- className: pe
69
+ function Je({
70
+ points: t,
71
+ xLabel: g,
72
+ yLabel: y,
73
+ xDirection: _ = "lower",
74
+ yDirection: x = "higher",
75
+ formatX: p = String,
76
+ formatY: u = String,
77
+ xScale: s = "linear",
78
+ xDomain: o,
79
+ yDomain: N,
80
+ xTicks: v,
81
+ yTicks: b,
82
+ labels: w = "front",
83
+ fadeDominated: j = !0,
84
+ highlightKeys: O,
85
+ maxHeight: C = He,
86
+ onSelect: a,
87
+ legend: m,
88
+ empty: E,
89
+ emptyTitle: B,
90
+ emptyDescription: P,
91
+ progress: n,
92
+ frontProgress: se,
93
+ className: be
75
94
  }) {
76
- const te = Me(), re = ke(), j = Ae(null), p = Ne(j), V = [
95
+ const le = $e(), ne = Ne(), G = Ee(null), M = Ie(G), F = [
77
96
  "aegis-pareto",
78
- f === void 0 && ee === void 0 ? "" : "aegis-pareto--scroll",
79
- pe ?? ""
80
- ].filter(Boolean).join(" "), x = Le(() => {
81
- if (r.length === 0 || p === 0)
97
+ n === void 0 && se === void 0 ? "" : "aegis-pareto--scroll",
98
+ be ?? ""
99
+ ].filter(Boolean).join(" "), d = Me(() => {
100
+ if (t.length === 0 || M === 0)
82
101
  return null;
83
102
  const e = Math.round(
84
- Math.min(_, Math.max(de, p / 2))
85
- ), a = r.map((t) => t.x), P = Math.min(...a), G = Math.max(...a), [F, ie] = k ?? (h === "log" ? (
103
+ Math.min(C, Math.max(pe, M / 2))
104
+ ), i = t.map((r) => r.x), f = Math.min(...i), K = Math.max(...i), [Z, ge] = o ?? (s === "log" ? (
86
105
  // One value has no span to divide, so it sits mid-axis.
87
106
  [
88
- G > P ? P : P / 2,
89
- G > P ? G : G * 2
107
+ K > f ? f : f / 2,
108
+ K > f ? K : K * 2
90
109
  ]
91
- ) : xe(a)), [R, U] = A ?? xe(r.map((t) => t.y)), O = h === "log" ? Math.log10 : (t) => t, T = Be, q = p - $e, ce = He, J = e - Se, W = (t) => T + (O(t) - O(F)) / (O(ie) - O(F)) * (q - T), Q = (t) => J - (t - R) / (U - R) * (J - ce), ye = r.filter(
92
- (t) => !r.some(
93
- (l) => l.key !== t.key && (K(l.x, t.x, b) || l.x === t.x) && (K(l.y, t.y, u) || l.y === t.y) && (K(l.x, t.x, b) || K(l.y, t.y, u))
110
+ ) : _e(i)), [D, ee] = N ?? _e(t.map((r) => r.y)), V = s === "log" ? Math.log10 : (r) => r, R = Se, te = M - Ce, me = Te, re = e - De, Y = (r) => R + (V(r) - V(Z)) / (V(ge) - V(Z)) * (te - R), oe = (r) => re - (r - D) / (ee - D) * (re - me), he = t.filter(
111
+ (r) => !t.some(
112
+ (c) => c.key !== r.key && (q(c.x, r.x, _) || c.x === r.x) && (q(c.y, r.y, x) || c.y === r.y) && (q(c.x, r.x, _) || q(c.y, r.y, x))
94
113
  )
95
- ).sort((t, l) => t.x - l.x), ge = Array.from(
96
- { length: he },
97
- (t, l) => (l + 1) / he
98
- ), ve = new Map(
99
- [...r].sort((t, l) => W(t.x) - W(l.x)).map((t, l) => [t.key, l])
114
+ ).sort((r, c) => r.x - c.x), de = Array.from(
115
+ { length: ue },
116
+ (r, c) => (c + 1) / ue
117
+ ), Le = new Map(
118
+ [...t].sort((r, c) => Y(r.x) - Y(c.x)).map((r, c) => [r.key, c])
100
119
  );
101
120
  return {
102
121
  height: e,
103
- order: ve,
104
- left: T,
105
- right: q,
106
- top: ce,
107
- bottom: J,
108
- sx: W,
109
- sy: Q,
110
- front: ye,
111
- frontKeys: new Set(ye.map((t) => t.key)),
122
+ order: Le,
123
+ left: R,
124
+ right: te,
125
+ top: me,
126
+ bottom: re,
127
+ sx: Y,
128
+ sy: oe,
129
+ front: he,
130
+ frontKeys: new Set(he.map((r) => r.key)),
112
131
  // Even shares of the plot, which on a log axis are even ratios.
113
- gridX: L?.map(W) ?? ge.map((t) => T + (q - T) * t),
114
- gridY: H?.map(Q) ?? ge.map((t) => Q(R + (U - R) * t)),
115
- xLabels: L ?? [F, ie],
116
- yLabels: H ?? [R, U]
132
+ gridX: v?.map(Y) ?? de.map((r) => R + (te - R) * r),
133
+ gridY: b?.map(oe) ?? de.map((r) => oe(D + (ee - D) * r)),
134
+ xLabels: v ?? [Z, ge],
135
+ yLabels: b ?? [D, ee]
117
136
  };
118
137
  }, [
119
- r,
120
- p,
138
+ t,
139
+ M,
140
+ _,
141
+ x,
142
+ s,
143
+ o,
144
+ N,
145
+ v,
121
146
  b,
122
- u,
123
- h,
124
- k,
125
- A,
126
- L,
127
- H,
128
- _
147
+ C
129
148
  ]);
130
- if (r.length === 0)
131
- return /* @__PURE__ */ o("div", { ref: j, className: V, children: c === void 0 ? /* @__PURE__ */ o(
132
- we,
149
+ if (t.length === 0)
150
+ return /* @__PURE__ */ l("div", { ref: G, className: F, children: E === void 0 ? /* @__PURE__ */ l(
151
+ Pe,
133
152
  {
134
- title: _e ?? te.paretoEmptyTitle,
135
- description: fe
153
+ title: B ?? le.paretoEmptyTitle,
154
+ description: P
136
155
  }
137
- ) : /* @__PURE__ */ o(
156
+ ) : /* @__PURE__ */ l(
138
157
  "div",
139
158
  {
140
159
  className: "aegis-pareto__empty",
141
160
  style: {
142
- "--aegis-pareto-min-height": `${de.toString()}px`
161
+ "--aegis-pareto-min-height": `${pe.toString()}px`
143
162
  },
144
- children: c
163
+ children: E
145
164
  }
146
165
  ) });
147
- if (!x)
148
- return /* @__PURE__ */ o("div", { ref: j, className: V });
149
- const { height: D, left: d, right: I, top: Y, bottom: w, sx: M, sy: S, front: oe, frontKeys: ae } = x, z = g === void 0 ? null : new Set(g), le = (e) => z !== null && !z.has(e), se = N === "all" && p >= Te, be = De(
150
- r.filter(
151
- (e) => se || ae.has(e.key) || (z?.has(e.key) ?? !1)
166
+ if (!d)
167
+ return /* @__PURE__ */ l("div", { ref: G, className: F });
168
+ const { height: W, left: h, right: $, top: U, bottom: H, sx: k, sy: I, front: X, frontKeys: ie } = d, J = O === void 0 ? null : new Set(O), ce = (e) => J !== null && !J.has(e), Q = U - A * 2, ye = w === "all" && M >= Oe, ke = We(
169
+ t.filter(
170
+ (e) => ye || ie.has(e.key) || (J?.has(e.key) ?? !1)
152
171
  ).map((e) => ({
153
172
  key: e.key,
154
173
  label: e.label,
155
- x: M(e.x),
156
- y: S(e.y)
174
+ x: k(e.x),
175
+ y: I(e.y)
157
176
  })),
158
- r.map((e) => ({
177
+ t.map((e) => ({
159
178
  key: e.key,
160
- x: M(e.x),
161
- y: S(e.y)
179
+ x: k(e.x),
180
+ y: I(e.y)
162
181
  })),
182
+ X.slice(1).map((e, i) => {
183
+ const f = X[i];
184
+ return [
185
+ { x: k(f.x), y: I(f.y) },
186
+ { x: k(e.x), y: I(e.y) }
187
+ ];
188
+ }),
189
+ // The y axis's title, above the plot.
190
+ [
191
+ {
192
+ l: h - A,
193
+ r: h - A + ve(y),
194
+ t: Q - L + z,
195
+ b: Q + z
196
+ }
197
+ ],
163
198
  // A label may run up into the space above the plot.
164
- { left: d, right: I, top: 0, bottom: w }
165
- ), ne = E?.map((e) => ({
199
+ { left: h, right: $, top: 0, bottom: H }
200
+ ), xe = m?.map((e) => ({
166
201
  key: e.key,
167
202
  label: e.label,
168
203
  color: e.color ?? "var(--bg-inverted)"
169
- })) ?? (N === "all" && !se ? r.map((e) => ({
204
+ })) ?? (w === "all" && !ye ? t.map((e) => ({
170
205
  key: e.key,
171
206
  label: e.label,
172
207
  color: e.color ?? "var(--bg-inverted)"
173
- })) : []), C = ee ?? (f === void 0 ? void 0 : Z(f, r.length, r.length + 1)), ue = (e, a) => {
174
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), n?.(a));
208
+ })) : []), T = se ?? (n === void 0 ? void 0 : ae(n, t.length, t.length + 1)), Ae = (e, i) => {
209
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), a?.(i));
175
210
  };
176
- return /* @__PURE__ */ me("div", { ref: j, className: V, children: [
177
- /* @__PURE__ */ me(
211
+ return /* @__PURE__ */ fe("div", { ref: G, className: F, children: [
212
+ /* @__PURE__ */ fe(
178
213
  "svg",
179
214
  {
180
215
  className: "aegis-pareto__svg",
181
- width: p,
182
- height: D,
183
- viewBox: `0 0 ${p.toString()} ${D.toString()}`,
184
- role: n ? "group" : "img",
185
- "aria-label": te.paretoChartLabel(m, i),
216
+ width: M,
217
+ height: W,
218
+ viewBox: `0 0 ${M.toString()} ${W.toString()}`,
219
+ role: a ? "group" : "img",
220
+ "aria-label": le.paretoChartLabel(g, y),
186
221
  style: {
187
- "--aegis-pareto-count": r.length,
188
- ...C === void 0 ? {} : { "--aegis-pareto-front-progress": C }
222
+ "--aegis-pareto-count": t.length,
223
+ ...T === void 0 ? {} : { "--aegis-pareto-front-progress": T }
189
224
  },
190
225
  children: [
191
- x.gridY.map((e) => /* @__PURE__ */ o(
226
+ d.gridY.map((e) => /* @__PURE__ */ l(
192
227
  "line",
193
228
  {
194
229
  className: "aegis-pareto__grid",
195
- x1: d,
230
+ x1: h,
196
231
  y1: e,
197
- x2: I,
232
+ x2: $,
198
233
  y2: e
199
234
  },
200
235
  `gy-${e.toString()}`
201
236
  )),
202
- x.gridX.map((e) => /* @__PURE__ */ o(
237
+ d.gridX.map((e) => /* @__PURE__ */ l(
203
238
  "line",
204
239
  {
205
240
  className: "aegis-pareto__grid",
206
241
  x1: e,
207
- y1: Y,
242
+ y1: U,
208
243
  x2: e,
209
- y2: w
244
+ y2: H
210
245
  },
211
246
  `gx-${e.toString()}`
212
247
  )),
213
- /* @__PURE__ */ o(
248
+ /* @__PURE__ */ l(
214
249
  "line",
215
250
  {
216
251
  className: "aegis-pareto__axis",
217
- x1: d,
218
- y1: w,
219
- x2: I,
220
- y2: w
252
+ x1: h,
253
+ y1: H,
254
+ x2: $,
255
+ y2: H
221
256
  }
222
257
  ),
223
- /* @__PURE__ */ o(
258
+ /* @__PURE__ */ l(
224
259
  "line",
225
260
  {
226
261
  className: "aegis-pareto__axis",
227
- x1: d,
228
- y1: Y,
229
- x2: d,
230
- y2: w
262
+ x1: h,
263
+ y1: U,
264
+ x2: h,
265
+ y2: H
231
266
  }
232
267
  ),
233
- C !== void 0 && /* @__PURE__ */ o("clipPath", { id: re, children: /* @__PURE__ */ o(
268
+ T !== void 0 && /* @__PURE__ */ l("clipPath", { id: ne, children: /* @__PURE__ */ l(
234
269
  "rect",
235
270
  {
236
- x: d,
271
+ x: h,
237
272
  y: 0,
238
- width: (I - d) * C,
239
- height: D
273
+ width: ($ - h) * T,
274
+ height: W
240
275
  }
241
276
  ) }),
242
- oe.length > 1 && /* @__PURE__ */ o(
277
+ X.length > 1 && /* @__PURE__ */ l(
243
278
  "polyline",
244
279
  {
245
280
  className: "aegis-pareto__front",
246
- clipPath: C === void 0 ? void 0 : `url(#${re})`,
247
- points: oe.map(
248
- (e) => `${M(e.x).toString()},${S(e.y).toString()}`
281
+ clipPath: T === void 0 ? void 0 : `url(#${ne})`,
282
+ points: X.map(
283
+ (e) => `${k(e.x).toString()},${I(e.y).toString()}`
249
284
  ).join(" ")
250
285
  }
251
286
  ),
252
- r.map((e, a) => /* @__PURE__ */ o(
287
+ t.map((e, i) => /* @__PURE__ */ l(
253
288
  "circle",
254
289
  {
255
290
  className: [
256
291
  "aegis-pareto__point",
257
- y && !ae.has(e.key) ? "aegis-pareto__point--dominated" : "",
258
- le(e.key) ? "aegis-pareto__point--dimmed" : "",
259
- n ? "aegis-pareto__point--interactive" : ""
292
+ j && !ie.has(e.key) ? "aegis-pareto__point--dominated" : "",
293
+ ce(e.key) ? "aegis-pareto__point--dimmed" : "",
294
+ a ? "aegis-pareto__point--interactive" : ""
260
295
  ].filter(Boolean).join(" "),
261
296
  style: {
262
- fill: e.color === void 0 ? void 0 : Ee(e.color),
263
- "--aegis-pareto-index": a,
264
- "--aegis-pareto-point-progress": f === void 0 ? 1 : Z(
265
- f,
266
- x.order.get(e.key) ?? a,
267
- r.length + 1
297
+ fill: e.color === void 0 ? void 0 : we(e.color),
298
+ "--aegis-pareto-index": i,
299
+ "--aegis-pareto-point-progress": n === void 0 ? 1 : ae(
300
+ n,
301
+ d.order.get(e.key) ?? i,
302
+ t.length + 1
268
303
  )
269
304
  },
270
- cx: M(e.x),
271
- cy: S(e.y),
272
- r: B,
273
- role: n ? "button" : void 0,
274
- tabIndex: n ? 0 : void 0,
275
- "aria-label": n ? e.label : void 0,
276
- onClick: n ? () => {
277
- n(e.key);
305
+ cx: k(e.x),
306
+ cy: I(e.y),
307
+ r: S,
308
+ role: a ? "button" : void 0,
309
+ tabIndex: a ? 0 : void 0,
310
+ "aria-label": a ? e.label : void 0,
311
+ onClick: a ? () => {
312
+ a(e.key);
278
313
  } : void 0,
279
- onKeyDown: n ? (P) => {
280
- ue(P, e.key);
314
+ onKeyDown: a ? (f) => {
315
+ Ae(f, e.key);
281
316
  } : void 0,
282
- children: /* @__PURE__ */ o("title", { children: e.label })
317
+ children: /* @__PURE__ */ l("title", { children: e.label })
283
318
  },
284
319
  e.key
285
320
  )),
286
- r.map((e) => {
287
- const a = be.get(e.key);
288
- return a === void 0 ? null : /* @__PURE__ */ o(
321
+ t.map((e) => {
322
+ const i = ke.get(e.key);
323
+ return i === void 0 ? null : /* @__PURE__ */ l(
289
324
  "text",
290
325
  {
291
326
  className: [
292
327
  "aegis-pareto__point-label",
293
- le(e.key) ? "aegis-pareto__point-label--dimmed" : ""
328
+ ce(e.key) ? "aegis-pareto__point-label--dimmed" : ""
294
329
  ].filter(Boolean).join(" "),
295
- style: N === "all" ? {
296
- "--aegis-pareto-front-progress": f === void 0 ? 1 : Z(
297
- f,
298
- x.order.get(e.key) ?? 0,
299
- r.length + 1
330
+ style: w === "all" ? {
331
+ "--aegis-pareto-front-progress": n === void 0 ? 1 : ae(
332
+ n,
333
+ d.order.get(e.key) ?? 0,
334
+ t.length + 1
300
335
  )
301
336
  } : void 0,
302
- x: a.x,
303
- y: a.y,
304
- textAnchor: a.anchor,
337
+ x: i.x,
338
+ y: i.y,
339
+ textAnchor: i.anchor,
305
340
  children: e.label
306
341
  },
307
342
  `label-${e.key}`
308
343
  );
309
344
  }),
310
- x.xLabels.map((e, a) => /* @__PURE__ */ o(
345
+ d.xLabels.map((e, i) => /* @__PURE__ */ l(
311
346
  "text",
312
347
  {
313
348
  className: "aegis-pareto__tick",
314
- x: M(e),
315
- y: w + $ * 2,
316
- textAnchor: a === x.xLabels.length - 1 && M(e) >= I - 1 ? "end" : "middle",
317
- children: v(e)
349
+ x: k(e),
350
+ y: H + A * 2,
351
+ textAnchor: i === d.xLabels.length - 1 && k(e) >= $ - 1 ? "end" : "middle",
352
+ children: p(e)
318
353
  },
319
354
  `x-${e.toString()}`
320
355
  )),
321
- x.yLabels.map((e) => /* @__PURE__ */ o(
356
+ d.yLabels.map((e) => /* @__PURE__ */ l(
322
357
  "text",
323
358
  {
324
359
  className: "aegis-pareto__tick",
325
- x: d - $,
326
- y: S(e),
360
+ x: h - A,
361
+ y: I(e),
327
362
  textAnchor: "end",
328
363
  dominantBaseline: "middle",
329
- children: s(e)
364
+ children: u(e)
330
365
  },
331
366
  `y-${e.toString()}`
332
367
  )),
333
- /* @__PURE__ */ o(
368
+ /* @__PURE__ */ l(
334
369
  "text",
335
370
  {
336
371
  className: "aegis-pareto__axis-label",
337
- x: I,
338
- y: D - $,
372
+ x: $,
373
+ y: W - A,
339
374
  textAnchor: "end",
340
- children: m
375
+ children: g
341
376
  }
342
377
  ),
343
- /* @__PURE__ */ o(
378
+ /* @__PURE__ */ l(
344
379
  "text",
345
380
  {
346
381
  className: "aegis-pareto__axis-label",
347
- x: d - $,
348
- y: Y - $ * 2,
382
+ x: h - A,
383
+ y: Q,
349
384
  textAnchor: "start",
350
- children: i
385
+ children: y
351
386
  }
352
387
  )
353
388
  ]
354
389
  }
355
390
  ),
356
- ne.length > 0 ? /* @__PURE__ */ o(
357
- Ie,
391
+ xe.length > 0 ? /* @__PURE__ */ l(
392
+ Be,
358
393
  {
359
394
  className: "aegis-pareto__legend",
360
395
  shape: "dot",
361
- items: ne
396
+ items: xe
362
397
  }
363
398
  ) : null
364
399
  ] });
365
400
  }
366
401
  export {
367
- Fe as ParetoChart
402
+ Je as ParetoChart
368
403
  };
369
404
  //# sourceMappingURL=ParetoChart.js.map