@lincyaw/aegis-ui 0.10.0 → 0.11.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 +107 -100
- 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/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/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 +100 -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 +28 -31
- 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 +13 -12
- 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 +25 -24
- 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.js +41 -41
- 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.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 +38 -40
- 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 +60 -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/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 +7 -1
- package/dist/components/ui/QueryAutocomplete.js +141 -134
- 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.js +41 -40
- package/dist/components/ui/RegisterForm.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 +9 -3
- package/dist/components/ui/ServiceMap.js +291 -231
- 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.js +24 -23
- 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/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.js +128 -111
- package/dist/components/ui/TimeRangePicker.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 +1 -1
- package/dist/components/ui/TraceTree.js +33 -33
- package/dist/components/ui/TraceTree.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/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 +41 -41
- 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/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 +241 -2
- package/dist/locale/strings.js +543 -26
- 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 +2 -0
- package/dist/theme/antdTheme.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,276 +1,372 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { StarFilled as
|
|
4
|
-
import { Popover as
|
|
1
|
+
import { jsxs as b, jsx as n, Fragment as j } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as B, useRef as Q, useId as C, useState as R, useEffect as D } from "react";
|
|
3
|
+
import { StarFilled as I, EllipsisOutlined as H, PlusOutlined as L, StarOutlined as V } from "@ant-design/icons";
|
|
4
|
+
import { Popover as k } from "antd";
|
|
5
|
+
import { POPOVER_OVERFLOW as E } from "../../hooks/popoverOverflow.js";
|
|
6
|
+
import { useDialogPopover as T } from "../../hooks/useDialogPopover.js";
|
|
7
|
+
import { useMenuPopover as W } from "../../hooks/useMenuPopover.js";
|
|
5
8
|
/* empty css */
|
|
6
|
-
|
|
9
|
+
import { useStrings as y } from "../../locale/useStrings.js";
|
|
10
|
+
function x(e, l, c) {
|
|
11
|
+
return Array.from(
|
|
12
|
+
e?.querySelectorAll("[data-query-id]") ?? []
|
|
13
|
+
).find((t) => t.dataset.queryId === l)?.querySelector(c) ?? null;
|
|
14
|
+
}
|
|
15
|
+
function re({
|
|
7
16
|
queries: e,
|
|
8
|
-
currentValue:
|
|
9
|
-
onApply:
|
|
10
|
-
onSave:
|
|
11
|
-
onRename:
|
|
12
|
-
onRemove:
|
|
13
|
-
onTogglePinned:
|
|
14
|
-
allowEmptySave:
|
|
15
|
-
className:
|
|
16
|
-
maxInlineUnpinned:
|
|
17
|
+
currentValue: l,
|
|
18
|
+
onApply: c,
|
|
19
|
+
onSave: i,
|
|
20
|
+
onRename: t,
|
|
21
|
+
onRemove: d,
|
|
22
|
+
onTogglePinned: a,
|
|
23
|
+
allowEmptySave: u = !1,
|
|
24
|
+
className: o,
|
|
25
|
+
maxInlineUnpinned: r = 6
|
|
17
26
|
}) {
|
|
18
|
-
const
|
|
19
|
-
const
|
|
27
|
+
const v = y(), { inline: N, overflow: _ } = B(() => {
|
|
28
|
+
const s = e.filter((f) => f.pinned), p = e.filter((f) => !f.pinned);
|
|
20
29
|
return {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
overflow: v.slice(p)
|
|
30
|
+
inline: [...s, ...p.slice(0, r)],
|
|
31
|
+
overflow: p.slice(r)
|
|
24
32
|
};
|
|
25
|
-
}, [e,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
))
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
33
|
+
}, [e, r]), m = Q(null), g = C(), [h, w] = R(null);
|
|
34
|
+
D(() => {
|
|
35
|
+
if (h === null)
|
|
36
|
+
return;
|
|
37
|
+
w(null);
|
|
38
|
+
const s = m.current;
|
|
39
|
+
if (!s)
|
|
40
|
+
return;
|
|
41
|
+
const p = s.querySelectorAll(".aegis-sqb__chip");
|
|
42
|
+
(h.kind === "query" ? [
|
|
43
|
+
h.inOverflow ? x(
|
|
44
|
+
document.getElementById(g),
|
|
45
|
+
h.id,
|
|
46
|
+
".aegis-sqb__overflow-apply"
|
|
47
|
+
) : null,
|
|
48
|
+
x(s, h.id, ".aegis-sqb__chip"),
|
|
49
|
+
s.querySelector(".aegis-sqb__chip--ghost"),
|
|
50
|
+
s.querySelector(".aegis-sqb__save-trigger"),
|
|
51
|
+
s
|
|
52
|
+
] : [
|
|
53
|
+
s.querySelector(".aegis-sqb__save-trigger"),
|
|
54
|
+
p.length > 0 ? p[p.length - 1] : null,
|
|
55
|
+
s
|
|
56
|
+
]).find(
|
|
57
|
+
(q) => q !== null && !(q instanceof HTMLButtonElement && q.disabled)
|
|
58
|
+
)?.focus();
|
|
59
|
+
}, [h, g]);
|
|
60
|
+
const S = (s) => {
|
|
61
|
+
w({ kind: "query", id: s, inOverflow: !1 }), a(s);
|
|
62
|
+
}, P = (s) => {
|
|
63
|
+
const p = [...N, ..._], f = p.findIndex((M) => M.id === s), q = f >= N.length;
|
|
64
|
+
let O;
|
|
65
|
+
f + 1 < p.length ? O = p[f + 1] : q && _.length > 1 && (O = p[f - 1]), w(
|
|
66
|
+
O ? { kind: "query", id: O.id, inOverflow: q } : { kind: "save" }
|
|
67
|
+
), d(s);
|
|
68
|
+
}, F = (s) => {
|
|
69
|
+
w({ kind: "query", id: s, inOverflow: !1 });
|
|
70
|
+
}, K = !u && l.trim() === "", A = ["aegis-sqb", o ?? ""].filter(Boolean).join(" ");
|
|
71
|
+
return /* @__PURE__ */ b(
|
|
72
|
+
"div",
|
|
73
|
+
{
|
|
74
|
+
ref: m,
|
|
75
|
+
className: A,
|
|
76
|
+
role: "toolbar",
|
|
77
|
+
"aria-label": v.savedQueries,
|
|
78
|
+
tabIndex: -1,
|
|
79
|
+
children: [
|
|
80
|
+
e.length === 0 ? /* @__PURE__ */ n("span", { className: "aegis-sqb__hint", children: v.savedQueriesEmpty }) : /* @__PURE__ */ b("ul", { className: "aegis-sqb__list", children: [
|
|
81
|
+
N.map((s) => /* @__PURE__ */ n(
|
|
82
|
+
z,
|
|
83
|
+
{
|
|
84
|
+
query: s,
|
|
85
|
+
onApply: c,
|
|
86
|
+
onRename: t,
|
|
87
|
+
onRenameDone: F,
|
|
88
|
+
onRemove: P,
|
|
89
|
+
onTogglePinned: S
|
|
90
|
+
},
|
|
91
|
+
s.id
|
|
92
|
+
)),
|
|
93
|
+
_.length > 0 ? /* @__PURE__ */ n(
|
|
94
|
+
X,
|
|
95
|
+
{
|
|
96
|
+
panelId: g,
|
|
97
|
+
items: _,
|
|
98
|
+
onApply: c,
|
|
99
|
+
onRemove: P,
|
|
100
|
+
onTogglePinned: S
|
|
101
|
+
}
|
|
102
|
+
) : null
|
|
103
|
+
] }),
|
|
104
|
+
/* @__PURE__ */ n(
|
|
105
|
+
Z,
|
|
106
|
+
{
|
|
107
|
+
disabled: K,
|
|
108
|
+
currentValue: l,
|
|
109
|
+
onSave: (s) => {
|
|
110
|
+
i(s, l);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
);
|
|
71
117
|
}
|
|
72
|
-
function
|
|
118
|
+
function z({
|
|
73
119
|
query: e,
|
|
74
|
-
onApply:
|
|
75
|
-
onRename:
|
|
120
|
+
onApply: l,
|
|
121
|
+
onRename: c,
|
|
122
|
+
onRenameDone: i,
|
|
76
123
|
onRemove: t,
|
|
77
|
-
onTogglePinned:
|
|
124
|
+
onTogglePinned: d
|
|
78
125
|
}) {
|
|
79
|
-
const [
|
|
80
|
-
|
|
81
|
-
},
|
|
82
|
-
|
|
126
|
+
const a = y(), [u, o] = R(!1), r = W(), v = C(), N = () => {
|
|
127
|
+
u || l(e);
|
|
128
|
+
}, _ = (g) => {
|
|
129
|
+
g.preventDefault(), r.setOpen(!0);
|
|
83
130
|
}, m = /* @__PURE__ */ n(
|
|
84
|
-
|
|
131
|
+
G,
|
|
85
132
|
{
|
|
133
|
+
panelRef: r.panelRef,
|
|
134
|
+
id: v,
|
|
135
|
+
onKeyDown: r.onPanelKeyDown,
|
|
86
136
|
query: e,
|
|
87
137
|
onRename: () => {
|
|
88
|
-
|
|
138
|
+
r.setOpen(!1), o(!0);
|
|
89
139
|
},
|
|
90
140
|
onTogglePinned: () => {
|
|
91
|
-
|
|
141
|
+
r.setOpen(!1), d(e.id);
|
|
92
142
|
},
|
|
93
143
|
onRemove: () => {
|
|
94
|
-
|
|
144
|
+
r.setOpen(!1), t(e.id);
|
|
95
145
|
}
|
|
96
146
|
}
|
|
97
147
|
);
|
|
98
|
-
return /* @__PURE__ */ n(
|
|
99
|
-
|
|
148
|
+
return /* @__PURE__ */ n(
|
|
149
|
+
"li",
|
|
100
150
|
{
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
children: [
|
|
118
|
-
e.pinned ? /* @__PURE__ */ n(
|
|
119
|
-
C,
|
|
120
|
-
{
|
|
121
|
-
className: "aegis-sqb__chip-star aegis-sqb__chip-star--on",
|
|
122
|
-
"aria-hidden": !0
|
|
123
|
-
}
|
|
124
|
-
) : null,
|
|
125
|
-
/* @__PURE__ */ n("span", { className: "aegis-sqb__chip-label", children: e.name })
|
|
126
|
-
]
|
|
127
|
-
}
|
|
128
|
-
),
|
|
129
|
-
/* @__PURE__ */ n(
|
|
130
|
-
f,
|
|
131
|
-
{
|
|
132
|
-
content: m,
|
|
133
|
-
trigger: "click",
|
|
134
|
-
open: a,
|
|
135
|
-
onOpenChange: c,
|
|
136
|
-
placement: "bottomRight",
|
|
137
|
-
arrow: !1,
|
|
138
|
-
classNames: { root: "aegis-sqb__popover" },
|
|
139
|
-
destroyOnHidden: !0,
|
|
140
|
-
children: /* @__PURE__ */ n(
|
|
151
|
+
className: "aegis-sqb__item",
|
|
152
|
+
"data-query-id": e.id,
|
|
153
|
+
onContextMenu: _,
|
|
154
|
+
children: u ? /* @__PURE__ */ n(
|
|
155
|
+
J,
|
|
156
|
+
{
|
|
157
|
+
initialName: e.name,
|
|
158
|
+
onSubmit: (g, h) => {
|
|
159
|
+
c(e.id, g), o(!1), h && i(e.id);
|
|
160
|
+
},
|
|
161
|
+
onCancel: (g) => {
|
|
162
|
+
o(!1), g && i(e.id);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
) : /* @__PURE__ */ b(j, { children: [
|
|
166
|
+
/* @__PURE__ */ b(
|
|
141
167
|
"button",
|
|
142
168
|
{
|
|
143
169
|
type: "button",
|
|
144
|
-
className: "aegis-
|
|
145
|
-
|
|
146
|
-
|
|
170
|
+
className: "aegis-sqb__chip",
|
|
171
|
+
onClick: N,
|
|
172
|
+
title: e.value,
|
|
173
|
+
children: [
|
|
174
|
+
e.pinned ? /* @__PURE__ */ n(
|
|
175
|
+
I,
|
|
176
|
+
{
|
|
177
|
+
className: "aegis-sqb__chip-star aegis-sqb__chip-star--on",
|
|
178
|
+
"aria-hidden": !0
|
|
179
|
+
}
|
|
180
|
+
) : null,
|
|
181
|
+
/* @__PURE__ */ n("span", { className: "aegis-sqb__chip-label", children: e.name })
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
),
|
|
185
|
+
/* @__PURE__ */ n(
|
|
186
|
+
k,
|
|
187
|
+
{
|
|
188
|
+
content: m,
|
|
189
|
+
trigger: "click",
|
|
190
|
+
open: r.open,
|
|
191
|
+
onOpenChange: r.setOpen,
|
|
192
|
+
placement: "bottomRight",
|
|
193
|
+
autoAdjustOverflow: E,
|
|
194
|
+
arrow: !1,
|
|
195
|
+
classNames: { root: "aegis-sqb__popover" },
|
|
196
|
+
destroyOnHidden: !0,
|
|
197
|
+
children: /* @__PURE__ */ n(
|
|
198
|
+
"button",
|
|
199
|
+
{
|
|
200
|
+
ref: r.triggerRef,
|
|
201
|
+
type: "button",
|
|
202
|
+
className: "aegis-sqb__menu-trigger",
|
|
203
|
+
"aria-label": a.moreActionsFor(e.name),
|
|
204
|
+
"aria-haspopup": "menu",
|
|
205
|
+
"aria-expanded": r.open,
|
|
206
|
+
"aria-controls": r.open ? v : void 0,
|
|
207
|
+
onKeyDown: r.onTriggerKeyDown,
|
|
208
|
+
children: /* @__PURE__ */ n(H, { "aria-hidden": !0 })
|
|
209
|
+
}
|
|
210
|
+
)
|
|
147
211
|
}
|
|
148
212
|
)
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
|
|
213
|
+
] })
|
|
214
|
+
}
|
|
215
|
+
);
|
|
152
216
|
}
|
|
153
|
-
function
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
217
|
+
function G({
|
|
218
|
+
panelRef: e,
|
|
219
|
+
id: l,
|
|
220
|
+
onKeyDown: c,
|
|
221
|
+
query: i,
|
|
222
|
+
onRename: t,
|
|
223
|
+
onTogglePinned: d,
|
|
224
|
+
onRemove: a
|
|
158
225
|
}) {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
226
|
+
const u = y();
|
|
227
|
+
return /* @__PURE__ */ b(
|
|
228
|
+
"div",
|
|
229
|
+
{
|
|
230
|
+
ref: e,
|
|
231
|
+
id: l,
|
|
232
|
+
className: "aegis-sqb__menu",
|
|
233
|
+
role: "menu",
|
|
234
|
+
tabIndex: -1,
|
|
235
|
+
onKeyDown: c,
|
|
236
|
+
children: [
|
|
237
|
+
/* @__PURE__ */ n(
|
|
238
|
+
"button",
|
|
239
|
+
{
|
|
240
|
+
type: "button",
|
|
241
|
+
role: "menuitem",
|
|
242
|
+
className: "aegis-sqb__menu-item",
|
|
243
|
+
onClick: t,
|
|
244
|
+
children: u.rename
|
|
245
|
+
}
|
|
246
|
+
),
|
|
247
|
+
/* @__PURE__ */ n(
|
|
248
|
+
"button",
|
|
249
|
+
{
|
|
250
|
+
type: "button",
|
|
251
|
+
role: "menuitem",
|
|
252
|
+
className: "aegis-sqb__menu-item",
|
|
253
|
+
onClick: d,
|
|
254
|
+
children: i.pinned ? u.unpin : u.pin
|
|
255
|
+
}
|
|
256
|
+
),
|
|
257
|
+
/* @__PURE__ */ n(
|
|
258
|
+
"button",
|
|
259
|
+
{
|
|
260
|
+
type: "button",
|
|
261
|
+
role: "menuitem",
|
|
262
|
+
className: "aegis-sqb__menu-item aegis-sqb__menu-item--danger",
|
|
263
|
+
onClick: a,
|
|
264
|
+
children: u.delete
|
|
265
|
+
}
|
|
266
|
+
)
|
|
267
|
+
]
|
|
268
|
+
}
|
|
269
|
+
);
|
|
191
270
|
}
|
|
192
|
-
function
|
|
193
|
-
const [t,
|
|
194
|
-
return
|
|
195
|
-
|
|
271
|
+
function J({ initialName: e, onSubmit: l, onCancel: c }) {
|
|
272
|
+
const i = y(), [t, d] = R(e), a = Q(null);
|
|
273
|
+
return D(() => {
|
|
274
|
+
a.current?.focus(), a.current?.select();
|
|
196
275
|
}, []), /* @__PURE__ */ n(
|
|
197
276
|
"input",
|
|
198
277
|
{
|
|
199
|
-
ref:
|
|
278
|
+
ref: a,
|
|
200
279
|
type: "text",
|
|
201
280
|
className: "aegis-sqb__rename-input",
|
|
202
281
|
value: t,
|
|
203
|
-
onChange: (
|
|
204
|
-
|
|
282
|
+
onChange: (o) => {
|
|
283
|
+
d(o.target.value);
|
|
205
284
|
},
|
|
206
|
-
onKeyDown: (
|
|
207
|
-
|
|
285
|
+
onKeyDown: (o) => {
|
|
286
|
+
o.key === "Enter" ? (o.preventDefault(), t.trim() !== "" ? l(t, !0) : c(!0)) : o.key === "Escape" && (o.preventDefault(), c(!0));
|
|
208
287
|
},
|
|
209
288
|
onBlur: () => {
|
|
210
|
-
t.trim() !== "" && t !== e ?
|
|
289
|
+
t.trim() !== "" && t !== e ? l(t, !1) : c(!1);
|
|
211
290
|
},
|
|
212
|
-
"aria-label":
|
|
291
|
+
"aria-label": i.renameSavedQuery
|
|
213
292
|
}
|
|
214
293
|
);
|
|
215
294
|
}
|
|
216
|
-
function
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
295
|
+
function X({
|
|
296
|
+
panelId: e,
|
|
297
|
+
items: l,
|
|
298
|
+
onApply: c,
|
|
299
|
+
onRemove: i,
|
|
220
300
|
onTogglePinned: t
|
|
221
301
|
}) {
|
|
222
|
-
const
|
|
223
|
-
|
|
302
|
+
const d = y(), a = T(), u = /* @__PURE__ */ n(
|
|
303
|
+
"div",
|
|
224
304
|
{
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
305
|
+
ref: a.panelRef,
|
|
306
|
+
id: e,
|
|
307
|
+
className: "aegis-sqb__menu aegis-sqb__menu--overflow",
|
|
308
|
+
role: "dialog",
|
|
309
|
+
"aria-label": d.moreSavedQueries,
|
|
310
|
+
tabIndex: -1,
|
|
311
|
+
children: /* @__PURE__ */ n("ul", { className: "aegis-sqb__overflow-list", children: l.map((o) => /* @__PURE__ */ n(
|
|
312
|
+
Y,
|
|
313
|
+
{
|
|
314
|
+
query: o,
|
|
315
|
+
onApply: () => {
|
|
316
|
+
a.close(), c(o);
|
|
317
|
+
},
|
|
318
|
+
onTogglePinned: () => {
|
|
319
|
+
a.setOpen(!1), t(o.id);
|
|
320
|
+
},
|
|
321
|
+
onRemove: () => {
|
|
322
|
+
i(o.id);
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
o.id
|
|
326
|
+
)) })
|
|
327
|
+
}
|
|
328
|
+
);
|
|
234
329
|
return /* @__PURE__ */ n("li", { className: "aegis-sqb__item", children: /* @__PURE__ */ n(
|
|
235
|
-
|
|
330
|
+
k,
|
|
236
331
|
{
|
|
237
|
-
content:
|
|
332
|
+
content: u,
|
|
238
333
|
trigger: "click",
|
|
239
|
-
open:
|
|
240
|
-
onOpenChange:
|
|
334
|
+
open: a.open,
|
|
335
|
+
onOpenChange: a.setOpen,
|
|
241
336
|
placement: "bottomRight",
|
|
337
|
+
autoAdjustOverflow: E,
|
|
242
338
|
arrow: !1,
|
|
243
339
|
classNames: { root: "aegis-sqb__popover" },
|
|
244
340
|
destroyOnHidden: !0,
|
|
245
|
-
children: /* @__PURE__ */
|
|
341
|
+
children: /* @__PURE__ */ n(
|
|
246
342
|
"button",
|
|
247
343
|
{
|
|
344
|
+
ref: a.triggerRef,
|
|
248
345
|
type: "button",
|
|
249
346
|
className: "aegis-sqb__chip aegis-sqb__chip--ghost",
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
]
|
|
347
|
+
"aria-haspopup": "dialog",
|
|
348
|
+
"aria-expanded": a.open,
|
|
349
|
+
"aria-controls": a.open ? e : void 0,
|
|
350
|
+
children: d.moreCount(l.length)
|
|
255
351
|
}
|
|
256
352
|
)
|
|
257
353
|
}
|
|
258
354
|
) });
|
|
259
355
|
}
|
|
260
|
-
function
|
|
356
|
+
function Y({
|
|
261
357
|
query: e,
|
|
262
|
-
onApply:
|
|
263
|
-
|
|
264
|
-
|
|
358
|
+
onApply: l,
|
|
359
|
+
onTogglePinned: c,
|
|
360
|
+
onRemove: i
|
|
265
361
|
}) {
|
|
266
|
-
|
|
362
|
+
const t = y();
|
|
363
|
+
return /* @__PURE__ */ b("li", { className: "aegis-sqb__overflow-row", "data-query-id": e.id, children: [
|
|
267
364
|
/* @__PURE__ */ n(
|
|
268
365
|
"button",
|
|
269
366
|
{
|
|
270
367
|
type: "button",
|
|
271
|
-
role: "menuitem",
|
|
272
368
|
className: "aegis-sqb__menu-item aegis-sqb__overflow-apply",
|
|
273
|
-
onClick:
|
|
369
|
+
onClick: l,
|
|
274
370
|
title: e.value,
|
|
275
371
|
children: e.name
|
|
276
372
|
}
|
|
@@ -280,11 +376,9 @@ function B({
|
|
|
280
376
|
{
|
|
281
377
|
type: "button",
|
|
282
378
|
className: "aegis-sqb__overflow-icon",
|
|
283
|
-
onClick:
|
|
284
|
-
|
|
285
|
-
},
|
|
286
|
-
"aria-label": e.pinned ? "Unpin" : "Pin",
|
|
287
|
-
children: e.pinned ? /* @__PURE__ */ n(C, { "aria-hidden": !0 }) : /* @__PURE__ */ n(x, { "aria-hidden": !0 })
|
|
379
|
+
onClick: c,
|
|
380
|
+
"aria-label": e.pinned ? t.unpinNamed(e.name) : t.pinNamed(e.name),
|
|
381
|
+
children: e.pinned ? /* @__PURE__ */ n(I, { "aria-hidden": !0 }) : /* @__PURE__ */ n(V, { "aria-hidden": !0 })
|
|
288
382
|
}
|
|
289
383
|
),
|
|
290
384
|
/* @__PURE__ */ n(
|
|
@@ -292,93 +386,97 @@ function B({
|
|
|
292
386
|
{
|
|
293
387
|
type: "button",
|
|
294
388
|
className: "aegis-sqb__overflow-icon aegis-sqb__overflow-icon--danger",
|
|
295
|
-
onClick:
|
|
296
|
-
|
|
297
|
-
},
|
|
298
|
-
"aria-label": `Delete ${e.name}`,
|
|
389
|
+
onClick: i,
|
|
390
|
+
"aria-label": t.deleteNamed(e.name),
|
|
299
391
|
children: "×"
|
|
300
392
|
}
|
|
301
393
|
)
|
|
302
394
|
] });
|
|
303
395
|
}
|
|
304
|
-
function
|
|
396
|
+
function Z({
|
|
305
397
|
disabled: e,
|
|
306
|
-
currentValue:
|
|
307
|
-
onSave:
|
|
398
|
+
currentValue: l,
|
|
399
|
+
onSave: c
|
|
308
400
|
}) {
|
|
309
|
-
const
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
401
|
+
const i = y(), t = T(), [d, a] = R(""), u = C(), o = C(), { open: r } = t, v = (m) => {
|
|
402
|
+
m && a(l.slice(0, 32)), t.setOpen(m);
|
|
403
|
+
}, N = (m) => {
|
|
404
|
+
m.preventDefault(), d.trim() !== "" && (c(d), t.close(), a(""));
|
|
405
|
+
}, _ = /* @__PURE__ */ b(
|
|
406
|
+
"form",
|
|
407
|
+
{
|
|
408
|
+
ref: t.panelRef,
|
|
409
|
+
id: o,
|
|
410
|
+
className: "aegis-sqb__save-form",
|
|
411
|
+
role: "dialog",
|
|
412
|
+
"aria-label": i.saveCurrentQuery,
|
|
413
|
+
tabIndex: -1,
|
|
414
|
+
onSubmit: N,
|
|
415
|
+
children: [
|
|
416
|
+
/* @__PURE__ */ n("label", { className: "aegis-sqb__save-label", htmlFor: u, children: i.savedQueryName }),
|
|
417
|
+
/* @__PURE__ */ n(
|
|
418
|
+
"input",
|
|
419
|
+
{
|
|
420
|
+
id: u,
|
|
421
|
+
type: "text",
|
|
422
|
+
className: "aegis-sqb__save-input",
|
|
423
|
+
value: d,
|
|
424
|
+
onChange: (m) => {
|
|
425
|
+
a(m.target.value);
|
|
426
|
+
},
|
|
427
|
+
onFocus: (m) => {
|
|
428
|
+
m.currentTarget.select();
|
|
429
|
+
},
|
|
430
|
+
placeholder: i.savedQueryNamePlaceholder
|
|
431
|
+
}
|
|
432
|
+
),
|
|
433
|
+
/* @__PURE__ */ b("div", { className: "aegis-sqb__save-actions", children: [
|
|
434
|
+
/* @__PURE__ */ n(
|
|
435
|
+
"button",
|
|
436
|
+
{
|
|
437
|
+
type: "button",
|
|
438
|
+
className: "aegis-sqb__save-cancel",
|
|
439
|
+
onClick: t.close,
|
|
440
|
+
children: i.cancel
|
|
441
|
+
}
|
|
442
|
+
),
|
|
443
|
+
/* @__PURE__ */ n(
|
|
444
|
+
"button",
|
|
445
|
+
{
|
|
446
|
+
type: "submit",
|
|
447
|
+
className: "aegis-sqb__save-submit",
|
|
448
|
+
disabled: d.trim() === "",
|
|
449
|
+
children: i.save
|
|
450
|
+
}
|
|
451
|
+
)
|
|
452
|
+
] })
|
|
453
|
+
]
|
|
319
454
|
}
|
|
320
|
-
|
|
321
|
-
const h = /* @__PURE__ */ u("form", { className: "aegis-sqb__save-form", onSubmit: (m) => {
|
|
322
|
-
m.preventDefault(), s.trim() !== "" && (l(s), r(!1), o(""));
|
|
323
|
-
}, children: [
|
|
324
|
-
/* @__PURE__ */ n("label", { className: "aegis-sqb__save-label", htmlFor: c, children: "Name this query" }),
|
|
325
|
-
/* @__PURE__ */ n(
|
|
326
|
-
"input",
|
|
327
|
-
{
|
|
328
|
-
id: c,
|
|
329
|
-
ref: a,
|
|
330
|
-
type: "text",
|
|
331
|
-
className: "aegis-sqb__save-input",
|
|
332
|
-
value: s,
|
|
333
|
-
onChange: (m) => {
|
|
334
|
-
o(m.target.value);
|
|
335
|
-
},
|
|
336
|
-
placeholder: "e.g. failed runs last 24h"
|
|
337
|
-
}
|
|
338
|
-
),
|
|
339
|
-
/* @__PURE__ */ u("div", { className: "aegis-sqb__save-actions", children: [
|
|
340
|
-
/* @__PURE__ */ n(
|
|
341
|
-
"button",
|
|
342
|
-
{
|
|
343
|
-
type: "button",
|
|
344
|
-
className: "aegis-sqb__save-cancel",
|
|
345
|
-
onClick: () => {
|
|
346
|
-
r(!1);
|
|
347
|
-
},
|
|
348
|
-
children: "Cancel"
|
|
349
|
-
}
|
|
350
|
-
),
|
|
351
|
-
/* @__PURE__ */ n(
|
|
352
|
-
"button",
|
|
353
|
-
{
|
|
354
|
-
type: "submit",
|
|
355
|
-
className: "aegis-sqb__save-submit",
|
|
356
|
-
disabled: s.trim() === "",
|
|
357
|
-
children: "Save"
|
|
358
|
-
}
|
|
359
|
-
)
|
|
360
|
-
] })
|
|
361
|
-
] });
|
|
455
|
+
);
|
|
362
456
|
return /* @__PURE__ */ n(
|
|
363
|
-
|
|
457
|
+
k,
|
|
364
458
|
{
|
|
365
|
-
content:
|
|
459
|
+
content: _,
|
|
366
460
|
trigger: "click",
|
|
367
|
-
open: e ? !1 :
|
|
368
|
-
onOpenChange:
|
|
461
|
+
open: e ? !1 : r,
|
|
462
|
+
onOpenChange: v,
|
|
369
463
|
placement: "bottomRight",
|
|
370
464
|
arrow: !1,
|
|
371
465
|
classNames: { root: "aegis-sqb__popover" },
|
|
372
466
|
destroyOnHidden: !0,
|
|
373
|
-
children: /* @__PURE__ */
|
|
467
|
+
children: /* @__PURE__ */ b(
|
|
374
468
|
"button",
|
|
375
469
|
{
|
|
470
|
+
ref: t.triggerRef,
|
|
376
471
|
type: "button",
|
|
377
472
|
className: "aegis-sqb__save-trigger",
|
|
378
473
|
disabled: e,
|
|
474
|
+
"aria-haspopup": "dialog",
|
|
475
|
+
"aria-expanded": r,
|
|
476
|
+
"aria-controls": r ? o : void 0,
|
|
379
477
|
children: [
|
|
380
|
-
/* @__PURE__ */ n(
|
|
381
|
-
/* @__PURE__ */ n("span", { children:
|
|
478
|
+
/* @__PURE__ */ n(L, { "aria-hidden": !0 }),
|
|
479
|
+
/* @__PURE__ */ n("span", { children: i.saveCurrent })
|
|
382
480
|
]
|
|
383
481
|
}
|
|
384
482
|
)
|
|
@@ -386,6 +484,6 @@ function F({
|
|
|
386
484
|
);
|
|
387
485
|
}
|
|
388
486
|
export {
|
|
389
|
-
|
|
487
|
+
re as SavedQueryBar
|
|
390
488
|
};
|
|
391
489
|
//# sourceMappingURL=SavedQueryBar.js.map
|