@burdenoff/microfe-bigconsole 2026.1008.11 → 2026.1008.12
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/BigConsoleRoutes.d.ts.map +1 -1
- package/dist/bigconsole/BigConsoleRoutes.js +136 -127
- package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
- package/dist/bigconsole/assistant/assistantProduct.d.ts.map +1 -1
- package/dist/bigconsole/assistant/assistantProduct.js +3 -1
- package/dist/bigconsole/assistant/assistantProduct.js.map +1 -1
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +31 -31
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +44 -44
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +36 -36
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +59 -59
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +15 -15
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +41 -41
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +34 -34
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +110 -110
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +21 -21
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +91 -91
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -101
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +31 -31
- package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.js +15 -15
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +46 -46
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +37 -37
- package/dist/bigconsole/components/datasink/AlertRuleEditor.js +66 -66
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
- package/dist/bigconsole/components/datasink/DataSinkCard.js +29 -29
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +47 -47
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +91 -91
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
- package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
- package/dist/bigconsole/components/parser/ImportParserDialog.js +120 -120
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +10 -10
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +27 -27
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +30 -30
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +4 -4
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +93 -93
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.d.ts.map +1 -1
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +280 -273
- package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +4 -4
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
- package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
- package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
- package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
- package/dist/bigconsole/components/workflow/WorkflowOpenGuard.js +15 -15
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +15 -15
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +9 -9
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +67 -67
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +15 -0
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts.map +1 -0
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +34 -0
- package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js.map +1 -0
- package/dist/bigconsole/hooks/useDrilldown.js +3 -3
- package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
- package/dist/bigconsole/pages/AdminPage.js +130 -130
- package/dist/bigconsole/pages/DashboardBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DashboardBuilderPage.js +72 -60
- package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardViewPage.js +1 -1
- package/dist/bigconsole/pages/DataSinkAlertsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DataSinkAlertsPage.js +30 -23
- package/dist/bigconsole/pages/DataSinkAlertsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +272 -263
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +1 -1
- package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
- package/dist/bigconsole/pages/InsightsPage.js +181 -181
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/OverviewPage.js +47 -47
- package/dist/bigconsole/pages/OverviewPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/ParserBuilderPage.js +227 -211
- package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/ParserViewPage.js +97 -97
- package/dist/bigconsole/pages/PipelineBuilderPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +256 -214
- package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
- package/dist/bigconsole/pages/PipelinesPage.js +88 -88
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.d.ts.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +179 -173
- package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
- package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
- package/dist/bigconsole/pages/WorkflowViewPage.js +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +141 -141
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +12 -12
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +34 -34
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +79 -79
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
- package/dist/bigconsole/store/widgetStore.d.ts +12 -0
- package/dist/bigconsole/store/widgetStore.d.ts.map +1 -1
- package/dist/bigconsole/store/widgetStore.js +3 -1
- package/dist/bigconsole/store/widgetStore.js.map +1 -1
- package/dist/bigconsole/utils/formDirty.d.ts +83 -0
- package/dist/bigconsole/utils/formDirty.d.ts.map +1 -0
- package/dist/bigconsole/utils/formDirty.js +23 -0
- package/dist/bigconsole/utils/formDirty.js.map +1 -0
- package/dist/bigconsole/utils/layoutBaseline.d.ts +131 -0
- package/dist/bigconsole/utils/layoutBaseline.d.ts.map +1 -0
- package/dist/bigconsole/utils/layoutBaseline.js +98 -0
- package/dist/bigconsole/utils/layoutBaseline.js.map +1 -0
- package/dist/translations/en.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import e from "./CalendarView.js";
|
|
2
2
|
import { memo as t } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { useI18n as n } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
//#region src/bigconsole/components/widgets/calendar/CalendarWidget.tsx
|
|
6
6
|
var i = t(function(t) {
|
|
7
|
-
let { t: i } =
|
|
8
|
-
return /* @__PURE__ */
|
|
7
|
+
let { t: i } = n();
|
|
8
|
+
return /* @__PURE__ */ r(e, {
|
|
9
9
|
...t,
|
|
10
10
|
t: i
|
|
11
11
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { memo as e, useCallback as t, useMemo as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useI18n as r } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
3
|
+
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
4
|
//#region src/bigconsole/components/widgets/chart/ChartConfig.tsx
|
|
5
5
|
var s = e(function({ config: e, onChange: s }) {
|
|
6
|
-
let { t: c } =
|
|
6
|
+
let { t: c } = r(), l = n(() => [
|
|
7
7
|
{
|
|
8
8
|
value: "line",
|
|
9
9
|
label: c("bigconsole.widget.config.chart.type.line", "Line Chart")
|
|
@@ -64,47 +64,47 @@ var s = e(function({ config: e, onChange: s }) {
|
|
|
64
64
|
[t]: n
|
|
65
65
|
});
|
|
66
66
|
}, [e, s]), p = e.chartType === "pie" || e.chartType === "funnel";
|
|
67
|
-
return /* @__PURE__ */
|
|
67
|
+
return /* @__PURE__ */ o("div", {
|
|
68
68
|
className: "min-w-0 space-y-form-gap",
|
|
69
69
|
children: [
|
|
70
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
|
|
71
71
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
72
72
|
children: c("bigconsole.widget.config.chart.chartTypeLabel", "Chart Type")
|
|
73
|
-
}), /* @__PURE__ */
|
|
73
|
+
}), /* @__PURE__ */ a("select", {
|
|
74
74
|
value: e.chartType || "line",
|
|
75
75
|
onChange: (e) => f("chartType", e.target.value),
|
|
76
76
|
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 ",
|
|
77
|
-
children: l.map((e) => /* @__PURE__ */
|
|
77
|
+
children: l.map((e) => /* @__PURE__ */ a("option", {
|
|
78
78
|
value: e.value,
|
|
79
79
|
children: e.label
|
|
80
80
|
}, e.value))
|
|
81
81
|
})] }),
|
|
82
|
-
!p && /* @__PURE__ */
|
|
83
|
-
/* @__PURE__ */
|
|
82
|
+
!p && /* @__PURE__ */ o(i, { children: [
|
|
83
|
+
/* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
|
|
84
84
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
85
85
|
children: c("bigconsole.widget.config.chart.xAxisFieldLabel", "X-Axis Field")
|
|
86
|
-
}), /* @__PURE__ */
|
|
86
|
+
}), /* @__PURE__ */ a("input", {
|
|
87
87
|
type: "text",
|
|
88
88
|
value: e.xAxisField || "",
|
|
89
89
|
onChange: (e) => f("xAxisField", e.target.value),
|
|
90
90
|
placeholder: c("bigconsole.widget.config.chart.xAxisFieldPlaceholder", "e.g., date, category"),
|
|
91
91
|
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
92
|
})] }),
|
|
93
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ o("div", {
|
|
94
94
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
|
|
95
|
-
children: [/* @__PURE__ */
|
|
95
|
+
children: [/* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
|
|
96
96
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
97
97
|
children: c("bigconsole.widget.config.chart.xAxisLabelLabel", "X-Axis Label")
|
|
98
|
-
}), /* @__PURE__ */
|
|
98
|
+
}), /* @__PURE__ */ a("input", {
|
|
99
99
|
type: "text",
|
|
100
100
|
value: e.xAxisLabel || "",
|
|
101
101
|
onChange: (e) => f("xAxisLabel", e.target.value),
|
|
102
102
|
placeholder: c("bigconsole.widget.config.chart.optionalPlaceholder", "Optional"),
|
|
103
103
|
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 "
|
|
104
|
-
})] }), /* @__PURE__ */
|
|
104
|
+
})] }), /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
|
|
105
105
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
106
106
|
children: c("bigconsole.widget.config.chart.yAxisLabelLabel", "Y-Axis Label")
|
|
107
|
-
}), /* @__PURE__ */
|
|
107
|
+
}), /* @__PURE__ */ a("input", {
|
|
108
108
|
type: "text",
|
|
109
109
|
value: e.yAxisLabel || "",
|
|
110
110
|
onChange: (e) => f("yAxisLabel", e.target.value),
|
|
@@ -112,74 +112,74 @@ var s = e(function({ config: e, onChange: s }) {
|
|
|
112
112
|
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 "
|
|
113
113
|
})] })]
|
|
114
114
|
}),
|
|
115
|
-
(e.chartType === "line" || e.chartType === "area") && /* @__PURE__ */
|
|
115
|
+
(e.chartType === "line" || e.chartType === "area") && /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
|
|
116
116
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
117
117
|
children: c("bigconsole.widget.config.chart.curveTypeLabel", "Curve Type")
|
|
118
|
-
}), /* @__PURE__ */
|
|
118
|
+
}), /* @__PURE__ */ a("select", {
|
|
119
119
|
value: e.curveType || "monotone",
|
|
120
120
|
onChange: (e) => f("curveType", e.target.value),
|
|
121
121
|
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 ",
|
|
122
|
-
children: u.map((e) => /* @__PURE__ */
|
|
122
|
+
children: u.map((e) => /* @__PURE__ */ a("option", {
|
|
123
123
|
value: e.value,
|
|
124
124
|
children: e.label
|
|
125
125
|
}, e.value))
|
|
126
126
|
})] })
|
|
127
127
|
] }),
|
|
128
|
-
p && /* @__PURE__ */
|
|
128
|
+
p && /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ o("div", {
|
|
129
129
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
|
|
130
|
-
children: [/* @__PURE__ */
|
|
130
|
+
children: [/* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
|
|
131
131
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
132
132
|
children: c("bigconsole.widget.config.chart.valueFieldLabel", "Value Field")
|
|
133
|
-
}), /* @__PURE__ */
|
|
133
|
+
}), /* @__PURE__ */ a("input", {
|
|
134
134
|
type: "text",
|
|
135
135
|
value: e.valueField || "",
|
|
136
136
|
onChange: (e) => f("valueField", e.target.value),
|
|
137
137
|
placeholder: c("bigconsole.widget.config.chart.valueFieldPlaceholder", "e.g., value"),
|
|
138
138
|
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 "
|
|
139
|
-
})] }), /* @__PURE__ */
|
|
139
|
+
})] }), /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
|
|
140
140
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
141
141
|
children: c("bigconsole.widget.config.chart.labelFieldLabel", "Label Field")
|
|
142
|
-
}), /* @__PURE__ */
|
|
142
|
+
}), /* @__PURE__ */ a("input", {
|
|
143
143
|
type: "text",
|
|
144
144
|
value: e.labelField || "",
|
|
145
145
|
onChange: (e) => f("labelField", e.target.value),
|
|
146
146
|
placeholder: c("bigconsole.widget.config.chart.labelFieldPlaceholder", "e.g., name"),
|
|
147
147
|
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 "
|
|
148
148
|
})] })]
|
|
149
|
-
}), e.chartType === "pie" && /* @__PURE__ */
|
|
149
|
+
}), e.chartType === "pie" && /* @__PURE__ */ o("label", {
|
|
150
150
|
className: "flex items-center gap-3",
|
|
151
|
-
children: [/* @__PURE__ */
|
|
151
|
+
children: [/* @__PURE__ */ a("input", {
|
|
152
152
|
type: "checkbox",
|
|
153
153
|
checked: e.showAsDonut === !0,
|
|
154
154
|
onChange: (e) => f("showAsDonut", e.target.checked),
|
|
155
155
|
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__ */
|
|
156
|
+
}), /* @__PURE__ */ a("span", {
|
|
157
157
|
className: "text-sm text-text-primary",
|
|
158
158
|
children: c("bigconsole.widget.config.chart.showAsDonut", "Show as Donut")
|
|
159
159
|
})]
|
|
160
160
|
})] }),
|
|
161
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
|
|
162
162
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
163
163
|
children: c("bigconsole.widget.config.chart.legendPositionLabel", "Legend Position")
|
|
164
|
-
}), /* @__PURE__ */
|
|
164
|
+
}), /* @__PURE__ */ a("select", {
|
|
165
165
|
value: e.legendPosition || "bottom",
|
|
166
166
|
onChange: (e) => f("legendPosition", e.target.value),
|
|
167
167
|
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 ",
|
|
168
|
-
children: d.map((e) => /* @__PURE__ */
|
|
168
|
+
children: d.map((e) => /* @__PURE__ */ a("option", {
|
|
169
169
|
value: e.value,
|
|
170
170
|
children: e.label
|
|
171
171
|
}, e.value))
|
|
172
172
|
})] }),
|
|
173
|
-
!p && /* @__PURE__ */
|
|
174
|
-
/* @__PURE__ */
|
|
173
|
+
!p && /* @__PURE__ */ o("div", { children: [
|
|
174
|
+
/* @__PURE__ */ a("label", {
|
|
175
175
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
176
176
|
children: c("bigconsole.widget.config.chart.fieldsToDisplayLabel", "Fields to Display")
|
|
177
177
|
}),
|
|
178
|
-
/* @__PURE__ */
|
|
178
|
+
/* @__PURE__ */ a("p", {
|
|
179
179
|
className: "text-xs text-text-secondary mb-2",
|
|
180
180
|
children: c("bigconsole.widget.config.chart.fieldsToDisplayHelp", "Select which numeric fields to show as chart series. Leave empty to show all.")
|
|
181
181
|
}),
|
|
182
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ a("input", {
|
|
183
183
|
type: "text",
|
|
184
184
|
value: e.selectedFields?.join(", ") || "",
|
|
185
185
|
onChange: (e) => {
|
|
@@ -189,63 +189,63 @@ var s = e(function({ config: e, onChange: s }) {
|
|
|
189
189
|
placeholder: c("bigconsole.widget.config.chart.fieldsToDisplayPlaceholder", "e.g., revenue, orders, users (comma-separated)"),
|
|
190
190
|
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 "
|
|
191
191
|
}),
|
|
192
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ a("p", {
|
|
193
193
|
className: "text-xs text-text-muted mt-1",
|
|
194
194
|
children: c("bigconsole.widget.config.chart.fieldsToDisplayHint", "Enter field names separated by commas")
|
|
195
195
|
})
|
|
196
196
|
] }),
|
|
197
|
-
/* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ o("div", {
|
|
198
198
|
role: "group",
|
|
199
199
|
"aria-label": "Display options",
|
|
200
200
|
className: "space-y-3 border-t border-[var(--color-border-subtle)] pt-form-gap",
|
|
201
201
|
children: [
|
|
202
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ a("p", {
|
|
203
203
|
className: "text-xs font-bold uppercase tracking-wider text-text-secondary",
|
|
204
204
|
children: "Display options"
|
|
205
205
|
}),
|
|
206
|
-
/* @__PURE__ */
|
|
206
|
+
/* @__PURE__ */ o("label", {
|
|
207
207
|
className: "flex items-center gap-3",
|
|
208
|
-
children: [/* @__PURE__ */
|
|
208
|
+
children: [/* @__PURE__ */ a("input", {
|
|
209
209
|
type: "checkbox",
|
|
210
210
|
checked: e.showGrid !== !1,
|
|
211
211
|
onChange: (e) => f("showGrid", e.target.checked),
|
|
212
212
|
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 "
|
|
213
|
-
}), /* @__PURE__ */
|
|
213
|
+
}), /* @__PURE__ */ a("span", {
|
|
214
214
|
className: "text-sm text-text-primary",
|
|
215
215
|
children: c("bigconsole.widget.config.chart.showGrid", "Show Grid")
|
|
216
216
|
})]
|
|
217
217
|
}),
|
|
218
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ o("label", {
|
|
219
219
|
className: "flex items-center gap-3",
|
|
220
|
-
children: [/* @__PURE__ */
|
|
220
|
+
children: [/* @__PURE__ */ a("input", {
|
|
221
221
|
type: "checkbox",
|
|
222
222
|
checked: e.showLegend !== !1,
|
|
223
223
|
onChange: (e) => f("showLegend", e.target.checked),
|
|
224
224
|
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 "
|
|
225
|
-
}), /* @__PURE__ */
|
|
225
|
+
}), /* @__PURE__ */ a("span", {
|
|
226
226
|
className: "text-sm text-text-primary",
|
|
227
227
|
children: c("bigconsole.widget.config.chart.showLegend", "Show Legend")
|
|
228
228
|
})]
|
|
229
229
|
}),
|
|
230
|
-
!p && /* @__PURE__ */
|
|
230
|
+
!p && /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ o("label", {
|
|
231
231
|
className: "flex items-center gap-3",
|
|
232
|
-
children: [/* @__PURE__ */
|
|
232
|
+
children: [/* @__PURE__ */ a("input", {
|
|
233
233
|
type: "checkbox",
|
|
234
234
|
checked: e.showDataPoints === !0,
|
|
235
235
|
onChange: (e) => f("showDataPoints", e.target.checked),
|
|
236
236
|
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 "
|
|
237
|
-
}), /* @__PURE__ */
|
|
237
|
+
}), /* @__PURE__ */ a("span", {
|
|
238
238
|
className: "text-sm text-text-primary",
|
|
239
239
|
children: c("bigconsole.widget.config.chart.showDataPoints", "Show Data Points")
|
|
240
240
|
})]
|
|
241
|
-
}), (e.chartType === "bar" || e.chartType === "area") && /* @__PURE__ */
|
|
241
|
+
}), (e.chartType === "bar" || e.chartType === "area") && /* @__PURE__ */ o("label", {
|
|
242
242
|
className: "flex items-center gap-3",
|
|
243
|
-
children: [/* @__PURE__ */
|
|
243
|
+
children: [/* @__PURE__ */ a("input", {
|
|
244
244
|
type: "checkbox",
|
|
245
245
|
checked: e.stacked === !0,
|
|
246
246
|
onChange: (e) => f("stacked", e.target.checked),
|
|
247
247
|
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 "
|
|
248
|
-
}), /* @__PURE__ */
|
|
248
|
+
}), /* @__PURE__ */ a("span", {
|
|
249
249
|
className: "text-sm text-text-primary",
|
|
250
250
|
children: c("bigconsole.widget.config.chart.stacked", "Stacked")
|
|
251
251
|
})]
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import e from "../../../hooks/useWidgetComments.js";
|
|
2
2
|
import { useCallback as t, useEffect as n, useRef as r, useState as i } from "react";
|
|
3
3
|
import { Check as a, CornerDownRight as o, Loader2 as s, MessageSquare as c, RotateCcw as l, Send as u, Trash2 as d, X as f } from "lucide-react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { useI18n as p } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
5
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
6
6
|
//#region src/bigconsole/components/widgets/comments/WidgetComments.tsx
|
|
7
7
|
function g(e, t) {
|
|
8
8
|
return e("bigconsole.widget.comments.authorLabel", "User {{id}}", { id: t.slice(0, 6) });
|
|
@@ -15,62 +15,62 @@ function _(e) {
|
|
|
15
15
|
}).format(t);
|
|
16
16
|
}
|
|
17
17
|
var v = ({ comment: e, isReply: t, busy: n, onResolve: r, onDelete: i, onReply: s }) => {
|
|
18
|
-
let { t: c } =
|
|
19
|
-
return /* @__PURE__ */
|
|
18
|
+
let { t: c } = p(), u = !!e.resolvedAt, f = e.content.text ?? e.content.markdown ?? "";
|
|
19
|
+
return /* @__PURE__ */ m("div", {
|
|
20
20
|
className: t ? "pl-6" : "",
|
|
21
|
-
children: /* @__PURE__ */
|
|
21
|
+
children: /* @__PURE__ */ h("div", {
|
|
22
22
|
className: "rounded-md border border-[var(--color-border-default)] bg-bg-surface p-2.5",
|
|
23
23
|
children: [
|
|
24
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ h("div", {
|
|
25
25
|
className: "flex items-center justify-between gap-2",
|
|
26
|
-
children: [/* @__PURE__ */
|
|
26
|
+
children: [/* @__PURE__ */ m("span", {
|
|
27
27
|
className: "text-xs font-medium text-text-primary",
|
|
28
28
|
children: g(c, e.authorId)
|
|
29
|
-
}), /* @__PURE__ */
|
|
29
|
+
}), /* @__PURE__ */ m("span", {
|
|
30
30
|
className: "text-[10px] text-text-muted tabular-nums",
|
|
31
31
|
children: _(e.createdAt)
|
|
32
32
|
})]
|
|
33
33
|
}),
|
|
34
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ m("p", {
|
|
35
35
|
className: "mt-1 whitespace-pre-wrap break-words text-sm text-text-secondary",
|
|
36
36
|
children: f
|
|
37
37
|
}),
|
|
38
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ h("div", {
|
|
39
39
|
className: "mt-1.5 flex items-center gap-2",
|
|
40
40
|
children: [
|
|
41
|
-
u && /* @__PURE__ */
|
|
41
|
+
u && /* @__PURE__ */ h("span", {
|
|
42
42
|
className: "inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-[10px] font-medium bg-status-success-bg text-status-success-text",
|
|
43
43
|
children: [
|
|
44
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ m(a, { className: "h-3 w-3" }),
|
|
45
45
|
" ",
|
|
46
46
|
c("bigconsole.widget.comments.resolvedBadge", "Resolved")
|
|
47
47
|
]
|
|
48
48
|
}),
|
|
49
|
-
s && /* @__PURE__ */
|
|
49
|
+
s && /* @__PURE__ */ h("button", {
|
|
50
50
|
type: "button",
|
|
51
51
|
disabled: n,
|
|
52
52
|
onClick: () => s(e.id),
|
|
53
53
|
className: "inline-flex items-center gap-1 text-[11px] text-text-muted hover:text-text-primary disabled:opacity-50",
|
|
54
54
|
children: [
|
|
55
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ m(o, { className: "h-3 w-3" }),
|
|
56
56
|
" ",
|
|
57
57
|
c("bigconsole.widget.comments.reply", "Reply")
|
|
58
58
|
]
|
|
59
59
|
}),
|
|
60
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ h("button", {
|
|
61
61
|
type: "button",
|
|
62
62
|
disabled: n,
|
|
63
63
|
onClick: () => r(e.id, !u),
|
|
64
64
|
className: "inline-flex items-center gap-1 text-[11px] text-text-muted hover:text-text-primary disabled:opacity-50",
|
|
65
|
-
children: [
|
|
65
|
+
children: [m(u ? l : a, { className: "h-3 w-3" }), u ? c("bigconsole.widget.comments.reopen", "Reopen") : c("bigconsole.widget.comments.resolve", "Resolve")]
|
|
66
66
|
}),
|
|
67
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ h("button", {
|
|
68
68
|
type: "button",
|
|
69
69
|
disabled: n,
|
|
70
70
|
onClick: () => i(e.id),
|
|
71
71
|
className: "inline-flex items-center gap-1 text-[11px] text-status-error-text hover:opacity-80 disabled:opacity-50",
|
|
72
72
|
children: [
|
|
73
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ m(d, { className: "h-3 w-3" }),
|
|
74
74
|
" ",
|
|
75
75
|
c("bigconsole.widget.comments.delete", "Delete")
|
|
76
76
|
]
|
|
@@ -81,13 +81,13 @@ var v = ({ comment: e, isReply: t, busy: n, onResolve: r, onDelete: i, onReply:
|
|
|
81
81
|
})
|
|
82
82
|
});
|
|
83
83
|
}, y = ({ placeholder: e, busy: t, autoFocus: n, onSubmit: r, onCancel: a }) => {
|
|
84
|
-
let { t: o } =
|
|
84
|
+
let { t: o } = p(), [c, l] = i(""), d = async () => {
|
|
85
85
|
let e = c.trim();
|
|
86
86
|
e && await r(e) !== !1 && l("");
|
|
87
87
|
};
|
|
88
|
-
return /* @__PURE__ */
|
|
88
|
+
return /* @__PURE__ */ h("div", {
|
|
89
89
|
className: "flex items-end gap-2",
|
|
90
|
-
children: [/* @__PURE__ */
|
|
90
|
+
children: [/* @__PURE__ */ m("textarea", {
|
|
91
91
|
autoFocus: n,
|
|
92
92
|
value: c,
|
|
93
93
|
onChange: (e) => l(e.target.value),
|
|
@@ -97,26 +97,26 @@ var v = ({ comment: e, isReply: t, busy: n, onResolve: r, onDelete: i, onReply:
|
|
|
97
97
|
rows: 2,
|
|
98
98
|
placeholder: e,
|
|
99
99
|
className: "flex-1 resize-none rounded-md border border-[var(--color-border-default)] bg-bg-surface px-2.5 py-1.5 text-sm text-text-primary placeholder:text-text-muted focus:outline-none focus:ring-2 focus:ring-action-primary-bg"
|
|
100
|
-
}), /* @__PURE__ */
|
|
100
|
+
}), /* @__PURE__ */ h("div", {
|
|
101
101
|
className: "flex flex-col gap-1",
|
|
102
|
-
children: [/* @__PURE__ */
|
|
102
|
+
children: [/* @__PURE__ */ m("button", {
|
|
103
103
|
type: "button",
|
|
104
104
|
disabled: t || !c.trim(),
|
|
105
105
|
onClick: () => void d(),
|
|
106
106
|
title: o("bigconsole.widget.comments.postTitle", "Post (⌘/Ctrl + Enter)"),
|
|
107
107
|
className: "inline-flex items-center justify-center rounded-md bg-action-primary-bg p-1.5 text-action-primary-text hover:opacity-90 disabled:opacity-50",
|
|
108
|
-
children: t ? /* @__PURE__ */
|
|
109
|
-
}), a && /* @__PURE__ */
|
|
108
|
+
children: t ? /* @__PURE__ */ m(s, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ m(u, { className: "h-4 w-4" })
|
|
109
|
+
}), a && /* @__PURE__ */ m("button", {
|
|
110
110
|
type: "button",
|
|
111
111
|
onClick: a,
|
|
112
112
|
className: "inline-flex items-center justify-center rounded-md border border-[var(--color-border-default)] p-1.5 text-text-muted hover:text-text-primary",
|
|
113
113
|
title: o("bigconsole.widget.comments.cancelReplyTitle", "Cancel reply"),
|
|
114
|
-
children: /* @__PURE__ */
|
|
114
|
+
children: /* @__PURE__ */ m(f, { className: "h-4 w-4" })
|
|
115
115
|
})]
|
|
116
116
|
})]
|
|
117
117
|
});
|
|
118
118
|
}, b = ({ widgetId: a, onClose: o }) => {
|
|
119
|
-
let { t: l } =
|
|
119
|
+
let { t: l } = p(), { threads: u, count: d, loading: g, error: _, mutating: b, addComment: x, resolveComment: S, deleteComment: C } = e(a), [w, T] = i(null), [E, D] = i(!1), O = r(null);
|
|
120
120
|
n(() => {
|
|
121
121
|
if (!E) return;
|
|
122
122
|
let e = O.current;
|
|
@@ -129,7 +129,7 @@ var v = ({ comment: e, isReply: t, busy: n, onResolve: r, onDelete: i, onReply:
|
|
|
129
129
|
let n = await x(e, t);
|
|
130
130
|
return n && (t ? T(null) : D(!0)), n;
|
|
131
131
|
}, [x]);
|
|
132
|
-
return /* @__PURE__ */
|
|
132
|
+
return /* @__PURE__ */ h("div", {
|
|
133
133
|
className: "absolute inset-0 z-40 flex flex-col bg-bg-surface/98 backdrop-blur-sm",
|
|
134
134
|
role: "dialog",
|
|
135
135
|
"aria-label": l("bigconsole.widget.comments.dialogAriaLabel", "Widget comments"),
|
|
@@ -139,66 +139,66 @@ var v = ({ comment: e, isReply: t, busy: n, onResolve: r, onDelete: i, onReply:
|
|
|
139
139
|
e.key === "Escape" && (e.stopPropagation(), o());
|
|
140
140
|
},
|
|
141
141
|
children: [
|
|
142
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ h("div", {
|
|
143
143
|
className: "flex min-w-0 items-center justify-between gap-2 border-b border-[var(--color-border-subtle)] bg-bg-surface px-3 py-2 sm:px-4",
|
|
144
|
-
children: [/* @__PURE__ */
|
|
144
|
+
children: [/* @__PURE__ */ h("h3", {
|
|
145
145
|
className: "flex min-w-0 items-center gap-2 text-sm font-semibold leading-tight tracking-tight text-text-primary",
|
|
146
146
|
children: [
|
|
147
|
-
/* @__PURE__ */
|
|
147
|
+
/* @__PURE__ */ m(c, {
|
|
148
148
|
"aria-hidden": "true",
|
|
149
149
|
className: "h-icon-sm w-icon-sm shrink-0 text-text-secondary"
|
|
150
150
|
}),
|
|
151
151
|
l("bigconsole.widget.comments.title", "Comments"),
|
|
152
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ m("span", {
|
|
153
153
|
className: "rounded-full bg-bg-sunken px-1.5 py-0.5 text-[10px] text-text-secondary tabular-nums",
|
|
154
154
|
children: d
|
|
155
155
|
})
|
|
156
156
|
]
|
|
157
|
-
}), /* @__PURE__ */
|
|
157
|
+
}), /* @__PURE__ */ m("button", {
|
|
158
158
|
type: "button",
|
|
159
159
|
onClick: o,
|
|
160
160
|
"aria-label": l("bigconsole.widget.comments.closeAriaLabel", "Close comments"),
|
|
161
161
|
className: "shrink-0 rounded-button p-1 text-text-muted hover:bg-bg-sunken hover:text-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface",
|
|
162
|
-
children: /* @__PURE__ */
|
|
162
|
+
children: /* @__PURE__ */ m(f, { className: "h-4 w-4" })
|
|
163
163
|
})]
|
|
164
164
|
}),
|
|
165
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ h("div", {
|
|
166
166
|
ref: O,
|
|
167
167
|
className: "flex-1 space-y-3 overflow-auto p-3",
|
|
168
168
|
children: [
|
|
169
|
-
g && u.length === 0 && /* @__PURE__ */
|
|
169
|
+
g && u.length === 0 && /* @__PURE__ */ m("div", {
|
|
170
170
|
className: "flex items-center justify-center py-8 text-text-muted",
|
|
171
|
-
children: /* @__PURE__ */
|
|
171
|
+
children: /* @__PURE__ */ m(s, { className: "h-5 w-5 animate-spin" })
|
|
172
172
|
}),
|
|
173
|
-
_ && !g && /* @__PURE__ */
|
|
173
|
+
_ && !g && /* @__PURE__ */ m("p", {
|
|
174
174
|
role: "alert",
|
|
175
175
|
className: "rounded-input border border-[var(--color-status-error-border)] bg-status-error-bg-subtle px-2.5 py-2 text-xs text-[var(--color-status-error-text)]",
|
|
176
176
|
children: l("bigconsole.widget.comments.loadError", "Couldn’t load comments.")
|
|
177
177
|
}),
|
|
178
|
-
!g && !_ && u.length === 0 && /* @__PURE__ */
|
|
178
|
+
!g && !_ && u.length === 0 && /* @__PURE__ */ m("p", {
|
|
179
179
|
className: "py-8 text-center text-sm text-text-muted",
|
|
180
180
|
children: l("bigconsole.widget.comments.empty", "No comments yet. Start the conversation.")
|
|
181
181
|
}),
|
|
182
|
-
u.map(({ comment: e, replies: t }) => /* @__PURE__ */
|
|
182
|
+
u.map(({ comment: e, replies: t }) => /* @__PURE__ */ h("div", {
|
|
183
183
|
className: "space-y-2",
|
|
184
184
|
children: [
|
|
185
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ m(v, {
|
|
186
186
|
comment: e,
|
|
187
187
|
busy: b,
|
|
188
188
|
onResolve: (e, t) => void S(e, t),
|
|
189
189
|
onDelete: (e) => void C(e),
|
|
190
190
|
onReply: (e) => T((t) => t === e ? null : e)
|
|
191
191
|
}),
|
|
192
|
-
t.map((e) => /* @__PURE__ */
|
|
192
|
+
t.map((e) => /* @__PURE__ */ m(v, {
|
|
193
193
|
comment: e,
|
|
194
194
|
isReply: !0,
|
|
195
195
|
busy: b,
|
|
196
196
|
onResolve: (e, t) => void S(e, t),
|
|
197
197
|
onDelete: (e) => void C(e)
|
|
198
198
|
}, e.id)),
|
|
199
|
-
w === e.id && /* @__PURE__ */
|
|
199
|
+
w === e.id && /* @__PURE__ */ m("div", {
|
|
200
200
|
className: "pl-6",
|
|
201
|
-
children: /* @__PURE__ */
|
|
201
|
+
children: /* @__PURE__ */ m(y, {
|
|
202
202
|
placeholder: l("bigconsole.widget.comments.replyPlaceholder", "Write a reply…"),
|
|
203
203
|
busy: b,
|
|
204
204
|
autoFocus: !0,
|
|
@@ -210,9 +210,9 @@ var v = ({ comment: e, isReply: t, busy: n, onResolve: r, onDelete: i, onReply:
|
|
|
210
210
|
}, e.id))
|
|
211
211
|
]
|
|
212
212
|
}),
|
|
213
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ m("div", {
|
|
214
214
|
className: "border-t border-[var(--color-border-default)] p-3",
|
|
215
|
-
children: /* @__PURE__ */
|
|
215
|
+
children: /* @__PURE__ */ m(y, {
|
|
216
216
|
placeholder: l("bigconsole.widget.comments.addPlaceholder", "Add a comment…"),
|
|
217
217
|
busy: b,
|
|
218
218
|
onSubmit: (e) => k(e)
|