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