@burdenoff/microfe-bigconsole 2026.1123.6 → 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.
- package/dist/bigconsole/asof/AsOfControl.js +2 -2
- package/dist/bigconsole/components/dashboard/DashboardCommentsDrawer.js +107 -106
- package/dist/bigconsole/components/dashboard/DashboardGalleryCard.d.ts +34 -0
- package/dist/bigconsole/components/dashboard/DashboardGalleryCard.js +123 -0
- package/dist/bigconsole/components/dashboard/DashboardReviewDialog.js +1 -1
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +19 -35
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +119 -116
- package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +172 -170
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +210 -208
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +97 -97
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +92 -92
- package/dist/bigconsole/components/datasink/AlertRuleEditor.js +149 -149
- package/dist/bigconsole/components/datasink/AnomalyDetectorPanel.js +54 -54
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -37
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +4 -4
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +130 -129
- package/dist/bigconsole/components/datasink/SetupStateBadge.js +24 -33
- package/dist/bigconsole/components/datasink/SinkWorkflowLinkForm.js +38 -38
- package/dist/bigconsole/components/explore/CreateQueryWidget.js +57 -56
- package/dist/bigconsole/components/explore/SqlDraftEditor.js +140 -140
- package/dist/bigconsole/components/explore/VisualBuilder.js +85 -84
- package/dist/bigconsole/components/explore/queryAccess/GrantsPanel.js +168 -167
- package/dist/bigconsole/components/explore/queryAccess/QueryAccessAdmin.js +2 -2
- package/dist/bigconsole/components/explore/queryAccess/RelationEditor.js +118 -117
- package/dist/bigconsole/components/insights/BoardLintPanel.js +2 -2
- package/dist/bigconsole/components/insights/OutlierSpottingDialog.js +123 -123
- package/dist/bigconsole/components/kpi-change/KpiChangePanel.js +2 -2
- package/dist/bigconsole/components/narrative/NarrativePanel.js +1 -1
- package/dist/bigconsole/components/overview/DataHealthCard.js +3 -0
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +3 -0
- package/dist/bigconsole/components/parser/ParserStatusBadge.js +25 -28
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +23 -22
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +15 -26
- package/dist/bigconsole/components/reconcile/KpiReconcileDialog.js +24 -24
- package/dist/bigconsole/components/settings/WidgetCatalogSection.js +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +188 -187
- package/dist/bigconsole/components/widgets/FilterNotAppliedNotice.js +1 -1
- package/dist/bigconsole/components/widgets/UnsupportedDataSourceNotice.js +1 -1
- package/dist/bigconsole/components/widgets/WidgetCompareView.js +3 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.js +1 -1
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +45 -44
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +151 -147
- package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +48 -47
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +139 -138
- package/dist/bigconsole/components/widgets/form/FormWidget.js +149 -148
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +80 -77
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +58 -56
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +75 -73
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +86 -85
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +80 -77
- package/dist/bigconsole/components/widgets/retention/RetentionView.js +1 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.js +214 -211
- package/dist/bigconsole/components/widgets/table/TablePagination.js +59 -58
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +140 -138
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +74 -66
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +48 -48
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +28 -37
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +69 -69
- package/dist/bigconsole/hooks/useDashboardListQuery.d.ts +22 -0
- package/dist/bigconsole/hooks/useDashboardListQuery.js +39 -0
- package/dist/bigconsole/pages/AdminPage.js +147 -146
- package/dist/bigconsole/pages/DashboardViewPage.js +2 -0
- package/dist/bigconsole/pages/DashboardsPage.js +638 -855
- package/dist/bigconsole/pages/DataParsersPage.js +5 -0
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +4 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +263 -261
- package/dist/bigconsole/pages/DataSinksPage.js +210 -186
- package/dist/bigconsole/pages/InsightsPage.js +386 -383
- package/dist/bigconsole/pages/ParserBuilderPage.js +413 -413
- package/dist/bigconsole/pages/ParserViewPage.js +2 -0
- package/dist/bigconsole/pages/PipelineBuilderPage.js +279 -276
- package/dist/bigconsole/pages/PipelineViewPage.js +3 -0
- package/dist/bigconsole/pages/PipelinesPage.js +198 -165
- package/dist/bigconsole/pages/SettingsPage.js +160 -160
- package/dist/bigconsole/pages/WidgetDemoPage.js +2 -0
- package/dist/bigconsole/pages/WorkflowViewPage.js +5 -0
- package/dist/bigconsole/pages/WorkflowsPage.js +144 -123
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +1 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +123 -122
- package/dist/bigconsole/utils/dashboardGallery.d.ts +84 -0
- package/dist/bigconsole/utils/dashboardGallery.js +93 -0
- package/dist/bigconsole/utils/statusTone.d.ts +17 -0
- package/dist/bigconsole/utils/statusTone.js +44 -0
- 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 {
|
|
5
|
-
import {
|
|
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
|
|
8
|
-
let { t:
|
|
8
|
+
var d = r(function({ config: r, onChange: d, fixedChartType: f }) {
|
|
9
|
+
let { t: p } = s(), m = a(() => f ? {
|
|
9
10
|
...r,
|
|
10
|
-
chartType:
|
|
11
|
-
} : r, [r,
|
|
11
|
+
chartType: f
|
|
12
|
+
} : r, [r, f]), h = a(() => [
|
|
12
13
|
{
|
|
13
14
|
value: "line",
|
|
14
|
-
label:
|
|
15
|
+
label: p("bigconsole.widget.config.chart.type.line", "Line Chart")
|
|
15
16
|
},
|
|
16
17
|
{
|
|
17
18
|
value: "bar",
|
|
18
|
-
label:
|
|
19
|
+
label: p("bigconsole.widget.config.chart.type.bar", "Bar Chart")
|
|
19
20
|
},
|
|
20
21
|
{
|
|
21
22
|
value: "area",
|
|
22
|
-
label:
|
|
23
|
+
label: p("bigconsole.widget.config.chart.type.area", "Area Chart")
|
|
23
24
|
},
|
|
24
25
|
{
|
|
25
26
|
value: "pie",
|
|
26
|
-
label:
|
|
27
|
+
label: p("bigconsole.widget.config.chart.type.pie", "Pie Chart")
|
|
27
28
|
},
|
|
28
29
|
{
|
|
29
30
|
value: "funnel",
|
|
30
|
-
label:
|
|
31
|
+
label: p("bigconsole.widget.config.chart.type.funnel", "Funnel Chart")
|
|
31
32
|
}
|
|
32
|
-
], [
|
|
33
|
+
], [p]), g = a(() => [
|
|
33
34
|
{
|
|
34
35
|
value: "monotone",
|
|
35
|
-
label:
|
|
36
|
+
label: p("bigconsole.widget.config.chart.curve.smooth", "Smooth")
|
|
36
37
|
},
|
|
37
38
|
{
|
|
38
39
|
value: "linear",
|
|
39
|
-
label:
|
|
40
|
+
label: p("bigconsole.widget.config.chart.curve.linear", "Linear")
|
|
40
41
|
},
|
|
41
42
|
{
|
|
42
43
|
value: "step",
|
|
43
|
-
label:
|
|
44
|
+
label: p("bigconsole.widget.config.chart.curve.step", "Step")
|
|
44
45
|
},
|
|
45
46
|
{
|
|
46
47
|
value: "natural",
|
|
47
|
-
label:
|
|
48
|
+
label: p("bigconsole.widget.config.chart.curve.natural", "Natural")
|
|
48
49
|
}
|
|
49
|
-
], [
|
|
50
|
+
], [p]), _ = a(() => [
|
|
50
51
|
{
|
|
51
52
|
value: "top",
|
|
52
|
-
label:
|
|
53
|
+
label: p("bigconsole.widget.config.chart.legendPosition.top", "Top")
|
|
53
54
|
},
|
|
54
55
|
{
|
|
55
56
|
value: "bottom",
|
|
56
|
-
label:
|
|
57
|
+
label: p("bigconsole.widget.config.chart.legendPosition.bottom", "Bottom")
|
|
57
58
|
},
|
|
58
59
|
{
|
|
59
60
|
value: "left",
|
|
60
|
-
label:
|
|
61
|
+
label: p("bigconsole.widget.config.chart.legendPosition.left", "Left")
|
|
61
62
|
},
|
|
62
63
|
{
|
|
63
64
|
value: "right",
|
|
64
|
-
label:
|
|
65
|
+
label: p("bigconsole.widget.config.chart.legendPosition.right", "Right")
|
|
65
66
|
}
|
|
66
|
-
], [
|
|
67
|
-
|
|
68
|
-
...
|
|
67
|
+
], [p]), v = i((e, t) => {
|
|
68
|
+
d({
|
|
69
|
+
...m,
|
|
69
70
|
[e]: t
|
|
70
71
|
});
|
|
71
|
-
}, [
|
|
72
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
76
|
-
hidden:
|
|
77
|
-
children: [/* @__PURE__ */
|
|
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:
|
|
80
|
-
}), /* @__PURE__ */
|
|
81
|
-
|
|
82
|
-
|
|
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:
|
|
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
|
-
!
|
|
91
|
-
/* @__PURE__ */
|
|
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:
|
|
94
|
-
}), /* @__PURE__ */
|
|
95
|
+
children: p("bigconsole.widget.config.chart.xAxisFieldLabel", "X-Axis Field")
|
|
96
|
+
}), /* @__PURE__ */ l("input", {
|
|
95
97
|
type: "text",
|
|
96
|
-
value:
|
|
97
|
-
onChange: (e) =>
|
|
98
|
-
placeholder:
|
|
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__ */
|
|
103
|
+
/* @__PURE__ */ u("div", {
|
|
102
104
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
|
|
103
|
-
children: [/* @__PURE__ */
|
|
105
|
+
children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
104
106
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
105
|
-
children:
|
|
106
|
-
}), /* @__PURE__ */
|
|
107
|
+
children: p("bigconsole.widget.config.chart.xAxisLabelLabel", "X-Axis Label")
|
|
108
|
+
}), /* @__PURE__ */ l("input", {
|
|
107
109
|
type: "text",
|
|
108
|
-
value:
|
|
109
|
-
onChange: (e) =>
|
|
110
|
-
placeholder:
|
|
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__ */
|
|
114
|
+
})] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
113
115
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
114
|
-
children:
|
|
115
|
-
}), /* @__PURE__ */
|
|
116
|
+
children: p("bigconsole.widget.config.chart.yAxisLabelLabel", "Y-Axis Label")
|
|
117
|
+
}), /* @__PURE__ */ l("input", {
|
|
116
118
|
type: "text",
|
|
117
|
-
value:
|
|
118
|
-
onChange: (e) =>
|
|
119
|
-
placeholder:
|
|
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
|
-
!
|
|
125
|
+
!y && /* @__PURE__ */ u("div", {
|
|
124
126
|
className: "grid grid-cols-2 gap-3",
|
|
125
|
-
children: [/* @__PURE__ */
|
|
127
|
+
children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
126
128
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
127
|
-
children:
|
|
128
|
-
}), /* @__PURE__ */
|
|
129
|
+
children: p("bigconsole.widget.config.chart.yMinLabel", "Y-Axis Min")
|
|
130
|
+
}), /* @__PURE__ */ l("input", {
|
|
129
131
|
type: "number",
|
|
130
|
-
value:
|
|
131
|
-
onChange: (e) =>
|
|
132
|
-
placeholder:
|
|
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__ */
|
|
136
|
+
})] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
135
137
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
136
|
-
children:
|
|
137
|
-
}), /* @__PURE__ */
|
|
138
|
+
children: p("bigconsole.widget.config.chart.yMaxLabel", "Y-Axis Max")
|
|
139
|
+
}), /* @__PURE__ */ l("input", {
|
|
138
140
|
type: "number",
|
|
139
|
-
value:
|
|
140
|
-
onChange: (e) =>
|
|
141
|
-
placeholder:
|
|
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
|
-
(
|
|
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:
|
|
148
|
-
}), /* @__PURE__ */
|
|
149
|
-
|
|
150
|
-
|
|
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:
|
|
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
|
-
|
|
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__ */
|
|
163
|
+
children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
161
164
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
162
|
-
children:
|
|
163
|
-
}), /* @__PURE__ */
|
|
165
|
+
children: p("bigconsole.widget.config.chart.valueFieldLabel", "Value Field")
|
|
166
|
+
}), /* @__PURE__ */ l("input", {
|
|
164
167
|
type: "text",
|
|
165
|
-
value:
|
|
166
|
-
onChange: (e) =>
|
|
167
|
-
placeholder:
|
|
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__ */
|
|
172
|
+
})] }), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
170
173
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
171
|
-
children:
|
|
172
|
-
}), /* @__PURE__ */
|
|
174
|
+
children: p("bigconsole.widget.config.chart.labelFieldLabel", "Label Field")
|
|
175
|
+
}), /* @__PURE__ */ l("input", {
|
|
173
176
|
type: "text",
|
|
174
|
-
value:
|
|
175
|
-
onChange: (e) =>
|
|
176
|
-
placeholder:
|
|
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
|
-
}),
|
|
182
|
+
}), m.chartType === "pie" && /* @__PURE__ */ u("label", {
|
|
180
183
|
className: "flex items-center gap-3",
|
|
181
|
-
children: [/* @__PURE__ */
|
|
184
|
+
children: [/* @__PURE__ */ l("input", {
|
|
182
185
|
type: "checkbox",
|
|
183
|
-
checked:
|
|
184
|
-
onChange: (e) =>
|
|
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__ */
|
|
189
|
+
}), /* @__PURE__ */ l("span", {
|
|
187
190
|
className: "text-sm text-text-primary",
|
|
188
|
-
children:
|
|
191
|
+
children: p("bigconsole.widget.config.chart.showAsDonut", "Show as Donut")
|
|
189
192
|
})]
|
|
190
193
|
})] }),
|
|
191
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("label", {
|
|
192
195
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
193
|
-
children:
|
|
194
|
-
}), /* @__PURE__ */
|
|
195
|
-
|
|
196
|
-
|
|
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:
|
|
202
|
+
children: _.map((e) => /* @__PURE__ */ l("option", {
|
|
199
203
|
value: e.value,
|
|
200
204
|
children: e.label
|
|
201
205
|
}, e.value))
|
|
202
206
|
})] }),
|
|
203
|
-
!
|
|
204
|
-
/* @__PURE__ */
|
|
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:
|
|
210
|
+
children: p("bigconsole.widget.config.chart.fieldsToDisplayLabel", "Fields to Display")
|
|
207
211
|
}),
|
|
208
|
-
/* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ l("p", {
|
|
209
213
|
className: "text-xs text-text-secondary mb-2",
|
|
210
|
-
children:
|
|
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__ */
|
|
216
|
+
/* @__PURE__ */ l("input", {
|
|
213
217
|
type: "text",
|
|
214
|
-
value:
|
|
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
|
-
|
|
221
|
+
v("selectedFields", n.length > 0 ? n : void 0);
|
|
218
222
|
},
|
|
219
|
-
placeholder:
|
|
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__ */
|
|
226
|
+
/* @__PURE__ */ l("p", {
|
|
223
227
|
className: "text-xs text-text-muted mt-1",
|
|
224
|
-
children:
|
|
228
|
+
children: p("bigconsole.widget.config.chart.fieldsToDisplayHint", "Enter field names separated by commas")
|
|
225
229
|
})
|
|
226
230
|
] }),
|
|
227
|
-
!
|
|
231
|
+
!y && /* @__PURE__ */ l("div", {
|
|
228
232
|
className: "border-t border-[var(--color-border-subtle)] pt-form-gap",
|
|
229
|
-
children: /* @__PURE__ */
|
|
230
|
-
lines:
|
|
231
|
-
onChange: (e) =>
|
|
233
|
+
children: /* @__PURE__ */ l(e, {
|
|
234
|
+
lines: b,
|
|
235
|
+
onChange: (e) => v("referenceLines", n(e))
|
|
232
236
|
})
|
|
233
237
|
}),
|
|
234
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
247
|
+
/* @__PURE__ */ u("label", {
|
|
244
248
|
className: "flex items-center gap-3",
|
|
245
|
-
children: [/* @__PURE__ */
|
|
249
|
+
children: [/* @__PURE__ */ l("input", {
|
|
246
250
|
type: "checkbox",
|
|
247
|
-
checked:
|
|
248
|
-
onChange: (e) =>
|
|
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__ */
|
|
254
|
+
}), /* @__PURE__ */ l("span", {
|
|
251
255
|
className: "text-sm text-text-primary",
|
|
252
|
-
children:
|
|
256
|
+
children: p("bigconsole.widget.config.chart.showGrid", "Show Grid")
|
|
253
257
|
})]
|
|
254
258
|
}),
|
|
255
|
-
/* @__PURE__ */
|
|
259
|
+
/* @__PURE__ */ u("label", {
|
|
256
260
|
className: "flex items-center gap-3",
|
|
257
|
-
children: [/* @__PURE__ */
|
|
261
|
+
children: [/* @__PURE__ */ l("input", {
|
|
258
262
|
type: "checkbox",
|
|
259
|
-
checked:
|
|
260
|
-
onChange: (e) =>
|
|
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__ */
|
|
266
|
+
}), /* @__PURE__ */ l("span", {
|
|
263
267
|
className: "text-sm text-text-primary",
|
|
264
|
-
children:
|
|
268
|
+
children: p("bigconsole.widget.config.chart.showLegend", "Show Legend")
|
|
265
269
|
})]
|
|
266
270
|
}),
|
|
267
|
-
!
|
|
268
|
-
/* @__PURE__ */
|
|
271
|
+
!y && /* @__PURE__ */ u(c, { children: [
|
|
272
|
+
/* @__PURE__ */ u("label", {
|
|
269
273
|
className: "flex items-center gap-3",
|
|
270
|
-
children: [/* @__PURE__ */
|
|
274
|
+
children: [/* @__PURE__ */ l("input", {
|
|
271
275
|
type: "checkbox",
|
|
272
|
-
checked:
|
|
273
|
-
onChange: (e) =>
|
|
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__ */
|
|
279
|
+
}), /* @__PURE__ */ l("span", {
|
|
276
280
|
className: "text-sm text-text-primary",
|
|
277
|
-
children:
|
|
281
|
+
children: p("bigconsole.widget.config.chart.showDataPoints", "Show Data Points")
|
|
278
282
|
})]
|
|
279
283
|
}),
|
|
280
|
-
(
|
|
284
|
+
(m.chartType === "line" || m.chartType === "area" || m.chartType === "bar") && /* @__PURE__ */ u("label", {
|
|
281
285
|
className: "flex items-center gap-3",
|
|
282
|
-
children: [/* @__PURE__ */
|
|
286
|
+
children: [/* @__PURE__ */ l("input", {
|
|
283
287
|
type: "checkbox",
|
|
284
|
-
checked:
|
|
285
|
-
onChange: (e) =>
|
|
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__ */
|
|
291
|
+
}), /* @__PURE__ */ l("span", {
|
|
288
292
|
className: "text-sm text-text-primary",
|
|
289
|
-
children:
|
|
293
|
+
children: p("bigconsole.widget.config.chart.startAtZero", "Y-axis: start at zero")
|
|
290
294
|
})]
|
|
291
295
|
}),
|
|
292
|
-
(
|
|
296
|
+
(m.chartType === "bar" || m.chartType === "area") && /* @__PURE__ */ u("label", {
|
|
293
297
|
className: "flex items-center gap-3",
|
|
294
|
-
children: [/* @__PURE__ */
|
|
298
|
+
children: [/* @__PURE__ */ l("input", {
|
|
295
299
|
type: "checkbox",
|
|
296
|
-
checked:
|
|
297
|
-
onChange: (e) =>
|
|
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__ */
|
|
303
|
+
}), /* @__PURE__ */ l("span", {
|
|
300
304
|
className: "text-sm text-text-primary",
|
|
301
|
-
children:
|
|
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 {
|
|
314
|
+
export { d as ChartConfig, d as default };
|