@burdenoff/microfe-bigconsole 2026.1011.10 → 2026.1012.1
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/README.md +19 -0
- package/dist/bigconsole/BigConsoleRoot.js +88 -82
- package/dist/bigconsole/BigConsoleRoutes.js +163 -136
- package/dist/bigconsole/assistant/assistantProduct.js +1 -4
- package/dist/bigconsole/assistant/pageContext.d.ts +0 -14
- package/dist/bigconsole/assistant/pageContext.js +1 -6
- package/dist/bigconsole/assistant/recordAdapters.js +26 -27
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +31 -31
- package/dist/bigconsole/components/common/index.d.ts +0 -1
- package/dist/bigconsole/components/common/index.js +0 -1
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +44 -44
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +36 -36
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +59 -59
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +58 -57
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +41 -41
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +34 -34
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +110 -110
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +21 -21
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +164 -173
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -101
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +31 -31
- package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.js +15 -15
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +165 -163
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +37 -37
- package/dist/bigconsole/components/datasink/AlertRuleEditor.js +66 -66
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
- package/dist/bigconsole/components/datasink/DataSinkCard.js +50 -51
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +47 -47
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +91 -91
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
- package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
- package/dist/bigconsole/components/parser/ImportParserDialog.js +120 -120
- package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +10 -10
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +76 -77
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +95 -96
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +4 -4
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +93 -93
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +499 -507
- package/dist/bigconsole/components/widgets/WidgetRegistry.js +0 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +4 -4
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
- package/dist/bigconsole/components/widgets/custom/CustomWidget.js +73 -131
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
- package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.d.ts +28 -9
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js +115 -42
- package/dist/bigconsole/components/widgets/iframe-widget/framePolicy.d.ts +20 -0
- package/dist/bigconsole/components/widgets/iframe-widget/framePolicy.js +10 -0
- package/dist/bigconsole/components/widgets/iframe-widget/index.d.ts +2 -1
- package/dist/bigconsole/components/widgets/iframe-widget/index.js +3 -2
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
- package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
- package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
- package/dist/bigconsole/components/widgets/text-widget/TextWidget.js +110 -27
- package/dist/bigconsole/components/widgets/text-widget/textData.d.ts +6 -0
- package/dist/bigconsole/components/widgets/text-widget/textData.js +17 -14
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
- package/dist/bigconsole/components/workflow/WorkflowOpenGuard.js +15 -15
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +15 -15
- package/dist/bigconsole/context/BigConsoleContext.d.ts +10 -0
- package/dist/bigconsole/context/BigConsoleContext.js +47 -30
- package/dist/bigconsole/context/index.d.ts +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +58 -49
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +74 -72
- package/dist/bigconsole/customWidget/proposalPreview.d.ts +5 -0
- package/dist/bigconsole/customWidget/proposalPreview.js +31 -0
- package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +0 -23
- package/dist/bigconsole/hooks/useDataSinkAlerts.js +113 -138
- package/dist/bigconsole/hooks/useDataSinkOperations.d.ts +7 -0
- package/dist/bigconsole/hooks/useDataSinkOperations.js +109 -98
- package/dist/bigconsole/hooks/useDataSinkSubscription.js +0 -1
- package/dist/bigconsole/hooks/useDrilldown.js +68 -67
- package/dist/bigconsole/hooks/useExportDataSink.js +1 -1
- package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
- package/dist/bigconsole/hooks/useImportDataSink.js +102 -90
- package/dist/bigconsole/pages/AdminPage.js +130 -130
- package/dist/bigconsole/pages/DashboardBuilderPage.js +60 -72
- package/dist/bigconsole/pages/DashboardViewPage.js +235 -258
- package/dist/bigconsole/pages/DashboardsPage.js +221 -269
- package/dist/bigconsole/pages/DataParsersPage.js +157 -180
- package/dist/bigconsole/pages/DataSinkAlertsPage.js +55 -62
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +318 -295
- package/dist/bigconsole/pages/DataSinkViewPage.js +256 -255
- package/dist/bigconsole/pages/DataSinksPage.js +216 -251
- package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
- package/dist/bigconsole/pages/InsightsPage.js +265 -279
- package/dist/bigconsole/pages/OverviewPage.js +47 -47
- package/dist/bigconsole/pages/ParserBuilderPage.js +213 -229
- package/dist/bigconsole/pages/ParserViewPage.js +97 -97
- package/dist/bigconsole/pages/PipelineBuilderPage.js +214 -256
- package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
- package/dist/bigconsole/pages/PipelinesPage.js +88 -107
- package/dist/bigconsole/pages/SettingsPage.js +173 -179
- package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
- package/dist/bigconsole/pages/WorkflowViewPage.js +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +141 -141
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +12 -12
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +235 -122
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.d.ts +6 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +151 -151
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
- package/dist/bigconsole/renderers/adapters/adaptiveCardContent.d.ts +29 -0
- package/dist/bigconsole/renderers/adapters/adaptiveCardContent.js +51 -0
- package/dist/bigconsole/store/widgetStore.d.ts +0 -12
- package/dist/bigconsole/store/widgetStore.js +1 -3
- package/dist/bigconsole/types/index.d.ts +17 -2
- package/dist/bigconsole/utils/backendError.d.ts +0 -18
- package/dist/bigconsole/utils/dataSinkPayload.d.ts +48 -0
- package/dist/bigconsole/utils/dataSinkPayload.js +38 -0
- package/dist/bigconsole/utils/index.d.ts +2 -0
- package/dist/bigconsole/utils/safeUrl.d.ts +79 -0
- package/dist/bigconsole/utils/safeUrl.js +93 -0
- package/dist/bigconsole/utils/sanitizeHtml.d.ts +16 -0
- package/dist/bigconsole/utils/sanitizeHtml.js +67 -0
- package/dist/bigconsole/workflowOpen.js +14 -15
- package/dist/generated/wspace-operations.d.ts +138 -8
- package/dist/generated/wspace-operations.js +281 -240
- package/dist/node_modules/dompurify/dist/purify.es.js +800 -0
- package/package.json +9 -5
- package/dist/bigconsole/assistant/displayCopy.d.ts +0 -32
- package/dist/bigconsole/assistant/pageControls.d.ts +0 -81
- package/dist/bigconsole/assistant/pageControls.js +0 -169
- package/dist/bigconsole/assistant/previewControl.d.ts +0 -16
- package/dist/bigconsole/assistant/previewControl.js +0 -10
- package/dist/bigconsole/assistant/usePreviewControl.d.ts +0 -2
- package/dist/bigconsole/assistant/usePreviewControl.js +0 -20
- package/dist/bigconsole/components/common/SortBySelect.d.ts +0 -11
- package/dist/bigconsole/components/common/SortBySelect.js +0 -29
- package/dist/bigconsole/constants/backendErrors.js +0 -94
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +0 -14
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +0 -32
- package/dist/bigconsole/utils/backendError.js +0 -42
- package/dist/bigconsole/utils/dashboardList.d.ts +0 -28
- package/dist/bigconsole/utils/dashboardList.js +0 -15
- package/dist/bigconsole/utils/dataSinkList.d.ts +0 -15
- package/dist/bigconsole/utils/dataSinkList.js +0 -15
- package/dist/bigconsole/utils/formDirty.d.ts +0 -82
- package/dist/bigconsole/utils/formDirty.js +0 -21
- package/dist/bigconsole/utils/insightsDraft.d.ts +0 -29
- package/dist/bigconsole/utils/insightsDraft.js +0 -8
- package/dist/bigconsole/utils/layoutBaseline.d.ts +0 -130
- package/dist/bigconsole/utils/layoutBaseline.js +0 -96
- package/dist/bigconsole/utils/listSort.d.ts +0 -80
- package/dist/bigconsole/utils/listSort.js +0 -85
- package/dist/bigconsole/utils/widgetFormDirty.d.ts +0 -16
- package/dist/bigconsole/utils/widgetFormDirty.js +0 -13
|
@@ -3,160 +3,131 @@ import { useAppNavigate as t } from "../contexts/NavigationContext.js";
|
|
|
3
3
|
import "../contexts/index.js";
|
|
4
4
|
import { SECTION_FOCUS_RING as n } from "../components/common/sectionStyles.js";
|
|
5
5
|
import { Section as r, SectionStack as ee } from "../components/common/Section.js";
|
|
6
|
-
import { SortBySelect as te } from "../components/common/SortBySelect.js";
|
|
7
6
|
import "../components/common/index.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
7
|
+
import te from "../hooks/useDataSinkOperations.js";
|
|
8
|
+
import ne from "../hooks/useExportDataSink.js";
|
|
10
9
|
import { BIGCONSOLE_PERMISSIONS as i } from "../../constants/permissions.js";
|
|
11
|
-
import
|
|
10
|
+
import re from "../components/datasink/DataSinkStatusBadge.js";
|
|
12
11
|
import { isNative as a, nativeNotify as o } from "../../utils/nativeBridge.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import { selectDataSinks as fe } from "../utils/dataSinkList.js";
|
|
21
|
-
import pe from "../components/datasink/SetupStateBadge.js";
|
|
12
|
+
import { hasDataSinkPayload as s } from "../utils/dataSinkPayload.js";
|
|
13
|
+
import { formatByteSize as ie } from "../utils/format.js";
|
|
14
|
+
import ae from "../components/datasink/DataSinkCard.js";
|
|
15
|
+
import oe from "../components/datasink/DataSinkDeleteDialog.js";
|
|
16
|
+
import se from "../components/datasink/DataSinkRefreshDialog.js";
|
|
17
|
+
import ce from "../components/datasink/ImportDataSinkDialog.js";
|
|
18
|
+
import le from "../components/datasink/SetupStateBadge.js";
|
|
22
19
|
import { memo as c, useCallback as l, useMemo as u, useState as d } from "react";
|
|
23
|
-
import { AccessDenied as
|
|
24
|
-
import { usePermissions as
|
|
25
|
-
import { AlertCircle as
|
|
26
|
-
import { AuroraBackground as
|
|
27
|
-
import { useI18n as Re } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
20
|
+
import { AccessDenied as ue, PermissionButton as de } from "@burdenoff/fe-libs/shared/components";
|
|
21
|
+
import { usePermissions as fe } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
22
|
+
import { AlertCircle as pe, Container as me, Download as he, Eye as ge, LayoutGrid as _e, Pencil as ve, Plus as ye, RefreshCw as be, Search as xe, Table2 as Se, Trash2 as Ce, Upload as we, X as Te } from "lucide-react";
|
|
23
|
+
import { AuroraBackground as Ee, Badge as De, Button as f, CTAOverflowMenu as Oe, GradientText as ke, IllustratedEmptyState as Ae, Input as je, PagePurpose as Me, Select as p, SelectContent as m, SelectItem as h, SelectTrigger as g, SelectValue as _, Spinner as Ne } from "@burdenoff/fe-libs/ui";
|
|
28
24
|
import { getProfileScopedKey as v } from "@burdenoff/fe-libs/shared/utils";
|
|
29
25
|
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
30
|
-
import {
|
|
26
|
+
import { useI18n as Pe } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
31
27
|
import { formatDistanceToNow as S } from "date-fns";
|
|
32
28
|
//#region src/bigconsole/pages/DataSinksPage.tsx
|
|
33
|
-
var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(--size-controlHeight-md)] items-center justify-center rounded-button border-0 bg-transparent text-text-muted hover:bg-bg-surface hover:text-text-primary motion-safe:transition-colors ${n}`, T = "focus-visible:ring-inset focus-visible:ring-offset-0",
|
|
29
|
+
var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(--size-controlHeight-md)] items-center justify-center rounded-button border-0 bg-transparent text-text-muted hover:bg-bg-surface hover:text-text-primary motion-safe:transition-colors ${n}`, T = "focus-visible:ring-inset focus-visible:ring-offset-0", Fe = (e) => e.setupState === "completed" || e.ttl !== null && e.ttl !== void 0 && e.ttl > 0 || e.fluidGridsWorkflowId && s(e) ? "completed" : e.fluidGridsWorkflowId ? "workflow_running" : "workflow_pending", Ie = (e) => {
|
|
34
30
|
if (!e) return "—";
|
|
35
31
|
let t = new Date(e);
|
|
36
32
|
return Number.isNaN(t.getTime()) ? "—" : S(t, { addSuffix: !0 });
|
|
37
33
|
}, E = c(function() {
|
|
38
|
-
let
|
|
39
|
-
let n =
|
|
34
|
+
let s = t(), { t: c } = Pe(), S = l((e, t) => {
|
|
35
|
+
let n = c(e);
|
|
40
36
|
return n === e ? t : n;
|
|
41
|
-
}, [
|
|
42
|
-
|
|
43
|
-
}, []), I = e((e) => e.statusFilter), L = e((e) => e.activeFilter), R = e((e) => e.searchQuery), z = e((e) => e.setStatusFilter), B = e((e) => e.setActiveFilter), V = e((e) => e.setSearchQuery),
|
|
37
|
+
}, [c]), { hasPermission: E, isLoading: Le } = fe(), Re = E(i.DATASINK_READ), D = E(i.DATASINK_CREATE), O = E(i.DATASINK_UPDATE), k = E(i.DATASINK_DELETE), A = E(i.DATASINK_EXECUTE), [j, M] = d("all"), [ze, N] = d(!1), [P, Be] = d(() => localStorage.getItem(v(C)) || "grid"), F = l((e) => {
|
|
38
|
+
Be(e), localStorage.setItem(v(C), e);
|
|
39
|
+
}, []), I = e((e) => e.statusFilter), L = e((e) => e.activeFilter), R = e((e) => e.searchQuery), z = e((e) => e.setStatusFilter), B = e((e) => e.setActiveFilter), V = e((e) => e.setSearchQuery), Ve = e((e) => e.deleteDialogOpen), He = e((e) => e.refreshDialogOpen), H = e((e) => e.currentDataSink), U = e((e) => e.openDeleteDialog), W = e((e) => e.closeDeleteDialog), G = e((e) => e.openRefreshDialog), K = e((e) => e.closeRefreshDialog), { loading: q, error: Ue, dataSinks: J, deleteDataSink: We, refreshDataSink: Ge, refetch: Y } = te(), { downloadDataSink: Ke } = ne(), qe = u(() => J.map((e) => ({
|
|
44
40
|
dataSink: e,
|
|
45
|
-
setupState:
|
|
46
|
-
})), [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
41
|
+
setupState: Fe(e)
|
|
42
|
+
})), [J]), X = u(() => {
|
|
43
|
+
let e = [...qe];
|
|
44
|
+
if (j === "in_progress" ? e = e.filter((e) => e.setupState !== "completed") : j === "completed" && (e = e.filter((e) => e.setupState === "completed")), I !== null && (e = e.filter((e) => e.dataSink.status === I)), L !== null && (e = e.filter((e) => e.dataSink.isActive === L)), R.trim()) {
|
|
45
|
+
let t = R.toLowerCase();
|
|
46
|
+
e = e.filter((e) => e.dataSink.name?.toLowerCase().includes(t) || e.dataSink.key.toLowerCase().includes(t) || e.dataSink.description?.toLowerCase().includes(t));
|
|
47
|
+
}
|
|
48
|
+
return e.sort((e, t) => new Date(t.dataSink.updatedAt).getTime() - new Date(e.dataSink.updatedAt).getTime());
|
|
49
|
+
}, [
|
|
50
|
+
qe,
|
|
51
|
+
j,
|
|
55
52
|
I,
|
|
56
53
|
L,
|
|
57
|
-
R
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
H && (await et({
|
|
54
|
+
R
|
|
55
|
+
]), Je = l(() => {
|
|
56
|
+
s("/datasinks/new");
|
|
57
|
+
}, [s]), Z = l((e) => {
|
|
58
|
+
s(`/datasinks/${e}`);
|
|
59
|
+
}, [s]), Ye = l((e) => {
|
|
60
|
+
s(`/datasinks/${e}/edit`);
|
|
61
|
+
}, [s]), Q = l((e) => {
|
|
62
|
+
let t = J.find((t) => t.id === e);
|
|
63
|
+
t && G(t);
|
|
64
|
+
}, [J, G]), Xe = l(async (e) => {
|
|
65
|
+
H && (await Ge({
|
|
70
66
|
id: H.id,
|
|
71
67
|
forceRefresh: e
|
|
72
|
-
}),
|
|
68
|
+
}), K());
|
|
73
69
|
}, [
|
|
74
70
|
H,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
]),
|
|
78
|
-
let t =
|
|
79
|
-
t &&
|
|
80
|
-
}, [
|
|
71
|
+
Ge,
|
|
72
|
+
K
|
|
73
|
+
]), Ze = l((e) => {
|
|
74
|
+
let t = J.find((t) => t.id === e);
|
|
75
|
+
t && U(t);
|
|
76
|
+
}, [J, U]), Qe = l(async () => {
|
|
81
77
|
if (H) {
|
|
82
78
|
try {
|
|
83
|
-
await
|
|
79
|
+
await We(H.id), a() && o("success");
|
|
84
80
|
} catch (e) {
|
|
85
81
|
throw a() && o("error"), e;
|
|
86
82
|
}
|
|
87
|
-
|
|
83
|
+
W();
|
|
88
84
|
}
|
|
89
85
|
}, [
|
|
90
86
|
H,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
]),
|
|
94
|
-
let t =
|
|
95
|
-
t && await
|
|
96
|
-
}, [
|
|
97
|
-
|
|
98
|
-
}, []),
|
|
99
|
-
|
|
100
|
-
}, [
|
|
101
|
-
|
|
87
|
+
We,
|
|
88
|
+
W
|
|
89
|
+
]), $e = l(async (e) => {
|
|
90
|
+
let t = J.find((t) => t.id === e);
|
|
91
|
+
t && await Ke(e, t.name || t.key);
|
|
92
|
+
}, [J, Ke]), et = l(() => {
|
|
93
|
+
N(!0);
|
|
94
|
+
}, []), tt = l((e, t, n) => {
|
|
95
|
+
Y();
|
|
96
|
+
}, [Y]), nt = u(() => j !== "all" || I !== null || L !== null || R.trim() !== "", [
|
|
97
|
+
j,
|
|
102
98
|
I,
|
|
103
99
|
L,
|
|
104
100
|
R
|
|
105
|
-
]),
|
|
106
|
-
|
|
101
|
+
]), $ = l(() => {
|
|
102
|
+
M("all"), z(null), B(null), V("");
|
|
107
103
|
}, [
|
|
108
104
|
z,
|
|
109
105
|
B,
|
|
110
106
|
V
|
|
111
|
-
]),
|
|
107
|
+
]), rt = [
|
|
112
108
|
{
|
|
113
109
|
value: "all",
|
|
114
|
-
label:
|
|
110
|
+
label: S("bigconsole.dataSinks.filters.setupState.all", "All")
|
|
115
111
|
},
|
|
116
112
|
{
|
|
117
113
|
value: "in_progress",
|
|
118
|
-
label:
|
|
114
|
+
label: S("bigconsole.dataSinks.filters.setupState.inProgress", "In Progress")
|
|
119
115
|
},
|
|
120
116
|
{
|
|
121
117
|
value: "completed",
|
|
122
|
-
label:
|
|
118
|
+
label: S("bigconsole.dataSinks.filters.setupState.completed", "Completed")
|
|
123
119
|
}
|
|
124
|
-
]
|
|
125
|
-
return
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
setupState: M,
|
|
129
|
-
setSetupState: N,
|
|
130
|
-
status: I,
|
|
131
|
-
setStatus: z,
|
|
132
|
-
active: L,
|
|
133
|
-
setActive: B,
|
|
134
|
-
setSearch: V,
|
|
135
|
-
sort: P,
|
|
136
|
-
setSort: We
|
|
137
|
-
}) : null, [
|
|
138
|
-
E,
|
|
139
|
-
O,
|
|
140
|
-
k,
|
|
141
|
-
K,
|
|
142
|
-
$,
|
|
143
|
-
M,
|
|
144
|
-
I,
|
|
145
|
-
z,
|
|
146
|
-
L,
|
|
147
|
-
B,
|
|
148
|
-
V,
|
|
149
|
-
P
|
|
150
|
-
])), !O && !k ? /* @__PURE__ */ b(me, {
|
|
151
|
-
title: E("bigconsole.dataSinks.accessDenied.title", "Access Denied"),
|
|
152
|
-
description: E("bigconsole.dataSinks.accessDenied.description", "You don't have permission to view data sinks.")
|
|
120
|
+
];
|
|
121
|
+
return !Le && !Re ? /* @__PURE__ */ b(ue, {
|
|
122
|
+
title: S("bigconsole.dataSinks.accessDenied.title", "Access Denied"),
|
|
123
|
+
description: S("bigconsole.dataSinks.accessDenied.description", "You don't have permission to view data sinks.")
|
|
153
124
|
}) : /* @__PURE__ */ x("div", {
|
|
154
125
|
className: "min-w-0",
|
|
155
126
|
style: { backgroundColor: "var(--color-bg-canvas)" },
|
|
156
127
|
children: [
|
|
157
128
|
/* @__PURE__ */ x("header", {
|
|
158
129
|
className: "relative overflow-hidden border-b border-[var(--color-border-seam)] bg-[image:var(--gradient-gloss-card)]",
|
|
159
|
-
children: [/* @__PURE__ */ b(
|
|
130
|
+
children: [/* @__PURE__ */ b(Ee, { intensity: "subtle" }), /* @__PURE__ */ b("div", {
|
|
160
131
|
style: { padding: "var(--space-pagePadding)" },
|
|
161
132
|
children: /* @__PURE__ */ x("div", {
|
|
162
133
|
style: {
|
|
@@ -184,7 +155,7 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
184
155
|
borderRadius: "var(--radius-card)",
|
|
185
156
|
backgroundColor: "var(--color-action-primary-bg)"
|
|
186
157
|
},
|
|
187
|
-
children: /* @__PURE__ */ b(
|
|
158
|
+
children: /* @__PURE__ */ b(me, { style: {
|
|
188
159
|
height: "var(--size-icon-lg)",
|
|
189
160
|
width: "var(--size-icon-lg)",
|
|
190
161
|
color: "var(--color-action-primary-text)"
|
|
@@ -193,26 +164,26 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
193
164
|
style: { minWidth: 0 },
|
|
194
165
|
children: [/* @__PURE__ */ b("h1", {
|
|
195
166
|
className: "m-0 text-2xl font-bold text-text-primary",
|
|
196
|
-
children: /* @__PURE__ */ b(
|
|
167
|
+
children: /* @__PURE__ */ b(ke, { children: S("bigconsole.dataSinks.title", "Data Sinks") })
|
|
197
168
|
}), /* @__PURE__ */ b("p", {
|
|
198
169
|
className: "m-0 text-sm text-text-secondary",
|
|
199
|
-
children:
|
|
170
|
+
children: S("bigconsole.dataSinks.subtitle", "Manage pre-processed data from FluidGrids workflows")
|
|
200
171
|
})]
|
|
201
172
|
})]
|
|
202
|
-
}), /* @__PURE__ */ b(
|
|
203
|
-
primary:
|
|
204
|
-
label:
|
|
205
|
-
onSelect:
|
|
206
|
-
icon: /* @__PURE__ */ b(
|
|
173
|
+
}), /* @__PURE__ */ b(Oe, {
|
|
174
|
+
primary: D ? {
|
|
175
|
+
label: S("bigconsole.dataSinks.actions.create", "Create Data Sink"),
|
|
176
|
+
onSelect: Je,
|
|
177
|
+
icon: /* @__PURE__ */ b(ye, { style: {
|
|
207
178
|
marginRight: "var(--space-iconGap)",
|
|
208
179
|
height: "var(--size-icon-sm)",
|
|
209
180
|
width: "var(--size-icon-sm)"
|
|
210
181
|
} })
|
|
211
182
|
} : void 0,
|
|
212
|
-
actions:
|
|
213
|
-
label:
|
|
214
|
-
onSelect:
|
|
215
|
-
icon: /* @__PURE__ */ b(
|
|
183
|
+
actions: D ? [{
|
|
184
|
+
label: S("bigconsole.dataSinks.actions.import", "Import"),
|
|
185
|
+
onSelect: et,
|
|
186
|
+
icon: /* @__PURE__ */ b(we, { style: {
|
|
216
187
|
height: "var(--size-icon-sm)",
|
|
217
188
|
width: "var(--size-icon-sm)"
|
|
218
189
|
} })
|
|
@@ -223,29 +194,29 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
223
194
|
}),
|
|
224
195
|
/* @__PURE__ */ x("div", {
|
|
225
196
|
style: { padding: "var(--space-pagePadding)" },
|
|
226
|
-
children: [/* @__PURE__ */ b(
|
|
197
|
+
children: [/* @__PURE__ */ b(Me, {
|
|
227
198
|
className: "mb-[var(--space-sectionGap)]",
|
|
228
199
|
children: "Data sinks are the structured destinations that hold your processed data — define a schema once and every pipeline, parser, and workflow can write into it. Dashboards then query sinks directly, so a sink is where your data lives and where your charts read from."
|
|
229
|
-
}), /* @__PURE__ */ b(ee, { children:
|
|
200
|
+
}), /* @__PURE__ */ b(ee, { children: Ue ? /* @__PURE__ */ b(r, {
|
|
230
201
|
tone: "danger",
|
|
231
202
|
headingLevel: 2,
|
|
232
|
-
title:
|
|
233
|
-
description:
|
|
234
|
-
icon: /* @__PURE__ */ b(
|
|
203
|
+
title: S("bigconsole.dataSinks.error.title", "Failed to load Data Sinks"),
|
|
204
|
+
description: Ue.message,
|
|
205
|
+
icon: /* @__PURE__ */ b(pe, { className: "h-icon-sm w-icon-sm" }),
|
|
235
206
|
actions: /* @__PURE__ */ b(f, {
|
|
236
207
|
size: "sm",
|
|
237
|
-
onClick: () =>
|
|
238
|
-
children:
|
|
208
|
+
onClick: () => Y(),
|
|
209
|
+
children: S("bigconsole.dataSinks.error.retry", "Try Again")
|
|
239
210
|
})
|
|
240
211
|
}) : /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(r, {
|
|
241
212
|
headingLevel: 2,
|
|
242
213
|
padding: "compact",
|
|
243
|
-
title:
|
|
244
|
-
description:
|
|
214
|
+
title: S("bigconsole.dataSinks.filters.heading", "Filters"),
|
|
215
|
+
description: S("bigconsole.dataSinks.filters.description", "Narrow the list by setup progress, status, or name."),
|
|
245
216
|
bodyClassName: "space-y-form-gap",
|
|
246
217
|
children: /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("div", {
|
|
247
218
|
role: "group",
|
|
248
|
-
"aria-label":
|
|
219
|
+
"aria-label": S("bigconsole.dataSinks.filters.setupState.label", "Setup state"),
|
|
249
220
|
style: {
|
|
250
221
|
display: "flex",
|
|
251
222
|
alignItems: "center",
|
|
@@ -257,10 +228,10 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
257
228
|
maxWidth: "100%",
|
|
258
229
|
width: "fit-content"
|
|
259
230
|
},
|
|
260
|
-
children:
|
|
231
|
+
children: rt.map((e) => /* @__PURE__ */ b("button", {
|
|
261
232
|
type: "button",
|
|
262
|
-
"aria-pressed":
|
|
263
|
-
onClick: () =>
|
|
233
|
+
"aria-pressed": j === e.value,
|
|
234
|
+
onClick: () => M(e.value),
|
|
264
235
|
className: n,
|
|
265
236
|
style: {
|
|
266
237
|
minHeight: "var(--size-controlHeight-md)",
|
|
@@ -270,9 +241,9 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
270
241
|
borderRadius: "var(--radius-button)",
|
|
271
242
|
border: "none",
|
|
272
243
|
cursor: "pointer",
|
|
273
|
-
backgroundColor:
|
|
274
|
-
color:
|
|
275
|
-
boxShadow:
|
|
244
|
+
backgroundColor: j === e.value ? "var(--color-bg-surface)" : "transparent",
|
|
245
|
+
color: j === e.value ? "var(--color-text-primary)" : "var(--color-text-secondary)",
|
|
246
|
+
boxShadow: j === e.value ? "var(--shadow-elevation-1)" : "none"
|
|
276
247
|
},
|
|
277
248
|
children: e.label
|
|
278
249
|
}, e.value))
|
|
@@ -291,7 +262,7 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
291
262
|
minWidth: "min(100%, 240px)",
|
|
292
263
|
flex: "1 1 240px"
|
|
293
264
|
},
|
|
294
|
-
children: [/* @__PURE__ */ b(
|
|
265
|
+
children: [/* @__PURE__ */ b(xe, { style: {
|
|
295
266
|
position: "absolute",
|
|
296
267
|
left: "var(--space-controlGap)",
|
|
297
268
|
top: "50%",
|
|
@@ -299,9 +270,9 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
299
270
|
height: "var(--size-icon-sm)",
|
|
300
271
|
width: "var(--size-icon-sm)",
|
|
301
272
|
color: "var(--color-text-muted)"
|
|
302
|
-
} }), /* @__PURE__ */ b(
|
|
273
|
+
} }), /* @__PURE__ */ b(je, {
|
|
303
274
|
type: "text",
|
|
304
|
-
placeholder:
|
|
275
|
+
placeholder: S("bigconsole.dataSinks.search.placeholder", "Search data sinks..."),
|
|
305
276
|
value: R,
|
|
306
277
|
onChange: (e) => V(e.target.value),
|
|
307
278
|
style: {
|
|
@@ -315,27 +286,27 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
315
286
|
onValueChange: (e) => z(e === "all" ? null : e),
|
|
316
287
|
children: [/* @__PURE__ */ b(g, {
|
|
317
288
|
style: { width: "min(100%, 150px)" },
|
|
318
|
-
children: /* @__PURE__ */ b(_, { placeholder:
|
|
289
|
+
children: /* @__PURE__ */ b(_, { placeholder: S("bigconsole.dataSinks.filters.status.placeholder", "All Statuses") })
|
|
319
290
|
}), /* @__PURE__ */ x(m, { children: [
|
|
320
291
|
/* @__PURE__ */ b(h, {
|
|
321
292
|
value: "all",
|
|
322
|
-
children:
|
|
293
|
+
children: S("bigconsole.dataSinks.filters.status.all", "All Statuses")
|
|
323
294
|
}),
|
|
324
295
|
/* @__PURE__ */ b(h, {
|
|
325
296
|
value: "ready",
|
|
326
|
-
children:
|
|
297
|
+
children: S("bigconsole.dataSinks.filters.status.ready", "Ready")
|
|
327
298
|
}),
|
|
328
299
|
/* @__PURE__ */ b(h, {
|
|
329
300
|
value: "error",
|
|
330
|
-
children:
|
|
301
|
+
children: S("bigconsole.dataSinks.filters.status.error", "Error")
|
|
331
302
|
}),
|
|
332
303
|
/* @__PURE__ */ b(h, {
|
|
333
304
|
value: "stale",
|
|
334
|
-
children:
|
|
305
|
+
children: S("bigconsole.dataSinks.filters.status.stale", "Stale")
|
|
335
306
|
}),
|
|
336
307
|
/* @__PURE__ */ b(h, {
|
|
337
308
|
value: "refreshing",
|
|
338
|
-
children:
|
|
309
|
+
children: S("bigconsole.dataSinks.filters.status.refreshing", "Refreshing")
|
|
339
310
|
})
|
|
340
311
|
] })]
|
|
341
312
|
}),
|
|
@@ -344,56 +315,50 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
344
315
|
onValueChange: (e) => B(e === "all" ? null : e === "true"),
|
|
345
316
|
children: [/* @__PURE__ */ b(g, {
|
|
346
317
|
style: { width: "min(100%, 130px)" },
|
|
347
|
-
children: /* @__PURE__ */ b(_, { placeholder:
|
|
318
|
+
children: /* @__PURE__ */ b(_, { placeholder: S("bigconsole.dataSinks.filters.active.placeholder", "All") })
|
|
348
319
|
}), /* @__PURE__ */ x(m, { children: [
|
|
349
320
|
/* @__PURE__ */ b(h, {
|
|
350
321
|
value: "all",
|
|
351
|
-
children:
|
|
322
|
+
children: S("bigconsole.dataSinks.filters.active.all", "All")
|
|
352
323
|
}),
|
|
353
324
|
/* @__PURE__ */ b(h, {
|
|
354
325
|
value: "true",
|
|
355
|
-
children:
|
|
326
|
+
children: S("bigconsole.dataSinks.filters.active.active", "Active")
|
|
356
327
|
}),
|
|
357
328
|
/* @__PURE__ */ b(h, {
|
|
358
329
|
value: "false",
|
|
359
|
-
children:
|
|
330
|
+
children: S("bigconsole.dataSinks.filters.active.inactive", "Inactive")
|
|
360
331
|
})
|
|
361
332
|
] })]
|
|
362
333
|
}),
|
|
363
|
-
/* @__PURE__ */
|
|
364
|
-
label: E(s.label.key, s.label.en),
|
|
365
|
-
value: P,
|
|
366
|
-
options: ft,
|
|
367
|
-
onChange: We
|
|
368
|
-
}),
|
|
369
|
-
dt && /* @__PURE__ */ x(f, {
|
|
334
|
+
nt && /* @__PURE__ */ x(f, {
|
|
370
335
|
variant: "ghost",
|
|
371
336
|
size: "sm",
|
|
372
|
-
onClick:
|
|
373
|
-
children: [/* @__PURE__ */ b(
|
|
337
|
+
onClick: $,
|
|
338
|
+
children: [/* @__PURE__ */ b(Te, { style: {
|
|
374
339
|
marginRight: "var(--space-iconGap)",
|
|
375
340
|
height: "var(--size-icon-sm)",
|
|
376
341
|
width: "var(--size-icon-sm)"
|
|
377
|
-
} }),
|
|
342
|
+
} }), S("bigconsole.dataSinks.filters.clear", "Clear Filters")]
|
|
378
343
|
})
|
|
379
344
|
]
|
|
380
345
|
})] })
|
|
381
346
|
}), /* @__PURE__ */ b(r, {
|
|
382
347
|
emphasis: "primary",
|
|
383
348
|
headingLevel: 2,
|
|
384
|
-
title:
|
|
385
|
-
description:
|
|
386
|
-
meta: /* @__PURE__ */ x(
|
|
349
|
+
title: S("bigconsole.dataSinks.list.heading", "Data sinks"),
|
|
350
|
+
description: S("bigconsole.dataSinks.list.description", "Every sink in this workspace, most recently updated first."),
|
|
351
|
+
meta: /* @__PURE__ */ x(De, {
|
|
387
352
|
variant: "secondary",
|
|
388
353
|
children: [
|
|
389
|
-
|
|
354
|
+
X.length,
|
|
390
355
|
" ",
|
|
391
|
-
|
|
356
|
+
X.length === 1 ? S("bigconsole.dataSinks.count.single", "Data Sink") : S("bigconsole.dataSinks.count.plural", "Data Sinks")
|
|
392
357
|
]
|
|
393
358
|
}),
|
|
394
359
|
actions: /* @__PURE__ */ x("div", {
|
|
395
360
|
role: "group",
|
|
396
|
-
"aria-label":
|
|
361
|
+
"aria-label": S("bigconsole.dataSinks.view.label", "List layout"),
|
|
397
362
|
style: {
|
|
398
363
|
display: "flex",
|
|
399
364
|
borderRadius: "var(--radius-button)",
|
|
@@ -402,99 +367,99 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
402
367
|
},
|
|
403
368
|
children: [/* @__PURE__ */ b("button", {
|
|
404
369
|
type: "button",
|
|
405
|
-
onClick: () =>
|
|
406
|
-
"aria-pressed":
|
|
407
|
-
title:
|
|
370
|
+
onClick: () => F("grid"),
|
|
371
|
+
"aria-pressed": P === "grid",
|
|
372
|
+
title: S("bigconsole.dataSinks.view.grid", "Grid view"),
|
|
408
373
|
className: `flex h-control-md w-[var(--size-controlHeight-md)] items-center justify-center ${n} ${T}`,
|
|
409
374
|
style: {
|
|
410
375
|
border: "none",
|
|
411
376
|
cursor: "pointer",
|
|
412
|
-
backgroundColor:
|
|
413
|
-
color:
|
|
377
|
+
backgroundColor: P === "grid" ? "var(--color-bg-sunken)" : "transparent",
|
|
378
|
+
color: P === "grid" ? "var(--color-text-primary)" : "var(--color-text-muted)"
|
|
414
379
|
},
|
|
415
|
-
children: /* @__PURE__ */ b(
|
|
380
|
+
children: /* @__PURE__ */ b(_e, { size: 16 })
|
|
416
381
|
}), /* @__PURE__ */ b("button", {
|
|
417
382
|
type: "button",
|
|
418
|
-
onClick: () =>
|
|
419
|
-
"aria-pressed":
|
|
420
|
-
title:
|
|
383
|
+
onClick: () => F("table"),
|
|
384
|
+
"aria-pressed": P === "table",
|
|
385
|
+
title: S("bigconsole.dataSinks.view.table", "Table view"),
|
|
421
386
|
className: `flex h-control-md w-[var(--size-controlHeight-md)] items-center justify-center ${n} ${T}`,
|
|
422
387
|
style: {
|
|
423
388
|
border: "none",
|
|
424
389
|
borderLeft: "1px solid var(--color-border)",
|
|
425
390
|
cursor: "pointer",
|
|
426
|
-
backgroundColor:
|
|
427
|
-
color:
|
|
391
|
+
backgroundColor: P === "table" ? "var(--color-bg-sunken)" : "transparent",
|
|
392
|
+
color: P === "table" ? "var(--color-text-primary)" : "var(--color-text-muted)"
|
|
428
393
|
},
|
|
429
|
-
children: /* @__PURE__ */ b(
|
|
394
|
+
children: /* @__PURE__ */ b(Se, { size: 16 })
|
|
430
395
|
})]
|
|
431
396
|
}),
|
|
432
397
|
children: /* @__PURE__ */ x(y, { children: [
|
|
433
|
-
|
|
398
|
+
q && J.length === 0 && /* @__PURE__ */ b("div", {
|
|
434
399
|
className: "flex items-center justify-center py-12",
|
|
435
400
|
children: /* @__PURE__ */ x("div", {
|
|
436
401
|
style: { textAlign: "center" },
|
|
437
|
-
children: [/* @__PURE__ */ b(
|
|
402
|
+
children: [/* @__PURE__ */ b(Ne, { style: {
|
|
438
403
|
height: "var(--size-icon-xl)",
|
|
439
404
|
width: "var(--size-icon-xl)",
|
|
440
405
|
margin: "0 auto var(--space-formGap)"
|
|
441
406
|
} }), /* @__PURE__ */ b("p", {
|
|
442
407
|
className: "text-sm text-text-muted",
|
|
443
|
-
children:
|
|
408
|
+
children: S("bigconsole.dataSinks.loading", "Loading data sinks...")
|
|
444
409
|
})]
|
|
445
410
|
})
|
|
446
411
|
}),
|
|
447
|
-
!
|
|
412
|
+
!q && J.length === 0 && /* @__PURE__ */ b(Ae, {
|
|
448
413
|
illustration: "empty-data",
|
|
449
|
-
title:
|
|
450
|
-
description:
|
|
451
|
-
action: /* @__PURE__ */ b(
|
|
414
|
+
title: S("bigconsole.dataSinks.empty.title", "No Data Sinks yet"),
|
|
415
|
+
description: S("bigconsole.dataSinks.empty.description", "Data Sinks store pre-processed data from FluidGrids workflows for fast access in widgets."),
|
|
416
|
+
action: /* @__PURE__ */ b(de, {
|
|
452
417
|
permission: i.DATASINK_CREATE,
|
|
453
418
|
deniedBehavior: "disable",
|
|
454
419
|
children: /* @__PURE__ */ x(f, {
|
|
455
|
-
onClick:
|
|
456
|
-
children: [/* @__PURE__ */ b(
|
|
420
|
+
onClick: Je,
|
|
421
|
+
children: [/* @__PURE__ */ b(ye, { style: {
|
|
457
422
|
marginRight: "var(--space-iconGap)",
|
|
458
423
|
height: "var(--size-icon-sm)",
|
|
459
424
|
width: "var(--size-icon-sm)"
|
|
460
|
-
} }),
|
|
425
|
+
} }), S("bigconsole.dataSinks.actions.create", "Create Data Sink")]
|
|
461
426
|
})
|
|
462
427
|
})
|
|
463
428
|
}),
|
|
464
|
-
!
|
|
429
|
+
!q && X.length === 0 && J.length > 0 && /* @__PURE__ */ b(r, {
|
|
465
430
|
tone: "info",
|
|
466
431
|
emphasis: "muted",
|
|
467
432
|
padding: "compact",
|
|
468
433
|
headingLevel: 3,
|
|
469
|
-
title:
|
|
470
|
-
description:
|
|
434
|
+
title: S("bigconsole.dataSinks.empty.filteredTitle", "No matching data sinks"),
|
|
435
|
+
description: S("bigconsole.dataSinks.empty.filtered", "No data sinks match your filters"),
|
|
471
436
|
actions: /* @__PURE__ */ b(f, {
|
|
472
437
|
variant: "secondary",
|
|
473
438
|
size: "sm",
|
|
474
|
-
onClick:
|
|
475
|
-
children:
|
|
439
|
+
onClick: $,
|
|
440
|
+
children: S("bigconsole.dataSinks.filters.clear", "Clear Filters")
|
|
476
441
|
})
|
|
477
442
|
}),
|
|
478
|
-
|
|
443
|
+
X.length > 0 && P === "grid" && /* @__PURE__ */ b("div", {
|
|
479
444
|
style: {
|
|
480
445
|
display: "grid",
|
|
481
446
|
gridTemplateColumns: "repeat(auto-fill, minmax(min(100%, 320px), 1fr))",
|
|
482
447
|
gap: "var(--space-formGap)"
|
|
483
448
|
},
|
|
484
|
-
children:
|
|
449
|
+
children: X.map((e) => /* @__PURE__ */ b(ae, {
|
|
485
450
|
dataSink: e.dataSink,
|
|
486
451
|
setupState: e.setupState,
|
|
487
|
-
onView:
|
|
488
|
-
onEdit:
|
|
489
|
-
onRefresh:
|
|
490
|
-
onExport:
|
|
491
|
-
onDelete:
|
|
492
|
-
canEdit:
|
|
493
|
-
canRefresh:
|
|
494
|
-
canDelete:
|
|
452
|
+
onView: Z,
|
|
453
|
+
onEdit: Ye,
|
|
454
|
+
onRefresh: Q,
|
|
455
|
+
onExport: $e,
|
|
456
|
+
onDelete: Ze,
|
|
457
|
+
canEdit: O,
|
|
458
|
+
canRefresh: A,
|
|
459
|
+
canDelete: k
|
|
495
460
|
}, e.dataSink.id))
|
|
496
461
|
}),
|
|
497
|
-
|
|
462
|
+
X.length > 0 && P === "table" && /* @__PURE__ */ b("div", {
|
|
498
463
|
className: "min-w-0",
|
|
499
464
|
style: { overflowX: "auto" },
|
|
500
465
|
children: /* @__PURE__ */ x("table", {
|
|
@@ -517,7 +482,7 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
517
482
|
color: "var(--color-text-secondary)",
|
|
518
483
|
whiteSpace: "nowrap"
|
|
519
484
|
},
|
|
520
|
-
children:
|
|
485
|
+
children: S("bigconsole.dataSinks.table.name", "Name")
|
|
521
486
|
}),
|
|
522
487
|
/* @__PURE__ */ b("th", {
|
|
523
488
|
style: {
|
|
@@ -527,7 +492,7 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
527
492
|
color: "var(--color-text-secondary)",
|
|
528
493
|
whiteSpace: "nowrap"
|
|
529
494
|
},
|
|
530
|
-
children:
|
|
495
|
+
children: S("bigconsole.dataSinks.table.key", "Key")
|
|
531
496
|
}),
|
|
532
497
|
/* @__PURE__ */ b("th", {
|
|
533
498
|
style: {
|
|
@@ -537,7 +502,7 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
537
502
|
color: "var(--color-text-secondary)",
|
|
538
503
|
whiteSpace: "nowrap"
|
|
539
504
|
},
|
|
540
|
-
children:
|
|
505
|
+
children: S("bigconsole.dataSinks.table.status", "Status")
|
|
541
506
|
}),
|
|
542
507
|
/* @__PURE__ */ b("th", {
|
|
543
508
|
style: {
|
|
@@ -547,7 +512,7 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
547
512
|
color: "var(--color-text-secondary)",
|
|
548
513
|
whiteSpace: "nowrap"
|
|
549
514
|
},
|
|
550
|
-
children:
|
|
515
|
+
children: S("bigconsole.dataSinks.table.setup", "Setup")
|
|
551
516
|
}),
|
|
552
517
|
/* @__PURE__ */ b("th", {
|
|
553
518
|
style: {
|
|
@@ -557,7 +522,7 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
557
522
|
color: "var(--color-text-secondary)",
|
|
558
523
|
whiteSpace: "nowrap"
|
|
559
524
|
},
|
|
560
|
-
children:
|
|
525
|
+
children: S("bigconsole.dataSinks.table.active", "Active")
|
|
561
526
|
}),
|
|
562
527
|
/* @__PURE__ */ b("th", {
|
|
563
528
|
style: {
|
|
@@ -567,7 +532,7 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
567
532
|
color: "var(--color-text-secondary)",
|
|
568
533
|
whiteSpace: "nowrap"
|
|
569
534
|
},
|
|
570
|
-
children:
|
|
535
|
+
children: S("bigconsole.dataSinks.table.version", "Version")
|
|
571
536
|
}),
|
|
572
537
|
/* @__PURE__ */ b("th", {
|
|
573
538
|
style: {
|
|
@@ -577,7 +542,7 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
577
542
|
color: "var(--color-text-secondary)",
|
|
578
543
|
whiteSpace: "nowrap"
|
|
579
544
|
},
|
|
580
|
-
children:
|
|
545
|
+
children: S("bigconsole.dataSinks.table.size", "Size")
|
|
581
546
|
}),
|
|
582
547
|
/* @__PURE__ */ b("th", {
|
|
583
548
|
style: {
|
|
@@ -587,7 +552,7 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
587
552
|
color: "var(--color-text-secondary)",
|
|
588
553
|
whiteSpace: "nowrap"
|
|
589
554
|
},
|
|
590
|
-
children:
|
|
555
|
+
children: S("bigconsole.dataSinks.table.lastRefreshed", "Last refreshed")
|
|
591
556
|
}),
|
|
592
557
|
/* @__PURE__ */ b("th", {
|
|
593
558
|
style: {
|
|
@@ -597,7 +562,7 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
597
562
|
color: "var(--color-text-secondary)",
|
|
598
563
|
whiteSpace: "nowrap"
|
|
599
564
|
},
|
|
600
|
-
children:
|
|
565
|
+
children: S("bigconsole.dataSinks.table.updated", "Updated")
|
|
601
566
|
}),
|
|
602
567
|
/* @__PURE__ */ b("th", {
|
|
603
568
|
style: {
|
|
@@ -607,13 +572,13 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
607
572
|
color: "var(--color-text-secondary)",
|
|
608
573
|
whiteSpace: "nowrap"
|
|
609
574
|
},
|
|
610
|
-
children:
|
|
575
|
+
children: S("bigconsole.dataSinks.table.actions", "Actions")
|
|
611
576
|
})
|
|
612
577
|
]
|
|
613
|
-
}) }), /* @__PURE__ */ b("tbody", { children:
|
|
578
|
+
}) }), /* @__PURE__ */ b("tbody", { children: X.map((e) => {
|
|
614
579
|
let t = e.dataSink;
|
|
615
580
|
return /* @__PURE__ */ x("tr", {
|
|
616
|
-
onClick: () =>
|
|
581
|
+
onClick: () => Z(t.id),
|
|
617
582
|
className: "cursor-pointer hover:bg-bg-sunken motion-safe:transition-colors",
|
|
618
583
|
style: { borderBottom: "1px solid var(--color-border)" },
|
|
619
584
|
children: [
|
|
@@ -644,11 +609,11 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
644
609
|
}),
|
|
645
610
|
/* @__PURE__ */ b("td", {
|
|
646
611
|
style: { padding: "10px 12px" },
|
|
647
|
-
children: /* @__PURE__ */ b(
|
|
612
|
+
children: /* @__PURE__ */ b(re, { status: t.status })
|
|
648
613
|
}),
|
|
649
614
|
/* @__PURE__ */ b("td", {
|
|
650
615
|
style: { padding: "10px 12px" },
|
|
651
|
-
children: /* @__PURE__ */ b(
|
|
616
|
+
children: /* @__PURE__ */ b(le, { state: e.setupState })
|
|
652
617
|
}),
|
|
653
618
|
/* @__PURE__ */ b("td", {
|
|
654
619
|
style: {
|
|
@@ -663,7 +628,7 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
663
628
|
borderRadius: "50%",
|
|
664
629
|
backgroundColor: t.isActive ? "var(--color-status-success-bg)" : "var(--color-text-muted)"
|
|
665
630
|
},
|
|
666
|
-
title: t.isActive ?
|
|
631
|
+
title: t.isActive ? S("bigconsole.dataSinks.badges.active", "Active") : S("bigconsole.dataSinks.badges.inactive", "Inactive")
|
|
667
632
|
})
|
|
668
633
|
}),
|
|
669
634
|
/* @__PURE__ */ x("td", {
|
|
@@ -681,7 +646,7 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
681
646
|
whiteSpace: "nowrap",
|
|
682
647
|
fontVariantNumeric: "tabular-nums"
|
|
683
648
|
},
|
|
684
|
-
children:
|
|
649
|
+
children: ie(t.sizeBytes)
|
|
685
650
|
}),
|
|
686
651
|
/* @__PURE__ */ b("td", {
|
|
687
652
|
style: {
|
|
@@ -690,7 +655,7 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
690
655
|
whiteSpace: "nowrap"
|
|
691
656
|
},
|
|
692
657
|
title: t.lastRefreshedAt ? new Date(t.lastRefreshedAt).toLocaleString() : void 0,
|
|
693
|
-
children:
|
|
658
|
+
children: Ie(t.lastRefreshedAt)
|
|
694
659
|
}),
|
|
695
660
|
/* @__PURE__ */ b("td", {
|
|
696
661
|
style: {
|
|
@@ -715,43 +680,43 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
715
680
|
children: [
|
|
716
681
|
/* @__PURE__ */ b("button", {
|
|
717
682
|
type: "button",
|
|
718
|
-
title:
|
|
719
|
-
"aria-label":
|
|
720
|
-
onClick: () =>
|
|
683
|
+
title: S("bigconsole.dataSinks.actions.view", "View"),
|
|
684
|
+
"aria-label": S("bigconsole.dataSinks.actions.view", "View"),
|
|
685
|
+
onClick: () => Z(t.id),
|
|
721
686
|
className: w,
|
|
722
|
-
children: /* @__PURE__ */ b(
|
|
687
|
+
children: /* @__PURE__ */ b(ge, { size: 14 })
|
|
723
688
|
}),
|
|
724
|
-
|
|
689
|
+
O && /* @__PURE__ */ b("button", {
|
|
725
690
|
type: "button",
|
|
726
|
-
title:
|
|
727
|
-
"aria-label":
|
|
728
|
-
onClick: () =>
|
|
691
|
+
title: S("bigconsole.dataSinks.actions.edit", "Edit"),
|
|
692
|
+
"aria-label": S("bigconsole.dataSinks.actions.edit", "Edit"),
|
|
693
|
+
onClick: () => Ye(t.id),
|
|
729
694
|
className: w,
|
|
730
|
-
children: /* @__PURE__ */ b(
|
|
695
|
+
children: /* @__PURE__ */ b(ve, { size: 14 })
|
|
731
696
|
}),
|
|
732
|
-
|
|
697
|
+
A && /* @__PURE__ */ b("button", {
|
|
733
698
|
type: "button",
|
|
734
|
-
title:
|
|
735
|
-
"aria-label":
|
|
736
|
-
onClick: () =>
|
|
699
|
+
title: S("bigconsole.dataSinks.actions.refresh", "Refresh"),
|
|
700
|
+
"aria-label": S("bigconsole.dataSinks.actions.refresh", "Refresh"),
|
|
701
|
+
onClick: () => Q(t.id),
|
|
737
702
|
className: w,
|
|
738
|
-
children: /* @__PURE__ */ b(
|
|
703
|
+
children: /* @__PURE__ */ b(be, { size: 14 })
|
|
739
704
|
}),
|
|
740
705
|
/* @__PURE__ */ b("button", {
|
|
741
706
|
type: "button",
|
|
742
|
-
title:
|
|
743
|
-
"aria-label":
|
|
744
|
-
onClick: () =>
|
|
707
|
+
title: S("bigconsole.dataSinks.actions.export", "Export"),
|
|
708
|
+
"aria-label": S("bigconsole.dataSinks.actions.export", "Export"),
|
|
709
|
+
onClick: () => $e(t.id),
|
|
745
710
|
className: w,
|
|
746
|
-
children: /* @__PURE__ */ b(
|
|
711
|
+
children: /* @__PURE__ */ b(he, { size: 14 })
|
|
747
712
|
}),
|
|
748
|
-
|
|
713
|
+
k && /* @__PURE__ */ b("button", {
|
|
749
714
|
type: "button",
|
|
750
|
-
title:
|
|
751
|
-
"aria-label":
|
|
752
|
-
onClick: () =>
|
|
715
|
+
title: S("bigconsole.dataSinks.actions.delete", "Delete"),
|
|
716
|
+
"aria-label": S("bigconsole.dataSinks.actions.delete", "Delete"),
|
|
717
|
+
onClick: () => Ze(t.id),
|
|
753
718
|
className: w,
|
|
754
|
-
children: /* @__PURE__ */ b(
|
|
719
|
+
children: /* @__PURE__ */ b(Ce, { size: 14 })
|
|
755
720
|
})
|
|
756
721
|
]
|
|
757
722
|
})
|
|
@@ -764,21 +729,21 @@ var C = "bigconsole-datasinks-view-mode", w = `inline-flex h-control-md w-[var(-
|
|
|
764
729
|
] })
|
|
765
730
|
})] }) })]
|
|
766
731
|
}),
|
|
767
|
-
H && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(
|
|
732
|
+
H && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(oe, {
|
|
768
733
|
dataSink: H,
|
|
769
|
-
isOpen:
|
|
770
|
-
onClose: U,
|
|
771
|
-
onConfirm: st
|
|
772
|
-
}), /* @__PURE__ */ b(ue, {
|
|
773
|
-
dataSink: H,
|
|
774
|
-
isOpen: Xe,
|
|
734
|
+
isOpen: Ve,
|
|
775
735
|
onClose: W,
|
|
776
|
-
onConfirm:
|
|
736
|
+
onConfirm: Qe
|
|
737
|
+
}), /* @__PURE__ */ b(se, {
|
|
738
|
+
dataSink: H,
|
|
739
|
+
isOpen: He,
|
|
740
|
+
onClose: K,
|
|
741
|
+
onConfirm: Xe
|
|
777
742
|
})] }),
|
|
778
|
-
/* @__PURE__ */ b(
|
|
779
|
-
isOpen:
|
|
780
|
-
onClose: () =>
|
|
781
|
-
onSuccess:
|
|
743
|
+
/* @__PURE__ */ b(ce, {
|
|
744
|
+
isOpen: ze,
|
|
745
|
+
onClose: () => N(!1),
|
|
746
|
+
onSuccess: tt
|
|
782
747
|
})
|
|
783
748
|
]
|
|
784
749
|
});
|