@burdenoff/microfe-bigconsole 2026.1123.7 → 2026.1124.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/dist/bigconsole/asof/AsOfControl.js +2 -2
- package/dist/bigconsole/components/dashboard/DashboardCommentsDrawer.js +107 -106
- package/dist/bigconsole/components/dashboard/DashboardGalleryCard.d.ts +34 -0
- package/dist/bigconsole/components/dashboard/DashboardGalleryCard.js +123 -0
- package/dist/bigconsole/components/dashboard/DashboardReviewDialog.js +1 -1
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +19 -35
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +119 -116
- package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +172 -170
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +210 -208
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +97 -97
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +92 -92
- package/dist/bigconsole/components/datasink/AlertRuleEditor.js +149 -149
- package/dist/bigconsole/components/datasink/AnomalyDetectorPanel.js +54 -54
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -37
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +4 -4
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +130 -129
- package/dist/bigconsole/components/datasink/SetupStateBadge.js +24 -33
- package/dist/bigconsole/components/datasink/SinkWorkflowLinkForm.js +38 -38
- package/dist/bigconsole/components/explore/CreateQueryWidget.js +57 -56
- package/dist/bigconsole/components/explore/SqlDraftEditor.js +140 -140
- package/dist/bigconsole/components/explore/VisualBuilder.js +85 -84
- package/dist/bigconsole/components/explore/queryAccess/GrantsPanel.js +168 -167
- package/dist/bigconsole/components/explore/queryAccess/QueryAccessAdmin.js +2 -2
- package/dist/bigconsole/components/explore/queryAccess/RelationEditor.js +118 -117
- package/dist/bigconsole/components/insights/BoardLintPanel.js +2 -2
- package/dist/bigconsole/components/insights/OutlierSpottingDialog.js +123 -123
- package/dist/bigconsole/components/kpi-change/KpiChangePanel.js +2 -2
- package/dist/bigconsole/components/narrative/NarrativePanel.js +1 -1
- package/dist/bigconsole/components/overview/DataHealthCard.js +3 -0
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +3 -0
- package/dist/bigconsole/components/parser/ParserStatusBadge.js +25 -28
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +23 -22
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +15 -26
- package/dist/bigconsole/components/reconcile/KpiReconcileDialog.js +24 -24
- package/dist/bigconsole/components/settings/WidgetCatalogSection.js +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +188 -187
- package/dist/bigconsole/components/widgets/FilterNotAppliedNotice.js +1 -1
- package/dist/bigconsole/components/widgets/UnsupportedDataSourceNotice.js +1 -1
- package/dist/bigconsole/components/widgets/WidgetCompareView.js +3 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.js +1 -1
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +45 -44
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +151 -147
- package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +48 -47
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +139 -138
- package/dist/bigconsole/components/widgets/form/FormWidget.js +149 -148
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +80 -77
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +58 -56
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +75 -73
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +86 -85
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +80 -77
- package/dist/bigconsole/components/widgets/retention/RetentionView.js +1 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.js +214 -211
- package/dist/bigconsole/components/widgets/table/TablePagination.js +59 -58
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +140 -138
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +74 -66
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +48 -48
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +28 -37
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +69 -69
- package/dist/bigconsole/hooks/useDashboardListQuery.d.ts +22 -0
- package/dist/bigconsole/hooks/useDashboardListQuery.js +39 -0
- package/dist/bigconsole/pages/AdminPage.js +147 -146
- package/dist/bigconsole/pages/DashboardViewPage.js +2 -0
- package/dist/bigconsole/pages/DashboardsPage.js +638 -855
- package/dist/bigconsole/pages/DataParsersPage.js +5 -0
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +4 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +263 -261
- package/dist/bigconsole/pages/DataSinksPage.js +210 -186
- package/dist/bigconsole/pages/InsightsPage.js +386 -383
- package/dist/bigconsole/pages/ParserBuilderPage.js +413 -413
- package/dist/bigconsole/pages/ParserViewPage.js +2 -0
- package/dist/bigconsole/pages/PipelineBuilderPage.js +279 -276
- package/dist/bigconsole/pages/PipelineViewPage.js +3 -0
- package/dist/bigconsole/pages/PipelinesPage.js +198 -165
- package/dist/bigconsole/pages/SettingsPage.js +160 -160
- package/dist/bigconsole/pages/WidgetDemoPage.js +2 -0
- package/dist/bigconsole/pages/WorkflowViewPage.js +5 -0
- package/dist/bigconsole/pages/WorkflowsPage.js +144 -123
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +1 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +123 -122
- package/dist/bigconsole/utils/dashboardGallery.d.ts +84 -0
- package/dist/bigconsole/utils/dashboardGallery.js +93 -0
- package/dist/bigconsole/utils/statusTone.d.ts +17 -0
- package/dist/bigconsole/utils/statusTone.js +44 -0
- package/package.json +4 -4
|
@@ -2,57 +2,58 @@ import e, { themeChoiceFromPolicy as t } from "../../../hooks/useDashboardEmbedP
|
|
|
2
2
|
import { BIGCONSOLE_PERMISSIONS as n } from "../../../../constants/permissions.js";
|
|
3
3
|
import { normalizeHttpsOrigin as r } from "../../../utils/safeUrl.js";
|
|
4
4
|
import { useEffect as i, useMemo as a, useRef as o, useState as s } from "react";
|
|
5
|
-
import { usePermissions as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { usePermissions as c } from "@burdenoff/fe-libs/shared/providers/shell";
|
|
6
|
+
import { ThemedSelect as l } from "@burdenoff/fe-libs/ui";
|
|
7
|
+
import { useI18n as u } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
8
|
+
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
8
9
|
// src/bigconsole/components/dashboard/ShareDialog/EmbedTab.tsx
|
|
9
|
-
var
|
|
10
|
+
var m = [
|
|
10
11
|
"light",
|
|
11
12
|
"dark",
|
|
12
13
|
"auto"
|
|
13
14
|
];
|
|
14
|
-
function
|
|
15
|
+
function h(e, t) {
|
|
15
16
|
return t === "light" ? e : e.replace(/(?<=\s)src="([^"]*)"/, (e, n) => {
|
|
16
17
|
let r = n.indexOf("#"), i = r === -1 ? n : n.slice(0, r), a = r === -1 ? "" : n.slice(r);
|
|
17
18
|
return `src="${i}${i.includes("?") ? "&" : "?"}theme=${t}${a}"`;
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
-
let { t:
|
|
21
|
+
function g({ dashboardId: g, colors: _ }) {
|
|
22
|
+
let { t: v } = u(), { policy: y, secret: b, loading: x, error: S, fetchPolicy: C, publishToWeb: w, applyPresentation: ee, setAllowedOrigins: T, rotateKey: E, unpublish: D } = e(), { hasPermission: te } = c(), O = te(n.DASHBOARD_MANAGE_EMBED), [k, A] = s(""), [j, M] = s([]), [N, P] = s(!1), [F, I] = s(!1), [L, R] = s("light"), [z, B] = s(!1), [V, H] = s(!1), [U, W] = s(null), G = o(null), K = o(null);
|
|
22
23
|
i(() => {
|
|
23
|
-
|
|
24
|
-
}, [
|
|
25
|
-
|
|
26
|
-
}, [
|
|
27
|
-
|
|
24
|
+
g && C(g);
|
|
25
|
+
}, [g, C]), i(() => {
|
|
26
|
+
y && G.current !== y.id && (G.current = y.id, R(t(y.presentationTheme)), B(y.showDashboardTitle));
|
|
27
|
+
}, [y]), i(() => () => {
|
|
28
|
+
K.current && clearTimeout(K.current);
|
|
28
29
|
}, []);
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
let e = r(
|
|
32
|
-
e ? (
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
}, Z = async () => {
|
|
36
|
-
U(null), A.length === 0 ? U(h("bigconsole.dashboards.embed.error.noDomains", "Add at least one allowed website domain before publishing.")) : M ? await x(p, A, !0, {
|
|
37
|
-
theme: I,
|
|
38
|
-
showTitle: R
|
|
39
|
-
}) : U(h("bigconsole.dashboards.embed.error.notAttested", "Please confirm this dashboard is safe to be public."));
|
|
30
|
+
let q = y?.status === "ACTIVE", J = q ? y?.allowedParentOrigins ?? [] : j, Y = a(() => b?.iframeSnippet ? h(b.iframeSnippet, L) : null, [b, L]), X = () => {
|
|
31
|
+
W(null);
|
|
32
|
+
let e = r(k);
|
|
33
|
+
e ? (J.includes(e) || (q && y ? T(y.id, [...J, e]) : M((t) => [...t, e])), A("")) : W(v("bigconsole.dashboards.embed.error.invalidOrigin", "Enter a valid https origin, e.g. https://example.com"));
|
|
34
|
+
}, Z = (e) => {
|
|
35
|
+
q && y ? T(y.id, J.filter((t) => t !== e)) : M((t) => t.filter((t) => t !== e));
|
|
40
36
|
}, ne = async () => {
|
|
41
|
-
|
|
42
|
-
theme:
|
|
43
|
-
showTitle:
|
|
44
|
-
})
|
|
45
|
-
}, re = async (
|
|
37
|
+
W(null), j.length === 0 ? W(v("bigconsole.dashboards.embed.error.noDomains", "Add at least one allowed website domain before publishing.")) : N ? await w(g, j, !0, {
|
|
38
|
+
theme: L,
|
|
39
|
+
showTitle: z
|
|
40
|
+
}) : W(v("bigconsole.dashboards.embed.error.notAttested", "Please confirm this dashboard is safe to be public."));
|
|
41
|
+
}, re = async () => {
|
|
42
|
+
y && (W(null), await ee(y.id, {
|
|
43
|
+
theme: L,
|
|
44
|
+
showTitle: z
|
|
45
|
+
}) && (H(!0), K.current && clearTimeout(K.current), K.current = setTimeout(() => H(!1), 1500)));
|
|
46
|
+
}, ie = async (e) => {
|
|
46
47
|
try {
|
|
47
|
-
await navigator.clipboard.writeText(e),
|
|
48
|
+
await navigator.clipboard.writeText(e), I(!0), setTimeout(() => I(!1), 1500);
|
|
48
49
|
} catch {
|
|
49
|
-
|
|
50
|
+
W(v("bigconsole.dashboards.embed.error.copyFailed", "Could not copy — select and copy manually."));
|
|
50
51
|
}
|
|
51
|
-
},
|
|
52
|
+
}, ae = {
|
|
52
53
|
padding: "8px 14px",
|
|
53
54
|
borderRadius: "8px",
|
|
54
55
|
border: "none",
|
|
55
|
-
background:
|
|
56
|
+
background: _.actionPrimaryBg,
|
|
56
57
|
color: "#fff",
|
|
57
58
|
fontSize: "13px",
|
|
58
59
|
fontWeight: 600,
|
|
@@ -60,371 +61,372 @@ function p({ dashboardId: p, colors: m }) {
|
|
|
60
61
|
}, Q = {
|
|
61
62
|
padding: "8px 14px",
|
|
62
63
|
borderRadius: "8px",
|
|
63
|
-
border: `1px solid ${
|
|
64
|
+
border: `1px solid ${_.borderDefault}`,
|
|
64
65
|
background: "transparent",
|
|
65
|
-
color:
|
|
66
|
+
color: _.textPrimary,
|
|
66
67
|
fontSize: "13px",
|
|
67
68
|
cursor: "pointer"
|
|
68
|
-
},
|
|
69
|
+
}, oe = {
|
|
69
70
|
flex: 1,
|
|
70
71
|
padding: "8px 10px",
|
|
71
72
|
borderRadius: "8px",
|
|
72
|
-
border: `1px solid ${
|
|
73
|
-
background:
|
|
74
|
-
color:
|
|
73
|
+
border: `1px solid ${_.borderDefault}`,
|
|
74
|
+
background: _.bgSecondary,
|
|
75
|
+
color: _.textPrimary,
|
|
75
76
|
fontSize: "13px"
|
|
76
|
-
},
|
|
77
|
+
}, se = {
|
|
77
78
|
padding: "4px 8px",
|
|
78
79
|
borderRadius: "6px",
|
|
79
|
-
border: `1px solid ${
|
|
80
|
-
background:
|
|
81
|
-
color:
|
|
80
|
+
border: `1px solid ${_.borderDefault}`,
|
|
81
|
+
background: _.bgSecondary,
|
|
82
|
+
color: _.textPrimary,
|
|
82
83
|
fontSize: "12px",
|
|
83
84
|
cursor: "pointer"
|
|
84
|
-
},
|
|
85
|
+
}, ce = {
|
|
85
86
|
display: "flex",
|
|
86
87
|
gap: "8px",
|
|
87
88
|
alignItems: "flex-start",
|
|
88
89
|
fontSize: "12px",
|
|
89
|
-
color:
|
|
90
|
-
},
|
|
90
|
+
color: _.textSecondary
|
|
91
|
+
}, le = a(() => m.map((e) => ({
|
|
91
92
|
value: e,
|
|
92
|
-
label: e === "light" ?
|
|
93
|
-
})), [
|
|
93
|
+
label: e === "light" ? v("bigconsole.dashboards.embed.theme.option.light", "Light") : e === "dark" ? v("bigconsole.dashboards.embed.theme.option.dark", "Dark") : v("bigconsole.dashboards.embed.theme.option.auto", "Auto (match viewer)")
|
|
94
|
+
})), [v]), $ = /* @__PURE__ */ p("div", {
|
|
94
95
|
style: {
|
|
95
96
|
display: "flex",
|
|
96
97
|
flexDirection: "column",
|
|
97
98
|
gap: "10px"
|
|
98
99
|
},
|
|
99
100
|
children: [
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ p("label", {
|
|
101
102
|
style: {
|
|
102
103
|
display: "flex",
|
|
103
104
|
alignItems: "center",
|
|
104
105
|
justifyContent: "space-between",
|
|
105
106
|
gap: "8px"
|
|
106
107
|
},
|
|
107
|
-
children: [/* @__PURE__ */
|
|
108
|
+
children: [/* @__PURE__ */ f("span", {
|
|
108
109
|
style: {
|
|
109
110
|
fontSize: "12px",
|
|
110
|
-
color:
|
|
111
|
+
color: _.textSecondary
|
|
111
112
|
},
|
|
112
|
-
children:
|
|
113
|
-
}), /* @__PURE__ */
|
|
114
|
-
value:
|
|
113
|
+
children: v("bigconsole.dashboards.embed.theme.label", "Theme")
|
|
114
|
+
}), /* @__PURE__ */ f(l, {
|
|
115
|
+
value: L,
|
|
115
116
|
onChange: (e) => {
|
|
116
117
|
let t = e.target.value;
|
|
117
|
-
(t === "light" || t === "dark" || t === "auto") &&
|
|
118
|
+
(t === "light" || t === "dark" || t === "auto") && R(t);
|
|
118
119
|
},
|
|
119
|
-
style:
|
|
120
|
-
children:
|
|
120
|
+
style: se,
|
|
121
|
+
children: le.map((e) => /* @__PURE__ */ f("option", {
|
|
121
122
|
value: e.value,
|
|
122
123
|
children: e.label
|
|
123
124
|
}, e.value))
|
|
124
125
|
})]
|
|
125
126
|
}),
|
|
126
|
-
/* @__PURE__ */
|
|
127
|
-
style:
|
|
128
|
-
children: [/* @__PURE__ */
|
|
127
|
+
/* @__PURE__ */ p("label", {
|
|
128
|
+
style: ce,
|
|
129
|
+
children: [/* @__PURE__ */ f("input", {
|
|
129
130
|
type: "checkbox",
|
|
130
|
-
checked:
|
|
131
|
-
onChange: (e) =>
|
|
132
|
-
}), /* @__PURE__ */
|
|
131
|
+
checked: z,
|
|
132
|
+
onChange: (e) => B(e.target.checked)
|
|
133
|
+
}), /* @__PURE__ */ f("span", { children: v("bigconsole.dashboards.embed.presentation.showTitle", "Show the dashboard title as a header") })]
|
|
133
134
|
}),
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
+
/* @__PURE__ */ f("div", {
|
|
135
136
|
style: {
|
|
136
137
|
fontSize: "11px",
|
|
137
|
-
color:
|
|
138
|
+
color: _.textTertiary
|
|
138
139
|
},
|
|
139
|
-
children:
|
|
140
|
+
children: v("bigconsole.dashboards.embed.presentation.brandingNote", "Embeds always carry a “Powered by BigConsole” footer.")
|
|
140
141
|
})
|
|
141
142
|
]
|
|
142
143
|
});
|
|
143
|
-
return /* @__PURE__ */
|
|
144
|
+
return /* @__PURE__ */ p("div", {
|
|
144
145
|
style: { padding: "20px 24px" },
|
|
145
146
|
children: [
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
+
/* @__PURE__ */ p("div", {
|
|
147
148
|
style: {
|
|
148
149
|
display: "flex",
|
|
149
150
|
alignItems: "center",
|
|
150
151
|
justifyContent: "space-between",
|
|
151
152
|
padding: "12px 14px",
|
|
152
153
|
borderRadius: "10px",
|
|
153
|
-
background:
|
|
154
|
+
background: _.bgSecondary,
|
|
154
155
|
marginBottom: "16px"
|
|
155
156
|
},
|
|
156
|
-
children: [/* @__PURE__ */
|
|
157
|
+
children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("div", {
|
|
157
158
|
style: {
|
|
158
159
|
fontSize: "14px",
|
|
159
160
|
fontWeight: 600,
|
|
160
|
-
color:
|
|
161
|
+
color: _.textPrimary
|
|
161
162
|
},
|
|
162
|
-
children:
|
|
163
|
-
}), /* @__PURE__ */
|
|
163
|
+
children: v("bigconsole.dashboards.embed.heading", "Publish to the web")
|
|
164
|
+
}), /* @__PURE__ */ f("div", {
|
|
164
165
|
style: {
|
|
165
166
|
fontSize: "12px",
|
|
166
|
-
color:
|
|
167
|
+
color: _.textSecondary,
|
|
167
168
|
marginTop: "2px"
|
|
168
169
|
},
|
|
169
|
-
children:
|
|
170
|
-
})] }), /* @__PURE__ */
|
|
170
|
+
children: q ? v("bigconsole.dashboards.embed.status.liveDescription", "This dashboard is live. Anyone with the link on an allowed website sees its live data.") : v("bigconsole.dashboards.embed.status.privateDescription", "Embed this dashboard on your website. Viewers see live data — no login required.")
|
|
171
|
+
})] }), /* @__PURE__ */ f("span", {
|
|
171
172
|
style: {
|
|
172
173
|
fontSize: "11px",
|
|
173
174
|
fontWeight: 700,
|
|
174
175
|
padding: "3px 8px",
|
|
175
176
|
borderRadius: "999px",
|
|
176
|
-
color: "
|
|
177
|
-
|
|
177
|
+
border: `1px solid ${q ? "var(--color-status-success-border)" : "var(--color-border-subtle)"}`,
|
|
178
|
+
color: q ? "var(--color-status-success-text)" : "var(--color-text-secondary)",
|
|
179
|
+
background: q ? "var(--color-status-success-bgSubtle)" : "var(--color-bg-sunken)"
|
|
178
180
|
},
|
|
179
|
-
children:
|
|
181
|
+
children: q ? v("bigconsole.dashboards.embed.badge.published", "PUBLISHED") : v("bigconsole.dashboards.embed.badge.private", "PRIVATE")
|
|
180
182
|
})]
|
|
181
183
|
}),
|
|
182
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ p("div", {
|
|
183
185
|
style: { marginBottom: "16px" },
|
|
184
186
|
children: [
|
|
185
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ f("div", {
|
|
186
188
|
style: {
|
|
187
189
|
fontSize: "12px",
|
|
188
190
|
fontWeight: 600,
|
|
189
|
-
color:
|
|
191
|
+
color: _.textSecondary,
|
|
190
192
|
marginBottom: "6px"
|
|
191
193
|
},
|
|
192
|
-
children:
|
|
194
|
+
children: v("bigconsole.dashboards.embed.domains.label", "Allowed website domains")
|
|
193
195
|
}),
|
|
194
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ p("div", {
|
|
195
197
|
style: {
|
|
196
198
|
display: "flex",
|
|
197
199
|
gap: "8px",
|
|
198
200
|
marginBottom: "8px"
|
|
199
201
|
},
|
|
200
|
-
children: [/* @__PURE__ */
|
|
201
|
-
style:
|
|
202
|
-
placeholder:
|
|
203
|
-
value:
|
|
204
|
-
onChange: (e) =>
|
|
202
|
+
children: [/* @__PURE__ */ f("input", {
|
|
203
|
+
style: oe,
|
|
204
|
+
placeholder: v("bigconsole.dashboards.embed.domains.placeholder", "https://yoursite.com"),
|
|
205
|
+
value: k,
|
|
206
|
+
onChange: (e) => A(e.target.value),
|
|
205
207
|
onKeyDown: (e) => {
|
|
206
|
-
e.key === "Enter" &&
|
|
208
|
+
e.key === "Enter" && X();
|
|
207
209
|
}
|
|
208
|
-
}), /* @__PURE__ */
|
|
210
|
+
}), /* @__PURE__ */ f("button", {
|
|
209
211
|
style: Q,
|
|
210
|
-
onClick:
|
|
212
|
+
onClick: X,
|
|
211
213
|
type: "button",
|
|
212
|
-
disabled: !
|
|
213
|
-
children:
|
|
214
|
+
disabled: !O,
|
|
215
|
+
children: v("bigconsole.dashboards.embed.domains.add", "Add")
|
|
214
216
|
})]
|
|
215
217
|
}),
|
|
216
|
-
|
|
218
|
+
J.length === 0 ? /* @__PURE__ */ f("div", {
|
|
217
219
|
style: {
|
|
218
220
|
fontSize: "12px",
|
|
219
|
-
color:
|
|
221
|
+
color: _.textTertiary
|
|
220
222
|
},
|
|
221
|
-
children:
|
|
222
|
-
}) : /* @__PURE__ */
|
|
223
|
+
children: v("bigconsole.dashboards.embed.domains.empty", "No domains yet. Only listed https domains may frame this dashboard.")
|
|
224
|
+
}) : /* @__PURE__ */ f("div", {
|
|
223
225
|
style: {
|
|
224
226
|
display: "flex",
|
|
225
227
|
flexDirection: "column",
|
|
226
228
|
gap: "6px"
|
|
227
229
|
},
|
|
228
|
-
children:
|
|
230
|
+
children: J.map((e) => /* @__PURE__ */ p("div", {
|
|
229
231
|
style: {
|
|
230
232
|
display: "flex",
|
|
231
233
|
alignItems: "center",
|
|
232
234
|
justifyContent: "space-between",
|
|
233
235
|
padding: "6px 10px",
|
|
234
236
|
borderRadius: "8px",
|
|
235
|
-
background:
|
|
237
|
+
background: _.bgTertiary
|
|
236
238
|
},
|
|
237
|
-
children: [/* @__PURE__ */
|
|
239
|
+
children: [/* @__PURE__ */ f("span", {
|
|
238
240
|
style: {
|
|
239
241
|
fontSize: "13px",
|
|
240
|
-
color:
|
|
242
|
+
color: _.textPrimary
|
|
241
243
|
},
|
|
242
244
|
children: e
|
|
243
|
-
}),
|
|
245
|
+
}), O && /* @__PURE__ */ f("button", {
|
|
244
246
|
style: {
|
|
245
247
|
...Q,
|
|
246
248
|
padding: "2px 8px",
|
|
247
|
-
color:
|
|
249
|
+
color: _.statusErrorText
|
|
248
250
|
},
|
|
249
|
-
onClick: () =>
|
|
251
|
+
onClick: () => Z(e),
|
|
250
252
|
type: "button",
|
|
251
|
-
children:
|
|
253
|
+
children: v("bigconsole.dashboards.embed.domains.remove", "Remove")
|
|
252
254
|
})]
|
|
253
255
|
}, e))
|
|
254
256
|
})
|
|
255
257
|
]
|
|
256
258
|
}),
|
|
257
|
-
!
|
|
259
|
+
!q && /* @__PURE__ */ p("div", {
|
|
258
260
|
style: { marginBottom: "16px" },
|
|
259
|
-
children: [/* @__PURE__ */
|
|
261
|
+
children: [/* @__PURE__ */ f("div", {
|
|
260
262
|
style: {
|
|
261
263
|
fontSize: "12px",
|
|
262
264
|
fontWeight: 600,
|
|
263
|
-
color:
|
|
265
|
+
color: _.textSecondary,
|
|
264
266
|
marginBottom: "8px"
|
|
265
267
|
},
|
|
266
|
-
children:
|
|
268
|
+
children: v("bigconsole.dashboards.embed.presentation.heading", "Presentation")
|
|
267
269
|
}), $]
|
|
268
270
|
}),
|
|
269
|
-
!
|
|
271
|
+
!q && /* @__PURE__ */ p("div", {
|
|
270
272
|
style: { marginBottom: "8px" },
|
|
271
|
-
children: [/* @__PURE__ */
|
|
273
|
+
children: [/* @__PURE__ */ p("label", {
|
|
272
274
|
style: {
|
|
273
275
|
display: "flex",
|
|
274
276
|
gap: "8px",
|
|
275
277
|
alignItems: "flex-start",
|
|
276
278
|
marginBottom: "12px"
|
|
277
279
|
},
|
|
278
|
-
children: [/* @__PURE__ */
|
|
280
|
+
children: [/* @__PURE__ */ f("input", {
|
|
279
281
|
type: "checkbox",
|
|
280
|
-
checked:
|
|
281
|
-
onChange: (e) =>
|
|
282
|
-
}), /* @__PURE__ */
|
|
282
|
+
checked: N,
|
|
283
|
+
onChange: (e) => P(e.target.checked)
|
|
284
|
+
}), /* @__PURE__ */ f("span", {
|
|
283
285
|
style: {
|
|
284
286
|
fontSize: "12px",
|
|
285
|
-
color:
|
|
287
|
+
color: _.textSecondary
|
|
286
288
|
},
|
|
287
|
-
children:
|
|
289
|
+
children: v("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.")
|
|
288
290
|
})]
|
|
289
|
-
}), /* @__PURE__ */
|
|
290
|
-
style:
|
|
291
|
-
onClick:
|
|
292
|
-
disabled:
|
|
291
|
+
}), /* @__PURE__ */ f("button", {
|
|
292
|
+
style: ae,
|
|
293
|
+
onClick: ne,
|
|
294
|
+
disabled: x || !O,
|
|
293
295
|
type: "button",
|
|
294
|
-
children:
|
|
296
|
+
children: x ? v("bigconsole.dashboards.embed.publishing", "Publishing…") : v("bigconsole.dashboards.embed.publish", "Publish to web")
|
|
295
297
|
})]
|
|
296
298
|
}),
|
|
297
|
-
|
|
298
|
-
|
|
299
|
+
q && /* @__PURE__ */ p(d, { children: [
|
|
300
|
+
Y ? /* @__PURE__ */ p("div", {
|
|
299
301
|
style: { marginBottom: "16px" },
|
|
300
302
|
children: [
|
|
301
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ f("div", {
|
|
302
304
|
style: { marginBottom: "6px" },
|
|
303
|
-
children: /* @__PURE__ */
|
|
305
|
+
children: /* @__PURE__ */ f("span", {
|
|
304
306
|
style: {
|
|
305
307
|
fontSize: "12px",
|
|
306
308
|
fontWeight: 600,
|
|
307
|
-
color:
|
|
309
|
+
color: _.textSecondary
|
|
308
310
|
},
|
|
309
|
-
children:
|
|
311
|
+
children: v("bigconsole.dashboards.embed.snippet.label", "Embed snippet")
|
|
310
312
|
})
|
|
311
313
|
}),
|
|
312
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ f("textarea", {
|
|
313
315
|
readOnly: !0,
|
|
314
|
-
value:
|
|
316
|
+
value: Y,
|
|
315
317
|
style: {
|
|
316
318
|
width: "100%",
|
|
317
319
|
minHeight: "96px",
|
|
318
320
|
padding: "10px",
|
|
319
321
|
borderRadius: "8px",
|
|
320
|
-
border: `1px solid ${
|
|
321
|
-
background:
|
|
322
|
-
color:
|
|
322
|
+
border: `1px solid ${_.borderDefault}`,
|
|
323
|
+
background: _.bgSecondary,
|
|
324
|
+
color: _.textPrimary,
|
|
323
325
|
fontFamily: "monospace",
|
|
324
326
|
fontSize: "12px",
|
|
325
327
|
resize: "vertical"
|
|
326
328
|
}
|
|
327
329
|
}),
|
|
328
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ f("button", {
|
|
329
331
|
style: {
|
|
330
332
|
...Q,
|
|
331
333
|
marginTop: "8px"
|
|
332
334
|
},
|
|
333
|
-
onClick: () =>
|
|
335
|
+
onClick: () => ie(Y),
|
|
334
336
|
type: "button",
|
|
335
|
-
children:
|
|
337
|
+
children: F ? v("bigconsole.dashboards.embed.snippet.copied", "Copied ✓") : v("bigconsole.dashboards.embed.snippet.copy", "Copy snippet")
|
|
336
338
|
})
|
|
337
339
|
]
|
|
338
|
-
}) : /* @__PURE__ */
|
|
340
|
+
}) : /* @__PURE__ */ f("div", {
|
|
339
341
|
style: {
|
|
340
342
|
fontSize: "12px",
|
|
341
|
-
color:
|
|
342
|
-
background:
|
|
343
|
+
color: _.textSecondary,
|
|
344
|
+
background: _.bgSecondary,
|
|
343
345
|
borderRadius: "8px",
|
|
344
346
|
padding: "10px 12px",
|
|
345
347
|
marginBottom: "16px"
|
|
346
348
|
},
|
|
347
|
-
children:
|
|
349
|
+
children: v("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: v("bigconsole.dashboards.embed.rotate", "Rotate link") })
|
|
348
350
|
}),
|
|
349
|
-
/* @__PURE__ */
|
|
351
|
+
/* @__PURE__ */ p("div", {
|
|
350
352
|
style: { marginBottom: "16px" },
|
|
351
353
|
children: [
|
|
352
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ f("div", {
|
|
353
355
|
style: {
|
|
354
356
|
fontSize: "12px",
|
|
355
357
|
fontWeight: 600,
|
|
356
|
-
color:
|
|
358
|
+
color: _.textSecondary,
|
|
357
359
|
marginBottom: "8px"
|
|
358
360
|
},
|
|
359
|
-
children:
|
|
361
|
+
children: v("bigconsole.dashboards.embed.presentation.heading", "Presentation")
|
|
360
362
|
}),
|
|
361
363
|
$,
|
|
362
|
-
/* @__PURE__ */
|
|
364
|
+
/* @__PURE__ */ p("div", {
|
|
363
365
|
style: {
|
|
364
366
|
display: "flex",
|
|
365
367
|
alignItems: "center",
|
|
366
368
|
gap: "10px",
|
|
367
369
|
marginTop: "10px"
|
|
368
370
|
},
|
|
369
|
-
children: [/* @__PURE__ */
|
|
371
|
+
children: [/* @__PURE__ */ f("button", {
|
|
370
372
|
style: Q,
|
|
371
|
-
onClick:
|
|
372
|
-
disabled:
|
|
373
|
+
onClick: re,
|
|
374
|
+
disabled: x || !O,
|
|
373
375
|
type: "button",
|
|
374
|
-
children:
|
|
375
|
-
}),
|
|
376
|
+
children: x ? v("bigconsole.dashboards.embed.applying", "Applying…") : v("bigconsole.dashboards.embed.apply", "Apply changes")
|
|
377
|
+
}), V && /* @__PURE__ */ f("span", {
|
|
376
378
|
style: {
|
|
377
379
|
fontSize: "12px",
|
|
378
|
-
color:
|
|
380
|
+
color: _.textTertiary
|
|
379
381
|
},
|
|
380
|
-
children:
|
|
382
|
+
children: v("bigconsole.dashboards.embed.updated", "Updated ✓")
|
|
381
383
|
})]
|
|
382
384
|
}),
|
|
383
|
-
/* @__PURE__ */
|
|
385
|
+
/* @__PURE__ */ f("div", {
|
|
384
386
|
style: {
|
|
385
387
|
fontSize: "11px",
|
|
386
|
-
color:
|
|
388
|
+
color: _.textTertiary,
|
|
387
389
|
marginTop: "6px"
|
|
388
390
|
},
|
|
389
|
-
children:
|
|
391
|
+
children: v("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.")
|
|
390
392
|
})
|
|
391
393
|
]
|
|
392
394
|
}),
|
|
393
|
-
|
|
395
|
+
O && /* @__PURE__ */ p("div", {
|
|
394
396
|
style: {
|
|
395
397
|
display: "flex",
|
|
396
398
|
gap: "8px"
|
|
397
399
|
},
|
|
398
|
-
children: [/* @__PURE__ */
|
|
400
|
+
children: [/* @__PURE__ */ f("button", {
|
|
399
401
|
style: Q,
|
|
400
|
-
onClick: () =>
|
|
401
|
-
disabled:
|
|
402
|
+
onClick: () => y && E(y.id),
|
|
403
|
+
disabled: x,
|
|
402
404
|
type: "button",
|
|
403
|
-
children:
|
|
404
|
-
}), /* @__PURE__ */
|
|
405
|
+
children: v("bigconsole.dashboards.embed.rotate", "Rotate link")
|
|
406
|
+
}), /* @__PURE__ */ f("button", {
|
|
405
407
|
style: {
|
|
406
408
|
...Q,
|
|
407
|
-
color:
|
|
408
|
-
borderColor:
|
|
409
|
+
color: _.statusErrorText,
|
|
410
|
+
borderColor: _.statusErrorText
|
|
409
411
|
},
|
|
410
412
|
onClick: () => {
|
|
411
|
-
|
|
413
|
+
y && window.confirm(v("bigconsole.dashboards.embed.unpublishConfirm", "Unpublish this dashboard? The embed will stop working immediately for anyone using the link.")) && D(y.id);
|
|
412
414
|
},
|
|
413
|
-
disabled:
|
|
415
|
+
disabled: x,
|
|
414
416
|
type: "button",
|
|
415
|
-
children:
|
|
417
|
+
children: v("bigconsole.dashboards.embed.unpublish", "Unpublish")
|
|
416
418
|
})]
|
|
417
419
|
})
|
|
418
420
|
] }),
|
|
419
|
-
(
|
|
421
|
+
(U || S) && /* @__PURE__ */ f("div", {
|
|
420
422
|
style: {
|
|
421
423
|
marginTop: "12px",
|
|
422
424
|
fontSize: "12px",
|
|
423
|
-
color:
|
|
425
|
+
color: _.statusErrorText
|
|
424
426
|
},
|
|
425
|
-
children:
|
|
427
|
+
children: U ?? S?.message
|
|
426
428
|
})
|
|
427
429
|
]
|
|
428
430
|
});
|
|
429
431
|
}
|
|
430
|
-
export {
|
|
432
|
+
export { g as EmbedTab, g as default, h as withThemeInSnippet };
|