@burdenoff/microfe-bigconsole 2026.924.1 → 2026.924.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bigconsole/BigConsoleRoutes.js +137 -138
- package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
- package/dist/bigconsole/assistant/previewController.js +10 -10
- package/dist/bigconsole/assistant/useAssistantPanelShowsPreview.js +25 -0
- package/dist/bigconsole/assistant/useAssistantPanelShowsPreview.js.map +1 -0
- package/dist/bigconsole/components/DrilldownDashboardRenderer.js +17 -17
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +32 -32
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +52 -52
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +7 -7
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +53 -0
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js.map +1 -0
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +60 -60
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +21 -21
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +36 -36
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +38 -38
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +121 -121
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +22 -22
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +53 -53
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +47 -47
- package/dist/bigconsole/components/dashboard/index.js +1 -0
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -29
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +48 -48
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +103 -103
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
- package/dist/bigconsole/components/overview/DashboardGuide.js +214 -0
- package/dist/bigconsole/components/overview/DashboardGuide.js.map +1 -0
- package/dist/bigconsole/components/overview/DataHealthCard.js +97 -0
- package/dist/bigconsole/components/overview/DataHealthCard.js.map +1 -0
- package/dist/bigconsole/components/overview/OverviewQuickActions.js +32 -0
- package/dist/bigconsole/components/overview/OverviewQuickActions.js.map +1 -0
- package/dist/bigconsole/components/overview/OverviewStatCard.js +57 -0
- package/dist/bigconsole/components/overview/OverviewStatCard.js.map +1 -0
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +107 -0
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js.map +1 -0
- package/dist/bigconsole/components/overview/dashboardGuideSteps.js +119 -0
- package/dist/bigconsole/components/overview/dashboardGuideSteps.js.map +1 -0
- package/dist/bigconsole/components/overview/index.js +8 -0
- package/dist/bigconsole/components/overview/overviewModel.js +119 -0
- package/dist/bigconsole/components/overview/overviewModel.js.map +1 -0
- package/dist/bigconsole/components/overview/useOverviewData.js +48 -0
- package/dist/bigconsole/components/overview/useOverviewData.js.map +1 -0
- package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
- package/dist/bigconsole/components/parser/ImportParserDialog.js +127 -127
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
- package/dist/bigconsole/components/preview/AiPreviewContent.js +5 -5
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +62 -61
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +82 -81
- package/dist/bigconsole/components/preview/AiPreviewPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +13 -13
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +70 -70
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +28 -28
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +25 -25
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
- package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +21 -21
- package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
- package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +10 -10
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +68 -68
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
- package/dist/bigconsole/pages/AdminPage.js +136 -136
- package/dist/bigconsole/pages/DashboardBuilderPage.js +10 -10
- package/dist/bigconsole/pages/DashboardViewPage.js +61 -61
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +327 -348
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +5 -5
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +10 -10
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +83 -83
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +11 -11
- package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
- package/dist/bigconsole/pages/InsightsPage.js +315 -315
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/OverviewPage.js +244 -0
- package/dist/bigconsole/pages/OverviewPage.js.map +1 -0
- package/dist/bigconsole/pages/ParserBuilderPage.js +5 -5
- package/dist/bigconsole/pages/ParserViewPage.js +98 -98
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +8 -8
- package/dist/bigconsole/pages/PipelineViewPage.js +46 -46
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +80 -80
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +70 -70
- package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
- package/dist/bigconsole/pages/WorkflowViewPage.js +200 -200
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +78 -78
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +34 -34
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +79 -79
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
- package/dist/bigconsole/utils/createDialogParam.js +14 -0
- package/dist/bigconsole/utils/createDialogParam.js.map +1 -0
- package/dist/generated/global-operations.js +1 -1
- package/dist/generated/wspace-operations.js +285 -222
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/shared/hooks/useTr.js +10 -7
- package/dist/shared/hooks/useTr.js.map +1 -1
- package/package.json +1 -1
- package/dist/bigconsole/pages/HomePage.js +0 -318
- package/dist/bigconsole/pages/HomePage.js.map +0 -1
|
@@ -1,25 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../components/common/index.js";
|
|
3
|
-
import { useBigConsoleNavigate as n } from "../context/BigConsoleContext.js";
|
|
1
|
+
import { useBigConsoleNavigate as e } from "../context/BigConsoleContext.js";
|
|
4
2
|
import "../context/index.js";
|
|
5
|
-
import { reportBigConsoleQuotaError as
|
|
3
|
+
import { reportBigConsoleQuotaError as t } from "../utils/quota.js";
|
|
4
|
+
import { Section as n, SectionStack as r } from "../components/common/Section.js";
|
|
5
|
+
import "../components/common/index.js";
|
|
6
6
|
import i from "../hooks/useDashboardOperations.js";
|
|
7
7
|
import "../hooks/index.js";
|
|
8
8
|
import { BIGCONSOLE_PERMISSIONS as a } from "../../constants/permissions.js";
|
|
9
|
-
import o from "
|
|
10
|
-
import
|
|
11
|
-
import te from "../components/dashboard/
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
9
|
+
import { useTr as o } from "../../shared/hooks/useTr.js";
|
|
10
|
+
import ee from "../components/dashboard/CreateDashboardDialog.js";
|
|
11
|
+
import s, { useDashboardStatusLabel as te } from "../components/dashboard/DashboardStatusPill.js";
|
|
12
|
+
import { isNative as c, nativeConfirm as ne, nativeImpact as l, nativeNotify as u } from "../../utils/nativeBridge.js";
|
|
13
|
+
import re from "../components/dashboard/ImportDashboardDialog.js";
|
|
14
|
+
import { resolveCreateParam as ie, withoutCreateParam as ae } from "../utils/createDialogParam.js";
|
|
15
|
+
import { memo as d, useCallback as f, useEffect as p, useState as m } from "react";
|
|
16
|
+
import { useSearchParams as oe } from "react-router";
|
|
17
|
+
import { AccessDenied as se, PermissionButton as h } from "@burdenoff/fe-libs/shared/components";
|
|
18
|
+
import { usePermissions as ce } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
19
|
+
import { Calendar as le, ChevronLeft as ue, ChevronRight as de, Copy as fe, FileText as pe, Layers as me, LayoutDashboard as g, LayoutGrid as he, List as ge, Pencil as _, Plus as v, Search as _e, Trash2 as ve, Upload as ye } from "lucide-react";
|
|
20
|
+
import { AuroraBackground as y, Badge as b, Button as x, CTAOverflowMenu as S, Card as C, CardContent as w, GlassCard as be, GradientText as T, IllustratedEmptyState as xe, Input as Se, PagePurpose as Ce, Spinner as E } from "@burdenoff/fe-libs/ui";
|
|
21
|
+
import { jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
19
22
|
//#region src/bigconsole/pages/DashboardsPage.tsx
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
if (t <=
|
|
23
|
+
var we = "bf-bigconsole-dashboards-view", k = 12, A = 7;
|
|
24
|
+
function Te(e, t) {
|
|
25
|
+
if (t <= A) return Array.from({ length: t }, (e, t) => t + 1);
|
|
23
26
|
let n = new Set([
|
|
24
27
|
1,
|
|
25
28
|
t,
|
|
@@ -31,12 +34,12 @@ function ve(e, t) {
|
|
|
31
34
|
t > 0 && e - r[t - 1] > 1 && i.push(null), i.push(e);
|
|
32
35
|
}), i;
|
|
33
36
|
}
|
|
34
|
-
var
|
|
35
|
-
return /* @__PURE__ */
|
|
37
|
+
var Ee = d(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onCreate: i, onImport: a, canCreate: o, canImport: ee }) {
|
|
38
|
+
return /* @__PURE__ */ O("div", {
|
|
36
39
|
className: "relative overflow-hidden border-b border-[var(--color-border-seam)] bg-[image:var(--gradient-gloss-card)]",
|
|
37
|
-
children: [/* @__PURE__ */
|
|
40
|
+
children: [/* @__PURE__ */ D(y, { intensity: "subtle" }), /* @__PURE__ */ D("div", {
|
|
38
41
|
style: { padding: "var(--space-pagePadding)" },
|
|
39
|
-
children: /* @__PURE__ */
|
|
42
|
+
children: /* @__PURE__ */ O("div", {
|
|
40
43
|
style: {
|
|
41
44
|
display: "flex",
|
|
42
45
|
alignItems: "center",
|
|
@@ -44,14 +47,14 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
44
47
|
flexWrap: "wrap",
|
|
45
48
|
gap: "var(--space-formGap)"
|
|
46
49
|
},
|
|
47
|
-
children: [/* @__PURE__ */
|
|
50
|
+
children: [/* @__PURE__ */ O("div", {
|
|
48
51
|
style: {
|
|
49
52
|
display: "flex",
|
|
50
53
|
alignItems: "center",
|
|
51
54
|
gap: "var(--space-formGap)",
|
|
52
55
|
minWidth: 0
|
|
53
56
|
},
|
|
54
|
-
children: [/* @__PURE__ */
|
|
57
|
+
children: [/* @__PURE__ */ D("div", {
|
|
55
58
|
style: {
|
|
56
59
|
display: "flex",
|
|
57
60
|
height: "var(--size-controlHeight-lg)",
|
|
@@ -62,22 +65,22 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
62
65
|
borderRadius: "var(--radius-card)",
|
|
63
66
|
backgroundColor: "var(--color-action-primary-bg)"
|
|
64
67
|
},
|
|
65
|
-
children: /* @__PURE__ */
|
|
68
|
+
children: /* @__PURE__ */ D(g, { style: {
|
|
66
69
|
height: "var(--size-icon-lg)",
|
|
67
70
|
width: "var(--size-icon-lg)",
|
|
68
71
|
color: "var(--color-action-primary-text)"
|
|
69
72
|
} })
|
|
70
|
-
}), /* @__PURE__ */
|
|
73
|
+
}), /* @__PURE__ */ O("div", {
|
|
71
74
|
style: { minWidth: 0 },
|
|
72
|
-
children: [/* @__PURE__ */
|
|
75
|
+
children: [/* @__PURE__ */ D("h1", {
|
|
73
76
|
style: {
|
|
74
77
|
fontSize: "var(--font-size-heading-h4)",
|
|
75
78
|
fontWeight: "var(--font-weight-bold)",
|
|
76
79
|
margin: 0,
|
|
77
80
|
color: "var(--color-text-primary)"
|
|
78
81
|
},
|
|
79
|
-
children: /* @__PURE__ */
|
|
80
|
-
}), /* @__PURE__ */
|
|
82
|
+
children: /* @__PURE__ */ D(T, { children: e })
|
|
83
|
+
}), /* @__PURE__ */ D("p", {
|
|
81
84
|
style: {
|
|
82
85
|
fontSize: "var(--font-size-body-sm)",
|
|
83
86
|
color: "var(--color-text-secondary)",
|
|
@@ -86,12 +89,12 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
86
89
|
children: t
|
|
87
90
|
})]
|
|
88
91
|
})]
|
|
89
|
-
}), /* @__PURE__ */
|
|
92
|
+
}), /* @__PURE__ */ D(S, {
|
|
90
93
|
primary: {
|
|
91
94
|
label: n,
|
|
92
95
|
onSelect: i,
|
|
93
96
|
disabled: !o,
|
|
94
|
-
icon: /* @__PURE__ */
|
|
97
|
+
icon: /* @__PURE__ */ D(v, { style: {
|
|
95
98
|
marginRight: "var(--space-iconGap)",
|
|
96
99
|
height: "var(--size-icon-sm)",
|
|
97
100
|
width: "var(--size-icon-sm)"
|
|
@@ -100,8 +103,8 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
100
103
|
actions: [{
|
|
101
104
|
label: r,
|
|
102
105
|
onSelect: a,
|
|
103
|
-
disabled: !
|
|
104
|
-
icon: /* @__PURE__ */
|
|
106
|
+
disabled: !ee,
|
|
107
|
+
icon: /* @__PURE__ */ D(ye, { style: {
|
|
105
108
|
height: "var(--size-icon-sm)",
|
|
106
109
|
width: "var(--size-icon-sm)"
|
|
107
110
|
} })
|
|
@@ -110,223 +113,199 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
110
113
|
})
|
|
111
114
|
})]
|
|
112
115
|
});
|
|
113
|
-
}),
|
|
114
|
-
|
|
115
|
-
DRAFT: "var(--color-text-muted)",
|
|
116
|
-
ARCHIVED: "var(--color-status-warning-bg)"
|
|
117
|
-
}, P = u(function({ status: e, label: t }) {
|
|
118
|
-
return /* @__PURE__ */ k("span", {
|
|
119
|
-
"data-testid": "dashboard-status",
|
|
120
|
-
style: {
|
|
121
|
-
display: "inline-flex",
|
|
122
|
-
alignItems: "center",
|
|
123
|
-
gap: "var(--space-iconGap)",
|
|
124
|
-
padding: "2px 8px",
|
|
125
|
-
borderRadius: "var(--radius-pill)",
|
|
126
|
-
backgroundColor: "var(--color-bg-sunken)",
|
|
127
|
-
border: "1px solid var(--color-border-subtle)",
|
|
128
|
-
fontSize: "10px",
|
|
129
|
-
fontWeight: "var(--font-weight-semibold)",
|
|
130
|
-
textTransform: "uppercase",
|
|
131
|
-
letterSpacing: "0.02em",
|
|
132
|
-
color: "var(--color-text-secondary)",
|
|
133
|
-
whiteSpace: "nowrap"
|
|
134
|
-
},
|
|
135
|
-
children: [/* @__PURE__ */ O("span", {
|
|
136
|
-
"aria-hidden": "true",
|
|
137
|
-
style: {
|
|
138
|
-
width: 6,
|
|
139
|
-
height: 6,
|
|
140
|
-
borderRadius: "50%",
|
|
141
|
-
backgroundColor: N[e],
|
|
142
|
-
flexShrink: 0
|
|
143
|
-
}
|
|
144
|
-
}), t]
|
|
145
|
-
});
|
|
146
|
-
}), F = u(function() {
|
|
147
|
-
let u = n(), b = ne(), [C, E] = p(""), [M, N] = p(1), [F, I] = p(!1), [L, R] = p(!1), [be, z] = p(!1), [B, xe] = p(() => {
|
|
116
|
+
}), j = d(function() {
|
|
117
|
+
let d = e(), y = o(), [S, T] = m(""), [A, j] = m(1), [De, M] = m(!1), [N, P] = m(!1), [Oe, F] = m(!1), [I, ke] = m(() => {
|
|
148
118
|
try {
|
|
149
|
-
return window.localStorage.getItem(
|
|
119
|
+
return window.localStorage.getItem(we) === "list" ? "list" : "grid";
|
|
150
120
|
} catch {
|
|
151
121
|
return "grid";
|
|
152
122
|
}
|
|
153
|
-
}),
|
|
154
|
-
|
|
123
|
+
}), L = f((e) => {
|
|
124
|
+
ke(e);
|
|
155
125
|
try {
|
|
156
|
-
window.localStorage.setItem(
|
|
126
|
+
window.localStorage.setItem(we, e);
|
|
157
127
|
} catch {}
|
|
158
|
-
}, []), { loading:
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}, [
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}, [
|
|
177
|
-
|
|
128
|
+
}, []), { loading: R, error: z, dashboards: B, createDashboard: V, deleteDashboard: H, cloneDashboard: U, refetch: W } = i(), { hasPermission: G, isLoading: K } = ce(), q = G(a.DASHBOARD_READ), J = G(a.DASHBOARD_CREATE), Ae = G(a.DASHBOARD_IMPORT), [Y, je] = oe();
|
|
129
|
+
p(() => {
|
|
130
|
+
let e = ie(Y, {
|
|
131
|
+
permissionsLoading: K,
|
|
132
|
+
canRead: q,
|
|
133
|
+
canCreate: J
|
|
134
|
+
});
|
|
135
|
+
e === "none" || e === "wait" || (e === "open" && M(!0), je(ae(Y), { replace: !0 }));
|
|
136
|
+
}, [
|
|
137
|
+
Y,
|
|
138
|
+
je,
|
|
139
|
+
K,
|
|
140
|
+
q,
|
|
141
|
+
J
|
|
142
|
+
]);
|
|
143
|
+
let X = B.filter((e) => e.name.toLowerCase().includes(S.toLowerCase()) || e.description?.toLowerCase().includes(S.toLowerCase())), Z = Math.max(1, Math.ceil(X.length / k)), Q = (A - 1) * k, $ = X.slice(Q, Q + k);
|
|
144
|
+
p(() => {
|
|
145
|
+
j(1);
|
|
146
|
+
}, [S, I]), p(() => {
|
|
147
|
+
A > Z && j(Z);
|
|
148
|
+
}, [A, Z]);
|
|
149
|
+
let Me = f(() => {
|
|
150
|
+
j((e) => Math.max(1, e - 1));
|
|
151
|
+
}, []), Ne = f(() => {
|
|
152
|
+
j((e) => Math.min(Z, e + 1));
|
|
153
|
+
}, [Z]), Pe = f((e) => {
|
|
154
|
+
j(e);
|
|
155
|
+
}, []), Fe = f(() => {
|
|
156
|
+
M(!0);
|
|
157
|
+
}, []), Ie = f(({ dashboardId: e }) => {
|
|
158
|
+
W(), d(`/dashboards/${e}`);
|
|
159
|
+
}, [W, d]), Le = f(() => {
|
|
160
|
+
N || M(!1);
|
|
161
|
+
}, [N]), Re = f(async (e) => {
|
|
162
|
+
P(!0);
|
|
178
163
|
try {
|
|
179
|
-
let t = await
|
|
164
|
+
let t = await V({
|
|
180
165
|
name: e.name,
|
|
181
166
|
description: e.description,
|
|
182
167
|
category: e.category,
|
|
183
168
|
tags: e.tags
|
|
184
169
|
});
|
|
185
|
-
t && (
|
|
170
|
+
t && (M(!1), d(`/dashboards/${t.id}/builder`));
|
|
186
171
|
} catch (e) {
|
|
187
|
-
if (
|
|
188
|
-
|
|
172
|
+
if (t(e, "project")) {
|
|
173
|
+
M(!1);
|
|
189
174
|
return;
|
|
190
175
|
}
|
|
191
|
-
throw console.error("Failed to create dashboard:", e),
|
|
176
|
+
throw console.error("Failed to create dashboard:", e), c() && u("error"), e;
|
|
192
177
|
} finally {
|
|
193
|
-
|
|
178
|
+
P(!1);
|
|
194
179
|
}
|
|
195
|
-
}, [
|
|
196
|
-
|
|
197
|
-
}, [
|
|
198
|
-
t.stopPropagation(),
|
|
199
|
-
}, [
|
|
180
|
+
}, [V, d]), ze = f((e) => {
|
|
181
|
+
d(`/dashboards/${e}`);
|
|
182
|
+
}, [d]), Be = f((e, t) => {
|
|
183
|
+
t.stopPropagation(), d(`/dashboards/${e}/builder`);
|
|
184
|
+
}, [d]), Ve = f(async (e, t) => {
|
|
200
185
|
t.stopPropagation();
|
|
201
|
-
let n =
|
|
186
|
+
let n = y("bigconsole.dashboards.confirmDelete", "Are you sure you want to delete this dashboard?"), r = await ne({
|
|
202
187
|
title: "Delete dashboard?",
|
|
203
188
|
message: n,
|
|
204
189
|
okButtonTitle: "Delete",
|
|
205
190
|
cancelButtonTitle: "Cancel"
|
|
206
191
|
});
|
|
207
192
|
if (r === null ? window.confirm(n) : r) {
|
|
208
|
-
|
|
193
|
+
l("medium");
|
|
209
194
|
try {
|
|
210
|
-
await
|
|
195
|
+
await H(e), c() && u("success");
|
|
211
196
|
} catch (e) {
|
|
212
|
-
throw
|
|
197
|
+
throw c() && u("error"), e;
|
|
213
198
|
}
|
|
214
199
|
}
|
|
215
|
-
}, [
|
|
216
|
-
|
|
217
|
-
let i =
|
|
200
|
+
}, [H, y]), He = f(async (e, n, r) => {
|
|
201
|
+
r.stopPropagation();
|
|
202
|
+
let i = y("bigconsole.dashboards.clone.defaultSuffix", "{{sourceName}} (Copy)", { sourceName: n }), a = window.prompt(y("bigconsole.dashboards.clone.namePrompt", "Name for the cloned dashboard:"), i);
|
|
218
203
|
if (!(!a || !a.trim())) {
|
|
219
|
-
|
|
204
|
+
l("medium");
|
|
220
205
|
try {
|
|
221
|
-
let t = await
|
|
222
|
-
t && (
|
|
206
|
+
let t = await U(e, a.trim());
|
|
207
|
+
t && (c() && u("success"), d(`/dashboards/${t.id}`));
|
|
223
208
|
} catch (e) {
|
|
224
|
-
if (
|
|
225
|
-
throw
|
|
209
|
+
if (t(e, "project")) return;
|
|
210
|
+
throw c() && u("error"), e;
|
|
226
211
|
}
|
|
227
212
|
}
|
|
228
213
|
}, [
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
]),
|
|
233
|
-
|
|
234
|
-
}, []),
|
|
235
|
-
|
|
236
|
-
}, []),
|
|
237
|
-
|
|
238
|
-
}, [
|
|
214
|
+
U,
|
|
215
|
+
d,
|
|
216
|
+
y
|
|
217
|
+
]), Ue = f(() => {
|
|
218
|
+
F(!0);
|
|
219
|
+
}, []), We = f(() => {
|
|
220
|
+
F(!1);
|
|
221
|
+
}, []), Ge = f((e, t) => {
|
|
222
|
+
W();
|
|
223
|
+
}, [W]), Ke = (e) => {
|
|
239
224
|
let t = new Date(e), n = /* @__PURE__ */ new Date(), r = n.getTime() - t.getTime(), i = Math.floor(r / 6e4), a = Math.floor(r / 36e5), o = Math.floor(r / 864e5);
|
|
240
|
-
return i < 1 ?
|
|
225
|
+
return i < 1 ? y("bigconsole.dashboards.time.justNow", "Just now") : i < 60 ? `${i}${y("bigconsole.dashboards.time.minutesAgoSuffix", "m ago")}` : a < 24 ? `${a}${y("bigconsole.dashboards.time.hoursAgoSuffix", "h ago")}` : o < 7 ? `${o}${y("bigconsole.dashboards.time.daysAgoSuffix", "d ago")}` : new Intl.DateTimeFormat("en-US", {
|
|
241
226
|
month: "short",
|
|
242
227
|
day: "numeric",
|
|
243
228
|
year: t.getFullYear() === n.getFullYear() ? void 0 : "numeric"
|
|
244
229
|
}).format(t);
|
|
245
|
-
},
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
createLabel: b("bigconsole.dashboards.actions.create", "Create Dashboard"),
|
|
255
|
-
importLabel: b("bigconsole.dashboards.actions.import", "Import"),
|
|
256
|
-
onCreate: je,
|
|
257
|
-
onImport: Re,
|
|
258
|
-
canCreate: Ee,
|
|
259
|
-
canImport: De
|
|
230
|
+
}, qe = te(), Je = (e) => e.widgetCount ?? 0, Ye = (e) => e.pageCount || 0, Xe = /* @__PURE__ */ D(Ee, {
|
|
231
|
+
title: y("bigconsole.dashboards.title", "Dashboards"),
|
|
232
|
+
subtitle: y("bigconsole.dashboards.subtitle", "Create and manage your analytics dashboards"),
|
|
233
|
+
createLabel: y("bigconsole.dashboards.actions.create", "Create Dashboard"),
|
|
234
|
+
importLabel: y("bigconsole.dashboards.actions.import", "Import"),
|
|
235
|
+
onCreate: Fe,
|
|
236
|
+
onImport: Ue,
|
|
237
|
+
canCreate: J,
|
|
238
|
+
canImport: Ae
|
|
260
239
|
});
|
|
261
|
-
if (
|
|
240
|
+
if (K) return /* @__PURE__ */ D("div", {
|
|
262
241
|
style: {
|
|
263
242
|
display: "flex",
|
|
264
243
|
alignItems: "center",
|
|
265
244
|
justifyContent: "center",
|
|
266
245
|
padding: "80px 0"
|
|
267
246
|
},
|
|
268
|
-
children: /* @__PURE__ */
|
|
247
|
+
children: /* @__PURE__ */ D(E, { style: {
|
|
269
248
|
height: "var(--size-icon-xl)",
|
|
270
249
|
width: "var(--size-icon-xl)"
|
|
271
250
|
} })
|
|
272
251
|
});
|
|
273
|
-
if (!
|
|
274
|
-
title:
|
|
275
|
-
description:
|
|
252
|
+
if (!q) return /* @__PURE__ */ D(se, {
|
|
253
|
+
title: y("bigconsole.dashboards.accessDenied.title", "Access Denied"),
|
|
254
|
+
description: y("bigconsole.dashboards.accessDenied.description", "You don't have permission to view dashboards.")
|
|
276
255
|
});
|
|
277
|
-
if (
|
|
256
|
+
if (z) return /* @__PURE__ */ O("div", {
|
|
278
257
|
style: {
|
|
279
258
|
minHeight: "100vh",
|
|
280
259
|
backgroundColor: "var(--color-bg-canvas)"
|
|
281
260
|
},
|
|
282
|
-
children: [
|
|
261
|
+
children: [Xe, /* @__PURE__ */ D("div", {
|
|
283
262
|
style: { padding: "var(--space-pagePadding)" },
|
|
284
|
-
children: /* @__PURE__ */
|
|
263
|
+
children: /* @__PURE__ */ D(n, {
|
|
285
264
|
headingLevel: 2,
|
|
286
265
|
tone: "danger",
|
|
287
|
-
title:
|
|
288
|
-
description:
|
|
266
|
+
title: y("bigconsole.dashboards.error.title", "Error loading dashboards"),
|
|
267
|
+
description: z.message,
|
|
289
268
|
"data-testid": "dashboards-error",
|
|
290
|
-
actions: /* @__PURE__ */
|
|
269
|
+
actions: /* @__PURE__ */ D(x, {
|
|
291
270
|
size: "sm",
|
|
292
|
-
onClick: () =>
|
|
293
|
-
children:
|
|
271
|
+
onClick: () => W(),
|
|
272
|
+
children: y("bigconsole.dashboards.error.retry", "Retry")
|
|
294
273
|
})
|
|
295
274
|
})
|
|
296
275
|
})]
|
|
297
276
|
});
|
|
298
|
-
let
|
|
299
|
-
return /* @__PURE__ */
|
|
277
|
+
let Ze = X.length;
|
|
278
|
+
return /* @__PURE__ */ O("div", {
|
|
300
279
|
style: {
|
|
301
280
|
minHeight: "100vh",
|
|
302
281
|
backgroundColor: "var(--color-bg-canvas)"
|
|
303
282
|
},
|
|
304
283
|
children: [
|
|
305
|
-
|
|
306
|
-
/* @__PURE__ */
|
|
284
|
+
Xe,
|
|
285
|
+
/* @__PURE__ */ D("div", {
|
|
307
286
|
style: { padding: "var(--space-pagePadding)" },
|
|
308
|
-
children: /* @__PURE__ */
|
|
287
|
+
children: /* @__PURE__ */ O(r, { children: [/* @__PURE__ */ D(n, {
|
|
309
288
|
emphasis: "muted",
|
|
310
289
|
padding: "compact",
|
|
311
|
-
"aria-label":
|
|
312
|
-
children: /* @__PURE__ */
|
|
290
|
+
"aria-label": y("bigconsole.dashboards.about", "About dashboards"),
|
|
291
|
+
children: /* @__PURE__ */ D(Ce, {
|
|
313
292
|
className: "max-w-[80ch]",
|
|
314
293
|
children: "Dashboards are live, shareable views built from widgets that query your data sinks — charts, tables, metrics, and drill-downs in one place. Compose a board to monitor a system, share KPIs with your team, or explore data interactively."
|
|
315
294
|
})
|
|
316
|
-
}), /* @__PURE__ */
|
|
295
|
+
}), /* @__PURE__ */ O(n, {
|
|
317
296
|
headingLevel: 2,
|
|
318
297
|
emphasis: "primary",
|
|
319
298
|
"data-testid": "dashboards-results",
|
|
320
|
-
title:
|
|
321
|
-
description:
|
|
322
|
-
meta: /* @__PURE__ */
|
|
299
|
+
title: y("bigconsole.dashboards.results.title", "Your dashboards"),
|
|
300
|
+
description: y("bigconsole.dashboards.results.description", "Open a board to view it, or use the card actions to edit, duplicate or delete."),
|
|
301
|
+
meta: /* @__PURE__ */ D(b, {
|
|
323
302
|
variant: "secondary",
|
|
324
|
-
"aria-label":
|
|
325
|
-
children:
|
|
303
|
+
"aria-label": y("bigconsole.dashboards.results.count", `${Ze} dashboards`),
|
|
304
|
+
children: Ze
|
|
326
305
|
}),
|
|
327
|
-
actions: /* @__PURE__ */
|
|
306
|
+
actions: /* @__PURE__ */ O("div", {
|
|
328
307
|
role: "group",
|
|
329
|
-
"aria-label":
|
|
308
|
+
"aria-label": y("bigconsole.dashboards.view.label", "Result layout"),
|
|
330
309
|
style: {
|
|
331
310
|
display: "flex",
|
|
332
311
|
alignItems: "center",
|
|
@@ -335,37 +314,37 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
335
314
|
borderRadius: "var(--radius-button)",
|
|
336
315
|
backgroundColor: "var(--color-bg-sunken)"
|
|
337
316
|
},
|
|
338
|
-
children: [/* @__PURE__ */
|
|
339
|
-
variant:
|
|
317
|
+
children: [/* @__PURE__ */ D(x, {
|
|
318
|
+
variant: I === "grid" ? "default" : "ghost",
|
|
340
319
|
size: "sm",
|
|
341
|
-
onClick: () =>
|
|
342
|
-
"aria-label":
|
|
343
|
-
"aria-pressed":
|
|
344
|
-
title:
|
|
320
|
+
onClick: () => L("grid"),
|
|
321
|
+
"aria-label": y("bigconsole.dashboards.view.grid", "Grid view"),
|
|
322
|
+
"aria-pressed": I === "grid",
|
|
323
|
+
title: y("bigconsole.dashboards.view.grid", "Grid view"),
|
|
345
324
|
style: {
|
|
346
325
|
height: "var(--size-controlHeight-md)",
|
|
347
326
|
width: "var(--size-controlHeight-md)",
|
|
348
327
|
padding: 0,
|
|
349
328
|
borderRadius: "var(--radius-button)"
|
|
350
329
|
},
|
|
351
|
-
children: /* @__PURE__ */
|
|
330
|
+
children: /* @__PURE__ */ D(he, { style: {
|
|
352
331
|
height: "var(--size-icon-sm)",
|
|
353
332
|
width: "var(--size-icon-sm)"
|
|
354
333
|
} })
|
|
355
|
-
}), /* @__PURE__ */
|
|
356
|
-
variant:
|
|
334
|
+
}), /* @__PURE__ */ D(x, {
|
|
335
|
+
variant: I === "list" ? "default" : "ghost",
|
|
357
336
|
size: "sm",
|
|
358
|
-
onClick: () =>
|
|
359
|
-
"aria-label":
|
|
360
|
-
"aria-pressed":
|
|
361
|
-
title:
|
|
337
|
+
onClick: () => L("list"),
|
|
338
|
+
"aria-label": y("bigconsole.dashboards.view.list", "List view"),
|
|
339
|
+
"aria-pressed": I === "list",
|
|
340
|
+
title: y("bigconsole.dashboards.view.list", "List view"),
|
|
362
341
|
style: {
|
|
363
342
|
height: "var(--size-controlHeight-md)",
|
|
364
343
|
width: "var(--size-controlHeight-md)",
|
|
365
344
|
padding: 0,
|
|
366
345
|
borderRadius: "var(--radius-button)"
|
|
367
346
|
},
|
|
368
|
-
children: /* @__PURE__ */
|
|
347
|
+
children: /* @__PURE__ */ D(ge, { style: {
|
|
369
348
|
height: "var(--size-icon-sm)",
|
|
370
349
|
width: "var(--size-icon-sm)"
|
|
371
350
|
} })
|
|
@@ -373,13 +352,13 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
373
352
|
}),
|
|
374
353
|
bodyClassName: "flex flex-col gap-form-gap",
|
|
375
354
|
children: [
|
|
376
|
-
/* @__PURE__ */
|
|
355
|
+
/* @__PURE__ */ O("div", {
|
|
377
356
|
style: {
|
|
378
357
|
position: "relative",
|
|
379
358
|
width: "100%",
|
|
380
359
|
maxWidth: "420px"
|
|
381
360
|
},
|
|
382
|
-
children: [/* @__PURE__ */
|
|
361
|
+
children: [/* @__PURE__ */ D(_e, {
|
|
383
362
|
"aria-hidden": "true",
|
|
384
363
|
style: {
|
|
385
364
|
position: "absolute",
|
|
@@ -390,61 +369,61 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
390
369
|
width: "var(--size-icon-sm)",
|
|
391
370
|
color: "var(--color-text-muted)"
|
|
392
371
|
}
|
|
393
|
-
}), /* @__PURE__ */
|
|
372
|
+
}), /* @__PURE__ */ D(Se, {
|
|
394
373
|
type: "search",
|
|
395
|
-
"aria-label":
|
|
396
|
-
placeholder:
|
|
397
|
-
value:
|
|
398
|
-
onChange: (e) =>
|
|
374
|
+
"aria-label": y("bigconsole.dashboards.search.placeholder", "Search dashboards..."),
|
|
375
|
+
placeholder: y("bigconsole.dashboards.search.placeholder", "Search dashboards..."),
|
|
376
|
+
value: S,
|
|
377
|
+
onChange: (e) => T(e.target.value),
|
|
399
378
|
style: {
|
|
400
379
|
paddingLeft: "var(--size-controlHeight-md)",
|
|
401
380
|
height: "var(--size-controlHeight-md)"
|
|
402
381
|
}
|
|
403
382
|
})]
|
|
404
383
|
}),
|
|
405
|
-
|
|
384
|
+
R && B.length === 0 && /* @__PURE__ */ D("div", {
|
|
406
385
|
style: {
|
|
407
386
|
display: "flex",
|
|
408
387
|
alignItems: "center",
|
|
409
388
|
justifyContent: "center",
|
|
410
389
|
padding: "80px 0"
|
|
411
390
|
},
|
|
412
|
-
children: /* @__PURE__ */
|
|
391
|
+
children: /* @__PURE__ */ O("div", {
|
|
413
392
|
style: { textAlign: "center" },
|
|
414
|
-
children: [/* @__PURE__ */
|
|
393
|
+
children: [/* @__PURE__ */ D(E, { style: {
|
|
415
394
|
height: "var(--size-icon-xl)",
|
|
416
395
|
width: "var(--size-icon-xl)",
|
|
417
396
|
margin: "0 auto var(--space-formGap)"
|
|
418
|
-
} }), /* @__PURE__ */
|
|
397
|
+
} }), /* @__PURE__ */ D("p", {
|
|
419
398
|
style: {
|
|
420
399
|
fontSize: "var(--font-size-body-sm)",
|
|
421
400
|
color: "var(--color-text-muted)"
|
|
422
401
|
},
|
|
423
|
-
children:
|
|
402
|
+
children: y("bigconsole.dashboards.loading", "Loading dashboards...")
|
|
424
403
|
})]
|
|
425
404
|
})
|
|
426
405
|
}),
|
|
427
|
-
!
|
|
406
|
+
!R && I === "grid" && X.length > 0 && /* @__PURE__ */ D("div", {
|
|
428
407
|
style: {
|
|
429
408
|
display: "grid",
|
|
430
409
|
gridTemplateColumns: "repeat(auto-fill, minmax(min(320px, 100%), 1fr))",
|
|
431
410
|
gap: "var(--space-formGap)"
|
|
432
411
|
},
|
|
433
|
-
children:
|
|
434
|
-
onClick: () =>
|
|
412
|
+
children: $.map((e) => /* @__PURE__ */ D(C, {
|
|
413
|
+
onClick: () => ze(e.id),
|
|
435
414
|
style: { cursor: "pointer" },
|
|
436
415
|
className: "motion-safe:transition-[box-shadow,border-color] hover:border-[var(--color-border-hover)] hover:shadow-[var(--shadow-elevation-2)]",
|
|
437
|
-
children: /* @__PURE__ */
|
|
416
|
+
children: /* @__PURE__ */ O(w, {
|
|
438
417
|
style: { padding: "var(--space-cardPadding)" },
|
|
439
418
|
children: [
|
|
440
|
-
/* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ O("div", {
|
|
441
420
|
style: {
|
|
442
421
|
display: "flex",
|
|
443
422
|
alignItems: "center",
|
|
444
423
|
gap: "var(--space-controlGap)",
|
|
445
424
|
marginBottom: "var(--space-formGap)"
|
|
446
425
|
},
|
|
447
|
-
children: [/* @__PURE__ */
|
|
426
|
+
children: [/* @__PURE__ */ D("div", {
|
|
448
427
|
style: {
|
|
449
428
|
display: "flex",
|
|
450
429
|
height: "var(--size-controlHeight-lg)",
|
|
@@ -455,7 +434,7 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
455
434
|
borderRadius: "var(--radius-button)",
|
|
456
435
|
backgroundColor: "var(--color-bg-accentSubtle)"
|
|
457
436
|
},
|
|
458
|
-
children: /* @__PURE__ */
|
|
437
|
+
children: /* @__PURE__ */ D(g, {
|
|
459
438
|
"aria-hidden": "true",
|
|
460
439
|
style: {
|
|
461
440
|
height: "var(--size-icon-md)",
|
|
@@ -463,12 +442,12 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
463
442
|
color: "var(--color-action-primary-bg)"
|
|
464
443
|
}
|
|
465
444
|
})
|
|
466
|
-
}), /* @__PURE__ */
|
|
445
|
+
}), /* @__PURE__ */ O("div", {
|
|
467
446
|
style: {
|
|
468
447
|
flex: 1,
|
|
469
448
|
minWidth: 0
|
|
470
449
|
},
|
|
471
|
-
children: [/* @__PURE__ */
|
|
450
|
+
children: [/* @__PURE__ */ D("h3", {
|
|
472
451
|
style: {
|
|
473
452
|
fontWeight: "var(--font-weight-bold)",
|
|
474
453
|
fontSize: "var(--font-size-body-md)",
|
|
@@ -479,7 +458,7 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
479
458
|
whiteSpace: "nowrap"
|
|
480
459
|
},
|
|
481
460
|
children: e.name
|
|
482
|
-
}), /* @__PURE__ */
|
|
461
|
+
}), /* @__PURE__ */ O("div", {
|
|
483
462
|
style: {
|
|
484
463
|
display: "flex",
|
|
485
464
|
alignItems: "center",
|
|
@@ -487,7 +466,7 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
487
466
|
flexWrap: "wrap",
|
|
488
467
|
marginTop: "var(--space-controlGap)"
|
|
489
468
|
},
|
|
490
|
-
children: [e.category && /* @__PURE__ */
|
|
469
|
+
children: [e.category && /* @__PURE__ */ D(b, {
|
|
491
470
|
variant: "secondary",
|
|
492
471
|
style: {
|
|
493
472
|
fontSize: "10px",
|
|
@@ -495,14 +474,14 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
495
474
|
textTransform: "uppercase"
|
|
496
475
|
},
|
|
497
476
|
children: e.category
|
|
498
|
-
}), e.status && /* @__PURE__ */
|
|
477
|
+
}), e.status && /* @__PURE__ */ D(s, {
|
|
499
478
|
status: e.status,
|
|
500
|
-
label:
|
|
479
|
+
label: qe(e.status)
|
|
501
480
|
})]
|
|
502
481
|
})]
|
|
503
482
|
})]
|
|
504
483
|
}),
|
|
505
|
-
/* @__PURE__ */
|
|
484
|
+
/* @__PURE__ */ D("p", {
|
|
506
485
|
style: {
|
|
507
486
|
fontSize: "var(--font-size-body-sm)",
|
|
508
487
|
lineHeight: "var(--font-lineHeight-normal)",
|
|
@@ -514,9 +493,9 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
514
493
|
WebkitBoxOrient: "vertical",
|
|
515
494
|
overflow: "hidden"
|
|
516
495
|
},
|
|
517
|
-
children: e.description ||
|
|
496
|
+
children: e.description || y("bigconsole.dashboards.card.noDescription", "No description provided")
|
|
518
497
|
}),
|
|
519
|
-
/* @__PURE__ */
|
|
498
|
+
/* @__PURE__ */ O("div", {
|
|
520
499
|
style: {
|
|
521
500
|
display: "flex",
|
|
522
501
|
alignItems: "center",
|
|
@@ -527,72 +506,72 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
527
506
|
borderRadius: "var(--radius-button)"
|
|
528
507
|
},
|
|
529
508
|
children: [
|
|
530
|
-
/* @__PURE__ */
|
|
509
|
+
/* @__PURE__ */ O("div", {
|
|
531
510
|
style: {
|
|
532
511
|
display: "flex",
|
|
533
512
|
alignItems: "center",
|
|
534
513
|
gap: "var(--space-iconGap)"
|
|
535
514
|
},
|
|
536
515
|
children: [
|
|
537
|
-
/* @__PURE__ */
|
|
516
|
+
/* @__PURE__ */ D(me, { style: {
|
|
538
517
|
height: "var(--size-icon-sm)",
|
|
539
518
|
width: "var(--size-icon-sm)",
|
|
540
519
|
color: "var(--color-action-primary-bg)"
|
|
541
520
|
} }),
|
|
542
|
-
/* @__PURE__ */
|
|
521
|
+
/* @__PURE__ */ D("span", {
|
|
543
522
|
style: {
|
|
544
523
|
fontSize: "var(--font-size-body-sm)",
|
|
545
524
|
fontWeight: "var(--font-weight-semibold)",
|
|
546
525
|
color: "var(--color-text-primary)"
|
|
547
526
|
},
|
|
548
|
-
children:
|
|
527
|
+
children: Ye(e)
|
|
549
528
|
}),
|
|
550
|
-
/* @__PURE__ */
|
|
529
|
+
/* @__PURE__ */ D("span", {
|
|
551
530
|
style: {
|
|
552
531
|
fontSize: "var(--font-size-body-sm)",
|
|
553
532
|
color: "var(--color-text-muted)"
|
|
554
533
|
},
|
|
555
|
-
children:
|
|
534
|
+
children: y("bigconsole.dashboards.card.pages", "pages")
|
|
556
535
|
})
|
|
557
536
|
]
|
|
558
537
|
}),
|
|
559
|
-
/* @__PURE__ */
|
|
538
|
+
/* @__PURE__ */ D("div", { style: {
|
|
560
539
|
width: "1px",
|
|
561
540
|
height: "var(--size-icon-sm)",
|
|
562
541
|
backgroundColor: "var(--color-border-subtle)"
|
|
563
542
|
} }),
|
|
564
|
-
/* @__PURE__ */
|
|
543
|
+
/* @__PURE__ */ O("div", {
|
|
565
544
|
style: {
|
|
566
545
|
display: "flex",
|
|
567
546
|
alignItems: "center",
|
|
568
547
|
gap: "var(--space-iconGap)"
|
|
569
548
|
},
|
|
570
549
|
children: [
|
|
571
|
-
/* @__PURE__ */
|
|
550
|
+
/* @__PURE__ */ D(pe, { style: {
|
|
572
551
|
height: "var(--size-icon-sm)",
|
|
573
552
|
width: "var(--size-icon-sm)",
|
|
574
553
|
color: "var(--color-action-primary-bg)"
|
|
575
554
|
} }),
|
|
576
|
-
/* @__PURE__ */
|
|
555
|
+
/* @__PURE__ */ D("span", {
|
|
577
556
|
style: {
|
|
578
557
|
fontSize: "var(--font-size-body-sm)",
|
|
579
558
|
fontWeight: "var(--font-weight-semibold)",
|
|
580
559
|
color: "var(--color-text-primary)"
|
|
581
560
|
},
|
|
582
|
-
children:
|
|
561
|
+
children: Je(e)
|
|
583
562
|
}),
|
|
584
|
-
/* @__PURE__ */
|
|
563
|
+
/* @__PURE__ */ D("span", {
|
|
585
564
|
style: {
|
|
586
565
|
fontSize: "var(--font-size-body-sm)",
|
|
587
566
|
color: "var(--color-text-muted)"
|
|
588
567
|
},
|
|
589
|
-
children:
|
|
568
|
+
children: y("bigconsole.dashboards.card.widgets", "widgets")
|
|
590
569
|
})
|
|
591
570
|
]
|
|
592
571
|
})
|
|
593
572
|
]
|
|
594
573
|
}),
|
|
595
|
-
/* @__PURE__ */
|
|
574
|
+
/* @__PURE__ */ O("div", {
|
|
596
575
|
style: {
|
|
597
576
|
display: "flex",
|
|
598
577
|
alignItems: "center",
|
|
@@ -602,78 +581,78 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
602
581
|
paddingTop: "var(--space-controlGap)",
|
|
603
582
|
borderTop: "1px solid var(--color-border-subtle)"
|
|
604
583
|
},
|
|
605
|
-
children: [/* @__PURE__ */
|
|
584
|
+
children: [/* @__PURE__ */ O("div", {
|
|
606
585
|
style: {
|
|
607
586
|
display: "flex",
|
|
608
587
|
alignItems: "center",
|
|
609
588
|
gap: "var(--space-iconGap)"
|
|
610
589
|
},
|
|
611
|
-
children: [/* @__PURE__ */
|
|
590
|
+
children: [/* @__PURE__ */ D(le, { style: {
|
|
612
591
|
height: "var(--size-icon-sm)",
|
|
613
592
|
width: "var(--size-icon-sm)",
|
|
614
593
|
color: "var(--color-text-muted)"
|
|
615
|
-
} }), /* @__PURE__ */
|
|
594
|
+
} }), /* @__PURE__ */ D("span", {
|
|
616
595
|
style: {
|
|
617
596
|
fontSize: "var(--font-size-body-sm)",
|
|
618
597
|
fontWeight: "var(--font-weight-medium)",
|
|
619
598
|
color: "var(--color-text-muted)"
|
|
620
599
|
},
|
|
621
|
-
children:
|
|
600
|
+
children: Ke(e.updatedAt)
|
|
622
601
|
})]
|
|
623
|
-
}), /* @__PURE__ */
|
|
602
|
+
}), /* @__PURE__ */ O("div", {
|
|
624
603
|
style: {
|
|
625
604
|
display: "flex",
|
|
626
605
|
alignItems: "center",
|
|
627
606
|
gap: "var(--space-controlGap)"
|
|
628
607
|
},
|
|
629
608
|
children: [
|
|
630
|
-
/* @__PURE__ */
|
|
609
|
+
/* @__PURE__ */ D(h, {
|
|
631
610
|
permission: a.DASHBOARD_UPDATE,
|
|
632
611
|
deniedBehavior: "hide",
|
|
633
|
-
children: /* @__PURE__ */
|
|
612
|
+
children: /* @__PURE__ */ D(x, {
|
|
634
613
|
variant: "ghost",
|
|
635
614
|
size: "sm",
|
|
636
|
-
onClick: (t) =>
|
|
615
|
+
onClick: (t) => Be(e.id, t),
|
|
637
616
|
style: {
|
|
638
617
|
height: "var(--size-controlHeight-md)",
|
|
639
618
|
width: "var(--size-controlHeight-md)",
|
|
640
619
|
padding: 0,
|
|
641
620
|
borderRadius: "var(--radius-button)"
|
|
642
621
|
},
|
|
643
|
-
title:
|
|
644
|
-
children: /* @__PURE__ */
|
|
622
|
+
title: y("bigconsole.dashboards.actions.editTitle", "Edit Dashboard"),
|
|
623
|
+
children: /* @__PURE__ */ D(_, { style: {
|
|
645
624
|
height: "var(--size-icon-sm)",
|
|
646
625
|
width: "var(--size-icon-sm)"
|
|
647
626
|
} })
|
|
648
627
|
})
|
|
649
628
|
}),
|
|
650
|
-
/* @__PURE__ */
|
|
629
|
+
/* @__PURE__ */ D(h, {
|
|
651
630
|
permission: a.DASHBOARD_CREATE,
|
|
652
631
|
deniedBehavior: "hide",
|
|
653
|
-
children: /* @__PURE__ */
|
|
632
|
+
children: /* @__PURE__ */ D(x, {
|
|
654
633
|
variant: "ghost",
|
|
655
634
|
size: "sm",
|
|
656
|
-
onClick: (t) =>
|
|
635
|
+
onClick: (t) => He(e.id, e.name, t),
|
|
657
636
|
style: {
|
|
658
637
|
height: "var(--size-controlHeight-md)",
|
|
659
638
|
width: "var(--size-controlHeight-md)",
|
|
660
639
|
padding: 0,
|
|
661
640
|
borderRadius: "var(--radius-button)"
|
|
662
641
|
},
|
|
663
|
-
title:
|
|
664
|
-
children: /* @__PURE__ */
|
|
642
|
+
title: y("bigconsole.dashboards.actions.cloneTitle", "Clone Dashboard"),
|
|
643
|
+
children: /* @__PURE__ */ D(fe, { style: {
|
|
665
644
|
height: "var(--size-icon-sm)",
|
|
666
645
|
width: "var(--size-icon-sm)"
|
|
667
646
|
} })
|
|
668
647
|
})
|
|
669
648
|
}),
|
|
670
|
-
/* @__PURE__ */
|
|
649
|
+
/* @__PURE__ */ D(h, {
|
|
671
650
|
permission: a.DASHBOARD_DELETE,
|
|
672
651
|
deniedBehavior: "hide",
|
|
673
|
-
children: /* @__PURE__ */
|
|
652
|
+
children: /* @__PURE__ */ D(x, {
|
|
674
653
|
variant: "ghost",
|
|
675
654
|
size: "sm",
|
|
676
|
-
onClick: (t) =>
|
|
655
|
+
onClick: (t) => Ve(e.id, t),
|
|
677
656
|
style: {
|
|
678
657
|
height: "var(--size-controlHeight-md)",
|
|
679
658
|
width: "var(--size-controlHeight-md)",
|
|
@@ -681,8 +660,8 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
681
660
|
borderRadius: "var(--radius-button)"
|
|
682
661
|
},
|
|
683
662
|
className: "hover:text-status-error-text hover:bg-status-error-bg/10",
|
|
684
|
-
title:
|
|
685
|
-
children: /* @__PURE__ */
|
|
663
|
+
title: y("bigconsole.dashboards.actions.deleteTitle", "Delete Dashboard"),
|
|
664
|
+
children: /* @__PURE__ */ D(ve, { style: {
|
|
686
665
|
height: "var(--size-icon-sm)",
|
|
687
666
|
width: "var(--size-icon-sm)"
|
|
688
667
|
} })
|
|
@@ -695,19 +674,19 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
695
674
|
})
|
|
696
675
|
}, e.id))
|
|
697
676
|
}),
|
|
698
|
-
!
|
|
677
|
+
!R && I === "list" && X.length > 0 && /* @__PURE__ */ D("div", {
|
|
699
678
|
style: {
|
|
700
679
|
display: "flex",
|
|
701
680
|
flexDirection: "column",
|
|
702
681
|
gap: "var(--space-controlGap)"
|
|
703
682
|
},
|
|
704
|
-
children:
|
|
705
|
-
onClick: () =>
|
|
683
|
+
children: $.map((e) => /* @__PURE__ */ D(C, {
|
|
684
|
+
onClick: () => ze(e.id),
|
|
706
685
|
style: { cursor: "pointer" },
|
|
707
686
|
className: "motion-safe:transition-[box-shadow,border-color] hover:border-[var(--color-border-hover)] hover:shadow-[var(--shadow-elevation-2)]",
|
|
708
|
-
children: /* @__PURE__ */
|
|
687
|
+
children: /* @__PURE__ */ D(w, {
|
|
709
688
|
style: { padding: "var(--space-cardPadding)" },
|
|
710
|
-
children: /* @__PURE__ */
|
|
689
|
+
children: /* @__PURE__ */ O("div", {
|
|
711
690
|
style: {
|
|
712
691
|
display: "flex",
|
|
713
692
|
alignItems: "center",
|
|
@@ -715,7 +694,7 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
715
694
|
flexWrap: "wrap"
|
|
716
695
|
},
|
|
717
696
|
children: [
|
|
718
|
-
/* @__PURE__ */
|
|
697
|
+
/* @__PURE__ */ D("div", {
|
|
719
698
|
style: {
|
|
720
699
|
display: "flex",
|
|
721
700
|
height: "var(--size-controlHeight-lg)",
|
|
@@ -726,7 +705,7 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
726
705
|
borderRadius: "var(--radius-button)",
|
|
727
706
|
backgroundColor: "var(--color-bg-accentSubtle)"
|
|
728
707
|
},
|
|
729
|
-
children: /* @__PURE__ */
|
|
708
|
+
children: /* @__PURE__ */ D(g, {
|
|
730
709
|
"aria-hidden": "true",
|
|
731
710
|
style: {
|
|
732
711
|
height: "var(--size-icon-md)",
|
|
@@ -735,12 +714,12 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
735
714
|
}
|
|
736
715
|
})
|
|
737
716
|
}),
|
|
738
|
-
/* @__PURE__ */
|
|
717
|
+
/* @__PURE__ */ O("div", {
|
|
739
718
|
style: {
|
|
740
719
|
flex: "1 1 12rem",
|
|
741
720
|
minWidth: 0
|
|
742
721
|
},
|
|
743
|
-
children: [/* @__PURE__ */
|
|
722
|
+
children: [/* @__PURE__ */ O("div", {
|
|
744
723
|
style: {
|
|
745
724
|
display: "flex",
|
|
746
725
|
alignItems: "center",
|
|
@@ -748,7 +727,7 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
748
727
|
flexWrap: "wrap"
|
|
749
728
|
},
|
|
750
729
|
children: [
|
|
751
|
-
/* @__PURE__ */
|
|
730
|
+
/* @__PURE__ */ D("h3", {
|
|
752
731
|
style: {
|
|
753
732
|
fontWeight: "var(--font-weight-bold)",
|
|
754
733
|
fontSize: "var(--font-size-body-md)",
|
|
@@ -761,7 +740,7 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
761
740
|
},
|
|
762
741
|
children: e.name
|
|
763
742
|
}),
|
|
764
|
-
e.category && /* @__PURE__ */
|
|
743
|
+
e.category && /* @__PURE__ */ D(b, {
|
|
765
744
|
variant: "secondary",
|
|
766
745
|
style: {
|
|
767
746
|
fontSize: "10px",
|
|
@@ -770,12 +749,12 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
770
749
|
},
|
|
771
750
|
children: e.category
|
|
772
751
|
}),
|
|
773
|
-
e.status && /* @__PURE__ */
|
|
752
|
+
e.status && /* @__PURE__ */ D(s, {
|
|
774
753
|
status: e.status,
|
|
775
|
-
label:
|
|
754
|
+
label: qe(e.status)
|
|
776
755
|
})
|
|
777
756
|
]
|
|
778
|
-
}), /* @__PURE__ */
|
|
757
|
+
}), /* @__PURE__ */ D("p", {
|
|
779
758
|
style: {
|
|
780
759
|
fontSize: "var(--font-size-body-sm)",
|
|
781
760
|
lineHeight: "var(--font-lineHeight-normal)",
|
|
@@ -785,10 +764,10 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
785
764
|
textOverflow: "ellipsis",
|
|
786
765
|
whiteSpace: "nowrap"
|
|
787
766
|
},
|
|
788
|
-
children: e.description ||
|
|
767
|
+
children: e.description || y("bigconsole.dashboards.card.noDescription", "No description provided")
|
|
789
768
|
})]
|
|
790
769
|
}),
|
|
791
|
-
/* @__PURE__ */
|
|
770
|
+
/* @__PURE__ */ O("div", {
|
|
792
771
|
style: {
|
|
793
772
|
display: "flex",
|
|
794
773
|
alignItems: "center",
|
|
@@ -796,139 +775,139 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
796
775
|
flexWrap: "wrap"
|
|
797
776
|
},
|
|
798
777
|
children: [
|
|
799
|
-
/* @__PURE__ */
|
|
778
|
+
/* @__PURE__ */ O("div", {
|
|
800
779
|
style: {
|
|
801
780
|
display: "flex",
|
|
802
781
|
alignItems: "center",
|
|
803
782
|
gap: "var(--space-iconGap)"
|
|
804
783
|
},
|
|
805
784
|
children: [
|
|
806
|
-
/* @__PURE__ */
|
|
785
|
+
/* @__PURE__ */ D(me, { style: {
|
|
807
786
|
height: "var(--size-icon-sm)",
|
|
808
787
|
width: "var(--size-icon-sm)",
|
|
809
788
|
color: "var(--color-action-primary-bg)"
|
|
810
789
|
} }),
|
|
811
|
-
/* @__PURE__ */
|
|
790
|
+
/* @__PURE__ */ D("span", {
|
|
812
791
|
style: {
|
|
813
792
|
fontSize: "var(--font-size-body-sm)",
|
|
814
793
|
fontWeight: "var(--font-weight-semibold)",
|
|
815
794
|
color: "var(--color-text-primary)"
|
|
816
795
|
},
|
|
817
|
-
children:
|
|
796
|
+
children: Ye(e)
|
|
818
797
|
}),
|
|
819
|
-
/* @__PURE__ */
|
|
798
|
+
/* @__PURE__ */ D("span", {
|
|
820
799
|
style: {
|
|
821
800
|
fontSize: "var(--font-size-body-sm)",
|
|
822
801
|
color: "var(--color-text-muted)"
|
|
823
802
|
},
|
|
824
|
-
children:
|
|
803
|
+
children: y("bigconsole.dashboards.card.pages", "pages")
|
|
825
804
|
})
|
|
826
805
|
]
|
|
827
806
|
}),
|
|
828
|
-
/* @__PURE__ */
|
|
807
|
+
/* @__PURE__ */ O("div", {
|
|
829
808
|
style: {
|
|
830
809
|
display: "flex",
|
|
831
810
|
alignItems: "center",
|
|
832
811
|
gap: "var(--space-iconGap)"
|
|
833
812
|
},
|
|
834
813
|
children: [
|
|
835
|
-
/* @__PURE__ */
|
|
814
|
+
/* @__PURE__ */ D(pe, { style: {
|
|
836
815
|
height: "var(--size-icon-sm)",
|
|
837
816
|
width: "var(--size-icon-sm)",
|
|
838
817
|
color: "var(--color-action-primary-bg)"
|
|
839
818
|
} }),
|
|
840
|
-
/* @__PURE__ */
|
|
819
|
+
/* @__PURE__ */ D("span", {
|
|
841
820
|
style: {
|
|
842
821
|
fontSize: "var(--font-size-body-sm)",
|
|
843
822
|
fontWeight: "var(--font-weight-semibold)",
|
|
844
823
|
color: "var(--color-text-primary)"
|
|
845
824
|
},
|
|
846
|
-
children:
|
|
825
|
+
children: Je(e)
|
|
847
826
|
}),
|
|
848
|
-
/* @__PURE__ */
|
|
827
|
+
/* @__PURE__ */ D("span", {
|
|
849
828
|
style: {
|
|
850
829
|
fontSize: "var(--font-size-body-sm)",
|
|
851
830
|
color: "var(--color-text-muted)"
|
|
852
831
|
},
|
|
853
|
-
children:
|
|
832
|
+
children: y("bigconsole.dashboards.card.widgets", "widgets")
|
|
854
833
|
})
|
|
855
834
|
]
|
|
856
835
|
}),
|
|
857
|
-
/* @__PURE__ */
|
|
836
|
+
/* @__PURE__ */ O("div", {
|
|
858
837
|
style: {
|
|
859
838
|
display: "flex",
|
|
860
839
|
alignItems: "center",
|
|
861
840
|
gap: "var(--space-iconGap)"
|
|
862
841
|
},
|
|
863
|
-
children: [/* @__PURE__ */
|
|
842
|
+
children: [/* @__PURE__ */ D(le, { style: {
|
|
864
843
|
height: "var(--size-icon-sm)",
|
|
865
844
|
width: "var(--size-icon-sm)",
|
|
866
845
|
color: "var(--color-text-muted)"
|
|
867
|
-
} }), /* @__PURE__ */
|
|
846
|
+
} }), /* @__PURE__ */ D("span", {
|
|
868
847
|
style: {
|
|
869
848
|
fontSize: "var(--font-size-body-sm)",
|
|
870
849
|
fontWeight: "var(--font-weight-medium)",
|
|
871
850
|
color: "var(--color-text-muted)"
|
|
872
851
|
},
|
|
873
|
-
children:
|
|
852
|
+
children: Ke(e.updatedAt)
|
|
874
853
|
})]
|
|
875
854
|
})
|
|
876
855
|
]
|
|
877
856
|
}),
|
|
878
|
-
/* @__PURE__ */
|
|
857
|
+
/* @__PURE__ */ O("div", {
|
|
879
858
|
style: {
|
|
880
859
|
display: "flex",
|
|
881
860
|
alignItems: "center",
|
|
882
861
|
gap: "var(--space-controlGap)"
|
|
883
862
|
},
|
|
884
863
|
children: [
|
|
885
|
-
/* @__PURE__ */
|
|
864
|
+
/* @__PURE__ */ D(h, {
|
|
886
865
|
permission: a.DASHBOARD_UPDATE,
|
|
887
866
|
deniedBehavior: "hide",
|
|
888
|
-
children: /* @__PURE__ */
|
|
867
|
+
children: /* @__PURE__ */ D(x, {
|
|
889
868
|
variant: "ghost",
|
|
890
869
|
size: "sm",
|
|
891
|
-
onClick: (t) =>
|
|
870
|
+
onClick: (t) => Be(e.id, t),
|
|
892
871
|
style: {
|
|
893
872
|
height: "var(--size-controlHeight-md)",
|
|
894
873
|
width: "var(--size-controlHeight-md)",
|
|
895
874
|
padding: 0,
|
|
896
875
|
borderRadius: "var(--radius-button)"
|
|
897
876
|
},
|
|
898
|
-
title:
|
|
899
|
-
children: /* @__PURE__ */
|
|
877
|
+
title: y("bigconsole.dashboards.actions.editTitle", "Edit Dashboard"),
|
|
878
|
+
children: /* @__PURE__ */ D(_, { style: {
|
|
900
879
|
height: "var(--size-icon-sm)",
|
|
901
880
|
width: "var(--size-icon-sm)"
|
|
902
881
|
} })
|
|
903
882
|
})
|
|
904
883
|
}),
|
|
905
|
-
/* @__PURE__ */
|
|
884
|
+
/* @__PURE__ */ D(h, {
|
|
906
885
|
permission: a.DASHBOARD_CREATE,
|
|
907
886
|
deniedBehavior: "hide",
|
|
908
|
-
children: /* @__PURE__ */
|
|
887
|
+
children: /* @__PURE__ */ D(x, {
|
|
909
888
|
variant: "ghost",
|
|
910
889
|
size: "sm",
|
|
911
|
-
onClick: (t) =>
|
|
890
|
+
onClick: (t) => He(e.id, e.name, t),
|
|
912
891
|
style: {
|
|
913
892
|
height: "var(--size-controlHeight-md)",
|
|
914
893
|
width: "var(--size-controlHeight-md)",
|
|
915
894
|
padding: 0,
|
|
916
895
|
borderRadius: "var(--radius-button)"
|
|
917
896
|
},
|
|
918
|
-
title:
|
|
919
|
-
children: /* @__PURE__ */
|
|
897
|
+
title: y("bigconsole.dashboards.actions.cloneTitle", "Clone Dashboard"),
|
|
898
|
+
children: /* @__PURE__ */ D(fe, { style: {
|
|
920
899
|
height: "var(--size-icon-sm)",
|
|
921
900
|
width: "var(--size-icon-sm)"
|
|
922
901
|
} })
|
|
923
902
|
})
|
|
924
903
|
}),
|
|
925
|
-
/* @__PURE__ */
|
|
904
|
+
/* @__PURE__ */ D(h, {
|
|
926
905
|
permission: a.DASHBOARD_DELETE,
|
|
927
906
|
deniedBehavior: "hide",
|
|
928
|
-
children: /* @__PURE__ */
|
|
907
|
+
children: /* @__PURE__ */ D(x, {
|
|
929
908
|
variant: "ghost",
|
|
930
909
|
size: "sm",
|
|
931
|
-
onClick: (t) =>
|
|
910
|
+
onClick: (t) => Ve(e.id, t),
|
|
932
911
|
style: {
|
|
933
912
|
height: "var(--size-controlHeight-md)",
|
|
934
913
|
width: "var(--size-controlHeight-md)",
|
|
@@ -936,8 +915,8 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
936
915
|
borderRadius: "var(--radius-button)"
|
|
937
916
|
},
|
|
938
917
|
className: "hover:text-status-error-text hover:bg-status-error-bg/10",
|
|
939
|
-
title:
|
|
940
|
-
children: /* @__PURE__ */
|
|
918
|
+
title: y("bigconsole.dashboards.actions.deleteTitle", "Delete Dashboard"),
|
|
919
|
+
children: /* @__PURE__ */ D(ve, { style: {
|
|
941
920
|
height: "var(--size-icon-sm)",
|
|
942
921
|
width: "var(--size-icon-sm)"
|
|
943
922
|
} })
|
|
@@ -950,56 +929,56 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
950
929
|
})
|
|
951
930
|
}, e.id))
|
|
952
931
|
}),
|
|
953
|
-
!
|
|
932
|
+
!R && X.length > 0 && /* @__PURE__ */ D("p", {
|
|
954
933
|
"data-testid": "dashboards-range",
|
|
955
934
|
style: {
|
|
956
935
|
margin: 0,
|
|
957
936
|
fontSize: "var(--font-size-body-sm)",
|
|
958
937
|
color: "var(--color-text-muted)"
|
|
959
938
|
},
|
|
960
|
-
children:
|
|
961
|
-
from:
|
|
962
|
-
to:
|
|
963
|
-
total:
|
|
939
|
+
children: y("bigconsole.dashboards.pagination.range", "Showing {{from}}–{{to}} of {{total}} dashboards", {
|
|
940
|
+
from: Q + 1,
|
|
941
|
+
to: Q + $.length,
|
|
942
|
+
total: X.length
|
|
964
943
|
})
|
|
965
944
|
}),
|
|
966
|
-
!
|
|
967
|
-
"aria-label":
|
|
945
|
+
!R && X.length > k && /* @__PURE__ */ O("nav", {
|
|
946
|
+
"aria-label": y("bigconsole.dashboards.pagination.label", "Dashboard pages"),
|
|
968
947
|
className: "flex flex-wrap items-center justify-center gap-control-gap border-t border-[var(--color-border-subtle)] pt-control-gap",
|
|
969
948
|
children: [
|
|
970
|
-
/* @__PURE__ */
|
|
949
|
+
/* @__PURE__ */ O(x, {
|
|
971
950
|
variant: "outline",
|
|
972
951
|
size: "sm",
|
|
973
|
-
onClick:
|
|
974
|
-
disabled:
|
|
975
|
-
"aria-label":
|
|
952
|
+
onClick: Me,
|
|
953
|
+
disabled: A <= 1,
|
|
954
|
+
"aria-label": y("bigconsole.dashboards.pagination.previous", "Previous"),
|
|
976
955
|
style: { minHeight: "var(--size-controlHeight-md)" },
|
|
977
|
-
children: [/* @__PURE__ */
|
|
956
|
+
children: [/* @__PURE__ */ D(ue, { style: {
|
|
978
957
|
marginRight: "var(--space-iconGap)",
|
|
979
958
|
height: "var(--size-icon-sm)",
|
|
980
959
|
width: "var(--size-icon-sm)"
|
|
981
|
-
} }),
|
|
960
|
+
} }), y("bigconsole.dashboards.pagination.previous", "Previous")]
|
|
982
961
|
}),
|
|
983
|
-
/* @__PURE__ */
|
|
962
|
+
/* @__PURE__ */ D("div", {
|
|
984
963
|
style: {
|
|
985
964
|
display: "flex",
|
|
986
965
|
alignItems: "center",
|
|
987
966
|
gap: "var(--space-iconGap)",
|
|
988
967
|
flexWrap: "wrap"
|
|
989
968
|
},
|
|
990
|
-
children:
|
|
969
|
+
children: Te(A, Z).map((e, t) => e === null ? /* @__PURE__ */ D("span", {
|
|
991
970
|
"aria-hidden": "true",
|
|
992
971
|
style: {
|
|
993
972
|
color: "var(--color-text-muted)",
|
|
994
973
|
padding: "0 var(--space-iconGap)"
|
|
995
974
|
},
|
|
996
975
|
children: "…"
|
|
997
|
-
}, `gap-${t}`) : /* @__PURE__ */
|
|
998
|
-
variant: e ===
|
|
976
|
+
}, `gap-${t}`) : /* @__PURE__ */ D(x, {
|
|
977
|
+
variant: e === A ? "default" : "ghost",
|
|
999
978
|
size: "sm",
|
|
1000
|
-
onClick: () =>
|
|
1001
|
-
"aria-current": e ===
|
|
1002
|
-
"aria-label":
|
|
979
|
+
onClick: () => Pe(e),
|
|
980
|
+
"aria-current": e === A ? "page" : void 0,
|
|
981
|
+
"aria-label": y("bigconsole.dashboards.pagination.page", `Page ${e}`),
|
|
1003
982
|
style: {
|
|
1004
983
|
minWidth: "var(--size-controlHeight-md)",
|
|
1005
984
|
height: "var(--size-controlHeight-md)",
|
|
@@ -1009,67 +988,67 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
1009
988
|
children: e
|
|
1010
989
|
}, e))
|
|
1011
990
|
}),
|
|
1012
|
-
/* @__PURE__ */
|
|
991
|
+
/* @__PURE__ */ O(x, {
|
|
1013
992
|
variant: "outline",
|
|
1014
993
|
size: "sm",
|
|
1015
|
-
onClick:
|
|
1016
|
-
disabled:
|
|
1017
|
-
"aria-label":
|
|
994
|
+
onClick: Ne,
|
|
995
|
+
disabled: A >= Z,
|
|
996
|
+
"aria-label": y("bigconsole.dashboards.pagination.next", "Next"),
|
|
1018
997
|
style: { minHeight: "var(--size-controlHeight-md)" },
|
|
1019
|
-
children: [
|
|
998
|
+
children: [y("bigconsole.dashboards.pagination.next", "Next"), /* @__PURE__ */ D(de, { style: {
|
|
1020
999
|
marginLeft: "var(--space-iconGap)",
|
|
1021
1000
|
height: "var(--size-icon-sm)",
|
|
1022
1001
|
width: "var(--size-icon-sm)"
|
|
1023
1002
|
} })]
|
|
1024
1003
|
}),
|
|
1025
|
-
/* @__PURE__ */
|
|
1004
|
+
/* @__PURE__ */ D("span", {
|
|
1026
1005
|
style: {
|
|
1027
1006
|
fontSize: "var(--font-size-body-sm)",
|
|
1028
1007
|
color: "var(--color-text-muted)"
|
|
1029
1008
|
},
|
|
1030
|
-
children:
|
|
1031
|
-
currentPage:
|
|
1032
|
-
totalPages:
|
|
1009
|
+
children: y("bigconsole.dashboards.pagination.pageOf", "Page {{currentPage}} of {{totalPages}}", {
|
|
1010
|
+
currentPage: A,
|
|
1011
|
+
totalPages: Z
|
|
1033
1012
|
})
|
|
1034
1013
|
})
|
|
1035
1014
|
]
|
|
1036
1015
|
}),
|
|
1037
|
-
!
|
|
1016
|
+
!R && X.length === 0 && /* @__PURE__ */ D(be, {
|
|
1038
1017
|
treatment: "insight",
|
|
1039
1018
|
className: "border-[var(--color-border-seam)]",
|
|
1040
|
-
children: /* @__PURE__ */
|
|
1041
|
-
illustration:
|
|
1042
|
-
title:
|
|
1043
|
-
description:
|
|
1044
|
-
action:
|
|
1019
|
+
children: /* @__PURE__ */ D(xe, {
|
|
1020
|
+
illustration: S ? "empty-search" : "empty-data",
|
|
1021
|
+
title: S ? y("bigconsole.dashboards.empty.filteredTitle", "No dashboards found") : y("bigconsole.dashboards.empty.title", "No dashboards yet"),
|
|
1022
|
+
description: S ? y("bigconsole.dashboards.empty.filteredDescription", "Try adjusting your search terms") : y("bigconsole.dashboards.empty.description", "Get started by creating your first dashboard to visualize your data"),
|
|
1023
|
+
action: S ? void 0 : /* @__PURE__ */ O("div", {
|
|
1045
1024
|
style: {
|
|
1046
1025
|
display: "flex",
|
|
1047
1026
|
gap: "var(--space-controlGap)",
|
|
1048
1027
|
flexWrap: "wrap",
|
|
1049
1028
|
justifyContent: "center"
|
|
1050
1029
|
},
|
|
1051
|
-
children: [/* @__PURE__ */
|
|
1030
|
+
children: [/* @__PURE__ */ D(h, {
|
|
1052
1031
|
permission: a.DASHBOARD_CREATE,
|
|
1053
1032
|
deniedBehavior: "hide",
|
|
1054
|
-
children: /* @__PURE__ */
|
|
1055
|
-
onClick:
|
|
1056
|
-
children: [/* @__PURE__ */
|
|
1033
|
+
children: /* @__PURE__ */ O(x, {
|
|
1034
|
+
onClick: Fe,
|
|
1035
|
+
children: [/* @__PURE__ */ D(v, { style: {
|
|
1057
1036
|
marginRight: "var(--space-iconGap)",
|
|
1058
1037
|
height: "var(--size-icon-sm)",
|
|
1059
1038
|
width: "var(--size-icon-sm)"
|
|
1060
|
-
} }),
|
|
1039
|
+
} }), y("bigconsole.dashboards.actions.create", "Create Dashboard")]
|
|
1061
1040
|
})
|
|
1062
|
-
}), /* @__PURE__ */
|
|
1041
|
+
}), /* @__PURE__ */ D(h, {
|
|
1063
1042
|
permission: a.DASHBOARD_IMPORT,
|
|
1064
1043
|
deniedBehavior: "hide",
|
|
1065
|
-
children: /* @__PURE__ */
|
|
1044
|
+
children: /* @__PURE__ */ O(x, {
|
|
1066
1045
|
variant: "outline",
|
|
1067
|
-
onClick:
|
|
1068
|
-
children: [/* @__PURE__ */
|
|
1046
|
+
onClick: Ue,
|
|
1047
|
+
children: [/* @__PURE__ */ D(ye, { style: {
|
|
1069
1048
|
marginRight: "var(--space-iconGap)",
|
|
1070
1049
|
height: "var(--size-icon-sm)",
|
|
1071
1050
|
width: "var(--size-icon-sm)"
|
|
1072
|
-
} }),
|
|
1051
|
+
} }), y("bigconsole.dashboards.actions.importDashboard", "Import Dashboard")]
|
|
1073
1052
|
})
|
|
1074
1053
|
})]
|
|
1075
1054
|
})
|
|
@@ -1078,22 +1057,22 @@ var ye = u(function({ title: e, subtitle: t, createLabel: n, importLabel: r, onC
|
|
|
1078
1057
|
]
|
|
1079
1058
|
})] })
|
|
1080
1059
|
}),
|
|
1081
|
-
/* @__PURE__ */
|
|
1082
|
-
isOpen:
|
|
1083
|
-
isCreating:
|
|
1084
|
-
onClose:
|
|
1085
|
-
onCreate:
|
|
1086
|
-
onTemplateInstalled:
|
|
1060
|
+
/* @__PURE__ */ D(ee, {
|
|
1061
|
+
isOpen: De,
|
|
1062
|
+
isCreating: N,
|
|
1063
|
+
onClose: Le,
|
|
1064
|
+
onCreate: Re,
|
|
1065
|
+
onTemplateInstalled: Ie
|
|
1087
1066
|
}),
|
|
1088
|
-
/* @__PURE__ */
|
|
1089
|
-
isOpen:
|
|
1090
|
-
onClose:
|
|
1091
|
-
onSuccess:
|
|
1067
|
+
/* @__PURE__ */ D(re, {
|
|
1068
|
+
isOpen: Oe,
|
|
1069
|
+
onClose: We,
|
|
1070
|
+
onSuccess: Ge
|
|
1092
1071
|
})
|
|
1093
1072
|
]
|
|
1094
1073
|
});
|
|
1095
1074
|
});
|
|
1096
1075
|
//#endregion
|
|
1097
|
-
export {
|
|
1076
|
+
export { j as DashboardsPage, j as default };
|
|
1098
1077
|
|
|
1099
1078
|
//# sourceMappingURL=DashboardsPage.js.map
|