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