@burdenoff/microfe-bigconsole 2026.1012.3 → 2026.1012.5

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.
Files changed (158) hide show
  1. package/dist/bigconsole/BigConsoleRoutes.js +149 -140
  2. package/dist/bigconsole/assistant/assistantApi.js +5 -5
  3. package/dist/bigconsole/assistant/assistantProduct.js +4 -1
  4. package/dist/bigconsole/assistant/displayCopy.d.ts +32 -0
  5. package/dist/bigconsole/assistant/pageContext.d.ts +14 -0
  6. package/dist/bigconsole/assistant/pageContext.js +6 -1
  7. package/dist/bigconsole/assistant/pageControls.d.ts +81 -0
  8. package/dist/bigconsole/assistant/pageControls.js +169 -0
  9. package/dist/bigconsole/assistant/previewControl.d.ts +16 -0
  10. package/dist/bigconsole/assistant/previewControl.js +10 -0
  11. package/dist/bigconsole/assistant/recordAdapters.js +27 -26
  12. package/dist/bigconsole/assistant/usePreviewControl.d.ts +2 -0
  13. package/dist/bigconsole/assistant/usePreviewControl.js +20 -0
  14. package/dist/bigconsole/components/builder/inspector/AppearanceSection.js +33 -18
  15. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +31 -31
  16. package/dist/bigconsole/components/common/SortBySelect.d.ts +11 -0
  17. package/dist/bigconsole/components/common/SortBySelect.js +29 -0
  18. package/dist/bigconsole/components/common/index.d.ts +1 -0
  19. package/dist/bigconsole/components/common/index.js +1 -0
  20. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +44 -44
  21. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +36 -36
  22. package/dist/bigconsole/components/dashboard/DashboardToolbar.js +59 -59
  23. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +15 -15
  24. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
  25. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +41 -41
  26. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
  27. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +34 -34
  28. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +153 -153
  29. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +21 -21
  30. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
  31. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +134 -134
  32. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -101
  33. package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +31 -31
  34. package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.js +15 -15
  35. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
  36. package/dist/bigconsole/components/dashboard/WidgetPalette.js +154 -150
  37. package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +37 -37
  38. package/dist/bigconsole/components/datasink/AlertRuleEditor.js +66 -66
  39. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
  40. package/dist/bigconsole/components/datasink/DataSinkCard.js +51 -50
  41. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
  42. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
  43. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +47 -47
  44. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +91 -91
  45. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
  46. package/dist/bigconsole/components/embed/renderer-manifest.js +12 -0
  47. package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
  48. package/dist/bigconsole/components/parser/ImportParserDialog.js +120 -120
  49. package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
  50. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +10 -10
  51. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +77 -76
  52. package/dist/bigconsole/components/preview/AiPreviewPanel.js +96 -95
  53. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +4 -4
  54. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +93 -93
  55. package/dist/bigconsole/components/widgets/PropertiesPanel.js +507 -499
  56. package/dist/bigconsole/components/widgets/WidgetRegistry.js +122 -1
  57. package/dist/bigconsole/components/widgets/WidgetWrapper.js +227 -224
  58. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.d.ts +10 -0
  59. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +113 -0
  60. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.d.ts +10 -0
  61. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.js +187 -0
  62. package/dist/bigconsole/components/widgets/advanced/boxPlotDescription.d.ts +7 -0
  63. package/dist/bigconsole/components/widgets/advanced/boxPlotDescription.js +12 -0
  64. package/dist/bigconsole/components/widgets/advanced/data.d.ts +36 -0
  65. package/dist/bigconsole/components/widgets/advanced/data.js +113 -0
  66. package/dist/bigconsole/components/widgets/advanced/mapData.d.ts +10 -0
  67. package/dist/bigconsole/components/widgets/advanced/mapData.js +22 -0
  68. package/dist/bigconsole/components/widgets/advanced/waterfallData.d.ts +15 -0
  69. package/dist/bigconsole/components/widgets/advanced/waterfallData.js +28 -0
  70. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +4 -4
  71. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
  72. package/dist/bigconsole/components/widgets/chart/charts/WaterfallChart.js +34 -37
  73. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
  74. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
  75. package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
  76. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
  77. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
  78. package/dist/bigconsole/components/widgets/index.js +1 -1
  79. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
  80. package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
  81. package/dist/bigconsole/components/widgets/map-widget/MapWidget.d.ts +2 -0
  82. package/dist/bigconsole/components/widgets/map-widget/MapWidget.js +64 -63
  83. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
  84. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
  85. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
  86. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
  87. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
  88. package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
  89. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
  90. package/dist/bigconsole/components/workflow/WorkflowOpenGuard.js +15 -15
  91. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +15 -15
  92. package/dist/bigconsole/constants/backendErrors.js +94 -0
  93. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +10 -10
  94. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +67 -67
  95. package/dist/bigconsole/graphql/widgetCapabilities.d.ts +7 -0
  96. package/dist/bigconsole/graphql/widgetCapabilities.js +37 -0
  97. package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +14 -0
  98. package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +32 -0
  99. package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +23 -0
  100. package/dist/bigconsole/hooks/useDataSinkAlerts.js +138 -113
  101. package/dist/bigconsole/hooks/useDrilldown.js +3 -3
  102. package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
  103. package/dist/bigconsole/hooks/useWidgetCatalog.js +46 -41
  104. package/dist/bigconsole/hooks/useWidgetOperations.js +113 -88
  105. package/dist/bigconsole/pages/AdminPage.js +130 -130
  106. package/dist/bigconsole/pages/DashboardBuilderPage.js +72 -60
  107. package/dist/bigconsole/pages/DashboardViewPage.js +244 -221
  108. package/dist/bigconsole/pages/DashboardsPage.js +269 -221
  109. package/dist/bigconsole/pages/DataParsersPage.js +180 -157
  110. package/dist/bigconsole/pages/DataSinkAlertsPage.js +62 -55
  111. package/dist/bigconsole/pages/DataSinkBuilderPage.js +252 -234
  112. package/dist/bigconsole/pages/DataSinkViewPage.js +1 -1
  113. package/dist/bigconsole/pages/DataSinksPage.js +335 -299
  114. package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
  115. package/dist/bigconsole/pages/InsightsPage.js +279 -265
  116. package/dist/bigconsole/pages/OverviewPage.js +47 -47
  117. package/dist/bigconsole/pages/ParserBuilderPage.js +229 -213
  118. package/dist/bigconsole/pages/ParserViewPage.js +97 -97
  119. package/dist/bigconsole/pages/PipelineBuilderPage.js +256 -214
  120. package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
  121. package/dist/bigconsole/pages/PipelinesPage.js +107 -88
  122. package/dist/bigconsole/pages/SettingsPage.js +179 -173
  123. package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
  124. package/dist/bigconsole/pages/WorkflowViewPage.js +1 -1
  125. package/dist/bigconsole/pages/WorkflowsPage.js +141 -141
  126. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +12 -12
  127. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +34 -34
  128. package/dist/bigconsole/renderers/adapters/BigConsoleRenderer.js +8 -5
  129. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +69 -69
  130. package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
  131. package/dist/bigconsole/store/widgetStore.d.ts +12 -0
  132. package/dist/bigconsole/store/widgetStore.js +3 -1
  133. package/dist/bigconsole/types/index.d.ts +1 -1
  134. package/dist/bigconsole/utils/advancedWidgetCapabilities.d.ts +14 -0
  135. package/dist/bigconsole/utils/advancedWidgetCapabilities.js +36 -0
  136. package/dist/bigconsole/utils/backendError.d.ts +18 -0
  137. package/dist/bigconsole/utils/backendError.js +42 -0
  138. package/dist/bigconsole/utils/dashboardList.d.ts +28 -0
  139. package/dist/bigconsole/utils/dashboardList.js +15 -0
  140. package/dist/bigconsole/utils/dataSinkList.d.ts +15 -0
  141. package/dist/bigconsole/utils/dataSinkList.js +15 -0
  142. package/dist/bigconsole/utils/formDirty.d.ts +82 -0
  143. package/dist/bigconsole/utils/formDirty.js +21 -0
  144. package/dist/bigconsole/utils/insightsDraft.d.ts +29 -0
  145. package/dist/bigconsole/utils/insightsDraft.js +8 -0
  146. package/dist/bigconsole/utils/layoutBaseline.d.ts +130 -0
  147. package/dist/bigconsole/utils/layoutBaseline.js +96 -0
  148. package/dist/bigconsole/utils/listSort.d.ts +80 -0
  149. package/dist/bigconsole/utils/listSort.js +85 -0
  150. package/dist/bigconsole/utils/widgetFormDirty.d.ts +16 -0
  151. package/dist/bigconsole/utils/widgetFormDirty.js +13 -0
  152. package/dist/bigconsole/utils/widgetTypeMapping.d.ts +1 -1
  153. package/dist/bigconsole/utils/widgetTypeMapping.js +13 -2
  154. package/dist/bigconsole/workflowOpen.js +15 -14
  155. package/dist/generated/wspace-operations.d.ts +61 -2
  156. package/dist/generated/wspace-operations.js +44 -18
  157. package/dist/generated/wspace-types.d.ts +34 -3
  158. package/package.json +3 -3
@@ -1,31 +1,37 @@
1
1
  import { DEFAULT_SETTINGS as e, loadBigConsoleSettings as t, saveBigConsoleSettings as n } from "../hooks/useBigConsoleSettings.js";
2
- import { memo as r, useCallback as i, useEffect as a, useState as o } from "react";
3
- import { RotateCcw as s, Save as c, Settings as l } from "lucide-react";
4
- import { AuroraBackground as u, EmphasisPanel as d, GradientText as f, PagePurpose as p } from "@burdenoff/fe-libs/ui";
5
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
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 _ = r(function() {
9
- let { t: r } = g(), [_, v] = o(t), [y, b] = o(!1), [x, S] = o(!1);
10
- a(() => {
11
- if (y) {
12
- let e = setTimeout(() => b(!1), 2e3);
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
- }, [y]);
16
- let C = i((e, t) => {
17
- v((n) => ({
21
+ }, [x]);
22
+ let D = a((e, t) => {
23
+ b((n) => ({
18
24
  ...n,
19
25
  [e]: t
20
26
  }));
21
- }, []), w = i(() => {
22
- let e = n(_);
23
- b(e), S(!e);
24
- }, [_]), T = i(() => {
25
- v({ ...e });
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
- b(t), S(!t);
28
- }, []), E = {
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
- }, D = {
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
- }, O = {
48
+ }, M = {
43
49
  fontSize: "var(--font-size-body-sm)",
44
50
  color: "var(--color-text-muted)",
45
51
  marginTop: 4
46
- }, k = {
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__ */ m("div", {
60
+ return /* @__PURE__ */ _("div", {
55
61
  style: {
56
62
  minHeight: "100vh",
57
63
  backgroundColor: "var(--color-bg-canvas)"
58
64
  },
59
- children: /* @__PURE__ */ h("div", {
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__ */ h("div", {
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__ */ m(u, { intensity: "subtle" }),
78
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("div", {
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__ */ m(l, {
90
+ children: [/* @__PURE__ */ _(u, {
85
91
  size: 24,
86
92
  style: { color: "var(--color-text-primary)" }
87
- }), /* @__PURE__ */ m("h1", {
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__ */ m(f, { children: r("bigconsole.settings.header.title", "Settings") })
99
+ children: /* @__PURE__ */ _(p, { children: i("bigconsole.settings.header.title", "Settings") })
94
100
  })]
95
- }), /* @__PURE__ */ m("p", {
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: r("bigconsole.settings.header.subtitle", "Configure BigConsole preferences")
107
+ children: i("bigconsole.settings.header.subtitle", "Configure BigConsole preferences")
102
108
  })] }),
103
- /* @__PURE__ */ h("div", {
109
+ /* @__PURE__ */ v("div", {
104
110
  style: {
105
111
  display: "flex",
106
112
  gap: 8
107
113
  },
108
- children: [/* @__PURE__ */ h("button", {
109
- onClick: T,
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__ */ m(s, { size: 14 }),
129
+ /* @__PURE__ */ _(c, { size: 14 }),
124
130
  " ",
125
- r("bigconsole.settings.actions.reset", "Reset")
131
+ i("bigconsole.settings.actions.reset", "Reset")
126
132
  ]
127
- }), /* @__PURE__ */ h("button", {
128
- onClick: w,
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: y ? "var(--color-status-success-bg)" : "var(--color-action-primary-bg)",
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__ */ m(c, { size: 14 }),
150
+ /* @__PURE__ */ _(l, { size: 14 }),
145
151
  " ",
146
- y ? r("bigconsole.settings.actions.savedLocally", "Saved locally") : r("bigconsole.settings.actions.saveLocally", "Save locally")
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
- x && /* @__PURE__ */ m("p", {
158
+ C && /* @__PURE__ */ _("p", {
153
159
  role: "alert",
154
160
  className: "mb-form-gap text-status-error-text",
155
- children: r("bigconsole.settings.actions.saveError", "Your browser could not save these preferences. Try again.")
161
+ children: i("bigconsole.settings.actions.saveError", "Your browser could not save these preferences. Try again.")
156
162
  }),
157
- /* @__PURE__ */ m(p, {
163
+ /* @__PURE__ */ _(m, {
158
164
  className: "mb-[var(--space-sectionGap)]",
159
- children: r("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.")
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__ */ h(d, {
167
+ /* @__PURE__ */ v(f, {
162
168
  className: "mb-[var(--space-sectionGap)] p-[var(--space-cardPadding)]",
163
- children: [/* @__PURE__ */ m("h2", {
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: r("bigconsole.settings.dashboardDefaults.title", "Dashboard Defaults")
171
- }), /* @__PURE__ */ h("div", {
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__ */ h("div", { children: [
175
- /* @__PURE__ */ m("label", {
180
+ /* @__PURE__ */ v("div", { children: [
181
+ /* @__PURE__ */ _("label", {
176
182
  htmlFor: "grid-cols",
177
- style: D,
178
- children: r("bigconsole.settings.dashboardDefaults.gridColumns.label", "Grid Columns")
183
+ style: j,
184
+ children: i("bigconsole.settings.dashboardDefaults.gridColumns.label", "Grid Columns")
179
185
  }),
180
- /* @__PURE__ */ m("input", {
186
+ /* @__PURE__ */ _("input", {
181
187
  id: "grid-cols",
182
188
  type: "number",
183
189
  min: 4,
184
190
  max: 24,
185
- value: _.defaultGridColumns,
186
- onChange: (e) => C("defaultGridColumns", Math.min(24, Math.max(4, Number(e.target.value) || 12))),
187
- style: E
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__ */ m("p", {
190
- style: O,
191
- children: r("bigconsole.settings.dashboardDefaults.gridColumns.help", "Number of columns in the dashboard grid (4-24)")
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__ */ h("div", { children: [
195
- /* @__PURE__ */ m("label", {
200
+ /* @__PURE__ */ v("div", { children: [
201
+ /* @__PURE__ */ _("label", {
196
202
  htmlFor: "widget-height",
197
- style: D,
198
- children: r("bigconsole.settings.dashboardDefaults.widgetHeight.label", "Default Widget Height")
203
+ style: j,
204
+ children: i("bigconsole.settings.dashboardDefaults.widgetHeight.label", "Default Widget Height")
199
205
  }),
200
- /* @__PURE__ */ m("input", {
206
+ /* @__PURE__ */ _("input", {
201
207
  id: "widget-height",
202
208
  type: "number",
203
209
  min: 2,
204
210
  max: 12,
205
- value: _.defaultWidgetHeight,
206
- onChange: (e) => C("defaultWidgetHeight", Math.min(12, Math.max(1, Number(e.target.value) || 4))),
207
- style: E
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__ */ m("p", {
210
- style: O,
211
- children: r("bigconsole.settings.dashboardDefaults.widgetHeight.help", "Default height units for new widgets (2-12)")
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__ */ h("div", { children: [
215
- /* @__PURE__ */ m("label", {
220
+ /* @__PURE__ */ v("div", { children: [
221
+ /* @__PURE__ */ _("label", {
216
222
  htmlFor: "refresh-interval",
217
- style: D,
218
- children: r("bigconsole.settings.dashboardDefaults.refreshInterval.label", "Auto-Refresh Interval (seconds)")
223
+ style: j,
224
+ children: i("bigconsole.settings.dashboardDefaults.refreshInterval.label", "Auto-Refresh Interval (seconds)")
219
225
  }),
220
- /* @__PURE__ */ h("select", {
226
+ /* @__PURE__ */ v("select", {
221
227
  id: "refresh-interval",
222
- value: _.defaultRefreshInterval,
223
- onChange: (e) => C("defaultRefreshInterval", parseInt(e.target.value)),
224
- style: E,
228
+ value: y.defaultRefreshInterval,
229
+ onChange: (e) => D("defaultRefreshInterval", parseInt(e.target.value)),
230
+ style: A,
225
231
  children: [
226
- /* @__PURE__ */ m("option", {
232
+ /* @__PURE__ */ _("option", {
227
233
  value: 0,
228
- children: r("bigconsole.settings.dashboardDefaults.refreshInterval.disabled", "Disabled")
234
+ children: i("bigconsole.settings.dashboardDefaults.refreshInterval.disabled", "Disabled")
229
235
  }),
230
- /* @__PURE__ */ m("option", {
236
+ /* @__PURE__ */ _("option", {
231
237
  value: 10,
232
- children: r("bigconsole.settings.dashboardDefaults.refreshInterval.seconds10", "10 seconds")
238
+ children: i("bigconsole.settings.dashboardDefaults.refreshInterval.seconds10", "10 seconds")
233
239
  }),
234
- /* @__PURE__ */ m("option", {
240
+ /* @__PURE__ */ _("option", {
235
241
  value: 30,
236
- children: r("bigconsole.settings.dashboardDefaults.refreshInterval.seconds30", "30 seconds")
242
+ children: i("bigconsole.settings.dashboardDefaults.refreshInterval.seconds30", "30 seconds")
237
243
  }),
238
- /* @__PURE__ */ m("option", {
244
+ /* @__PURE__ */ _("option", {
239
245
  value: 60,
240
- children: r("bigconsole.settings.dashboardDefaults.refreshInterval.minute1", "1 minute")
246
+ children: i("bigconsole.settings.dashboardDefaults.refreshInterval.minute1", "1 minute")
241
247
  }),
242
- /* @__PURE__ */ m("option", {
248
+ /* @__PURE__ */ _("option", {
243
249
  value: 300,
244
- children: r("bigconsole.settings.dashboardDefaults.refreshInterval.minutes5", "5 minutes")
250
+ children: i("bigconsole.settings.dashboardDefaults.refreshInterval.minutes5", "5 minutes")
245
251
  }),
246
- /* @__PURE__ */ m("option", {
252
+ /* @__PURE__ */ _("option", {
247
253
  value: 600,
248
- children: r("bigconsole.settings.dashboardDefaults.refreshInterval.minutes10", "10 minutes")
254
+ children: i("bigconsole.settings.dashboardDefaults.refreshInterval.minutes10", "10 minutes")
249
255
  })
250
256
  ]
251
257
  }),
252
- /* @__PURE__ */ m("p", {
253
- style: O,
254
- children: r("bigconsole.settings.dashboardDefaults.refreshInterval.help", "How often widgets refresh their data automatically")
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__ */ h("div", {
261
- style: k,
262
- children: [/* @__PURE__ */ m("h2", {
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: r("bigconsole.settings.cache.title", "Cache")
270
- }), /* @__PURE__ */ h("div", {
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__ */ h("div", {
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__ */ h("div", { children: [/* @__PURE__ */ m("label", {
279
- style: D,
280
- children: r("bigconsole.settings.cache.enable.label", "Enable Cache")
281
- }), /* @__PURE__ */ m("p", {
282
- style: O,
283
- children: r("bigconsole.settings.cache.newSinkHelp", "Enable caching by default for new data sinks")
284
- })] }), /* @__PURE__ */ m("button", {
285
- onClick: () => C("cacheEnabled", !_.cacheEnabled),
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": _.cacheEnabled,
288
- "aria-label": r("bigconsole.settings.cache.enable.label", "Enable Cache"),
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: _.cacheEnabled ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
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__ */ m("div", { style: {
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: _.cacheEnabled ? 23 : 3,
313
+ left: y.cacheEnabled ? 23 : 3,
308
314
  transition: "left 200ms"
309
315
  } })
310
316
  })]
311
- }), _.cacheEnabled && /* @__PURE__ */ h("div", { children: [
312
- /* @__PURE__ */ m("label", {
317
+ }), y.cacheEnabled && /* @__PURE__ */ v("div", { children: [
318
+ /* @__PURE__ */ _("label", {
313
319
  htmlFor: "cache-ttl",
314
- style: D,
315
- children: r("bigconsole.settings.cache.ttl.label", "Cache TTL (seconds)")
320
+ style: j,
321
+ children: i("bigconsole.settings.cache.ttl.label", "Cache TTL (seconds)")
316
322
  }),
317
- /* @__PURE__ */ m("input", {
323
+ /* @__PURE__ */ _("input", {
318
324
  id: "cache-ttl",
319
325
  type: "number",
320
326
  min: 30,
321
327
  max: 3600,
322
- value: _.cacheTTLSeconds,
323
- onChange: (e) => C("cacheTTLSeconds", Math.min(86400, Math.max(0, Number(e.target.value)))),
324
- style: E
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__ */ m("p", {
327
- style: O,
328
- children: r("bigconsole.settings.cache.ttl.help", "How long cached data is considered fresh (30-3600)")
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__ */ h("div", {
334
- style: k,
335
- children: [/* @__PURE__ */ m("h2", {
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: r("bigconsole.settings.display.title", "Display")
343
- }), /* @__PURE__ */ h("div", {
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__ */ h("div", {
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__ */ h("div", { children: [/* @__PURE__ */ m("label", {
353
- style: D,
354
- children: r("bigconsole.settings.display.widgetBorders.label", "Show Widget Borders")
355
- }), /* @__PURE__ */ m("p", {
356
- style: O,
357
- children: r("bigconsole.settings.display.widgetBorders.help", "Display borders around widgets in dashboards")
358
- })] }), /* @__PURE__ */ m("button", {
359
- onClick: () => C("showWidgetBorders", !_.showWidgetBorders),
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": _.showWidgetBorders,
362
- "aria-label": r("bigconsole.settings.display.widgetBorders.label", "Show Widget Borders"),
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: _.showWidgetBorders ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
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__ */ m("div", { style: {
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: _.showWidgetBorders ? 23 : 3,
387
+ left: y.showWidgetBorders ? 23 : 3,
382
388
  transition: "left 200ms"
383
389
  } })
384
390
  })]
385
391
  }),
386
- /* @__PURE__ */ h("div", {
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__ */ h("div", { children: [/* @__PURE__ */ m("label", {
393
- style: D,
394
- children: r("bigconsole.settings.display.compactMode.label", "Compact Mode")
395
- }), /* @__PURE__ */ m("p", {
396
- style: O,
397
- children: r("bigconsole.settings.display.compactMode.help", "Reduce padding and spacing for more content")
398
- })] }), /* @__PURE__ */ m("button", {
399
- onClick: () => C("compactMode", !_.compactMode),
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": _.compactMode,
402
- "aria-label": r("bigconsole.settings.display.compactMode.label", "Compact Mode"),
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: _.compactMode ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
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__ */ m("div", { style: {
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: _.compactMode ? 23 : 3,
427
+ left: y.compactMode ? 23 : 3,
422
428
  transition: "left 200ms"
423
429
  } })
424
430
  })]
425
431
  }),
426
- /* @__PURE__ */ h("div", {
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__ */ h("div", { children: [/* @__PURE__ */ m("label", {
433
- style: D,
434
- children: r("bigconsole.settings.display.animations.label", "Animations")
435
- }), /* @__PURE__ */ m("p", {
436
- style: O,
437
- children: r("bigconsole.settings.display.animations.help", "Enable transition animations and effects")
438
- })] }), /* @__PURE__ */ m("button", {
439
- onClick: () => C("animationsEnabled", !_.animationsEnabled),
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": _.animationsEnabled,
442
- "aria-label": r("bigconsole.settings.display.animations.label", "Animations"),
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: _.animationsEnabled ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
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__ */ m("div", { style: {
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: _.animationsEnabled ? 23 : 3,
467
+ left: y.animationsEnabled ? 23 : 3,
462
468
  transition: "left 200ms"
463
469
  } })
464
470
  })]
@@ -471,4 +477,4 @@ var _ = r(function() {
471
477
  });
472
478
  });
473
479
  //#endregion
474
- export { _ as SettingsPage, _ as default };
480
+ export { y as SettingsPage, y as default };