@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.
- package/dist/agent/ask/AskPanel.cjs +1 -1
- package/dist/agent/ask/AskPanel.cjs.map +1 -1
- package/dist/agent/ask/AskPanel.d.ts +5 -0
- package/dist/agent/ask/AskPanel.js +105 -98
- package/dist/agent/ask/AskPanel.js.map +1 -1
- package/dist/commands/commandContext.cjs.map +1 -1
- package/dist/commands/commandContext.d.ts +4 -1
- package/dist/commands/commandContext.js.map +1 -1
- package/dist/components/ui/AgentPanel.cjs +1 -1
- package/dist/components/ui/AgentPanel.cjs.map +1 -1
- package/dist/components/ui/AgentPanel.js +15 -14
- package/dist/components/ui/AgentPanel.js.map +1 -1
- package/dist/components/ui/Avatar.cjs +1 -1
- package/dist/components/ui/Avatar.cjs.map +1 -1
- package/dist/components/ui/Avatar.js +21 -19
- package/dist/components/ui/Avatar.js.map +1 -1
- package/dist/components/ui/BlastRadiusBar.cjs +1 -1
- package/dist/components/ui/BlastRadiusBar.cjs.map +1 -1
- package/dist/components/ui/BlastRadiusBar.d.ts +16 -4
- package/dist/components/ui/BlastRadiusBar.js +27 -23
- package/dist/components/ui/BlastRadiusBar.js.map +1 -1
- package/dist/components/ui/Button.cjs.map +1 -1
- package/dist/components/ui/Button.d.ts +4 -2
- package/dist/components/ui/Button.js.map +1 -1
- package/dist/components/ui/ChatComposer.cjs +1 -1
- package/dist/components/ui/ChatComposer.cjs.map +1 -1
- package/dist/components/ui/ChatComposer.js +32 -31
- package/dist/components/ui/ChatComposer.js.map +1 -1
- package/dist/components/ui/ChatSessionList.cjs +1 -1
- package/dist/components/ui/ChatSessionList.cjs.map +1 -1
- package/dist/components/ui/ChatSessionList.js +68 -66
- package/dist/components/ui/ChatSessionList.js.map +1 -1
- package/dist/components/ui/CheckGrid.cjs +1 -1
- package/dist/components/ui/CheckGrid.cjs.map +1 -1
- package/dist/components/ui/CheckGrid.js +18 -17
- package/dist/components/ui/CheckGrid.js.map +1 -1
- package/dist/components/ui/Checkbox.cjs +1 -1
- package/dist/components/ui/Checkbox.cjs.map +1 -1
- package/dist/components/ui/Checkbox.d.ts +6 -2
- package/dist/components/ui/Checkbox.js +21 -17
- package/dist/components/ui/Checkbox.js.map +1 -1
- package/dist/components/ui/ChoiceCardGroup.cjs +1 -1
- package/dist/components/ui/ChoiceCardGroup.cjs.map +1 -1
- package/dist/components/ui/ChoiceCardGroup.d.ts +13 -4
- package/dist/components/ui/ChoiceCardGroup.js +47 -35
- package/dist/components/ui/ChoiceCardGroup.js.map +1 -1
- package/dist/components/ui/CodeEditor.cjs +1 -1
- package/dist/components/ui/CodeEditor.cjs.map +1 -1
- package/dist/components/ui/CodeEditor.d.ts +11 -1
- package/dist/components/ui/CodeEditor.js +108 -74
- package/dist/components/ui/CodeEditor.js.map +1 -1
- package/dist/components/ui/CommandInvocationCard.cjs +1 -1
- package/dist/components/ui/CommandInvocationCard.cjs.map +1 -1
- package/dist/components/ui/CommandInvocationCard.js +23 -26
- package/dist/components/ui/CommandInvocationCard.js.map +1 -1
- package/dist/components/ui/CommandPalette.cjs +1 -1
- package/dist/components/ui/CommandPalette.cjs.map +1 -1
- package/dist/components/ui/CommandPalette.d.ts +3 -3
- package/dist/components/ui/CommandPalette.js +75 -75
- package/dist/components/ui/CommandPalette.js.map +1 -1
- package/dist/components/ui/CommitGraph.cjs +1 -1
- package/dist/components/ui/CommitGraph.cjs.map +1 -1
- package/dist/components/ui/CommitGraph.d.ts +3 -1
- package/dist/components/ui/CommitGraph.js +77 -74
- package/dist/components/ui/CommitGraph.js.map +1 -1
- package/dist/components/ui/ContentInspectorDialog.cjs +1 -1
- package/dist/components/ui/ContentInspectorDialog.cjs.map +1 -1
- package/dist/components/ui/ContentInspectorDialog.js +25 -31
- package/dist/components/ui/ContentInspectorDialog.js.map +1 -1
- package/dist/components/ui/ContentPreview.cjs +2 -2
- package/dist/components/ui/ContentPreview.cjs.map +1 -1
- package/dist/components/ui/ContentPreview.js +55 -56
- package/dist/components/ui/ContentPreview.js.map +1 -1
- package/dist/components/ui/DangerZone.cjs +1 -1
- package/dist/components/ui/DangerZone.cjs.map +1 -1
- package/dist/components/ui/DangerZone.js +9 -8
- package/dist/components/ui/DangerZone.js.map +1 -1
- package/dist/components/ui/DataList.cjs +1 -1
- package/dist/components/ui/DataList.cjs.map +1 -1
- package/dist/components/ui/DataList.js +27 -25
- package/dist/components/ui/DataList.js.map +1 -1
- package/dist/components/ui/DataTable.cjs +1 -1
- package/dist/components/ui/DataTable.cjs.map +1 -1
- package/dist/components/ui/DataTable.d.ts +2 -1
- package/dist/components/ui/DataTable.js +141 -124
- package/dist/components/ui/DataTable.js.map +1 -1
- package/dist/components/ui/DiffViewer.cjs +1 -1
- package/dist/components/ui/DiffViewer.cjs.map +1 -1
- package/dist/components/ui/DiffViewer.js +29 -25
- package/dist/components/ui/DiffViewer.js.map +1 -1
- package/dist/components/ui/DropdownMenu.cjs +1 -1
- package/dist/components/ui/DropdownMenu.cjs.map +1 -1
- package/dist/components/ui/DropdownMenu.d.ts +1 -0
- package/dist/components/ui/DropdownMenu.js +41 -40
- package/dist/components/ui/DropdownMenu.js.map +1 -1
- package/dist/components/ui/EnvironmentSwitcher.cjs +1 -1
- package/dist/components/ui/EnvironmentSwitcher.cjs.map +1 -1
- package/dist/components/ui/EnvironmentSwitcher.js +26 -24
- package/dist/components/ui/EnvironmentSwitcher.js.map +1 -1
- package/dist/components/ui/EventTable.cjs +1 -1
- package/dist/components/ui/EventTable.cjs.map +1 -1
- package/dist/components/ui/EventTable.js +60 -53
- package/dist/components/ui/EventTable.js.map +1 -1
- package/dist/components/ui/FileDropzone.cjs +1 -1
- package/dist/components/ui/FileDropzone.cjs.map +1 -1
- package/dist/components/ui/FileDropzone.js +40 -42
- package/dist/components/ui/FileDropzone.js.map +1 -1
- package/dist/components/ui/FilePreview.cjs +1 -1
- package/dist/components/ui/FilePreview.cjs.map +1 -1
- package/dist/components/ui/FilePreview.js +63 -61
- package/dist/components/ui/FilePreview.js.map +1 -1
- package/dist/components/ui/FolderDropzone.cjs +1 -1
- package/dist/components/ui/FolderDropzone.cjs.map +1 -1
- package/dist/components/ui/FolderDropzone.js +114 -84
- package/dist/components/ui/FolderDropzone.js.map +1 -1
- package/dist/components/ui/ForgotPasswordForm.cjs +1 -1
- package/dist/components/ui/ForgotPasswordForm.cjs.map +1 -1
- package/dist/components/ui/ForgotPasswordForm.js +22 -21
- package/dist/components/ui/ForgotPasswordForm.js.map +1 -1
- package/dist/components/ui/FormRow.cjs +1 -1
- package/dist/components/ui/FormRow.cjs.map +1 -1
- package/dist/components/ui/FormRow.d.ts +32 -11
- package/dist/components/ui/FormRow.js +24 -15
- package/dist/components/ui/FormRow.js.map +1 -1
- package/dist/components/ui/InboxPage.cjs +1 -1
- package/dist/components/ui/InboxPage.cjs.map +1 -1
- package/dist/components/ui/InboxPage.d.ts +12 -3
- package/dist/components/ui/InboxPage.js +91 -77
- package/dist/components/ui/InboxPage.js.map +1 -1
- package/dist/components/ui/LoginForm.cjs +1 -1
- package/dist/components/ui/LoginForm.cjs.map +1 -1
- package/dist/components/ui/LoginForm.js +43 -43
- package/dist/components/ui/LoginForm.js.map +1 -1
- package/dist/components/ui/MonoValue.cjs +1 -1
- package/dist/components/ui/MonoValue.cjs.map +1 -1
- package/dist/components/ui/MonoValue.d.ts +5 -1
- package/dist/components/ui/MonoValue.js +17 -17
- package/dist/components/ui/MonoValue.js.map +1 -1
- package/dist/components/ui/NotificationBell.cjs +1 -1
- package/dist/components/ui/NotificationBell.cjs.map +1 -1
- package/dist/components/ui/NotificationBell.d.ts +17 -1
- package/dist/components/ui/NotificationBell.js +129 -75
- package/dist/components/ui/NotificationBell.js.map +1 -1
- package/dist/components/ui/NumberField.cjs +1 -1
- package/dist/components/ui/NumberField.cjs.map +1 -1
- package/dist/components/ui/NumberField.d.ts +3 -1
- package/dist/components/ui/NumberField.js +52 -49
- package/dist/components/ui/NumberField.js.map +1 -1
- package/dist/components/ui/ObjectBrowser.cjs +1 -1
- package/dist/components/ui/ObjectBrowser.cjs.map +1 -1
- package/dist/components/ui/ObjectBrowser.js +83 -78
- package/dist/components/ui/ObjectBrowser.js.map +1 -1
- package/dist/components/ui/PageSizeSelect.cjs +1 -1
- package/dist/components/ui/PageSizeSelect.cjs.map +1 -1
- package/dist/components/ui/PageSizeSelect.js +30 -29
- package/dist/components/ui/PageSizeSelect.js.map +1 -1
- package/dist/components/ui/Panel.cjs.map +1 -1
- package/dist/components/ui/Panel.d.ts +5 -2
- package/dist/components/ui/Panel.js.map +1 -1
- package/dist/components/ui/ParetoChart.cjs +1 -1
- package/dist/components/ui/ParetoChart.cjs.map +1 -1
- package/dist/components/ui/ParetoChart.js +247 -212
- package/dist/components/ui/ParetoChart.js.map +1 -1
- package/dist/components/ui/ParquetViewer.cjs +1 -1
- package/dist/components/ui/ParquetViewer.cjs.map +1 -1
- package/dist/components/ui/ParquetViewer.js +69 -74
- package/dist/components/ui/ParquetViewer.js.map +1 -1
- package/dist/components/ui/PasswordField.cjs +1 -1
- package/dist/components/ui/PasswordField.cjs.map +1 -1
- package/dist/components/ui/PasswordField.js +28 -27
- package/dist/components/ui/PasswordField.js.map +1 -1
- package/dist/components/ui/PickerField.cjs +1 -1
- package/dist/components/ui/PickerField.cjs.map +1 -1
- package/dist/components/ui/PickerField.d.ts +25 -6
- package/dist/components/ui/PickerField.js +20 -17
- package/dist/components/ui/PickerField.js.map +1 -1
- package/dist/components/ui/ProjectSelector.cjs +1 -1
- package/dist/components/ui/ProjectSelector.cjs.map +1 -1
- package/dist/components/ui/ProjectSelector.js +40 -37
- package/dist/components/ui/ProjectSelector.js.map +1 -1
- package/dist/components/ui/QueryAutocomplete.cjs +1 -1
- package/dist/components/ui/QueryAutocomplete.cjs.map +1 -1
- package/dist/components/ui/QueryAutocomplete.d.ts +11 -2
- package/dist/components/ui/QueryAutocomplete.js +146 -126
- package/dist/components/ui/QueryAutocomplete.js.map +1 -1
- package/dist/components/ui/RankBar.cjs +1 -1
- package/dist/components/ui/RankBar.cjs.map +1 -1
- package/dist/components/ui/RankBar.js +9 -9
- package/dist/components/ui/RankBar.js.map +1 -1
- package/dist/components/ui/RegisterForm.cjs +1 -1
- package/dist/components/ui/RegisterForm.cjs.map +1 -1
- package/dist/components/ui/RegisterForm.js +41 -40
- package/dist/components/ui/RegisterForm.js.map +1 -1
- package/dist/components/ui/ReplayStepStrip.cjs +1 -1
- package/dist/components/ui/ReplayStepStrip.cjs.map +1 -1
- package/dist/components/ui/ReplayStepStrip.d.ts +6 -3
- package/dist/components/ui/ReplayStepStrip.js +71 -61
- package/dist/components/ui/ReplayStepStrip.js.map +1 -1
- package/dist/components/ui/ResizableSidePanel.cjs +1 -1
- package/dist/components/ui/ResizableSidePanel.cjs.map +1 -1
- package/dist/components/ui/ResizableSidePanel.js +41 -40
- package/dist/components/ui/ResizableSidePanel.js.map +1 -1
- package/dist/components/ui/SavedQueryBar.cjs +1 -1
- package/dist/components/ui/SavedQueryBar.cjs.map +1 -1
- package/dist/components/ui/SavedQueryBar.d.ts +1 -1
- package/dist/components/ui/SavedQueryBar.js +375 -277
- package/dist/components/ui/SavedQueryBar.js.map +1 -1
- package/dist/components/ui/SearchInput.cjs +1 -1
- package/dist/components/ui/SearchInput.cjs.map +1 -1
- package/dist/components/ui/SearchInput.d.ts +5 -1
- package/dist/components/ui/SearchInput.js +28 -24
- package/dist/components/ui/SearchInput.js.map +1 -1
- package/dist/components/ui/Select.cjs +1 -1
- package/dist/components/ui/Select.cjs.map +1 -1
- package/dist/components/ui/Select.d.ts +3 -1
- package/dist/components/ui/Select.js +21 -19
- package/dist/components/ui/Select.js.map +1 -1
- package/dist/components/ui/ServiceMap.cjs +1 -1
- package/dist/components/ui/ServiceMap.cjs.map +1 -1
- package/dist/components/ui/ServiceMap.d.ts +18 -4
- package/dist/components/ui/ServiceMap.js +353 -228
- package/dist/components/ui/ServiceMap.js.map +1 -1
- package/dist/components/ui/Slider.cjs +1 -1
- package/dist/components/ui/Slider.cjs.map +1 -1
- package/dist/components/ui/Slider.d.ts +3 -1
- package/dist/components/ui/Slider.js +11 -9
- package/dist/components/ui/Slider.js.map +1 -1
- package/dist/components/ui/SparkLine.cjs +1 -1
- package/dist/components/ui/SparkLine.cjs.map +1 -1
- package/dist/components/ui/SparkLine.d.ts +5 -2
- package/dist/components/ui/SparkLine.js +36 -31
- package/dist/components/ui/SparkLine.js.map +1 -1
- package/dist/components/ui/Steps.cjs +1 -1
- package/dist/components/ui/Steps.cjs.map +1 -1
- package/dist/components/ui/Steps.js +25 -29
- package/dist/components/ui/Steps.js.map +1 -1
- package/dist/components/ui/TableOfContents.cjs +1 -1
- package/dist/components/ui/TableOfContents.cjs.map +1 -1
- package/dist/components/ui/TableOfContents.js +16 -19
- package/dist/components/ui/TableOfContents.js.map +1 -1
- package/dist/components/ui/Tabs.cjs +2 -2
- package/dist/components/ui/Tabs.cjs.map +1 -1
- package/dist/components/ui/Tabs.js +107 -87
- package/dist/components/ui/Tabs.js.map +1 -1
- package/dist/components/ui/Terminal.cjs +1 -1
- package/dist/components/ui/Terminal.cjs.map +1 -1
- package/dist/components/ui/Terminal.js +18 -17
- package/dist/components/ui/Terminal.js.map +1 -1
- package/dist/components/ui/TextField.cjs +1 -1
- package/dist/components/ui/TextField.cjs.map +1 -1
- package/dist/components/ui/TextField.js +6 -6
- package/dist/components/ui/TextField.js.map +1 -1
- package/dist/components/ui/ThemeToggle.cjs +1 -1
- package/dist/components/ui/ThemeToggle.cjs.map +1 -1
- package/dist/components/ui/ThemeToggle.js +15 -18
- package/dist/components/ui/ThemeToggle.js.map +1 -1
- package/dist/components/ui/TimeDisplay.cjs +1 -1
- package/dist/components/ui/TimeDisplay.cjs.map +1 -1
- package/dist/components/ui/TimeDisplay.js +12 -12
- package/dist/components/ui/TimeDisplay.js.map +1 -1
- package/dist/components/ui/TimeRangePicker.cjs +1 -1
- package/dist/components/ui/TimeRangePicker.cjs.map +1 -1
- package/dist/components/ui/TimeRangePicker.d.ts +12 -1
- package/dist/components/ui/TimeRangePicker.js +136 -113
- package/dist/components/ui/TimeRangePicker.js.map +1 -1
- package/dist/components/ui/Timeline.cjs.map +1 -1
- package/dist/components/ui/Timeline.d.ts +4 -4
- package/dist/components/ui/Timeline.js.map +1 -1
- package/dist/components/ui/TimelineChart.cjs +2 -2
- package/dist/components/ui/TimelineChart.cjs.map +1 -1
- package/dist/components/ui/TimelineChart.d.ts +1 -0
- package/dist/components/ui/TimelineChart.js +131 -137
- package/dist/components/ui/TimelineChart.js.map +1 -1
- package/dist/components/ui/TraceSpanInspector.cjs +1 -1
- package/dist/components/ui/TraceSpanInspector.cjs.map +1 -1
- package/dist/components/ui/TraceSpanInspector.js +43 -46
- package/dist/components/ui/TraceSpanInspector.js.map +1 -1
- package/dist/components/ui/TraceTree.cjs +1 -1
- package/dist/components/ui/TraceTree.cjs.map +1 -1
- package/dist/components/ui/TraceTree.d.ts +5 -1
- package/dist/components/ui/TraceTree.js +98 -97
- package/dist/components/ui/TraceTree.js.map +1 -1
- package/dist/components/ui/TrajectoryStep.cjs +2 -1
- package/dist/components/ui/TrajectoryStep.cjs.map +1 -1
- package/dist/components/ui/TrajectoryStep.js +64 -43
- package/dist/components/ui/TrajectoryStep.js.map +1 -1
- package/dist/components/ui/UploadQueue.cjs +1 -1
- package/dist/components/ui/UploadQueue.cjs.map +1 -1
- package/dist/components/ui/UploadQueue.js +59 -70
- package/dist/components/ui/UploadQueue.js.map +1 -1
- package/dist/components/ui/authValidation.cjs +1 -1
- package/dist/components/ui/authValidation.cjs.map +1 -1
- package/dist/components/ui/authValidation.d.ts +2 -2
- package/dist/components/ui/authValidation.js +4 -5
- package/dist/components/ui/authValidation.js.map +1 -1
- package/dist/components/ui/classifyContent.cjs +3 -3
- package/dist/components/ui/classifyContent.cjs.map +1 -1
- package/dist/components/ui/classifyContent.d.ts +2 -1
- package/dist/components/ui/classifyContent.js +52 -54
- package/dist/components/ui/classifyContent.js.map +1 -1
- package/dist/components/ui/relativeTime.cjs +1 -1
- package/dist/components/ui/relativeTime.cjs.map +1 -1
- package/dist/components/ui/relativeTime.d.ts +5 -3
- package/dist/components/ui/relativeTime.js +15 -6
- package/dist/components/ui/relativeTime.js.map +1 -1
- package/dist/components/ui/useColumnWidths.cjs +1 -1
- package/dist/components/ui/useColumnWidths.cjs.map +1 -1
- package/dist/components/ui/useColumnWidths.d.ts +6 -1
- package/dist/components/ui/useColumnWidths.js +139 -123
- package/dist/components/ui/useColumnWidths.js.map +1 -1
- package/dist/hooks/popoverOverflow.cjs +2 -0
- package/dist/hooks/popoverOverflow.cjs.map +1 -0
- package/dist/hooks/popoverOverflow.d.ts +8 -0
- package/dist/hooks/popoverOverflow.js +9 -0
- package/dist/hooks/popoverOverflow.js.map +1 -0
- package/dist/hooks/useDialogPopover.cjs +2 -0
- package/dist/hooks/useDialogPopover.cjs.map +1 -0
- package/dist/hooks/useDialogPopover.d.ts +23 -0
- package/dist/hooks/useDialogPopover.js +48 -0
- package/dist/hooks/useDialogPopover.js.map +1 -0
- package/dist/hooks/useMenuPopover.cjs +1 -1
- package/dist/hooks/useMenuPopover.cjs.map +1 -1
- package/dist/hooks/useMenuPopover.d.ts +0 -8
- package/dist/hooks/useMenuPopover.js +17 -22
- package/dist/hooks/useMenuPopover.js.map +1 -1
- package/dist/hooks/useSavedQueries.cjs +1 -1
- package/dist/hooks/useSavedQueries.cjs.map +1 -1
- package/dist/hooks/useSavedQueries.js +29 -28
- package/dist/hooks/useSavedQueries.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/layouts/shell/AegisShell.cjs +1 -1
- package/dist/layouts/shell/AegisShell.cjs.map +1 -1
- package/dist/layouts/shell/AegisShell.js +58 -59
- package/dist/layouts/shell/AegisShell.js.map +1 -1
- package/dist/layouts/shell/AppSwitcher.cjs +1 -1
- package/dist/layouts/shell/AppSwitcher.cjs.map +1 -1
- package/dist/layouts/shell/AppSwitcher.js +53 -36
- package/dist/layouts/shell/AppSwitcher.js.map +1 -1
- package/dist/layouts/shell/AuthRequiredCard.cjs +1 -1
- package/dist/layouts/shell/AuthRequiredCard.cjs.map +1 -1
- package/dist/layouts/shell/AuthRequiredCard.js +24 -22
- package/dist/layouts/shell/AuthRequiredCard.js.map +1 -1
- package/dist/layouts/shell/RouteErrorBoundary.cjs +1 -1
- package/dist/layouts/shell/RouteErrorBoundary.cjs.map +1 -1
- package/dist/layouts/shell/RouteErrorBoundary.d.ts +4 -1
- package/dist/layouts/shell/RouteErrorBoundary.js +15 -10
- package/dist/layouts/shell/RouteErrorBoundary.js.map +1 -1
- package/dist/layouts/shell/ShellInboxPage.cjs +1 -1
- package/dist/layouts/shell/ShellInboxPage.cjs.map +1 -1
- package/dist/layouts/shell/ShellInboxPage.js +17 -16
- package/dist/layouts/shell/ShellInboxPage.js.map +1 -1
- package/dist/layouts/shell/ShellNotificationBell.cjs +1 -1
- package/dist/layouts/shell/ShellNotificationBell.cjs.map +1 -1
- package/dist/layouts/shell/ShellNotificationBell.js +20 -14
- package/dist/layouts/shell/ShellNotificationBell.js.map +1 -1
- package/dist/layouts/shell/TopHeader.cjs +1 -1
- package/dist/layouts/shell/TopHeader.cjs.map +1 -1
- package/dist/layouts/shell/TopHeader.js +74 -74
- package/dist/layouts/shell/TopHeader.js.map +1 -1
- package/dist/layouts/shell/useShellUser.cjs +1 -1
- package/dist/layouts/shell/useShellUser.cjs.map +1 -1
- package/dist/layouts/shell/useShellUser.js +15 -13
- package/dist/layouts/shell/useShellUser.js.map +1 -1
- package/dist/lib/breakAtSeparators.cjs +2 -0
- package/dist/lib/breakAtSeparators.cjs.map +1 -0
- package/dist/lib/breakAtSeparators.d.ts +6 -0
- package/dist/lib/breakAtSeparators.js +10 -0
- package/dist/lib/breakAtSeparators.js.map +1 -0
- package/dist/lib/chart.cjs +1 -1
- package/dist/lib/chart.cjs.map +1 -1
- package/dist/lib/chart.d.ts +5 -7
- package/dist/lib/chart.js +49 -34
- package/dist/lib/chart.js.map +1 -1
- package/dist/lib/timeRange.cjs +1 -1
- package/dist/lib/timeRange.cjs.map +1 -1
- package/dist/lib/timeRange.d.ts +14 -4
- package/dist/lib/timeRange.js +41 -40
- package/dist/lib/timeRange.js.map +1 -1
- package/dist/locale/strings.cjs +1 -1
- package/dist/locale/strings.cjs.map +1 -1
- package/dist/locale/strings.d.ts +247 -2
- package/dist/locale/strings.js +562 -37
- package/dist/locale/strings.js.map +1 -1
- package/dist/notifications/notificationContext.cjs.map +1 -1
- package/dist/notifications/notificationContext.d.ts +12 -2
- package/dist/notifications/notificationContext.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme/antdTheme.cjs +1 -1
- package/dist/theme/antdTheme.cjs.map +1 -1
- package/dist/theme/antdTheme.js +52 -29
- package/dist/theme/antdTheme.js.map +1 -1
- package/dist/transports/agentm/AgentmChannelProvider.cjs +1 -1
- package/dist/transports/agentm/AgentmChannelProvider.cjs.map +1 -1
- package/dist/transports/agentm/AgentmChannelProvider.js +66 -61
- package/dist/transports/agentm/AgentmChannelProvider.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,369 +1,404 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useId as
|
|
3
|
-
import { useElementWidth as
|
|
4
|
-
import { zeroAnchoredDomain as
|
|
5
|
-
import { ChartLegend as
|
|
6
|
-
import { EmptyState as
|
|
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
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return
|
|
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
|
|
14
|
-
return [...
|
|
15
|
-
(
|
|
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
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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:
|
|
31
|
-
r:
|
|
32
|
-
t:
|
|
33
|
-
b:
|
|
49
|
+
l: m,
|
|
50
|
+
r: m + N,
|
|
51
|
+
t: a.y - L + z,
|
|
52
|
+
b: a.y + z
|
|
34
53
|
};
|
|
35
|
-
},
|
|
36
|
-
const { l:
|
|
37
|
-
return
|
|
38
|
-
},
|
|
39
|
-
const { l:
|
|
40
|
-
return
|
|
41
|
-
(
|
|
42
|
-
) &&
|
|
43
|
-
(
|
|
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
|
-
},
|
|
46
|
-
|
|
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
|
|
51
|
-
points:
|
|
52
|
-
xLabel:
|
|
53
|
-
yLabel:
|
|
54
|
-
xDirection:
|
|
55
|
-
yDirection:
|
|
56
|
-
formatX:
|
|
57
|
-
formatY:
|
|
58
|
-
xScale:
|
|
59
|
-
xDomain:
|
|
60
|
-
yDomain:
|
|
61
|
-
xTicks:
|
|
62
|
-
yTicks:
|
|
63
|
-
labels:
|
|
64
|
-
fadeDominated:
|
|
65
|
-
highlightKeys:
|
|
66
|
-
maxHeight:
|
|
67
|
-
onSelect:
|
|
68
|
-
legend:
|
|
69
|
-
empty:
|
|
70
|
-
emptyTitle:
|
|
71
|
-
emptyDescription:
|
|
72
|
-
progress:
|
|
73
|
-
frontProgress:
|
|
74
|
-
className:
|
|
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
|
|
95
|
+
const le = $e(), ne = Ne(), G = Ee(null), M = Ie(G), F = [
|
|
77
96
|
"aegis-pareto",
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
].filter(Boolean).join(" "),
|
|
81
|
-
if (
|
|
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(
|
|
85
|
-
),
|
|
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
|
-
|
|
89
|
-
|
|
107
|
+
K > f ? f : f / 2,
|
|
108
|
+
K > f ? K : K * 2
|
|
90
109
|
]
|
|
91
|
-
) :
|
|
92
|
-
(
|
|
93
|
-
(
|
|
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((
|
|
96
|
-
{ length:
|
|
97
|
-
(
|
|
98
|
-
),
|
|
99
|
-
[...
|
|
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:
|
|
104
|
-
left:
|
|
105
|
-
right:
|
|
106
|
-
top:
|
|
107
|
-
bottom:
|
|
108
|
-
sx:
|
|
109
|
-
sy:
|
|
110
|
-
front:
|
|
111
|
-
frontKeys: new Set(
|
|
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:
|
|
114
|
-
gridY:
|
|
115
|
-
xLabels:
|
|
116
|
-
yLabels:
|
|
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
|
-
|
|
120
|
-
|
|
138
|
+
t,
|
|
139
|
+
M,
|
|
140
|
+
_,
|
|
141
|
+
x,
|
|
142
|
+
s,
|
|
143
|
+
o,
|
|
144
|
+
N,
|
|
145
|
+
v,
|
|
121
146
|
b,
|
|
122
|
-
|
|
123
|
-
h,
|
|
124
|
-
k,
|
|
125
|
-
A,
|
|
126
|
-
L,
|
|
127
|
-
H,
|
|
128
|
-
_
|
|
147
|
+
C
|
|
129
148
|
]);
|
|
130
|
-
if (
|
|
131
|
-
return /* @__PURE__ */
|
|
132
|
-
|
|
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:
|
|
135
|
-
description:
|
|
153
|
+
title: B ?? le.paretoEmptyTitle,
|
|
154
|
+
description: P
|
|
136
155
|
}
|
|
137
|
-
) : /* @__PURE__ */
|
|
156
|
+
) : /* @__PURE__ */ l(
|
|
138
157
|
"div",
|
|
139
158
|
{
|
|
140
159
|
className: "aegis-pareto__empty",
|
|
141
160
|
style: {
|
|
142
|
-
"--aegis-pareto-min-height": `${
|
|
161
|
+
"--aegis-pareto-min-height": `${pe.toString()}px`
|
|
143
162
|
},
|
|
144
|
-
children:
|
|
163
|
+
children: E
|
|
145
164
|
}
|
|
146
165
|
) });
|
|
147
|
-
if (!
|
|
148
|
-
return /* @__PURE__ */
|
|
149
|
-
const { height:
|
|
150
|
-
|
|
151
|
-
(e) =>
|
|
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:
|
|
156
|
-
y:
|
|
174
|
+
x: k(e.x),
|
|
175
|
+
y: I(e.y)
|
|
157
176
|
})),
|
|
158
|
-
|
|
177
|
+
t.map((e) => ({
|
|
159
178
|
key: e.key,
|
|
160
|
-
x:
|
|
161
|
-
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:
|
|
165
|
-
),
|
|
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
|
-
})) ?? (
|
|
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
|
-
})) : []),
|
|
174
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
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__ */
|
|
177
|
-
/* @__PURE__ */
|
|
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:
|
|
182
|
-
height:
|
|
183
|
-
viewBox: `0 0 ${
|
|
184
|
-
role:
|
|
185
|
-
"aria-label":
|
|
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":
|
|
188
|
-
...
|
|
222
|
+
"--aegis-pareto-count": t.length,
|
|
223
|
+
...T === void 0 ? {} : { "--aegis-pareto-front-progress": T }
|
|
189
224
|
},
|
|
190
225
|
children: [
|
|
191
|
-
|
|
226
|
+
d.gridY.map((e) => /* @__PURE__ */ l(
|
|
192
227
|
"line",
|
|
193
228
|
{
|
|
194
229
|
className: "aegis-pareto__grid",
|
|
195
|
-
x1:
|
|
230
|
+
x1: h,
|
|
196
231
|
y1: e,
|
|
197
|
-
x2:
|
|
232
|
+
x2: $,
|
|
198
233
|
y2: e
|
|
199
234
|
},
|
|
200
235
|
`gy-${e.toString()}`
|
|
201
236
|
)),
|
|
202
|
-
|
|
237
|
+
d.gridX.map((e) => /* @__PURE__ */ l(
|
|
203
238
|
"line",
|
|
204
239
|
{
|
|
205
240
|
className: "aegis-pareto__grid",
|
|
206
241
|
x1: e,
|
|
207
|
-
y1:
|
|
242
|
+
y1: U,
|
|
208
243
|
x2: e,
|
|
209
|
-
y2:
|
|
244
|
+
y2: H
|
|
210
245
|
},
|
|
211
246
|
`gx-${e.toString()}`
|
|
212
247
|
)),
|
|
213
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ l(
|
|
214
249
|
"line",
|
|
215
250
|
{
|
|
216
251
|
className: "aegis-pareto__axis",
|
|
217
|
-
x1:
|
|
218
|
-
y1:
|
|
219
|
-
x2:
|
|
220
|
-
y2:
|
|
252
|
+
x1: h,
|
|
253
|
+
y1: H,
|
|
254
|
+
x2: $,
|
|
255
|
+
y2: H
|
|
221
256
|
}
|
|
222
257
|
),
|
|
223
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ l(
|
|
224
259
|
"line",
|
|
225
260
|
{
|
|
226
261
|
className: "aegis-pareto__axis",
|
|
227
|
-
x1:
|
|
228
|
-
y1:
|
|
229
|
-
x2:
|
|
230
|
-
y2:
|
|
262
|
+
x1: h,
|
|
263
|
+
y1: U,
|
|
264
|
+
x2: h,
|
|
265
|
+
y2: H
|
|
231
266
|
}
|
|
232
267
|
),
|
|
233
|
-
|
|
268
|
+
T !== void 0 && /* @__PURE__ */ l("clipPath", { id: ne, children: /* @__PURE__ */ l(
|
|
234
269
|
"rect",
|
|
235
270
|
{
|
|
236
|
-
x:
|
|
271
|
+
x: h,
|
|
237
272
|
y: 0,
|
|
238
|
-
width: (
|
|
239
|
-
height:
|
|
273
|
+
width: ($ - h) * T,
|
|
274
|
+
height: W
|
|
240
275
|
}
|
|
241
276
|
) }),
|
|
242
|
-
|
|
277
|
+
X.length > 1 && /* @__PURE__ */ l(
|
|
243
278
|
"polyline",
|
|
244
279
|
{
|
|
245
280
|
className: "aegis-pareto__front",
|
|
246
|
-
clipPath:
|
|
247
|
-
points:
|
|
248
|
-
(e) => `${
|
|
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
|
-
|
|
287
|
+
t.map((e, i) => /* @__PURE__ */ l(
|
|
253
288
|
"circle",
|
|
254
289
|
{
|
|
255
290
|
className: [
|
|
256
291
|
"aegis-pareto__point",
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
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 :
|
|
263
|
-
"--aegis-pareto-index":
|
|
264
|
-
"--aegis-pareto-point-progress":
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
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:
|
|
271
|
-
cy:
|
|
272
|
-
r:
|
|
273
|
-
role:
|
|
274
|
-
tabIndex:
|
|
275
|
-
"aria-label":
|
|
276
|
-
onClick:
|
|
277
|
-
|
|
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:
|
|
280
|
-
|
|
314
|
+
onKeyDown: a ? (f) => {
|
|
315
|
+
Ae(f, e.key);
|
|
281
316
|
} : void 0,
|
|
282
|
-
children: /* @__PURE__ */
|
|
317
|
+
children: /* @__PURE__ */ l("title", { children: e.label })
|
|
283
318
|
},
|
|
284
319
|
e.key
|
|
285
320
|
)),
|
|
286
|
-
|
|
287
|
-
const
|
|
288
|
-
return
|
|
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
|
-
|
|
328
|
+
ce(e.key) ? "aegis-pareto__point-label--dimmed" : ""
|
|
294
329
|
].filter(Boolean).join(" "),
|
|
295
|
-
style:
|
|
296
|
-
"--aegis-pareto-front-progress":
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
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:
|
|
303
|
-
y:
|
|
304
|
-
textAnchor:
|
|
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
|
-
|
|
345
|
+
d.xLabels.map((e, i) => /* @__PURE__ */ l(
|
|
311
346
|
"text",
|
|
312
347
|
{
|
|
313
348
|
className: "aegis-pareto__tick",
|
|
314
|
-
x:
|
|
315
|
-
y:
|
|
316
|
-
textAnchor:
|
|
317
|
-
children:
|
|
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
|
-
|
|
356
|
+
d.yLabels.map((e) => /* @__PURE__ */ l(
|
|
322
357
|
"text",
|
|
323
358
|
{
|
|
324
359
|
className: "aegis-pareto__tick",
|
|
325
|
-
x:
|
|
326
|
-
y:
|
|
360
|
+
x: h - A,
|
|
361
|
+
y: I(e),
|
|
327
362
|
textAnchor: "end",
|
|
328
363
|
dominantBaseline: "middle",
|
|
329
|
-
children:
|
|
364
|
+
children: u(e)
|
|
330
365
|
},
|
|
331
366
|
`y-${e.toString()}`
|
|
332
367
|
)),
|
|
333
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ l(
|
|
334
369
|
"text",
|
|
335
370
|
{
|
|
336
371
|
className: "aegis-pareto__axis-label",
|
|
337
|
-
x:
|
|
338
|
-
y:
|
|
372
|
+
x: $,
|
|
373
|
+
y: W - A,
|
|
339
374
|
textAnchor: "end",
|
|
340
|
-
children:
|
|
375
|
+
children: g
|
|
341
376
|
}
|
|
342
377
|
),
|
|
343
|
-
/* @__PURE__ */
|
|
378
|
+
/* @__PURE__ */ l(
|
|
344
379
|
"text",
|
|
345
380
|
{
|
|
346
381
|
className: "aegis-pareto__axis-label",
|
|
347
|
-
x:
|
|
348
|
-
y:
|
|
382
|
+
x: h - A,
|
|
383
|
+
y: Q,
|
|
349
384
|
textAnchor: "start",
|
|
350
|
-
children:
|
|
385
|
+
children: y
|
|
351
386
|
}
|
|
352
387
|
)
|
|
353
388
|
]
|
|
354
389
|
}
|
|
355
390
|
),
|
|
356
|
-
|
|
357
|
-
|
|
391
|
+
xe.length > 0 ? /* @__PURE__ */ l(
|
|
392
|
+
Be,
|
|
358
393
|
{
|
|
359
394
|
className: "aegis-pareto__legend",
|
|
360
395
|
shape: "dot",
|
|
361
|
-
items:
|
|
396
|
+
items: xe
|
|
362
397
|
}
|
|
363
398
|
) : null
|
|
364
399
|
] });
|
|
365
400
|
}
|
|
366
401
|
export {
|
|
367
|
-
|
|
402
|
+
Je as ParetoChart
|
|
368
403
|
};
|
|
369
404
|
//# sourceMappingURL=ParetoChart.js.map
|