@burdenoff/microfe-bigconsole 2026.1008.11 → 2026.1008.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bigconsole/BigConsoleRoutes.d.ts.map +1 -1
- package/dist/bigconsole/BigConsoleRoutes.js +136 -127
- package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
- package/dist/bigconsole/assistant/assistantProduct.d.ts.map +1 -1
- package/dist/bigconsole/assistant/assistantProduct.js +3 -1
- package/dist/bigconsole/assistant/assistantProduct.js.map +1 -1
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +31 -31
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +44 -44
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +36 -36
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +59 -59
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +15 -15
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +41 -41
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +34 -34
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +110 -110
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +21 -21
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +91 -91
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -101
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +31 -31
- package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.js +15 -15
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +46 -46
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +37 -37
- package/dist/bigconsole/components/datasink/AlertRuleEditor.js +66 -66
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
- package/dist/bigconsole/components/datasink/DataSinkCard.js +29 -29
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +47 -47
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +91 -91
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
- package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
- package/dist/bigconsole/components/parser/ImportParserDialog.js +120 -120
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +10 -10
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +27 -27
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +30 -30
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +4 -4
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +93 -93
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.d.ts.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +280 -273
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +4 -4
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
- package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
- package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
- package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
- package/dist/bigconsole/components/workflow/WorkflowOpenGuard.js +15 -15
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +15 -15
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +9 -9
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +67 -67
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +15 -0
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +34 -0
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js.map +1 -0
- package/dist/bigconsole/hooks/useDrilldown.js +3 -3
- package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
- package/dist/bigconsole/pages/AdminPage.js +130 -130
- package/dist/bigconsole/pages/DashboardBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DashboardBuilderPage.js +72 -60
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +1 -1
- package/dist/bigconsole/pages/DataSinkAlertsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DataSinkAlertsPage.js +30 -23
- package/dist/bigconsole/pages/DataSinkAlertsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +272 -263
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +1 -1
- package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
- package/dist/bigconsole/pages/InsightsPage.js +181 -181
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/OverviewPage.js +47 -47
- package/dist/bigconsole/pages/OverviewPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +227 -211
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +97 -97
- package/dist/bigconsole/pages/PipelineBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +256 -214
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
- package/dist/bigconsole/pages/PipelinesPage.js +88 -88
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +179 -173
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
- package/dist/bigconsole/pages/WorkflowViewPage.js +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +141 -141
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +12 -12
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +34 -34
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +79 -79
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
- package/dist/bigconsole/store/widgetStore.d.ts +12 -0
- package/dist/bigconsole/store/widgetStore.d.ts.map +1 -1
- package/dist/bigconsole/store/widgetStore.js +3 -1
- package/dist/bigconsole/store/widgetStore.js.map +1 -1
- package/dist/bigconsole/utils/formDirty.d.ts +83 -0
- package/dist/bigconsole/utils/formDirty.d.ts.map +1 -0
- package/dist/bigconsole/utils/formDirty.js +23 -0
- package/dist/bigconsole/utils/formDirty.js.map +1 -0
- package/dist/bigconsole/utils/layoutBaseline.d.ts +131 -0
- package/dist/bigconsole/utils/layoutBaseline.d.ts.map +1 -0
- package/dist/bigconsole/utils/layoutBaseline.js +98 -0
- package/dist/bigconsole/utils/layoutBaseline.js.map +1 -0
- package/dist/translations/en.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,31 +1,37 @@
|
|
|
1
1
|
import { DEFAULT_SETTINGS as e, loadBigConsoleSettings as t, saveBigConsoleSettings as n } from "../hooks/useBigConsoleSettings.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { isDirty as r } from "../utils/formDirty.js";
|
|
3
|
+
import { memo as i, useCallback as a, useEffect as o, useState as s } from "react";
|
|
4
|
+
import { RotateCcw as c, Save as l, Settings as u } from "lucide-react";
|
|
5
|
+
import { AuroraBackground as d, EmphasisPanel as f, GradientText as p, PagePurpose as m } from "@burdenoff/fe-libs/ui";
|
|
6
|
+
import { useUnsavedChanges as h } from "@burdenoff/fe-libs/shared/hooks";
|
|
6
7
|
import { useI18n as g } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
8
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
7
9
|
//#region src/bigconsole/pages/SettingsPage.tsx
|
|
8
|
-
var
|
|
9
|
-
let { t:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
var y = i(function() {
|
|
11
|
+
let { t: i } = g(), [y, b] = s(t), [x, S] = s(!1), [C, w] = s(!1), [T, E] = s(y);
|
|
12
|
+
h({
|
|
13
|
+
id: "bigconsole-settings",
|
|
14
|
+
label: i("bigconsole.assistant.unsaved.settingsPage", "the settings page"),
|
|
15
|
+
dirty: r(y, T)
|
|
16
|
+
}), o(() => {
|
|
17
|
+
if (x) {
|
|
18
|
+
let e = setTimeout(() => S(!1), 2e3);
|
|
13
19
|
return () => clearTimeout(e);
|
|
14
20
|
}
|
|
15
|
-
}, [
|
|
16
|
-
let
|
|
17
|
-
|
|
21
|
+
}, [x]);
|
|
22
|
+
let D = a((e, t) => {
|
|
23
|
+
b((n) => ({
|
|
18
24
|
...n,
|
|
19
25
|
[e]: t
|
|
20
26
|
}));
|
|
21
|
-
}, []),
|
|
22
|
-
let e = n(
|
|
23
|
-
|
|
24
|
-
}, [
|
|
25
|
-
|
|
27
|
+
}, []), O = a(() => {
|
|
28
|
+
let e = n(y);
|
|
29
|
+
S(e), w(!e), e && E(y);
|
|
30
|
+
}, [y]), k = a(() => {
|
|
31
|
+
b({ ...e });
|
|
26
32
|
let t = n(e);
|
|
27
|
-
|
|
28
|
-
}, []),
|
|
33
|
+
S(t), w(!t), t && E({ ...e });
|
|
34
|
+
}, []), A = {
|
|
29
35
|
width: "100%",
|
|
30
36
|
padding: "8px 12px",
|
|
31
37
|
borderRadius: "var(--radius-button)",
|
|
@@ -33,17 +39,17 @@ var _ = r(function() {
|
|
|
33
39
|
backgroundColor: "var(--color-bg-canvas)",
|
|
34
40
|
color: "var(--color-text-primary)",
|
|
35
41
|
fontSize: "var(--font-size-body-sm)"
|
|
36
|
-
},
|
|
42
|
+
}, j = {
|
|
37
43
|
display: "block",
|
|
38
44
|
fontSize: "var(--font-size-body-sm)",
|
|
39
45
|
fontWeight: "var(--font-weight-medium)",
|
|
40
46
|
color: "var(--color-text-primary)",
|
|
41
47
|
marginBottom: 4
|
|
42
|
-
},
|
|
48
|
+
}, M = {
|
|
43
49
|
fontSize: "var(--font-size-body-sm)",
|
|
44
50
|
color: "var(--color-text-muted)",
|
|
45
51
|
marginTop: 4
|
|
46
|
-
},
|
|
52
|
+
}, N = {
|
|
47
53
|
backgroundColor: "var(--color-bg-surface)",
|
|
48
54
|
border: "1px solid var(--color-border-seam)",
|
|
49
55
|
borderRadius: "var(--radius-card)",
|
|
@@ -51,19 +57,19 @@ var _ = r(function() {
|
|
|
51
57
|
marginBottom: "var(--space-sectionGap)",
|
|
52
58
|
boxShadow: "var(--shadow-pop)"
|
|
53
59
|
};
|
|
54
|
-
return /* @__PURE__ */
|
|
60
|
+
return /* @__PURE__ */ _("div", {
|
|
55
61
|
style: {
|
|
56
62
|
minHeight: "100vh",
|
|
57
63
|
backgroundColor: "var(--color-bg-canvas)"
|
|
58
64
|
},
|
|
59
|
-
children: /* @__PURE__ */
|
|
65
|
+
children: /* @__PURE__ */ v("div", {
|
|
60
66
|
style: {
|
|
61
67
|
padding: "var(--space-pagePadding)",
|
|
62
68
|
maxWidth: 1440,
|
|
63
69
|
margin: "0 auto"
|
|
64
70
|
},
|
|
65
71
|
children: [
|
|
66
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ v("div", {
|
|
67
73
|
className: "relative overflow-hidden rounded-card border border-border-seam bg-gloss-card p-6",
|
|
68
74
|
style: {
|
|
69
75
|
display: "flex",
|
|
@@ -74,39 +80,39 @@ var _ = r(function() {
|
|
|
74
80
|
gap: "var(--space-formGap)"
|
|
75
81
|
},
|
|
76
82
|
children: [
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ _(d, { intensity: "subtle" }),
|
|
84
|
+
/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ v("div", {
|
|
79
85
|
style: {
|
|
80
86
|
display: "flex",
|
|
81
87
|
alignItems: "center",
|
|
82
88
|
gap: "var(--space-iconGap)"
|
|
83
89
|
},
|
|
84
|
-
children: [/* @__PURE__ */
|
|
90
|
+
children: [/* @__PURE__ */ _(u, {
|
|
85
91
|
size: 24,
|
|
86
92
|
style: { color: "var(--color-text-primary)" }
|
|
87
|
-
}), /* @__PURE__ */
|
|
93
|
+
}), /* @__PURE__ */ _("h1", {
|
|
88
94
|
style: {
|
|
89
95
|
fontSize: "var(--font-size-heading-h4)",
|
|
90
96
|
fontWeight: "var(--font-weight-bold)",
|
|
91
97
|
color: "var(--color-text-primary)"
|
|
92
98
|
},
|
|
93
|
-
children: /* @__PURE__ */
|
|
99
|
+
children: /* @__PURE__ */ _(p, { children: i("bigconsole.settings.header.title", "Settings") })
|
|
94
100
|
})]
|
|
95
|
-
}), /* @__PURE__ */
|
|
101
|
+
}), /* @__PURE__ */ _("p", {
|
|
96
102
|
style: {
|
|
97
103
|
fontSize: "var(--font-size-body-md)",
|
|
98
104
|
color: "var(--color-text-secondary)",
|
|
99
105
|
marginTop: 4
|
|
100
106
|
},
|
|
101
|
-
children:
|
|
107
|
+
children: i("bigconsole.settings.header.subtitle", "Configure BigConsole preferences")
|
|
102
108
|
})] }),
|
|
103
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ v("div", {
|
|
104
110
|
style: {
|
|
105
111
|
display: "flex",
|
|
106
112
|
gap: 8
|
|
107
113
|
},
|
|
108
|
-
children: [/* @__PURE__ */
|
|
109
|
-
onClick:
|
|
114
|
+
children: [/* @__PURE__ */ v("button", {
|
|
115
|
+
onClick: k,
|
|
110
116
|
style: {
|
|
111
117
|
display: "flex",
|
|
112
118
|
alignItems: "center",
|
|
@@ -120,19 +126,19 @@ var _ = r(function() {
|
|
|
120
126
|
cursor: "pointer"
|
|
121
127
|
},
|
|
122
128
|
children: [
|
|
123
|
-
/* @__PURE__ */
|
|
129
|
+
/* @__PURE__ */ _(c, { size: 14 }),
|
|
124
130
|
" ",
|
|
125
|
-
|
|
131
|
+
i("bigconsole.settings.actions.reset", "Reset")
|
|
126
132
|
]
|
|
127
|
-
}), /* @__PURE__ */
|
|
128
|
-
onClick:
|
|
133
|
+
}), /* @__PURE__ */ v("button", {
|
|
134
|
+
onClick: O,
|
|
129
135
|
style: {
|
|
130
136
|
display: "flex",
|
|
131
137
|
alignItems: "center",
|
|
132
138
|
gap: 6,
|
|
133
139
|
padding: "8px 16px",
|
|
134
140
|
borderRadius: "var(--radius-button)",
|
|
135
|
-
backgroundColor:
|
|
141
|
+
backgroundColor: x ? "var(--color-status-success-bg)" : "var(--color-action-primary-bg)",
|
|
136
142
|
color: "var(--color-action-primary-text)",
|
|
137
143
|
fontWeight: "var(--font-weight-medium)",
|
|
138
144
|
fontSize: "var(--font-size-body-sm)",
|
|
@@ -141,324 +147,324 @@ var _ = r(function() {
|
|
|
141
147
|
transition: "background-color 200ms"
|
|
142
148
|
},
|
|
143
149
|
children: [
|
|
144
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ _(l, { size: 14 }),
|
|
145
151
|
" ",
|
|
146
|
-
|
|
152
|
+
x ? i("bigconsole.settings.actions.savedLocally", "Saved locally") : i("bigconsole.settings.actions.saveLocally", "Save locally")
|
|
147
153
|
]
|
|
148
154
|
})]
|
|
149
155
|
})
|
|
150
156
|
]
|
|
151
157
|
}),
|
|
152
|
-
|
|
158
|
+
C && /* @__PURE__ */ _("p", {
|
|
153
159
|
role: "alert",
|
|
154
160
|
className: "mb-form-gap text-status-error-text",
|
|
155
|
-
children:
|
|
161
|
+
children: i("bigconsole.settings.actions.saveError", "Your browser could not save these preferences. Try again.")
|
|
156
162
|
}),
|
|
157
|
-
/* @__PURE__ */ m
|
|
163
|
+
/* @__PURE__ */ _(m, {
|
|
158
164
|
className: "mb-[var(--space-sectionGap)]",
|
|
159
|
-
children:
|
|
165
|
+
children: i("bigconsole.settings.localDefaultsPurpose", "These browser-local defaults apply when you add dashboard pages, widgets and data sinks. Display preferences update existing widgets in this browser. They do not change existing page layouts, widget refresh schedules or data sink cache settings, and are not shared with your team.")
|
|
160
166
|
}),
|
|
161
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ v(f, {
|
|
162
168
|
className: "mb-[var(--space-sectionGap)] p-[var(--space-cardPadding)]",
|
|
163
|
-
children: [/* @__PURE__ */
|
|
169
|
+
children: [/* @__PURE__ */ _("h2", {
|
|
164
170
|
style: {
|
|
165
171
|
fontSize: "var(--font-size-body-md)",
|
|
166
172
|
fontWeight: "var(--font-weight-semibold)",
|
|
167
173
|
color: "var(--color-text-primary)",
|
|
168
174
|
marginBottom: 16
|
|
169
175
|
},
|
|
170
|
-
children:
|
|
171
|
-
}), /* @__PURE__ */
|
|
176
|
+
children: i("bigconsole.settings.dashboardDefaults.title", "Dashboard Defaults")
|
|
177
|
+
}), /* @__PURE__ */ v("div", {
|
|
172
178
|
className: "grid gap-form-gap md:grid-cols-3",
|
|
173
179
|
children: [
|
|
174
|
-
/* @__PURE__ */
|
|
175
|
-
/* @__PURE__ */
|
|
180
|
+
/* @__PURE__ */ v("div", { children: [
|
|
181
|
+
/* @__PURE__ */ _("label", {
|
|
176
182
|
htmlFor: "grid-cols",
|
|
177
|
-
style:
|
|
178
|
-
children:
|
|
183
|
+
style: j,
|
|
184
|
+
children: i("bigconsole.settings.dashboardDefaults.gridColumns.label", "Grid Columns")
|
|
179
185
|
}),
|
|
180
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ _("input", {
|
|
181
187
|
id: "grid-cols",
|
|
182
188
|
type: "number",
|
|
183
189
|
min: 4,
|
|
184
190
|
max: 24,
|
|
185
|
-
value:
|
|
186
|
-
onChange: (e) =>
|
|
187
|
-
style:
|
|
191
|
+
value: y.defaultGridColumns,
|
|
192
|
+
onChange: (e) => D("defaultGridColumns", Math.min(24, Math.max(4, Number(e.target.value) || 12))),
|
|
193
|
+
style: A
|
|
188
194
|
}),
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
-
style:
|
|
191
|
-
children:
|
|
195
|
+
/* @__PURE__ */ _("p", {
|
|
196
|
+
style: M,
|
|
197
|
+
children: i("bigconsole.settings.dashboardDefaults.gridColumns.help", "Number of columns in the dashboard grid (4-24)")
|
|
192
198
|
})
|
|
193
199
|
] }),
|
|
194
|
-
/* @__PURE__ */
|
|
195
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ v("div", { children: [
|
|
201
|
+
/* @__PURE__ */ _("label", {
|
|
196
202
|
htmlFor: "widget-height",
|
|
197
|
-
style:
|
|
198
|
-
children:
|
|
203
|
+
style: j,
|
|
204
|
+
children: i("bigconsole.settings.dashboardDefaults.widgetHeight.label", "Default Widget Height")
|
|
199
205
|
}),
|
|
200
|
-
/* @__PURE__ */
|
|
206
|
+
/* @__PURE__ */ _("input", {
|
|
201
207
|
id: "widget-height",
|
|
202
208
|
type: "number",
|
|
203
209
|
min: 2,
|
|
204
210
|
max: 12,
|
|
205
|
-
value:
|
|
206
|
-
onChange: (e) =>
|
|
207
|
-
style:
|
|
211
|
+
value: y.defaultWidgetHeight,
|
|
212
|
+
onChange: (e) => D("defaultWidgetHeight", Math.min(12, Math.max(1, Number(e.target.value) || 4))),
|
|
213
|
+
style: A
|
|
208
214
|
}),
|
|
209
|
-
/* @__PURE__ */
|
|
210
|
-
style:
|
|
211
|
-
children:
|
|
215
|
+
/* @__PURE__ */ _("p", {
|
|
216
|
+
style: M,
|
|
217
|
+
children: i("bigconsole.settings.dashboardDefaults.widgetHeight.help", "Default height units for new widgets (2-12)")
|
|
212
218
|
})
|
|
213
219
|
] }),
|
|
214
|
-
/* @__PURE__ */
|
|
215
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ v("div", { children: [
|
|
221
|
+
/* @__PURE__ */ _("label", {
|
|
216
222
|
htmlFor: "refresh-interval",
|
|
217
|
-
style:
|
|
218
|
-
children:
|
|
223
|
+
style: j,
|
|
224
|
+
children: i("bigconsole.settings.dashboardDefaults.refreshInterval.label", "Auto-Refresh Interval (seconds)")
|
|
219
225
|
}),
|
|
220
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ v("select", {
|
|
221
227
|
id: "refresh-interval",
|
|
222
|
-
value:
|
|
223
|
-
onChange: (e) =>
|
|
224
|
-
style:
|
|
228
|
+
value: y.defaultRefreshInterval,
|
|
229
|
+
onChange: (e) => D("defaultRefreshInterval", parseInt(e.target.value)),
|
|
230
|
+
style: A,
|
|
225
231
|
children: [
|
|
226
|
-
/* @__PURE__ */
|
|
232
|
+
/* @__PURE__ */ _("option", {
|
|
227
233
|
value: 0,
|
|
228
|
-
children:
|
|
234
|
+
children: i("bigconsole.settings.dashboardDefaults.refreshInterval.disabled", "Disabled")
|
|
229
235
|
}),
|
|
230
|
-
/* @__PURE__ */
|
|
236
|
+
/* @__PURE__ */ _("option", {
|
|
231
237
|
value: 10,
|
|
232
|
-
children:
|
|
238
|
+
children: i("bigconsole.settings.dashboardDefaults.refreshInterval.seconds10", "10 seconds")
|
|
233
239
|
}),
|
|
234
|
-
/* @__PURE__ */
|
|
240
|
+
/* @__PURE__ */ _("option", {
|
|
235
241
|
value: 30,
|
|
236
|
-
children:
|
|
242
|
+
children: i("bigconsole.settings.dashboardDefaults.refreshInterval.seconds30", "30 seconds")
|
|
237
243
|
}),
|
|
238
|
-
/* @__PURE__ */
|
|
244
|
+
/* @__PURE__ */ _("option", {
|
|
239
245
|
value: 60,
|
|
240
|
-
children:
|
|
246
|
+
children: i("bigconsole.settings.dashboardDefaults.refreshInterval.minute1", "1 minute")
|
|
241
247
|
}),
|
|
242
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ _("option", {
|
|
243
249
|
value: 300,
|
|
244
|
-
children:
|
|
250
|
+
children: i("bigconsole.settings.dashboardDefaults.refreshInterval.minutes5", "5 minutes")
|
|
245
251
|
}),
|
|
246
|
-
/* @__PURE__ */
|
|
252
|
+
/* @__PURE__ */ _("option", {
|
|
247
253
|
value: 600,
|
|
248
|
-
children:
|
|
254
|
+
children: i("bigconsole.settings.dashboardDefaults.refreshInterval.minutes10", "10 minutes")
|
|
249
255
|
})
|
|
250
256
|
]
|
|
251
257
|
}),
|
|
252
|
-
/* @__PURE__ */
|
|
253
|
-
style:
|
|
254
|
-
children:
|
|
258
|
+
/* @__PURE__ */ _("p", {
|
|
259
|
+
style: M,
|
|
260
|
+
children: i("bigconsole.settings.dashboardDefaults.refreshInterval.help", "How often widgets refresh their data automatically")
|
|
255
261
|
})
|
|
256
262
|
] })
|
|
257
263
|
]
|
|
258
264
|
})]
|
|
259
265
|
}),
|
|
260
|
-
/* @__PURE__ */
|
|
261
|
-
style:
|
|
262
|
-
children: [/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ v("div", {
|
|
267
|
+
style: N,
|
|
268
|
+
children: [/* @__PURE__ */ _("h2", {
|
|
263
269
|
style: {
|
|
264
270
|
fontSize: "var(--font-size-body-md)",
|
|
265
271
|
fontWeight: "var(--font-weight-semibold)",
|
|
266
272
|
color: "var(--color-text-primary)",
|
|
267
273
|
marginBottom: 16
|
|
268
274
|
},
|
|
269
|
-
children:
|
|
270
|
-
}), /* @__PURE__ */
|
|
275
|
+
children: i("bigconsole.settings.cache.title", "Cache")
|
|
276
|
+
}), /* @__PURE__ */ v("div", {
|
|
271
277
|
className: "grid gap-form-gap md:grid-cols-2",
|
|
272
|
-
children: [/* @__PURE__ */
|
|
278
|
+
children: [/* @__PURE__ */ v("div", {
|
|
273
279
|
style: {
|
|
274
280
|
display: "flex",
|
|
275
281
|
alignItems: "center",
|
|
276
282
|
justifyContent: "space-between"
|
|
277
283
|
},
|
|
278
|
-
children: [/* @__PURE__ */
|
|
279
|
-
style:
|
|
280
|
-
children:
|
|
281
|
-
}), /* @__PURE__ */
|
|
282
|
-
style:
|
|
283
|
-
children:
|
|
284
|
-
})] }), /* @__PURE__ */
|
|
285
|
-
onClick: () =>
|
|
284
|
+
children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
285
|
+
style: j,
|
|
286
|
+
children: i("bigconsole.settings.cache.enable.label", "Enable Cache")
|
|
287
|
+
}), /* @__PURE__ */ _("p", {
|
|
288
|
+
style: M,
|
|
289
|
+
children: i("bigconsole.settings.cache.newSinkHelp", "Enable caching by default for new data sinks")
|
|
290
|
+
})] }), /* @__PURE__ */ _("button", {
|
|
291
|
+
onClick: () => D("cacheEnabled", !y.cacheEnabled),
|
|
286
292
|
role: "switch",
|
|
287
|
-
"aria-checked":
|
|
288
|
-
"aria-label":
|
|
293
|
+
"aria-checked": y.cacheEnabled,
|
|
294
|
+
"aria-label": i("bigconsole.settings.cache.enable.label", "Enable Cache"),
|
|
289
295
|
style: {
|
|
290
296
|
width: 44,
|
|
291
297
|
flexShrink: 0,
|
|
292
298
|
height: 24,
|
|
293
299
|
borderRadius: 12,
|
|
294
|
-
backgroundColor:
|
|
300
|
+
backgroundColor: y.cacheEnabled ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
|
|
295
301
|
border: "none",
|
|
296
302
|
cursor: "pointer",
|
|
297
303
|
position: "relative",
|
|
298
304
|
transition: "background-color 200ms"
|
|
299
305
|
},
|
|
300
|
-
children: /* @__PURE__ */
|
|
306
|
+
children: /* @__PURE__ */ _("div", { style: {
|
|
301
307
|
width: 18,
|
|
302
308
|
height: 18,
|
|
303
309
|
borderRadius: "50%",
|
|
304
310
|
backgroundColor: "var(--color-action-primary-text)",
|
|
305
311
|
position: "absolute",
|
|
306
312
|
top: 3,
|
|
307
|
-
left:
|
|
313
|
+
left: y.cacheEnabled ? 23 : 3,
|
|
308
314
|
transition: "left 200ms"
|
|
309
315
|
} })
|
|
310
316
|
})]
|
|
311
|
-
}),
|
|
312
|
-
/* @__PURE__ */
|
|
317
|
+
}), y.cacheEnabled && /* @__PURE__ */ v("div", { children: [
|
|
318
|
+
/* @__PURE__ */ _("label", {
|
|
313
319
|
htmlFor: "cache-ttl",
|
|
314
|
-
style:
|
|
315
|
-
children:
|
|
320
|
+
style: j,
|
|
321
|
+
children: i("bigconsole.settings.cache.ttl.label", "Cache TTL (seconds)")
|
|
316
322
|
}),
|
|
317
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ _("input", {
|
|
318
324
|
id: "cache-ttl",
|
|
319
325
|
type: "number",
|
|
320
326
|
min: 30,
|
|
321
327
|
max: 3600,
|
|
322
|
-
value:
|
|
323
|
-
onChange: (e) =>
|
|
324
|
-
style:
|
|
328
|
+
value: y.cacheTTLSeconds,
|
|
329
|
+
onChange: (e) => D("cacheTTLSeconds", Math.min(86400, Math.max(0, Number(e.target.value)))),
|
|
330
|
+
style: A
|
|
325
331
|
}),
|
|
326
|
-
/* @__PURE__ */
|
|
327
|
-
style:
|
|
328
|
-
children:
|
|
332
|
+
/* @__PURE__ */ _("p", {
|
|
333
|
+
style: M,
|
|
334
|
+
children: i("bigconsole.settings.cache.ttl.help", "How long cached data is considered fresh (30-3600)")
|
|
329
335
|
})
|
|
330
336
|
] })]
|
|
331
337
|
})]
|
|
332
338
|
}),
|
|
333
|
-
/* @__PURE__ */
|
|
334
|
-
style:
|
|
335
|
-
children: [/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ v("div", {
|
|
340
|
+
style: N,
|
|
341
|
+
children: [/* @__PURE__ */ _("h2", {
|
|
336
342
|
style: {
|
|
337
343
|
fontSize: "var(--font-size-body-md)",
|
|
338
344
|
fontWeight: "var(--font-weight-semibold)",
|
|
339
345
|
color: "var(--color-text-primary)",
|
|
340
346
|
marginBottom: 16
|
|
341
347
|
},
|
|
342
|
-
children:
|
|
343
|
-
}), /* @__PURE__ */
|
|
348
|
+
children: i("bigconsole.settings.display.title", "Display")
|
|
349
|
+
}), /* @__PURE__ */ v("div", {
|
|
344
350
|
className: "grid gap-form-gap md:grid-cols-3",
|
|
345
351
|
children: [
|
|
346
|
-
/* @__PURE__ */
|
|
352
|
+
/* @__PURE__ */ v("div", {
|
|
347
353
|
style: {
|
|
348
354
|
display: "flex",
|
|
349
355
|
alignItems: "center",
|
|
350
356
|
justifyContent: "space-between"
|
|
351
357
|
},
|
|
352
|
-
children: [/* @__PURE__ */
|
|
353
|
-
style:
|
|
354
|
-
children:
|
|
355
|
-
}), /* @__PURE__ */
|
|
356
|
-
style:
|
|
357
|
-
children:
|
|
358
|
-
})] }), /* @__PURE__ */
|
|
359
|
-
onClick: () =>
|
|
358
|
+
children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
359
|
+
style: j,
|
|
360
|
+
children: i("bigconsole.settings.display.widgetBorders.label", "Show Widget Borders")
|
|
361
|
+
}), /* @__PURE__ */ _("p", {
|
|
362
|
+
style: M,
|
|
363
|
+
children: i("bigconsole.settings.display.widgetBorders.help", "Display borders around widgets in dashboards")
|
|
364
|
+
})] }), /* @__PURE__ */ _("button", {
|
|
365
|
+
onClick: () => D("showWidgetBorders", !y.showWidgetBorders),
|
|
360
366
|
role: "switch",
|
|
361
|
-
"aria-checked":
|
|
362
|
-
"aria-label":
|
|
367
|
+
"aria-checked": y.showWidgetBorders,
|
|
368
|
+
"aria-label": i("bigconsole.settings.display.widgetBorders.label", "Show Widget Borders"),
|
|
363
369
|
style: {
|
|
364
370
|
width: 44,
|
|
365
371
|
flexShrink: 0,
|
|
366
372
|
height: 24,
|
|
367
373
|
borderRadius: 12,
|
|
368
|
-
backgroundColor:
|
|
374
|
+
backgroundColor: y.showWidgetBorders ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
|
|
369
375
|
border: "none",
|
|
370
376
|
cursor: "pointer",
|
|
371
377
|
position: "relative",
|
|
372
378
|
transition: "background-color 200ms"
|
|
373
379
|
},
|
|
374
|
-
children: /* @__PURE__ */
|
|
380
|
+
children: /* @__PURE__ */ _("div", { style: {
|
|
375
381
|
width: 18,
|
|
376
382
|
height: 18,
|
|
377
383
|
borderRadius: "50%",
|
|
378
384
|
backgroundColor: "var(--color-action-primary-text)",
|
|
379
385
|
position: "absolute",
|
|
380
386
|
top: 3,
|
|
381
|
-
left:
|
|
387
|
+
left: y.showWidgetBorders ? 23 : 3,
|
|
382
388
|
transition: "left 200ms"
|
|
383
389
|
} })
|
|
384
390
|
})]
|
|
385
391
|
}),
|
|
386
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ v("div", {
|
|
387
393
|
style: {
|
|
388
394
|
display: "flex",
|
|
389
395
|
alignItems: "center",
|
|
390
396
|
justifyContent: "space-between"
|
|
391
397
|
},
|
|
392
|
-
children: [/* @__PURE__ */
|
|
393
|
-
style:
|
|
394
|
-
children:
|
|
395
|
-
}), /* @__PURE__ */
|
|
396
|
-
style:
|
|
397
|
-
children:
|
|
398
|
-
})] }), /* @__PURE__ */
|
|
399
|
-
onClick: () =>
|
|
398
|
+
children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
399
|
+
style: j,
|
|
400
|
+
children: i("bigconsole.settings.display.compactMode.label", "Compact Mode")
|
|
401
|
+
}), /* @__PURE__ */ _("p", {
|
|
402
|
+
style: M,
|
|
403
|
+
children: i("bigconsole.settings.display.compactMode.help", "Reduce padding and spacing for more content")
|
|
404
|
+
})] }), /* @__PURE__ */ _("button", {
|
|
405
|
+
onClick: () => D("compactMode", !y.compactMode),
|
|
400
406
|
role: "switch",
|
|
401
|
-
"aria-checked":
|
|
402
|
-
"aria-label":
|
|
407
|
+
"aria-checked": y.compactMode,
|
|
408
|
+
"aria-label": i("bigconsole.settings.display.compactMode.label", "Compact Mode"),
|
|
403
409
|
style: {
|
|
404
410
|
width: 44,
|
|
405
411
|
flexShrink: 0,
|
|
406
412
|
height: 24,
|
|
407
413
|
borderRadius: 12,
|
|
408
|
-
backgroundColor:
|
|
414
|
+
backgroundColor: y.compactMode ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
|
|
409
415
|
border: "none",
|
|
410
416
|
cursor: "pointer",
|
|
411
417
|
position: "relative",
|
|
412
418
|
transition: "background-color 200ms"
|
|
413
419
|
},
|
|
414
|
-
children: /* @__PURE__ */
|
|
420
|
+
children: /* @__PURE__ */ _("div", { style: {
|
|
415
421
|
width: 18,
|
|
416
422
|
height: 18,
|
|
417
423
|
borderRadius: "50%",
|
|
418
424
|
backgroundColor: "var(--color-action-primary-text)",
|
|
419
425
|
position: "absolute",
|
|
420
426
|
top: 3,
|
|
421
|
-
left:
|
|
427
|
+
left: y.compactMode ? 23 : 3,
|
|
422
428
|
transition: "left 200ms"
|
|
423
429
|
} })
|
|
424
430
|
})]
|
|
425
431
|
}),
|
|
426
|
-
/* @__PURE__ */
|
|
432
|
+
/* @__PURE__ */ v("div", {
|
|
427
433
|
style: {
|
|
428
434
|
display: "flex",
|
|
429
435
|
alignItems: "center",
|
|
430
436
|
justifyContent: "space-between"
|
|
431
437
|
},
|
|
432
|
-
children: [/* @__PURE__ */
|
|
433
|
-
style:
|
|
434
|
-
children:
|
|
435
|
-
}), /* @__PURE__ */
|
|
436
|
-
style:
|
|
437
|
-
children:
|
|
438
|
-
})] }), /* @__PURE__ */
|
|
439
|
-
onClick: () =>
|
|
438
|
+
children: [/* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("label", {
|
|
439
|
+
style: j,
|
|
440
|
+
children: i("bigconsole.settings.display.animations.label", "Animations")
|
|
441
|
+
}), /* @__PURE__ */ _("p", {
|
|
442
|
+
style: M,
|
|
443
|
+
children: i("bigconsole.settings.display.animations.help", "Enable transition animations and effects")
|
|
444
|
+
})] }), /* @__PURE__ */ _("button", {
|
|
445
|
+
onClick: () => D("animationsEnabled", !y.animationsEnabled),
|
|
440
446
|
role: "switch",
|
|
441
|
-
"aria-checked":
|
|
442
|
-
"aria-label":
|
|
447
|
+
"aria-checked": y.animationsEnabled,
|
|
448
|
+
"aria-label": i("bigconsole.settings.display.animations.label", "Animations"),
|
|
443
449
|
style: {
|
|
444
450
|
width: 44,
|
|
445
451
|
flexShrink: 0,
|
|
446
452
|
height: 24,
|
|
447
453
|
borderRadius: 12,
|
|
448
|
-
backgroundColor:
|
|
454
|
+
backgroundColor: y.animationsEnabled ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
|
|
449
455
|
border: "none",
|
|
450
456
|
cursor: "pointer",
|
|
451
457
|
position: "relative",
|
|
452
458
|
transition: "background-color 200ms"
|
|
453
459
|
},
|
|
454
|
-
children: /* @__PURE__ */
|
|
460
|
+
children: /* @__PURE__ */ _("div", { style: {
|
|
455
461
|
width: 18,
|
|
456
462
|
height: 18,
|
|
457
463
|
borderRadius: "50%",
|
|
458
464
|
backgroundColor: "var(--color-action-primary-text)",
|
|
459
465
|
position: "absolute",
|
|
460
466
|
top: 3,
|
|
461
|
-
left:
|
|
467
|
+
left: y.animationsEnabled ? 23 : 3,
|
|
462
468
|
transition: "left 200ms"
|
|
463
469
|
} })
|
|
464
470
|
})]
|
|
@@ -471,6 +477,6 @@ var _ = r(function() {
|
|
|
471
477
|
});
|
|
472
478
|
});
|
|
473
479
|
//#endregion
|
|
474
|
-
export {
|
|
480
|
+
export { y as SettingsPage, y as default };
|
|
475
481
|
|
|
476
482
|
//# sourceMappingURL=SettingsPage.js.map
|