@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,76 +1,77 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { graphlib as
|
|
4
|
-
import { ReactFlowProvider as
|
|
5
|
-
import { useMediaQuery as
|
|
1
|
+
import { jsx as u, jsxs as P, Fragment as ne } from "react/jsx-runtime";
|
|
2
|
+
import { useId as K, useState as re, useMemo as $, useCallback as I, useEffect as ce } from "react";
|
|
3
|
+
import { graphlib as le, layout as de } from "@dagrejs/dagre";
|
|
4
|
+
import { ReactFlowProvider as ge, Position as D, useReactFlow as Z, ReactFlow as pe, Background as ue, BackgroundVariant as me, Controls as fe, MiniMap as he, useStoreApi as ve, useStore as be, getViewportForBounds as W, Handle as Y } from "@xyflow/react";
|
|
5
|
+
import { useMediaQuery as _e } from "../../hooks/useMediaQuery.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { StatusDot as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"--aegis-service-map-node-
|
|
11
|
-
"--aegis-service-map-node-
|
|
12
|
-
"--aegis-service-map-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
import { StatusDot as we } from "./StatusDot.js";
|
|
8
|
+
import { useStrings as ye } from "../../locale/useStrings.js";
|
|
9
|
+
const C = 180, V = 64, xe = 320, Q = 28, Se = 64, Ne = {
|
|
10
|
+
"--aegis-service-map-node-w": `${String(C)}px`,
|
|
11
|
+
"--aegis-service-map-node-h": `${String(V)}px`,
|
|
12
|
+
"--aegis-service-map-node-max-w": `${String(xe)}px`,
|
|
13
|
+
"--aegis-service-map-group-label-h": `${String(Q)}px`
|
|
14
|
+
}, Me = { width: C, height: V };
|
|
15
|
+
function Ee(e, i, r, s) {
|
|
16
|
+
const n = e.map((o) => o.id), p = new Set(n);
|
|
16
17
|
return {
|
|
17
|
-
direction:
|
|
18
|
-
ids:
|
|
19
|
-
links:
|
|
20
|
-
groups:
|
|
18
|
+
direction: s,
|
|
19
|
+
ids: n,
|
|
20
|
+
links: i.filter((o) => p.has(o.source) && p.has(o.target)).map((o) => [o.source, o.target]),
|
|
21
|
+
groups: r
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
|
-
function
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
(
|
|
24
|
+
function Oe(e, i) {
|
|
25
|
+
const r = new Set(e), s = /* @__PURE__ */ new Set(), n = i.map((o) => {
|
|
26
|
+
const l = [...new Set(o.nodeIds)].filter(
|
|
27
|
+
(a) => r.has(a) && !s.has(a)
|
|
27
28
|
);
|
|
28
|
-
return
|
|
29
|
-
}),
|
|
30
|
-
return [...
|
|
29
|
+
return l.forEach((a) => s.add(a)), { group: o, ids: l };
|
|
30
|
+
}), p = e.filter((o) => !s.has(o));
|
|
31
|
+
return [...n, { ids: p }].filter((o) => o.ids.length > 0);
|
|
31
32
|
}
|
|
32
|
-
function
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
rankdir:
|
|
33
|
+
function Le(e, i, r, s) {
|
|
34
|
+
const n = new le.Graph();
|
|
35
|
+
n.setDefaultEdgeLabel(() => ({})), n.setGraph({
|
|
36
|
+
rankdir: r,
|
|
36
37
|
nodesep: 40,
|
|
37
38
|
ranksep: 80,
|
|
38
39
|
marginx: 16,
|
|
39
40
|
marginy: 16
|
|
40
41
|
});
|
|
41
|
-
for (const
|
|
42
|
-
|
|
43
|
-
for (const [
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
const
|
|
47
|
-
e.map((
|
|
48
|
-
const { x:
|
|
49
|
-
return [
|
|
42
|
+
for (const a of e)
|
|
43
|
+
n.setNode(a, { ...s(a) });
|
|
44
|
+
for (const [a, t] of i)
|
|
45
|
+
n.hasNode(a) && n.hasNode(t) && n.setEdge(a, t);
|
|
46
|
+
de(n);
|
|
47
|
+
const p = new Map(
|
|
48
|
+
e.map((a) => {
|
|
49
|
+
const { x: t = 0, y: g = 0 } = n.node(a), m = s(a);
|
|
50
|
+
return [a, { x: t - m.width / 2, y: g - m.height / 2 }];
|
|
50
51
|
})
|
|
51
|
-
), { width: o = 0, height:
|
|
52
|
-
return { positions:
|
|
52
|
+
), { width: o = 0, height: l = 0 } = n.graph();
|
|
53
|
+
return { positions: p, width: o, height: l };
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
-
const s = e.direction === "LR",
|
|
56
|
-
const
|
|
55
|
+
function Re(e, i, r) {
|
|
56
|
+
const s = (t) => `${r}-group-${String(e.groups.indexOf(t))}`, n = e.direction === "LR", p = Oe(e.ids, e.groups).map((t) => {
|
|
57
|
+
const g = Le(t.ids, e.links, e.direction, (v) => i.get(v) ?? Me), m = t.group === void 0 ? 0 : Q;
|
|
57
58
|
return {
|
|
58
59
|
...t,
|
|
59
|
-
...
|
|
60
|
-
labelHeight:
|
|
61
|
-
boxHeight:
|
|
60
|
+
...g,
|
|
61
|
+
labelHeight: m,
|
|
62
|
+
boxHeight: g.height + m
|
|
62
63
|
};
|
|
63
|
-
}),
|
|
64
|
+
}), o = Math.max(
|
|
64
65
|
0,
|
|
65
|
-
...
|
|
66
|
+
...p.map((t) => n ? t.boxHeight : t.width)
|
|
66
67
|
);
|
|
67
|
-
let
|
|
68
|
-
const
|
|
69
|
-
const
|
|
70
|
-
return
|
|
68
|
+
let l = 0;
|
|
69
|
+
const a = p.map((t) => {
|
|
70
|
+
const g = n ? { x: l, y: (o - t.boxHeight) / 2 } : { x: (o - t.width) / 2, y: l };
|
|
71
|
+
return l += (n ? t.width : t.boxHeight) + Se, { ...t, origin: g };
|
|
71
72
|
});
|
|
72
73
|
return {
|
|
73
|
-
groups:
|
|
74
|
+
groups: a.flatMap(
|
|
74
75
|
(t) => t.group === void 0 ? [] : [
|
|
75
76
|
{
|
|
76
77
|
// Prefixed, so a group may share an id with a node.
|
|
@@ -79,10 +80,18 @@ function _e(e, a) {
|
|
|
79
80
|
position: t.origin,
|
|
80
81
|
width: t.width,
|
|
81
82
|
height: t.boxHeight,
|
|
82
|
-
data: {
|
|
83
|
+
data: {
|
|
84
|
+
label: t.group.label,
|
|
85
|
+
labelId: s(t.group)
|
|
86
|
+
},
|
|
83
87
|
// Not a group for assistive technology: the box contains no
|
|
84
|
-
// nodes in the DOM, so its label is plain text
|
|
85
|
-
|
|
88
|
+
// nodes in the DOM, so its label is plain text, which its
|
|
89
|
+
// nodes are described by. It cannot be focused, so it has no
|
|
90
|
+
// keyboard help either.
|
|
91
|
+
domAttributes: {
|
|
92
|
+
"aria-roledescription": void 0,
|
|
93
|
+
"aria-describedby": void 0
|
|
94
|
+
},
|
|
86
95
|
// Under the edges, and letting clicks through to them: React
|
|
87
96
|
// Flow gives every node's wrapper pointer events once the map
|
|
88
97
|
// has onNodeClick.
|
|
@@ -96,64 +105,82 @@ function _e(e, a) {
|
|
|
96
105
|
]
|
|
97
106
|
),
|
|
98
107
|
positions: new Map(
|
|
99
|
-
|
|
100
|
-
(t) => [...t.positions].map(([
|
|
101
|
-
|
|
108
|
+
a.flatMap(
|
|
109
|
+
(t) => [...t.positions].map(([g, m]) => [
|
|
110
|
+
g,
|
|
102
111
|
{
|
|
103
|
-
x: t.origin.x +
|
|
104
|
-
y: t.origin.y + t.labelHeight +
|
|
112
|
+
x: t.origin.x + m.x,
|
|
113
|
+
y: t.origin.y + t.labelHeight + m.y
|
|
105
114
|
}
|
|
106
115
|
])
|
|
107
116
|
)
|
|
117
|
+
),
|
|
118
|
+
groupLabels: new Map(
|
|
119
|
+
a.flatMap((t) => {
|
|
120
|
+
const { group: g } = t;
|
|
121
|
+
return g === void 0 ? [] : t.ids.map((m) => [m, s(g)]);
|
|
122
|
+
})
|
|
108
123
|
)
|
|
109
124
|
};
|
|
110
125
|
}
|
|
111
|
-
function
|
|
126
|
+
function $e({
|
|
112
127
|
data: e
|
|
113
128
|
}) {
|
|
114
|
-
return /* @__PURE__ */
|
|
129
|
+
return /* @__PURE__ */ u("div", { className: "aegis-service-map__group", children: /* @__PURE__ */ u("span", { id: e.labelId, className: "aegis-service-map__group-label", children: e.label }) });
|
|
115
130
|
}
|
|
116
|
-
|
|
131
|
+
const De = {
|
|
132
|
+
ok: "ink",
|
|
133
|
+
active: "ink",
|
|
134
|
+
warn: "caution",
|
|
135
|
+
error: "warning",
|
|
136
|
+
muted: "muted"
|
|
137
|
+
};
|
|
138
|
+
function Te({
|
|
117
139
|
data: e
|
|
118
140
|
}) {
|
|
119
|
-
const { node:
|
|
120
|
-
return /* @__PURE__ */
|
|
141
|
+
const { node: i, selected: r } = e, s = i.status ?? "ok", n = De[s];
|
|
142
|
+
return /* @__PURE__ */ P(
|
|
121
143
|
"div",
|
|
122
144
|
{
|
|
123
145
|
className: [
|
|
124
146
|
"aegis-service-map__node",
|
|
125
|
-
`aegis-service-map__node--${
|
|
126
|
-
|
|
147
|
+
`aegis-service-map__node--${s}`,
|
|
148
|
+
r ? "aegis-service-map__node--selected" : ""
|
|
127
149
|
].filter(Boolean).join(" "),
|
|
128
150
|
children: [
|
|
129
|
-
/* @__PURE__ */
|
|
130
|
-
|
|
151
|
+
/* @__PURE__ */ u(
|
|
152
|
+
Y,
|
|
131
153
|
{
|
|
132
154
|
type: "target",
|
|
133
|
-
position:
|
|
155
|
+
position: D.Left,
|
|
134
156
|
className: "aegis-service-map__handle"
|
|
135
157
|
}
|
|
136
158
|
),
|
|
137
|
-
/* @__PURE__ */
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
159
|
+
/* @__PURE__ */ P("div", { className: "aegis-service-map__node-body", children: [
|
|
160
|
+
/* @__PURE__ */ P("div", { className: "aegis-service-map__node-label", children: [
|
|
161
|
+
/* @__PURE__ */ u(
|
|
162
|
+
we,
|
|
163
|
+
{
|
|
164
|
+
pulse: s === "active",
|
|
165
|
+
tone: r && n === "ink" ? "inverted" : n
|
|
166
|
+
}
|
|
167
|
+
),
|
|
168
|
+
/* @__PURE__ */ u("span", { className: "aegis-service-map__node-label-text", children: i.label })
|
|
142
169
|
] }),
|
|
143
|
-
|
|
170
|
+
i.sublabel !== void 0 && /* @__PURE__ */ u("div", { className: "aegis-service-map__node-sublabel", children: i.sublabel })
|
|
144
171
|
] }),
|
|
145
|
-
|
|
172
|
+
i.badge !== void 0 && i.badge !== "" && /* @__PURE__ */ u(
|
|
146
173
|
"span",
|
|
147
174
|
{
|
|
148
|
-
className: `aegis-service-map__node-badge aegis-service-map__node-badge--${
|
|
149
|
-
children:
|
|
175
|
+
className: `aegis-service-map__node-badge aegis-service-map__node-badge--${s}`,
|
|
176
|
+
children: i.badge
|
|
150
177
|
}
|
|
151
178
|
),
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
|
|
179
|
+
/* @__PURE__ */ u(
|
|
180
|
+
Y,
|
|
154
181
|
{
|
|
155
182
|
type: "source",
|
|
156
|
-
position:
|
|
183
|
+
position: D.Right,
|
|
157
184
|
className: "aegis-service-map__handle"
|
|
158
185
|
}
|
|
159
186
|
)
|
|
@@ -161,212 +188,310 @@ function we({
|
|
|
161
188
|
}
|
|
162
189
|
);
|
|
163
190
|
}
|
|
164
|
-
function
|
|
165
|
-
const { sourceX:
|
|
166
|
-
return /* @__PURE__ */
|
|
167
|
-
/* @__PURE__ */ g
|
|
191
|
+
function Ae(e) {
|
|
192
|
+
const { sourceX: i, sourceY: r, targetX: s, targetY: n, label: p, markerEnd: o, style: l } = e, a = K(), t = (i + s) / 2, g = `M${i},${r} C${t},${r} ${t},${n} ${s},${n}`;
|
|
193
|
+
return /* @__PURE__ */ P(ne, { children: [
|
|
194
|
+
/* @__PURE__ */ u("path", { d: g, className: "aegis-service-map__edge-focus", fill: "none" }),
|
|
195
|
+
/* @__PURE__ */ u(
|
|
168
196
|
"path",
|
|
169
197
|
{
|
|
170
|
-
id:
|
|
171
|
-
d:
|
|
198
|
+
id: a,
|
|
199
|
+
d: g,
|
|
172
200
|
className: "aegis-service-map__edge-path",
|
|
173
|
-
markerEnd:
|
|
174
|
-
style:
|
|
201
|
+
markerEnd: o,
|
|
202
|
+
style: l,
|
|
175
203
|
fill: "none"
|
|
176
204
|
}
|
|
177
205
|
),
|
|
178
|
-
|
|
206
|
+
p !== void 0 && p !== "" && /* @__PURE__ */ u("text", { className: "aegis-service-map__edge-label", children: /* @__PURE__ */ u("textPath", { href: `#${a}`, startOffset: "50%", textAnchor: "middle", children: p }) })
|
|
179
207
|
] });
|
|
180
208
|
}
|
|
181
|
-
const
|
|
182
|
-
function
|
|
209
|
+
const He = { service: Te, serviceGroup: $e }, Ie = { service: Ae }, Pe = "(max-width: 768px)", O = 24, k = 0.1, F = 1, X = 11 / 13, z = 15, J = 28, q = 200, B = (e) => `${e}px`;
|
|
210
|
+
function Fe(e, i) {
|
|
183
211
|
return [
|
|
184
212
|
.../* @__PURE__ */ new Set([
|
|
185
213
|
e,
|
|
186
|
-
...
|
|
187
|
-
...
|
|
214
|
+
...i.filter(([r]) => r === e).map(([, r]) => r),
|
|
215
|
+
...i.filter(([, r]) => r === e).map(([r]) => r)
|
|
188
216
|
])
|
|
189
217
|
];
|
|
190
218
|
}
|
|
191
|
-
function
|
|
219
|
+
function Be(e) {
|
|
192
220
|
return e.type === "serviceGroup" ? "aegis-service-map__minimap-group" : "";
|
|
193
221
|
}
|
|
194
|
-
function
|
|
195
|
-
const { fitView:
|
|
196
|
-
() =>
|
|
197
|
-
[
|
|
222
|
+
function Ge(e, i, r, s, n, p) {
|
|
223
|
+
const { fitView: o, getNodes: l, getNodesBounds: a, setViewport: t } = Z(), g = ve(), m = be((f) => f.width > 0 && f.height > 0), v = $(
|
|
224
|
+
() => s !== void 0 && e.ids.includes(s) ? { id: s, near: Fe(s, e.links) } : void 0,
|
|
225
|
+
[s, e]
|
|
198
226
|
);
|
|
199
|
-
|
|
200
|
-
if (
|
|
201
|
-
const
|
|
202
|
-
top:
|
|
203
|
-
bottom:
|
|
204
|
-
left:
|
|
205
|
-
right:
|
|
206
|
-
|
|
227
|
+
ce(() => {
|
|
228
|
+
if (m && r) {
|
|
229
|
+
const f = {
|
|
230
|
+
top: B(O),
|
|
231
|
+
bottom: B(O),
|
|
232
|
+
left: B(z + J + O),
|
|
233
|
+
right: B(
|
|
234
|
+
n ? z + q + O : O
|
|
207
235
|
)
|
|
208
|
-
};
|
|
209
|
-
if (
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
const { width: v, height: S } = t.getState(), h = ce(
|
|
213
|
-
o(c.near),
|
|
214
|
-
v,
|
|
215
|
-
S,
|
|
216
|
-
F,
|
|
236
|
+
}, { width: N, height: M } = g.getState();
|
|
237
|
+
if (v === void 0) {
|
|
238
|
+
const b = l(), _ = a(b), E = W(
|
|
239
|
+
_,
|
|
217
240
|
N,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
241
|
+
M,
|
|
242
|
+
k,
|
|
243
|
+
1,
|
|
244
|
+
f
|
|
245
|
+
);
|
|
246
|
+
if (p && E.zoom < X) {
|
|
247
|
+
const x = X, T = e.direction === "LR", L = (y) => T ? y.position.x : y.position.y, w = b.filter((y) => y.type === "service").reduce((y, H) => L(H) < L(y) ? H : y), { width: A = C, height: G = V } = w.measured ?? {};
|
|
248
|
+
t(
|
|
249
|
+
T ? {
|
|
250
|
+
x: z + J + O - _.x * x,
|
|
251
|
+
y: M / 2 - (w.position.y + G / 2) * x,
|
|
252
|
+
zoom: x
|
|
253
|
+
} : {
|
|
254
|
+
x: N / 2 - (w.position.x + A / 2) * x,
|
|
255
|
+
y: O - _.y * x,
|
|
256
|
+
zoom: x
|
|
257
|
+
}
|
|
258
|
+
);
|
|
259
|
+
} else
|
|
260
|
+
o({ maxZoom: 1, padding: f });
|
|
261
|
+
} else {
|
|
262
|
+
const b = W(
|
|
263
|
+
a(v.near),
|
|
264
|
+
N,
|
|
265
|
+
M,
|
|
266
|
+
k,
|
|
267
|
+
F,
|
|
268
|
+
f
|
|
269
|
+
).zoom >= F;
|
|
270
|
+
o({
|
|
271
|
+
nodes: (b ? v.near : [v.id]).map((_) => ({ id: _ })),
|
|
272
|
+
minZoom: F,
|
|
273
|
+
maxZoom: F,
|
|
274
|
+
padding: f
|
|
225
275
|
});
|
|
226
276
|
}
|
|
227
277
|
}
|
|
228
278
|
}, [
|
|
279
|
+
m,
|
|
280
|
+
r,
|
|
229
281
|
i,
|
|
230
|
-
|
|
282
|
+
v,
|
|
283
|
+
n,
|
|
284
|
+
p,
|
|
285
|
+
e.direction,
|
|
286
|
+
g,
|
|
287
|
+
o,
|
|
288
|
+
l,
|
|
231
289
|
a,
|
|
232
|
-
|
|
233
|
-
r,
|
|
234
|
-
t,
|
|
235
|
-
d,
|
|
236
|
-
o
|
|
290
|
+
t
|
|
237
291
|
]);
|
|
238
292
|
}
|
|
239
|
-
function
|
|
293
|
+
function ze() {
|
|
294
|
+
const { getViewport: e, setViewport: i } = Z();
|
|
295
|
+
return I(
|
|
296
|
+
(r) => {
|
|
297
|
+
const s = r.target;
|
|
298
|
+
if (!(s instanceof Element) || !s.matches(
|
|
299
|
+
".react-flow__node:focus-visible, .react-flow__edge:focus-visible"
|
|
300
|
+
))
|
|
301
|
+
return;
|
|
302
|
+
const { scrollLeft: n, scrollTop: p } = r.currentTarget, o = r.currentTarget.getBoundingClientRect(), l = s.getBoundingClientRect(), a = l.left - o.left + n, t = l.top - o.top + p;
|
|
303
|
+
if (a >= 0 && t >= 0 && a + l.width <= o.width && t + l.height <= o.height)
|
|
304
|
+
return;
|
|
305
|
+
const { x: g, y: m, zoom: v } = e();
|
|
306
|
+
i({
|
|
307
|
+
x: g + o.width / 2 - (a + l.width / 2),
|
|
308
|
+
y: m + o.height / 2 - (t + l.height / 2),
|
|
309
|
+
zoom: v
|
|
310
|
+
});
|
|
311
|
+
},
|
|
312
|
+
[e, i]
|
|
313
|
+
);
|
|
314
|
+
}
|
|
315
|
+
function ke({
|
|
240
316
|
nodes: e,
|
|
241
|
-
edges:
|
|
242
|
-
groups:
|
|
243
|
-
direction:
|
|
244
|
-
height:
|
|
245
|
-
fillViewport:
|
|
317
|
+
edges: i,
|
|
318
|
+
groups: r = [],
|
|
319
|
+
direction: s = "LR",
|
|
320
|
+
height: n,
|
|
321
|
+
fillViewport: p = !1,
|
|
246
322
|
onNodeClick: o,
|
|
247
|
-
onEdgeClick:
|
|
248
|
-
selectedNodeId:
|
|
249
|
-
focusNodeId:
|
|
250
|
-
minimap:
|
|
251
|
-
ariaLabel:
|
|
252
|
-
className:
|
|
323
|
+
onEdgeClick: l,
|
|
324
|
+
selectedNodeId: a,
|
|
325
|
+
focusNodeId: t,
|
|
326
|
+
minimap: g = t === void 0,
|
|
327
|
+
ariaLabel: m,
|
|
328
|
+
className: v
|
|
253
329
|
}) {
|
|
254
|
-
const [
|
|
330
|
+
const f = ye(), N = K(), M = `aegis-service-map${N.replace(/:/g, "-")}`, b = o !== void 0, _ = l !== void 0, [E, x] = re(
|
|
255
331
|
() => /* @__PURE__ */ new Map()
|
|
256
|
-
),
|
|
257
|
-
() => JSON.stringify(
|
|
258
|
-
[e,
|
|
259
|
-
),
|
|
260
|
-
() =>
|
|
261
|
-
[
|
|
262
|
-
),
|
|
332
|
+
), T = $(
|
|
333
|
+
() => JSON.stringify(Ee(e, i, r, s)),
|
|
334
|
+
[e, i, r, s]
|
|
335
|
+
), L = $(() => JSON.parse(T), [T]), w = $(
|
|
336
|
+
() => Re(L, E, N),
|
|
337
|
+
[L, E, N]
|
|
338
|
+
), A = s === "LR", G = $(
|
|
263
339
|
() => [
|
|
264
|
-
...
|
|
265
|
-
...e.map(
|
|
266
|
-
|
|
267
|
-
|
|
340
|
+
...w.groups,
|
|
341
|
+
...e.map((d) => {
|
|
342
|
+
const c = [
|
|
343
|
+
w.groupLabels.get(d.id),
|
|
344
|
+
b ? `react-flow__node-desc-${M}` : void 0
|
|
345
|
+
].filter(Boolean).join(" ");
|
|
346
|
+
return {
|
|
347
|
+
id: d.id,
|
|
268
348
|
type: "service",
|
|
269
|
-
position:
|
|
349
|
+
position: w.positions.get(d.id) ?? { x: 0, y: 0 },
|
|
270
350
|
// Handed back as applyNodeChanges would, so React Flow keeps the
|
|
271
351
|
// size it measured instead of measuring the node again.
|
|
272
|
-
measured:
|
|
273
|
-
ariaLabel:
|
|
274
|
-
//
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
352
|
+
measured: E.get(d.id),
|
|
353
|
+
ariaLabel: d.label,
|
|
354
|
+
// React Flow gives only a focusable node a role, and the role
|
|
355
|
+
// description below needs one.
|
|
356
|
+
ariaRole: "group",
|
|
357
|
+
domAttributes: {
|
|
358
|
+
"aria-roledescription": f.serviceMapNodeRole,
|
|
359
|
+
// A group takes no aria-selected.
|
|
360
|
+
"aria-current": a === d.id ? !0 : void 0,
|
|
361
|
+
"aria-describedby": c === "" ? void 0 : c
|
|
362
|
+
},
|
|
363
|
+
data: { node: d, selected: a === d.id },
|
|
364
|
+
sourcePosition: A ? D.Right : D.Bottom,
|
|
365
|
+
targetPosition: A ? D.Left : D.Top,
|
|
279
366
|
draggable: !1,
|
|
280
367
|
connectable: !1,
|
|
281
|
-
selectable:
|
|
282
|
-
|
|
283
|
-
|
|
368
|
+
selectable: b,
|
|
369
|
+
focusable: b
|
|
370
|
+
};
|
|
371
|
+
})
|
|
284
372
|
],
|
|
285
|
-
[
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
373
|
+
[
|
|
374
|
+
w,
|
|
375
|
+
e,
|
|
376
|
+
E,
|
|
377
|
+
a,
|
|
378
|
+
A,
|
|
379
|
+
b,
|
|
380
|
+
M,
|
|
381
|
+
f
|
|
382
|
+
]
|
|
383
|
+
), y = $(() => {
|
|
384
|
+
const d = new Map(e.map((c) => [c.id, c.label]));
|
|
385
|
+
return i.map((c) => ({
|
|
386
|
+
id: c.id,
|
|
387
|
+
source: c.source,
|
|
388
|
+
target: c.target,
|
|
389
|
+
ariaLabel: f.serviceMapEdgeName(
|
|
390
|
+
d.get(c.source) ?? c.source,
|
|
391
|
+
d.get(c.target) ?? c.target
|
|
392
|
+
),
|
|
393
|
+
domAttributes: { "aria-roledescription": f.serviceMapEdgeRole },
|
|
293
394
|
type: "service",
|
|
294
|
-
data: { edge:
|
|
295
|
-
label:
|
|
296
|
-
|
|
395
|
+
data: { edge: c },
|
|
396
|
+
label: c.label,
|
|
397
|
+
selectable: _,
|
|
398
|
+
focusable: _,
|
|
399
|
+
className: `aegis-service-map__edge aegis-service-map__edge--${c.status ?? "ok"}`
|
|
297
400
|
}));
|
|
298
|
-
}, [e,
|
|
299
|
-
(
|
|
300
|
-
const
|
|
301
|
-
(
|
|
401
|
+
}, [e, i, _, f]), { getNode: H } = Z(), ee = I(
|
|
402
|
+
(d) => {
|
|
403
|
+
const c = d.flatMap(
|
|
404
|
+
(h) => h.type === "dimensions" && h.dimensions !== void 0 && H(h.id)?.type === "service" ? [[h.id, h.dimensions]] : []
|
|
302
405
|
);
|
|
303
|
-
|
|
304
|
-
(
|
|
305
|
-
([
|
|
306
|
-
) ?
|
|
406
|
+
x(
|
|
407
|
+
(h) => c.every(
|
|
408
|
+
([S, R]) => h.get(S)?.width === R.width && h.get(S)?.height === R.height
|
|
409
|
+
) ? h : new Map([...h, ...c])
|
|
307
410
|
);
|
|
308
411
|
},
|
|
309
|
-
[
|
|
310
|
-
),
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
e.every((
|
|
315
|
-
|
|
316
|
-
|
|
412
|
+
[H]
|
|
413
|
+
), j = _e(Pe), U = g && !j;
|
|
414
|
+
Ge(
|
|
415
|
+
L,
|
|
416
|
+
w,
|
|
417
|
+
e.every((d) => E.has(d.id)),
|
|
418
|
+
t,
|
|
419
|
+
U,
|
|
420
|
+
j
|
|
317
421
|
);
|
|
318
|
-
const
|
|
319
|
-
(
|
|
320
|
-
|
|
422
|
+
const te = ze(), oe = I(
|
|
423
|
+
(d, c) => {
|
|
424
|
+
c.type === "service" && o?.(c.data.node);
|
|
321
425
|
},
|
|
322
426
|
[o]
|
|
323
|
-
),
|
|
324
|
-
(
|
|
325
|
-
|
|
427
|
+
), ie = I(
|
|
428
|
+
(d, c) => {
|
|
429
|
+
c.data && l?.(c.data.edge);
|
|
326
430
|
},
|
|
327
|
-
[
|
|
328
|
-
),
|
|
329
|
-
|
|
330
|
-
|
|
431
|
+
[l]
|
|
432
|
+
), se = I(
|
|
433
|
+
(d) => {
|
|
434
|
+
if (d.key !== "Enter" && d.key !== " " || d.repeat)
|
|
435
|
+
return;
|
|
436
|
+
const c = d.target;
|
|
437
|
+
if (!(c instanceof Element))
|
|
438
|
+
return;
|
|
439
|
+
const h = c.getAttribute("data-id");
|
|
440
|
+
if (c.classList.contains("react-flow__node")) {
|
|
441
|
+
const S = e.find((R) => R.id === h);
|
|
442
|
+
S && o && (d.preventDefault(), o(S));
|
|
443
|
+
} else if (c.classList.contains("react-flow__edge")) {
|
|
444
|
+
const S = i.find((R) => R.id === h);
|
|
445
|
+
S && l && (d.preventDefault(), l(S));
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
[e, i, o, l]
|
|
449
|
+
), ae = {
|
|
450
|
+
...Ne,
|
|
451
|
+
height: n === void 0 ? void 0 : `${String(n)}px`
|
|
331
452
|
};
|
|
332
|
-
return /* @__PURE__ */
|
|
453
|
+
return /* @__PURE__ */ u(
|
|
333
454
|
"div",
|
|
334
455
|
{
|
|
335
456
|
className: [
|
|
336
457
|
"aegis-service-map",
|
|
337
|
-
|
|
338
|
-
|
|
458
|
+
p ? "aegis-service-map--fill-viewport" : "",
|
|
459
|
+
v
|
|
339
460
|
].filter(Boolean).join(" "),
|
|
340
|
-
style:
|
|
341
|
-
children: /* @__PURE__ */
|
|
342
|
-
|
|
461
|
+
style: ae,
|
|
462
|
+
children: /* @__PURE__ */ u("div", { className: "aegis-service-map__pane", children: /* @__PURE__ */ P(
|
|
463
|
+
pe,
|
|
343
464
|
{
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
465
|
+
id: M,
|
|
466
|
+
"aria-label": m,
|
|
467
|
+
nodes: G,
|
|
468
|
+
edges: y,
|
|
469
|
+
nodeTypes: He,
|
|
470
|
+
edgeTypes: Ie,
|
|
471
|
+
minZoom: k,
|
|
350
472
|
nodesDraggable: !1,
|
|
351
473
|
nodesConnectable: !1,
|
|
352
|
-
|
|
474
|
+
autoPanOnNodeFocus: !1,
|
|
353
475
|
panOnDrag: !0,
|
|
354
476
|
zoomOnScroll: !0,
|
|
355
477
|
proOptions: { hideAttribution: !0 },
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
478
|
+
ariaLabelConfig: f.serviceMapAriaLabels,
|
|
479
|
+
onNodesChange: ee,
|
|
480
|
+
onNodeClick: b ? oe : void 0,
|
|
481
|
+
onEdgeClick: _ ? ie : void 0,
|
|
482
|
+
onKeyDown: se,
|
|
483
|
+
onFocus: te,
|
|
359
484
|
children: [
|
|
360
|
-
/* @__PURE__ */
|
|
361
|
-
/* @__PURE__ */
|
|
362
|
-
|
|
363
|
-
|
|
485
|
+
/* @__PURE__ */ u(ue, { variant: me.Dots, gap: 16, size: 1 }),
|
|
486
|
+
/* @__PURE__ */ u(fe, { showInteractive: !1, position: "top-left" }),
|
|
487
|
+
U && /* @__PURE__ */ u(
|
|
488
|
+
he,
|
|
364
489
|
{
|
|
365
490
|
pannable: !0,
|
|
366
491
|
zoomable: !0,
|
|
367
492
|
position: "bottom-right",
|
|
368
|
-
style: { width:
|
|
369
|
-
nodeClassName:
|
|
493
|
+
style: { width: q },
|
|
494
|
+
nodeClassName: Be
|
|
370
495
|
}
|
|
371
496
|
)
|
|
372
497
|
]
|
|
@@ -375,10 +500,10 @@ function He({
|
|
|
375
500
|
}
|
|
376
501
|
);
|
|
377
502
|
}
|
|
378
|
-
function
|
|
379
|
-
return /* @__PURE__ */
|
|
503
|
+
function Je(e) {
|
|
504
|
+
return /* @__PURE__ */ u(ge, { children: /* @__PURE__ */ u(ke, { ...e }) });
|
|
380
505
|
}
|
|
381
506
|
export {
|
|
382
|
-
|
|
507
|
+
Je as ServiceMap
|
|
383
508
|
};
|
|
384
509
|
//# sourceMappingURL=ServiceMap.js.map
|