@burdenoff/microfe-bigconsole 2026.1123.6 → 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
|
@@ -6,48 +6,48 @@ import { useBigConsoleSettingsSync as i } from "../hooks/useBigConsoleSettingsSy
|
|
|
6
6
|
import { isDirty as a } from "../utils/formDirty.js";
|
|
7
7
|
import { memo as o, useCallback as s, useEffect as c, useState as l } from "react";
|
|
8
8
|
import { RotateCcw as u, Save as d, Settings as f } from "lucide-react";
|
|
9
|
-
import { AuroraBackground as p, EmphasisPanel as m, GradientText as h, PagePurpose as g } from "@burdenoff/fe-libs/ui";
|
|
10
|
-
import { useUnsavedChanges as
|
|
11
|
-
import { useI18n as
|
|
12
|
-
import { jsx as
|
|
9
|
+
import { AuroraBackground as p, EmphasisPanel as m, GradientText as h, PagePurpose as g, ThemedSelect as _ } from "@burdenoff/fe-libs/ui";
|
|
10
|
+
import { useUnsavedChanges as v } from "@burdenoff/fe-libs/shared/hooks";
|
|
11
|
+
import { useI18n as y } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
12
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
13
13
|
// src/bigconsole/pages/SettingsPage.tsx
|
|
14
|
-
var
|
|
14
|
+
var S = o(function() {
|
|
15
15
|
let { currentUser: t, workspaceId: r, settingsExtension: i } = e();
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
}),
|
|
18
|
-
let { t: n } =
|
|
19
|
-
a(
|
|
16
|
+
return /* @__PURE__ */ b(C, { extension: i }, n(t?.id, r));
|
|
17
|
+
}), C = function({ extension: e }) {
|
|
18
|
+
let { t: n } = y(), o = i(), [S, C] = l(r), [w, T] = l(!1), [E, D] = l(!1), [O, k] = l(!1), [A, j] = l(S), M = a(S, A), N = o.loaded || o.loadError, P = o.settings, [F, I] = l(P);
|
|
19
|
+
a(P, F) && (I(P), M || (C(P), j(P))), v({
|
|
20
20
|
id: "bigconsole-settings",
|
|
21
21
|
label: n("bigconsole.assistant.unsaved.settingsPage", "the settings page"),
|
|
22
|
-
dirty:
|
|
22
|
+
dirty: M
|
|
23
23
|
}), c(() => {
|
|
24
|
-
if (
|
|
25
|
-
let e = setTimeout(() =>
|
|
24
|
+
if (w) {
|
|
25
|
+
let e = setTimeout(() => T(!1), 2e3);
|
|
26
26
|
return () => clearTimeout(e);
|
|
27
27
|
}
|
|
28
|
-
}, [
|
|
29
|
-
let
|
|
30
|
-
|
|
28
|
+
}, [w]);
|
|
29
|
+
let L = s((e, t) => {
|
|
30
|
+
C((n) => ({
|
|
31
31
|
...n,
|
|
32
32
|
[e]: t
|
|
33
33
|
}));
|
|
34
|
-
}, []), { save:
|
|
35
|
-
|
|
36
|
-
}, []),
|
|
37
|
-
let e =
|
|
38
|
-
|
|
34
|
+
}, []), { save: R, reset: z } = o, B = s((e, t) => {
|
|
35
|
+
k(!1), T(t !== null), D(t === null), t && (j(t), I(t), C((n) => a(n, e) ? n : t));
|
|
36
|
+
}, []), V = s(async () => {
|
|
37
|
+
let e = S;
|
|
38
|
+
k(!0), D(!1), B(e, await R(e));
|
|
39
39
|
}, [
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
]),
|
|
44
|
-
let e =
|
|
45
|
-
|
|
40
|
+
B,
|
|
41
|
+
R,
|
|
42
|
+
S
|
|
43
|
+
]), H = s(async () => {
|
|
44
|
+
let e = S;
|
|
45
|
+
k(!0), D(!1), B(e, await z());
|
|
46
46
|
}, [
|
|
47
|
+
B,
|
|
47
48
|
z,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
]), H = {
|
|
49
|
+
S
|
|
50
|
+
]), U = {
|
|
51
51
|
width: "100%",
|
|
52
52
|
padding: "8px 12px",
|
|
53
53
|
borderRadius: "var(--radius-button)",
|
|
@@ -55,17 +55,17 @@ var x = o(function() {
|
|
|
55
55
|
backgroundColor: "var(--color-bg-canvas)",
|
|
56
56
|
color: "var(--color-text-primary)",
|
|
57
57
|
fontSize: "var(--font-size-body-sm)"
|
|
58
|
-
},
|
|
58
|
+
}, W = {
|
|
59
59
|
display: "block",
|
|
60
60
|
fontSize: "var(--font-size-body-sm)",
|
|
61
61
|
fontWeight: "var(--font-weight-medium)",
|
|
62
62
|
color: "var(--color-text-primary)",
|
|
63
63
|
marginBottom: 4
|
|
64
|
-
},
|
|
64
|
+
}, G = {
|
|
65
65
|
fontSize: "var(--font-size-body-sm)",
|
|
66
66
|
color: "var(--color-text-muted)",
|
|
67
67
|
marginTop: 4
|
|
68
|
-
},
|
|
68
|
+
}, K = {
|
|
69
69
|
backgroundColor: "var(--color-bg-surface)",
|
|
70
70
|
border: "1px solid var(--color-border-seam)",
|
|
71
71
|
borderRadius: "var(--radius-card)",
|
|
@@ -73,19 +73,19 @@ var x = o(function() {
|
|
|
73
73
|
marginBottom: "var(--space-sectionGap)",
|
|
74
74
|
boxShadow: "var(--shadow-pop)"
|
|
75
75
|
};
|
|
76
|
-
return /* @__PURE__ */
|
|
76
|
+
return /* @__PURE__ */ b("div", {
|
|
77
77
|
style: {
|
|
78
78
|
minHeight: "100vh",
|
|
79
79
|
backgroundColor: "var(--color-bg-canvas)"
|
|
80
80
|
},
|
|
81
|
-
children: /* @__PURE__ */
|
|
81
|
+
children: /* @__PURE__ */ x("div", {
|
|
82
82
|
style: {
|
|
83
83
|
padding: "var(--space-pagePadding)",
|
|
84
84
|
maxWidth: 1440,
|
|
85
85
|
margin: "0 auto"
|
|
86
86
|
},
|
|
87
87
|
children: [
|
|
88
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ x("div", {
|
|
89
89
|
className: "relative overflow-hidden rounded-card border border-border-seam bg-gloss-card p-6",
|
|
90
90
|
style: {
|
|
91
91
|
display: "flex",
|
|
@@ -96,25 +96,25 @@ var x = o(function() {
|
|
|
96
96
|
gap: "var(--space-formGap)"
|
|
97
97
|
},
|
|
98
98
|
children: [
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ b(p, { intensity: "subtle" }),
|
|
100
|
+
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ x("div", {
|
|
101
101
|
style: {
|
|
102
102
|
display: "flex",
|
|
103
103
|
alignItems: "center",
|
|
104
104
|
gap: "var(--space-iconGap)"
|
|
105
105
|
},
|
|
106
|
-
children: [/* @__PURE__ */
|
|
106
|
+
children: [/* @__PURE__ */ b(f, {
|
|
107
107
|
size: 24,
|
|
108
108
|
style: { color: "var(--color-text-primary)" }
|
|
109
|
-
}), /* @__PURE__ */
|
|
109
|
+
}), /* @__PURE__ */ b("h1", {
|
|
110
110
|
style: {
|
|
111
111
|
fontSize: "var(--font-size-heading-h4)",
|
|
112
112
|
fontWeight: "var(--font-weight-bold)",
|
|
113
113
|
color: "var(--color-text-primary)"
|
|
114
114
|
},
|
|
115
|
-
children: /* @__PURE__ */
|
|
115
|
+
children: /* @__PURE__ */ b(h, { children: n("bigconsole.settings.header.title", "Settings") })
|
|
116
116
|
})]
|
|
117
|
-
}), /* @__PURE__ */
|
|
117
|
+
}), /* @__PURE__ */ b("p", {
|
|
118
118
|
style: {
|
|
119
119
|
fontSize: "var(--font-size-body-md)",
|
|
120
120
|
color: "var(--color-text-secondary)",
|
|
@@ -122,14 +122,14 @@ var x = o(function() {
|
|
|
122
122
|
},
|
|
123
123
|
children: n("bigconsole.settings.header.subtitle", "Configure BigConsole preferences")
|
|
124
124
|
})] }),
|
|
125
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ x("div", {
|
|
126
126
|
style: {
|
|
127
127
|
display: "flex",
|
|
128
128
|
gap: 8
|
|
129
129
|
},
|
|
130
|
-
children: [/* @__PURE__ */
|
|
131
|
-
onClick: () => void
|
|
132
|
-
disabled:
|
|
130
|
+
children: [/* @__PURE__ */ x("button", {
|
|
131
|
+
onClick: () => void H(),
|
|
132
|
+
disabled: O || !N,
|
|
133
133
|
style: {
|
|
134
134
|
display: "flex",
|
|
135
135
|
alignItems: "center",
|
|
@@ -143,22 +143,22 @@ var x = o(function() {
|
|
|
143
143
|
cursor: "pointer"
|
|
144
144
|
},
|
|
145
145
|
children: [
|
|
146
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ b(u, { size: 14 }),
|
|
147
147
|
" ",
|
|
148
148
|
n("bigconsole.settings.actions.reset", "Reset")
|
|
149
149
|
]
|
|
150
|
-
}), /* @__PURE__ */
|
|
151
|
-
onClick: () => void
|
|
152
|
-
disabled:
|
|
153
|
-
"aria-busy":
|
|
150
|
+
}), /* @__PURE__ */ x("button", {
|
|
151
|
+
onClick: () => void V(),
|
|
152
|
+
disabled: O || !N,
|
|
153
|
+
"aria-busy": O,
|
|
154
154
|
style: {
|
|
155
155
|
display: "flex",
|
|
156
156
|
alignItems: "center",
|
|
157
157
|
gap: 6,
|
|
158
158
|
padding: "8px 16px",
|
|
159
159
|
borderRadius: "var(--radius-button)",
|
|
160
|
-
backgroundColor:
|
|
161
|
-
color: "var(--color-action-primary-text)",
|
|
160
|
+
backgroundColor: w ? "var(--color-status-success-bgSubtle)" : "var(--color-action-primary-bg)",
|
|
161
|
+
color: w ? "var(--color-status-success-text)" : "var(--color-action-primary-text)",
|
|
162
162
|
fontWeight: "var(--font-weight-medium)",
|
|
163
163
|
fontSize: "var(--font-size-body-sm)",
|
|
164
164
|
border: "none",
|
|
@@ -166,36 +166,36 @@ var x = o(function() {
|
|
|
166
166
|
transition: "background-color 200ms"
|
|
167
167
|
},
|
|
168
168
|
children: [
|
|
169
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ b(d, { size: 14 }),
|
|
170
170
|
" ",
|
|
171
|
-
|
|
171
|
+
O ? n("bigconsole.settings.actions.saving", "Saving…") : w ? n("bigconsole.settings.actions.savedToAccount", "Saved") : n("bigconsole.settings.actions.saveToAccount", "Save")
|
|
172
172
|
]
|
|
173
173
|
})]
|
|
174
174
|
})
|
|
175
175
|
]
|
|
176
176
|
}),
|
|
177
|
-
|
|
177
|
+
E && /* @__PURE__ */ b("p", {
|
|
178
178
|
role: "alert",
|
|
179
179
|
className: "mb-form-gap text-status-error-text",
|
|
180
180
|
children: n("bigconsole.settings.actions.saveFailed", "Your preferences could not be saved. Check your connection and try again.")
|
|
181
181
|
}),
|
|
182
|
-
o.loadError && /* @__PURE__ */
|
|
182
|
+
o.loadError && /* @__PURE__ */ b("p", {
|
|
183
183
|
role: "status",
|
|
184
184
|
className: "mb-form-gap text-text-muted",
|
|
185
185
|
children: n("bigconsole.settings.loadFailed", "Your saved preferences could not be loaded. The values shown are the last ones this browser used.")
|
|
186
186
|
}),
|
|
187
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ b(g, {
|
|
188
188
|
className: "mb-[var(--space-sectionGap)]",
|
|
189
189
|
children: n("bigconsole.settings.accountDefaultsPurpose", "These defaults apply when you add dashboard pages, widgets and data sinks, and display preferences update existing widgets. They are saved to your account for this workspace, so they follow you on every device and browser. They do not change existing page layouts, widget refresh schedules or data sink cache settings, and are not shared with your team.")
|
|
190
190
|
}),
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
-
disabled: !
|
|
193
|
-
"aria-busy": !
|
|
191
|
+
/* @__PURE__ */ x("fieldset", {
|
|
192
|
+
disabled: !N,
|
|
193
|
+
"aria-busy": !N,
|
|
194
194
|
className: "m-0 min-w-0 border-0 p-0",
|
|
195
195
|
children: [
|
|
196
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ x(m, {
|
|
197
197
|
className: "mb-[var(--space-sectionGap)] p-[var(--space-cardPadding)]",
|
|
198
|
-
children: [/* @__PURE__ */
|
|
198
|
+
children: [/* @__PURE__ */ b("h2", {
|
|
199
199
|
style: {
|
|
200
200
|
fontSize: "var(--font-size-body-md)",
|
|
201
201
|
fontWeight: "var(--font-weight-semibold)",
|
|
@@ -203,98 +203,98 @@ var x = o(function() {
|
|
|
203
203
|
marginBottom: 16
|
|
204
204
|
},
|
|
205
205
|
children: n("bigconsole.settings.dashboardDefaults.title", "Dashboard Defaults")
|
|
206
|
-
}), /* @__PURE__ */
|
|
206
|
+
}), /* @__PURE__ */ x("div", {
|
|
207
207
|
className: "grid gap-form-gap md:grid-cols-3",
|
|
208
208
|
children: [
|
|
209
|
-
/* @__PURE__ */
|
|
210
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ x("div", { children: [
|
|
210
|
+
/* @__PURE__ */ b("label", {
|
|
211
211
|
htmlFor: "grid-cols",
|
|
212
|
-
style:
|
|
212
|
+
style: W,
|
|
213
213
|
children: n("bigconsole.settings.dashboardDefaults.gridColumns.label", "Grid Columns")
|
|
214
214
|
}),
|
|
215
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ b("input", {
|
|
216
216
|
id: "grid-cols",
|
|
217
217
|
type: "number",
|
|
218
218
|
min: 4,
|
|
219
219
|
max: 24,
|
|
220
|
-
value:
|
|
221
|
-
onChange: (e) =>
|
|
222
|
-
style:
|
|
220
|
+
value: S.defaultGridColumns,
|
|
221
|
+
onChange: (e) => L("defaultGridColumns", Math.min(24, Math.max(4, Number(e.target.value) || 12))),
|
|
222
|
+
style: U
|
|
223
223
|
}),
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
-
style:
|
|
224
|
+
/* @__PURE__ */ b("p", {
|
|
225
|
+
style: G,
|
|
226
226
|
children: n("bigconsole.settings.dashboardDefaults.gridColumns.help", "Number of columns in the dashboard grid (4-24)")
|
|
227
227
|
})
|
|
228
228
|
] }),
|
|
229
|
-
/* @__PURE__ */
|
|
230
|
-
/* @__PURE__ */
|
|
229
|
+
/* @__PURE__ */ x("div", { children: [
|
|
230
|
+
/* @__PURE__ */ b("label", {
|
|
231
231
|
htmlFor: "widget-height",
|
|
232
|
-
style:
|
|
232
|
+
style: W,
|
|
233
233
|
children: n("bigconsole.settings.dashboardDefaults.widgetHeight.label", "Default Widget Height")
|
|
234
234
|
}),
|
|
235
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ b("input", {
|
|
236
236
|
id: "widget-height",
|
|
237
237
|
type: "number",
|
|
238
238
|
min: 2,
|
|
239
239
|
max: 12,
|
|
240
|
-
value:
|
|
241
|
-
onChange: (e) =>
|
|
242
|
-
style:
|
|
240
|
+
value: S.defaultWidgetHeight,
|
|
241
|
+
onChange: (e) => L("defaultWidgetHeight", Math.min(12, Math.max(2, Number(e.target.value) || 4))),
|
|
242
|
+
style: U
|
|
243
243
|
}),
|
|
244
|
-
/* @__PURE__ */
|
|
245
|
-
style:
|
|
244
|
+
/* @__PURE__ */ b("p", {
|
|
245
|
+
style: G,
|
|
246
246
|
children: n("bigconsole.settings.dashboardDefaults.widgetHeight.help", "Default height units for new widgets (2-12)")
|
|
247
247
|
})
|
|
248
248
|
] }),
|
|
249
|
-
/* @__PURE__ */
|
|
250
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ x("div", { children: [
|
|
250
|
+
/* @__PURE__ */ b("label", {
|
|
251
251
|
htmlFor: "refresh-interval",
|
|
252
|
-
style:
|
|
252
|
+
style: W,
|
|
253
253
|
children: n("bigconsole.settings.dashboardDefaults.refreshInterval.label", "Auto-Refresh Interval (seconds)")
|
|
254
254
|
}),
|
|
255
|
-
/* @__PURE__ */
|
|
255
|
+
/* @__PURE__ */ x(_, {
|
|
256
256
|
id: "refresh-interval",
|
|
257
|
-
value:
|
|
258
|
-
onChange: (e) =>
|
|
259
|
-
style:
|
|
257
|
+
value: S.defaultRefreshInterval,
|
|
258
|
+
onChange: (e) => L("defaultRefreshInterval", parseInt(e.target.value)),
|
|
259
|
+
style: U,
|
|
260
260
|
children: [
|
|
261
|
-
/* @__PURE__ */
|
|
261
|
+
/* @__PURE__ */ b("option", {
|
|
262
262
|
value: 0,
|
|
263
263
|
children: n("bigconsole.settings.dashboardDefaults.refreshInterval.disabled", "Disabled")
|
|
264
264
|
}),
|
|
265
|
-
/* @__PURE__ */
|
|
265
|
+
/* @__PURE__ */ b("option", {
|
|
266
266
|
value: 10,
|
|
267
267
|
children: n("bigconsole.settings.dashboardDefaults.refreshInterval.seconds10", "10 seconds")
|
|
268
268
|
}),
|
|
269
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ b("option", {
|
|
270
270
|
value: 30,
|
|
271
271
|
children: n("bigconsole.settings.dashboardDefaults.refreshInterval.seconds30", "30 seconds")
|
|
272
272
|
}),
|
|
273
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ b("option", {
|
|
274
274
|
value: 60,
|
|
275
275
|
children: n("bigconsole.settings.dashboardDefaults.refreshInterval.minute1", "1 minute")
|
|
276
276
|
}),
|
|
277
|
-
/* @__PURE__ */
|
|
277
|
+
/* @__PURE__ */ b("option", {
|
|
278
278
|
value: 300,
|
|
279
279
|
children: n("bigconsole.settings.dashboardDefaults.refreshInterval.minutes5", "5 minutes")
|
|
280
280
|
}),
|
|
281
|
-
/* @__PURE__ */
|
|
281
|
+
/* @__PURE__ */ b("option", {
|
|
282
282
|
value: 600,
|
|
283
283
|
children: n("bigconsole.settings.dashboardDefaults.refreshInterval.minutes10", "10 minutes")
|
|
284
284
|
})
|
|
285
285
|
]
|
|
286
286
|
}),
|
|
287
|
-
/* @__PURE__ */
|
|
288
|
-
style:
|
|
287
|
+
/* @__PURE__ */ b("p", {
|
|
288
|
+
style: G,
|
|
289
289
|
children: n("bigconsole.settings.dashboardDefaults.refreshInterval.help", "How often widgets refresh their data automatically")
|
|
290
290
|
})
|
|
291
291
|
] })
|
|
292
292
|
]
|
|
293
293
|
})]
|
|
294
294
|
}),
|
|
295
|
-
/* @__PURE__ */
|
|
296
|
-
style:
|
|
297
|
-
children: [/* @__PURE__ */
|
|
295
|
+
/* @__PURE__ */ x("div", {
|
|
296
|
+
style: K,
|
|
297
|
+
children: [/* @__PURE__ */ b("h2", {
|
|
298
298
|
style: {
|
|
299
299
|
fontSize: "var(--font-size-body-md)",
|
|
300
300
|
fontWeight: "var(--font-weight-semibold)",
|
|
@@ -302,72 +302,72 @@ var x = o(function() {
|
|
|
302
302
|
marginBottom: 16
|
|
303
303
|
},
|
|
304
304
|
children: n("bigconsole.settings.cache.title", "Cache")
|
|
305
|
-
}), /* @__PURE__ */
|
|
305
|
+
}), /* @__PURE__ */ x("div", {
|
|
306
306
|
className: "grid gap-form-gap md:grid-cols-2",
|
|
307
|
-
children: [/* @__PURE__ */
|
|
307
|
+
children: [/* @__PURE__ */ x("div", {
|
|
308
308
|
style: {
|
|
309
309
|
display: "flex",
|
|
310
310
|
alignItems: "center",
|
|
311
311
|
justifyContent: "space-between"
|
|
312
312
|
},
|
|
313
|
-
children: [/* @__PURE__ */
|
|
314
|
-
style: U,
|
|
315
|
-
children: n("bigconsole.settings.cache.enable.label", "Enable Cache")
|
|
316
|
-
}), /* @__PURE__ */ y("p", {
|
|
313
|
+
children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
317
314
|
style: W,
|
|
315
|
+
children: n("bigconsole.settings.cache.enable.label", "Enable Cache")
|
|
316
|
+
}), /* @__PURE__ */ b("p", {
|
|
317
|
+
style: G,
|
|
318
318
|
children: n("bigconsole.settings.cache.newSinkHelp", "Enable caching by default for new data sinks")
|
|
319
|
-
})] }), /* @__PURE__ */
|
|
320
|
-
onClick: () =>
|
|
319
|
+
})] }), /* @__PURE__ */ b("button", {
|
|
320
|
+
onClick: () => L("cacheEnabled", !S.cacheEnabled),
|
|
321
321
|
role: "switch",
|
|
322
|
-
"aria-checked":
|
|
322
|
+
"aria-checked": S.cacheEnabled,
|
|
323
323
|
"aria-label": n("bigconsole.settings.cache.enable.label", "Enable Cache"),
|
|
324
324
|
style: {
|
|
325
325
|
width: 44,
|
|
326
326
|
flexShrink: 0,
|
|
327
327
|
height: 24,
|
|
328
328
|
borderRadius: 12,
|
|
329
|
-
backgroundColor:
|
|
329
|
+
backgroundColor: S.cacheEnabled ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
|
|
330
330
|
border: "none",
|
|
331
331
|
cursor: "pointer",
|
|
332
332
|
position: "relative",
|
|
333
333
|
transition: "background-color 200ms"
|
|
334
334
|
},
|
|
335
|
-
children: /* @__PURE__ */
|
|
335
|
+
children: /* @__PURE__ */ b("div", { style: {
|
|
336
336
|
width: 18,
|
|
337
337
|
height: 18,
|
|
338
338
|
borderRadius: "50%",
|
|
339
339
|
backgroundColor: "var(--color-action-primary-text)",
|
|
340
340
|
position: "absolute",
|
|
341
341
|
top: 3,
|
|
342
|
-
left:
|
|
342
|
+
left: S.cacheEnabled ? 23 : 3,
|
|
343
343
|
transition: "left 200ms"
|
|
344
344
|
} })
|
|
345
345
|
})]
|
|
346
|
-
}),
|
|
347
|
-
/* @__PURE__ */
|
|
346
|
+
}), S.cacheEnabled && /* @__PURE__ */ x("div", { children: [
|
|
347
|
+
/* @__PURE__ */ b("label", {
|
|
348
348
|
htmlFor: "cache-ttl",
|
|
349
|
-
style:
|
|
349
|
+
style: W,
|
|
350
350
|
children: n("bigconsole.settings.cache.ttl.label", "Cache TTL (seconds)")
|
|
351
351
|
}),
|
|
352
|
-
/* @__PURE__ */
|
|
352
|
+
/* @__PURE__ */ b("input", {
|
|
353
353
|
id: "cache-ttl",
|
|
354
354
|
type: "number",
|
|
355
355
|
min: 30,
|
|
356
356
|
max: 3600,
|
|
357
|
-
value:
|
|
358
|
-
onChange: (e) =>
|
|
359
|
-
style:
|
|
357
|
+
value: S.cacheTTLSeconds,
|
|
358
|
+
onChange: (e) => L("cacheTTLSeconds", Math.min(3600, Math.max(30, Number(e.target.value) || 300))),
|
|
359
|
+
style: U
|
|
360
360
|
}),
|
|
361
|
-
/* @__PURE__ */
|
|
362
|
-
style:
|
|
361
|
+
/* @__PURE__ */ b("p", {
|
|
362
|
+
style: G,
|
|
363
363
|
children: n("bigconsole.settings.cache.ttl.help", "How long cached data is considered fresh (30-3600)")
|
|
364
364
|
})
|
|
365
365
|
] })]
|
|
366
366
|
})]
|
|
367
367
|
}),
|
|
368
|
-
/* @__PURE__ */
|
|
369
|
-
style:
|
|
370
|
-
children: [/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ x("div", {
|
|
369
|
+
style: K,
|
|
370
|
+
children: [/* @__PURE__ */ b("h2", {
|
|
371
371
|
style: {
|
|
372
372
|
fontSize: "var(--font-size-body-md)",
|
|
373
373
|
fontWeight: "var(--font-weight-semibold)",
|
|
@@ -375,125 +375,125 @@ var x = o(function() {
|
|
|
375
375
|
marginBottom: 16
|
|
376
376
|
},
|
|
377
377
|
children: n("bigconsole.settings.display.title", "Display")
|
|
378
|
-
}), /* @__PURE__ */
|
|
378
|
+
}), /* @__PURE__ */ x("div", {
|
|
379
379
|
className: "grid gap-form-gap md:grid-cols-3",
|
|
380
380
|
children: [
|
|
381
|
-
/* @__PURE__ */
|
|
381
|
+
/* @__PURE__ */ x("div", {
|
|
382
382
|
style: {
|
|
383
383
|
display: "flex",
|
|
384
384
|
alignItems: "center",
|
|
385
385
|
justifyContent: "space-between"
|
|
386
386
|
},
|
|
387
|
-
children: [/* @__PURE__ */
|
|
388
|
-
style: U,
|
|
389
|
-
children: n("bigconsole.settings.display.widgetBorders.label", "Show Widget Borders")
|
|
390
|
-
}), /* @__PURE__ */ y("p", {
|
|
387
|
+
children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
391
388
|
style: W,
|
|
389
|
+
children: n("bigconsole.settings.display.widgetBorders.label", "Show Widget Borders")
|
|
390
|
+
}), /* @__PURE__ */ b("p", {
|
|
391
|
+
style: G,
|
|
392
392
|
children: n("bigconsole.settings.display.widgetBorders.help", "Display borders around widgets in dashboards")
|
|
393
|
-
})] }), /* @__PURE__ */
|
|
394
|
-
onClick: () =>
|
|
393
|
+
})] }), /* @__PURE__ */ b("button", {
|
|
394
|
+
onClick: () => L("showWidgetBorders", !S.showWidgetBorders),
|
|
395
395
|
role: "switch",
|
|
396
|
-
"aria-checked":
|
|
396
|
+
"aria-checked": S.showWidgetBorders,
|
|
397
397
|
"aria-label": n("bigconsole.settings.display.widgetBorders.label", "Show Widget Borders"),
|
|
398
398
|
style: {
|
|
399
399
|
width: 44,
|
|
400
400
|
flexShrink: 0,
|
|
401
401
|
height: 24,
|
|
402
402
|
borderRadius: 12,
|
|
403
|
-
backgroundColor:
|
|
403
|
+
backgroundColor: S.showWidgetBorders ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
|
|
404
404
|
border: "none",
|
|
405
405
|
cursor: "pointer",
|
|
406
406
|
position: "relative",
|
|
407
407
|
transition: "background-color 200ms"
|
|
408
408
|
},
|
|
409
|
-
children: /* @__PURE__ */
|
|
409
|
+
children: /* @__PURE__ */ b("div", { style: {
|
|
410
410
|
width: 18,
|
|
411
411
|
height: 18,
|
|
412
412
|
borderRadius: "50%",
|
|
413
413
|
backgroundColor: "var(--color-action-primary-text)",
|
|
414
414
|
position: "absolute",
|
|
415
415
|
top: 3,
|
|
416
|
-
left:
|
|
416
|
+
left: S.showWidgetBorders ? 23 : 3,
|
|
417
417
|
transition: "left 200ms"
|
|
418
418
|
} })
|
|
419
419
|
})]
|
|
420
420
|
}),
|
|
421
|
-
/* @__PURE__ */
|
|
421
|
+
/* @__PURE__ */ x("div", {
|
|
422
422
|
style: {
|
|
423
423
|
display: "flex",
|
|
424
424
|
alignItems: "center",
|
|
425
425
|
justifyContent: "space-between"
|
|
426
426
|
},
|
|
427
|
-
children: [/* @__PURE__ */
|
|
428
|
-
style: U,
|
|
429
|
-
children: n("bigconsole.settings.display.compactMode.label", "Compact Mode")
|
|
430
|
-
}), /* @__PURE__ */ y("p", {
|
|
427
|
+
children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
431
428
|
style: W,
|
|
429
|
+
children: n("bigconsole.settings.display.compactMode.label", "Compact Mode")
|
|
430
|
+
}), /* @__PURE__ */ b("p", {
|
|
431
|
+
style: G,
|
|
432
432
|
children: n("bigconsole.settings.display.compactMode.help", "Reduce padding and spacing for more content")
|
|
433
|
-
})] }), /* @__PURE__ */
|
|
434
|
-
onClick: () =>
|
|
433
|
+
})] }), /* @__PURE__ */ b("button", {
|
|
434
|
+
onClick: () => L("compactMode", !S.compactMode),
|
|
435
435
|
role: "switch",
|
|
436
|
-
"aria-checked":
|
|
436
|
+
"aria-checked": S.compactMode,
|
|
437
437
|
"aria-label": n("bigconsole.settings.display.compactMode.label", "Compact Mode"),
|
|
438
438
|
style: {
|
|
439
439
|
width: 44,
|
|
440
440
|
flexShrink: 0,
|
|
441
441
|
height: 24,
|
|
442
442
|
borderRadius: 12,
|
|
443
|
-
backgroundColor:
|
|
443
|
+
backgroundColor: S.compactMode ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
|
|
444
444
|
border: "none",
|
|
445
445
|
cursor: "pointer",
|
|
446
446
|
position: "relative",
|
|
447
447
|
transition: "background-color 200ms"
|
|
448
448
|
},
|
|
449
|
-
children: /* @__PURE__ */
|
|
449
|
+
children: /* @__PURE__ */ b("div", { style: {
|
|
450
450
|
width: 18,
|
|
451
451
|
height: 18,
|
|
452
452
|
borderRadius: "50%",
|
|
453
453
|
backgroundColor: "var(--color-action-primary-text)",
|
|
454
454
|
position: "absolute",
|
|
455
455
|
top: 3,
|
|
456
|
-
left:
|
|
456
|
+
left: S.compactMode ? 23 : 3,
|
|
457
457
|
transition: "left 200ms"
|
|
458
458
|
} })
|
|
459
459
|
})]
|
|
460
460
|
}),
|
|
461
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ x("div", {
|
|
462
462
|
style: {
|
|
463
463
|
display: "flex",
|
|
464
464
|
alignItems: "center",
|
|
465
465
|
justifyContent: "space-between"
|
|
466
466
|
},
|
|
467
|
-
children: [/* @__PURE__ */
|
|
468
|
-
style: U,
|
|
469
|
-
children: n("bigconsole.settings.display.animations.label", "Animations")
|
|
470
|
-
}), /* @__PURE__ */ y("p", {
|
|
467
|
+
children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("label", {
|
|
471
468
|
style: W,
|
|
469
|
+
children: n("bigconsole.settings.display.animations.label", "Animations")
|
|
470
|
+
}), /* @__PURE__ */ b("p", {
|
|
471
|
+
style: G,
|
|
472
472
|
children: n("bigconsole.settings.display.animations.help", "Enable transition animations and effects")
|
|
473
|
-
})] }), /* @__PURE__ */
|
|
474
|
-
onClick: () =>
|
|
473
|
+
})] }), /* @__PURE__ */ b("button", {
|
|
474
|
+
onClick: () => L("animationsEnabled", !S.animationsEnabled),
|
|
475
475
|
role: "switch",
|
|
476
|
-
"aria-checked":
|
|
476
|
+
"aria-checked": S.animationsEnabled,
|
|
477
477
|
"aria-label": n("bigconsole.settings.display.animations.label", "Animations"),
|
|
478
478
|
style: {
|
|
479
479
|
width: 44,
|
|
480
480
|
flexShrink: 0,
|
|
481
481
|
height: 24,
|
|
482
482
|
borderRadius: 12,
|
|
483
|
-
backgroundColor:
|
|
483
|
+
backgroundColor: S.animationsEnabled ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
|
|
484
484
|
border: "none",
|
|
485
485
|
cursor: "pointer",
|
|
486
486
|
position: "relative",
|
|
487
487
|
transition: "background-color 200ms"
|
|
488
488
|
},
|
|
489
|
-
children: /* @__PURE__ */
|
|
489
|
+
children: /* @__PURE__ */ b("div", { style: {
|
|
490
490
|
width: 18,
|
|
491
491
|
height: 18,
|
|
492
492
|
borderRadius: "50%",
|
|
493
493
|
backgroundColor: "var(--color-action-primary-text)",
|
|
494
494
|
position: "absolute",
|
|
495
495
|
top: 3,
|
|
496
|
-
left:
|
|
496
|
+
left: S.animationsEnabled ? 23 : 3,
|
|
497
497
|
transition: "left 200ms"
|
|
498
498
|
} })
|
|
499
499
|
})]
|
|
@@ -503,8 +503,8 @@ var x = o(function() {
|
|
|
503
503
|
})
|
|
504
504
|
]
|
|
505
505
|
}),
|
|
506
|
-
/* @__PURE__ */
|
|
507
|
-
e ? /* @__PURE__ */
|
|
506
|
+
/* @__PURE__ */ b(t, {}),
|
|
507
|
+
e ? /* @__PURE__ */ b("div", {
|
|
508
508
|
"data-testid": "bigconsole-settings-extension",
|
|
509
509
|
children: e
|
|
510
510
|
}) : null
|
|
@@ -512,4 +512,4 @@ var x = o(function() {
|
|
|
512
512
|
})
|
|
513
513
|
});
|
|
514
514
|
};
|
|
515
|
-
export {
|
|
515
|
+
export { S as SettingsPage, S as default };
|