@burdenoff/microfe-bigconsole 2026.1123.7 → 2026.1124.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/bigconsole/asof/AsOfControl.js +2 -2
  2. package/dist/bigconsole/components/dashboard/DashboardCommentsDrawer.js +107 -106
  3. package/dist/bigconsole/components/dashboard/DashboardGalleryCard.d.ts +34 -0
  4. package/dist/bigconsole/components/dashboard/DashboardGalleryCard.js +123 -0
  5. package/dist/bigconsole/components/dashboard/DashboardReviewDialog.js +1 -1
  6. package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +19 -35
  7. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +119 -116
  8. package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
  9. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
  10. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +172 -170
  11. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +210 -208
  12. package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +97 -97
  13. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
  14. package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +92 -92
  15. package/dist/bigconsole/components/datasink/AlertRuleEditor.js +149 -149
  16. package/dist/bigconsole/components/datasink/AnomalyDetectorPanel.js +54 -54
  17. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -37
  18. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +4 -4
  19. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +130 -129
  20. package/dist/bigconsole/components/datasink/SetupStateBadge.js +24 -33
  21. package/dist/bigconsole/components/datasink/SinkWorkflowLinkForm.js +38 -38
  22. package/dist/bigconsole/components/explore/CreateQueryWidget.js +57 -56
  23. package/dist/bigconsole/components/explore/SqlDraftEditor.js +140 -140
  24. package/dist/bigconsole/components/explore/VisualBuilder.js +85 -84
  25. package/dist/bigconsole/components/explore/queryAccess/GrantsPanel.js +168 -167
  26. package/dist/bigconsole/components/explore/queryAccess/QueryAccessAdmin.js +2 -2
  27. package/dist/bigconsole/components/explore/queryAccess/RelationEditor.js +118 -117
  28. package/dist/bigconsole/components/insights/BoardLintPanel.js +2 -2
  29. package/dist/bigconsole/components/insights/OutlierSpottingDialog.js +123 -123
  30. package/dist/bigconsole/components/kpi-change/KpiChangePanel.js +2 -2
  31. package/dist/bigconsole/components/narrative/NarrativePanel.js +1 -1
  32. package/dist/bigconsole/components/overview/DataHealthCard.js +3 -0
  33. package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +3 -0
  34. package/dist/bigconsole/components/parser/ParserStatusBadge.js +25 -28
  35. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +23 -22
  36. package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +15 -26
  37. package/dist/bigconsole/components/reconcile/KpiReconcileDialog.js +24 -24
  38. package/dist/bigconsole/components/settings/WidgetCatalogSection.js +1 -1
  39. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +188 -187
  40. package/dist/bigconsole/components/widgets/FilterNotAppliedNotice.js +1 -1
  41. package/dist/bigconsole/components/widgets/UnsupportedDataSourceNotice.js +1 -1
  42. package/dist/bigconsole/components/widgets/WidgetCompareView.js +3 -1
  43. package/dist/bigconsole/components/widgets/WidgetHeader.js +1 -1
  44. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +45 -44
  45. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +151 -147
  46. package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +48 -47
  47. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
  48. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +139 -138
  49. package/dist/bigconsole/components/widgets/form/FormWidget.js +149 -148
  50. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +80 -77
  51. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +58 -56
  52. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +75 -73
  53. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +86 -85
  54. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +80 -77
  55. package/dist/bigconsole/components/widgets/retention/RetentionView.js +1 -1
  56. package/dist/bigconsole/components/widgets/table/TableConfig.js +214 -211
  57. package/dist/bigconsole/components/widgets/table/TablePagination.js +59 -58
  58. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +140 -138
  59. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +74 -66
  60. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +48 -48
  61. package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +28 -37
  62. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +69 -69
  63. package/dist/bigconsole/hooks/useDashboardListQuery.d.ts +22 -0
  64. package/dist/bigconsole/hooks/useDashboardListQuery.js +39 -0
  65. package/dist/bigconsole/pages/AdminPage.js +147 -146
  66. package/dist/bigconsole/pages/DashboardViewPage.js +2 -0
  67. package/dist/bigconsole/pages/DashboardsPage.js +638 -855
  68. package/dist/bigconsole/pages/DataParsersPage.js +5 -0
  69. package/dist/bigconsole/pages/DataSinkBuilderPage.js +4 -1
  70. package/dist/bigconsole/pages/DataSinkViewPage.js +263 -261
  71. package/dist/bigconsole/pages/DataSinksPage.js +210 -186
  72. package/dist/bigconsole/pages/InsightsPage.js +386 -383
  73. package/dist/bigconsole/pages/ParserBuilderPage.js +413 -413
  74. package/dist/bigconsole/pages/ParserViewPage.js +2 -0
  75. package/dist/bigconsole/pages/PipelineBuilderPage.js +279 -276
  76. package/dist/bigconsole/pages/PipelineViewPage.js +3 -0
  77. package/dist/bigconsole/pages/PipelinesPage.js +198 -165
  78. package/dist/bigconsole/pages/SettingsPage.js +160 -160
  79. package/dist/bigconsole/pages/WidgetDemoPage.js +2 -0
  80. package/dist/bigconsole/pages/WorkflowViewPage.js +5 -0
  81. package/dist/bigconsole/pages/WorkflowsPage.js +144 -123
  82. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +1 -1
  83. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +123 -122
  84. package/dist/bigconsole/utils/dashboardGallery.d.ts +84 -0
  85. package/dist/bigconsole/utils/dashboardGallery.js +93 -0
  86. package/dist/bigconsole/utils/statusTone.d.ts +17 -0
  87. package/dist/bigconsole/utils/statusTone.js +44 -0
  88. package/package.json +4 -4
@@ -1,8 +1,9 @@
1
1
  import { memo as e, useCallback as t } from "react";
2
- import { useI18n as n } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
3
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
+ import { ThemedSelect as n } from "@burdenoff/fe-libs/ui";
3
+ import { useI18n as r } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
4
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
5
  // src/bigconsole/components/widgets/gauge/GaugeConfig.tsx
5
- var a = [
6
+ var o = [
6
7
  {
7
8
  value: 33,
8
9
  color: "error"
@@ -15,15 +16,15 @@ var a = [
15
16
  value: 100,
16
17
  color: "success"
17
18
  }
18
- ], o = e(function({ config: e, onChange: o }) {
19
- let { t: s } = n(), c = t((t, n) => {
20
- o({
19
+ ], s = e(function({ config: e, onChange: s }) {
20
+ let { t: c } = r(), l = t((t, n) => {
21
+ s({
21
22
  ...e,
22
23
  [t]: n
23
24
  });
24
- }, [e, o]), l = t((t, n) => {
25
+ }, [e, s]), u = t((t, n) => {
25
26
  let r = [];
26
- for (let n = 0; n <= t; n++) r[n] = e.thresholds?.[n] ?? a[n] ?? {
27
+ for (let n = 0; n <= t; n++) r[n] = e.thresholds?.[n] ?? o[n] ?? {
27
28
  value: 100,
28
29
  color: "success"
29
30
  };
@@ -35,134 +36,136 @@ var a = [
35
36
  value: 100,
36
37
  color: "success"
37
38
  };
38
- c("thresholds", r);
39
- }, [e.thresholds, c]);
40
- return /* @__PURE__ */ i("div", {
39
+ l("thresholds", r);
40
+ }, [e.thresholds, l]);
41
+ return /* @__PURE__ */ a("div", {
41
42
  className: "min-w-0 space-y-form-gap",
42
43
  children: [
43
- /* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("label", {
44
+ /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
44
45
  className: "block text-sm font-medium text-text-primary mb-1",
45
- children: s("bigconsole.widget.config.gauge.gaugeType", "Gauge Type")
46
- }), /* @__PURE__ */ i("select", {
46
+ children: c("bigconsole.widget.config.gauge.gaugeType", "Gauge Type")
47
+ }), /* @__PURE__ */ a(n, {
48
+ "aria-label": c("bigconsole.widget.config.gauge.gaugeType", "Gauge Type"),
47
49
  value: e.variant || "circular",
48
- onChange: (e) => c("variant", e.target.value),
50
+ onChange: (e) => l("variant", e.target.value),
49
51
  className: "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n ",
50
- children: [/* @__PURE__ */ r("option", {
52
+ children: [/* @__PURE__ */ i("option", {
51
53
  value: "circular",
52
- children: s("bigconsole.widget.config.gauge.variant.circular", "Circular")
53
- }), /* @__PURE__ */ r("option", {
54
+ children: c("bigconsole.widget.config.gauge.variant.circular", "Circular")
55
+ }), /* @__PURE__ */ i("option", {
54
56
  value: "linear",
55
- children: s("bigconsole.widget.config.gauge.variant.linear", "Linear")
57
+ children: c("bigconsole.widget.config.gauge.variant.linear", "Linear")
56
58
  })]
57
59
  })] }),
58
- /* @__PURE__ */ i("div", {
60
+ /* @__PURE__ */ a("div", {
59
61
  className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
60
- children: [/* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("label", {
62
+ children: [/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
61
63
  className: "block text-sm font-medium text-text-primary mb-1",
62
- children: s("bigconsole.widget.config.gauge.minimum", "Minimum")
63
- }), /* @__PURE__ */ r("input", {
64
+ children: c("bigconsole.widget.config.gauge.minimum", "Minimum")
65
+ }), /* @__PURE__ */ i("input", {
64
66
  type: "number",
65
67
  value: e.min ?? 0,
66
- onChange: (e) => c("min", Number(e.target.value)),
68
+ onChange: (e) => l("min", Number(e.target.value)),
67
69
  className: "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n "
68
- })] }), /* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("label", {
70
+ })] }), /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
69
71
  className: "block text-sm font-medium text-text-primary mb-1",
70
- children: s("bigconsole.widget.config.gauge.maximum", "Maximum")
71
- }), /* @__PURE__ */ r("input", {
72
+ children: c("bigconsole.widget.config.gauge.maximum", "Maximum")
73
+ }), /* @__PURE__ */ i("input", {
72
74
  type: "number",
73
75
  value: e.max ?? 100,
74
- onChange: (e) => c("max", Number(e.target.value)),
76
+ onChange: (e) => l("max", Number(e.target.value)),
75
77
  className: "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n "
76
78
  })] })]
77
79
  }),
78
- /* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("label", {
80
+ /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
79
81
  className: "block text-sm font-medium text-text-primary mb-1",
80
- children: s("bigconsole.widget.config.gauge.unitLabel", "Unit Label")
81
- }), /* @__PURE__ */ r("input", {
82
+ children: c("bigconsole.widget.config.gauge.unitLabel", "Unit Label")
83
+ }), /* @__PURE__ */ i("input", {
82
84
  type: "text",
83
85
  value: e.unit || "",
84
- onChange: (e) => c("unit", e.target.value),
85
- placeholder: s("bigconsole.widget.config.gauge.unitPlaceholder", "e.g., %, ms, users"),
86
+ onChange: (e) => l("unit", e.target.value),
87
+ placeholder: c("bigconsole.widget.config.gauge.unitPlaceholder", "e.g., %, ms, users"),
86
88
  className: "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n "
87
89
  })] }),
88
- /* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r("label", {
90
+ /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
89
91
  className: "block text-sm font-medium text-text-primary mb-1",
90
- children: s("bigconsole.widget.config.gauge.valueFormat", "Value Format")
91
- }), /* @__PURE__ */ i("select", {
92
+ children: c("bigconsole.widget.config.gauge.valueFormat", "Value Format")
93
+ }), /* @__PURE__ */ a(n, {
94
+ "aria-label": c("bigconsole.widget.config.gauge.valueFormat", "Value Format"),
92
95
  value: e.format || "number",
93
- onChange: (e) => c("format", e.target.value),
96
+ onChange: (e) => l("format", e.target.value),
94
97
  className: "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n ",
95
98
  children: [
96
- /* @__PURE__ */ r("option", {
99
+ /* @__PURE__ */ i("option", {
97
100
  value: "number",
98
- children: s("bigconsole.widget.config.gauge.format.number", "Number")
101
+ children: c("bigconsole.widget.config.gauge.format.number", "Number")
99
102
  }),
100
- /* @__PURE__ */ r("option", {
103
+ /* @__PURE__ */ i("option", {
101
104
  value: "percentage",
102
- children: s("bigconsole.widget.config.gauge.format.percentage", "Percentage")
105
+ children: c("bigconsole.widget.config.gauge.format.percentage", "Percentage")
103
106
  }),
104
- /* @__PURE__ */ r("option", {
107
+ /* @__PURE__ */ i("option", {
105
108
  value: "currency",
106
- children: s("bigconsole.widget.config.gauge.format.currency", "Currency")
109
+ children: c("bigconsole.widget.config.gauge.format.currency", "Currency")
107
110
  })
108
111
  ]
109
112
  })] }),
110
- /* @__PURE__ */ i("div", { children: [
111
- /* @__PURE__ */ r("label", {
113
+ /* @__PURE__ */ a("div", { children: [
114
+ /* @__PURE__ */ i("label", {
112
115
  className: "block text-sm font-medium text-text-primary mb-2",
113
- children: s("bigconsole.widget.config.gauge.colorThresholds", "Color Thresholds")
116
+ children: c("bigconsole.widget.config.gauge.colorThresholds", "Color Thresholds")
114
117
  }),
115
- /* @__PURE__ */ r("p", {
118
+ /* @__PURE__ */ i("p", {
116
119
  className: "text-xs text-text-secondary mb-3",
117
- children: s("bigconsole.widget.config.gauge.colorThresholdsHelp", "Define color zones based on value ranges. Values up to each threshold will use that color.")
120
+ children: c("bigconsole.widget.config.gauge.colorThresholdsHelp", "Define color zones based on value ranges. Values up to each threshold will use that color.")
118
121
  }),
119
- /* @__PURE__ */ i("div", {
122
+ /* @__PURE__ */ a("div", {
120
123
  className: "space-y-2",
121
124
  children: [
122
- /* @__PURE__ */ i("div", {
125
+ /* @__PURE__ */ a("div", {
123
126
  className: "flex items-center gap-2",
124
127
  children: [
125
- /* @__PURE__ */ r("div", { className: "w-4 h-4 rounded bg-status-error-bg" }),
126
- /* @__PURE__ */ r("span", {
128
+ /* @__PURE__ */ i("div", { className: "w-4 h-4 rounded bg-status-error-bg" }),
129
+ /* @__PURE__ */ i("span", {
127
130
  className: "text-sm text-text-primary flex-1",
128
- children: s("bigconsole.widget.config.gauge.threshold.danger", "Danger (Red)")
131
+ children: c("bigconsole.widget.config.gauge.threshold.danger", "Danger (Red)")
129
132
  }),
130
- /* @__PURE__ */ r("input", {
133
+ /* @__PURE__ */ i("input", {
131
134
  type: "number",
132
135
  value: e.thresholds?.[0]?.value ?? 33,
133
- onChange: (e) => l(0, e.target.value),
136
+ onChange: (e) => u(0, e.target.value),
134
137
  className: "\n w-20 px-2 py-1\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n "
135
138
  })
136
139
  ]
137
140
  }),
138
- /* @__PURE__ */ i("div", {
141
+ /* @__PURE__ */ a("div", {
139
142
  className: "flex items-center gap-2",
140
143
  children: [
141
- /* @__PURE__ */ r("div", { className: "w-4 h-4 rounded bg-status-warning-bg" }),
142
- /* @__PURE__ */ r("span", {
144
+ /* @__PURE__ */ i("div", { className: "w-4 h-4 rounded bg-status-warning-bg" }),
145
+ /* @__PURE__ */ i("span", {
143
146
  className: "text-sm text-text-primary flex-1",
144
- children: s("bigconsole.widget.config.gauge.threshold.warning", "Warning (Yellow)")
147
+ children: c("bigconsole.widget.config.gauge.threshold.warning", "Warning (Yellow)")
145
148
  }),
146
- /* @__PURE__ */ r("input", {
149
+ /* @__PURE__ */ i("input", {
147
150
  type: "number",
148
151
  value: e.thresholds?.[1]?.value ?? 66,
149
- onChange: (e) => l(1, e.target.value),
152
+ onChange: (e) => u(1, e.target.value),
150
153
  className: "\n w-20 px-2 py-1\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n "
151
154
  })
152
155
  ]
153
156
  }),
154
- /* @__PURE__ */ i("div", {
157
+ /* @__PURE__ */ a("div", {
155
158
  className: "flex items-center gap-2",
156
159
  children: [
157
- /* @__PURE__ */ r("div", { className: "w-4 h-4 rounded bg-status-success-bg" }),
158
- /* @__PURE__ */ r("span", {
160
+ /* @__PURE__ */ i("div", { className: "w-4 h-4 rounded bg-status-success-bg" }),
161
+ /* @__PURE__ */ i("span", {
159
162
  className: "text-sm text-text-primary flex-1",
160
- children: s("bigconsole.widget.config.gauge.threshold.good", "Good (Green)")
163
+ children: c("bigconsole.widget.config.gauge.threshold.good", "Good (Green)")
161
164
  }),
162
- /* @__PURE__ */ r("input", {
165
+ /* @__PURE__ */ i("input", {
163
166
  type: "number",
164
167
  value: e.thresholds?.[2]?.value ?? 100,
165
- onChange: (e) => l(2, e.target.value),
168
+ onChange: (e) => u(2, e.target.value),
166
169
  className: "\n w-20 px-2 py-1\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n "
167
170
  })
168
171
  ]
@@ -170,34 +173,34 @@ var a = [
170
173
  ]
171
174
  })
172
175
  ] }),
173
- /* @__PURE__ */ i("div", {
176
+ /* @__PURE__ */ a("div", {
174
177
  role: "group",
175
178
  "aria-label": "Display options",
176
179
  className: "space-y-3 border-t border-[var(--color-border-subtle)] pt-form-gap",
177
180
  children: [
178
- /* @__PURE__ */ r("p", {
181
+ /* @__PURE__ */ i("p", {
179
182
  className: "text-xs font-bold uppercase tracking-wider text-text-secondary",
180
183
  children: "Display options"
181
184
  }),
182
- e.variant === "linear" && /* @__PURE__ */ i("label", {
185
+ e.variant === "linear" && /* @__PURE__ */ a("label", {
183
186
  className: "flex items-center gap-3",
184
- children: [/* @__PURE__ */ r("input", {
187
+ children: [/* @__PURE__ */ i("input", {
185
188
  type: "checkbox",
186
189
  checked: e.showZones === !0,
187
- onChange: (e) => c("showZones", e.target.checked),
190
+ onChange: (e) => l("showZones", e.target.checked),
188
191
  className: "\n w-4 h-4\n text-action-primary-bg\n bg-bg-surface\n border-border-default\n rounded\n focus:ring-action-primary-bg\n "
189
- }), /* @__PURE__ */ r("span", {
192
+ }), /* @__PURE__ */ i("span", {
190
193
  className: "text-sm text-text-primary",
191
- children: s("bigconsole.widget.config.gauge.showZones", "Show color zones in background")
194
+ children: c("bigconsole.widget.config.gauge.showZones", "Show color zones in background")
192
195
  })]
193
196
  }),
194
- e.variant !== "linear" && /* @__PURE__ */ r("p", {
197
+ e.variant !== "linear" && /* @__PURE__ */ i("p", {
195
198
  className: "text-xs text-text-secondary",
196
- children: s("bigconsole.widget.config.gauge.noCircularOptions", "No display options for the circular gauge.")
199
+ children: c("bigconsole.widget.config.gauge.noCircularOptions", "No display options for the circular gauge.")
197
200
  })
198
201
  ]
199
202
  })
200
203
  ]
201
204
  });
202
205
  });
203
- export { o as GaugeConfig, o as default };
206
+ export { s as GaugeConfig, s as default };
@@ -1,121 +1,123 @@
1
1
  import { memo as e, useCallback as t, useMemo as n } from "react";
2
- import { useI18n as r } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
3
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
2
+ import { ThemedSelect as r } from "@burdenoff/fe-libs/ui";
3
+ import { useI18n as i } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
4
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
4
5
  // src/bigconsole/components/widgets/heatmap/HeatmapConfig.tsx
5
- var o = "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n", s = e(function({ config: e, onChange: s }) {
6
- let { t: c } = r(), l = n(() => [
6
+ var s = "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n border border-border-default\n rounded-md\n focus:outline-none focus:ring-2 focus:ring-action-primary-bg\n", c = e(function({ config: e, onChange: c }) {
7
+ let { t: l } = i(), u = n(() => [
7
8
  {
8
9
  value: "blue",
9
- label: c("bigconsole.widget.config.heatmap.colorScheme.blue", "Blue")
10
+ label: l("bigconsole.widget.config.heatmap.colorScheme.blue", "Blue")
10
11
  },
11
12
  {
12
13
  value: "green",
13
- label: c("bigconsole.widget.config.heatmap.colorScheme.green", "Green")
14
+ label: l("bigconsole.widget.config.heatmap.colorScheme.green", "Green")
14
15
  },
15
16
  {
16
17
  value: "red",
17
- label: c("bigconsole.widget.config.heatmap.colorScheme.red", "Red")
18
+ label: l("bigconsole.widget.config.heatmap.colorScheme.red", "Red")
18
19
  }
19
- ], [c]), u = t((t, n) => {
20
- s({
20
+ ], [l]), d = t((t, n) => {
21
+ c({
21
22
  ...e,
22
23
  [t]: n
23
24
  });
24
- }, [e, s]);
25
- return /* @__PURE__ */ a("div", {
25
+ }, [e, c]);
26
+ return /* @__PURE__ */ o("div", {
26
27
  className: "min-w-0 space-y-form-gap",
27
28
  children: [
28
- /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
29
+ /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
29
30
  className: "block text-sm font-medium text-text-primary mb-1",
30
- children: c("bigconsole.widget.config.heatmap.xAxisFieldLabel", "X-Axis Field")
31
- }), /* @__PURE__ */ i("input", {
31
+ children: l("bigconsole.widget.config.heatmap.xAxisFieldLabel", "X-Axis Field")
32
+ }), /* @__PURE__ */ a("input", {
32
33
  type: "text",
33
34
  value: e.xAxisField || "",
34
- onChange: (e) => u("xAxisField", e.target.value),
35
- placeholder: c("bigconsole.widget.config.heatmap.xAxisFieldPlaceholder", "e.g., hour, column"),
36
- className: o
35
+ onChange: (e) => d("xAxisField", e.target.value),
36
+ placeholder: l("bigconsole.widget.config.heatmap.xAxisFieldPlaceholder", "e.g., hour, column"),
37
+ className: s
37
38
  })] }),
38
- /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
39
+ /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
39
40
  className: "block text-sm font-medium text-text-primary mb-1",
40
- children: c("bigconsole.widget.config.heatmap.yAxisFieldLabel", "Y-Axis Field")
41
- }), /* @__PURE__ */ i("input", {
41
+ children: l("bigconsole.widget.config.heatmap.yAxisFieldLabel", "Y-Axis Field")
42
+ }), /* @__PURE__ */ a("input", {
42
43
  type: "text",
43
44
  value: e.yAxisField || "",
44
- onChange: (e) => u("yAxisField", e.target.value),
45
- placeholder: c("bigconsole.widget.config.heatmap.yAxisFieldPlaceholder", "e.g., day, row"),
46
- className: o
45
+ onChange: (e) => d("yAxisField", e.target.value),
46
+ placeholder: l("bigconsole.widget.config.heatmap.yAxisFieldPlaceholder", "e.g., day, row"),
47
+ className: s
47
48
  })] }),
48
- /* @__PURE__ */ a("div", { children: [
49
- /* @__PURE__ */ i("label", {
49
+ /* @__PURE__ */ o("div", { children: [
50
+ /* @__PURE__ */ a("label", {
50
51
  className: "block text-sm font-medium text-text-primary mb-1",
51
- children: c("bigconsole.widget.config.heatmap.valueFieldLabel", "Value Field")
52
+ children: l("bigconsole.widget.config.heatmap.valueFieldLabel", "Value Field")
52
53
  }),
53
- /* @__PURE__ */ i("input", {
54
+ /* @__PURE__ */ a("input", {
54
55
  type: "text",
55
56
  value: e.valueField || "",
56
- onChange: (e) => u("valueField", e.target.value),
57
- placeholder: c("bigconsole.widget.config.heatmap.valueFieldPlaceholder", "e.g., tickets, count"),
58
- className: o
57
+ onChange: (e) => d("valueField", e.target.value),
58
+ placeholder: l("bigconsole.widget.config.heatmap.valueFieldPlaceholder", "e.g., tickets, count"),
59
+ className: s
59
60
  }),
60
- /* @__PURE__ */ i("p", {
61
+ /* @__PURE__ */ a("p", {
61
62
  className: "mt-1 text-xs text-text-secondary",
62
- children: c("bigconsole.widget.config.heatmap.valueFieldHelp", "Left empty, the widget reads the parser's rows / columns / cells output directly.")
63
+ children: l("bigconsole.widget.config.heatmap.valueFieldHelp", "Left empty, the widget reads the parser's rows / columns / cells output directly.")
63
64
  })
64
65
  ] }),
65
- /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
66
+ /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
66
67
  className: "block text-sm font-medium text-text-primary mb-1",
67
- children: c("bigconsole.widget.config.heatmap.colorSchemeLabel", "Color Scheme")
68
- }), /* @__PURE__ */ i("select", {
68
+ children: l("bigconsole.widget.config.heatmap.colorSchemeLabel", "Color Scheme")
69
+ }), /* @__PURE__ */ a(r, {
70
+ "aria-label": l("bigconsole.widget.config.heatmap.colorSchemeLabel", "Color Scheme"),
69
71
  value: e.colorScheme || "blue",
70
- onChange: (e) => u("colorScheme", e.target.value),
71
- className: o,
72
- children: l.map((e) => /* @__PURE__ */ i("option", {
72
+ onChange: (e) => d("colorScheme", e.target.value),
73
+ className: s,
74
+ children: u.map((e) => /* @__PURE__ */ a("option", {
73
75
  value: e.value,
74
76
  children: e.label
75
77
  }, e.value))
76
78
  })] }),
77
- /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
79
+ /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
78
80
  className: "block text-sm font-medium text-text-primary mb-1",
79
- children: c("bigconsole.widget.config.heatmap.decimalPlacesLabel", "Decimal Places")
80
- }), /* @__PURE__ */ i("input", {
81
+ children: l("bigconsole.widget.config.heatmap.decimalPlacesLabel", "Decimal Places")
82
+ }), /* @__PURE__ */ a("input", {
81
83
  type: "number",
82
84
  min: 0,
83
85
  max: 6,
84
86
  value: e.decimals ?? 0,
85
- onChange: (e) => u("decimals", Number(e.target.value)),
86
- className: o
87
+ onChange: (e) => d("decimals", Number(e.target.value)),
88
+ className: s
87
89
  })] }),
88
- /* @__PURE__ */ a("div", {
90
+ /* @__PURE__ */ o("div", {
89
91
  role: "group",
90
92
  "aria-label": "Display options",
91
93
  className: "space-y-3 border-t border-[var(--color-border-subtle)] pt-form-gap",
92
94
  children: [
93
- /* @__PURE__ */ i("p", {
95
+ /* @__PURE__ */ a("p", {
94
96
  className: "text-xs font-bold uppercase tracking-wider text-text-secondary",
95
97
  children: "Display options"
96
98
  }),
97
- /* @__PURE__ */ a("label", {
99
+ /* @__PURE__ */ o("label", {
98
100
  className: "flex items-center gap-3",
99
- children: [/* @__PURE__ */ i("input", {
101
+ children: [/* @__PURE__ */ a("input", {
100
102
  type: "checkbox",
101
103
  checked: e.showValues !== !1,
102
- onChange: (e) => u("showValues", e.target.checked),
104
+ onChange: (e) => d("showValues", e.target.checked),
103
105
  className: "\n w-4 h-4\n text-action-primary-bg\n bg-bg-surface\n border-border-default\n rounded\n focus:ring-action-primary-bg\n "
104
- }), /* @__PURE__ */ i("span", {
106
+ }), /* @__PURE__ */ a("span", {
105
107
  className: "text-sm text-text-primary",
106
- children: c("bigconsole.widget.config.heatmap.showValues", "Show cell values")
108
+ children: l("bigconsole.widget.config.heatmap.showValues", "Show cell values")
107
109
  })]
108
110
  }),
109
- /* @__PURE__ */ a("label", {
111
+ /* @__PURE__ */ o("label", {
110
112
  className: "flex items-center gap-3",
111
- children: [/* @__PURE__ */ i("input", {
113
+ children: [/* @__PURE__ */ a("input", {
112
114
  type: "checkbox",
113
115
  checked: e.showLegend !== !1,
114
- onChange: (e) => u("showLegend", e.target.checked),
116
+ onChange: (e) => d("showLegend", e.target.checked),
115
117
  className: "\n w-4 h-4\n text-action-primary-bg\n bg-bg-surface\n border-border-default\n rounded\n focus:ring-action-primary-bg\n "
116
- }), /* @__PURE__ */ i("span", {
118
+ }), /* @__PURE__ */ a("span", {
117
119
  className: "text-sm text-text-primary",
118
- children: c("bigconsole.widget.config.heatmap.showLegend", "Show color legend")
120
+ children: l("bigconsole.widget.config.heatmap.showLegend", "Show color legend")
119
121
  })]
120
122
  })
121
123
  ]
@@ -123,4 +125,4 @@ var o = "\n w-full px-3 py-2\n text-sm text-text-primary\n bg-bg-surface\n b
123
125
  ]
124
126
  });
125
127
  });
126
- export { s as HeatmapConfig, s as default };
128
+ export { c as HeatmapConfig, c as default };