@burdenoff/microfe-bigconsole 2026.805.2 → 2026.805.3
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/components/builder/inspector/DataBindingSection.js +109 -113
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js.map +1 -1
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +115 -113
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +71 -62
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +90 -89
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +56 -54
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +126 -125
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +151 -150
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +77 -76
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +97 -96
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +172 -191
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +75 -83
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +151 -154
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +181 -190
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js.map +1 -1
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +110 -108
- package/dist/bigconsole/components/dashboard/WidgetPalette.js.map +1 -1
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +102 -103
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +36 -41
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +38 -37
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +113 -117
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +182 -197
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +166 -168
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/DataSinkSelector.js +87 -86
- package/dist/bigconsole/components/parser/DataSinkSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/ImportParserDialog.js +196 -211
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +130 -128
- package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +66 -63
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +95 -91
- package/dist/bigconsole/components/preview/AiPreviewPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +222 -215
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +149 -145
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +504 -470
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +44 -47
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +143 -142
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +101 -88
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js.map +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +135 -134
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js.map +1 -1
- package/dist/bigconsole/components/widgets/form/FormWidget.js +167 -159
- package/dist/bigconsole/components/widgets/form/FormWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +69 -68
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +64 -72
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +60 -59
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/list/ListConfig.js +57 -56
- package/dist/bigconsole/components/widgets/list/ListConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +70 -69
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +35 -34
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +20 -19
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js.map +1 -1
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +178 -177
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +76 -75
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.js +183 -168
- package/dist/bigconsole/components/widgets/table/TableConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +187 -180
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js.map +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +40 -38
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js.map +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +150 -148
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
- package/dist/bigconsole/pages/DashboardBuilderPage.js +181 -176
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +196 -192
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +223 -219
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +167 -170
- package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +204 -189
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +175 -169
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSourcesPage.js +8 -7
- package/dist/bigconsole/pages/DataSourcesPage.js.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.js +238 -208
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +464 -412
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +92 -90
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +221 -194
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +181 -184
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +128 -127
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +177 -172
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +121 -83
- package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +199 -193
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +129 -128
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +111 -109
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +127 -126
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +103 -103
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js.map +1 -1
- package/package.json +2 -1
|
@@ -15,16 +15,17 @@ import ce from "../components/datasink/WorkflowStatusPanel.js";
|
|
|
15
15
|
import le from "../components/datasink/ExportDataSinkDialog.js";
|
|
16
16
|
import ue from "../components/datasink/ImportDataGuideDialog.js";
|
|
17
17
|
import { memo as s, useCallback as c, useEffect as de, useState as l } from "react";
|
|
18
|
-
import { useParams as
|
|
19
|
-
import { AccessDenied as
|
|
20
|
-
import { usePermissions as
|
|
21
|
-
import { AlertCircle as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
18
|
+
import { useParams as fe } from "react-router";
|
|
19
|
+
import { AccessDenied as pe, PermissionButton as u } from "@burdenoff/fe-libs/shared/components";
|
|
20
|
+
import { usePermissions as me } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
21
|
+
import { AlertCircle as he, ArrowLeft as d, Code as ge, Database as f, Download as _e, Edit as ve, Eye as ye, EyeOff as be, Grid3X3 as xe, Loader2 as p, RefreshCw as Se, Trash2 as Ce, Upload as m } from "lucide-react";
|
|
22
|
+
import { useI18n as we } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
23
|
+
import { Button as h, Card as Te, CardContent as g, CardHeader as _, CardTitle as v, GlassCard as Ee, IllustratedEmptyState as De, NextSteps as Oe, PagePurpose as ke } from "@burdenoff/fe-libs/ui";
|
|
24
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
25
|
+
import { formatDistanceToNow as S } from "date-fns";
|
|
25
26
|
//#region src/bigconsole/pages/DataSinkViewPage.tsx
|
|
26
|
-
var
|
|
27
|
-
let { dataSinkId: s } =
|
|
27
|
+
var C = s(function() {
|
|
28
|
+
let { dataSinkId: s } = fe(), C = t(), { t: w } = we(), { hasPermission: Ae, isLoading: je } = me(), Me = Ae(r.DATASINK_READ), [T, E] = l(!1), [D, O] = l(!1), [k, A] = l(!1), [Ne, j] = l(!1), [Pe, M] = l(!1), [N, Fe] = l(null), [P, F] = l(!1), [I, L] = l("table"), [R, Ie] = l(100), [z, Le] = l(0), [B, Re] = l(null), [ze, Be] = l(!1), V = e((e) => s ? e.dataSinks.get(s) : void 0), { loading: Ve, error: H, fetchDataSink: U, getDataSinkData: W, refreshDataSink: G, updateDataSink: K, deleteDataSink: q } = te({ skipFetch: !0 });
|
|
28
29
|
ie({
|
|
29
30
|
dataSinkId: s,
|
|
30
31
|
enabled: !!s
|
|
@@ -32,10 +33,10 @@ var w = s(function() {
|
|
|
32
33
|
s && U(s);
|
|
33
34
|
}, [s, U]);
|
|
34
35
|
let J = c(() => {
|
|
35
|
-
|
|
36
|
-
}, [
|
|
37
|
-
|
|
38
|
-
}, [
|
|
36
|
+
C("/datasinks");
|
|
37
|
+
}, [C]), He = c(() => {
|
|
38
|
+
C(`/datasinks/${s}/edit`);
|
|
39
|
+
}, [C, s]), Y = c(async () => {
|
|
39
40
|
if (s) {
|
|
40
41
|
O(!0);
|
|
41
42
|
try {
|
|
@@ -44,18 +45,18 @@ var w = s(function() {
|
|
|
44
45
|
O(!1);
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
|
-
}, [s, G]),
|
|
48
|
+
}, [s, G]), Ue = c(async () => {
|
|
48
49
|
if (!s) return;
|
|
49
50
|
let e = await ne({
|
|
50
|
-
title: "Delete DataSink?",
|
|
51
|
-
message: "Are you sure you want to delete this DataSink?",
|
|
52
|
-
okButtonTitle: "Delete",
|
|
53
|
-
cancelButtonTitle: "Cancel"
|
|
51
|
+
title: w("bigconsole.dataSinks.view.deleteConfirmTitle", "Delete DataSink?"),
|
|
52
|
+
message: w("bigconsole.dataSinks.view.deleteConfirmMessage", "Are you sure you want to delete this DataSink?"),
|
|
53
|
+
okButtonTitle: w("bigconsole.dataSinks.view.delete", "Delete"),
|
|
54
|
+
cancelButtonTitle: w("bigconsole.dataSinks.view.cancel", "Cancel")
|
|
54
55
|
});
|
|
55
|
-
if (e === null ? window.confirm("Are you sure you want to delete this DataSink?") : e) {
|
|
56
|
+
if (e === null ? window.confirm(w("bigconsole.dataSinks.view.deleteConfirmMessage", "Are you sure you want to delete this DataSink?")) : e) {
|
|
56
57
|
re("medium"), A(!0);
|
|
57
58
|
try {
|
|
58
|
-
await q(s), a() && o("success"),
|
|
59
|
+
await q(s), a() && o("success"), C("/datasinks");
|
|
59
60
|
} catch {
|
|
60
61
|
a() && o("error");
|
|
61
62
|
} finally {
|
|
@@ -65,6 +66,7 @@ var w = s(function() {
|
|
|
65
66
|
}, [
|
|
66
67
|
s,
|
|
67
68
|
q,
|
|
69
|
+
C,
|
|
68
70
|
w
|
|
69
71
|
]), X = c(async (e, t) => {
|
|
70
72
|
if (s) {
|
|
@@ -74,7 +76,7 @@ var w = s(function() {
|
|
|
74
76
|
limit: t,
|
|
75
77
|
offset: e
|
|
76
78
|
});
|
|
77
|
-
n && (
|
|
79
|
+
n && (Fe(n.raw || {}), Re(typeof n.totalCount == "number" ? n.totalCount : null), Be(!!n.hasMore), Le(e));
|
|
78
80
|
} catch {} finally {
|
|
79
81
|
F(!1);
|
|
80
82
|
}
|
|
@@ -92,19 +94,19 @@ var w = s(function() {
|
|
|
92
94
|
T,
|
|
93
95
|
X,
|
|
94
96
|
R
|
|
95
|
-
]),
|
|
96
|
-
|
|
97
|
+
]), We = c((e) => {
|
|
98
|
+
Ie(e), X(0, e);
|
|
97
99
|
}, [X]), Q = c(() => {
|
|
98
100
|
j(!0);
|
|
99
|
-
}, []),
|
|
101
|
+
}, []), Ge = c(() => {
|
|
100
102
|
j(!1);
|
|
101
103
|
}, []), $ = c(() => {
|
|
102
104
|
M(!0);
|
|
103
|
-
}, []),
|
|
105
|
+
}, []), Ke = c(() => {
|
|
104
106
|
M(!1);
|
|
105
|
-
}, []),
|
|
106
|
-
M(!1),
|
|
107
|
-
}, [
|
|
107
|
+
}, []), qe = c(() => {
|
|
108
|
+
M(!1), C(n());
|
|
109
|
+
}, [C]), Je = c(async (e) => {
|
|
108
110
|
if (!V || !await K({
|
|
109
111
|
id: V.id,
|
|
110
112
|
version: V.version,
|
|
@@ -120,225 +122,225 @@ var w = s(function() {
|
|
|
120
122
|
X,
|
|
121
123
|
R
|
|
122
124
|
]);
|
|
123
|
-
return
|
|
125
|
+
return Ve && !V ? /* @__PURE__ */ b("div", {
|
|
124
126
|
className: "flex items-center justify-center min-h-[400px]",
|
|
125
|
-
children: /* @__PURE__ */
|
|
126
|
-
}) : H && !V ? /* @__PURE__ */
|
|
127
|
+
children: /* @__PURE__ */ b(p, { className: "w-8 h-8 text-text-secondary animate-spin" })
|
|
128
|
+
}) : H && !V ? /* @__PURE__ */ b("div", {
|
|
127
129
|
className: "flex items-center justify-center min-h-[400px] p-card-padding",
|
|
128
|
-
children: /* @__PURE__ */
|
|
130
|
+
children: /* @__PURE__ */ x("div", {
|
|
129
131
|
className: "text-center",
|
|
130
132
|
children: [
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ b(he, { className: "w-12 h-12 text-status-error-text mx-auto mb-4" }),
|
|
134
|
+
/* @__PURE__ */ b("p", {
|
|
133
135
|
className: "text-status-error-text text-body-sm font-medium mb-2",
|
|
134
|
-
children: "Failed to load DataSink"
|
|
136
|
+
children: w("bigconsole.dataSinks.view.loadError", "Failed to load DataSink")
|
|
135
137
|
}),
|
|
136
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ b("p", {
|
|
137
139
|
className: "text-text-tertiary text-body-xs mb-6",
|
|
138
140
|
children: H.message
|
|
139
141
|
}),
|
|
140
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ x(h, {
|
|
141
143
|
onClick: J,
|
|
142
144
|
variant: "ghost",
|
|
143
145
|
size: "sm",
|
|
144
|
-
children: [/* @__PURE__ */
|
|
146
|
+
children: [/* @__PURE__ */ b(d, { className: "w-4 h-4 mr-2" }), w("bigconsole.dataSinks.view.goBack", "Go back")]
|
|
145
147
|
})
|
|
146
148
|
]
|
|
147
149
|
})
|
|
148
|
-
}) : !
|
|
149
|
-
title: "Access Denied",
|
|
150
|
-
description: "You don't have permission to view this data sink."
|
|
151
|
-
}) : V ? /* @__PURE__ */
|
|
150
|
+
}) : !je && !Me ? /* @__PURE__ */ b(pe, {
|
|
151
|
+
title: w("bigconsole.dataSinks.view.accessDeniedTitle", "Access Denied"),
|
|
152
|
+
description: w("bigconsole.dataSinks.view.accessDeniedDescription", "You don't have permission to view this data sink.")
|
|
153
|
+
}) : V ? /* @__PURE__ */ x("div", {
|
|
152
154
|
className: "p-card-padding space-y-6",
|
|
153
155
|
children: [
|
|
154
|
-
/* @__PURE__ */
|
|
156
|
+
/* @__PURE__ */ x("div", {
|
|
155
157
|
className: "flex flex-col sm:flex-row sm:items-start sm:justify-between gap-4",
|
|
156
|
-
children: [/* @__PURE__ */
|
|
158
|
+
children: [/* @__PURE__ */ x("div", {
|
|
157
159
|
className: "flex-1",
|
|
158
160
|
children: [
|
|
159
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ x(h, {
|
|
160
162
|
onClick: J,
|
|
161
163
|
variant: "ghost",
|
|
162
164
|
size: "sm",
|
|
163
165
|
className: "mb-4",
|
|
164
|
-
children: [/* @__PURE__ */
|
|
166
|
+
children: [/* @__PURE__ */ b(d, { className: "w-4 h-4 mr-2" }), w("bigconsole.dataSinks.view.backToDataSinks", "Back to DataSinks")]
|
|
165
167
|
}),
|
|
166
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ x("div", {
|
|
167
169
|
className: "flex items-center gap-2 flex-wrap",
|
|
168
|
-
children: [/* @__PURE__ */
|
|
170
|
+
children: [/* @__PURE__ */ b("h1", {
|
|
169
171
|
className: "text-heading-h1 font-bold text-text-primary",
|
|
170
|
-
children: V.name || "Untitled"
|
|
171
|
-
}), /* @__PURE__ */
|
|
172
|
+
children: V.name || w("bigconsole.dataSinks.view.untitled", "Untitled")
|
|
173
|
+
}), /* @__PURE__ */ b(i, { status: V.status })]
|
|
172
174
|
}),
|
|
173
|
-
/* @__PURE__ */
|
|
175
|
+
/* @__PURE__ */ b("p", {
|
|
174
176
|
className: "text-body-sm text-text-tertiary font-mono mt-1",
|
|
175
177
|
children: V.key
|
|
176
178
|
}),
|
|
177
|
-
V.description && /* @__PURE__ */
|
|
179
|
+
V.description && /* @__PURE__ */ b("p", {
|
|
178
180
|
className: "text-body-sm text-text-secondary mt-2",
|
|
179
181
|
children: V.description
|
|
180
182
|
})
|
|
181
183
|
]
|
|
182
|
-
}), /* @__PURE__ */
|
|
184
|
+
}), /* @__PURE__ */ x("div", {
|
|
183
185
|
className: "flex items-center gap-2 flex-wrap",
|
|
184
186
|
children: [
|
|
185
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ b(u, {
|
|
186
188
|
permission: r.DATASINK_EXECUTE,
|
|
187
189
|
deniedBehavior: "disable",
|
|
188
|
-
children: /* @__PURE__ */
|
|
190
|
+
children: /* @__PURE__ */ x(h, {
|
|
189
191
|
onClick: Y,
|
|
190
192
|
disabled: D,
|
|
191
193
|
variant: "secondary",
|
|
192
194
|
size: "default",
|
|
193
|
-
children: [/* @__PURE__ */
|
|
195
|
+
children: [/* @__PURE__ */ b(Se, { className: `w-4 h-4 mr-2 ${D ? "animate-spin" : ""}` }), D ? w("bigconsole.dataSinks.view.refreshing", "Refreshing...") : w("bigconsole.dataSinks.view.refresh", "Refresh")]
|
|
194
196
|
})
|
|
195
197
|
}),
|
|
196
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ x(h, {
|
|
197
199
|
onClick: $,
|
|
198
200
|
variant: "secondary",
|
|
199
201
|
size: "default",
|
|
200
|
-
children: [/* @__PURE__ */
|
|
202
|
+
children: [/* @__PURE__ */ b(m, { className: "w-4 h-4 mr-2" }), w("bigconsole.dataSinks.view.importData", "Import Data")]
|
|
201
203
|
}),
|
|
202
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ x(h, {
|
|
203
205
|
onClick: Q,
|
|
204
206
|
variant: "secondary",
|
|
205
207
|
size: "default",
|
|
206
|
-
children: [/* @__PURE__ */
|
|
208
|
+
children: [/* @__PURE__ */ b(_e, { className: "w-4 h-4 mr-2" }), w("bigconsole.dataSinks.view.export", "Export")]
|
|
207
209
|
}),
|
|
208
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ b(u, {
|
|
209
211
|
permission: r.DATASINK_UPDATE,
|
|
210
212
|
deniedBehavior: "disable",
|
|
211
|
-
children: /* @__PURE__ */
|
|
212
|
-
onClick:
|
|
213
|
+
children: /* @__PURE__ */ x(h, {
|
|
214
|
+
onClick: He,
|
|
213
215
|
variant: "secondary",
|
|
214
216
|
size: "default",
|
|
215
|
-
children: [/* @__PURE__ */
|
|
217
|
+
children: [/* @__PURE__ */ b(ve, { className: "w-4 h-4 mr-2" }), w("bigconsole.dataSinks.view.edit", "Edit")]
|
|
216
218
|
})
|
|
217
219
|
}),
|
|
218
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ b(u, {
|
|
219
221
|
permission: r.DATASINK_DELETE,
|
|
220
222
|
deniedBehavior: "hide",
|
|
221
|
-
children: /* @__PURE__ */
|
|
222
|
-
onClick:
|
|
223
|
+
children: /* @__PURE__ */ x(h, {
|
|
224
|
+
onClick: Ue,
|
|
223
225
|
disabled: k,
|
|
224
226
|
variant: "destructive",
|
|
225
227
|
size: "default",
|
|
226
|
-
children: [/* @__PURE__ */
|
|
228
|
+
children: [/* @__PURE__ */ b(Ce, { className: "w-4 h-4 mr-2" }), k ? w("bigconsole.dataSinks.view.deleting", "Deleting...") : w("bigconsole.dataSinks.view.delete", "Delete")]
|
|
227
229
|
})
|
|
228
230
|
})
|
|
229
231
|
]
|
|
230
232
|
})]
|
|
231
233
|
}),
|
|
232
|
-
/* @__PURE__ */
|
|
233
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ b(ke, { children: w("bigconsole.dataSinks.view.pagePurpose", "A data sink is a structured store that holds your processed data and serves it to dashboards. From here you can inspect its schema and stats, preview the cached rows, refresh it from its linked workflow, or export it.") }),
|
|
235
|
+
/* @__PURE__ */ b(Oe, {
|
|
234
236
|
storageKey: "bigconsole-datasink-view",
|
|
235
237
|
steps: [
|
|
236
238
|
{
|
|
237
239
|
id: "preview",
|
|
238
|
-
label: "Preview the data",
|
|
239
|
-
description: "Open the cached rows to confirm the sink holds what you expect.",
|
|
240
|
+
label: w("bigconsole.dataSinks.view.nextSteps.previewLabel", "Preview the data"),
|
|
241
|
+
description: w("bigconsole.dataSinks.view.nextSteps.previewDescription", "Open the cached rows to confirm the sink holds what you expect."),
|
|
240
242
|
onClick: Z
|
|
241
243
|
},
|
|
242
244
|
{
|
|
243
245
|
id: "refresh",
|
|
244
|
-
label: "Refresh from source",
|
|
245
|
-
description: "Re-run the linked workflow to pull the latest data.",
|
|
246
|
+
label: w("bigconsole.dataSinks.view.nextSteps.refreshLabel", "Refresh from source"),
|
|
247
|
+
description: w("bigconsole.dataSinks.view.nextSteps.refreshDescription", "Re-run the linked workflow to pull the latest data."),
|
|
246
248
|
onClick: Y
|
|
247
249
|
},
|
|
248
250
|
{
|
|
249
251
|
id: "build-dashboard",
|
|
250
|
-
label: "Visualize it on a dashboard",
|
|
251
|
-
description: "Add widgets that query this sink to see your data live.",
|
|
252
|
-
onClick: () =>
|
|
252
|
+
label: w("bigconsole.dataSinks.view.nextSteps.dashboardLabel", "Visualize it on a dashboard"),
|
|
253
|
+
description: w("bigconsole.dataSinks.view.nextSteps.dashboardDescription", "Add widgets that query this sink to see your data live."),
|
|
254
|
+
onClick: () => C("/dashboards")
|
|
253
255
|
},
|
|
254
256
|
{
|
|
255
257
|
id: "export",
|
|
256
|
-
label: "Export the data",
|
|
257
|
-
description: "Download the contents for use elsewhere.",
|
|
258
|
+
label: w("bigconsole.dataSinks.view.nextSteps.exportLabel", "Export the data"),
|
|
259
|
+
description: w("bigconsole.dataSinks.view.nextSteps.exportDescription", "Download the contents for use elsewhere."),
|
|
258
260
|
onClick: Q
|
|
259
261
|
}
|
|
260
262
|
]
|
|
261
263
|
}),
|
|
262
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ x("div", {
|
|
263
265
|
className: "grid gap-6 md:grid-cols-2",
|
|
264
266
|
children: [
|
|
265
|
-
/* @__PURE__ */
|
|
267
|
+
/* @__PURE__ */ x(Ee, {
|
|
266
268
|
treatment: "glass",
|
|
267
269
|
glow: !0,
|
|
268
|
-
children: [/* @__PURE__ */
|
|
270
|
+
children: [/* @__PURE__ */ b(_, { children: /* @__PURE__ */ b(v, { children: w("bigconsole.dataSinks.view.details", "Details") }) }), /* @__PURE__ */ b(g, { children: /* @__PURE__ */ x("dl", {
|
|
269
271
|
className: "space-y-4 text-body-sm",
|
|
270
272
|
children: [
|
|
271
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ x("div", {
|
|
272
274
|
className: "flex justify-between items-center",
|
|
273
|
-
children: [/* @__PURE__ */
|
|
275
|
+
children: [/* @__PURE__ */ b("dt", {
|
|
274
276
|
className: "text-text-secondary",
|
|
275
|
-
children: "Status"
|
|
276
|
-
}), /* @__PURE__ */
|
|
277
|
+
children: w("bigconsole.dataSinks.view.status", "Status")
|
|
278
|
+
}), /* @__PURE__ */ b("dd", { children: /* @__PURE__ */ b(i, { status: V.status }) })]
|
|
277
279
|
}),
|
|
278
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ x("div", {
|
|
279
281
|
className: "flex justify-between items-center",
|
|
280
|
-
children: [/* @__PURE__ */
|
|
282
|
+
children: [/* @__PURE__ */ b("dt", {
|
|
281
283
|
className: "text-text-secondary",
|
|
282
|
-
children: "Cache TTL"
|
|
283
|
-
}), /* @__PURE__ */
|
|
284
|
+
children: w("bigconsole.dataSinks.view.cacheTtl", "Cache TTL")
|
|
285
|
+
}), /* @__PURE__ */ b("dd", {
|
|
284
286
|
className: "text-text-primary font-medium",
|
|
285
|
-
children: V.ttl ? `${V.ttl}s` : "None"
|
|
287
|
+
children: V.ttl ? `${V.ttl}s` : w("bigconsole.dataSinks.view.none", "None")
|
|
286
288
|
})]
|
|
287
289
|
}),
|
|
288
|
-
/* @__PURE__ */
|
|
290
|
+
/* @__PURE__ */ x("div", {
|
|
289
291
|
className: "flex justify-between items-center",
|
|
290
|
-
children: [/* @__PURE__ */
|
|
292
|
+
children: [/* @__PURE__ */ b("dt", {
|
|
291
293
|
className: "text-text-secondary",
|
|
292
|
-
children: "Refresh Type"
|
|
293
|
-
}), /* @__PURE__ */
|
|
294
|
+
children: w("bigconsole.dataSinks.view.refreshType", "Refresh Type")
|
|
295
|
+
}), /* @__PURE__ */ b("dd", {
|
|
294
296
|
className: "text-text-primary font-medium capitalize",
|
|
295
|
-
children: V.refresh?.type || "Manual"
|
|
297
|
+
children: V.refresh?.type || w("bigconsole.dataSinks.view.manual", "Manual")
|
|
296
298
|
})]
|
|
297
299
|
}),
|
|
298
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ x("div", {
|
|
299
301
|
className: "flex justify-between items-center",
|
|
300
|
-
children: [/* @__PURE__ */
|
|
302
|
+
children: [/* @__PURE__ */ b("dt", {
|
|
301
303
|
className: "text-text-secondary",
|
|
302
|
-
children: "Size"
|
|
303
|
-
}), /* @__PURE__ */
|
|
304
|
+
children: w("bigconsole.dataSinks.view.size", "Size")
|
|
305
|
+
}), /* @__PURE__ */ b("dd", {
|
|
304
306
|
className: "text-text-primary font-medium",
|
|
305
307
|
children: V.sizeBytes ? `${(V.sizeBytes / 1024).toFixed(2)} KB` : "0 KB"
|
|
306
308
|
})]
|
|
307
309
|
}),
|
|
308
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ x("div", {
|
|
309
311
|
className: "flex justify-between items-center",
|
|
310
|
-
children: [/* @__PURE__ */
|
|
312
|
+
children: [/* @__PURE__ */ b("dt", {
|
|
311
313
|
className: "text-text-secondary",
|
|
312
|
-
children: "Version"
|
|
313
|
-
}), /* @__PURE__ */
|
|
314
|
+
children: w("bigconsole.dataSinks.view.version", "Version")
|
|
315
|
+
}), /* @__PURE__ */ b("dd", {
|
|
314
316
|
className: "text-text-primary font-medium",
|
|
315
317
|
children: V.version || 1
|
|
316
318
|
})]
|
|
317
319
|
}),
|
|
318
|
-
/* @__PURE__ */
|
|
320
|
+
/* @__PURE__ */ x("div", {
|
|
319
321
|
className: "flex justify-between items-center",
|
|
320
|
-
children: [/* @__PURE__ */
|
|
322
|
+
children: [/* @__PURE__ */ b("dt", {
|
|
321
323
|
className: "text-text-secondary",
|
|
322
|
-
children: "Last Refreshed"
|
|
323
|
-
}), /* @__PURE__ */
|
|
324
|
+
children: w("bigconsole.dataSinks.view.lastRefreshed", "Last Refreshed")
|
|
325
|
+
}), /* @__PURE__ */ b("dd", {
|
|
324
326
|
className: "text-text-primary font-medium",
|
|
325
|
-
children: V.lastRefreshedAt ?
|
|
327
|
+
children: V.lastRefreshedAt ? S(new Date(V.lastRefreshedAt), { addSuffix: !0 }) : w("bigconsole.dataSinks.view.never", "Never")
|
|
326
328
|
})]
|
|
327
329
|
}),
|
|
328
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ x("div", {
|
|
329
331
|
className: "flex justify-between items-center",
|
|
330
|
-
children: [/* @__PURE__ */
|
|
332
|
+
children: [/* @__PURE__ */ b("dt", {
|
|
331
333
|
className: "text-text-secondary",
|
|
332
|
-
children: "Created"
|
|
333
|
-
}), /* @__PURE__ */
|
|
334
|
+
children: w("bigconsole.dataSinks.view.created", "Created")
|
|
335
|
+
}), /* @__PURE__ */ b("dd", {
|
|
334
336
|
className: "text-text-primary font-medium",
|
|
335
|
-
children:
|
|
337
|
+
children: S(new Date(V.createdAt), { addSuffix: !0 })
|
|
336
338
|
})]
|
|
337
339
|
})
|
|
338
340
|
]
|
|
339
341
|
}) })]
|
|
340
342
|
}),
|
|
341
|
-
V.fluidGridsWorkflowId && /* @__PURE__ */
|
|
343
|
+
V.fluidGridsWorkflowId && /* @__PURE__ */ b(ce, {
|
|
342
344
|
workflowId: V.fluidGridsWorkflowId,
|
|
343
345
|
executionId: V.fluidGridsWorkflowExecutionId || void 0,
|
|
344
346
|
lastRefreshedAt: V.lastRefreshedAt || void 0,
|
|
@@ -348,138 +350,142 @@ var w = s(function() {
|
|
|
348
350
|
disabled: D,
|
|
349
351
|
isRerunning: D
|
|
350
352
|
}),
|
|
351
|
-
/* @__PURE__ */
|
|
352
|
-
/* @__PURE__ */
|
|
353
|
+
/* @__PURE__ */ b(oe, { workflowLinks: V.workflowLinks }),
|
|
354
|
+
/* @__PURE__ */ b(se, { dataSinkKey: V.key })
|
|
353
355
|
]
|
|
354
356
|
}),
|
|
355
|
-
/* @__PURE__ */
|
|
356
|
-
/* @__PURE__ */
|
|
357
|
+
/* @__PURE__ */ x(Te, { children: [
|
|
358
|
+
/* @__PURE__ */ x(_, {
|
|
357
359
|
className: "flex flex-row items-center justify-between space-y-0",
|
|
358
|
-
children: [/* @__PURE__ */
|
|
360
|
+
children: [/* @__PURE__ */ x(v, {
|
|
359
361
|
className: "flex items-center gap-2",
|
|
360
|
-
children: [/* @__PURE__ */
|
|
361
|
-
}), /* @__PURE__ */
|
|
362
|
+
children: [/* @__PURE__ */ b(f, { className: "w-4 h-4 text-text-secondary" }), w("bigconsole.dataSinks.view.dataPreview", "Data Preview")]
|
|
363
|
+
}), /* @__PURE__ */ x("div", {
|
|
362
364
|
className: "flex items-center gap-2",
|
|
363
|
-
children: [T && /* @__PURE__ */
|
|
365
|
+
children: [T && /* @__PURE__ */ x("div", {
|
|
364
366
|
className: "flex items-center border border-border-default rounded-md overflow-hidden",
|
|
365
|
-
children: [/* @__PURE__ */
|
|
367
|
+
children: [/* @__PURE__ */ b("button", {
|
|
366
368
|
type: "button",
|
|
367
369
|
onClick: () => L("table"),
|
|
368
370
|
className: `p-1.5 ${I === "table" ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:text-text-primary"}`,
|
|
369
|
-
title: "Table view",
|
|
370
|
-
children: /* @__PURE__ */
|
|
371
|
-
}), /* @__PURE__ */
|
|
371
|
+
title: w("bigconsole.dataSinks.view.tableView", "Table view"),
|
|
372
|
+
children: /* @__PURE__ */ b(xe, { className: "w-4 h-4" })
|
|
373
|
+
}), /* @__PURE__ */ b("button", {
|
|
372
374
|
type: "button",
|
|
373
375
|
onClick: () => L("json"),
|
|
374
376
|
className: `p-1.5 ${I === "json" ? "bg-bg-sunken text-text-primary" : "text-text-secondary hover:text-text-primary"}`,
|
|
375
|
-
title: "JSON view",
|
|
376
|
-
children: /* @__PURE__ */
|
|
377
|
+
title: w("bigconsole.dataSinks.view.jsonView", "JSON view"),
|
|
378
|
+
children: /* @__PURE__ */ b(ge, { className: "w-4 h-4" })
|
|
377
379
|
})]
|
|
378
|
-
}), /* @__PURE__ */
|
|
380
|
+
}), /* @__PURE__ */ b(h, {
|
|
379
381
|
onClick: Z,
|
|
380
382
|
disabled: P,
|
|
381
383
|
variant: T ? "secondary" : "default",
|
|
382
384
|
size: "sm",
|
|
383
|
-
children: P ? /* @__PURE__ */
|
|
385
|
+
children: P ? /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(p, { className: "w-4 h-4 mr-2 animate-spin" }), w("bigconsole.dataSinks.view.loading", "Loading...")] }) : T ? /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(be, { className: "w-4 h-4 mr-2" }), w("bigconsole.dataSinks.view.hideData", "Hide Data")] }) : /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(ye, { className: "w-4 h-4 mr-2" }), w("bigconsole.dataSinks.view.showData", "Show Data")] })
|
|
384
386
|
})]
|
|
385
387
|
})]
|
|
386
388
|
}),
|
|
387
|
-
T && N && /* @__PURE__ */
|
|
389
|
+
T && N && /* @__PURE__ */ x(g, { children: [b(I === "table" ? ee : ae, {
|
|
388
390
|
data: N,
|
|
389
391
|
maxHeight: "400px"
|
|
390
|
-
}), B !== null && /* @__PURE__ */
|
|
392
|
+
}), B !== null && /* @__PURE__ */ x("div", {
|
|
391
393
|
className: "flex items-center justify-between gap-4 mt-4 pt-4 border-t border-border-subtle",
|
|
392
|
-
children: [/* @__PURE__ */
|
|
394
|
+
children: [/* @__PURE__ */ x("div", {
|
|
393
395
|
className: "flex items-center gap-2 text-body-sm text-text-secondary",
|
|
394
|
-
children: [/* @__PURE__ */
|
|
395
|
-
"aria-label": "Rows per page",
|
|
396
|
+
children: [/* @__PURE__ */ b("span", { children: w("bigconsole.dataSinks.view.rowsPerPage", "Rows per page") }), /* @__PURE__ */ b("select", {
|
|
397
|
+
"aria-label": w("bigconsole.dataSinks.view.rowsPerPage", "Rows per page"),
|
|
396
398
|
className: "bg-bg-canvas border border-border-default rounded px-2 py-0.5 text-text-primary",
|
|
397
399
|
value: R,
|
|
398
|
-
onChange: (e) =>
|
|
400
|
+
onChange: (e) => We(Number(e.target.value)),
|
|
399
401
|
children: [
|
|
400
402
|
100,
|
|
401
403
|
500,
|
|
402
404
|
1e3
|
|
403
|
-
].map((e) => /* @__PURE__ */
|
|
405
|
+
].map((e) => /* @__PURE__ */ b("option", {
|
|
404
406
|
value: e,
|
|
405
407
|
children: e
|
|
406
408
|
}, e))
|
|
407
409
|
})]
|
|
408
|
-
}), /* @__PURE__ */
|
|
410
|
+
}), /* @__PURE__ */ x("div", {
|
|
409
411
|
className: "flex items-center gap-4 text-body-sm text-text-secondary",
|
|
410
412
|
children: [
|
|
411
|
-
/* @__PURE__ */
|
|
412
|
-
|
|
413
|
+
/* @__PURE__ */ b("span", { children: B === 0 ? w("bigconsole.dataSinks.view.zeroRows", "0 rows") : w("bigconsole.dataSinks.view.rowRange", "{{start}}–{{end}} of {{total}}", {
|
|
414
|
+
start: z + 1,
|
|
415
|
+
end: Math.min(z + R, B),
|
|
416
|
+
total: B
|
|
417
|
+
}) }),
|
|
418
|
+
/* @__PURE__ */ b(h, {
|
|
413
419
|
variant: "secondary",
|
|
414
420
|
size: "sm",
|
|
415
421
|
disabled: z === 0 || P,
|
|
416
422
|
onClick: () => void X(Math.max(0, z - R), R),
|
|
417
|
-
children: "Previous"
|
|
423
|
+
children: w("bigconsole.dataSinks.view.previous", "Previous")
|
|
418
424
|
}),
|
|
419
|
-
/* @__PURE__ */
|
|
425
|
+
/* @__PURE__ */ b(h, {
|
|
420
426
|
variant: "secondary",
|
|
421
427
|
size: "sm",
|
|
422
|
-
disabled: !
|
|
428
|
+
disabled: !ze || P,
|
|
423
429
|
onClick: () => void X(z + R, R),
|
|
424
|
-
children: "Next"
|
|
430
|
+
children: w("bigconsole.dataSinks.view.next", "Next")
|
|
425
431
|
})
|
|
426
432
|
]
|
|
427
433
|
})]
|
|
428
434
|
})] }),
|
|
429
|
-
!T && (V.data && Object.keys(V.data).length > 0 ? /* @__PURE__ */
|
|
435
|
+
!T && (V.data && Object.keys(V.data).length > 0 ? /* @__PURE__ */ x(g, {
|
|
430
436
|
className: "text-center p-8",
|
|
431
|
-
children: [/* @__PURE__ */
|
|
437
|
+
children: [/* @__PURE__ */ b(f, { className: "w-10 h-10 text-text-tertiary mx-auto mb-4" }), /* @__PURE__ */ b("p", {
|
|
432
438
|
className: "text-body-sm text-text-secondary",
|
|
433
|
-
children: "Click \"Show Data\" to preview the cached data."
|
|
439
|
+
children: w("bigconsole.dataSinks.view.showDataHint", "Click \"Show Data\" to preview the cached data.")
|
|
434
440
|
})]
|
|
435
|
-
}) : /* @__PURE__ */
|
|
441
|
+
}) : /* @__PURE__ */ x(g, {
|
|
436
442
|
className: "text-center p-8",
|
|
437
443
|
children: [
|
|
438
|
-
/* @__PURE__ */
|
|
439
|
-
/* @__PURE__ */
|
|
444
|
+
/* @__PURE__ */ b(f, { className: "w-10 h-10 text-text-tertiary mx-auto mb-4" }),
|
|
445
|
+
/* @__PURE__ */ b("p", {
|
|
440
446
|
className: "text-body-sm text-text-secondary mb-4",
|
|
441
|
-
children: "This data sink has no data yet. Upload a CSV or build a workflow to import data."
|
|
447
|
+
children: w("bigconsole.dataSinks.view.noDataYet", "This data sink has no data yet. Upload a CSV or build a workflow to import data.")
|
|
442
448
|
}),
|
|
443
|
-
/* @__PURE__ */
|
|
449
|
+
/* @__PURE__ */ x(h, {
|
|
444
450
|
onClick: $,
|
|
445
451
|
variant: "default",
|
|
446
452
|
size: "sm",
|
|
447
|
-
children: [/* @__PURE__ */
|
|
453
|
+
children: [/* @__PURE__ */ b(m, { className: "w-4 h-4 mr-2" }), w("bigconsole.dataSinks.view.importData", "Import Data")]
|
|
448
454
|
})
|
|
449
455
|
]
|
|
450
456
|
}))
|
|
451
457
|
] }),
|
|
452
|
-
/* @__PURE__ */
|
|
453
|
-
isOpen:
|
|
458
|
+
/* @__PURE__ */ b(le, {
|
|
459
|
+
isOpen: Ne,
|
|
454
460
|
dataSinkId: s || null,
|
|
455
461
|
dataSinkName: V.name || V.key,
|
|
456
|
-
onClose:
|
|
462
|
+
onClose: Ge
|
|
457
463
|
}),
|
|
458
|
-
/* @__PURE__ */
|
|
459
|
-
isOpen:
|
|
464
|
+
/* @__PURE__ */ b(ue, {
|
|
465
|
+
isOpen: Pe,
|
|
460
466
|
dataSinkName: V.name || V.key,
|
|
461
467
|
hasExistingData: !!(V.data && Object.keys(V.data).length > 0),
|
|
462
|
-
onClose:
|
|
463
|
-
onGoToWorkflows:
|
|
464
|
-
onImportCsv:
|
|
468
|
+
onClose: Ke,
|
|
469
|
+
onGoToWorkflows: qe,
|
|
470
|
+
onImportCsv: Je
|
|
465
471
|
})
|
|
466
472
|
]
|
|
467
|
-
}) : /* @__PURE__ */
|
|
473
|
+
}) : /* @__PURE__ */ b("div", {
|
|
468
474
|
className: "flex items-center justify-center min-h-[400px] p-card-padding",
|
|
469
|
-
children: /* @__PURE__ */
|
|
475
|
+
children: /* @__PURE__ */ b(De, {
|
|
470
476
|
illustration: "empty-data",
|
|
471
|
-
title: "DataSink not found",
|
|
472
|
-
description: "The DataSink you're looking for doesn't exist or has been deleted.",
|
|
473
|
-
action: /* @__PURE__ */
|
|
477
|
+
title: w("bigconsole.dataSinks.view.notFoundTitle", "DataSink not found"),
|
|
478
|
+
description: w("bigconsole.dataSinks.view.notFoundDescription", "The DataSink you're looking for doesn't exist or has been deleted."),
|
|
479
|
+
action: /* @__PURE__ */ x(h, {
|
|
474
480
|
onClick: J,
|
|
475
481
|
variant: "default",
|
|
476
482
|
size: "default",
|
|
477
|
-
children: [/* @__PURE__ */
|
|
483
|
+
children: [/* @__PURE__ */ b(d, { className: "w-4 h-4 mr-2" }), w("bigconsole.dataSinks.view.goBackToDataSinks", "Go back to DataSinks")]
|
|
478
484
|
})
|
|
479
485
|
})
|
|
480
486
|
});
|
|
481
487
|
});
|
|
482
488
|
//#endregion
|
|
483
|
-
export {
|
|
489
|
+
export { C as DataSinkViewPage, C as default };
|
|
484
490
|
|
|
485
491
|
//# sourceMappingURL=DataSinkViewPage.js.map
|