@burdenoff/microfe-bigconsole 2026.1010.12 → 2026.1012.1
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/README.md +19 -0
- package/dist/bigconsole/BigConsoleRoot.js +88 -82
- package/dist/bigconsole/BigConsoleRoutes.js +163 -136
- package/dist/bigconsole/assistant/assistantProduct.js +1 -4
- package/dist/bigconsole/assistant/pageContext.d.ts +0 -14
- package/dist/bigconsole/assistant/pageContext.js +1 -6
- package/dist/bigconsole/assistant/recordAdapters.js +26 -27
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +31 -31
- package/dist/bigconsole/components/common/index.d.ts +0 -1
- package/dist/bigconsole/components/common/index.js +0 -1
- 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 +58 -57
- 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 +110 -110
- 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 +164 -173
- 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 +165 -163
- 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 +50 -51
- 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 +76 -77
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +95 -96
- 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 +499 -507
- package/dist/bigconsole/components/widgets/WidgetRegistry.js +0 -1
- 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/custom/CustomWidget.js +73 -131
- 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/iframe-widget/IframeWidget.d.ts +28 -9
- package/dist/bigconsole/components/widgets/iframe-widget/IframeWidget.js +115 -42
- package/dist/bigconsole/components/widgets/iframe-widget/framePolicy.d.ts +20 -0
- package/dist/bigconsole/components/widgets/iframe-widget/framePolicy.js +10 -0
- package/dist/bigconsole/components/widgets/iframe-widget/index.d.ts +2 -1
- package/dist/bigconsole/components/widgets/iframe-widget/index.js +3 -2
- 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/text-widget/TextWidget.js +110 -27
- package/dist/bigconsole/components/widgets/text-widget/textData.d.ts +6 -0
- package/dist/bigconsole/components/widgets/text-widget/textData.js +17 -14
- 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/context/BigConsoleContext.d.ts +10 -0
- package/dist/bigconsole/context/BigConsoleContext.js +47 -30
- package/dist/bigconsole/context/index.d.ts +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +58 -49
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +74 -72
- package/dist/bigconsole/customWidget/proposalPreview.d.ts +5 -0
- package/dist/bigconsole/customWidget/proposalPreview.js +31 -0
- package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +0 -23
- package/dist/bigconsole/hooks/useDataSinkAlerts.js +113 -138
- package/dist/bigconsole/hooks/useDataSinkOperations.d.ts +7 -0
- package/dist/bigconsole/hooks/useDataSinkOperations.js +109 -98
- package/dist/bigconsole/hooks/useDataSinkSubscription.js +0 -1
- package/dist/bigconsole/hooks/useDrilldown.js +68 -67
- package/dist/bigconsole/hooks/useExportDataSink.js +1 -1
- package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
- package/dist/bigconsole/hooks/useImportDataSink.js +102 -90
- package/dist/bigconsole/pages/AdminPage.js +130 -130
- package/dist/bigconsole/pages/DashboardBuilderPage.js +60 -72
- package/dist/bigconsole/pages/DashboardViewPage.js +235 -258
- package/dist/bigconsole/pages/DashboardsPage.js +221 -269
- package/dist/bigconsole/pages/DataParsersPage.js +157 -180
- package/dist/bigconsole/pages/DataSinkAlertsPage.js +55 -62
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +318 -295
- package/dist/bigconsole/pages/DataSinkViewPage.js +256 -255
- package/dist/bigconsole/pages/DataSinksPage.js +216 -251
- package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
- package/dist/bigconsole/pages/InsightsPage.js +265 -279
- package/dist/bigconsole/pages/OverviewPage.js +47 -47
- package/dist/bigconsole/pages/ParserBuilderPage.js +213 -229
- package/dist/bigconsole/pages/ParserViewPage.js +97 -97
- package/dist/bigconsole/pages/PipelineBuilderPage.js +214 -256
- package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
- package/dist/bigconsole/pages/PipelinesPage.js +88 -107
- package/dist/bigconsole/pages/SettingsPage.js +173 -179
- 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 +235 -122
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.d.ts +6 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +151 -151
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
- package/dist/bigconsole/renderers/adapters/adaptiveCardContent.d.ts +29 -0
- package/dist/bigconsole/renderers/adapters/adaptiveCardContent.js +51 -0
- package/dist/bigconsole/store/widgetStore.d.ts +0 -12
- package/dist/bigconsole/store/widgetStore.js +1 -3
- package/dist/bigconsole/types/index.d.ts +17 -2
- package/dist/bigconsole/utils/backendError.d.ts +0 -18
- package/dist/bigconsole/utils/dataSinkPayload.d.ts +48 -0
- package/dist/bigconsole/utils/dataSinkPayload.js +38 -0
- package/dist/bigconsole/utils/index.d.ts +2 -0
- package/dist/bigconsole/utils/safeUrl.d.ts +79 -0
- package/dist/bigconsole/utils/safeUrl.js +93 -0
- package/dist/bigconsole/utils/sanitizeHtml.d.ts +16 -0
- package/dist/bigconsole/utils/sanitizeHtml.js +67 -0
- package/dist/bigconsole/workflowOpen.js +14 -15
- package/dist/generated/wspace-operations.d.ts +138 -8
- package/dist/generated/wspace-operations.js +281 -240
- package/dist/node_modules/dompurify/dist/purify.es.js +800 -0
- package/package.json +9 -5
- package/dist/bigconsole/assistant/displayCopy.d.ts +0 -32
- package/dist/bigconsole/assistant/pageControls.d.ts +0 -81
- package/dist/bigconsole/assistant/pageControls.js +0 -169
- package/dist/bigconsole/assistant/previewControl.d.ts +0 -16
- package/dist/bigconsole/assistant/previewControl.js +0 -10
- package/dist/bigconsole/assistant/usePreviewControl.d.ts +0 -2
- package/dist/bigconsole/assistant/usePreviewControl.js +0 -20
- package/dist/bigconsole/components/common/SortBySelect.d.ts +0 -11
- package/dist/bigconsole/components/common/SortBySelect.js +0 -29
- package/dist/bigconsole/constants/backendErrors.js +0 -94
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +0 -14
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +0 -32
- package/dist/bigconsole/utils/backendError.js +0 -42
- package/dist/bigconsole/utils/dashboardList.d.ts +0 -28
- package/dist/bigconsole/utils/dashboardList.js +0 -15
- package/dist/bigconsole/utils/dataSinkList.d.ts +0 -15
- package/dist/bigconsole/utils/dataSinkList.js +0 -15
- package/dist/bigconsole/utils/formDirty.d.ts +0 -82
- package/dist/bigconsole/utils/formDirty.js +0 -21
- package/dist/bigconsole/utils/insightsDraft.d.ts +0 -29
- package/dist/bigconsole/utils/insightsDraft.js +0 -8
- package/dist/bigconsole/utils/layoutBaseline.d.ts +0 -130
- package/dist/bigconsole/utils/layoutBaseline.js +0 -96
- package/dist/bigconsole/utils/listSort.d.ts +0 -80
- package/dist/bigconsole/utils/listSort.js +0 -85
- package/dist/bigconsole/utils/widgetFormDirty.d.ts +0 -16
- package/dist/bigconsole/utils/widgetFormDirty.js +0 -13
|
@@ -18,21 +18,18 @@ 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 u from "../components/dashboard/DashboardCanvas.js";
|
|
22
|
+
import d from "../components/dashboard/ExportDashboardDialog.js";
|
|
23
23
|
import "../components/dashboard/index.js";
|
|
24
|
-
import
|
|
25
|
-
import { useDashboardLayoutBaseline as se } from "../hooks/useDashboardLayoutBaseline.js";
|
|
26
|
-
import d from "../customWidget/CustomWidgetBuilderSheet.js";
|
|
24
|
+
import ae from "../customWidget/CustomWidgetBuilderSheet.js";
|
|
27
25
|
import "../customWidget/index.js";
|
|
28
26
|
import { memo as f, useCallback as p, useEffect as m, useState as h } from "react";
|
|
29
|
-
import { useParams as
|
|
30
|
-
import { AccessDenied as
|
|
31
|
-
import { usePermissions as
|
|
32
|
-
import { Button as
|
|
33
|
-
import { useUnsavedChanges as fe } from "@burdenoff/fe-libs/shared/hooks";
|
|
34
|
-
import { useI18n as pe } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
27
|
+
import { useParams as oe } from "react-router";
|
|
28
|
+
import { AccessDenied as se } from "@burdenoff/fe-libs/shared/components";
|
|
29
|
+
import { usePermissions as ce } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
30
|
+
import { Button as le } from "@burdenoff/fe-libs/ui";
|
|
35
31
|
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
32
|
+
import { useI18n as ue } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
36
33
|
//#region src/bigconsole/pages/DashboardBuilderPage.tsx
|
|
37
34
|
function v() {
|
|
38
35
|
try {
|
|
@@ -41,21 +38,17 @@ function v() {
|
|
|
41
38
|
return;
|
|
42
39
|
}
|
|
43
40
|
}
|
|
44
|
-
function
|
|
41
|
+
function de(e, t) {
|
|
45
42
|
let n = v();
|
|
46
43
|
n?.register && n.register(e, t);
|
|
47
44
|
}
|
|
48
|
-
function
|
|
45
|
+
function fe(e) {
|
|
49
46
|
let t = v();
|
|
50
47
|
t?.unregister && t.unregister(e);
|
|
51
48
|
}
|
|
52
49
|
var y = f(function() {
|
|
53
|
-
let { dashboardId: f } =
|
|
54
|
-
|
|
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(() => {
|
|
50
|
+
let { dashboardId: f } = oe(), v = n(), { t: y } = ue(), { hasPermission: b, isLoading: x } = ce(), pe = b(l.DASHBOARD_READ), me = b(l.DASHBOARD_UPDATE), he = b(l.DASHBOARD_EXPORT), S = b(l.WIDGET_CREATE), [C, w] = h(!1), [T, E] = h(null), [ge, D] = h(!1), [_e, 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);
|
|
51
|
+
m(() => (K("edit"), () => K("view")), [K]), m(() => {
|
|
59
52
|
if (!f) {
|
|
60
53
|
v("/dashboards");
|
|
61
54
|
return;
|
|
@@ -72,9 +65,9 @@ var y = f(function() {
|
|
|
72
65
|
index: t,
|
|
73
66
|
layoutConfig: e.layoutConfig ?? {}
|
|
74
67
|
}))
|
|
75
|
-
}), e.name &&
|
|
68
|
+
}), e.name && de(f, e.name)) : v("/dashboards");
|
|
76
69
|
}), () => {
|
|
77
|
-
f &&
|
|
70
|
+
f && fe(f);
|
|
78
71
|
};
|
|
79
72
|
}, [
|
|
80
73
|
f,
|
|
@@ -82,7 +75,7 @@ var y = f(function() {
|
|
|
82
75
|
H,
|
|
83
76
|
k
|
|
84
77
|
]);
|
|
85
|
-
let
|
|
78
|
+
let Q = p(async () => {
|
|
86
79
|
let e = W ?? U?.pages?.[0]?.id;
|
|
87
80
|
if (!Y || !f || !e) return;
|
|
88
81
|
let t = J.get(Y);
|
|
@@ -140,19 +133,19 @@ var y = f(function() {
|
|
|
140
133
|
n.preventDefault(), F(i), r.selectWidget(null);
|
|
141
134
|
return;
|
|
142
135
|
}
|
|
143
|
-
(n.metaKey || n.ctrlKey) && (n.key === "c" && i ? r.copyWidget(i) : n.key === "x" && i ? r.cutWidget(i) : n.key === "v" && (n.preventDefault(),
|
|
136
|
+
(n.metaKey || n.ctrlKey) && (n.key === "c" && i ? r.copyWidget(i) : n.key === "x" && i ? r.cutWidget(i) : n.key === "v" && (n.preventDefault(), Q()));
|
|
144
137
|
};
|
|
145
138
|
return document.addEventListener("keydown", n, !0), () => document.removeEventListener("keydown", n, !0);
|
|
146
|
-
}, [F,
|
|
147
|
-
let
|
|
139
|
+
}, [F, Q]);
|
|
140
|
+
let ve = p(() => {
|
|
148
141
|
v("/dashboards");
|
|
149
|
-
}, [v]),
|
|
142
|
+
}, [v]), $ = p(async () => {
|
|
150
143
|
if (f) {
|
|
151
144
|
w(!0), E(null);
|
|
152
145
|
try {
|
|
153
|
-
let t = e.getState(), n = Array.from(t.widgets.values()), r = t.dirtyWidgetIds, i =
|
|
154
|
-
if (
|
|
155
|
-
let e =
|
|
146
|
+
let t = e.getState(), n = Array.from(t.widgets.values()), r = t.dirtyWidgetIds, i = n.filter((e) => r.has(e.id));
|
|
147
|
+
if (i.length > 0) {
|
|
148
|
+
let e = i.map((e) => P({
|
|
156
149
|
id: e.id,
|
|
157
150
|
title: e.title,
|
|
158
151
|
config: e.config,
|
|
@@ -164,23 +157,19 @@ var y = f(function() {
|
|
|
164
157
|
}));
|
|
165
158
|
await Promise.all(e), t.clearAllDirty();
|
|
166
159
|
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}));
|
|
177
|
-
await L(e) && (a = u(e));
|
|
178
|
-
}
|
|
179
|
-
U && await A({
|
|
160
|
+
n.length > 0 && await L(n.map((e) => ({
|
|
161
|
+
id: e.id,
|
|
162
|
+
position: e.position || {
|
|
163
|
+
x: e.positionX ?? 0,
|
|
164
|
+
y: e.positionY ?? 0,
|
|
165
|
+
width: e.positionWidth ?? 4,
|
|
166
|
+
height: e.positionHeight ?? 4
|
|
167
|
+
}
|
|
168
|
+
}))), U && await A({
|
|
180
169
|
id: f,
|
|
181
170
|
name: U.title,
|
|
182
171
|
description: U.description
|
|
183
|
-
})
|
|
172
|
+
});
|
|
184
173
|
} catch (e) {
|
|
185
174
|
E(e instanceof Error ? e.message : y("bigconsole.dashboards.builder.errors.saveFailed", "Failed to save dashboard"));
|
|
186
175
|
} finally {
|
|
@@ -193,15 +182,14 @@ var y = f(function() {
|
|
|
193
182
|
P,
|
|
194
183
|
L,
|
|
195
184
|
A,
|
|
196
|
-
Q,
|
|
197
185
|
y
|
|
198
|
-
]),
|
|
186
|
+
]), ye = p(() => {
|
|
199
187
|
D(!0);
|
|
200
|
-
}, []),
|
|
188
|
+
}, []), be = p(() => {
|
|
201
189
|
D(!1);
|
|
202
|
-
}, []),
|
|
190
|
+
}, []), xe = p((e) => {
|
|
203
191
|
G(e);
|
|
204
|
-
}, [G]),
|
|
192
|
+
}, [G]), Se = p(async () => {
|
|
205
193
|
if (!U || !f) return;
|
|
206
194
|
let e = await R({
|
|
207
195
|
dashboardId: f,
|
|
@@ -225,7 +213,7 @@ var y = f(function() {
|
|
|
225
213
|
R,
|
|
226
214
|
G,
|
|
227
215
|
y
|
|
228
|
-
]),
|
|
216
|
+
]), Ce = p(async (e, t) => {
|
|
229
217
|
U && await z({
|
|
230
218
|
id: e,
|
|
231
219
|
name: t
|
|
@@ -240,7 +228,7 @@ var y = f(function() {
|
|
|
240
228
|
U,
|
|
241
229
|
H,
|
|
242
230
|
z
|
|
243
|
-
]),
|
|
231
|
+
]), we = p(async (e) => {
|
|
244
232
|
if (!U || !f) return;
|
|
245
233
|
let t = U.pages.find((t) => t.id === e);
|
|
246
234
|
if (!t) return;
|
|
@@ -266,7 +254,7 @@ var y = f(function() {
|
|
|
266
254
|
R,
|
|
267
255
|
G,
|
|
268
256
|
y
|
|
269
|
-
]),
|
|
257
|
+
]), Te = p(async (e) => {
|
|
270
258
|
if (!(!U || U.pages.length <= 1) && await B(e)) {
|
|
271
259
|
let t = U.pages.filter((t) => t.id !== e).map((e, t) => ({
|
|
272
260
|
...e,
|
|
@@ -285,7 +273,7 @@ var y = f(function() {
|
|
|
285
273
|
W,
|
|
286
274
|
B,
|
|
287
275
|
G
|
|
288
|
-
]),
|
|
276
|
+
]), Ee = p(async (e) => {
|
|
289
277
|
!U || !f || (H({
|
|
290
278
|
...U,
|
|
291
279
|
pages: e.map((e, t) => ({
|
|
@@ -299,10 +287,10 @@ var y = f(function() {
|
|
|
299
287
|
H,
|
|
300
288
|
V
|
|
301
289
|
]);
|
|
302
|
-
return
|
|
290
|
+
return x ? /* @__PURE__ */ g("div", {
|
|
303
291
|
className: "flex items-center justify-center h-full",
|
|
304
292
|
children: /* @__PURE__ */ g("div", { className: "animate-spin w-8 h-8 border-4 border-action-primary-bg border-t-transparent rounded-full" })
|
|
305
|
-
}) :
|
|
293
|
+
}) : pe ? M ? /* @__PURE__ */ g("div", {
|
|
306
294
|
className: "flex h-full flex-col items-center justify-center p-6",
|
|
307
295
|
children: /* @__PURE__ */ g(i, {
|
|
308
296
|
headingLevel: 2,
|
|
@@ -314,7 +302,7 @@ var y = f(function() {
|
|
|
314
302
|
}),
|
|
315
303
|
className: "w-full max-w-md",
|
|
316
304
|
"data-testid": "dashboard-builder-error",
|
|
317
|
-
actions: /* @__PURE__ */ g(
|
|
305
|
+
actions: /* @__PURE__ */ g(le, {
|
|
318
306
|
size: "sm",
|
|
319
307
|
onClick: () => v("/dashboards"),
|
|
320
308
|
children: y("bigconsole.dashboards.builder.actions.backToDashboards", "Back to Dashboards")
|
|
@@ -331,7 +319,7 @@ var y = f(function() {
|
|
|
331
319
|
}) : /* @__PURE__ */ _(re, {
|
|
332
320
|
topbar: /* @__PURE__ */ g(ne, {
|
|
333
321
|
title: U.title || y("bigconsole.dashboards.builder.header.untitledDashboard", "Untitled dashboard"),
|
|
334
|
-
onBack:
|
|
322
|
+
onBack: ve,
|
|
335
323
|
actions: /* @__PURE__ */ _("div", {
|
|
336
324
|
className: "flex items-center gap-2",
|
|
337
325
|
children: [T ? /* @__PURE__ */ g("span", {
|
|
@@ -348,42 +336,42 @@ var y = f(function() {
|
|
|
348
336
|
})
|
|
349
337
|
}),
|
|
350
338
|
children: [
|
|
351
|
-
/* @__PURE__ */ g(te, { canvas: /* @__PURE__ */ g(
|
|
339
|
+
/* @__PURE__ */ g(te, { canvas: /* @__PURE__ */ g(u, {
|
|
352
340
|
dashboardId: U.id,
|
|
353
341
|
pageId: W || U.pages?.[0]?.id,
|
|
354
342
|
title: U.title,
|
|
355
|
-
onPaste:
|
|
356
|
-
onSave:
|
|
343
|
+
onPaste: Q,
|
|
344
|
+
onSave: me ? $ : void 0,
|
|
357
345
|
isSaving: C,
|
|
358
|
-
onExport:
|
|
346
|
+
onExport: he ? ye : void 0,
|
|
359
347
|
pages: U.pages.map((e) => ({
|
|
360
348
|
id: e.id,
|
|
361
349
|
name: e.title || y("bigconsole.dashboards.builder.actions.newPageName", "Page {{count}}", { count: (e.index ?? 0) + 1 }),
|
|
362
350
|
order: e.index ?? 0
|
|
363
351
|
})),
|
|
364
352
|
activePageId: W || U.pages?.[0]?.id,
|
|
365
|
-
onPageChange:
|
|
366
|
-
onPageAdd:
|
|
367
|
-
onPageRename:
|
|
368
|
-
onPageDuplicate:
|
|
369
|
-
onPageDelete:
|
|
370
|
-
onPagesReorder:
|
|
353
|
+
onPageChange: xe,
|
|
354
|
+
onPageAdd: Se,
|
|
355
|
+
onPageRename: Ce,
|
|
356
|
+
onPageDuplicate: we,
|
|
357
|
+
onPageDelete: Te,
|
|
358
|
+
onPagesReorder: Ee,
|
|
371
359
|
showPageTabs: !0
|
|
372
360
|
}) }),
|
|
373
|
-
/* @__PURE__ */ g(
|
|
374
|
-
isOpen:
|
|
361
|
+
/* @__PURE__ */ g(d, {
|
|
362
|
+
isOpen: ge,
|
|
375
363
|
dashboardId: U.id,
|
|
376
364
|
dashboardName: U.title,
|
|
377
|
-
onClose:
|
|
365
|
+
onClose: be
|
|
378
366
|
}),
|
|
379
|
-
/* @__PURE__ */ g(
|
|
380
|
-
isOpen:
|
|
367
|
+
/* @__PURE__ */ g(ae, {
|
|
368
|
+
isOpen: _e,
|
|
381
369
|
onClose: () => O(!1),
|
|
382
370
|
dashboardId: U.id,
|
|
383
371
|
pageId: W || U.pages?.[0]?.id || ""
|
|
384
372
|
})
|
|
385
373
|
]
|
|
386
|
-
}) : /* @__PURE__ */ g(
|
|
374
|
+
}) : /* @__PURE__ */ g(se, {
|
|
387
375
|
title: y("bigconsole.dashboards.builder.errors.accessDeniedTitle", "Access Denied"),
|
|
388
376
|
description: y("bigconsole.dashboards.builder.errors.accessDeniedDescription", "You don't have permission to view this dashboard.")
|
|
389
377
|
});
|