@burdenoff/microfe-bigconsole 2026.1118.3 → 2026.1118.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bigconsole/BigConsoleRoutes.js +4 -1
- package/dist/bigconsole/components/explore/SqlDraftEditor.d.ts +1 -0
- package/dist/bigconsole/components/explore/SqlDraftEditor.js +91 -0
- package/dist/bigconsole/components/explore/SqlDraftEntry.d.ts +4 -0
- package/dist/bigconsole/components/explore/SqlDraftEntry.js +40 -0
- package/dist/bigconsole/components/parser/ExpressionEditor.d.ts +5 -1
- package/dist/bigconsole/components/parser/ExpressionEditor.js +20 -18
- package/dist/bigconsole/pages/DataSinksPage.d.ts +4 -1
- package/dist/bigconsole/pages/DataSinksPage.js +245 -241
- package/package.json +1 -1
|
@@ -215,7 +215,10 @@ function re(e) {
|
|
|
215
215
|
}),
|
|
216
216
|
/* @__PURE__ */ x(m, {
|
|
217
217
|
path: "/datasinks",
|
|
218
|
-
element: /* @__PURE__ */ x(B, {
|
|
218
|
+
element: /* @__PURE__ */ x(B, {
|
|
219
|
+
workspaceId: e.workspaceId,
|
|
220
|
+
actorId: e.currentUser?.id
|
|
221
|
+
})
|
|
219
222
|
}),
|
|
220
223
|
/* @__PURE__ */ x(m, {
|
|
221
224
|
path: "/datasinks/new",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function SqlDraftEditor(): import('react').JSX.Element;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
|
+
import { ExpressionEditor as t } from "../parser/ExpressionEditor.js";
|
|
3
|
+
import { useState as n } from "react";
|
|
4
|
+
import { Button as r } from "@burdenoff/fe-libs/ui";
|
|
5
|
+
import { useUnsavedChanges as i } from "@burdenoff/fe-libs/shared/hooks";
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
+
// src/bigconsole/components/explore/SqlDraftEditor.tsx
|
|
8
|
+
var s = [
|
|
9
|
+
"SELECT",
|
|
10
|
+
"FROM",
|
|
11
|
+
"WHERE",
|
|
12
|
+
"GROUP BY",
|
|
13
|
+
"ORDER BY",
|
|
14
|
+
"ASC",
|
|
15
|
+
"DESC",
|
|
16
|
+
"AS",
|
|
17
|
+
"COUNT",
|
|
18
|
+
"SUM",
|
|
19
|
+
"AVG",
|
|
20
|
+
"MIN",
|
|
21
|
+
"MAX",
|
|
22
|
+
"IS NULL",
|
|
23
|
+
"LIMIT"
|
|
24
|
+
], c = (e, t) => {
|
|
25
|
+
let n = e.getModel();
|
|
26
|
+
if (!n) return;
|
|
27
|
+
let r = t.languages.registerCompletionItemProvider("sql", { provideCompletionItems(e, r) {
|
|
28
|
+
if (e !== n) return { suggestions: [] };
|
|
29
|
+
let i = n.getWordAtPosition(r), a = new t.Range(r.lineNumber, i?.startColumn ?? r.column, r.lineNumber, i?.endColumn ?? r.column);
|
|
30
|
+
return { suggestions: s.map((e) => ({
|
|
31
|
+
label: e,
|
|
32
|
+
insertText: e,
|
|
33
|
+
kind: t.languages.CompletionItemKind.Keyword,
|
|
34
|
+
range: a
|
|
35
|
+
})) };
|
|
36
|
+
} });
|
|
37
|
+
e.onDidDispose(() => r.dispose());
|
|
38
|
+
};
|
|
39
|
+
function l() {
|
|
40
|
+
let s = e(), [l, u] = n(""), [d, f] = n(""), p = s("bigconsole.assistant.unsaved.sqlDraft", "the query draft");
|
|
41
|
+
i({
|
|
42
|
+
id: "bigconsole-sql-draft",
|
|
43
|
+
label: p,
|
|
44
|
+
dirty: l.length > 0
|
|
45
|
+
});
|
|
46
|
+
async function m() {
|
|
47
|
+
try {
|
|
48
|
+
await navigator.clipboard.writeText(l), f(s("bigconsole.explore.copied", "Draft copied."));
|
|
49
|
+
} catch {
|
|
50
|
+
f(s("bigconsole.explore.copyFailed", "Select and copy the draft in the editor."));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return /* @__PURE__ */ o("div", {
|
|
54
|
+
className: "mt-3 space-y-3",
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ a("p", {
|
|
57
|
+
className: "text-sm text-text-secondary",
|
|
58
|
+
children: s("bigconsole.explore.draftHelp", "Draft SQL with keyword suggestions. Sink schemas and query execution are unavailable. Copy your draft before leaving this page.")
|
|
59
|
+
}),
|
|
60
|
+
/* @__PURE__ */ a(t, {
|
|
61
|
+
language: "sql",
|
|
62
|
+
value: l,
|
|
63
|
+
onChange: (e) => {
|
|
64
|
+
u(e), f("");
|
|
65
|
+
},
|
|
66
|
+
onEditorMount: c,
|
|
67
|
+
saveViewState: !1,
|
|
68
|
+
inputOptions: {
|
|
69
|
+
ariaLabel: s("bigconsole.explore.sqlEditor", "SQL editor"),
|
|
70
|
+
wordBasedSuggestions: "off"
|
|
71
|
+
}
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ o("div", {
|
|
74
|
+
className: "flex items-center gap-2",
|
|
75
|
+
children: [/* @__PURE__ */ a(r, {
|
|
76
|
+
type: "button",
|
|
77
|
+
size: "sm",
|
|
78
|
+
variant: "secondary",
|
|
79
|
+
disabled: !l.trim(),
|
|
80
|
+
onClick: m,
|
|
81
|
+
children: s("bigconsole.explore.copy", "Copy draft")
|
|
82
|
+
}), /* @__PURE__ */ a("span", {
|
|
83
|
+
role: "status",
|
|
84
|
+
className: "text-sm text-text-secondary",
|
|
85
|
+
children: d
|
|
86
|
+
})]
|
|
87
|
+
})
|
|
88
|
+
]
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
export { l as default };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
|
+
import { SECTION_FOCUS_RING as t } from "../common/sectionStyles.js";
|
|
3
|
+
import { Suspense as n, lazy as r, useState as i } from "react";
|
|
4
|
+
import { FeatureFlagProvider as a, useFeatureFlags as o } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
5
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
+
// src/bigconsole/components/explore/SqlDraftEntry.tsx
|
|
7
|
+
var l = r(() => import("./SqlDraftEditor.js")), u = "bigconsole.sql-authoring", d = [u];
|
|
8
|
+
function f() {
|
|
9
|
+
let { error: e, getEvaluation: t } = o(), n = t(u);
|
|
10
|
+
return e || n?.flagType !== "BOOLEAN" || n.value !== !0 || n.errorCode || n.reason !== "TARGETING_MATCH" || n.variant !== "workspace-override" ? null : /* @__PURE__ */ s(p, {});
|
|
11
|
+
}
|
|
12
|
+
function p() {
|
|
13
|
+
let r = e(), [a, o] = i(!1);
|
|
14
|
+
return /* @__PURE__ */ c("details", {
|
|
15
|
+
className: "rounded-card border border-border-default bg-bg-surface p-4",
|
|
16
|
+
onToggle: (e) => {
|
|
17
|
+
e.currentTarget.open && o(!0);
|
|
18
|
+
},
|
|
19
|
+
children: [/* @__PURE__ */ s("summary", {
|
|
20
|
+
className: `cursor-pointer font-medium text-text-primary ${t}`,
|
|
21
|
+
children: r("bigconsole.explore.sqlEditor", "SQL editor")
|
|
22
|
+
}), a && /* @__PURE__ */ s(n, {
|
|
23
|
+
fallback: /* @__PURE__ */ s("span", {
|
|
24
|
+
role: "status",
|
|
25
|
+
children: r("bigconsole.explore.loading", "Loading editor…")
|
|
26
|
+
}),
|
|
27
|
+
children: /* @__PURE__ */ s(l, {})
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function m({ workspaceId: e, actorId: t }) {
|
|
32
|
+
return /* @__PURE__ */ s(a, {
|
|
33
|
+
workspaceId: e,
|
|
34
|
+
gateway: "global",
|
|
35
|
+
flagKeys: d,
|
|
36
|
+
defaultEnabled: !1,
|
|
37
|
+
children: /* @__PURE__ */ s(f, {})
|
|
38
|
+
}, JSON.stringify([e, t]));
|
|
39
|
+
}
|
|
40
|
+
export { m as SqlDraftEntry };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EditorProps, OnMount } from '@monaco-editor/react';
|
|
1
2
|
import { ParserType } from '../../types';
|
|
2
3
|
interface ExpressionEditorProps {
|
|
3
4
|
/** Current value */
|
|
@@ -18,6 +19,9 @@ interface ExpressionEditorProps {
|
|
|
18
19
|
error?: string | null;
|
|
19
20
|
/** Override language (json, plaintext, etc.) */
|
|
20
21
|
language?: string;
|
|
22
|
+
onEditorMount?: OnMount;
|
|
23
|
+
saveViewState?: boolean;
|
|
24
|
+
inputOptions?: Pick<NonNullable<EditorProps['options']>, 'ariaLabel' | 'wordBasedSuggestions'>;
|
|
21
25
|
}
|
|
22
|
-
export declare const ExpressionEditor: import('react').MemoExoticComponent<({ value, type, onChange, readOnly, height, lineNumbers, placeholder, error, language, }: ExpressionEditorProps) => import('react').JSX.Element>;
|
|
26
|
+
export declare const ExpressionEditor: import('react').MemoExoticComponent<({ value, type, onChange, readOnly, height, lineNumbers, placeholder, error, language, onEditorMount, saveViewState, inputOptions, }: ExpressionEditorProps) => import('react').JSX.Element>;
|
|
23
27
|
export default ExpressionEditor;
|
|
@@ -9,8 +9,8 @@ function a(e) {
|
|
|
9
9
|
default: return "plaintext";
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
var o = e(function({ value: e, type: o, onChange: s, readOnly: c = !1, height: l = "300px", lineNumbers: u = !0, placeholder: d, error: f, language: p }) {
|
|
13
|
-
let
|
|
12
|
+
var o = e(function({ value: e, type: o, onChange: s, readOnly: c = !1, height: l = "300px", lineNumbers: u = !0, placeholder: d, error: f, language: p, onEditorMount: m, saveViewState: h, inputOptions: g }) {
|
|
13
|
+
let _ = t(null), v = (e) => {
|
|
14
14
|
e.editor.defineTheme("bigconsole-dark", {
|
|
15
15
|
base: "vs-dark",
|
|
16
16
|
inherit: !0,
|
|
@@ -22,38 +22,39 @@ var o = e(function({ value: e, type: o, onChange: s, readOnly: c = !1, height: l
|
|
|
22
22
|
"editor.lineHighlightBackground": "#2a2a2a"
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
},
|
|
26
|
-
m.current = t;
|
|
27
|
-
let
|
|
25
|
+
}, y = (t, n) => {
|
|
26
|
+
m?.(t, n), _.current = t;
|
|
27
|
+
let r = t;
|
|
28
28
|
if (!e && d) {
|
|
29
|
-
|
|
30
|
-
let e =
|
|
31
|
-
e &&
|
|
29
|
+
r.setValue(d), s?.(d);
|
|
30
|
+
let e = r.getModel();
|
|
31
|
+
e && r.setSelection({
|
|
32
32
|
startLineNumber: 1,
|
|
33
33
|
startColumn: 1,
|
|
34
34
|
endLineNumber: e.getLineCount(),
|
|
35
35
|
endColumn: e.getLineMaxColumn(e.getLineCount())
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, b = (e) => {
|
|
39
39
|
s && e !== void 0 && s(e);
|
|
40
|
-
},
|
|
40
|
+
}, x = p ?? a(o), S = l.includes("%");
|
|
41
41
|
return /* @__PURE__ */ r("div", {
|
|
42
|
-
className: `relative min-w-0 ${
|
|
42
|
+
className: `relative min-w-0 ${S ? "h-full flex flex-col" : ""}`,
|
|
43
43
|
children: [/* @__PURE__ */ n("div", {
|
|
44
44
|
className: `
|
|
45
45
|
min-w-0 border rounded-md overflow-hidden
|
|
46
|
-
${
|
|
46
|
+
${S ? "flex-1 min-h-0" : ""}
|
|
47
47
|
${f ? "border-status-error-border" : "border-[var(--color-border-default)]"}
|
|
48
48
|
`,
|
|
49
|
-
style:
|
|
49
|
+
style: S ? { height: "100%" } : void 0,
|
|
50
50
|
children: /* @__PURE__ */ n(i, {
|
|
51
|
-
height:
|
|
52
|
-
language:
|
|
51
|
+
height: S ? "100%" : l,
|
|
52
|
+
language: x,
|
|
53
53
|
value: e,
|
|
54
|
-
onChange:
|
|
55
|
-
beforeMount:
|
|
56
|
-
onMount:
|
|
54
|
+
onChange: b,
|
|
55
|
+
beforeMount: v,
|
|
56
|
+
onMount: y,
|
|
57
|
+
saveViewState: h,
|
|
57
58
|
options: {
|
|
58
59
|
readOnly: c,
|
|
59
60
|
editContext: !1,
|
|
@@ -86,6 +87,7 @@ var o = e(function({ value: e, type: o, onChange: s, readOnly: c = !1, height: l
|
|
|
86
87
|
acceptSuggestionOnEnter: "on",
|
|
87
88
|
tabCompletion: "on",
|
|
88
89
|
wordBasedSuggestions: "matchingDocuments",
|
|
90
|
+
...g,
|
|
89
91
|
parameterHints: { enabled: !c },
|
|
90
92
|
suggest: {
|
|
91
93
|
showKeywords: !0,
|
|
@@ -10,155 +10,156 @@ import ae from "../hooks/useExportDataSink.js";
|
|
|
10
10
|
import { useDataSinkStore as i } from "../store/dataSinkStore.js";
|
|
11
11
|
import { formatByteSize as oe } from "../utils/format.js";
|
|
12
12
|
import { resolveSetupState as se } from "../utils/dataSinkSetup.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
13
|
+
import { SqlDraftEntry as ce } from "../components/explore/SqlDraftEntry.js";
|
|
14
|
+
import { DataSinkCard as le } from "../components/datasink/DataSinkCard.js";
|
|
15
|
+
import { dataSinkSuggestAnchorProps as ue } from "../proactive/entities.js";
|
|
16
|
+
import { DataSinkDeleteDialog as de } from "../components/datasink/DataSinkDeleteDialog.js";
|
|
17
|
+
import { DataSinkRefreshDialog as fe } from "../components/datasink/DataSinkRefreshDialog.js";
|
|
18
|
+
import { ImportDataSinkDialog as pe } from "../components/datasink/ImportDataSinkDialog.js";
|
|
18
19
|
import "../components/common/index.js";
|
|
19
|
-
import { dataSinksListControls as
|
|
20
|
-
import { LIST_SORT_COPY as a, listSortOptions as
|
|
21
|
-
import { selectDataSinks as
|
|
22
|
-
import { DataSinkStatusBadge as
|
|
23
|
-
import { SetupStateBadge as
|
|
20
|
+
import { dataSinksListControls as me } from "../assistant/pageControls.js";
|
|
21
|
+
import { LIST_SORT_COPY as a, listSortOptions as he } from "../utils/listSort.js";
|
|
22
|
+
import { selectDataSinks as ge } from "../utils/dataSinkList.js";
|
|
23
|
+
import { DataSinkStatusBadge as _e } from "../components/datasink/DataSinkStatusBadge.js";
|
|
24
|
+
import { SetupStateBadge as ve } from "../components/datasink/SetupStateBadge.js";
|
|
24
25
|
import { memo as o, useCallback as s, useMemo as c, useState as l } from "react";
|
|
25
|
-
import { AccessDenied as
|
|
26
|
-
import { usePermissions as
|
|
27
|
-
import { AlertCircle as
|
|
28
|
-
import { AuroraBackground as
|
|
29
|
-
import { useI18n as
|
|
26
|
+
import { AccessDenied as ye, PermissionButton as be } from "@burdenoff/fe-libs/shared/components";
|
|
27
|
+
import { usePermissions as xe } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
28
|
+
import { AlertCircle as Se, Container as Ce, Download as we, Eye as Te, LayoutGrid as Ee, Pencil as De, Plus as Oe, RefreshCw as ke, Search as Ae, Table2 as je, Trash2 as Me, Upload as Ne, X as Pe } from "lucide-react";
|
|
29
|
+
import { AuroraBackground as Fe, Badge as Ie, Button as u, CTAOverflowMenu as Le, GradientText as Re, IllustratedEmptyState as ze, Input as Be, PagePurpose as Ve, Select as d, SelectContent as f, SelectItem as p, SelectTrigger as m, SelectValue as h, Spinner as He } from "@burdenoff/fe-libs/ui";
|
|
30
|
+
import { useI18n as Ue } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
30
31
|
import { getProfileScopedKey as g } from "@burdenoff/fe-libs/shared/utils";
|
|
31
32
|
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
32
|
-
import { useAssistantPageControls as
|
|
33
|
+
import { useAssistantPageControls as We } from "@burdenoff/fe-libs/shared/assistant/appControls/useAssistantControl";
|
|
33
34
|
import { formatDistanceToNow as b } from "date-fns";
|
|
34
35
|
// src/bigconsole/pages/DataSinksPage.tsx
|
|
35
|
-
var x = "bigconsole-datasinks-view-mode", S = `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}`, C = "focus-visible:ring-inset focus-visible:ring-offset-0",
|
|
36
|
+
var x = "bigconsole-datasinks-view-mode", S = `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}`, C = "focus-visible:ring-inset focus-visible:ring-offset-0", Ge = (e) => {
|
|
36
37
|
if (!e) return "—";
|
|
37
38
|
let t = new Date(e);
|
|
38
39
|
return Number.isNaN(t.getTime()) ? "—" : b(t, { addSuffix: !0 });
|
|
39
|
-
}, w = o(function() {
|
|
40
|
-
let
|
|
41
|
-
let n =
|
|
40
|
+
}, w = o(function({ workspaceId: o, actorId: b }) {
|
|
41
|
+
let w = t(), { t: T } = Ue(), E = s((e, t) => {
|
|
42
|
+
let n = T(e);
|
|
42
43
|
return n === e ? t : n;
|
|
43
|
-
}, [
|
|
44
|
-
|
|
45
|
-
}, []),
|
|
44
|
+
}, [T]), { hasPermission: D, isLoading: O } = xe(), k = D(e.DATASINK_READ), A = D(e.DATASINK_CREATE), j = D(e.DATASINK_UPDATE), Ke = D(e.DATASINK_DELETE), qe = D(e.DATASINK_EXECUTE), [M, N] = l("all"), [P, Je] = l("updated-desc"), [Ye, Xe] = l(!1), [F, Ze] = l(() => localStorage.getItem(g(x)) || "grid"), Qe = s((e) => {
|
|
45
|
+
Ze(e), localStorage.setItem(g(x), e);
|
|
46
|
+
}, []), I = i((e) => e.statusFilter), L = i((e) => e.activeFilter), R = i((e) => e.searchQuery), z = i((e) => e.setStatusFilter), B = i((e) => e.setActiveFilter), V = i((e) => e.setSearchQuery), $e = i((e) => e.deleteDialogOpen), et = i((e) => e.refreshDialogOpen), H = i((e) => e.currentDataSink), tt = i((e) => e.openDeleteDialog), U = i((e) => e.closeDeleteDialog), nt = i((e) => e.openRefreshDialog), W = i((e) => e.closeRefreshDialog), { loading: G, error: K, dataSinks: q, deleteDataSink: rt, refreshDataSink: it, refetch: J } = ie(), { downloadDataSink: at } = ae(), ot = c(() => q.map((e) => ({
|
|
46
47
|
dataSink: e,
|
|
47
48
|
setupState: se(e)
|
|
48
|
-
})), [
|
|
49
|
-
setupState:
|
|
50
|
-
status:
|
|
51
|
-
active:
|
|
52
|
-
search:
|
|
53
|
-
sort:
|
|
49
|
+
})), [q]), Y = c(() => ge(ot, {
|
|
50
|
+
setupState: M,
|
|
51
|
+
status: I,
|
|
52
|
+
active: L,
|
|
53
|
+
search: R,
|
|
54
|
+
sort: P
|
|
54
55
|
}), [
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
F,
|
|
56
|
+
ot,
|
|
57
|
+
M,
|
|
58
58
|
I,
|
|
59
59
|
L,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
t
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
60
|
+
R,
|
|
61
|
+
P
|
|
62
|
+
]), st = s(() => {
|
|
63
|
+
w("/datasinks/new");
|
|
64
|
+
}, [w]), X = s((e) => {
|
|
65
|
+
w(`/datasinks/${e}`);
|
|
66
|
+
}, [w]), Z = s((e) => {
|
|
67
|
+
w(`/datasinks/${e}/edit`);
|
|
68
|
+
}, [w]), ct = s((e) => {
|
|
69
|
+
let t = q.find((t) => t.id === e);
|
|
70
|
+
t && nt(t);
|
|
71
|
+
}, [q, nt]), lt = s(async (e) => {
|
|
72
|
+
H && (await it({
|
|
73
|
+
id: H.id,
|
|
73
74
|
forceRefresh: e
|
|
74
|
-
}),
|
|
75
|
+
}), W());
|
|
75
76
|
}, [
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
]),
|
|
80
|
-
let t =
|
|
81
|
-
t &&
|
|
82
|
-
}, [
|
|
83
|
-
if (
|
|
77
|
+
H,
|
|
78
|
+
it,
|
|
79
|
+
W
|
|
80
|
+
]), ut = s((e) => {
|
|
81
|
+
let t = q.find((t) => t.id === e);
|
|
82
|
+
t && tt(t);
|
|
83
|
+
}, [q, tt]), dt = s(async () => {
|
|
84
|
+
if (H) {
|
|
84
85
|
try {
|
|
85
|
-
await
|
|
86
|
+
await rt(H.id), ne() && re("success");
|
|
86
87
|
} catch (e) {
|
|
87
88
|
throw ne() && re("error"), e;
|
|
88
89
|
}
|
|
89
|
-
|
|
90
|
+
U();
|
|
90
91
|
}
|
|
91
92
|
}, [
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
]),
|
|
96
|
-
let t =
|
|
97
|
-
t && await
|
|
98
|
-
}, [
|
|
99
|
-
|
|
100
|
-
}, []),
|
|
101
|
-
|
|
102
|
-
}, [
|
|
103
|
-
|
|
104
|
-
F,
|
|
93
|
+
H,
|
|
94
|
+
rt,
|
|
95
|
+
U
|
|
96
|
+
]), ft = s(async (e) => {
|
|
97
|
+
let t = q.find((t) => t.id === e);
|
|
98
|
+
t && await at(e, t.name || t.key);
|
|
99
|
+
}, [q, at]), pt = s(() => {
|
|
100
|
+
Xe(!0);
|
|
101
|
+
}, []), mt = s((e, t, n) => {
|
|
102
|
+
J();
|
|
103
|
+
}, [J]), ht = c(() => M !== "all" || I !== null || L !== null || R.trim() !== "", [
|
|
104
|
+
M,
|
|
105
105
|
I,
|
|
106
|
-
L
|
|
106
|
+
L,
|
|
107
|
+
R
|
|
107
108
|
]), Q = s(() => {
|
|
108
|
-
|
|
109
|
+
N("all"), z(null), B(null), V("");
|
|
109
110
|
}, [
|
|
110
|
-
R,
|
|
111
111
|
z,
|
|
112
|
-
B
|
|
112
|
+
B,
|
|
113
|
+
V
|
|
113
114
|
]), $ = c(() => [
|
|
114
115
|
{
|
|
115
116
|
value: "all",
|
|
116
|
-
label:
|
|
117
|
+
label: E("bigconsole.dataSinks.filters.setupState.all", "All")
|
|
117
118
|
},
|
|
118
119
|
{
|
|
119
120
|
value: "in_progress",
|
|
120
|
-
label:
|
|
121
|
+
label: E("bigconsole.dataSinks.filters.setupState.inProgress", "In Progress")
|
|
121
122
|
},
|
|
122
123
|
{
|
|
123
124
|
value: "completed",
|
|
124
|
-
label:
|
|
125
|
+
label: E("bigconsole.dataSinks.filters.setupState.completed", "Completed")
|
|
125
126
|
}
|
|
126
|
-
], [
|
|
127
|
-
tr:
|
|
127
|
+
], [E]), gt = c(() => he(E, !1), [E]), _t = c(() => !O && k && !K ? me({
|
|
128
|
+
tr: E,
|
|
128
129
|
setupStateOptions: $,
|
|
129
|
-
setupState:
|
|
130
|
-
setSetupState:
|
|
131
|
-
status:
|
|
132
|
-
setStatus:
|
|
133
|
-
active:
|
|
134
|
-
setActive:
|
|
135
|
-
setSearch:
|
|
136
|
-
sort:
|
|
137
|
-
setSort:
|
|
130
|
+
setupState: M,
|
|
131
|
+
setSetupState: N,
|
|
132
|
+
status: I,
|
|
133
|
+
setStatus: z,
|
|
134
|
+
active: L,
|
|
135
|
+
setActive: B,
|
|
136
|
+
setSearch: V,
|
|
137
|
+
sort: P,
|
|
138
|
+
setSort: Je
|
|
138
139
|
}) : null, [
|
|
139
|
-
w,
|
|
140
140
|
E,
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
O,
|
|
142
|
+
k,
|
|
143
|
+
K,
|
|
143
144
|
$,
|
|
144
|
-
|
|
145
|
-
F,
|
|
146
|
-
R,
|
|
145
|
+
M,
|
|
147
146
|
I,
|
|
148
147
|
z,
|
|
148
|
+
L,
|
|
149
149
|
B,
|
|
150
|
-
|
|
150
|
+
V,
|
|
151
|
+
P
|
|
151
152
|
]);
|
|
152
|
-
return
|
|
153
|
-
title:
|
|
154
|
-
description:
|
|
153
|
+
return We(_t), !O && !k ? /* @__PURE__ */ v(ye, {
|
|
154
|
+
title: E("bigconsole.dataSinks.accessDenied.title", "Access Denied"),
|
|
155
|
+
description: E("bigconsole.dataSinks.accessDenied.description", "You don't have permission to view data sinks.")
|
|
155
156
|
}) : /* @__PURE__ */ y("div", {
|
|
156
157
|
className: "min-w-0",
|
|
157
158
|
style: { backgroundColor: "var(--color-bg-canvas)" },
|
|
158
159
|
children: [
|
|
159
160
|
/* @__PURE__ */ y("header", {
|
|
160
161
|
className: "relative overflow-hidden border-b border-[var(--color-border-seam)] bg-[image:var(--gradient-gloss-card)]",
|
|
161
|
-
children: [/* @__PURE__ */ v(
|
|
162
|
+
children: [/* @__PURE__ */ v(Fe, { intensity: "subtle" }), /* @__PURE__ */ v("div", {
|
|
162
163
|
style: { padding: "var(--space-pagePadding)" },
|
|
163
164
|
children: /* @__PURE__ */ y("div", {
|
|
164
165
|
style: {
|
|
@@ -186,7 +187,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
186
187
|
borderRadius: "var(--radius-card)",
|
|
187
188
|
backgroundColor: "var(--color-action-primary-bg)"
|
|
188
189
|
},
|
|
189
|
-
children: /* @__PURE__ */ v(
|
|
190
|
+
children: /* @__PURE__ */ v(Ce, { style: {
|
|
190
191
|
height: "var(--size-icon-lg)",
|
|
191
192
|
width: "var(--size-icon-lg)",
|
|
192
193
|
color: "var(--color-action-primary-text)"
|
|
@@ -195,26 +196,26 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
195
196
|
style: { minWidth: 0 },
|
|
196
197
|
children: [/* @__PURE__ */ v("h1", {
|
|
197
198
|
className: "m-0 text-2xl font-bold text-text-primary",
|
|
198
|
-
children: /* @__PURE__ */ v(
|
|
199
|
+
children: /* @__PURE__ */ v(Re, { children: E("bigconsole.dataSinks.title", "Data Sinks") })
|
|
199
200
|
}), /* @__PURE__ */ v("p", {
|
|
200
201
|
className: "m-0 text-sm text-text-secondary",
|
|
201
|
-
children:
|
|
202
|
+
children: E("bigconsole.dataSinks.subtitle", "Manage pre-processed data from FluidGrids workflows")
|
|
202
203
|
})]
|
|
203
204
|
})]
|
|
204
|
-
}), /* @__PURE__ */ v(
|
|
205
|
-
primary:
|
|
206
|
-
label:
|
|
207
|
-
onSelect:
|
|
208
|
-
icon: /* @__PURE__ */ v(
|
|
205
|
+
}), /* @__PURE__ */ v(Le, {
|
|
206
|
+
primary: A ? {
|
|
207
|
+
label: E("bigconsole.dataSinks.actions.create", "Create Data Sink"),
|
|
208
|
+
onSelect: st,
|
|
209
|
+
icon: /* @__PURE__ */ v(Oe, { style: {
|
|
209
210
|
marginRight: "var(--space-iconGap)",
|
|
210
211
|
height: "var(--size-icon-sm)",
|
|
211
212
|
width: "var(--size-icon-sm)"
|
|
212
213
|
} })
|
|
213
214
|
} : void 0,
|
|
214
|
-
actions:
|
|
215
|
-
label:
|
|
216
|
-
onSelect:
|
|
217
|
-
icon: /* @__PURE__ */ v(
|
|
215
|
+
actions: A ? [{
|
|
216
|
+
label: E("bigconsole.dataSinks.actions.import", "Import"),
|
|
217
|
+
onSelect: pt,
|
|
218
|
+
icon: /* @__PURE__ */ v(Ne, { style: {
|
|
218
219
|
height: "var(--size-icon-sm)",
|
|
219
220
|
width: "var(--size-icon-sm)"
|
|
220
221
|
} })
|
|
@@ -225,29 +226,32 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
225
226
|
}),
|
|
226
227
|
/* @__PURE__ */ y("div", {
|
|
227
228
|
style: { padding: "var(--space-pagePadding)" },
|
|
228
|
-
children: [/* @__PURE__ */ v(
|
|
229
|
+
children: [/* @__PURE__ */ v(Ve, {
|
|
229
230
|
className: "mb-[var(--space-sectionGap)]",
|
|
230
231
|
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."
|
|
231
|
-
}), /* @__PURE__ */
|
|
232
|
+
}), /* @__PURE__ */ y(ee, { children: [!O && k && o && b && /* @__PURE__ */ v(ce, {
|
|
233
|
+
actorId: b,
|
|
234
|
+
workspaceId: o
|
|
235
|
+
}), K ? /* @__PURE__ */ v(r, {
|
|
232
236
|
tone: "danger",
|
|
233
237
|
headingLevel: 2,
|
|
234
|
-
title:
|
|
235
|
-
description:
|
|
236
|
-
icon: /* @__PURE__ */ v(
|
|
238
|
+
title: E("bigconsole.dataSinks.error.title", "Failed to load Data Sinks"),
|
|
239
|
+
description: K.message,
|
|
240
|
+
icon: /* @__PURE__ */ v(Se, { className: "h-icon-sm w-icon-sm" }),
|
|
237
241
|
actions: /* @__PURE__ */ v(u, {
|
|
238
242
|
size: "sm",
|
|
239
|
-
onClick: () =>
|
|
240
|
-
children:
|
|
243
|
+
onClick: () => J(),
|
|
244
|
+
children: E("bigconsole.dataSinks.error.retry", "Try Again")
|
|
241
245
|
})
|
|
242
246
|
}) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(r, {
|
|
243
247
|
headingLevel: 2,
|
|
244
248
|
padding: "compact",
|
|
245
|
-
title:
|
|
246
|
-
description:
|
|
249
|
+
title: E("bigconsole.dataSinks.filters.heading", "Filters"),
|
|
250
|
+
description: E("bigconsole.dataSinks.filters.description", "Narrow the list by setup progress, status, or name."),
|
|
247
251
|
bodyClassName: "space-y-form-gap",
|
|
248
252
|
children: /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("div", {
|
|
249
253
|
role: "group",
|
|
250
|
-
"aria-label":
|
|
254
|
+
"aria-label": E("bigconsole.dataSinks.filters.setupState.label", "Setup state"),
|
|
251
255
|
style: {
|
|
252
256
|
display: "flex",
|
|
253
257
|
alignItems: "center",
|
|
@@ -261,8 +265,8 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
261
265
|
},
|
|
262
266
|
children: $.map((e) => /* @__PURE__ */ v("button", {
|
|
263
267
|
type: "button",
|
|
264
|
-
"aria-pressed":
|
|
265
|
-
onClick: () =>
|
|
268
|
+
"aria-pressed": M === e.value,
|
|
269
|
+
onClick: () => N(e.value),
|
|
266
270
|
className: n,
|
|
267
271
|
style: {
|
|
268
272
|
minHeight: "var(--size-controlHeight-md)",
|
|
@@ -272,9 +276,9 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
272
276
|
borderRadius: "var(--radius-button)",
|
|
273
277
|
border: "none",
|
|
274
278
|
cursor: "pointer",
|
|
275
|
-
backgroundColor:
|
|
276
|
-
color:
|
|
277
|
-
boxShadow:
|
|
279
|
+
backgroundColor: M === e.value ? "var(--color-bg-surface)" : "transparent",
|
|
280
|
+
color: M === e.value ? "var(--color-text-primary)" : "var(--color-text-secondary)",
|
|
281
|
+
boxShadow: M === e.value ? "var(--shadow-elevation-1)" : "none"
|
|
278
282
|
},
|
|
279
283
|
children: e.label
|
|
280
284
|
}, e.value))
|
|
@@ -293,7 +297,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
293
297
|
minWidth: "min(100%, 240px)",
|
|
294
298
|
flex: "1 1 240px"
|
|
295
299
|
},
|
|
296
|
-
children: [/* @__PURE__ */ v(
|
|
300
|
+
children: [/* @__PURE__ */ v(Ae, { style: {
|
|
297
301
|
position: "absolute",
|
|
298
302
|
left: "var(--space-controlGap)",
|
|
299
303
|
top: "50%",
|
|
@@ -301,11 +305,11 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
301
305
|
height: "var(--size-icon-sm)",
|
|
302
306
|
width: "var(--size-icon-sm)",
|
|
303
307
|
color: "var(--color-text-muted)"
|
|
304
|
-
} }), /* @__PURE__ */ v(
|
|
308
|
+
} }), /* @__PURE__ */ v(Be, {
|
|
305
309
|
type: "text",
|
|
306
|
-
placeholder:
|
|
307
|
-
value:
|
|
308
|
-
onChange: (e) =>
|
|
310
|
+
placeholder: E("bigconsole.dataSinks.search.placeholder", "Search data sinks..."),
|
|
311
|
+
value: R,
|
|
312
|
+
onChange: (e) => V(e.target.value),
|
|
309
313
|
style: {
|
|
310
314
|
paddingLeft: "var(--size-controlHeight-md)",
|
|
311
315
|
height: "var(--size-controlHeight-md)"
|
|
@@ -313,89 +317,89 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
313
317
|
})]
|
|
314
318
|
}),
|
|
315
319
|
/* @__PURE__ */ y(d, {
|
|
316
|
-
value:
|
|
317
|
-
onValueChange: (e) =>
|
|
320
|
+
value: I || "all",
|
|
321
|
+
onValueChange: (e) => z(e === "all" ? null : e),
|
|
318
322
|
children: [/* @__PURE__ */ v(m, {
|
|
319
323
|
style: { width: "min(100%, 150px)" },
|
|
320
|
-
children: /* @__PURE__ */ v(h, { placeholder:
|
|
324
|
+
children: /* @__PURE__ */ v(h, { placeholder: E("bigconsole.dataSinks.filters.status.placeholder", "All Statuses") })
|
|
321
325
|
}), /* @__PURE__ */ y(f, { children: [
|
|
322
326
|
/* @__PURE__ */ v(p, {
|
|
323
327
|
value: "all",
|
|
324
|
-
children:
|
|
328
|
+
children: E("bigconsole.dataSinks.filters.status.all", "All Statuses")
|
|
325
329
|
}),
|
|
326
330
|
/* @__PURE__ */ v(p, {
|
|
327
331
|
value: "ready",
|
|
328
|
-
children:
|
|
332
|
+
children: E("bigconsole.dataSinks.filters.status.ready", "Ready")
|
|
329
333
|
}),
|
|
330
334
|
/* @__PURE__ */ v(p, {
|
|
331
335
|
value: "error",
|
|
332
|
-
children:
|
|
336
|
+
children: E("bigconsole.dataSinks.filters.status.error", "Error")
|
|
333
337
|
}),
|
|
334
338
|
/* @__PURE__ */ v(p, {
|
|
335
339
|
value: "stale",
|
|
336
|
-
children:
|
|
340
|
+
children: E("bigconsole.dataSinks.filters.status.stale", "Stale")
|
|
337
341
|
}),
|
|
338
342
|
/* @__PURE__ */ v(p, {
|
|
339
343
|
value: "refreshing",
|
|
340
|
-
children:
|
|
344
|
+
children: E("bigconsole.dataSinks.filters.status.refreshing", "Refreshing")
|
|
341
345
|
})
|
|
342
346
|
] })]
|
|
343
347
|
}),
|
|
344
348
|
/* @__PURE__ */ y(d, {
|
|
345
|
-
value:
|
|
346
|
-
onValueChange: (e) =>
|
|
349
|
+
value: L === null ? "all" : L ? "true" : "false",
|
|
350
|
+
onValueChange: (e) => B(e === "all" ? null : e === "true"),
|
|
347
351
|
children: [/* @__PURE__ */ v(m, {
|
|
348
352
|
style: { width: "min(100%, 130px)" },
|
|
349
|
-
children: /* @__PURE__ */ v(h, { placeholder:
|
|
353
|
+
children: /* @__PURE__ */ v(h, { placeholder: E("bigconsole.dataSinks.filters.active.placeholder", "All") })
|
|
350
354
|
}), /* @__PURE__ */ y(f, { children: [
|
|
351
355
|
/* @__PURE__ */ v(p, {
|
|
352
356
|
value: "all",
|
|
353
|
-
children:
|
|
357
|
+
children: E("bigconsole.dataSinks.filters.active.all", "All")
|
|
354
358
|
}),
|
|
355
359
|
/* @__PURE__ */ v(p, {
|
|
356
360
|
value: "true",
|
|
357
|
-
children:
|
|
361
|
+
children: E("bigconsole.dataSinks.filters.active.active", "Active")
|
|
358
362
|
}),
|
|
359
363
|
/* @__PURE__ */ v(p, {
|
|
360
364
|
value: "false",
|
|
361
|
-
children:
|
|
365
|
+
children: E("bigconsole.dataSinks.filters.active.inactive", "Inactive")
|
|
362
366
|
})
|
|
363
367
|
] })]
|
|
364
368
|
}),
|
|
365
369
|
/* @__PURE__ */ v(te, {
|
|
366
|
-
label:
|
|
367
|
-
value:
|
|
368
|
-
options:
|
|
369
|
-
onChange:
|
|
370
|
+
label: E(a.label.key, a.label.en),
|
|
371
|
+
value: P,
|
|
372
|
+
options: gt,
|
|
373
|
+
onChange: Je
|
|
370
374
|
}),
|
|
371
|
-
|
|
375
|
+
ht && /* @__PURE__ */ y(u, {
|
|
372
376
|
variant: "ghost",
|
|
373
377
|
size: "sm",
|
|
374
378
|
onClick: Q,
|
|
375
|
-
children: [/* @__PURE__ */ v(
|
|
379
|
+
children: [/* @__PURE__ */ v(Pe, { style: {
|
|
376
380
|
marginRight: "var(--space-iconGap)",
|
|
377
381
|
height: "var(--size-icon-sm)",
|
|
378
382
|
width: "var(--size-icon-sm)"
|
|
379
|
-
} }),
|
|
383
|
+
} }), E("bigconsole.dataSinks.filters.clear", "Clear Filters")]
|
|
380
384
|
})
|
|
381
385
|
]
|
|
382
386
|
})] })
|
|
383
387
|
}), /* @__PURE__ */ v(r, {
|
|
384
388
|
emphasis: "primary",
|
|
385
389
|
headingLevel: 2,
|
|
386
|
-
title:
|
|
387
|
-
description:
|
|
388
|
-
meta: /* @__PURE__ */ y(
|
|
390
|
+
title: E("bigconsole.dataSinks.list.heading", "Data sinks"),
|
|
391
|
+
description: E("bigconsole.dataSinks.list.description", "Every sink in this workspace, most recently updated first."),
|
|
392
|
+
meta: /* @__PURE__ */ y(Ie, {
|
|
389
393
|
variant: "secondary",
|
|
390
394
|
children: [
|
|
391
395
|
Y.length,
|
|
392
396
|
" ",
|
|
393
|
-
Y.length === 1 ?
|
|
397
|
+
Y.length === 1 ? E("bigconsole.dataSinks.count.single", "Data Sink") : E("bigconsole.dataSinks.count.plural", "Data Sinks")
|
|
394
398
|
]
|
|
395
399
|
}),
|
|
396
400
|
actions: /* @__PURE__ */ y("div", {
|
|
397
401
|
role: "group",
|
|
398
|
-
"aria-label":
|
|
402
|
+
"aria-label": E("bigconsole.dataSinks.view.label", "List layout"),
|
|
399
403
|
style: {
|
|
400
404
|
display: "flex",
|
|
401
405
|
borderRadius: "var(--radius-button)",
|
|
@@ -404,100 +408,100 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
404
408
|
},
|
|
405
409
|
children: [/* @__PURE__ */ v("button", {
|
|
406
410
|
type: "button",
|
|
407
|
-
onClick: () =>
|
|
408
|
-
"aria-pressed":
|
|
409
|
-
title:
|
|
411
|
+
onClick: () => Qe("grid"),
|
|
412
|
+
"aria-pressed": F === "grid",
|
|
413
|
+
title: E("bigconsole.dataSinks.view.grid", "Grid view"),
|
|
410
414
|
className: `flex h-control-md w-[var(--size-controlHeight-md)] items-center justify-center ${n} ${C}`,
|
|
411
415
|
style: {
|
|
412
416
|
border: "none",
|
|
413
417
|
cursor: "pointer",
|
|
414
|
-
backgroundColor:
|
|
415
|
-
color:
|
|
418
|
+
backgroundColor: F === "grid" ? "var(--color-bg-sunken)" : "transparent",
|
|
419
|
+
color: F === "grid" ? "var(--color-text-primary)" : "var(--color-text-muted)"
|
|
416
420
|
},
|
|
417
|
-
children: /* @__PURE__ */ v(
|
|
421
|
+
children: /* @__PURE__ */ v(Ee, { size: 16 })
|
|
418
422
|
}), /* @__PURE__ */ v("button", {
|
|
419
423
|
type: "button",
|
|
420
|
-
onClick: () =>
|
|
421
|
-
"aria-pressed":
|
|
422
|
-
title:
|
|
424
|
+
onClick: () => Qe("table"),
|
|
425
|
+
"aria-pressed": F === "table",
|
|
426
|
+
title: E("bigconsole.dataSinks.view.table", "Table view"),
|
|
423
427
|
className: `flex h-control-md w-[var(--size-controlHeight-md)] items-center justify-center ${n} ${C}`,
|
|
424
428
|
style: {
|
|
425
429
|
border: "none",
|
|
426
430
|
borderLeft: "1px solid var(--color-border)",
|
|
427
431
|
cursor: "pointer",
|
|
428
|
-
backgroundColor:
|
|
429
|
-
color:
|
|
432
|
+
backgroundColor: F === "table" ? "var(--color-bg-sunken)" : "transparent",
|
|
433
|
+
color: F === "table" ? "var(--color-text-primary)" : "var(--color-text-muted)"
|
|
430
434
|
},
|
|
431
|
-
children: /* @__PURE__ */ v(
|
|
435
|
+
children: /* @__PURE__ */ v(je, { size: 16 })
|
|
432
436
|
})]
|
|
433
437
|
}),
|
|
434
438
|
children: /* @__PURE__ */ y(_, { children: [
|
|
435
|
-
|
|
439
|
+
G && q.length === 0 && /* @__PURE__ */ v("div", {
|
|
436
440
|
className: "flex items-center justify-center py-12",
|
|
437
441
|
children: /* @__PURE__ */ y("div", {
|
|
438
442
|
style: { textAlign: "center" },
|
|
439
|
-
children: [/* @__PURE__ */ v(
|
|
443
|
+
children: [/* @__PURE__ */ v(He, { style: {
|
|
440
444
|
height: "var(--size-icon-xl)",
|
|
441
445
|
width: "var(--size-icon-xl)",
|
|
442
446
|
margin: "0 auto var(--space-formGap)"
|
|
443
447
|
} }), /* @__PURE__ */ v("p", {
|
|
444
448
|
className: "text-sm text-text-muted",
|
|
445
|
-
children:
|
|
449
|
+
children: E("bigconsole.dataSinks.loading", "Loading data sinks...")
|
|
446
450
|
})]
|
|
447
451
|
})
|
|
448
452
|
}),
|
|
449
|
-
!
|
|
453
|
+
!G && q.length === 0 && /* @__PURE__ */ v(ze, {
|
|
450
454
|
illustration: "empty-data",
|
|
451
|
-
title:
|
|
452
|
-
description:
|
|
453
|
-
action: /* @__PURE__ */ v(
|
|
455
|
+
title: E("bigconsole.dataSinks.empty.title", "No Data Sinks yet"),
|
|
456
|
+
description: E("bigconsole.dataSinks.empty.description", "Data Sinks store pre-processed data from FluidGrids workflows for fast access in widgets."),
|
|
457
|
+
action: /* @__PURE__ */ v(be, {
|
|
454
458
|
permission: e.DATASINK_CREATE,
|
|
455
459
|
deniedBehavior: "disable",
|
|
456
460
|
children: /* @__PURE__ */ y(u, {
|
|
457
|
-
onClick:
|
|
458
|
-
children: [/* @__PURE__ */ v(
|
|
461
|
+
onClick: st,
|
|
462
|
+
children: [/* @__PURE__ */ v(Oe, { style: {
|
|
459
463
|
marginRight: "var(--space-iconGap)",
|
|
460
464
|
height: "var(--size-icon-sm)",
|
|
461
465
|
width: "var(--size-icon-sm)"
|
|
462
|
-
} }),
|
|
466
|
+
} }), E("bigconsole.dataSinks.actions.create", "Create Data Sink")]
|
|
463
467
|
})
|
|
464
468
|
})
|
|
465
469
|
}),
|
|
466
|
-
!
|
|
470
|
+
!G && Y.length === 0 && q.length > 0 && /* @__PURE__ */ v(r, {
|
|
467
471
|
tone: "info",
|
|
468
472
|
emphasis: "muted",
|
|
469
473
|
padding: "compact",
|
|
470
474
|
headingLevel: 3,
|
|
471
|
-
title:
|
|
472
|
-
description:
|
|
475
|
+
title: E("bigconsole.dataSinks.empty.filteredTitle", "No matching data sinks"),
|
|
476
|
+
description: E("bigconsole.dataSinks.empty.filtered", "No data sinks match your filters"),
|
|
473
477
|
actions: /* @__PURE__ */ v(u, {
|
|
474
478
|
variant: "secondary",
|
|
475
479
|
size: "sm",
|
|
476
480
|
onClick: Q,
|
|
477
|
-
children:
|
|
481
|
+
children: E("bigconsole.dataSinks.filters.clear", "Clear Filters")
|
|
478
482
|
})
|
|
479
483
|
}),
|
|
480
|
-
Y.length > 0 &&
|
|
484
|
+
Y.length > 0 && F === "grid" && /* @__PURE__ */ v("div", {
|
|
481
485
|
style: {
|
|
482
486
|
display: "grid",
|
|
483
487
|
gridTemplateColumns: "repeat(auto-fill, minmax(min(100%, 320px), 1fr))",
|
|
484
488
|
gap: "var(--space-formGap)"
|
|
485
489
|
},
|
|
486
|
-
children: Y.map((e) => /* @__PURE__ */ v(
|
|
490
|
+
children: Y.map((e) => /* @__PURE__ */ v(le, {
|
|
487
491
|
dataSink: e.dataSink,
|
|
488
492
|
setupState: e.setupState,
|
|
489
493
|
onView: X,
|
|
490
494
|
onEdit: Z,
|
|
491
495
|
onContinueSetup: Z,
|
|
492
|
-
onRefresh:
|
|
493
|
-
onExport:
|
|
494
|
-
onDelete:
|
|
495
|
-
canEdit:
|
|
496
|
-
canRefresh:
|
|
497
|
-
canDelete:
|
|
496
|
+
onRefresh: ct,
|
|
497
|
+
onExport: ft,
|
|
498
|
+
onDelete: ut,
|
|
499
|
+
canEdit: j,
|
|
500
|
+
canRefresh: qe,
|
|
501
|
+
canDelete: Ke
|
|
498
502
|
}, e.dataSink.id))
|
|
499
503
|
}),
|
|
500
|
-
Y.length > 0 &&
|
|
504
|
+
Y.length > 0 && F === "table" && /* @__PURE__ */ v("div", {
|
|
501
505
|
className: "min-w-0",
|
|
502
506
|
style: { overflowX: "auto" },
|
|
503
507
|
children: /* @__PURE__ */ y("table", {
|
|
@@ -520,7 +524,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
520
524
|
color: "var(--color-text-secondary)",
|
|
521
525
|
whiteSpace: "nowrap"
|
|
522
526
|
},
|
|
523
|
-
children:
|
|
527
|
+
children: E("bigconsole.dataSinks.table.name", "Name")
|
|
524
528
|
}),
|
|
525
529
|
/* @__PURE__ */ v("th", {
|
|
526
530
|
style: {
|
|
@@ -530,7 +534,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
530
534
|
color: "var(--color-text-secondary)",
|
|
531
535
|
whiteSpace: "nowrap"
|
|
532
536
|
},
|
|
533
|
-
children:
|
|
537
|
+
children: E("bigconsole.dataSinks.table.key", "Key")
|
|
534
538
|
}),
|
|
535
539
|
/* @__PURE__ */ v("th", {
|
|
536
540
|
style: {
|
|
@@ -540,7 +544,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
540
544
|
color: "var(--color-text-secondary)",
|
|
541
545
|
whiteSpace: "nowrap"
|
|
542
546
|
},
|
|
543
|
-
children:
|
|
547
|
+
children: E("bigconsole.dataSinks.table.status", "Status")
|
|
544
548
|
}),
|
|
545
549
|
/* @__PURE__ */ v("th", {
|
|
546
550
|
style: {
|
|
@@ -550,7 +554,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
550
554
|
color: "var(--color-text-secondary)",
|
|
551
555
|
whiteSpace: "nowrap"
|
|
552
556
|
},
|
|
553
|
-
children:
|
|
557
|
+
children: E("bigconsole.dataSinks.table.setup", "Setup")
|
|
554
558
|
}),
|
|
555
559
|
/* @__PURE__ */ v("th", {
|
|
556
560
|
style: {
|
|
@@ -560,7 +564,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
560
564
|
color: "var(--color-text-secondary)",
|
|
561
565
|
whiteSpace: "nowrap"
|
|
562
566
|
},
|
|
563
|
-
children:
|
|
567
|
+
children: E("bigconsole.dataSinks.table.active", "Active")
|
|
564
568
|
}),
|
|
565
569
|
/* @__PURE__ */ v("th", {
|
|
566
570
|
style: {
|
|
@@ -570,7 +574,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
570
574
|
color: "var(--color-text-secondary)",
|
|
571
575
|
whiteSpace: "nowrap"
|
|
572
576
|
},
|
|
573
|
-
children:
|
|
577
|
+
children: E("bigconsole.dataSinks.table.version", "Version")
|
|
574
578
|
}),
|
|
575
579
|
/* @__PURE__ */ v("th", {
|
|
576
580
|
style: {
|
|
@@ -580,7 +584,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
580
584
|
color: "var(--color-text-secondary)",
|
|
581
585
|
whiteSpace: "nowrap"
|
|
582
586
|
},
|
|
583
|
-
children:
|
|
587
|
+
children: E("bigconsole.dataSinks.table.size", "Size")
|
|
584
588
|
}),
|
|
585
589
|
/* @__PURE__ */ v("th", {
|
|
586
590
|
style: {
|
|
@@ -590,7 +594,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
590
594
|
color: "var(--color-text-secondary)",
|
|
591
595
|
whiteSpace: "nowrap"
|
|
592
596
|
},
|
|
593
|
-
children:
|
|
597
|
+
children: E("bigconsole.dataSinks.table.lastRefreshed", "Last refreshed")
|
|
594
598
|
}),
|
|
595
599
|
/* @__PURE__ */ v("th", {
|
|
596
600
|
style: {
|
|
@@ -600,7 +604,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
600
604
|
color: "var(--color-text-secondary)",
|
|
601
605
|
whiteSpace: "nowrap"
|
|
602
606
|
},
|
|
603
|
-
children:
|
|
607
|
+
children: E("bigconsole.dataSinks.table.updated", "Updated")
|
|
604
608
|
}),
|
|
605
609
|
/* @__PURE__ */ v("th", {
|
|
606
610
|
style: {
|
|
@@ -610,13 +614,13 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
610
614
|
color: "var(--color-text-secondary)",
|
|
611
615
|
whiteSpace: "nowrap"
|
|
612
616
|
},
|
|
613
|
-
children:
|
|
617
|
+
children: E("bigconsole.dataSinks.table.actions", "Actions")
|
|
614
618
|
})
|
|
615
619
|
]
|
|
616
620
|
}) }), /* @__PURE__ */ v("tbody", { children: Y.map((e) => {
|
|
617
621
|
let t = e.dataSink;
|
|
618
622
|
return /* @__PURE__ */ y("tr", {
|
|
619
|
-
...
|
|
623
|
+
...ue(t.id),
|
|
620
624
|
onClick: () => X(t.id),
|
|
621
625
|
className: "cursor-pointer hover:bg-bg-sunken motion-safe:transition-colors",
|
|
622
626
|
style: { borderBottom: "1px solid var(--color-border)" },
|
|
@@ -648,11 +652,11 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
648
652
|
}),
|
|
649
653
|
/* @__PURE__ */ v("td", {
|
|
650
654
|
style: { padding: "10px 12px" },
|
|
651
|
-
children: /* @__PURE__ */ v(
|
|
655
|
+
children: /* @__PURE__ */ v(_e, { status: t.status })
|
|
652
656
|
}),
|
|
653
657
|
/* @__PURE__ */ v("td", {
|
|
654
658
|
style: { padding: "10px 12px" },
|
|
655
|
-
children: /* @__PURE__ */ v(
|
|
659
|
+
children: /* @__PURE__ */ v(ve, { state: e.setupState })
|
|
656
660
|
}),
|
|
657
661
|
/* @__PURE__ */ v("td", {
|
|
658
662
|
style: {
|
|
@@ -667,7 +671,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
667
671
|
borderRadius: "50%",
|
|
668
672
|
backgroundColor: t.isActive ? "var(--color-status-success-bg)" : "var(--color-text-muted)"
|
|
669
673
|
},
|
|
670
|
-
title: t.isActive ?
|
|
674
|
+
title: t.isActive ? E("bigconsole.dataSinks.badges.active", "Active") : E("bigconsole.dataSinks.badges.inactive", "Inactive")
|
|
671
675
|
})
|
|
672
676
|
}),
|
|
673
677
|
/* @__PURE__ */ y("td", {
|
|
@@ -694,7 +698,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
694
698
|
whiteSpace: "nowrap"
|
|
695
699
|
},
|
|
696
700
|
title: t.lastRefreshedAt ? new Date(t.lastRefreshedAt).toLocaleString() : void 0,
|
|
697
|
-
children:
|
|
701
|
+
children: Ge(t.lastRefreshedAt)
|
|
698
702
|
}),
|
|
699
703
|
/* @__PURE__ */ v("td", {
|
|
700
704
|
style: {
|
|
@@ -719,43 +723,43 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
719
723
|
children: [
|
|
720
724
|
/* @__PURE__ */ v("button", {
|
|
721
725
|
type: "button",
|
|
722
|
-
title:
|
|
723
|
-
"aria-label":
|
|
726
|
+
title: E("bigconsole.dataSinks.actions.view", "View"),
|
|
727
|
+
"aria-label": E("bigconsole.dataSinks.actions.view", "View"),
|
|
724
728
|
onClick: () => X(t.id),
|
|
725
729
|
className: S,
|
|
726
|
-
children: /* @__PURE__ */ v(
|
|
730
|
+
children: /* @__PURE__ */ v(Te, { size: 14 })
|
|
727
731
|
}),
|
|
728
|
-
|
|
732
|
+
j && /* @__PURE__ */ v("button", {
|
|
729
733
|
type: "button",
|
|
730
|
-
title:
|
|
731
|
-
"aria-label":
|
|
734
|
+
title: E("bigconsole.dataSinks.actions.edit", "Edit"),
|
|
735
|
+
"aria-label": E("bigconsole.dataSinks.actions.edit", "Edit"),
|
|
732
736
|
onClick: () => Z(t.id),
|
|
733
737
|
className: S,
|
|
734
|
-
children: /* @__PURE__ */ v(
|
|
738
|
+
children: /* @__PURE__ */ v(De, { size: 14 })
|
|
735
739
|
}),
|
|
736
|
-
|
|
740
|
+
qe && /* @__PURE__ */ v("button", {
|
|
737
741
|
type: "button",
|
|
738
|
-
title:
|
|
739
|
-
"aria-label":
|
|
740
|
-
onClick: () =>
|
|
742
|
+
title: E("bigconsole.dataSinks.actions.refresh", "Refresh"),
|
|
743
|
+
"aria-label": E("bigconsole.dataSinks.actions.refresh", "Refresh"),
|
|
744
|
+
onClick: () => ct(t.id),
|
|
741
745
|
className: S,
|
|
742
|
-
children: /* @__PURE__ */ v(
|
|
746
|
+
children: /* @__PURE__ */ v(ke, { size: 14 })
|
|
743
747
|
}),
|
|
744
748
|
/* @__PURE__ */ v("button", {
|
|
745
749
|
type: "button",
|
|
746
|
-
title:
|
|
747
|
-
"aria-label":
|
|
748
|
-
onClick: () =>
|
|
750
|
+
title: E("bigconsole.dataSinks.actions.export", "Export"),
|
|
751
|
+
"aria-label": E("bigconsole.dataSinks.actions.export", "Export"),
|
|
752
|
+
onClick: () => ft(t.id),
|
|
749
753
|
className: S,
|
|
750
|
-
children: /* @__PURE__ */ v(
|
|
754
|
+
children: /* @__PURE__ */ v(we, { size: 14 })
|
|
751
755
|
}),
|
|
752
|
-
|
|
756
|
+
Ke && /* @__PURE__ */ v("button", {
|
|
753
757
|
type: "button",
|
|
754
|
-
title:
|
|
755
|
-
"aria-label":
|
|
756
|
-
onClick: () =>
|
|
758
|
+
title: E("bigconsole.dataSinks.actions.delete", "Delete"),
|
|
759
|
+
"aria-label": E("bigconsole.dataSinks.actions.delete", "Delete"),
|
|
760
|
+
onClick: () => ut(t.id),
|
|
757
761
|
className: S,
|
|
758
|
-
children: /* @__PURE__ */ v(
|
|
762
|
+
children: /* @__PURE__ */ v(Me, { size: 14 })
|
|
759
763
|
})
|
|
760
764
|
]
|
|
761
765
|
})
|
|
@@ -766,23 +770,23 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
766
770
|
})
|
|
767
771
|
})
|
|
768
772
|
] })
|
|
769
|
-
})] }) })]
|
|
773
|
+
})] })] })]
|
|
770
774
|
}),
|
|
771
|
-
|
|
772
|
-
dataSink:
|
|
773
|
-
isOpen:
|
|
774
|
-
onClose: H,
|
|
775
|
-
onConfirm: ct
|
|
776
|
-
}), /* @__PURE__ */ v(de, {
|
|
777
|
-
dataSink: V,
|
|
778
|
-
isOpen: Qe,
|
|
775
|
+
H && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(de, {
|
|
776
|
+
dataSink: H,
|
|
777
|
+
isOpen: $e,
|
|
779
778
|
onClose: U,
|
|
780
|
-
onConfirm:
|
|
779
|
+
onConfirm: dt
|
|
780
|
+
}), /* @__PURE__ */ v(fe, {
|
|
781
|
+
dataSink: H,
|
|
782
|
+
isOpen: et,
|
|
783
|
+
onClose: W,
|
|
784
|
+
onConfirm: lt
|
|
781
785
|
})] }),
|
|
782
|
-
/* @__PURE__ */ v(
|
|
783
|
-
isOpen:
|
|
784
|
-
onClose: () =>
|
|
785
|
-
onSuccess:
|
|
786
|
+
/* @__PURE__ */ v(pe, {
|
|
787
|
+
isOpen: Ye,
|
|
788
|
+
onClose: () => Xe(!1),
|
|
789
|
+
onSuccess: mt
|
|
786
790
|
})
|
|
787
791
|
]
|
|
788
792
|
});
|