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