@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.
- 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,161 +1,163 @@
|
|
|
1
1
|
import { memo as e, useCallback as t } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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/metric-card/MetricCardConfig.tsx
|
|
5
|
-
var
|
|
6
|
-
let { t:
|
|
7
|
-
|
|
6
|
+
var o = e(function({ config: e, onChange: o }) {
|
|
7
|
+
let { t: s } = r(), c = t((t, n) => {
|
|
8
|
+
o({
|
|
8
9
|
...e,
|
|
9
10
|
[t]: n
|
|
10
11
|
});
|
|
11
|
-
}, [e,
|
|
12
|
-
return /* @__PURE__ */
|
|
12
|
+
}, [e, o]);
|
|
13
|
+
return /* @__PURE__ */ a("div", {
|
|
13
14
|
className: "min-w-0 space-y-form-gap",
|
|
14
15
|
children: [
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
16
|
+
/* @__PURE__ */ a("div", { children: [
|
|
17
|
+
/* @__PURE__ */ i("label", {
|
|
17
18
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
18
|
-
children:
|
|
19
|
+
children: s("bigconsole.widget.config.metricCard.valueField.label", "Value Field")
|
|
19
20
|
}),
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ i("input", {
|
|
21
22
|
type: "text",
|
|
22
23
|
value: e.valueField || "",
|
|
23
|
-
onChange: (e) =>
|
|
24
|
-
placeholder:
|
|
24
|
+
onChange: (e) => c("valueField", e.target.value),
|
|
25
|
+
placeholder: s("bigconsole.widget.config.metricCard.valueField.placeholder", "e.g., totalSales, value, amount"),
|
|
25
26
|
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 "
|
|
26
27
|
}),
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ i("p", {
|
|
28
29
|
className: "text-xs text-text-secondary mt-1",
|
|
29
|
-
children:
|
|
30
|
+
children: s("bigconsole.widget.config.metricCard.valueField.help", "Field name to extract from data (leave empty for auto-detect)")
|
|
30
31
|
})
|
|
31
32
|
] }),
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
|
|
33
34
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
34
|
-
children:
|
|
35
|
-
}), /* @__PURE__ */
|
|
35
|
+
children: s("bigconsole.widget.config.metricCard.subtitle.label", "Subtitle")
|
|
36
|
+
}), /* @__PURE__ */ i("input", {
|
|
36
37
|
type: "text",
|
|
37
38
|
value: e.subtitle || "",
|
|
38
|
-
onChange: (e) =>
|
|
39
|
-
placeholder:
|
|
39
|
+
onChange: (e) => c("subtitle", e.target.value),
|
|
40
|
+
placeholder: s("bigconsole.widget.config.metricCard.subtitle.placeholder", "e.g., Total Revenue"),
|
|
40
41
|
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 "
|
|
41
42
|
})] }),
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
|
|
43
44
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
44
|
-
children:
|
|
45
|
-
}), /* @__PURE__ */
|
|
45
|
+
children: s("bigconsole.widget.config.metricCard.format.label", "Value Format")
|
|
46
|
+
}), /* @__PURE__ */ a(n, {
|
|
47
|
+
"aria-label": s("bigconsole.widget.config.metricCard.format.label", "Value Format"),
|
|
46
48
|
value: e.format || "auto",
|
|
47
|
-
onChange: (e) =>
|
|
49
|
+
onChange: (e) => c("format", e.target.value),
|
|
48
50
|
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 ",
|
|
49
51
|
children: [
|
|
50
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ i("option", {
|
|
51
53
|
value: "auto",
|
|
52
|
-
children:
|
|
54
|
+
children: s("bigconsole.widget.config.metricCard.format.auto", "Auto (from data)")
|
|
53
55
|
}),
|
|
54
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ i("option", {
|
|
55
57
|
value: "number",
|
|
56
|
-
children:
|
|
58
|
+
children: s("bigconsole.widget.config.metricCard.format.number", "Number")
|
|
57
59
|
}),
|
|
58
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ i("option", {
|
|
59
61
|
value: "currency",
|
|
60
|
-
children:
|
|
62
|
+
children: s("bigconsole.widget.config.metricCard.format.currency", "Currency")
|
|
61
63
|
}),
|
|
62
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */ i("option", {
|
|
63
65
|
value: "percentage",
|
|
64
|
-
children:
|
|
66
|
+
children: s("bigconsole.widget.config.metricCard.format.percentage", "Percentage")
|
|
65
67
|
}),
|
|
66
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ i("option", {
|
|
67
69
|
value: "compact",
|
|
68
|
-
children:
|
|
70
|
+
children: s("bigconsole.widget.config.metricCard.format.compact", "Compact (1K, 1M)")
|
|
69
71
|
})
|
|
70
72
|
]
|
|
71
73
|
})] }),
|
|
72
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ a("div", {
|
|
73
75
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
|
|
74
|
-
children: [/* @__PURE__ */
|
|
76
|
+
children: [/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
|
|
75
77
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
76
|
-
children:
|
|
77
|
-
}), /* @__PURE__ */
|
|
78
|
+
children: s("bigconsole.widget.config.metricCard.prefix.label", "Prefix")
|
|
79
|
+
}), /* @__PURE__ */ i("input", {
|
|
78
80
|
type: "text",
|
|
79
81
|
value: e.prefix || "",
|
|
80
|
-
onChange: (e) =>
|
|
81
|
-
placeholder:
|
|
82
|
+
onChange: (e) => c("prefix", e.target.value),
|
|
83
|
+
placeholder: s("bigconsole.widget.config.metricCard.prefix.placeholder", "e.g., $"),
|
|
82
84
|
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 "
|
|
83
|
-
})] }), /* @__PURE__ */
|
|
85
|
+
})] }), /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
|
|
84
86
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
85
|
-
children:
|
|
86
|
-
}), /* @__PURE__ */
|
|
87
|
+
children: s("bigconsole.widget.config.metricCard.suffix.label", "Suffix")
|
|
88
|
+
}), /* @__PURE__ */ i("input", {
|
|
87
89
|
type: "text",
|
|
88
90
|
value: e.suffix || "",
|
|
89
|
-
onChange: (e) =>
|
|
90
|
-
placeholder:
|
|
91
|
+
onChange: (e) => c("suffix", e.target.value),
|
|
92
|
+
placeholder: s("bigconsole.widget.config.metricCard.suffix.placeholder", "e.g., users"),
|
|
91
93
|
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 "
|
|
92
94
|
})] })]
|
|
93
95
|
}),
|
|
94
|
-
/* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
|
|
95
97
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
96
|
-
children:
|
|
97
|
-
}), /* @__PURE__ */
|
|
98
|
+
children: s("bigconsole.widget.config.metricCard.comparisonLabel.label", "Comparison Label")
|
|
99
|
+
}), /* @__PURE__ */ i("input", {
|
|
98
100
|
type: "text",
|
|
99
101
|
value: e.comparisonLabel || "",
|
|
100
|
-
onChange: (e) =>
|
|
101
|
-
placeholder:
|
|
102
|
+
onChange: (e) => c("comparisonLabel", e.target.value),
|
|
103
|
+
placeholder: s("bigconsole.widget.config.metricCard.comparisonLabel.placeholder", "e.g., vs last week"),
|
|
102
104
|
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 "
|
|
103
105
|
})] }),
|
|
104
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ a("div", {
|
|
105
107
|
role: "group",
|
|
106
108
|
"aria-label": "Display options",
|
|
107
109
|
className: "space-y-3 border-t border-[var(--color-border-subtle)] pt-form-gap",
|
|
108
110
|
children: [
|
|
109
|
-
/* @__PURE__ */
|
|
111
|
+
/* @__PURE__ */ i("p", {
|
|
110
112
|
className: "text-xs font-bold uppercase tracking-wider text-text-secondary",
|
|
111
113
|
children: "Display options"
|
|
112
114
|
}),
|
|
113
|
-
/* @__PURE__ */
|
|
115
|
+
/* @__PURE__ */ a("label", {
|
|
114
116
|
className: "flex items-center gap-3",
|
|
115
|
-
children: [/* @__PURE__ */
|
|
117
|
+
children: [/* @__PURE__ */ i("input", {
|
|
116
118
|
type: "checkbox",
|
|
117
119
|
checked: e.showTrend !== !1,
|
|
118
|
-
onChange: (e) =>
|
|
120
|
+
onChange: (e) => c("showTrend", e.target.checked),
|
|
119
121
|
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 "
|
|
120
|
-
}), /* @__PURE__ */
|
|
122
|
+
}), /* @__PURE__ */ i("span", {
|
|
121
123
|
className: "text-sm text-text-primary",
|
|
122
|
-
children:
|
|
124
|
+
children: s("bigconsole.widget.config.metricCard.showTrend", "Show trend indicator")
|
|
123
125
|
})]
|
|
124
126
|
}),
|
|
125
|
-
/* @__PURE__ */
|
|
127
|
+
/* @__PURE__ */ a("label", {
|
|
126
128
|
className: "flex items-center gap-3",
|
|
127
|
-
children: [/* @__PURE__ */
|
|
129
|
+
children: [/* @__PURE__ */ i("input", {
|
|
128
130
|
type: "checkbox",
|
|
129
131
|
checked: e.showComparison !== !1,
|
|
130
|
-
onChange: (e) =>
|
|
132
|
+
onChange: (e) => c("showComparison", e.target.checked),
|
|
131
133
|
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 "
|
|
132
|
-
}), /* @__PURE__ */
|
|
134
|
+
}), /* @__PURE__ */ i("span", {
|
|
133
135
|
className: "text-sm text-text-primary",
|
|
134
|
-
children:
|
|
136
|
+
children: s("bigconsole.widget.config.metricCard.showComparison", "Show comparison badge")
|
|
135
137
|
})]
|
|
136
138
|
}),
|
|
137
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ a("label", {
|
|
138
140
|
className: "flex items-center gap-3",
|
|
139
|
-
children: [/* @__PURE__ */
|
|
141
|
+
children: [/* @__PURE__ */ i("input", {
|
|
140
142
|
type: "checkbox",
|
|
141
143
|
checked: e.showSparkline !== !1,
|
|
142
|
-
onChange: (e) =>
|
|
144
|
+
onChange: (e) => c("showSparkline", e.target.checked),
|
|
143
145
|
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 "
|
|
144
|
-
}), /* @__PURE__ */
|
|
146
|
+
}), /* @__PURE__ */ i("span", {
|
|
145
147
|
className: "text-sm text-text-primary",
|
|
146
|
-
children:
|
|
148
|
+
children: s("bigconsole.widget.config.metricCard.showSparkline", "Show sparkline chart")
|
|
147
149
|
})]
|
|
148
150
|
}),
|
|
149
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ a("label", {
|
|
150
152
|
className: "flex items-center gap-3",
|
|
151
|
-
children: [/* @__PURE__ */
|
|
153
|
+
children: [/* @__PURE__ */ i("input", {
|
|
152
154
|
type: "checkbox",
|
|
153
155
|
checked: e.positiveIsGood !== !1,
|
|
154
|
-
onChange: (e) =>
|
|
156
|
+
onChange: (e) => c("positiveIsGood", e.target.checked),
|
|
155
157
|
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 "
|
|
156
|
-
}), /* @__PURE__ */
|
|
158
|
+
}), /* @__PURE__ */ i("span", {
|
|
157
159
|
className: "text-sm text-text-primary",
|
|
158
|
-
children:
|
|
160
|
+
children: s("bigconsole.widget.config.metricCard.positiveIsGood", "Positive change is good")
|
|
159
161
|
})]
|
|
160
162
|
})
|
|
161
163
|
]
|
|
@@ -163,4 +165,4 @@ var a = e(function({ config: e, onChange: a }) {
|
|
|
163
165
|
]
|
|
164
166
|
});
|
|
165
167
|
});
|
|
166
|
-
export {
|
|
168
|
+
export { o as MetricCardConfig, o as default };
|