@burdenoff/microfe-bigconsole 2026.1012.4 → 2026.1012.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bigconsole/BigConsoleRoutes.js +149 -140
- package/dist/bigconsole/assistant/assistantProduct.js +4 -1
- package/dist/bigconsole/assistant/displayCopy.d.ts +32 -0
- package/dist/bigconsole/assistant/pageContext.d.ts +14 -0
- package/dist/bigconsole/assistant/pageContext.js +6 -1
- package/dist/bigconsole/assistant/pageControls.d.ts +81 -0
- package/dist/bigconsole/assistant/pageControls.js +169 -0
- package/dist/bigconsole/assistant/previewControl.d.ts +16 -0
- package/dist/bigconsole/assistant/previewControl.js +10 -0
- package/dist/bigconsole/assistant/recordAdapters.js +27 -26
- package/dist/bigconsole/assistant/usePreviewControl.d.ts +2 -0
- package/dist/bigconsole/assistant/usePreviewControl.js +20 -0
- package/dist/bigconsole/components/builder/inspector/AppearanceSection.js +9 -9
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +31 -31
- package/dist/bigconsole/components/common/SortBySelect.d.ts +11 -0
- package/dist/bigconsole/components/common/SortBySelect.js +29 -0
- package/dist/bigconsole/components/common/index.d.ts +1 -0
- package/dist/bigconsole/components/common/index.js +1 -0
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +44 -44
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +36 -36
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +59 -59
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +15 -15
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +41 -41
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +34 -34
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +153 -153
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +21 -21
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +134 -134
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -101
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +31 -31
- package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.js +15 -15
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +46 -46
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +37 -37
- package/dist/bigconsole/components/datasink/AlertRuleEditor.js +66 -66
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
- package/dist/bigconsole/components/datasink/DataSinkCard.js +51 -50
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +47 -47
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +91 -91
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
- package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
- package/dist/bigconsole/components/parser/ImportParserDialog.js +120 -120
- package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +10 -10
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +77 -76
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +96 -95
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +4 -4
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +93 -93
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +507 -499
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +14 -14
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.js +68 -67
- package/dist/bigconsole/components/widgets/advanced/boxPlotDescription.d.ts +7 -0
- package/dist/bigconsole/components/widgets/advanced/boxPlotDescription.js +12 -0
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +4 -4
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
- package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
- package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
- package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
- package/dist/bigconsole/components/workflow/WorkflowOpenGuard.js +15 -15
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +15 -15
- package/dist/bigconsole/constants/backendErrors.js +94 -0
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +10 -10
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +67 -67
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +14 -0
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +32 -0
- package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +23 -0
- package/dist/bigconsole/hooks/useDataSinkAlerts.js +138 -113
- package/dist/bigconsole/hooks/useDrilldown.js +3 -3
- package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
- package/dist/bigconsole/pages/AdminPage.js +130 -130
- package/dist/bigconsole/pages/DashboardBuilderPage.js +72 -60
- package/dist/bigconsole/pages/DashboardViewPage.js +244 -221
- package/dist/bigconsole/pages/DashboardsPage.js +269 -221
- package/dist/bigconsole/pages/DataParsersPage.js +180 -157
- package/dist/bigconsole/pages/DataSinkAlertsPage.js +62 -55
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +252 -234
- package/dist/bigconsole/pages/DataSinkViewPage.js +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +335 -299
- package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
- package/dist/bigconsole/pages/InsightsPage.js +279 -265
- package/dist/bigconsole/pages/OverviewPage.js +47 -47
- package/dist/bigconsole/pages/ParserBuilderPage.js +229 -213
- package/dist/bigconsole/pages/ParserViewPage.js +97 -97
- package/dist/bigconsole/pages/PipelineBuilderPage.js +256 -214
- package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
- package/dist/bigconsole/pages/PipelinesPage.js +107 -88
- package/dist/bigconsole/pages/SettingsPage.js +179 -173
- package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
- package/dist/bigconsole/pages/WorkflowViewPage.js +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +141 -141
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +12 -12
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +34 -34
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +69 -69
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
- package/dist/bigconsole/store/widgetStore.d.ts +12 -0
- package/dist/bigconsole/store/widgetStore.js +3 -1
- package/dist/bigconsole/utils/backendError.d.ts +18 -0
- package/dist/bigconsole/utils/backendError.js +42 -0
- package/dist/bigconsole/utils/dashboardList.d.ts +28 -0
- package/dist/bigconsole/utils/dashboardList.js +15 -0
- package/dist/bigconsole/utils/dataSinkList.d.ts +15 -0
- package/dist/bigconsole/utils/dataSinkList.js +15 -0
- package/dist/bigconsole/utils/formDirty.d.ts +82 -0
- package/dist/bigconsole/utils/formDirty.js +21 -0
- package/dist/bigconsole/utils/insightsDraft.d.ts +29 -0
- package/dist/bigconsole/utils/insightsDraft.js +8 -0
- package/dist/bigconsole/utils/layoutBaseline.d.ts +130 -0
- package/dist/bigconsole/utils/layoutBaseline.js +96 -0
- package/dist/bigconsole/utils/listSort.d.ts +80 -0
- package/dist/bigconsole/utils/listSort.js +85 -0
- package/dist/bigconsole/utils/widgetFormDirty.d.ts +16 -0
- package/dist/bigconsole/utils/widgetFormDirty.js +13 -0
- package/dist/bigconsole/workflowOpen.js +15 -14
- package/package.json +3 -3
|
@@ -18,18 +18,21 @@ import { BuilderTopbar as ne } from "../components/builder/BuilderTopbar.js";
|
|
|
18
18
|
import { DashboardEditorShell as re } from "../components/builder/DashboardEditorShell.js";
|
|
19
19
|
import { findNextAvailablePosition as ie } from "../utils/widgetPositioning.js";
|
|
20
20
|
import "../components/builder/index.js";
|
|
21
|
-
import
|
|
22
|
-
import
|
|
21
|
+
import ae from "../components/dashboard/DashboardCanvas.js";
|
|
22
|
+
import oe from "../components/dashboard/ExportDashboardDialog.js";
|
|
23
23
|
import "../components/dashboard/index.js";
|
|
24
|
-
import
|
|
24
|
+
import { layoutItemsFromPositionUpdates as u } from "../utils/layoutBaseline.js";
|
|
25
|
+
import { useDashboardLayoutBaseline as se } from "../hooks/useDashboardLayoutBaseline.js";
|
|
26
|
+
import d from "../customWidget/CustomWidgetBuilderSheet.js";
|
|
25
27
|
import "../customWidget/index.js";
|
|
26
28
|
import { memo as f, useCallback as p, useEffect as m, useState as h } from "react";
|
|
27
|
-
import { useParams as
|
|
28
|
-
import { AccessDenied as
|
|
29
|
-
import { usePermissions as
|
|
30
|
-
import { Button as
|
|
29
|
+
import { useParams as ce } from "react-router";
|
|
30
|
+
import { AccessDenied as le } from "@burdenoff/fe-libs/shared/components";
|
|
31
|
+
import { usePermissions as ue } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
32
|
+
import { Button as de } from "@burdenoff/fe-libs/ui";
|
|
33
|
+
import { useUnsavedChanges as fe } from "@burdenoff/fe-libs/shared/hooks";
|
|
34
|
+
import { useI18n as pe } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
31
35
|
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
32
|
-
import { useI18n as ue } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
33
36
|
//#region src/bigconsole/pages/DashboardBuilderPage.tsx
|
|
34
37
|
function v() {
|
|
35
38
|
try {
|
|
@@ -38,17 +41,21 @@ function v() {
|
|
|
38
41
|
return;
|
|
39
42
|
}
|
|
40
43
|
}
|
|
41
|
-
function
|
|
44
|
+
function me(e, t) {
|
|
42
45
|
let n = v();
|
|
43
46
|
n?.register && n.register(e, t);
|
|
44
47
|
}
|
|
45
|
-
function
|
|
48
|
+
function he(e) {
|
|
46
49
|
let t = v();
|
|
47
50
|
t?.unregister && t.unregister(e);
|
|
48
51
|
}
|
|
49
52
|
var y = f(function() {
|
|
50
|
-
let { dashboardId: f } =
|
|
51
|
-
|
|
53
|
+
let { dashboardId: f } = ce(), v = n(), { t: y } = pe(), { hasPermission: b, isLoading: ge } = ue(), _e = b(l.DASHBOARD_READ), x = b(l.DASHBOARD_UPDATE), ve = b(l.DASHBOARD_EXPORT), S = b(l.WIDGET_CREATE), [C, w] = h(!1), [T, E] = h(null), [ye, D] = h(!1), [be, O] = h(!1), { fetchDashboard: k, updateDashboard: A, loading: j, error: M } = o(), { createWidget: N, updateWidget: P, deleteWidget: F, duplicateWidget: I, batchUpdatePositions: L } = a(void 0, f), { createPage: R, updatePage: z, deletePage: B, reorderPages: V } = c(), H = t((e) => e.setCurrentDashboard), U = t((e) => e.currentDashboard), { activePageId: W, setActivePage: G } = s(U?.id === f ? U?.pages : void 0), K = t((e) => e.setViewMode), q = e((e) => e.selectWidget), J = e((e) => e.widgets), Y = e((e) => e.clipboardWidgetId), X = e((e) => e.clipboardAction), Z = e((e) => e.clearClipboard), { dirty: xe, markSaved: Q } = se(f);
|
|
54
|
+
fe({
|
|
55
|
+
id: "dashboard-editor",
|
|
56
|
+
label: y("bigconsole.assistant.unsaved.dashboardEditor", "the dashboard editor"),
|
|
57
|
+
dirty: x && xe
|
|
58
|
+
}), m(() => (K("edit"), () => K("view")), [K]), m(() => {
|
|
52
59
|
if (!f) {
|
|
53
60
|
v("/dashboards");
|
|
54
61
|
return;
|
|
@@ -65,9 +72,9 @@ var y = f(function() {
|
|
|
65
72
|
index: t,
|
|
66
73
|
layoutConfig: e.layoutConfig ?? {}
|
|
67
74
|
}))
|
|
68
|
-
}), e.name &&
|
|
75
|
+
}), e.name && me(f, e.name)) : v("/dashboards");
|
|
69
76
|
}), () => {
|
|
70
|
-
f &&
|
|
77
|
+
f && he(f);
|
|
71
78
|
};
|
|
72
79
|
}, [
|
|
73
80
|
f,
|
|
@@ -75,7 +82,7 @@ var y = f(function() {
|
|
|
75
82
|
H,
|
|
76
83
|
k
|
|
77
84
|
]);
|
|
78
|
-
let
|
|
85
|
+
let $ = p(async () => {
|
|
79
86
|
let e = W ?? U?.pages?.[0]?.id;
|
|
80
87
|
if (!Y || !f || !e) return;
|
|
81
88
|
let t = J.get(Y);
|
|
@@ -133,19 +140,19 @@ var y = f(function() {
|
|
|
133
140
|
n.preventDefault(), F(i), r.selectWidget(null);
|
|
134
141
|
return;
|
|
135
142
|
}
|
|
136
|
-
(n.metaKey || n.ctrlKey) && (n.key === "c" && i ? r.copyWidget(i) : n.key === "x" && i ? r.cutWidget(i) : n.key === "v" && (n.preventDefault(),
|
|
143
|
+
(n.metaKey || n.ctrlKey) && (n.key === "c" && i ? r.copyWidget(i) : n.key === "x" && i ? r.cutWidget(i) : n.key === "v" && (n.preventDefault(), $()));
|
|
137
144
|
};
|
|
138
145
|
return document.addEventListener("keydown", n, !0), () => document.removeEventListener("keydown", n, !0);
|
|
139
|
-
}, [F,
|
|
140
|
-
let
|
|
146
|
+
}, [F, $]);
|
|
147
|
+
let Se = p(() => {
|
|
141
148
|
v("/dashboards");
|
|
142
|
-
}, [v]),
|
|
149
|
+
}, [v]), Ce = p(async () => {
|
|
143
150
|
if (f) {
|
|
144
151
|
w(!0), E(null);
|
|
145
152
|
try {
|
|
146
|
-
let t = e.getState(), n = Array.from(t.widgets.values()), r = t.dirtyWidgetIds, i = n.filter((e) => r.has(e.id));
|
|
147
|
-
if (
|
|
148
|
-
let e =
|
|
153
|
+
let t = e.getState(), n = Array.from(t.widgets.values()), r = t.dirtyWidgetIds, i = t.layoutEditRevision, a = n.length === 0 ? [] : null, o = n.filter((e) => r.has(e.id));
|
|
154
|
+
if (o.length > 0) {
|
|
155
|
+
let e = o.map((e) => P({
|
|
149
156
|
id: e.id,
|
|
150
157
|
title: e.title,
|
|
151
158
|
config: e.config,
|
|
@@ -157,19 +164,23 @@ var y = f(function() {
|
|
|
157
164
|
}));
|
|
158
165
|
await Promise.all(e), t.clearAllDirty();
|
|
159
166
|
}
|
|
160
|
-
n.length > 0
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
if (n.length > 0) {
|
|
168
|
+
let e = n.map((e) => ({
|
|
169
|
+
id: e.id,
|
|
170
|
+
position: e.position || {
|
|
171
|
+
x: e.positionX ?? 0,
|
|
172
|
+
y: e.positionY ?? 0,
|
|
173
|
+
width: e.positionWidth ?? 4,
|
|
174
|
+
height: e.positionHeight ?? 4
|
|
175
|
+
}
|
|
176
|
+
}));
|
|
177
|
+
await L(e) && (a = u(e));
|
|
178
|
+
}
|
|
179
|
+
U && await A({
|
|
169
180
|
id: f,
|
|
170
181
|
name: U.title,
|
|
171
182
|
description: U.description
|
|
172
|
-
});
|
|
183
|
+
}), a && Q(a, i);
|
|
173
184
|
} catch (e) {
|
|
174
185
|
E(e instanceof Error ? e.message : y("bigconsole.dashboards.builder.errors.saveFailed", "Failed to save dashboard"));
|
|
175
186
|
} finally {
|
|
@@ -182,14 +193,15 @@ var y = f(function() {
|
|
|
182
193
|
P,
|
|
183
194
|
L,
|
|
184
195
|
A,
|
|
196
|
+
Q,
|
|
185
197
|
y
|
|
186
|
-
]),
|
|
198
|
+
]), we = p(() => {
|
|
187
199
|
D(!0);
|
|
188
|
-
}, []),
|
|
200
|
+
}, []), Te = p(() => {
|
|
189
201
|
D(!1);
|
|
190
|
-
}, []),
|
|
202
|
+
}, []), Ee = p((e) => {
|
|
191
203
|
G(e);
|
|
192
|
-
}, [G]),
|
|
204
|
+
}, [G]), De = p(async () => {
|
|
193
205
|
if (!U || !f) return;
|
|
194
206
|
let e = await R({
|
|
195
207
|
dashboardId: f,
|
|
@@ -213,7 +225,7 @@ var y = f(function() {
|
|
|
213
225
|
R,
|
|
214
226
|
G,
|
|
215
227
|
y
|
|
216
|
-
]),
|
|
228
|
+
]), Oe = p(async (e, t) => {
|
|
217
229
|
U && await z({
|
|
218
230
|
id: e,
|
|
219
231
|
name: t
|
|
@@ -228,7 +240,7 @@ var y = f(function() {
|
|
|
228
240
|
U,
|
|
229
241
|
H,
|
|
230
242
|
z
|
|
231
|
-
]),
|
|
243
|
+
]), ke = p(async (e) => {
|
|
232
244
|
if (!U || !f) return;
|
|
233
245
|
let t = U.pages.find((t) => t.id === e);
|
|
234
246
|
if (!t) return;
|
|
@@ -254,7 +266,7 @@ var y = f(function() {
|
|
|
254
266
|
R,
|
|
255
267
|
G,
|
|
256
268
|
y
|
|
257
|
-
]),
|
|
269
|
+
]), Ae = p(async (e) => {
|
|
258
270
|
if (!(!U || U.pages.length <= 1) && await B(e)) {
|
|
259
271
|
let t = U.pages.filter((t) => t.id !== e).map((e, t) => ({
|
|
260
272
|
...e,
|
|
@@ -273,7 +285,7 @@ var y = f(function() {
|
|
|
273
285
|
W,
|
|
274
286
|
B,
|
|
275
287
|
G
|
|
276
|
-
]),
|
|
288
|
+
]), je = p(async (e) => {
|
|
277
289
|
!U || !f || (H({
|
|
278
290
|
...U,
|
|
279
291
|
pages: e.map((e, t) => ({
|
|
@@ -287,10 +299,10 @@ var y = f(function() {
|
|
|
287
299
|
H,
|
|
288
300
|
V
|
|
289
301
|
]);
|
|
290
|
-
return
|
|
302
|
+
return ge ? /* @__PURE__ */ g("div", {
|
|
291
303
|
className: "flex items-center justify-center h-full",
|
|
292
304
|
children: /* @__PURE__ */ g("div", { className: "animate-spin w-8 h-8 border-4 border-action-primary-bg border-t-transparent rounded-full" })
|
|
293
|
-
}) :
|
|
305
|
+
}) : _e ? M ? /* @__PURE__ */ g("div", {
|
|
294
306
|
className: "flex h-full flex-col items-center justify-center p-6",
|
|
295
307
|
children: /* @__PURE__ */ g(i, {
|
|
296
308
|
headingLevel: 2,
|
|
@@ -302,7 +314,7 @@ var y = f(function() {
|
|
|
302
314
|
}),
|
|
303
315
|
className: "w-full max-w-md",
|
|
304
316
|
"data-testid": "dashboard-builder-error",
|
|
305
|
-
actions: /* @__PURE__ */ g(
|
|
317
|
+
actions: /* @__PURE__ */ g(de, {
|
|
306
318
|
size: "sm",
|
|
307
319
|
onClick: () => v("/dashboards"),
|
|
308
320
|
children: y("bigconsole.dashboards.builder.actions.backToDashboards", "Back to Dashboards")
|
|
@@ -319,7 +331,7 @@ var y = f(function() {
|
|
|
319
331
|
}) : /* @__PURE__ */ _(re, {
|
|
320
332
|
topbar: /* @__PURE__ */ g(ne, {
|
|
321
333
|
title: U.title || y("bigconsole.dashboards.builder.header.untitledDashboard", "Untitled dashboard"),
|
|
322
|
-
onBack:
|
|
334
|
+
onBack: Se,
|
|
323
335
|
actions: /* @__PURE__ */ _("div", {
|
|
324
336
|
className: "flex items-center gap-2",
|
|
325
337
|
children: [T ? /* @__PURE__ */ g("span", {
|
|
@@ -336,42 +348,42 @@ var y = f(function() {
|
|
|
336
348
|
})
|
|
337
349
|
}),
|
|
338
350
|
children: [
|
|
339
|
-
/* @__PURE__ */ g(te, { canvas: /* @__PURE__ */ g(
|
|
351
|
+
/* @__PURE__ */ g(te, { canvas: /* @__PURE__ */ g(ae, {
|
|
340
352
|
dashboardId: U.id,
|
|
341
353
|
pageId: W || U.pages?.[0]?.id,
|
|
342
354
|
title: U.title,
|
|
343
|
-
onPaste:
|
|
344
|
-
onSave:
|
|
355
|
+
onPaste: $,
|
|
356
|
+
onSave: x ? Ce : void 0,
|
|
345
357
|
isSaving: C,
|
|
346
|
-
onExport:
|
|
358
|
+
onExport: ve ? we : void 0,
|
|
347
359
|
pages: U.pages.map((e) => ({
|
|
348
360
|
id: e.id,
|
|
349
361
|
name: e.title || y("bigconsole.dashboards.builder.actions.newPageName", "Page {{count}}", { count: (e.index ?? 0) + 1 }),
|
|
350
362
|
order: e.index ?? 0
|
|
351
363
|
})),
|
|
352
364
|
activePageId: W || U.pages?.[0]?.id,
|
|
353
|
-
onPageChange:
|
|
354
|
-
onPageAdd:
|
|
355
|
-
onPageRename:
|
|
356
|
-
onPageDuplicate:
|
|
357
|
-
onPageDelete:
|
|
358
|
-
onPagesReorder:
|
|
365
|
+
onPageChange: Ee,
|
|
366
|
+
onPageAdd: De,
|
|
367
|
+
onPageRename: Oe,
|
|
368
|
+
onPageDuplicate: ke,
|
|
369
|
+
onPageDelete: Ae,
|
|
370
|
+
onPagesReorder: je,
|
|
359
371
|
showPageTabs: !0
|
|
360
372
|
}) }),
|
|
361
|
-
/* @__PURE__ */ g(
|
|
362
|
-
isOpen:
|
|
373
|
+
/* @__PURE__ */ g(oe, {
|
|
374
|
+
isOpen: ye,
|
|
363
375
|
dashboardId: U.id,
|
|
364
376
|
dashboardName: U.title,
|
|
365
|
-
onClose:
|
|
377
|
+
onClose: Te
|
|
366
378
|
}),
|
|
367
|
-
/* @__PURE__ */ g(
|
|
368
|
-
isOpen:
|
|
379
|
+
/* @__PURE__ */ g(d, {
|
|
380
|
+
isOpen: be,
|
|
369
381
|
onClose: () => O(!1),
|
|
370
382
|
dashboardId: U.id,
|
|
371
383
|
pageId: W || U.pages?.[0]?.id || ""
|
|
372
384
|
})
|
|
373
385
|
]
|
|
374
|
-
}) : /* @__PURE__ */ g(
|
|
386
|
+
}) : /* @__PURE__ */ g(le, {
|
|
375
387
|
title: y("bigconsole.dashboards.builder.errors.accessDeniedTitle", "Access Denied"),
|
|
376
388
|
description: y("bigconsole.dashboards.builder.errors.accessDeniedDescription", "You don't have permission to view this dashboard.")
|
|
377
389
|
});
|