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