@burdenoff/microfe-bigconsole 2026.1113.1 → 2026.1113.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 +60 -58
- package/dist/bigconsole/components/widgets/WidgetWrapper.js +123 -121
- package/dist/bigconsole/context/BigConsoleContext.d.ts +2 -0
- package/dist/bigconsole/context/BigConsoleContext.js +14 -12
- package/dist/bigconsole/pages/DashboardViewPage.js +241 -239
- package/dist/bigconsole/pages/DashboardsPage.js +265 -262
- package/dist/bigconsole/pages/DataSinkViewPage.js +253 -251
- package/dist/bigconsole/pages/DataSinksPage.js +162 -160
- package/dist/bigconsole/pages/SettingsPage.js +127 -123
- package/dist/bigconsole/proactive/actions.d.ts +16 -0
- package/dist/bigconsole/proactive/actions.js +34 -0
- package/dist/bigconsole/proactive/activityEntity.d.ts +5 -0
- package/dist/bigconsole/proactive/activityEntity.js +27 -0
- package/dist/bigconsole/proactive/entities.d.ts +16 -0
- package/dist/bigconsole/proactive/entities.js +20 -0
- package/dist/bigconsole/proactive/index.d.ts +15 -0
- package/dist/bigconsole/proactive/index.js +5 -0
- package/dist/bigconsole/proactive/routes.d.ts +11 -0
- package/dist/bigconsole/proactive/routes.js +6 -0
- package/dist/bigconsole/types/index.d.ts +7 -0
- package/dist/generated/wspace-operations.js +213 -19
- package/dist/node_modules/zod/v4/classic/errors.js +42 -0
- package/dist/node_modules/zod/v4/classic/parse.js +5 -0
- package/dist/node_modules/zod/v4/classic/schemas.js +622 -0
- package/dist/node_modules/zod/v4/core/api.js +427 -0
- package/dist/node_modules/zod/v4/core/checks.js +141 -0
- package/dist/node_modules/zod/v4/core/core.js +82 -0
- package/dist/node_modules/zod/v4/core/doc.js +27 -0
- package/dist/node_modules/zod/v4/core/errors.js +88 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +190 -0
- package/dist/node_modules/zod/v4/core/memoizer.js +186 -0
- package/dist/node_modules/zod/v4/core/parse.js +157 -0
- package/dist/node_modules/zod/v4/core/regexes.js +32 -0
- package/dist/node_modules/zod/v4/core/registries.js +39 -0
- package/dist/node_modules/zod/v4/core/schemas.js +856 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.js +328 -0
- package/dist/node_modules/zod/v4/core/util.js +415 -0
- package/dist/node_modules/zod/v4/core/versions.js +7 -0
- package/dist/node_modules/zod/v4/locales/en.js +94 -0
- package/package.json +8 -4
|
@@ -11,104 +11,105 @@ 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
13
|
import { DataSinkCard as ce } from "../components/datasink/DataSinkCard.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
14
|
+
import { dataSinkSuggestAnchorProps as le } from "../proactive/entities.js";
|
|
15
|
+
import { DataSinkDeleteDialog as ue } from "../components/datasink/DataSinkDeleteDialog.js";
|
|
16
|
+
import { DataSinkRefreshDialog as de } from "../components/datasink/DataSinkRefreshDialog.js";
|
|
17
|
+
import { ImportDataSinkDialog as fe } from "../components/datasink/ImportDataSinkDialog.js";
|
|
17
18
|
import "../components/common/index.js";
|
|
18
|
-
import { dataSinksListControls as
|
|
19
|
-
import { LIST_SORT_COPY as a, listSortOptions as
|
|
20
|
-
import { selectDataSinks as
|
|
21
|
-
import { DataSinkStatusBadge as
|
|
22
|
-
import { SetupStateBadge as
|
|
19
|
+
import { dataSinksListControls as pe } from "../assistant/pageControls.js";
|
|
20
|
+
import { LIST_SORT_COPY as a, listSortOptions as me } from "../utils/listSort.js";
|
|
21
|
+
import { selectDataSinks as he } from "../utils/dataSinkList.js";
|
|
22
|
+
import { DataSinkStatusBadge as ge } from "../components/datasink/DataSinkStatusBadge.js";
|
|
23
|
+
import { SetupStateBadge as _e } from "../components/datasink/SetupStateBadge.js";
|
|
23
24
|
import { memo as o, useCallback as s, useMemo as c, useState as l } from "react";
|
|
24
|
-
import { AccessDenied as
|
|
25
|
-
import { usePermissions as
|
|
26
|
-
import { AlertCircle as
|
|
27
|
-
import { AuroraBackground as
|
|
28
|
-
import { useI18n as
|
|
25
|
+
import { AccessDenied as ve, PermissionButton as ye } from "@burdenoff/fe-libs/shared/components";
|
|
26
|
+
import { usePermissions as be } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
27
|
+
import { AlertCircle as xe, Container as Se, Download as Ce, Eye as we, LayoutGrid as Te, Pencil as Ee, Plus as De, RefreshCw as Oe, Search as ke, Table2 as Ae, Trash2 as je, Upload as Me, X as Ne } from "lucide-react";
|
|
28
|
+
import { AuroraBackground as Pe, Badge as Fe, Button as u, CTAOverflowMenu as Ie, GradientText as Le, IllustratedEmptyState as Re, Input as ze, PagePurpose as Be, Select as d, SelectContent as f, SelectItem as p, SelectTrigger as m, SelectValue as h, Spinner as Ve } from "@burdenoff/fe-libs/ui";
|
|
29
|
+
import { useI18n as He } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
29
30
|
import { getProfileScopedKey as g } from "@burdenoff/fe-libs/shared/utils";
|
|
30
31
|
import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
31
|
-
import { useAssistantPageControls as
|
|
32
|
+
import { useAssistantPageControls as Ue } from "@burdenoff/fe-libs/shared/assistant/appControls/useAssistantControl";
|
|
32
33
|
import { formatDistanceToNow as b } from "date-fns";
|
|
33
34
|
// src/bigconsole/pages/DataSinksPage.tsx
|
|
34
|
-
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",
|
|
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", We = (e) => {
|
|
35
36
|
if (!e) return "—";
|
|
36
37
|
let t = new Date(e);
|
|
37
38
|
return Number.isNaN(t.getTime()) ? "—" : b(t, { addSuffix: !0 });
|
|
38
39
|
}, w = o(function() {
|
|
39
|
-
let o = t(), { t: b } =
|
|
40
|
+
let o = t(), { t: b } = He(), w = s((e, t) => {
|
|
40
41
|
let n = b(e);
|
|
41
42
|
return n === e ? t : n;
|
|
42
|
-
}, [b]), { hasPermission: T, isLoading: E } =
|
|
43
|
-
|
|
44
|
-
}, []),
|
|
43
|
+
}, [b]), { hasPermission: T, isLoading: E } = be(), D = T(e.DATASINK_READ), O = T(e.DATASINK_CREATE), k = T(e.DATASINK_UPDATE), A = T(e.DATASINK_DELETE), Ge = T(e.DATASINK_EXECUTE), [j, M] = l("all"), [N, Ke] = l("updated-desc"), [qe, Je] = l(!1), [P, Ye] = l(() => localStorage.getItem(g(x)) || "grid"), Xe = s((e) => {
|
|
44
|
+
Ye(e), localStorage.setItem(g(x), e);
|
|
45
|
+
}, []), F = i((e) => e.statusFilter), I = i((e) => e.activeFilter), L = i((e) => e.searchQuery), R = i((e) => e.setStatusFilter), z = i((e) => e.setActiveFilter), B = i((e) => e.setSearchQuery), Ze = i((e) => e.deleteDialogOpen), Qe = i((e) => e.refreshDialogOpen), V = i((e) => e.currentDataSink), $e = i((e) => e.openDeleteDialog), H = i((e) => e.closeDeleteDialog), et = i((e) => e.openRefreshDialog), U = i((e) => e.closeRefreshDialog), { loading: W, error: G, dataSinks: K, deleteDataSink: tt, refreshDataSink: nt, refetch: q } = ie(), { downloadDataSink: J } = ae(), rt = c(() => K.map((e) => ({
|
|
45
46
|
dataSink: e,
|
|
46
47
|
setupState: se(e)
|
|
47
|
-
})), [
|
|
48
|
-
setupState:
|
|
49
|
-
status:
|
|
50
|
-
active:
|
|
51
|
-
search:
|
|
52
|
-
sort:
|
|
48
|
+
})), [K]), Y = c(() => he(rt, {
|
|
49
|
+
setupState: j,
|
|
50
|
+
status: F,
|
|
51
|
+
active: I,
|
|
52
|
+
search: L,
|
|
53
|
+
sort: N
|
|
53
54
|
}), [
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
rt,
|
|
56
|
+
j,
|
|
57
|
+
F,
|
|
56
58
|
I,
|
|
57
59
|
L,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
]), rt = s(() => {
|
|
60
|
+
N
|
|
61
|
+
]), it = s(() => {
|
|
61
62
|
o("/datasinks/new");
|
|
62
63
|
}, [o]), X = s((e) => {
|
|
63
64
|
o(`/datasinks/${e}`);
|
|
64
65
|
}, [o]), Z = s((e) => {
|
|
65
66
|
o(`/datasinks/${e}/edit`);
|
|
66
|
-
}, [o]),
|
|
67
|
-
let t =
|
|
68
|
-
t &&
|
|
69
|
-
}, [
|
|
70
|
-
|
|
71
|
-
id:
|
|
67
|
+
}, [o]), at = s((e) => {
|
|
68
|
+
let t = K.find((t) => t.id === e);
|
|
69
|
+
t && et(t);
|
|
70
|
+
}, [K, et]), ot = s(async (e) => {
|
|
71
|
+
V && (await nt({
|
|
72
|
+
id: V.id,
|
|
72
73
|
forceRefresh: e
|
|
73
|
-
}),
|
|
74
|
+
}), U());
|
|
74
75
|
}, [
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
]),
|
|
79
|
-
let t =
|
|
80
|
-
t &&
|
|
81
|
-
}, [
|
|
82
|
-
if (
|
|
76
|
+
V,
|
|
77
|
+
nt,
|
|
78
|
+
U
|
|
79
|
+
]), st = s((e) => {
|
|
80
|
+
let t = K.find((t) => t.id === e);
|
|
81
|
+
t && $e(t);
|
|
82
|
+
}, [K, $e]), ct = s(async () => {
|
|
83
|
+
if (V) {
|
|
83
84
|
try {
|
|
84
|
-
await
|
|
85
|
+
await tt(V.id), ne() && re("success");
|
|
85
86
|
} catch (e) {
|
|
86
87
|
throw ne() && re("error"), e;
|
|
87
88
|
}
|
|
88
|
-
|
|
89
|
+
H();
|
|
89
90
|
}
|
|
90
91
|
}, [
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
]),
|
|
95
|
-
let t =
|
|
96
|
-
t && await
|
|
97
|
-
}, [
|
|
98
|
-
|
|
99
|
-
}, []),
|
|
100
|
-
|
|
101
|
-
}, [
|
|
102
|
-
|
|
92
|
+
V,
|
|
93
|
+
tt,
|
|
94
|
+
H
|
|
95
|
+
]), lt = s(async (e) => {
|
|
96
|
+
let t = K.find((t) => t.id === e);
|
|
97
|
+
t && await J(e, t.name || t.key);
|
|
98
|
+
}, [K, J]), ut = s(() => {
|
|
99
|
+
Je(!0);
|
|
100
|
+
}, []), dt = s((e, t, n) => {
|
|
101
|
+
q();
|
|
102
|
+
}, [q]), ft = c(() => j !== "all" || F !== null || I !== null || L.trim() !== "", [
|
|
103
|
+
j,
|
|
104
|
+
F,
|
|
103
105
|
I,
|
|
104
|
-
L
|
|
105
|
-
R
|
|
106
|
+
L
|
|
106
107
|
]), Q = s(() => {
|
|
107
|
-
|
|
108
|
+
M("all"), R(null), z(null), B("");
|
|
108
109
|
}, [
|
|
110
|
+
R,
|
|
109
111
|
z,
|
|
110
|
-
B
|
|
111
|
-
V
|
|
112
|
+
B
|
|
112
113
|
]), $ = c(() => [
|
|
113
114
|
{
|
|
114
115
|
value: "all",
|
|
@@ -122,33 +123,33 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
122
123
|
value: "completed",
|
|
123
124
|
label: w("bigconsole.dataSinks.filters.setupState.completed", "Completed")
|
|
124
125
|
}
|
|
125
|
-
], [w]),
|
|
126
|
+
], [w]), pt = c(() => me(w, !1), [w]), mt = c(() => !E && D && !G ? pe({
|
|
126
127
|
tr: w,
|
|
127
128
|
setupStateOptions: $,
|
|
128
|
-
setupState:
|
|
129
|
-
setSetupState:
|
|
130
|
-
status:
|
|
131
|
-
setStatus:
|
|
132
|
-
active:
|
|
133
|
-
setActive:
|
|
134
|
-
setSearch:
|
|
135
|
-
sort:
|
|
136
|
-
setSort:
|
|
129
|
+
setupState: j,
|
|
130
|
+
setSetupState: M,
|
|
131
|
+
status: F,
|
|
132
|
+
setStatus: R,
|
|
133
|
+
active: I,
|
|
134
|
+
setActive: z,
|
|
135
|
+
setSearch: B,
|
|
136
|
+
sort: N,
|
|
137
|
+
setSort: Ke
|
|
137
138
|
}) : null, [
|
|
138
139
|
w,
|
|
139
140
|
E,
|
|
140
141
|
D,
|
|
141
|
-
|
|
142
|
+
G,
|
|
142
143
|
$,
|
|
143
|
-
|
|
144
|
+
j,
|
|
145
|
+
F,
|
|
146
|
+
R,
|
|
144
147
|
I,
|
|
145
148
|
z,
|
|
146
|
-
L,
|
|
147
149
|
B,
|
|
148
|
-
|
|
149
|
-
P
|
|
150
|
+
N
|
|
150
151
|
]);
|
|
151
|
-
return
|
|
152
|
+
return Ue(mt), !E && !D ? /* @__PURE__ */ v(ve, {
|
|
152
153
|
title: w("bigconsole.dataSinks.accessDenied.title", "Access Denied"),
|
|
153
154
|
description: w("bigconsole.dataSinks.accessDenied.description", "You don't have permission to view data sinks.")
|
|
154
155
|
}) : /* @__PURE__ */ y("div", {
|
|
@@ -157,7 +158,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
157
158
|
children: [
|
|
158
159
|
/* @__PURE__ */ y("header", {
|
|
159
160
|
className: "relative overflow-hidden border-b border-[var(--color-border-seam)] bg-[image:var(--gradient-gloss-card)]",
|
|
160
|
-
children: [/* @__PURE__ */ v(
|
|
161
|
+
children: [/* @__PURE__ */ v(Pe, { intensity: "subtle" }), /* @__PURE__ */ v("div", {
|
|
161
162
|
style: { padding: "var(--space-pagePadding)" },
|
|
162
163
|
children: /* @__PURE__ */ y("div", {
|
|
163
164
|
style: {
|
|
@@ -185,7 +186,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
185
186
|
borderRadius: "var(--radius-card)",
|
|
186
187
|
backgroundColor: "var(--color-action-primary-bg)"
|
|
187
188
|
},
|
|
188
|
-
children: /* @__PURE__ */ v(
|
|
189
|
+
children: /* @__PURE__ */ v(Se, { style: {
|
|
189
190
|
height: "var(--size-icon-lg)",
|
|
190
191
|
width: "var(--size-icon-lg)",
|
|
191
192
|
color: "var(--color-action-primary-text)"
|
|
@@ -194,17 +195,17 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
194
195
|
style: { minWidth: 0 },
|
|
195
196
|
children: [/* @__PURE__ */ v("h1", {
|
|
196
197
|
className: "m-0 text-2xl font-bold text-text-primary",
|
|
197
|
-
children: /* @__PURE__ */ v(
|
|
198
|
+
children: /* @__PURE__ */ v(Le, { children: w("bigconsole.dataSinks.title", "Data Sinks") })
|
|
198
199
|
}), /* @__PURE__ */ v("p", {
|
|
199
200
|
className: "m-0 text-sm text-text-secondary",
|
|
200
201
|
children: w("bigconsole.dataSinks.subtitle", "Manage pre-processed data from FluidGrids workflows")
|
|
201
202
|
})]
|
|
202
203
|
})]
|
|
203
|
-
}), /* @__PURE__ */ v(
|
|
204
|
+
}), /* @__PURE__ */ v(Ie, {
|
|
204
205
|
primary: O ? {
|
|
205
206
|
label: w("bigconsole.dataSinks.actions.create", "Create Data Sink"),
|
|
206
|
-
onSelect:
|
|
207
|
-
icon: /* @__PURE__ */ v(
|
|
207
|
+
onSelect: it,
|
|
208
|
+
icon: /* @__PURE__ */ v(De, { style: {
|
|
208
209
|
marginRight: "var(--space-iconGap)",
|
|
209
210
|
height: "var(--size-icon-sm)",
|
|
210
211
|
width: "var(--size-icon-sm)"
|
|
@@ -212,8 +213,8 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
212
213
|
} : void 0,
|
|
213
214
|
actions: O ? [{
|
|
214
215
|
label: w("bigconsole.dataSinks.actions.import", "Import"),
|
|
215
|
-
onSelect:
|
|
216
|
-
icon: /* @__PURE__ */ v(
|
|
216
|
+
onSelect: ut,
|
|
217
|
+
icon: /* @__PURE__ */ v(Me, { style: {
|
|
217
218
|
height: "var(--size-icon-sm)",
|
|
218
219
|
width: "var(--size-icon-sm)"
|
|
219
220
|
} })
|
|
@@ -224,18 +225,18 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
224
225
|
}),
|
|
225
226
|
/* @__PURE__ */ y("div", {
|
|
226
227
|
style: { padding: "var(--space-pagePadding)" },
|
|
227
|
-
children: [/* @__PURE__ */ v(
|
|
228
|
+
children: [/* @__PURE__ */ v(Be, {
|
|
228
229
|
className: "mb-[var(--space-sectionGap)]",
|
|
229
230
|
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__ */ v(ee, { children:
|
|
231
|
+
}), /* @__PURE__ */ v(ee, { children: G ? /* @__PURE__ */ v(r, {
|
|
231
232
|
tone: "danger",
|
|
232
233
|
headingLevel: 2,
|
|
233
234
|
title: w("bigconsole.dataSinks.error.title", "Failed to load Data Sinks"),
|
|
234
|
-
description:
|
|
235
|
-
icon: /* @__PURE__ */ v(
|
|
235
|
+
description: G.message,
|
|
236
|
+
icon: /* @__PURE__ */ v(xe, { className: "h-icon-sm w-icon-sm" }),
|
|
236
237
|
actions: /* @__PURE__ */ v(u, {
|
|
237
238
|
size: "sm",
|
|
238
|
-
onClick: () =>
|
|
239
|
+
onClick: () => q(),
|
|
239
240
|
children: w("bigconsole.dataSinks.error.retry", "Try Again")
|
|
240
241
|
})
|
|
241
242
|
}) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(r, {
|
|
@@ -260,8 +261,8 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
260
261
|
},
|
|
261
262
|
children: $.map((e) => /* @__PURE__ */ v("button", {
|
|
262
263
|
type: "button",
|
|
263
|
-
"aria-pressed":
|
|
264
|
-
onClick: () =>
|
|
264
|
+
"aria-pressed": j === e.value,
|
|
265
|
+
onClick: () => M(e.value),
|
|
265
266
|
className: n,
|
|
266
267
|
style: {
|
|
267
268
|
minHeight: "var(--size-controlHeight-md)",
|
|
@@ -271,9 +272,9 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
271
272
|
borderRadius: "var(--radius-button)",
|
|
272
273
|
border: "none",
|
|
273
274
|
cursor: "pointer",
|
|
274
|
-
backgroundColor:
|
|
275
|
-
color:
|
|
276
|
-
boxShadow:
|
|
275
|
+
backgroundColor: j === e.value ? "var(--color-bg-surface)" : "transparent",
|
|
276
|
+
color: j === e.value ? "var(--color-text-primary)" : "var(--color-text-secondary)",
|
|
277
|
+
boxShadow: j === e.value ? "var(--shadow-elevation-1)" : "none"
|
|
277
278
|
},
|
|
278
279
|
children: e.label
|
|
279
280
|
}, e.value))
|
|
@@ -292,7 +293,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
292
293
|
minWidth: "min(100%, 240px)",
|
|
293
294
|
flex: "1 1 240px"
|
|
294
295
|
},
|
|
295
|
-
children: [/* @__PURE__ */ v(
|
|
296
|
+
children: [/* @__PURE__ */ v(ke, { style: {
|
|
296
297
|
position: "absolute",
|
|
297
298
|
left: "var(--space-controlGap)",
|
|
298
299
|
top: "50%",
|
|
@@ -300,11 +301,11 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
300
301
|
height: "var(--size-icon-sm)",
|
|
301
302
|
width: "var(--size-icon-sm)",
|
|
302
303
|
color: "var(--color-text-muted)"
|
|
303
|
-
} }), /* @__PURE__ */ v(
|
|
304
|
+
} }), /* @__PURE__ */ v(ze, {
|
|
304
305
|
type: "text",
|
|
305
306
|
placeholder: w("bigconsole.dataSinks.search.placeholder", "Search data sinks..."),
|
|
306
|
-
value:
|
|
307
|
-
onChange: (e) =>
|
|
307
|
+
value: L,
|
|
308
|
+
onChange: (e) => B(e.target.value),
|
|
308
309
|
style: {
|
|
309
310
|
paddingLeft: "var(--size-controlHeight-md)",
|
|
310
311
|
height: "var(--size-controlHeight-md)"
|
|
@@ -312,8 +313,8 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
312
313
|
})]
|
|
313
314
|
}),
|
|
314
315
|
/* @__PURE__ */ y(d, {
|
|
315
|
-
value:
|
|
316
|
-
onValueChange: (e) =>
|
|
316
|
+
value: F || "all",
|
|
317
|
+
onValueChange: (e) => R(e === "all" ? null : e),
|
|
317
318
|
children: [/* @__PURE__ */ v(m, {
|
|
318
319
|
style: { width: "min(100%, 150px)" },
|
|
319
320
|
children: /* @__PURE__ */ v(h, { placeholder: w("bigconsole.dataSinks.filters.status.placeholder", "All Statuses") })
|
|
@@ -341,8 +342,8 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
341
342
|
] })]
|
|
342
343
|
}),
|
|
343
344
|
/* @__PURE__ */ y(d, {
|
|
344
|
-
value:
|
|
345
|
-
onValueChange: (e) =>
|
|
345
|
+
value: I === null ? "all" : I ? "true" : "false",
|
|
346
|
+
onValueChange: (e) => z(e === "all" ? null : e === "true"),
|
|
346
347
|
children: [/* @__PURE__ */ v(m, {
|
|
347
348
|
style: { width: "min(100%, 130px)" },
|
|
348
349
|
children: /* @__PURE__ */ v(h, { placeholder: w("bigconsole.dataSinks.filters.active.placeholder", "All") })
|
|
@@ -363,15 +364,15 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
363
364
|
}),
|
|
364
365
|
/* @__PURE__ */ v(te, {
|
|
365
366
|
label: w(a.label.key, a.label.en),
|
|
366
|
-
value:
|
|
367
|
-
options:
|
|
368
|
-
onChange:
|
|
367
|
+
value: N,
|
|
368
|
+
options: pt,
|
|
369
|
+
onChange: Ke
|
|
369
370
|
}),
|
|
370
|
-
|
|
371
|
+
ft && /* @__PURE__ */ y(u, {
|
|
371
372
|
variant: "ghost",
|
|
372
373
|
size: "sm",
|
|
373
374
|
onClick: Q,
|
|
374
|
-
children: [/* @__PURE__ */ v(
|
|
375
|
+
children: [/* @__PURE__ */ v(Ne, { style: {
|
|
375
376
|
marginRight: "var(--space-iconGap)",
|
|
376
377
|
height: "var(--size-icon-sm)",
|
|
377
378
|
width: "var(--size-icon-sm)"
|
|
@@ -384,7 +385,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
384
385
|
headingLevel: 2,
|
|
385
386
|
title: w("bigconsole.dataSinks.list.heading", "Data sinks"),
|
|
386
387
|
description: w("bigconsole.dataSinks.list.description", "Every sink in this workspace, most recently updated first."),
|
|
387
|
-
meta: /* @__PURE__ */ y(
|
|
388
|
+
meta: /* @__PURE__ */ y(Fe, {
|
|
388
389
|
variant: "secondary",
|
|
389
390
|
children: [
|
|
390
391
|
Y.length,
|
|
@@ -403,39 +404,39 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
403
404
|
},
|
|
404
405
|
children: [/* @__PURE__ */ v("button", {
|
|
405
406
|
type: "button",
|
|
406
|
-
onClick: () =>
|
|
407
|
-
"aria-pressed":
|
|
407
|
+
onClick: () => Xe("grid"),
|
|
408
|
+
"aria-pressed": P === "grid",
|
|
408
409
|
title: w("bigconsole.dataSinks.view.grid", "Grid view"),
|
|
409
410
|
className: `flex h-control-md w-[var(--size-controlHeight-md)] items-center justify-center ${n} ${C}`,
|
|
410
411
|
style: {
|
|
411
412
|
border: "none",
|
|
412
413
|
cursor: "pointer",
|
|
413
|
-
backgroundColor:
|
|
414
|
-
color:
|
|
414
|
+
backgroundColor: P === "grid" ? "var(--color-bg-sunken)" : "transparent",
|
|
415
|
+
color: P === "grid" ? "var(--color-text-primary)" : "var(--color-text-muted)"
|
|
415
416
|
},
|
|
416
|
-
children: /* @__PURE__ */ v(
|
|
417
|
+
children: /* @__PURE__ */ v(Te, { size: 16 })
|
|
417
418
|
}), /* @__PURE__ */ v("button", {
|
|
418
419
|
type: "button",
|
|
419
|
-
onClick: () =>
|
|
420
|
-
"aria-pressed":
|
|
420
|
+
onClick: () => Xe("table"),
|
|
421
|
+
"aria-pressed": P === "table",
|
|
421
422
|
title: w("bigconsole.dataSinks.view.table", "Table view"),
|
|
422
423
|
className: `flex h-control-md w-[var(--size-controlHeight-md)] items-center justify-center ${n} ${C}`,
|
|
423
424
|
style: {
|
|
424
425
|
border: "none",
|
|
425
426
|
borderLeft: "1px solid var(--color-border)",
|
|
426
427
|
cursor: "pointer",
|
|
427
|
-
backgroundColor:
|
|
428
|
-
color:
|
|
428
|
+
backgroundColor: P === "table" ? "var(--color-bg-sunken)" : "transparent",
|
|
429
|
+
color: P === "table" ? "var(--color-text-primary)" : "var(--color-text-muted)"
|
|
429
430
|
},
|
|
430
|
-
children: /* @__PURE__ */ v(
|
|
431
|
+
children: /* @__PURE__ */ v(Ae, { size: 16 })
|
|
431
432
|
})]
|
|
432
433
|
}),
|
|
433
434
|
children: /* @__PURE__ */ y(_, { children: [
|
|
434
|
-
|
|
435
|
+
W && K.length === 0 && /* @__PURE__ */ v("div", {
|
|
435
436
|
className: "flex items-center justify-center py-12",
|
|
436
437
|
children: /* @__PURE__ */ y("div", {
|
|
437
438
|
style: { textAlign: "center" },
|
|
438
|
-
children: [/* @__PURE__ */ v(
|
|
439
|
+
children: [/* @__PURE__ */ v(Ve, { style: {
|
|
439
440
|
height: "var(--size-icon-xl)",
|
|
440
441
|
width: "var(--size-icon-xl)",
|
|
441
442
|
margin: "0 auto var(--space-formGap)"
|
|
@@ -445,16 +446,16 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
445
446
|
})]
|
|
446
447
|
})
|
|
447
448
|
}),
|
|
448
|
-
!
|
|
449
|
+
!W && K.length === 0 && /* @__PURE__ */ v(Re, {
|
|
449
450
|
illustration: "empty-data",
|
|
450
451
|
title: w("bigconsole.dataSinks.empty.title", "No Data Sinks yet"),
|
|
451
452
|
description: w("bigconsole.dataSinks.empty.description", "Data Sinks store pre-processed data from FluidGrids workflows for fast access in widgets."),
|
|
452
|
-
action: /* @__PURE__ */ v(
|
|
453
|
+
action: /* @__PURE__ */ v(ye, {
|
|
453
454
|
permission: e.DATASINK_CREATE,
|
|
454
455
|
deniedBehavior: "disable",
|
|
455
456
|
children: /* @__PURE__ */ y(u, {
|
|
456
|
-
onClick:
|
|
457
|
-
children: [/* @__PURE__ */ v(
|
|
457
|
+
onClick: it,
|
|
458
|
+
children: [/* @__PURE__ */ v(De, { style: {
|
|
458
459
|
marginRight: "var(--space-iconGap)",
|
|
459
460
|
height: "var(--size-icon-sm)",
|
|
460
461
|
width: "var(--size-icon-sm)"
|
|
@@ -462,7 +463,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
462
463
|
})
|
|
463
464
|
})
|
|
464
465
|
}),
|
|
465
|
-
!
|
|
466
|
+
!W && Y.length === 0 && K.length > 0 && /* @__PURE__ */ v(r, {
|
|
466
467
|
tone: "info",
|
|
467
468
|
emphasis: "muted",
|
|
468
469
|
padding: "compact",
|
|
@@ -476,7 +477,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
476
477
|
children: w("bigconsole.dataSinks.filters.clear", "Clear Filters")
|
|
477
478
|
})
|
|
478
479
|
}),
|
|
479
|
-
Y.length > 0 &&
|
|
480
|
+
Y.length > 0 && P === "grid" && /* @__PURE__ */ v("div", {
|
|
480
481
|
style: {
|
|
481
482
|
display: "grid",
|
|
482
483
|
gridTemplateColumns: "repeat(auto-fill, minmax(min(100%, 320px), 1fr))",
|
|
@@ -488,15 +489,15 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
488
489
|
onView: X,
|
|
489
490
|
onEdit: Z,
|
|
490
491
|
onContinueSetup: Z,
|
|
491
|
-
onRefresh:
|
|
492
|
-
onExport:
|
|
493
|
-
onDelete:
|
|
492
|
+
onRefresh: at,
|
|
493
|
+
onExport: lt,
|
|
494
|
+
onDelete: st,
|
|
494
495
|
canEdit: k,
|
|
495
|
-
canRefresh:
|
|
496
|
+
canRefresh: Ge,
|
|
496
497
|
canDelete: A
|
|
497
498
|
}, e.dataSink.id))
|
|
498
499
|
}),
|
|
499
|
-
Y.length > 0 &&
|
|
500
|
+
Y.length > 0 && P === "table" && /* @__PURE__ */ v("div", {
|
|
500
501
|
className: "min-w-0",
|
|
501
502
|
style: { overflowX: "auto" },
|
|
502
503
|
children: /* @__PURE__ */ y("table", {
|
|
@@ -615,6 +616,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
615
616
|
}) }), /* @__PURE__ */ v("tbody", { children: Y.map((e) => {
|
|
616
617
|
let t = e.dataSink;
|
|
617
618
|
return /* @__PURE__ */ y("tr", {
|
|
619
|
+
...le(t.id),
|
|
618
620
|
onClick: () => X(t.id),
|
|
619
621
|
className: "cursor-pointer hover:bg-bg-sunken motion-safe:transition-colors",
|
|
620
622
|
style: { borderBottom: "1px solid var(--color-border)" },
|
|
@@ -646,11 +648,11 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
646
648
|
}),
|
|
647
649
|
/* @__PURE__ */ v("td", {
|
|
648
650
|
style: { padding: "10px 12px" },
|
|
649
|
-
children: /* @__PURE__ */ v(
|
|
651
|
+
children: /* @__PURE__ */ v(ge, { status: t.status })
|
|
650
652
|
}),
|
|
651
653
|
/* @__PURE__ */ v("td", {
|
|
652
654
|
style: { padding: "10px 12px" },
|
|
653
|
-
children: /* @__PURE__ */ v(
|
|
655
|
+
children: /* @__PURE__ */ v(_e, { state: e.setupState })
|
|
654
656
|
}),
|
|
655
657
|
/* @__PURE__ */ v("td", {
|
|
656
658
|
style: {
|
|
@@ -692,7 +694,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
692
694
|
whiteSpace: "nowrap"
|
|
693
695
|
},
|
|
694
696
|
title: t.lastRefreshedAt ? new Date(t.lastRefreshedAt).toLocaleString() : void 0,
|
|
695
|
-
children:
|
|
697
|
+
children: We(t.lastRefreshedAt)
|
|
696
698
|
}),
|
|
697
699
|
/* @__PURE__ */ v("td", {
|
|
698
700
|
style: {
|
|
@@ -721,7 +723,7 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
721
723
|
"aria-label": w("bigconsole.dataSinks.actions.view", "View"),
|
|
722
724
|
onClick: () => X(t.id),
|
|
723
725
|
className: S,
|
|
724
|
-
children: /* @__PURE__ */ v(
|
|
726
|
+
children: /* @__PURE__ */ v(we, { size: 14 })
|
|
725
727
|
}),
|
|
726
728
|
k && /* @__PURE__ */ v("button", {
|
|
727
729
|
type: "button",
|
|
@@ -729,31 +731,31 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
729
731
|
"aria-label": w("bigconsole.dataSinks.actions.edit", "Edit"),
|
|
730
732
|
onClick: () => Z(t.id),
|
|
731
733
|
className: S,
|
|
732
|
-
children: /* @__PURE__ */ v(
|
|
734
|
+
children: /* @__PURE__ */ v(Ee, { size: 14 })
|
|
733
735
|
}),
|
|
734
|
-
|
|
736
|
+
Ge && /* @__PURE__ */ v("button", {
|
|
735
737
|
type: "button",
|
|
736
738
|
title: w("bigconsole.dataSinks.actions.refresh", "Refresh"),
|
|
737
739
|
"aria-label": w("bigconsole.dataSinks.actions.refresh", "Refresh"),
|
|
738
|
-
onClick: () =>
|
|
740
|
+
onClick: () => at(t.id),
|
|
739
741
|
className: S,
|
|
740
|
-
children: /* @__PURE__ */ v(
|
|
742
|
+
children: /* @__PURE__ */ v(Oe, { size: 14 })
|
|
741
743
|
}),
|
|
742
744
|
/* @__PURE__ */ v("button", {
|
|
743
745
|
type: "button",
|
|
744
746
|
title: w("bigconsole.dataSinks.actions.export", "Export"),
|
|
745
747
|
"aria-label": w("bigconsole.dataSinks.actions.export", "Export"),
|
|
746
|
-
onClick: () =>
|
|
748
|
+
onClick: () => lt(t.id),
|
|
747
749
|
className: S,
|
|
748
|
-
children: /* @__PURE__ */ v(
|
|
750
|
+
children: /* @__PURE__ */ v(Ce, { size: 14 })
|
|
749
751
|
}),
|
|
750
752
|
A && /* @__PURE__ */ v("button", {
|
|
751
753
|
type: "button",
|
|
752
754
|
title: w("bigconsole.dataSinks.actions.delete", "Delete"),
|
|
753
755
|
"aria-label": w("bigconsole.dataSinks.actions.delete", "Delete"),
|
|
754
|
-
onClick: () =>
|
|
756
|
+
onClick: () => st(t.id),
|
|
755
757
|
className: S,
|
|
756
|
-
children: /* @__PURE__ */ v(
|
|
758
|
+
children: /* @__PURE__ */ v(je, { size: 14 })
|
|
757
759
|
})
|
|
758
760
|
]
|
|
759
761
|
})
|
|
@@ -766,21 +768,21 @@ var x = "bigconsole-datasinks-view-mode", S = `inline-flex h-control-md w-[var(-
|
|
|
766
768
|
] })
|
|
767
769
|
})] }) })]
|
|
768
770
|
}),
|
|
769
|
-
|
|
770
|
-
dataSink:
|
|
771
|
-
isOpen:
|
|
771
|
+
V && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(ue, {
|
|
772
|
+
dataSink: V,
|
|
773
|
+
isOpen: Ze,
|
|
774
|
+
onClose: H,
|
|
775
|
+
onConfirm: ct
|
|
776
|
+
}), /* @__PURE__ */ v(de, {
|
|
777
|
+
dataSink: V,
|
|
778
|
+
isOpen: Qe,
|
|
772
779
|
onClose: U,
|
|
773
|
-
onConfirm:
|
|
774
|
-
}), /* @__PURE__ */ v(ue, {
|
|
775
|
-
dataSink: H,
|
|
776
|
-
isOpen: Xe,
|
|
777
|
-
onClose: W,
|
|
778
|
-
onConfirm: at
|
|
780
|
+
onConfirm: ot
|
|
779
781
|
})] }),
|
|
780
|
-
/* @__PURE__ */ v(
|
|
781
|
-
isOpen:
|
|
782
|
-
onClose: () =>
|
|
783
|
-
onSuccess:
|
|
782
|
+
/* @__PURE__ */ v(fe, {
|
|
783
|
+
isOpen: qe,
|
|
784
|
+
onClose: () => Je(!1),
|
|
785
|
+
onSuccess: dt
|
|
784
786
|
})
|
|
785
787
|
]
|
|
786
788
|
});
|