@burdenoff/microfe-bigconsole 2026.805.2 → 2026.805.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +109 -113
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js.map +1 -1
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +115 -113
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +71 -62
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +90 -89
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +56 -54
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +126 -125
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +151 -150
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +77 -76
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js.map +1 -1
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +97 -96
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +172 -191
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +75 -83
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +151 -154
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +181 -190
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js.map +1 -1
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +110 -108
- package/dist/bigconsole/components/dashboard/WidgetPalette.js.map +1 -1
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +102 -103
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +36 -41
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +38 -37
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +113 -117
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +182 -197
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +166 -168
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/DataSinkSelector.js +87 -86
- package/dist/bigconsole/components/parser/DataSinkSelector.js.map +1 -1
- package/dist/bigconsole/components/parser/ImportParserDialog.js +196 -211
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +130 -128
- package/dist/bigconsole/components/parser/ParserSelector.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +66 -63
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js.map +1 -1
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +95 -91
- package/dist/bigconsole/components/preview/AiPreviewPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +222 -215
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +149 -145
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +504 -470
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +44 -47
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +143 -142
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +101 -88
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js.map +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +135 -134
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js.map +1 -1
- package/dist/bigconsole/components/widgets/form/FormWidget.js +167 -159
- package/dist/bigconsole/components/widgets/form/FormWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +69 -68
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +64 -72
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +60 -59
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/list/ListConfig.js +57 -56
- package/dist/bigconsole/components/widgets/list/ListConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +70 -69
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +35 -34
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js.map +1 -1
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +20 -19
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js.map +1 -1
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +178 -177
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js.map +1 -1
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +76 -75
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.js +183 -168
- package/dist/bigconsole/components/widgets/table/TableConfig.js.map +1 -1
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +187 -180
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js.map +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +40 -38
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js.map +1 -1
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +150 -148
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
- package/dist/bigconsole/pages/DashboardBuilderPage.js +181 -176
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +196 -192
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +223 -219
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +167 -170
- package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +204 -189
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +175 -169
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSourcesPage.js +8 -7
- package/dist/bigconsole/pages/DataSourcesPage.js.map +1 -1
- package/dist/bigconsole/pages/InsightsPage.js +238 -208
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +464 -412
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +92 -90
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +221 -194
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +181 -184
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +128 -127
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +177 -172
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +121 -83
- package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowViewPage.js +199 -193
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +129 -128
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +111 -109
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +127 -126
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +103 -103
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js.map +1 -1
- package/package.json +2 -1
|
@@ -2,29 +2,21 @@ import { BIGCONSOLE_PERMISSIONS as e } from "../../../../constants/permissions.j
|
|
|
2
2
|
import t, { themeChoiceFromPolicy as n } from "../../../hooks/useDashboardEmbedPolicy.js";
|
|
3
3
|
import { useEffect as r, useMemo as i, useRef as a, useState as o } from "react";
|
|
4
4
|
import { usePermissions as s } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
5
|
-
import {
|
|
5
|
+
import { useI18n as c } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
6
|
+
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
6
7
|
//#region src/bigconsole/components/dashboard/ShareDialog/EmbedTab.tsx
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
value: "dark",
|
|
14
|
-
label: "Dark"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
value: "auto",
|
|
18
|
-
label: "Auto (match viewer)"
|
|
19
|
-
}
|
|
8
|
+
var f = [
|
|
9
|
+
"light",
|
|
10
|
+
"dark",
|
|
11
|
+
"auto"
|
|
20
12
|
];
|
|
21
|
-
function
|
|
13
|
+
function p(e, t) {
|
|
22
14
|
return t === "light" ? e : e.replace(/(?<=\s)src="([^"]*)"/, (e, n) => {
|
|
23
15
|
let r = n.indexOf("#"), i = r === -1 ? n : n.slice(0, r), a = r === -1 ? "" : n.slice(r);
|
|
24
16
|
return `src="${i}${i.includes("?") ? "&" : "?"}theme=${t}${a}"`;
|
|
25
17
|
});
|
|
26
18
|
}
|
|
27
|
-
function
|
|
19
|
+
function m(e) {
|
|
28
20
|
let t = e.trim();
|
|
29
21
|
if (!t) return null;
|
|
30
22
|
try {
|
|
@@ -34,60 +26,60 @@ function te(e) {
|
|
|
34
26
|
return null;
|
|
35
27
|
}
|
|
36
28
|
}
|
|
37
|
-
function
|
|
38
|
-
let { policy:
|
|
29
|
+
function h({ dashboardId: h, colors: g }) {
|
|
30
|
+
let { t: _ } = c(), { policy: v, secret: y, loading: b, error: x, fetchPolicy: S, publishToWeb: C, applyPresentation: w, setAllowedOrigins: T, rotateKey: E, unpublish: ee } = t(), { hasPermission: te } = s(), D = te(e.DASHBOARD_MANAGE_EMBED), [O, k] = o(""), [A, j] = o([]), [M, N] = o(!1), [ne, P] = o(!1), [F, I] = o("light"), [L, R] = o(!1), [z, B] = o(!0), [V, H] = o(!1), [U, W] = o(null), G = a(null), K = a(null);
|
|
39
31
|
r(() => {
|
|
40
|
-
|
|
41
|
-
}, [
|
|
42
|
-
!
|
|
43
|
-
}, [
|
|
44
|
-
|
|
32
|
+
h && S(h);
|
|
33
|
+
}, [h, S]), r(() => {
|
|
34
|
+
!v || G.current === v.id || (G.current = v.id, I(n(v.presentationTheme)), R(v.showDashboardTitle), B(v.showBrandingFooter));
|
|
35
|
+
}, [v]), r(() => () => {
|
|
36
|
+
K.current && clearTimeout(K.current);
|
|
45
37
|
}, []);
|
|
46
|
-
let
|
|
47
|
-
|
|
48
|
-
let e =
|
|
38
|
+
let q = v?.status === "ACTIVE", J = q ? v?.allowedParentOrigins ?? [] : A, Y = i(() => y?.iframeSnippet ? p(y.iframeSnippet, F) : null, [y, F]), X = () => {
|
|
39
|
+
W(null);
|
|
40
|
+
let e = m(O);
|
|
49
41
|
if (!e) {
|
|
50
|
-
|
|
42
|
+
W(_("bigconsole.dashboards.embed.error.invalidOrigin", "Enter a valid https origin, e.g. https://example.com"));
|
|
51
43
|
return;
|
|
52
44
|
}
|
|
53
|
-
if (
|
|
54
|
-
|
|
45
|
+
if (J.includes(e)) {
|
|
46
|
+
k("");
|
|
55
47
|
return;
|
|
56
48
|
}
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
if (
|
|
62
|
-
|
|
49
|
+
q && v ? T(v.id, [...J, e]) : j((t) => [...t, e]), k("");
|
|
50
|
+
}, re = (e) => {
|
|
51
|
+
q && v ? T(v.id, J.filter((t) => t !== e)) : j((t) => t.filter((t) => t !== e));
|
|
52
|
+
}, ie = async () => {
|
|
53
|
+
if (W(null), A.length === 0) {
|
|
54
|
+
W(_("bigconsole.dashboards.embed.error.noDomains", "Add at least one allowed website domain before publishing."));
|
|
63
55
|
return;
|
|
64
56
|
}
|
|
65
|
-
if (!
|
|
66
|
-
|
|
57
|
+
if (!M) {
|
|
58
|
+
W(_("bigconsole.dashboards.embed.error.notAttested", "Please confirm this dashboard is safe to be public."));
|
|
67
59
|
return;
|
|
68
60
|
}
|
|
69
|
-
await
|
|
70
|
-
theme:
|
|
71
|
-
showTitle:
|
|
72
|
-
showBranding:
|
|
61
|
+
await C(h, A, !0, {
|
|
62
|
+
theme: F,
|
|
63
|
+
showTitle: L,
|
|
64
|
+
showBranding: z
|
|
73
65
|
});
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
theme:
|
|
77
|
-
showTitle:
|
|
78
|
-
showBranding:
|
|
79
|
-
}) && (
|
|
80
|
-
},
|
|
66
|
+
}, ae = async () => {
|
|
67
|
+
v && (W(null), await w(v.id, {
|
|
68
|
+
theme: F,
|
|
69
|
+
showTitle: L,
|
|
70
|
+
showBranding: z
|
|
71
|
+
}) && (H(!0), K.current && clearTimeout(K.current), K.current = setTimeout(() => H(!1), 1500)));
|
|
72
|
+
}, oe = async (e) => {
|
|
81
73
|
try {
|
|
82
|
-
await navigator.clipboard.writeText(e),
|
|
74
|
+
await navigator.clipboard.writeText(e), P(!0), setTimeout(() => P(!1), 1500);
|
|
83
75
|
} catch {
|
|
84
|
-
|
|
76
|
+
W(_("bigconsole.dashboards.embed.error.copyFailed", "Could not copy — select and copy manually."));
|
|
85
77
|
}
|
|
86
|
-
},
|
|
78
|
+
}, se = {
|
|
87
79
|
padding: "8px 14px",
|
|
88
80
|
borderRadius: "8px",
|
|
89
81
|
border: "none",
|
|
90
|
-
background:
|
|
82
|
+
background: g.actionPrimaryBg,
|
|
91
83
|
color: "#fff",
|
|
92
84
|
fontSize: "13px",
|
|
93
85
|
fontWeight: 600,
|
|
@@ -95,25 +87,25 @@ function f({ dashboardId: f, colors: p }) {
|
|
|
95
87
|
}, Z = {
|
|
96
88
|
padding: "8px 14px",
|
|
97
89
|
borderRadius: "8px",
|
|
98
|
-
border: `1px solid ${
|
|
90
|
+
border: `1px solid ${g.borderDefault}`,
|
|
99
91
|
background: "transparent",
|
|
100
|
-
color:
|
|
92
|
+
color: g.textPrimary,
|
|
101
93
|
fontSize: "13px",
|
|
102
94
|
cursor: "pointer"
|
|
103
|
-
},
|
|
95
|
+
}, ce = {
|
|
104
96
|
flex: 1,
|
|
105
97
|
padding: "8px 10px",
|
|
106
98
|
borderRadius: "8px",
|
|
107
|
-
border: `1px solid ${
|
|
108
|
-
background:
|
|
109
|
-
color:
|
|
99
|
+
border: `1px solid ${g.borderDefault}`,
|
|
100
|
+
background: g.bgSecondary,
|
|
101
|
+
color: g.textPrimary,
|
|
110
102
|
fontSize: "13px"
|
|
111
|
-
},
|
|
103
|
+
}, le = {
|
|
112
104
|
padding: "4px 8px",
|
|
113
105
|
borderRadius: "6px",
|
|
114
|
-
border: `1px solid ${
|
|
115
|
-
background:
|
|
116
|
-
color:
|
|
106
|
+
border: `1px solid ${g.borderDefault}`,
|
|
107
|
+
background: g.bgSecondary,
|
|
108
|
+
color: g.textPrimary,
|
|
117
109
|
fontSize: "12px",
|
|
118
110
|
cursor: "pointer"
|
|
119
111
|
}, Q = {
|
|
@@ -121,350 +113,349 @@ function f({ dashboardId: f, colors: p }) {
|
|
|
121
113
|
gap: "8px",
|
|
122
114
|
alignItems: "flex-start",
|
|
123
115
|
fontSize: "12px",
|
|
124
|
-
color:
|
|
125
|
-
},
|
|
116
|
+
color: g.textSecondary
|
|
117
|
+
}, ue = i(() => f.map((e) => ({
|
|
118
|
+
value: e,
|
|
119
|
+
label: e === "light" ? _("bigconsole.dashboards.embed.theme.option.light", "Light") : e === "dark" ? _("bigconsole.dashboards.embed.theme.option.dark", "Dark") : _("bigconsole.dashboards.embed.theme.option.auto", "Auto (match viewer)")
|
|
120
|
+
})), [_]), $ = /* @__PURE__ */ d("div", {
|
|
126
121
|
style: {
|
|
127
122
|
display: "flex",
|
|
128
123
|
flexDirection: "column",
|
|
129
124
|
gap: "10px"
|
|
130
125
|
},
|
|
131
126
|
children: [
|
|
132
|
-
/* @__PURE__ */
|
|
127
|
+
/* @__PURE__ */ d("label", {
|
|
133
128
|
style: {
|
|
134
129
|
display: "flex",
|
|
135
130
|
alignItems: "center",
|
|
136
131
|
justifyContent: "space-between",
|
|
137
132
|
gap: "8px"
|
|
138
133
|
},
|
|
139
|
-
children: [/* @__PURE__ */
|
|
134
|
+
children: [/* @__PURE__ */ u("span", {
|
|
140
135
|
style: {
|
|
141
136
|
fontSize: "12px",
|
|
142
|
-
color:
|
|
137
|
+
color: g.textSecondary
|
|
143
138
|
},
|
|
144
|
-
children: "Theme"
|
|
145
|
-
}), /* @__PURE__ */
|
|
146
|
-
value:
|
|
139
|
+
children: _("bigconsole.dashboards.embed.theme.label", "Theme")
|
|
140
|
+
}), /* @__PURE__ */ u("select", {
|
|
141
|
+
value: F,
|
|
147
142
|
onChange: (e) => {
|
|
148
143
|
let t = e.target.value;
|
|
149
|
-
(t === "light" || t === "dark" || t === "auto") &&
|
|
144
|
+
(t === "light" || t === "dark" || t === "auto") && I(t);
|
|
150
145
|
},
|
|
151
|
-
style:
|
|
152
|
-
children:
|
|
146
|
+
style: le,
|
|
147
|
+
children: ue.map((e) => /* @__PURE__ */ u("option", {
|
|
153
148
|
value: e.value,
|
|
154
149
|
children: e.label
|
|
155
150
|
}, e.value))
|
|
156
151
|
})]
|
|
157
152
|
}),
|
|
158
|
-
/* @__PURE__ */
|
|
153
|
+
/* @__PURE__ */ d("label", {
|
|
159
154
|
style: Q,
|
|
160
|
-
children: [/* @__PURE__ */
|
|
155
|
+
children: [/* @__PURE__ */ u("input", {
|
|
161
156
|
type: "checkbox",
|
|
162
|
-
checked:
|
|
163
|
-
onChange: (e) =>
|
|
164
|
-
}), /* @__PURE__ */
|
|
157
|
+
checked: L,
|
|
158
|
+
onChange: (e) => R(e.target.checked)
|
|
159
|
+
}), /* @__PURE__ */ u("span", { children: _("bigconsole.dashboards.embed.presentation.showTitle", "Show the dashboard title as a header") })]
|
|
165
160
|
}),
|
|
166
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ d("label", {
|
|
167
162
|
style: Q,
|
|
168
|
-
children: [/* @__PURE__ */
|
|
163
|
+
children: [/* @__PURE__ */ u("input", {
|
|
169
164
|
type: "checkbox",
|
|
170
|
-
checked:
|
|
171
|
-
onChange: (e) =>
|
|
172
|
-
}), /* @__PURE__ */
|
|
165
|
+
checked: z,
|
|
166
|
+
onChange: (e) => B(e.target.checked)
|
|
167
|
+
}), /* @__PURE__ */ u("span", { children: _("bigconsole.dashboards.embed.presentation.showBranding", "Show a subtle “Powered by BigConsole” footer") })]
|
|
173
168
|
})
|
|
174
169
|
]
|
|
175
170
|
});
|
|
176
|
-
return /* @__PURE__ */
|
|
171
|
+
return /* @__PURE__ */ d("div", {
|
|
177
172
|
style: { padding: "20px 24px" },
|
|
178
173
|
children: [
|
|
179
|
-
/* @__PURE__ */
|
|
174
|
+
/* @__PURE__ */ d("div", {
|
|
180
175
|
style: {
|
|
181
176
|
display: "flex",
|
|
182
177
|
alignItems: "center",
|
|
183
178
|
justifyContent: "space-between",
|
|
184
179
|
padding: "12px 14px",
|
|
185
180
|
borderRadius: "10px",
|
|
186
|
-
background:
|
|
181
|
+
background: g.bgSecondary,
|
|
187
182
|
marginBottom: "16px"
|
|
188
183
|
},
|
|
189
|
-
children: [/* @__PURE__ */
|
|
184
|
+
children: [/* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("div", {
|
|
190
185
|
style: {
|
|
191
186
|
fontSize: "14px",
|
|
192
187
|
fontWeight: 600,
|
|
193
|
-
color:
|
|
188
|
+
color: g.textPrimary
|
|
194
189
|
},
|
|
195
|
-
children: "Publish to the web"
|
|
196
|
-
}), /* @__PURE__ */
|
|
190
|
+
children: _("bigconsole.dashboards.embed.heading", "Publish to the web")
|
|
191
|
+
}), /* @__PURE__ */ u("div", {
|
|
197
192
|
style: {
|
|
198
193
|
fontSize: "12px",
|
|
199
|
-
color:
|
|
194
|
+
color: g.textSecondary,
|
|
200
195
|
marginTop: "2px"
|
|
201
196
|
},
|
|
202
|
-
children:
|
|
203
|
-
})] }), /* @__PURE__ */
|
|
197
|
+
children: q ? _("bigconsole.dashboards.embed.status.liveDescription", "This dashboard is live. Anyone with the link on an allowed website sees its live data.") : _("bigconsole.dashboards.embed.status.privateDescription", "Embed this dashboard on your website. Viewers see live data — no login required.")
|
|
198
|
+
})] }), /* @__PURE__ */ u("span", {
|
|
204
199
|
style: {
|
|
205
200
|
fontSize: "11px",
|
|
206
201
|
fontWeight: 700,
|
|
207
202
|
padding: "3px 8px",
|
|
208
203
|
borderRadius: "999px",
|
|
209
204
|
color: "#fff",
|
|
210
|
-
background:
|
|
205
|
+
background: q ? g.statusSuccessBg : g.textTertiary
|
|
211
206
|
},
|
|
212
|
-
children:
|
|
207
|
+
children: q ? _("bigconsole.dashboards.embed.badge.published", "PUBLISHED") : _("bigconsole.dashboards.embed.badge.private", "PRIVATE")
|
|
213
208
|
})]
|
|
214
209
|
}),
|
|
215
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ d("div", {
|
|
216
211
|
style: { marginBottom: "16px" },
|
|
217
212
|
children: [
|
|
218
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ u("div", {
|
|
219
214
|
style: {
|
|
220
215
|
fontSize: "12px",
|
|
221
216
|
fontWeight: 600,
|
|
222
|
-
color:
|
|
217
|
+
color: g.textSecondary,
|
|
223
218
|
marginBottom: "6px"
|
|
224
219
|
},
|
|
225
|
-
children: "Allowed website domains"
|
|
220
|
+
children: _("bigconsole.dashboards.embed.domains.label", "Allowed website domains")
|
|
226
221
|
}),
|
|
227
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ d("div", {
|
|
228
223
|
style: {
|
|
229
224
|
display: "flex",
|
|
230
225
|
gap: "8px",
|
|
231
226
|
marginBottom: "8px"
|
|
232
227
|
},
|
|
233
|
-
children: [/* @__PURE__ */
|
|
234
|
-
style:
|
|
235
|
-
placeholder: "https://yoursite.com",
|
|
236
|
-
value:
|
|
237
|
-
onChange: (e) =>
|
|
228
|
+
children: [/* @__PURE__ */ u("input", {
|
|
229
|
+
style: ce,
|
|
230
|
+
placeholder: _("bigconsole.dashboards.embed.domains.placeholder", "https://yoursite.com"),
|
|
231
|
+
value: O,
|
|
232
|
+
onChange: (e) => k(e.target.value),
|
|
238
233
|
onKeyDown: (e) => {
|
|
239
|
-
e.key === "Enter" &&
|
|
234
|
+
e.key === "Enter" && X();
|
|
240
235
|
}
|
|
241
|
-
}), /* @__PURE__ */
|
|
236
|
+
}), /* @__PURE__ */ u("button", {
|
|
242
237
|
style: Z,
|
|
243
|
-
onClick:
|
|
238
|
+
onClick: X,
|
|
244
239
|
type: "button",
|
|
245
|
-
disabled: !
|
|
246
|
-
children: "Add"
|
|
240
|
+
disabled: !D,
|
|
241
|
+
children: _("bigconsole.dashboards.embed.domains.add", "Add")
|
|
247
242
|
})]
|
|
248
243
|
}),
|
|
249
|
-
|
|
244
|
+
J.length === 0 ? /* @__PURE__ */ u("div", {
|
|
250
245
|
style: {
|
|
251
246
|
fontSize: "12px",
|
|
252
|
-
color:
|
|
247
|
+
color: g.textTertiary
|
|
253
248
|
},
|
|
254
|
-
children: "No domains yet. Only listed https domains may frame this dashboard."
|
|
255
|
-
}) : /* @__PURE__ */
|
|
249
|
+
children: _("bigconsole.dashboards.embed.domains.empty", "No domains yet. Only listed https domains may frame this dashboard.")
|
|
250
|
+
}) : /* @__PURE__ */ u("div", {
|
|
256
251
|
style: {
|
|
257
252
|
display: "flex",
|
|
258
253
|
flexDirection: "column",
|
|
259
254
|
gap: "6px"
|
|
260
255
|
},
|
|
261
|
-
children:
|
|
256
|
+
children: J.map((e) => /* @__PURE__ */ d("div", {
|
|
262
257
|
style: {
|
|
263
258
|
display: "flex",
|
|
264
259
|
alignItems: "center",
|
|
265
260
|
justifyContent: "space-between",
|
|
266
261
|
padding: "6px 10px",
|
|
267
262
|
borderRadius: "8px",
|
|
268
|
-
background:
|
|
263
|
+
background: g.bgTertiary
|
|
269
264
|
},
|
|
270
|
-
children: [/* @__PURE__ */
|
|
265
|
+
children: [/* @__PURE__ */ u("span", {
|
|
271
266
|
style: {
|
|
272
267
|
fontSize: "13px",
|
|
273
|
-
color:
|
|
268
|
+
color: g.textPrimary
|
|
274
269
|
},
|
|
275
270
|
children: e
|
|
276
|
-
}),
|
|
271
|
+
}), D && /* @__PURE__ */ u("button", {
|
|
277
272
|
style: {
|
|
278
273
|
...Z,
|
|
279
274
|
padding: "2px 8px",
|
|
280
|
-
color:
|
|
275
|
+
color: g.statusErrorText
|
|
281
276
|
},
|
|
282
|
-
onClick: () =>
|
|
277
|
+
onClick: () => re(e),
|
|
283
278
|
type: "button",
|
|
284
|
-
children: "Remove"
|
|
279
|
+
children: _("bigconsole.dashboards.embed.domains.remove", "Remove")
|
|
285
280
|
})]
|
|
286
281
|
}, e))
|
|
287
282
|
})
|
|
288
283
|
]
|
|
289
284
|
}),
|
|
290
|
-
!
|
|
285
|
+
!q && /* @__PURE__ */ d("div", {
|
|
291
286
|
style: { marginBottom: "16px" },
|
|
292
|
-
children: [/* @__PURE__ */
|
|
287
|
+
children: [/* @__PURE__ */ u("div", {
|
|
293
288
|
style: {
|
|
294
289
|
fontSize: "12px",
|
|
295
290
|
fontWeight: 600,
|
|
296
|
-
color:
|
|
291
|
+
color: g.textSecondary,
|
|
297
292
|
marginBottom: "8px"
|
|
298
293
|
},
|
|
299
|
-
children: "Presentation"
|
|
294
|
+
children: _("bigconsole.dashboards.embed.presentation.heading", "Presentation")
|
|
300
295
|
}), $]
|
|
301
296
|
}),
|
|
302
|
-
!
|
|
297
|
+
!q && /* @__PURE__ */ d("div", {
|
|
303
298
|
style: { marginBottom: "8px" },
|
|
304
|
-
children: [/* @__PURE__ */
|
|
299
|
+
children: [/* @__PURE__ */ d("label", {
|
|
305
300
|
style: {
|
|
306
301
|
display: "flex",
|
|
307
302
|
gap: "8px",
|
|
308
303
|
alignItems: "flex-start",
|
|
309
304
|
marginBottom: "12px"
|
|
310
305
|
},
|
|
311
|
-
children: [/* @__PURE__ */
|
|
306
|
+
children: [/* @__PURE__ */ u("input", {
|
|
312
307
|
type: "checkbox",
|
|
313
|
-
checked:
|
|
314
|
-
onChange: (e) =>
|
|
315
|
-
}), /* @__PURE__ */
|
|
308
|
+
checked: M,
|
|
309
|
+
onChange: (e) => N(e.target.checked)
|
|
310
|
+
}), /* @__PURE__ */ u("span", {
|
|
316
311
|
style: {
|
|
317
312
|
fontSize: "12px",
|
|
318
|
-
color:
|
|
313
|
+
color: g.textSecondary
|
|
319
314
|
},
|
|
320
|
-
children: "I understand this makes the dashboard
|
|
315
|
+
children: _("bigconsole.dashboards.embed.attestation", "I understand this makes the dashboard’s live data visible to anyone with the link, and I confirm it is safe to be public.")
|
|
321
316
|
})]
|
|
322
|
-
}), /* @__PURE__ */
|
|
323
|
-
style:
|
|
324
|
-
onClick:
|
|
325
|
-
disabled:
|
|
317
|
+
}), /* @__PURE__ */ u("button", {
|
|
318
|
+
style: se,
|
|
319
|
+
onClick: ie,
|
|
320
|
+
disabled: b || !D,
|
|
326
321
|
type: "button",
|
|
327
|
-
children:
|
|
322
|
+
children: b ? _("bigconsole.dashboards.embed.publishing", "Publishing…") : _("bigconsole.dashboards.embed.publish", "Publish to web")
|
|
328
323
|
})]
|
|
329
324
|
}),
|
|
330
|
-
|
|
331
|
-
|
|
325
|
+
q && /* @__PURE__ */ d(l, { children: [
|
|
326
|
+
Y ? /* @__PURE__ */ d("div", {
|
|
332
327
|
style: { marginBottom: "16px" },
|
|
333
328
|
children: [
|
|
334
|
-
/* @__PURE__ */
|
|
329
|
+
/* @__PURE__ */ u("div", {
|
|
335
330
|
style: { marginBottom: "6px" },
|
|
336
|
-
children: /* @__PURE__ */
|
|
331
|
+
children: /* @__PURE__ */ u("span", {
|
|
337
332
|
style: {
|
|
338
333
|
fontSize: "12px",
|
|
339
334
|
fontWeight: 600,
|
|
340
|
-
color:
|
|
335
|
+
color: g.textSecondary
|
|
341
336
|
},
|
|
342
|
-
children: "Embed snippet"
|
|
337
|
+
children: _("bigconsole.dashboards.embed.snippet.label", "Embed snippet")
|
|
343
338
|
})
|
|
344
339
|
}),
|
|
345
|
-
/* @__PURE__ */
|
|
340
|
+
/* @__PURE__ */ u("textarea", {
|
|
346
341
|
readOnly: !0,
|
|
347
|
-
value:
|
|
342
|
+
value: Y,
|
|
348
343
|
style: {
|
|
349
344
|
width: "100%",
|
|
350
345
|
minHeight: "96px",
|
|
351
346
|
padding: "10px",
|
|
352
347
|
borderRadius: "8px",
|
|
353
|
-
border: `1px solid ${
|
|
354
|
-
background:
|
|
355
|
-
color:
|
|
348
|
+
border: `1px solid ${g.borderDefault}`,
|
|
349
|
+
background: g.bgSecondary,
|
|
350
|
+
color: g.textPrimary,
|
|
356
351
|
fontFamily: "monospace",
|
|
357
352
|
fontSize: "12px",
|
|
358
353
|
resize: "vertical"
|
|
359
354
|
}
|
|
360
355
|
}),
|
|
361
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ u("button", {
|
|
362
357
|
style: {
|
|
363
358
|
...Z,
|
|
364
359
|
marginTop: "8px"
|
|
365
360
|
},
|
|
366
|
-
onClick: () =>
|
|
361
|
+
onClick: () => oe(Y),
|
|
367
362
|
type: "button",
|
|
368
|
-
children:
|
|
363
|
+
children: ne ? _("bigconsole.dashboards.embed.snippet.copied", "Copied ✓") : _("bigconsole.dashboards.embed.snippet.copy", "Copy snippet")
|
|
369
364
|
})
|
|
370
365
|
]
|
|
371
366
|
}) : /* @__PURE__ */ u("div", {
|
|
372
367
|
style: {
|
|
373
368
|
fontSize: "12px",
|
|
374
|
-
color:
|
|
375
|
-
background:
|
|
369
|
+
color: g.textSecondary,
|
|
370
|
+
background: g.bgSecondary,
|
|
376
371
|
borderRadius: "8px",
|
|
377
372
|
padding: "10px 12px",
|
|
378
373
|
marginBottom: "16px"
|
|
379
374
|
},
|
|
380
|
-
children:
|
|
381
|
-
"The embed link is already active. For security the snippet (which contains the secret key) is only shown once at publish time — use ",
|
|
382
|
-
/* @__PURE__ */ l("strong", { children: "Rotate link" }),
|
|
383
|
-
" to generate a fresh snippet."
|
|
384
|
-
]
|
|
375
|
+
children: _("bigconsole.dashboards.embed.snippet.alreadyActive", "The embed link is already active. For security the snippet (which contains the secret key) is only shown once at publish time — use {{rotateLabel}} to generate a fresh snippet.", { rotateLabel: _("bigconsole.dashboards.embed.rotate", "Rotate link") })
|
|
385
376
|
}),
|
|
386
|
-
/* @__PURE__ */
|
|
377
|
+
/* @__PURE__ */ d("div", {
|
|
387
378
|
style: { marginBottom: "16px" },
|
|
388
379
|
children: [
|
|
389
|
-
/* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ u("div", {
|
|
390
381
|
style: {
|
|
391
382
|
fontSize: "12px",
|
|
392
383
|
fontWeight: 600,
|
|
393
|
-
color:
|
|
384
|
+
color: g.textSecondary,
|
|
394
385
|
marginBottom: "8px"
|
|
395
386
|
},
|
|
396
|
-
children: "Presentation"
|
|
387
|
+
children: _("bigconsole.dashboards.embed.presentation.heading", "Presentation")
|
|
397
388
|
}),
|
|
398
389
|
$,
|
|
399
|
-
/* @__PURE__ */
|
|
390
|
+
/* @__PURE__ */ d("div", {
|
|
400
391
|
style: {
|
|
401
392
|
display: "flex",
|
|
402
393
|
alignItems: "center",
|
|
403
394
|
gap: "10px",
|
|
404
395
|
marginTop: "10px"
|
|
405
396
|
},
|
|
406
|
-
children: [/* @__PURE__ */
|
|
397
|
+
children: [/* @__PURE__ */ u("button", {
|
|
407
398
|
style: Z,
|
|
408
|
-
onClick:
|
|
409
|
-
disabled:
|
|
399
|
+
onClick: ae,
|
|
400
|
+
disabled: b || !D,
|
|
410
401
|
type: "button",
|
|
411
|
-
children:
|
|
412
|
-
}),
|
|
402
|
+
children: b ? _("bigconsole.dashboards.embed.applying", "Applying…") : _("bigconsole.dashboards.embed.apply", "Apply changes")
|
|
403
|
+
}), V && /* @__PURE__ */ u("span", {
|
|
413
404
|
style: {
|
|
414
405
|
fontSize: "12px",
|
|
415
|
-
color:
|
|
406
|
+
color: g.textTertiary
|
|
416
407
|
},
|
|
417
|
-
children: "Updated ✓"
|
|
408
|
+
children: _("bigconsole.dashboards.embed.updated", "Updated ✓")
|
|
418
409
|
})]
|
|
419
410
|
}),
|
|
420
|
-
/* @__PURE__ */
|
|
411
|
+
/* @__PURE__ */ u("div", {
|
|
421
412
|
style: {
|
|
422
413
|
fontSize: "11px",
|
|
423
|
-
color:
|
|
414
|
+
color: g.textTertiary,
|
|
424
415
|
marginTop: "6px"
|
|
425
416
|
},
|
|
426
|
-
children: "Changes apply to live embeds within a few seconds — no re-publish needed, and the embed link stays the same."
|
|
417
|
+
children: _("bigconsole.dashboards.embed.presentation.applyHelp", "Changes apply to live embeds within a few seconds — no re-publish needed, and the embed link stays the same.")
|
|
427
418
|
})
|
|
428
419
|
]
|
|
429
420
|
}),
|
|
430
|
-
|
|
421
|
+
D && /* @__PURE__ */ d("div", {
|
|
431
422
|
style: {
|
|
432
423
|
display: "flex",
|
|
433
424
|
gap: "8px"
|
|
434
425
|
},
|
|
435
|
-
children: [/* @__PURE__ */
|
|
426
|
+
children: [/* @__PURE__ */ u("button", {
|
|
436
427
|
style: Z,
|
|
437
|
-
onClick: () =>
|
|
438
|
-
disabled:
|
|
428
|
+
onClick: () => v && E(v.id),
|
|
429
|
+
disabled: b,
|
|
439
430
|
type: "button",
|
|
440
|
-
children: "Rotate link"
|
|
441
|
-
}), /* @__PURE__ */
|
|
431
|
+
children: _("bigconsole.dashboards.embed.rotate", "Rotate link")
|
|
432
|
+
}), /* @__PURE__ */ u("button", {
|
|
442
433
|
style: {
|
|
443
434
|
...Z,
|
|
444
|
-
color:
|
|
445
|
-
borderColor:
|
|
435
|
+
color: g.statusErrorText,
|
|
436
|
+
borderColor: g.statusErrorText
|
|
446
437
|
},
|
|
447
438
|
onClick: () => {
|
|
448
|
-
|
|
439
|
+
v && window.confirm(_("bigconsole.dashboards.embed.unpublishConfirm", "Unpublish this dashboard? The embed will stop working immediately for anyone using the link.")) && ee(v.id);
|
|
449
440
|
},
|
|
450
|
-
disabled:
|
|
441
|
+
disabled: b,
|
|
451
442
|
type: "button",
|
|
452
|
-
children: "Unpublish"
|
|
443
|
+
children: _("bigconsole.dashboards.embed.unpublish", "Unpublish")
|
|
453
444
|
})]
|
|
454
445
|
})
|
|
455
446
|
] }),
|
|
456
|
-
(
|
|
447
|
+
(U || x) && /* @__PURE__ */ u("div", {
|
|
457
448
|
style: {
|
|
458
449
|
marginTop: "12px",
|
|
459
450
|
fontSize: "12px",
|
|
460
|
-
color:
|
|
451
|
+
color: g.statusErrorText
|
|
461
452
|
},
|
|
462
|
-
children:
|
|
453
|
+
children: U ?? x?.message
|
|
463
454
|
})
|
|
464
455
|
]
|
|
465
456
|
});
|
|
466
457
|
}
|
|
467
458
|
//#endregion
|
|
468
|
-
export {
|
|
459
|
+
export { h as default };
|
|
469
460
|
|
|
470
461
|
//# sourceMappingURL=EmbedTab.js.map
|