@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,304 +1,308 @@
1
1
  import { ReferenceLinesEditor as e } from "./ReferenceLinesEditor.js";
2
2
  import { normalizeReferenceLines as t, toReferenceLinesConfig as n } from "./referenceLineDraft.js";
3
3
  import { memo as r, useCallback as i, useMemo as a } from "react";
4
- import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
5
- import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
4
+ import { ThemedSelect as o } from "@burdenoff/fe-libs/ui";
5
+ import { useI18n as s } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
6
+ import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
6
7
  // src/bigconsole/components/widgets/chart/ChartConfig.tsx
7
- var u = r(function({ config: r, onChange: u, fixedChartType: d }) {
8
- let { t: f } = o(), p = a(() => d ? {
8
+ var d = r(function({ config: r, onChange: d, fixedChartType: f }) {
9
+ let { t: p } = s(), m = a(() => f ? {
9
10
  ...r,
10
- chartType: d
11
- } : r, [r, d]), m = a(() => [
11
+ chartType: f
12
+ } : r, [r, f]), h = a(() => [
12
13
  {
13
14
  value: "line",
14
- label: f("bigconsole.widget.config.chart.type.line", "Line Chart")
15
+ label: p("bigconsole.widget.config.chart.type.line", "Line Chart")
15
16
  },
16
17
  {
17
18
  value: "bar",
18
- label: f("bigconsole.widget.config.chart.type.bar", "Bar Chart")
19
+ label: p("bigconsole.widget.config.chart.type.bar", "Bar Chart")
19
20
  },
20
21
  {
21
22
  value: "area",
22
- label: f("bigconsole.widget.config.chart.type.area", "Area Chart")
23
+ label: p("bigconsole.widget.config.chart.type.area", "Area Chart")
23
24
  },
24
25
  {
25
26
  value: "pie",
26
- label: f("bigconsole.widget.config.chart.type.pie", "Pie Chart")
27
+ label: p("bigconsole.widget.config.chart.type.pie", "Pie Chart")
27
28
  },
28
29
  {
29
30
  value: "funnel",
30
- label: f("bigconsole.widget.config.chart.type.funnel", "Funnel Chart")
31
+ label: p("bigconsole.widget.config.chart.type.funnel", "Funnel Chart")
31
32
  }
32
- ], [f]), h = a(() => [
33
+ ], [p]), g = a(() => [
33
34
  {
34
35
  value: "monotone",
35
- label: f("bigconsole.widget.config.chart.curve.smooth", "Smooth")
36
+ label: p("bigconsole.widget.config.chart.curve.smooth", "Smooth")
36
37
  },
37
38
  {
38
39
  value: "linear",
39
- label: f("bigconsole.widget.config.chart.curve.linear", "Linear")
40
+ label: p("bigconsole.widget.config.chart.curve.linear", "Linear")
40
41
  },
41
42
  {
42
43
  value: "step",
43
- label: f("bigconsole.widget.config.chart.curve.step", "Step")
44
+ label: p("bigconsole.widget.config.chart.curve.step", "Step")
44
45
  },
45
46
  {
46
47
  value: "natural",
47
- label: f("bigconsole.widget.config.chart.curve.natural", "Natural")
48
+ label: p("bigconsole.widget.config.chart.curve.natural", "Natural")
48
49
  }
49
- ], [f]), g = a(() => [
50
+ ], [p]), _ = a(() => [
50
51
  {
51
52
  value: "top",
52
- label: f("bigconsole.widget.config.chart.legendPosition.top", "Top")
53
+ label: p("bigconsole.widget.config.chart.legendPosition.top", "Top")
53
54
  },
54
55
  {
55
56
  value: "bottom",
56
- label: f("bigconsole.widget.config.chart.legendPosition.bottom", "Bottom")
57
+ label: p("bigconsole.widget.config.chart.legendPosition.bottom", "Bottom")
57
58
  },
58
59
  {
59
60
  value: "left",
60
- label: f("bigconsole.widget.config.chart.legendPosition.left", "Left")
61
+ label: p("bigconsole.widget.config.chart.legendPosition.left", "Left")
61
62
  },
62
63
  {
63
64
  value: "right",
64
- label: f("bigconsole.widget.config.chart.legendPosition.right", "Right")
65
+ label: p("bigconsole.widget.config.chart.legendPosition.right", "Right")
65
66
  }
66
- ], [f]), _ = i((e, t) => {
67
- u({
68
- ...p,
67
+ ], [p]), v = i((e, t) => {
68
+ d({
69
+ ...m,
69
70
  [e]: t
70
71
  });
71
- }, [p, u]), v = p.chartType === "pie" || p.chartType === "funnel", y = a(() => t(p.referenceLines), [p.referenceLines]);
72
- return /* @__PURE__ */ l("div", {
72
+ }, [m, d]), y = m.chartType === "pie" || m.chartType === "funnel", b = a(() => t(m.referenceLines), [m.referenceLines]);
73
+ return /* @__PURE__ */ u("div", {
73
74
  className: "min-w-0 space-y-form-gap",
74
75
  children: [
75
- /* @__PURE__ */ l("div", {
76
- hidden: d !== void 0,
77
- children: [/* @__PURE__ */ c("label", {
76
+ /* @__PURE__ */ u("div", {
77
+ hidden: f !== void 0,
78
+ children: [/* @__PURE__ */ l("label", {
78
79
  className: "block text-sm font-medium text-text-primary mb-1",
79
- children: f("bigconsole.widget.config.chart.chartTypeLabel", "Chart Type")
80
- }), /* @__PURE__ */ c("select", {
81
- value: p.chartType || "line",
82
- onChange: (e) => _("chartType", e.target.value),
80
+ children: p("bigconsole.widget.config.chart.chartTypeLabel", "Chart Type")
81
+ }), /* @__PURE__ */ l(o, {
82
+ "aria-label": p("bigconsole.widget.config.chart.chartTypeLabel", "Chart Type"),
83
+ value: m.chartType || "line",
84
+ onChange: (e) => v("chartType", e.target.value),
83
85
  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 ",
84
- children: m.map((e) => /* @__PURE__ */ c("option", {
86
+ children: h.map((e) => /* @__PURE__ */ l("option", {
85
87
  value: e.value,
86
88
  children: e.label
87
89
  }, e.value))
88
90
  })]
89
91
  }),
90
- !v && /* @__PURE__ */ l(s, { children: [
91
- /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
92
+ !y && /* @__PURE__ */ u(c, { children: [
93
+ /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
92
94
  className: "block text-sm font-medium text-text-primary mb-1",
93
- children: f("bigconsole.widget.config.chart.xAxisFieldLabel", "X-Axis Field")
94
- }), /* @__PURE__ */ c("input", {
95
+ children: p("bigconsole.widget.config.chart.xAxisFieldLabel", "X-Axis Field")
96
+ }), /* @__PURE__ */ l("input", {
95
97
  type: "text",
96
- value: p.xAxisField || "",
97
- onChange: (e) => _("xAxisField", e.target.value),
98
- placeholder: f("bigconsole.widget.config.chart.xAxisFieldPlaceholder", "e.g., date, category"),
98
+ value: m.xAxisField || "",
99
+ onChange: (e) => v("xAxisField", e.target.value),
100
+ placeholder: p("bigconsole.widget.config.chart.xAxisFieldPlaceholder", "e.g., date, category"),
99
101
  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 "
100
102
  })] }),
101
- /* @__PURE__ */ l("div", {
103
+ /* @__PURE__ */ u("div", {
102
104
  className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
103
- children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
105
+ children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
104
106
  className: "block text-sm font-medium text-text-primary mb-1",
105
- children: f("bigconsole.widget.config.chart.xAxisLabelLabel", "X-Axis Label")
106
- }), /* @__PURE__ */ c("input", {
107
+ children: p("bigconsole.widget.config.chart.xAxisLabelLabel", "X-Axis Label")
108
+ }), /* @__PURE__ */ l("input", {
107
109
  type: "text",
108
- value: p.xAxisLabel || "",
109
- onChange: (e) => _("xAxisLabel", e.target.value),
110
- placeholder: f("bigconsole.widget.config.chart.optionalPlaceholder", "Optional"),
110
+ value: m.xAxisLabel || "",
111
+ onChange: (e) => v("xAxisLabel", e.target.value),
112
+ placeholder: p("bigconsole.widget.config.chart.optionalPlaceholder", "Optional"),
111
113
  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 "
112
- })] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
114
+ })] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
113
115
  className: "block text-sm font-medium text-text-primary mb-1",
114
- children: f("bigconsole.widget.config.chart.yAxisLabelLabel", "Y-Axis Label")
115
- }), /* @__PURE__ */ c("input", {
116
+ children: p("bigconsole.widget.config.chart.yAxisLabelLabel", "Y-Axis Label")
117
+ }), /* @__PURE__ */ l("input", {
116
118
  type: "text",
117
- value: p.yAxisLabel || "",
118
- onChange: (e) => _("yAxisLabel", e.target.value),
119
- placeholder: f("bigconsole.widget.config.chart.optionalPlaceholder", "Optional"),
119
+ value: m.yAxisLabel || "",
120
+ onChange: (e) => v("yAxisLabel", e.target.value),
121
+ placeholder: p("bigconsole.widget.config.chart.optionalPlaceholder", "Optional"),
120
122
  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 "
121
123
  })] })]
122
124
  }),
123
- !v && /* @__PURE__ */ l("div", {
125
+ !y && /* @__PURE__ */ u("div", {
124
126
  className: "grid grid-cols-2 gap-3",
125
- children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
127
+ children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
126
128
  className: "block text-sm font-medium text-text-primary mb-1",
127
- children: f("bigconsole.widget.config.chart.yMinLabel", "Y-Axis Min")
128
- }), /* @__PURE__ */ c("input", {
129
+ children: p("bigconsole.widget.config.chart.yMinLabel", "Y-Axis Min")
130
+ }), /* @__PURE__ */ l("input", {
129
131
  type: "number",
130
- value: p.yMin ?? "",
131
- onChange: (e) => _("yMin", e.target.value === "" ? void 0 : Number(e.target.value)),
132
- placeholder: f("bigconsole.widget.config.chart.autoPlaceholder", "Auto"),
132
+ value: m.yMin ?? "",
133
+ onChange: (e) => v("yMin", e.target.value === "" ? void 0 : Number(e.target.value)),
134
+ placeholder: p("bigconsole.widget.config.chart.autoPlaceholder", "Auto"),
133
135
  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 "
134
- })] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
136
+ })] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
135
137
  className: "block text-sm font-medium text-text-primary mb-1",
136
- children: f("bigconsole.widget.config.chart.yMaxLabel", "Y-Axis Max")
137
- }), /* @__PURE__ */ c("input", {
138
+ children: p("bigconsole.widget.config.chart.yMaxLabel", "Y-Axis Max")
139
+ }), /* @__PURE__ */ l("input", {
138
140
  type: "number",
139
- value: p.yMax ?? "",
140
- onChange: (e) => _("yMax", e.target.value === "" ? void 0 : Number(e.target.value)),
141
- placeholder: f("bigconsole.widget.config.chart.autoPlaceholder", "Auto"),
141
+ value: m.yMax ?? "",
142
+ onChange: (e) => v("yMax", e.target.value === "" ? void 0 : Number(e.target.value)),
143
+ placeholder: p("bigconsole.widget.config.chart.autoPlaceholder", "Auto"),
142
144
  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 "
143
145
  })] })]
144
146
  }),
145
- (p.chartType === "line" || p.chartType === "area") && /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
147
+ (m.chartType === "line" || m.chartType === "area") && /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
146
148
  className: "block text-sm font-medium text-text-primary mb-1",
147
- children: f("bigconsole.widget.config.chart.curveTypeLabel", "Curve Type")
148
- }), /* @__PURE__ */ c("select", {
149
- value: p.curveType || "monotone",
150
- onChange: (e) => _("curveType", e.target.value),
149
+ children: p("bigconsole.widget.config.chart.curveTypeLabel", "Curve Type")
150
+ }), /* @__PURE__ */ l(o, {
151
+ "aria-label": p("bigconsole.widget.config.chart.curveTypeLabel", "Curve Type"),
152
+ value: m.curveType || "monotone",
153
+ onChange: (e) => v("curveType", e.target.value),
151
154
  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 ",
152
- children: h.map((e) => /* @__PURE__ */ c("option", {
155
+ children: g.map((e) => /* @__PURE__ */ l("option", {
153
156
  value: e.value,
154
157
  children: e.label
155
158
  }, e.value))
156
159
  })] })
157
160
  ] }),
158
- v && /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ l("div", {
161
+ y && /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ u("div", {
159
162
  className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
160
- children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
163
+ children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
161
164
  className: "block text-sm font-medium text-text-primary mb-1",
162
- children: f("bigconsole.widget.config.chart.valueFieldLabel", "Value Field")
163
- }), /* @__PURE__ */ c("input", {
165
+ children: p("bigconsole.widget.config.chart.valueFieldLabel", "Value Field")
166
+ }), /* @__PURE__ */ l("input", {
164
167
  type: "text",
165
- value: p.valueField || "",
166
- onChange: (e) => _("valueField", e.target.value),
167
- placeholder: f("bigconsole.widget.config.chart.valueFieldPlaceholder", "e.g., value"),
168
+ value: m.valueField || "",
169
+ onChange: (e) => v("valueField", e.target.value),
170
+ placeholder: p("bigconsole.widget.config.chart.valueFieldPlaceholder", "e.g., value"),
168
171
  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 "
169
- })] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
172
+ })] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
170
173
  className: "block text-sm font-medium text-text-primary mb-1",
171
- children: f("bigconsole.widget.config.chart.labelFieldLabel", "Label Field")
172
- }), /* @__PURE__ */ c("input", {
174
+ children: p("bigconsole.widget.config.chart.labelFieldLabel", "Label Field")
175
+ }), /* @__PURE__ */ l("input", {
173
176
  type: "text",
174
- value: p.labelField || "",
175
- onChange: (e) => _("labelField", e.target.value),
176
- placeholder: f("bigconsole.widget.config.chart.labelFieldPlaceholder", "e.g., name"),
177
+ value: m.labelField || "",
178
+ onChange: (e) => v("labelField", e.target.value),
179
+ placeholder: p("bigconsole.widget.config.chart.labelFieldPlaceholder", "e.g., name"),
177
180
  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 "
178
181
  })] })]
179
- }), p.chartType === "pie" && /* @__PURE__ */ l("label", {
182
+ }), m.chartType === "pie" && /* @__PURE__ */ u("label", {
180
183
  className: "flex items-center gap-3",
181
- children: [/* @__PURE__ */ c("input", {
184
+ children: [/* @__PURE__ */ l("input", {
182
185
  type: "checkbox",
183
- checked: p.showAsDonut === !0,
184
- onChange: (e) => _("showAsDonut", e.target.checked),
186
+ checked: m.showAsDonut === !0,
187
+ onChange: (e) => v("showAsDonut", e.target.checked),
185
188
  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 "
186
- }), /* @__PURE__ */ c("span", {
189
+ }), /* @__PURE__ */ l("span", {
187
190
  className: "text-sm text-text-primary",
188
- children: f("bigconsole.widget.config.chart.showAsDonut", "Show as Donut")
191
+ children: p("bigconsole.widget.config.chart.showAsDonut", "Show as Donut")
189
192
  })]
190
193
  })] }),
191
- /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
194
+ /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
192
195
  className: "block text-sm font-medium text-text-primary mb-1",
193
- children: f("bigconsole.widget.config.chart.legendPositionLabel", "Legend Position")
194
- }), /* @__PURE__ */ c("select", {
195
- value: p.legendPosition || "bottom",
196
- onChange: (e) => _("legendPosition", e.target.value),
196
+ children: p("bigconsole.widget.config.chart.legendPositionLabel", "Legend Position")
197
+ }), /* @__PURE__ */ l(o, {
198
+ "aria-label": p("bigconsole.widget.config.chart.legendPositionLabel", "Legend Position"),
199
+ value: m.legendPosition || "bottom",
200
+ onChange: (e) => v("legendPosition", e.target.value),
197
201
  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 ",
198
- children: g.map((e) => /* @__PURE__ */ c("option", {
202
+ children: _.map((e) => /* @__PURE__ */ l("option", {
199
203
  value: e.value,
200
204
  children: e.label
201
205
  }, e.value))
202
206
  })] }),
203
- !v && /* @__PURE__ */ l("div", { children: [
204
- /* @__PURE__ */ c("label", {
207
+ !y && /* @__PURE__ */ u("div", { children: [
208
+ /* @__PURE__ */ l("label", {
205
209
  className: "block text-sm font-medium text-text-primary mb-1",
206
- children: f("bigconsole.widget.config.chart.fieldsToDisplayLabel", "Fields to Display")
210
+ children: p("bigconsole.widget.config.chart.fieldsToDisplayLabel", "Fields to Display")
207
211
  }),
208
- /* @__PURE__ */ c("p", {
212
+ /* @__PURE__ */ l("p", {
209
213
  className: "text-xs text-text-secondary mb-2",
210
- children: f("bigconsole.widget.config.chart.fieldsToDisplayHelp", "Select which numeric fields to show as chart series. Leave empty to show all.")
214
+ children: p("bigconsole.widget.config.chart.fieldsToDisplayHelp", "Select which numeric fields to show as chart series. Leave empty to show all.")
211
215
  }),
212
- /* @__PURE__ */ c("input", {
216
+ /* @__PURE__ */ l("input", {
213
217
  type: "text",
214
- value: p.selectedFields?.join(", ") || "",
218
+ value: m.selectedFields?.join(", ") || "",
215
219
  onChange: (e) => {
216
220
  let t = e.target.value.trim(), n = t ? t.split(",").map((e) => e.trim()).filter(Boolean) : [];
217
- _("selectedFields", n.length > 0 ? n : void 0);
221
+ v("selectedFields", n.length > 0 ? n : void 0);
218
222
  },
219
- placeholder: f("bigconsole.widget.config.chart.fieldsToDisplayPlaceholder", "e.g., revenue, orders, users (comma-separated)"),
223
+ placeholder: p("bigconsole.widget.config.chart.fieldsToDisplayPlaceholder", "e.g., revenue, orders, users (comma-separated)"),
220
224
  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 "
221
225
  }),
222
- /* @__PURE__ */ c("p", {
226
+ /* @__PURE__ */ l("p", {
223
227
  className: "text-xs text-text-muted mt-1",
224
- children: f("bigconsole.widget.config.chart.fieldsToDisplayHint", "Enter field names separated by commas")
228
+ children: p("bigconsole.widget.config.chart.fieldsToDisplayHint", "Enter field names separated by commas")
225
229
  })
226
230
  ] }),
227
- !v && /* @__PURE__ */ c("div", {
231
+ !y && /* @__PURE__ */ l("div", {
228
232
  className: "border-t border-[var(--color-border-subtle)] pt-form-gap",
229
- children: /* @__PURE__ */ c(e, {
230
- lines: y,
231
- onChange: (e) => _("referenceLines", n(e))
233
+ children: /* @__PURE__ */ l(e, {
234
+ lines: b,
235
+ onChange: (e) => v("referenceLines", n(e))
232
236
  })
233
237
  }),
234
- /* @__PURE__ */ l("div", {
238
+ /* @__PURE__ */ u("div", {
235
239
  role: "group",
236
240
  "aria-label": "Display options",
237
241
  className: "space-y-3 border-t border-[var(--color-border-subtle)] pt-form-gap",
238
242
  children: [
239
- /* @__PURE__ */ c("p", {
243
+ /* @__PURE__ */ l("p", {
240
244
  className: "text-xs font-bold uppercase tracking-wider text-text-secondary",
241
245
  children: "Display options"
242
246
  }),
243
- /* @__PURE__ */ l("label", {
247
+ /* @__PURE__ */ u("label", {
244
248
  className: "flex items-center gap-3",
245
- children: [/* @__PURE__ */ c("input", {
249
+ children: [/* @__PURE__ */ l("input", {
246
250
  type: "checkbox",
247
- checked: p.showGrid !== !1,
248
- onChange: (e) => _("showGrid", e.target.checked),
251
+ checked: m.showGrid !== !1,
252
+ onChange: (e) => v("showGrid", e.target.checked),
249
253
  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 "
250
- }), /* @__PURE__ */ c("span", {
254
+ }), /* @__PURE__ */ l("span", {
251
255
  className: "text-sm text-text-primary",
252
- children: f("bigconsole.widget.config.chart.showGrid", "Show Grid")
256
+ children: p("bigconsole.widget.config.chart.showGrid", "Show Grid")
253
257
  })]
254
258
  }),
255
- /* @__PURE__ */ l("label", {
259
+ /* @__PURE__ */ u("label", {
256
260
  className: "flex items-center gap-3",
257
- children: [/* @__PURE__ */ c("input", {
261
+ children: [/* @__PURE__ */ l("input", {
258
262
  type: "checkbox",
259
- checked: p.showLegend !== !1,
260
- onChange: (e) => _("showLegend", e.target.checked),
263
+ checked: m.showLegend !== !1,
264
+ onChange: (e) => v("showLegend", e.target.checked),
261
265
  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 "
262
- }), /* @__PURE__ */ c("span", {
266
+ }), /* @__PURE__ */ l("span", {
263
267
  className: "text-sm text-text-primary",
264
- children: f("bigconsole.widget.config.chart.showLegend", "Show Legend")
268
+ children: p("bigconsole.widget.config.chart.showLegend", "Show Legend")
265
269
  })]
266
270
  }),
267
- !v && /* @__PURE__ */ l(s, { children: [
268
- /* @__PURE__ */ l("label", {
271
+ !y && /* @__PURE__ */ u(c, { children: [
272
+ /* @__PURE__ */ u("label", {
269
273
  className: "flex items-center gap-3",
270
- children: [/* @__PURE__ */ c("input", {
274
+ children: [/* @__PURE__ */ l("input", {
271
275
  type: "checkbox",
272
- checked: p.showDataPoints === !0,
273
- onChange: (e) => _("showDataPoints", e.target.checked),
276
+ checked: m.showDataPoints === !0,
277
+ onChange: (e) => v("showDataPoints", e.target.checked),
274
278
  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 "
275
- }), /* @__PURE__ */ c("span", {
279
+ }), /* @__PURE__ */ l("span", {
276
280
  className: "text-sm text-text-primary",
277
- children: f("bigconsole.widget.config.chart.showDataPoints", "Show Data Points")
281
+ children: p("bigconsole.widget.config.chart.showDataPoints", "Show Data Points")
278
282
  })]
279
283
  }),
280
- (p.chartType === "line" || p.chartType === "area" || p.chartType === "bar") && /* @__PURE__ */ l("label", {
284
+ (m.chartType === "line" || m.chartType === "area" || m.chartType === "bar") && /* @__PURE__ */ u("label", {
281
285
  className: "flex items-center gap-3",
282
- children: [/* @__PURE__ */ c("input", {
286
+ children: [/* @__PURE__ */ l("input", {
283
287
  type: "checkbox",
284
- checked: p.startAtZero === !0,
285
- onChange: (e) => _("startAtZero", e.target.checked),
288
+ checked: m.startAtZero === !0,
289
+ onChange: (e) => v("startAtZero", e.target.checked),
286
290
  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 "
287
- }), /* @__PURE__ */ c("span", {
291
+ }), /* @__PURE__ */ l("span", {
288
292
  className: "text-sm text-text-primary",
289
- children: f("bigconsole.widget.config.chart.startAtZero", "Y-axis: start at zero")
293
+ children: p("bigconsole.widget.config.chart.startAtZero", "Y-axis: start at zero")
290
294
  })]
291
295
  }),
292
- (p.chartType === "bar" || p.chartType === "area") && /* @__PURE__ */ l("label", {
296
+ (m.chartType === "bar" || m.chartType === "area") && /* @__PURE__ */ u("label", {
293
297
  className: "flex items-center gap-3",
294
- children: [/* @__PURE__ */ c("input", {
298
+ children: [/* @__PURE__ */ l("input", {
295
299
  type: "checkbox",
296
- checked: p.stacked === !0,
297
- onChange: (e) => _("stacked", e.target.checked),
300
+ checked: m.stacked === !0,
301
+ onChange: (e) => v("stacked", e.target.checked),
298
302
  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 "
299
- }), /* @__PURE__ */ c("span", {
303
+ }), /* @__PURE__ */ l("span", {
300
304
  className: "text-sm text-text-primary",
301
- children: f("bigconsole.widget.config.chart.stacked", "Stacked")
305
+ children: p("bigconsole.widget.config.chart.stacked", "Stacked")
302
306
  })]
303
307
  })
304
308
  ] })
@@ -307,4 +311,4 @@ var u = r(function({ config: r, onChange: u, fixedChartType: d }) {
307
311
  ]
308
312
  });
309
313
  });
310
- export { u as ChartConfig, u as default };
314
+ export { d as ChartConfig, d as default };