@burdenoff/microfe-bigconsole 2026.1119.10 → 2026.1121.1

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