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