@burdenoff/microfe-bigconsole 2026.610.1 → 2026.612.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +3 -3
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +6 -5
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js.map +1 -1
- package/dist/bigconsole/components/widgets/WidgetRegistry.js +2 -1
- package/dist/bigconsole/components/widgets/WidgetRegistry.js.map +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +4 -4
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js.map +1 -1
- package/dist/bigconsole/components/widgets/form/FormWidget.js +20 -20
- package/dist/bigconsole/components/widgets/form/FormWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +1 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.js +2 -2
- package/dist/bigconsole/components/widgets/map-widget/MapWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/timeline/TimelineWidget.js +2 -2
- package/dist/bigconsole/components/widgets/timeline/TimelineWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +37 -37
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js.map +1 -1
- package/dist/bigconsole/hooks/useDashboardOperations.js +92 -70
- package/dist/bigconsole/hooks/useDashboardOperations.js.map +1 -1
- package/dist/bigconsole/pages/DashboardBuilderPage.js +220 -200
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +11 -9
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +501 -164
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.js +783 -395
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/generated/wspace-operations.js +105 -107
- package/dist/generated/wspace-operations.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,41 +6,52 @@ import n from "../components/dashboard/CreateDashboardDialog.js";
|
|
|
6
6
|
import r from "../components/dashboard/ImportDashboardDialog.js";
|
|
7
7
|
import { isNative as i, nativeConfirm as a, nativeImpact as o, nativeNotify as s } from "../../utils/nativeBridge.js";
|
|
8
8
|
import { memo as c, useCallback as l, useState as u } from "react";
|
|
9
|
-
import { Calendar as d,
|
|
10
|
-
import { useI18n as
|
|
11
|
-
import { jsx as
|
|
12
|
-
import { Badge as
|
|
9
|
+
import { Calendar as d, Copy as f, FileText as p, FolderOpen as ee, Layers as m, LayoutDashboard as h, LayoutGrid as te, List as ne, Pencil as g, Plus as _, Search as v, Trash2 as y, Upload as b } from "lucide-react";
|
|
10
|
+
import { useI18n as re } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
11
|
+
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
12
|
+
import { Badge as C, Button as w, Card as T, CardContent as E, Input as ie, Spinner as ae } from "@burdenoff/fe-libs/ui";
|
|
13
13
|
//#region src/bigconsole/pages/DashboardsPage.tsx
|
|
14
|
-
var
|
|
15
|
-
let c = e(), { t:
|
|
16
|
-
let n =
|
|
14
|
+
var D = "bf-bigconsole-dashboards-view", O = c(function() {
|
|
15
|
+
let c = e(), { t: O } = re(), k = l((e, t) => {
|
|
16
|
+
let n = O(e);
|
|
17
17
|
return n === e ? t : n;
|
|
18
|
-
}, [
|
|
19
|
-
F(!0);
|
|
20
|
-
}, []), J = l(() => {
|
|
21
|
-
I || F(!1);
|
|
22
|
-
}, [I]), Y = l(async (e) => {
|
|
23
|
-
L(!0);
|
|
18
|
+
}, [O]), [A, oe] = u(""), [se, j] = u(!1), [M, N] = u(!1), [ce, P] = u(!1), [F, le] = u(() => {
|
|
24
19
|
try {
|
|
25
|
-
|
|
20
|
+
return window.localStorage.getItem(D) === "list" ? "list" : "grid";
|
|
21
|
+
} catch {
|
|
22
|
+
return "grid";
|
|
23
|
+
}
|
|
24
|
+
}), I = l((e) => {
|
|
25
|
+
le(e);
|
|
26
|
+
try {
|
|
27
|
+
window.localStorage.setItem(D, e);
|
|
28
|
+
} catch {}
|
|
29
|
+
}, []), { loading: L, error: R, dashboards: z, createDashboard: B, deleteDashboard: V, cloneDashboard: H, refetch: U } = t(), W = z.filter((e) => e.name.toLowerCase().includes(A.toLowerCase()) || e.description?.toLowerCase().includes(A.toLowerCase())), G = l(() => {
|
|
30
|
+
j(!0);
|
|
31
|
+
}, []), ue = l(() => {
|
|
32
|
+
M || j(!1);
|
|
33
|
+
}, [M]), de = l(async (e) => {
|
|
34
|
+
N(!0);
|
|
35
|
+
try {
|
|
36
|
+
let t = await B({
|
|
26
37
|
name: e.name,
|
|
27
38
|
description: e.description,
|
|
28
39
|
category: e.category,
|
|
29
40
|
tags: e.tags
|
|
30
41
|
});
|
|
31
|
-
t && (
|
|
42
|
+
t && (j(!1), c(`/dashboards/${t.id}/builder`));
|
|
32
43
|
} catch (e) {
|
|
33
44
|
throw console.error("Failed to create dashboard:", e), i() && s("error"), e;
|
|
34
45
|
} finally {
|
|
35
|
-
|
|
46
|
+
N(!1);
|
|
36
47
|
}
|
|
37
|
-
}, [
|
|
48
|
+
}, [B, c]), K = l((e) => {
|
|
38
49
|
c(`/dashboards/${e}`);
|
|
39
|
-
}, [c]),
|
|
50
|
+
}, [c]), q = l((e, t) => {
|
|
40
51
|
t.stopPropagation(), c(`/dashboards/${e}/builder`);
|
|
41
|
-
}, [c]),
|
|
52
|
+
}, [c]), J = l(async (e, t) => {
|
|
42
53
|
t.stopPropagation();
|
|
43
|
-
let n =
|
|
54
|
+
let n = k("bigconsole.dashboards.confirmDelete", "Are you sure you want to delete this dashboard?"), r = await a({
|
|
44
55
|
title: "Delete dashboard?",
|
|
45
56
|
message: n,
|
|
46
57
|
okButtonTitle: "Delete",
|
|
@@ -49,74 +60,90 @@ var A = c(function() {
|
|
|
49
60
|
if (r === null ? window.confirm(n) : r) {
|
|
50
61
|
o("medium");
|
|
51
62
|
try {
|
|
52
|
-
await
|
|
63
|
+
await V(e), i() && s("success");
|
|
53
64
|
} catch (e) {
|
|
54
65
|
throw i() && s("error"), e;
|
|
55
66
|
}
|
|
56
67
|
}
|
|
57
|
-
}, [
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
68
|
+
}, [V, k]), Y = l(async (e, t, n) => {
|
|
69
|
+
n.stopPropagation();
|
|
70
|
+
let r = k("bigconsole.dashboards.clone.defaultSuffix", `${t} (Copy)`), a = window.prompt(k("bigconsole.dashboards.clone.namePrompt", "Name for the cloned dashboard:"), r);
|
|
71
|
+
if (!(!a || !a.trim())) {
|
|
72
|
+
o("medium");
|
|
73
|
+
try {
|
|
74
|
+
let t = await H(e, a.trim());
|
|
75
|
+
t && (i() && s("success"), c(`/dashboards/${t.id}`));
|
|
76
|
+
} catch (e) {
|
|
77
|
+
throw i() && s("error"), e;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}, [
|
|
81
|
+
H,
|
|
82
|
+
c,
|
|
83
|
+
k
|
|
84
|
+
]), X = l(() => {
|
|
85
|
+
P(!0);
|
|
86
|
+
}, []), fe = l(() => {
|
|
87
|
+
P(!1);
|
|
88
|
+
}, []), pe = l((e, t) => {
|
|
89
|
+
U();
|
|
90
|
+
}, [U]), Z = (e) => {
|
|
64
91
|
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);
|
|
65
|
-
return i < 1 ?
|
|
92
|
+
return i < 1 ? k("bigconsole.dashboards.time.justNow", "Just now") : i < 60 ? `${i}${k("bigconsole.dashboards.time.minutesAgoSuffix", "m ago")}` : a < 24 ? `${a}${k("bigconsole.dashboards.time.hoursAgoSuffix", "h ago")}` : o < 7 ? `${o}${k("bigconsole.dashboards.time.daysAgoSuffix", "d ago")}` : new Intl.DateTimeFormat("en-US", {
|
|
66
93
|
month: "short",
|
|
67
94
|
day: "numeric",
|
|
68
95
|
year: t.getFullYear() === n.getFullYear() ? void 0 : "numeric"
|
|
69
96
|
}).format(t);
|
|
70
|
-
},
|
|
71
|
-
return
|
|
97
|
+
}, Q = (e) => e.widgetCount ?? 0, $ = (e) => e.pages?.length || 0;
|
|
98
|
+
return R ? /* @__PURE__ */ x("div", {
|
|
72
99
|
style: { padding: "var(--space-pagePadding)" },
|
|
73
|
-
children: /* @__PURE__ */
|
|
100
|
+
children: /* @__PURE__ */ x(T, {
|
|
74
101
|
style: {
|
|
75
102
|
borderColor: "var(--color-status-error-border)",
|
|
76
103
|
backgroundColor: "var(--color-status-error-bgSubtle)"
|
|
77
104
|
},
|
|
78
|
-
children: /* @__PURE__ */
|
|
105
|
+
children: /* @__PURE__ */ S(E, {
|
|
79
106
|
style: { padding: "var(--space-pagePadding)" },
|
|
80
107
|
children: [
|
|
81
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ x("h3", {
|
|
82
109
|
style: {
|
|
83
110
|
fontSize: "var(--font-size-body-sm)",
|
|
84
111
|
fontWeight: "var(--font-weight-medium)",
|
|
85
112
|
color: "var(--color-status-error-text)"
|
|
86
113
|
},
|
|
87
|
-
children:
|
|
114
|
+
children: k("bigconsole.dashboards.error.title", "Error loading dashboards")
|
|
88
115
|
}),
|
|
89
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ x("p", {
|
|
90
117
|
style: {
|
|
91
118
|
fontSize: "var(--font-size-body-sm)",
|
|
92
119
|
color: "var(--color-text-secondary)",
|
|
93
120
|
marginTop: "var(--space-controlGap)"
|
|
94
121
|
},
|
|
95
|
-
children:
|
|
122
|
+
children: R.message
|
|
96
123
|
}),
|
|
97
|
-
/* @__PURE__ */
|
|
124
|
+
/* @__PURE__ */ x(w, {
|
|
98
125
|
size: "sm",
|
|
99
|
-
onClick: () =>
|
|
126
|
+
onClick: () => U(),
|
|
100
127
|
style: { marginTop: "var(--space-formGap)" },
|
|
101
|
-
children:
|
|
128
|
+
children: k("bigconsole.dashboards.error.retry", "Retry")
|
|
102
129
|
})
|
|
103
130
|
]
|
|
104
131
|
})
|
|
105
132
|
})
|
|
106
|
-
}) : /* @__PURE__ */
|
|
133
|
+
}) : /* @__PURE__ */ S("div", {
|
|
107
134
|
style: {
|
|
108
135
|
minHeight: "100vh",
|
|
109
136
|
backgroundColor: "var(--color-bg-canvas)"
|
|
110
137
|
},
|
|
111
138
|
children: [
|
|
112
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ x("div", {
|
|
113
140
|
style: {
|
|
114
141
|
borderBottom: "1px solid var(--color-border)",
|
|
115
142
|
backgroundColor: "var(--color-bg-surface)"
|
|
116
143
|
},
|
|
117
|
-
children: /* @__PURE__ */
|
|
144
|
+
children: /* @__PURE__ */ x("div", {
|
|
118
145
|
style: { padding: "var(--space-pagePadding)" },
|
|
119
|
-
children: /* @__PURE__ */
|
|
146
|
+
children: /* @__PURE__ */ S("div", {
|
|
120
147
|
style: {
|
|
121
148
|
display: "flex",
|
|
122
149
|
alignItems: "center",
|
|
@@ -124,14 +151,14 @@ var A = c(function() {
|
|
|
124
151
|
flexWrap: "wrap",
|
|
125
152
|
gap: "var(--space-formGap)"
|
|
126
153
|
},
|
|
127
|
-
children: [/* @__PURE__ */
|
|
154
|
+
children: [/* @__PURE__ */ S("div", {
|
|
128
155
|
style: {
|
|
129
156
|
display: "flex",
|
|
130
157
|
alignItems: "center",
|
|
131
158
|
gap: "var(--space-formGap)",
|
|
132
159
|
minWidth: 0
|
|
133
160
|
},
|
|
134
|
-
children: [/* @__PURE__ */
|
|
161
|
+
children: [/* @__PURE__ */ x("div", {
|
|
135
162
|
style: {
|
|
136
163
|
display: "flex",
|
|
137
164
|
height: "var(--size-controlHeight-lg)",
|
|
@@ -141,65 +168,74 @@ var A = c(function() {
|
|
|
141
168
|
borderRadius: "var(--radius-card)",
|
|
142
169
|
backgroundColor: "var(--color-action-primary-bg)"
|
|
143
170
|
},
|
|
144
|
-
children: /* @__PURE__ */
|
|
171
|
+
children: /* @__PURE__ */ x(h, { style: {
|
|
145
172
|
height: "var(--size-icon-lg)",
|
|
146
173
|
width: "var(--size-icon-lg)",
|
|
147
174
|
color: "var(--color-action-primary-text)"
|
|
148
175
|
} })
|
|
149
|
-
}), /* @__PURE__ */
|
|
176
|
+
}), /* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("h1", {
|
|
150
177
|
style: {
|
|
151
178
|
fontSize: "var(--font-size-heading-h4)",
|
|
152
179
|
fontWeight: "var(--font-weight-bold)",
|
|
153
180
|
margin: 0,
|
|
154
181
|
color: "var(--color-text-primary)"
|
|
155
182
|
},
|
|
156
|
-
children:
|
|
157
|
-
}), /* @__PURE__ */
|
|
183
|
+
children: k("bigconsole.dashboards.title", "Dashboards")
|
|
184
|
+
}), /* @__PURE__ */ x("p", {
|
|
158
185
|
style: {
|
|
159
186
|
fontSize: "var(--font-size-body-sm)",
|
|
160
187
|
color: "var(--color-text-secondary)",
|
|
161
188
|
margin: 0
|
|
162
189
|
},
|
|
163
|
-
children:
|
|
190
|
+
children: k("bigconsole.dashboards.subtitle", "Create and manage your analytics dashboards")
|
|
164
191
|
})] })]
|
|
165
|
-
}), /* @__PURE__ */
|
|
192
|
+
}), /* @__PURE__ */ S("div", {
|
|
166
193
|
style: {
|
|
167
194
|
display: "flex",
|
|
168
195
|
alignItems: "center",
|
|
169
196
|
gap: "var(--space-controlGap)",
|
|
170
197
|
flexWrap: "wrap"
|
|
171
198
|
},
|
|
172
|
-
children: [/* @__PURE__ */
|
|
199
|
+
children: [/* @__PURE__ */ S(w, {
|
|
173
200
|
variant: "outline",
|
|
174
|
-
onClick:
|
|
175
|
-
children: [/* @__PURE__ */
|
|
201
|
+
onClick: X,
|
|
202
|
+
children: [/* @__PURE__ */ x(b, { style: {
|
|
176
203
|
marginRight: "var(--space-iconGap)",
|
|
177
204
|
height: "var(--size-icon-sm)",
|
|
178
205
|
width: "var(--size-icon-sm)"
|
|
179
|
-
} }),
|
|
180
|
-
}), /* @__PURE__ */
|
|
181
|
-
onClick:
|
|
182
|
-
children: [/* @__PURE__ */
|
|
206
|
+
} }), k("bigconsole.dashboards.actions.import", "Import")]
|
|
207
|
+
}), /* @__PURE__ */ S(w, {
|
|
208
|
+
onClick: G,
|
|
209
|
+
children: [/* @__PURE__ */ x(_, { style: {
|
|
183
210
|
marginRight: "var(--space-iconGap)",
|
|
184
211
|
height: "var(--size-icon-sm)",
|
|
185
212
|
width: "var(--size-icon-sm)"
|
|
186
|
-
} }),
|
|
213
|
+
} }), k("bigconsole.dashboards.actions.create", "Create Dashboard")]
|
|
187
214
|
})]
|
|
188
215
|
})]
|
|
189
216
|
})
|
|
190
217
|
})
|
|
191
218
|
}),
|
|
192
|
-
/* @__PURE__ */
|
|
219
|
+
/* @__PURE__ */ S("div", {
|
|
193
220
|
style: { padding: "var(--space-pagePadding)" },
|
|
194
221
|
children: [
|
|
195
222
|
/* @__PURE__ */ S("div", {
|
|
196
|
-
style: {
|
|
197
|
-
|
|
223
|
+
style: {
|
|
224
|
+
marginBottom: "var(--space-sectionGap)",
|
|
225
|
+
display: "flex",
|
|
226
|
+
alignItems: "center",
|
|
227
|
+
justifyContent: "space-between",
|
|
228
|
+
flexWrap: "wrap",
|
|
229
|
+
gap: "var(--space-formGap)"
|
|
230
|
+
},
|
|
231
|
+
children: [/* @__PURE__ */ S("div", {
|
|
198
232
|
style: {
|
|
199
233
|
position: "relative",
|
|
234
|
+
flex: 1,
|
|
235
|
+
minWidth: 0,
|
|
200
236
|
maxWidth: "400px"
|
|
201
237
|
},
|
|
202
|
-
children: [/* @__PURE__ */
|
|
238
|
+
children: [/* @__PURE__ */ x(v, { style: {
|
|
203
239
|
position: "absolute",
|
|
204
240
|
left: "var(--space-controlGap)",
|
|
205
241
|
top: "50%",
|
|
@@ -207,64 +243,108 @@ var A = c(function() {
|
|
|
207
243
|
height: "var(--size-icon-sm)",
|
|
208
244
|
width: "var(--size-icon-sm)",
|
|
209
245
|
color: "var(--color-text-muted)"
|
|
210
|
-
} }), /* @__PURE__ */
|
|
246
|
+
} }), /* @__PURE__ */ x(ie, {
|
|
211
247
|
type: "text",
|
|
212
|
-
placeholder:
|
|
213
|
-
value:
|
|
214
|
-
onChange: (e) =>
|
|
248
|
+
placeholder: k("bigconsole.dashboards.search.placeholder", "Search dashboards..."),
|
|
249
|
+
value: A,
|
|
250
|
+
onChange: (e) => oe(e.target.value),
|
|
215
251
|
style: {
|
|
216
252
|
paddingLeft: "var(--size-controlHeight-md)",
|
|
217
253
|
height: "var(--size-controlHeight-md)"
|
|
218
254
|
}
|
|
219
255
|
})]
|
|
220
|
-
})
|
|
256
|
+
}), /* @__PURE__ */ S("div", {
|
|
257
|
+
style: {
|
|
258
|
+
display: "flex",
|
|
259
|
+
alignItems: "center",
|
|
260
|
+
gap: "var(--space-iconGap)",
|
|
261
|
+
padding: "var(--space-iconGap)",
|
|
262
|
+
borderRadius: "var(--radius-button)",
|
|
263
|
+
backgroundColor: "var(--color-bg-sunken)"
|
|
264
|
+
},
|
|
265
|
+
children: [/* @__PURE__ */ x(w, {
|
|
266
|
+
variant: F === "grid" ? "default" : "ghost",
|
|
267
|
+
size: "sm",
|
|
268
|
+
onClick: () => I("grid"),
|
|
269
|
+
"aria-label": k("bigconsole.dashboards.view.grid", "Grid view"),
|
|
270
|
+
"aria-pressed": F === "grid",
|
|
271
|
+
title: k("bigconsole.dashboards.view.grid", "Grid view"),
|
|
272
|
+
style: {
|
|
273
|
+
height: "var(--size-controlHeight-sm)",
|
|
274
|
+
width: "var(--size-controlHeight-sm)",
|
|
275
|
+
padding: 0,
|
|
276
|
+
borderRadius: "var(--radius-button)"
|
|
277
|
+
},
|
|
278
|
+
children: /* @__PURE__ */ x(te, { style: {
|
|
279
|
+
height: "var(--size-icon-sm)",
|
|
280
|
+
width: "var(--size-icon-sm)"
|
|
281
|
+
} })
|
|
282
|
+
}), /* @__PURE__ */ x(w, {
|
|
283
|
+
variant: F === "list" ? "default" : "ghost",
|
|
284
|
+
size: "sm",
|
|
285
|
+
onClick: () => I("list"),
|
|
286
|
+
"aria-label": k("bigconsole.dashboards.view.list", "List view"),
|
|
287
|
+
"aria-pressed": F === "list",
|
|
288
|
+
title: k("bigconsole.dashboards.view.list", "List view"),
|
|
289
|
+
style: {
|
|
290
|
+
height: "var(--size-controlHeight-sm)",
|
|
291
|
+
width: "var(--size-controlHeight-sm)",
|
|
292
|
+
padding: 0,
|
|
293
|
+
borderRadius: "var(--radius-button)"
|
|
294
|
+
},
|
|
295
|
+
children: /* @__PURE__ */ x(ne, { style: {
|
|
296
|
+
height: "var(--size-icon-sm)",
|
|
297
|
+
width: "var(--size-icon-sm)"
|
|
298
|
+
} })
|
|
299
|
+
})]
|
|
300
|
+
})]
|
|
221
301
|
}),
|
|
222
|
-
|
|
302
|
+
L && z.length === 0 && /* @__PURE__ */ x("div", {
|
|
223
303
|
style: {
|
|
224
304
|
display: "flex",
|
|
225
305
|
alignItems: "center",
|
|
226
306
|
justifyContent: "center",
|
|
227
307
|
padding: "80px 0"
|
|
228
308
|
},
|
|
229
|
-
children: /* @__PURE__ */
|
|
309
|
+
children: /* @__PURE__ */ S("div", {
|
|
230
310
|
style: { textAlign: "center" },
|
|
231
|
-
children: [/* @__PURE__ */
|
|
311
|
+
children: [/* @__PURE__ */ x(ae, { style: {
|
|
232
312
|
height: "var(--size-icon-xl)",
|
|
233
313
|
width: "var(--size-icon-xl)",
|
|
234
314
|
margin: "0 auto var(--space-formGap)"
|
|
235
|
-
} }), /* @__PURE__ */
|
|
315
|
+
} }), /* @__PURE__ */ x("p", {
|
|
236
316
|
style: {
|
|
237
317
|
fontSize: "var(--font-size-body-sm)",
|
|
238
318
|
color: "var(--color-text-muted)"
|
|
239
319
|
},
|
|
240
|
-
children:
|
|
320
|
+
children: k("bigconsole.dashboards.loading", "Loading dashboards...")
|
|
241
321
|
})]
|
|
242
322
|
})
|
|
243
323
|
}),
|
|
244
|
-
!
|
|
324
|
+
!L && F === "grid" && W.length > 0 && /* @__PURE__ */ x("div", {
|
|
245
325
|
style: {
|
|
246
326
|
display: "grid",
|
|
247
327
|
gridTemplateColumns: "repeat(auto-fill, minmax(min(320px, 100%), 1fr))",
|
|
248
328
|
gap: "var(--space-formGap)"
|
|
249
329
|
},
|
|
250
|
-
children:
|
|
251
|
-
onClick: () =>
|
|
330
|
+
children: W.map((e) => /* @__PURE__ */ x(T, {
|
|
331
|
+
onClick: () => K(e.id),
|
|
252
332
|
style: {
|
|
253
333
|
cursor: "pointer",
|
|
254
334
|
transition: "all 0.2s ease"
|
|
255
335
|
},
|
|
256
336
|
className: "hover:shadow-md hover:border-primary/50",
|
|
257
|
-
children: /* @__PURE__ */
|
|
337
|
+
children: /* @__PURE__ */ S(E, {
|
|
258
338
|
style: { padding: "var(--space-cardPadding)" },
|
|
259
339
|
children: [
|
|
260
|
-
/* @__PURE__ */
|
|
340
|
+
/* @__PURE__ */ S("div", {
|
|
261
341
|
style: {
|
|
262
342
|
display: "flex",
|
|
263
343
|
alignItems: "center",
|
|
264
344
|
gap: "var(--space-controlGap)",
|
|
265
345
|
marginBottom: "var(--space-formGap)"
|
|
266
346
|
},
|
|
267
|
-
children: [/* @__PURE__ */
|
|
347
|
+
children: [/* @__PURE__ */ x("div", {
|
|
268
348
|
style: {
|
|
269
349
|
display: "flex",
|
|
270
350
|
height: "var(--size-controlHeight-lg)",
|
|
@@ -275,17 +355,17 @@ var A = c(function() {
|
|
|
275
355
|
borderRadius: "var(--radius-button)",
|
|
276
356
|
backgroundColor: "var(--color-action-primary-bg)"
|
|
277
357
|
},
|
|
278
|
-
children: /* @__PURE__ */
|
|
358
|
+
children: /* @__PURE__ */ x(h, { style: {
|
|
279
359
|
height: "var(--size-icon-md)",
|
|
280
360
|
width: "var(--size-icon-md)",
|
|
281
361
|
color: "var(--color-action-primary-text)"
|
|
282
362
|
} })
|
|
283
|
-
}), /* @__PURE__ */
|
|
363
|
+
}), /* @__PURE__ */ S("div", {
|
|
284
364
|
style: {
|
|
285
365
|
flex: 1,
|
|
286
366
|
minWidth: 0
|
|
287
367
|
},
|
|
288
|
-
children: [/* @__PURE__ */
|
|
368
|
+
children: [/* @__PURE__ */ x("h3", {
|
|
289
369
|
style: {
|
|
290
370
|
fontWeight: "var(--font-weight-bold)",
|
|
291
371
|
fontSize: "var(--font-size-body-md)",
|
|
@@ -296,7 +376,7 @@ var A = c(function() {
|
|
|
296
376
|
whiteSpace: "nowrap"
|
|
297
377
|
},
|
|
298
378
|
children: e.name
|
|
299
|
-
}), e.category && /* @__PURE__ */
|
|
379
|
+
}), e.category && /* @__PURE__ */ x(C, {
|
|
300
380
|
variant: "secondary",
|
|
301
381
|
style: {
|
|
302
382
|
marginTop: "var(--space-controlGap)",
|
|
@@ -308,7 +388,7 @@ var A = c(function() {
|
|
|
308
388
|
})]
|
|
309
389
|
})]
|
|
310
390
|
}),
|
|
311
|
-
/* @__PURE__ */
|
|
391
|
+
/* @__PURE__ */ x("p", {
|
|
312
392
|
style: {
|
|
313
393
|
fontSize: "var(--font-size-body-sm)",
|
|
314
394
|
lineHeight: "var(--font-lineHeight-normal)",
|
|
@@ -320,9 +400,9 @@ var A = c(function() {
|
|
|
320
400
|
WebkitBoxOrient: "vertical",
|
|
321
401
|
overflow: "hidden"
|
|
322
402
|
},
|
|
323
|
-
children: e.description ||
|
|
403
|
+
children: e.description || k("bigconsole.dashboards.card.noDescription", "No description provided")
|
|
324
404
|
}),
|
|
325
|
-
/* @__PURE__ */
|
|
405
|
+
/* @__PURE__ */ S("div", {
|
|
326
406
|
style: {
|
|
327
407
|
display: "flex",
|
|
328
408
|
alignItems: "center",
|
|
@@ -333,72 +413,72 @@ var A = c(function() {
|
|
|
333
413
|
borderRadius: "var(--radius-button)"
|
|
334
414
|
},
|
|
335
415
|
children: [
|
|
336
|
-
/* @__PURE__ */
|
|
416
|
+
/* @__PURE__ */ S("div", {
|
|
337
417
|
style: {
|
|
338
418
|
display: "flex",
|
|
339
419
|
alignItems: "center",
|
|
340
420
|
gap: "var(--space-iconGap)"
|
|
341
421
|
},
|
|
342
422
|
children: [
|
|
343
|
-
/* @__PURE__ */
|
|
423
|
+
/* @__PURE__ */ x(m, { style: {
|
|
344
424
|
height: "var(--size-icon-sm)",
|
|
345
425
|
width: "var(--size-icon-sm)",
|
|
346
426
|
color: "var(--color-action-primary-bg)"
|
|
347
427
|
} }),
|
|
348
|
-
/* @__PURE__ */
|
|
428
|
+
/* @__PURE__ */ x("span", {
|
|
349
429
|
style: {
|
|
350
430
|
fontSize: "var(--font-size-body-sm)",
|
|
351
431
|
fontWeight: "var(--font-weight-semibold)",
|
|
352
432
|
color: "var(--color-text-primary)"
|
|
353
433
|
},
|
|
354
|
-
children:
|
|
434
|
+
children: $(e)
|
|
355
435
|
}),
|
|
356
|
-
/* @__PURE__ */
|
|
436
|
+
/* @__PURE__ */ x("span", {
|
|
357
437
|
style: {
|
|
358
438
|
fontSize: "var(--font-size-body-sm)",
|
|
359
439
|
color: "var(--color-text-muted)"
|
|
360
440
|
},
|
|
361
|
-
children:
|
|
441
|
+
children: k("bigconsole.dashboards.card.pages", "pages")
|
|
362
442
|
})
|
|
363
443
|
]
|
|
364
444
|
}),
|
|
365
|
-
/* @__PURE__ */
|
|
445
|
+
/* @__PURE__ */ x("div", { style: {
|
|
366
446
|
width: "1px",
|
|
367
447
|
height: "var(--size-icon-sm)",
|
|
368
448
|
backgroundColor: "var(--color-border)"
|
|
369
449
|
} }),
|
|
370
|
-
/* @__PURE__ */
|
|
450
|
+
/* @__PURE__ */ S("div", {
|
|
371
451
|
style: {
|
|
372
452
|
display: "flex",
|
|
373
453
|
alignItems: "center",
|
|
374
454
|
gap: "var(--space-iconGap)"
|
|
375
455
|
},
|
|
376
456
|
children: [
|
|
377
|
-
/* @__PURE__ */
|
|
457
|
+
/* @__PURE__ */ x(p, { style: {
|
|
378
458
|
height: "var(--size-icon-sm)",
|
|
379
459
|
width: "var(--size-icon-sm)",
|
|
380
460
|
color: "var(--color-action-primary-bg)"
|
|
381
461
|
} }),
|
|
382
|
-
/* @__PURE__ */
|
|
462
|
+
/* @__PURE__ */ x("span", {
|
|
383
463
|
style: {
|
|
384
464
|
fontSize: "var(--font-size-body-sm)",
|
|
385
465
|
fontWeight: "var(--font-weight-semibold)",
|
|
386
466
|
color: "var(--color-text-primary)"
|
|
387
467
|
},
|
|
388
|
-
children:
|
|
468
|
+
children: Q(e)
|
|
389
469
|
}),
|
|
390
|
-
/* @__PURE__ */
|
|
470
|
+
/* @__PURE__ */ x("span", {
|
|
391
471
|
style: {
|
|
392
472
|
fontSize: "var(--font-size-body-sm)",
|
|
393
473
|
color: "var(--color-text-muted)"
|
|
394
474
|
},
|
|
395
|
-
children:
|
|
475
|
+
children: k("bigconsole.dashboards.card.widgets", "widgets")
|
|
396
476
|
})
|
|
397
477
|
]
|
|
398
478
|
})
|
|
399
479
|
]
|
|
400
480
|
}),
|
|
401
|
-
/* @__PURE__ */
|
|
481
|
+
/* @__PURE__ */ S("div", {
|
|
402
482
|
style: {
|
|
403
483
|
display: "flex",
|
|
404
484
|
alignItems: "center",
|
|
@@ -406,71 +486,326 @@ var A = c(function() {
|
|
|
406
486
|
paddingTop: "var(--space-controlGap)",
|
|
407
487
|
borderTop: "1px solid var(--color-border)"
|
|
408
488
|
},
|
|
409
|
-
children: [/* @__PURE__ */
|
|
489
|
+
children: [/* @__PURE__ */ S("div", {
|
|
410
490
|
style: {
|
|
411
491
|
display: "flex",
|
|
412
492
|
alignItems: "center",
|
|
413
493
|
gap: "var(--space-iconGap)"
|
|
414
494
|
},
|
|
415
|
-
children: [/* @__PURE__ */
|
|
495
|
+
children: [/* @__PURE__ */ x(d, { style: {
|
|
416
496
|
height: "var(--size-icon-sm)",
|
|
417
497
|
width: "var(--size-icon-sm)",
|
|
418
498
|
color: "var(--color-text-muted)"
|
|
419
|
-
} }), /* @__PURE__ */
|
|
499
|
+
} }), /* @__PURE__ */ x("span", {
|
|
420
500
|
style: {
|
|
421
501
|
fontSize: "var(--font-size-body-sm)",
|
|
422
502
|
fontWeight: "var(--font-weight-medium)",
|
|
423
503
|
color: "var(--color-text-muted)"
|
|
424
504
|
},
|
|
425
|
-
children:
|
|
505
|
+
children: Z(e.updatedAt)
|
|
426
506
|
})]
|
|
427
|
-
}), /* @__PURE__ */
|
|
507
|
+
}), /* @__PURE__ */ S("div", {
|
|
428
508
|
style: {
|
|
429
509
|
display: "flex",
|
|
430
510
|
alignItems: "center",
|
|
431
511
|
gap: "var(--space-controlGap)"
|
|
432
512
|
},
|
|
433
|
-
children: [
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
513
|
+
children: [
|
|
514
|
+
/* @__PURE__ */ x(w, {
|
|
515
|
+
variant: "ghost",
|
|
516
|
+
size: "sm",
|
|
517
|
+
onClick: (t) => q(e.id, t),
|
|
518
|
+
style: {
|
|
519
|
+
height: "var(--size-controlHeight-sm)",
|
|
520
|
+
width: "var(--size-controlHeight-sm)",
|
|
521
|
+
padding: 0,
|
|
522
|
+
borderRadius: "var(--radius-button)"
|
|
523
|
+
},
|
|
524
|
+
title: k("bigconsole.dashboards.actions.editTitle", "Edit Dashboard"),
|
|
525
|
+
children: /* @__PURE__ */ x(g, { style: {
|
|
526
|
+
height: "var(--size-icon-sm)",
|
|
527
|
+
width: "var(--size-icon-sm)"
|
|
528
|
+
} })
|
|
529
|
+
}),
|
|
530
|
+
/* @__PURE__ */ x(w, {
|
|
531
|
+
variant: "ghost",
|
|
532
|
+
size: "sm",
|
|
533
|
+
onClick: (t) => Y(e.id, e.name, t),
|
|
534
|
+
style: {
|
|
535
|
+
height: "var(--size-controlHeight-sm)",
|
|
536
|
+
width: "var(--size-controlHeight-sm)",
|
|
537
|
+
padding: 0,
|
|
538
|
+
borderRadius: "var(--radius-button)"
|
|
539
|
+
},
|
|
540
|
+
title: k("bigconsole.dashboards.actions.cloneTitle", "Clone Dashboard"),
|
|
541
|
+
children: /* @__PURE__ */ x(f, { style: {
|
|
542
|
+
height: "var(--size-icon-sm)",
|
|
543
|
+
width: "var(--size-icon-sm)"
|
|
544
|
+
} })
|
|
545
|
+
}),
|
|
546
|
+
/* @__PURE__ */ x(w, {
|
|
547
|
+
variant: "ghost",
|
|
548
|
+
size: "sm",
|
|
549
|
+
onClick: (t) => J(e.id, t),
|
|
550
|
+
style: {
|
|
551
|
+
height: "var(--size-controlHeight-sm)",
|
|
552
|
+
width: "var(--size-controlHeight-sm)",
|
|
553
|
+
padding: 0,
|
|
554
|
+
borderRadius: "var(--radius-button)"
|
|
555
|
+
},
|
|
556
|
+
className: "hover:text-destructive hover:bg-destructive/10",
|
|
557
|
+
title: k("bigconsole.dashboards.actions.deleteTitle", "Delete Dashboard"),
|
|
558
|
+
children: /* @__PURE__ */ x(y, { style: {
|
|
559
|
+
height: "var(--size-icon-sm)",
|
|
560
|
+
width: "var(--size-icon-sm)"
|
|
561
|
+
} })
|
|
562
|
+
})
|
|
563
|
+
]
|
|
564
|
+
})]
|
|
565
|
+
})
|
|
566
|
+
]
|
|
567
|
+
})
|
|
568
|
+
}, e.id))
|
|
569
|
+
}),
|
|
570
|
+
!L && F === "list" && W.length > 0 && /* @__PURE__ */ x("div", {
|
|
571
|
+
style: {
|
|
572
|
+
display: "flex",
|
|
573
|
+
flexDirection: "column",
|
|
574
|
+
gap: "var(--space-controlGap)"
|
|
575
|
+
},
|
|
576
|
+
children: W.map((e) => /* @__PURE__ */ x(T, {
|
|
577
|
+
onClick: () => K(e.id),
|
|
578
|
+
style: {
|
|
579
|
+
cursor: "pointer",
|
|
580
|
+
transition: "all 0.2s ease"
|
|
581
|
+
},
|
|
582
|
+
className: "hover:shadow-md hover:border-primary/50",
|
|
583
|
+
children: /* @__PURE__ */ x(E, {
|
|
584
|
+
style: { padding: "var(--space-cardPadding)" },
|
|
585
|
+
children: /* @__PURE__ */ S("div", {
|
|
586
|
+
style: {
|
|
587
|
+
display: "flex",
|
|
588
|
+
alignItems: "center",
|
|
589
|
+
gap: "var(--space-formGap)",
|
|
590
|
+
flexWrap: "wrap"
|
|
591
|
+
},
|
|
592
|
+
children: [
|
|
593
|
+
/* @__PURE__ */ x("div", {
|
|
594
|
+
style: {
|
|
595
|
+
display: "flex",
|
|
596
|
+
height: "var(--size-controlHeight-lg)",
|
|
597
|
+
width: "var(--size-controlHeight-lg)",
|
|
598
|
+
flexShrink: 0,
|
|
599
|
+
alignItems: "center",
|
|
600
|
+
justifyContent: "center",
|
|
601
|
+
borderRadius: "var(--radius-button)",
|
|
602
|
+
backgroundColor: "var(--color-action-primary-bg)"
|
|
603
|
+
},
|
|
604
|
+
children: /* @__PURE__ */ x(h, { style: {
|
|
605
|
+
height: "var(--size-icon-md)",
|
|
606
|
+
width: "var(--size-icon-md)",
|
|
607
|
+
color: "var(--color-action-primary-text)"
|
|
608
|
+
} })
|
|
609
|
+
}),
|
|
610
|
+
/* @__PURE__ */ S("div", {
|
|
611
|
+
style: {
|
|
612
|
+
flex: 1,
|
|
613
|
+
minWidth: "180px"
|
|
614
|
+
},
|
|
615
|
+
children: [/* @__PURE__ */ S("div", {
|
|
437
616
|
style: {
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
617
|
+
display: "flex",
|
|
618
|
+
alignItems: "center",
|
|
619
|
+
gap: "var(--space-controlGap)",
|
|
620
|
+
flexWrap: "wrap"
|
|
442
621
|
},
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
622
|
+
children: [/* @__PURE__ */ x("h3", {
|
|
623
|
+
style: {
|
|
624
|
+
fontWeight: "var(--font-weight-bold)",
|
|
625
|
+
fontSize: "var(--font-size-body-md)",
|
|
626
|
+
margin: 0,
|
|
627
|
+
color: "var(--color-text-primary)",
|
|
628
|
+
overflow: "hidden",
|
|
629
|
+
textOverflow: "ellipsis",
|
|
630
|
+
whiteSpace: "nowrap",
|
|
631
|
+
maxWidth: "100%"
|
|
632
|
+
},
|
|
633
|
+
children: e.name
|
|
634
|
+
}), e.category && /* @__PURE__ */ x(C, {
|
|
635
|
+
variant: "secondary",
|
|
636
|
+
style: {
|
|
637
|
+
fontSize: "10px",
|
|
638
|
+
fontWeight: "var(--font-weight-semibold)",
|
|
639
|
+
textTransform: "uppercase"
|
|
640
|
+
},
|
|
641
|
+
children: e.category
|
|
642
|
+
})]
|
|
643
|
+
}), /* @__PURE__ */ x("p", {
|
|
452
644
|
style: {
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
645
|
+
fontSize: "var(--font-size-body-sm)",
|
|
646
|
+
lineHeight: "var(--font-lineHeight-normal)",
|
|
647
|
+
color: "var(--color-text-secondary)",
|
|
648
|
+
margin: "var(--space-controlGap) 0 0 0",
|
|
649
|
+
overflow: "hidden",
|
|
650
|
+
textOverflow: "ellipsis",
|
|
651
|
+
whiteSpace: "nowrap"
|
|
457
652
|
},
|
|
458
|
-
|
|
459
|
-
title: j("bigconsole.dashboards.actions.deleteTitle", "Delete Dashboard"),
|
|
460
|
-
children: /* @__PURE__ */ S(y, { style: {
|
|
461
|
-
height: "var(--size-icon-sm)",
|
|
462
|
-
width: "var(--size-icon-sm)"
|
|
463
|
-
} })
|
|
653
|
+
children: e.description || k("bigconsole.dashboards.card.noDescription", "No description provided")
|
|
464
654
|
})]
|
|
465
|
-
})
|
|
466
|
-
|
|
467
|
-
|
|
655
|
+
}),
|
|
656
|
+
/* @__PURE__ */ S("div", {
|
|
657
|
+
style: {
|
|
658
|
+
display: "flex",
|
|
659
|
+
alignItems: "center",
|
|
660
|
+
gap: "var(--space-formGap)",
|
|
661
|
+
flexWrap: "wrap"
|
|
662
|
+
},
|
|
663
|
+
children: [
|
|
664
|
+
/* @__PURE__ */ S("div", {
|
|
665
|
+
style: {
|
|
666
|
+
display: "flex",
|
|
667
|
+
alignItems: "center",
|
|
668
|
+
gap: "var(--space-iconGap)"
|
|
669
|
+
},
|
|
670
|
+
children: [
|
|
671
|
+
/* @__PURE__ */ x(m, { style: {
|
|
672
|
+
height: "var(--size-icon-sm)",
|
|
673
|
+
width: "var(--size-icon-sm)",
|
|
674
|
+
color: "var(--color-action-primary-bg)"
|
|
675
|
+
} }),
|
|
676
|
+
/* @__PURE__ */ x("span", {
|
|
677
|
+
style: {
|
|
678
|
+
fontSize: "var(--font-size-body-sm)",
|
|
679
|
+
fontWeight: "var(--font-weight-semibold)",
|
|
680
|
+
color: "var(--color-text-primary)"
|
|
681
|
+
},
|
|
682
|
+
children: $(e)
|
|
683
|
+
}),
|
|
684
|
+
/* @__PURE__ */ x("span", {
|
|
685
|
+
style: {
|
|
686
|
+
fontSize: "var(--font-size-body-sm)",
|
|
687
|
+
color: "var(--color-text-muted)"
|
|
688
|
+
},
|
|
689
|
+
children: k("bigconsole.dashboards.card.pages", "pages")
|
|
690
|
+
})
|
|
691
|
+
]
|
|
692
|
+
}),
|
|
693
|
+
/* @__PURE__ */ S("div", {
|
|
694
|
+
style: {
|
|
695
|
+
display: "flex",
|
|
696
|
+
alignItems: "center",
|
|
697
|
+
gap: "var(--space-iconGap)"
|
|
698
|
+
},
|
|
699
|
+
children: [
|
|
700
|
+
/* @__PURE__ */ x(p, { style: {
|
|
701
|
+
height: "var(--size-icon-sm)",
|
|
702
|
+
width: "var(--size-icon-sm)",
|
|
703
|
+
color: "var(--color-action-primary-bg)"
|
|
704
|
+
} }),
|
|
705
|
+
/* @__PURE__ */ x("span", {
|
|
706
|
+
style: {
|
|
707
|
+
fontSize: "var(--font-size-body-sm)",
|
|
708
|
+
fontWeight: "var(--font-weight-semibold)",
|
|
709
|
+
color: "var(--color-text-primary)"
|
|
710
|
+
},
|
|
711
|
+
children: Q(e)
|
|
712
|
+
}),
|
|
713
|
+
/* @__PURE__ */ x("span", {
|
|
714
|
+
style: {
|
|
715
|
+
fontSize: "var(--font-size-body-sm)",
|
|
716
|
+
color: "var(--color-text-muted)"
|
|
717
|
+
},
|
|
718
|
+
children: k("bigconsole.dashboards.card.widgets", "widgets")
|
|
719
|
+
})
|
|
720
|
+
]
|
|
721
|
+
}),
|
|
722
|
+
/* @__PURE__ */ S("div", {
|
|
723
|
+
style: {
|
|
724
|
+
display: "flex",
|
|
725
|
+
alignItems: "center",
|
|
726
|
+
gap: "var(--space-iconGap)"
|
|
727
|
+
},
|
|
728
|
+
children: [/* @__PURE__ */ x(d, { style: {
|
|
729
|
+
height: "var(--size-icon-sm)",
|
|
730
|
+
width: "var(--size-icon-sm)",
|
|
731
|
+
color: "var(--color-text-muted)"
|
|
732
|
+
} }), /* @__PURE__ */ x("span", {
|
|
733
|
+
style: {
|
|
734
|
+
fontSize: "var(--font-size-body-sm)",
|
|
735
|
+
fontWeight: "var(--font-weight-medium)",
|
|
736
|
+
color: "var(--color-text-muted)"
|
|
737
|
+
},
|
|
738
|
+
children: Z(e.updatedAt)
|
|
739
|
+
})]
|
|
740
|
+
})
|
|
741
|
+
]
|
|
742
|
+
}),
|
|
743
|
+
/* @__PURE__ */ S("div", {
|
|
744
|
+
style: {
|
|
745
|
+
display: "flex",
|
|
746
|
+
alignItems: "center",
|
|
747
|
+
gap: "var(--space-controlGap)"
|
|
748
|
+
},
|
|
749
|
+
children: [
|
|
750
|
+
/* @__PURE__ */ x(w, {
|
|
751
|
+
variant: "ghost",
|
|
752
|
+
size: "sm",
|
|
753
|
+
onClick: (t) => q(e.id, t),
|
|
754
|
+
style: {
|
|
755
|
+
height: "var(--size-controlHeight-sm)",
|
|
756
|
+
width: "var(--size-controlHeight-sm)",
|
|
757
|
+
padding: 0,
|
|
758
|
+
borderRadius: "var(--radius-button)"
|
|
759
|
+
},
|
|
760
|
+
title: k("bigconsole.dashboards.actions.editTitle", "Edit Dashboard"),
|
|
761
|
+
children: /* @__PURE__ */ x(g, { style: {
|
|
762
|
+
height: "var(--size-icon-sm)",
|
|
763
|
+
width: "var(--size-icon-sm)"
|
|
764
|
+
} })
|
|
765
|
+
}),
|
|
766
|
+
/* @__PURE__ */ x(w, {
|
|
767
|
+
variant: "ghost",
|
|
768
|
+
size: "sm",
|
|
769
|
+
onClick: (t) => Y(e.id, e.name, t),
|
|
770
|
+
style: {
|
|
771
|
+
height: "var(--size-controlHeight-sm)",
|
|
772
|
+
width: "var(--size-controlHeight-sm)",
|
|
773
|
+
padding: 0,
|
|
774
|
+
borderRadius: "var(--radius-button)"
|
|
775
|
+
},
|
|
776
|
+
title: k("bigconsole.dashboards.actions.cloneTitle", "Clone Dashboard"),
|
|
777
|
+
children: /* @__PURE__ */ x(f, { style: {
|
|
778
|
+
height: "var(--size-icon-sm)",
|
|
779
|
+
width: "var(--size-icon-sm)"
|
|
780
|
+
} })
|
|
781
|
+
}),
|
|
782
|
+
/* @__PURE__ */ x(w, {
|
|
783
|
+
variant: "ghost",
|
|
784
|
+
size: "sm",
|
|
785
|
+
onClick: (t) => J(e.id, t),
|
|
786
|
+
style: {
|
|
787
|
+
height: "var(--size-controlHeight-sm)",
|
|
788
|
+
width: "var(--size-controlHeight-sm)",
|
|
789
|
+
padding: 0,
|
|
790
|
+
borderRadius: "var(--radius-button)"
|
|
791
|
+
},
|
|
792
|
+
className: "hover:text-destructive hover:bg-destructive/10",
|
|
793
|
+
title: k("bigconsole.dashboards.actions.deleteTitle", "Delete Dashboard"),
|
|
794
|
+
children: /* @__PURE__ */ x(y, { style: {
|
|
795
|
+
height: "var(--size-icon-sm)",
|
|
796
|
+
width: "var(--size-icon-sm)"
|
|
797
|
+
} })
|
|
798
|
+
})
|
|
799
|
+
]
|
|
800
|
+
})
|
|
801
|
+
]
|
|
802
|
+
})
|
|
468
803
|
})
|
|
469
804
|
}, e.id))
|
|
470
805
|
}),
|
|
471
|
-
!
|
|
806
|
+
!L && W.length === 0 && /* @__PURE__ */ x(T, {
|
|
472
807
|
className: "border-dashed",
|
|
473
|
-
children: /* @__PURE__ */
|
|
808
|
+
children: /* @__PURE__ */ S(E, {
|
|
474
809
|
style: {
|
|
475
810
|
display: "flex",
|
|
476
811
|
flexDirection: "column",
|
|
@@ -479,7 +814,7 @@ var A = c(function() {
|
|
|
479
814
|
padding: "64px var(--space-pagePadding)"
|
|
480
815
|
},
|
|
481
816
|
children: [
|
|
482
|
-
/* @__PURE__ */
|
|
817
|
+
/* @__PURE__ */ x("div", {
|
|
483
818
|
style: {
|
|
484
819
|
display: "flex",
|
|
485
820
|
height: "80px",
|
|
@@ -490,21 +825,21 @@ var A = c(function() {
|
|
|
490
825
|
backgroundColor: "var(--color-bg-sunken)",
|
|
491
826
|
marginBottom: "var(--space-sectionGap)"
|
|
492
827
|
},
|
|
493
|
-
children: /* @__PURE__ */
|
|
828
|
+
children: /* @__PURE__ */ x(ee, { style: {
|
|
494
829
|
height: "var(--size-icon-xl)",
|
|
495
830
|
width: "var(--size-icon-xl)",
|
|
496
831
|
color: "var(--color-text-muted)"
|
|
497
832
|
} })
|
|
498
833
|
}),
|
|
499
|
-
/* @__PURE__ */
|
|
834
|
+
/* @__PURE__ */ x("h3", {
|
|
500
835
|
style: {
|
|
501
836
|
fontSize: "var(--font-size-heading-h4)",
|
|
502
837
|
fontWeight: "var(--font-weight-semibold)",
|
|
503
838
|
marginBottom: "var(--space-controlGap)"
|
|
504
839
|
},
|
|
505
|
-
children:
|
|
840
|
+
children: A ? k("bigconsole.dashboards.empty.filteredTitle", "No dashboards found") : k("bigconsole.dashboards.empty.title", "No dashboards yet")
|
|
506
841
|
}),
|
|
507
|
-
/* @__PURE__ */
|
|
842
|
+
/* @__PURE__ */ x("p", {
|
|
508
843
|
style: {
|
|
509
844
|
fontSize: "var(--font-size-body-sm)",
|
|
510
845
|
color: "var(--color-text-muted)",
|
|
@@ -512,28 +847,30 @@ var A = c(function() {
|
|
|
512
847
|
textAlign: "center",
|
|
513
848
|
maxWidth: "360px"
|
|
514
849
|
},
|
|
515
|
-
children:
|
|
850
|
+
children: A ? k("bigconsole.dashboards.empty.filteredDescription", "Try adjusting your search terms") : k("bigconsole.dashboards.empty.description", "Get started by creating your first dashboard to visualize your data")
|
|
516
851
|
}),
|
|
517
|
-
!
|
|
852
|
+
!A && /* @__PURE__ */ S("div", {
|
|
518
853
|
style: {
|
|
519
854
|
display: "flex",
|
|
520
|
-
gap: "var(--space-controlGap)"
|
|
855
|
+
gap: "var(--space-controlGap)",
|
|
856
|
+
flexWrap: "wrap",
|
|
857
|
+
justifyContent: "center"
|
|
521
858
|
},
|
|
522
|
-
children: [/* @__PURE__ */
|
|
859
|
+
children: [/* @__PURE__ */ S(w, {
|
|
523
860
|
variant: "outline",
|
|
524
|
-
onClick:
|
|
525
|
-
children: [/* @__PURE__ */
|
|
861
|
+
onClick: X,
|
|
862
|
+
children: [/* @__PURE__ */ x(b, { style: {
|
|
526
863
|
marginRight: "var(--space-iconGap)",
|
|
527
864
|
height: "var(--size-icon-sm)",
|
|
528
865
|
width: "var(--size-icon-sm)"
|
|
529
|
-
} }),
|
|
530
|
-
}), /* @__PURE__ */
|
|
531
|
-
onClick:
|
|
532
|
-
children: [/* @__PURE__ */
|
|
866
|
+
} }), k("bigconsole.dashboards.actions.importDashboard", "Import Dashboard")]
|
|
867
|
+
}), /* @__PURE__ */ S(w, {
|
|
868
|
+
onClick: G,
|
|
869
|
+
children: [/* @__PURE__ */ x(_, { style: {
|
|
533
870
|
marginRight: "var(--space-iconGap)",
|
|
534
871
|
height: "var(--size-icon-sm)",
|
|
535
872
|
width: "var(--size-icon-sm)"
|
|
536
|
-
} }),
|
|
873
|
+
} }), k("bigconsole.dashboards.actions.create", "Create Dashboard")]
|
|
537
874
|
})]
|
|
538
875
|
})
|
|
539
876
|
]
|
|
@@ -541,21 +878,21 @@ var A = c(function() {
|
|
|
541
878
|
})
|
|
542
879
|
]
|
|
543
880
|
}),
|
|
544
|
-
/* @__PURE__ */
|
|
545
|
-
isOpen:
|
|
546
|
-
isCreating:
|
|
547
|
-
onClose:
|
|
548
|
-
onCreate:
|
|
881
|
+
/* @__PURE__ */ x(n, {
|
|
882
|
+
isOpen: se,
|
|
883
|
+
isCreating: M,
|
|
884
|
+
onClose: ue,
|
|
885
|
+
onCreate: de
|
|
549
886
|
}),
|
|
550
|
-
/* @__PURE__ */
|
|
551
|
-
isOpen:
|
|
552
|
-
onClose:
|
|
553
|
-
onSuccess:
|
|
887
|
+
/* @__PURE__ */ x(r, {
|
|
888
|
+
isOpen: ce,
|
|
889
|
+
onClose: fe,
|
|
890
|
+
onSuccess: pe
|
|
554
891
|
})
|
|
555
892
|
]
|
|
556
893
|
});
|
|
557
894
|
});
|
|
558
895
|
//#endregion
|
|
559
|
-
export {
|
|
896
|
+
export { O as DashboardsPage, O as default };
|
|
560
897
|
|
|
561
898
|
//# sourceMappingURL=DashboardsPage.js.map
|