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