@burdenoff/microfe-bigconsole 2026.1012.3 → 2026.1012.5

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