@quantumwake/terminal-ux-dashboard-components 0.1.17 → 0.1.18
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/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2061,6 +2061,7 @@ function PanelContent({ panel, records, columns }) {
|
|
|
2061
2061
|
] });
|
|
2062
2062
|
}
|
|
2063
2063
|
}
|
|
2064
|
+
var PanelChart = PanelContent;
|
|
2064
2065
|
var GRID_COLS = 12;
|
|
2065
2066
|
var ROW_HEIGHT = 80;
|
|
2066
2067
|
var GRID_MARGIN = 10;
|
|
@@ -2110,7 +2111,7 @@ function buildLayout(panels) {
|
|
|
2110
2111
|
});
|
|
2111
2112
|
}
|
|
2112
2113
|
function DashboardRenderer({ dashboard, records, columns }) {
|
|
2113
|
-
const { theme, removePanel, persistLayout } = useDashboard();
|
|
2114
|
+
const { theme, removePanel, persistLayout, panelHeaderExtra } = useDashboard();
|
|
2114
2115
|
const { canEditPanels, canEditLayout } = useCapabilities();
|
|
2115
2116
|
useInjectRglCss();
|
|
2116
2117
|
const panels = dashboard?.panels ?? [];
|
|
@@ -2135,6 +2136,9 @@ function DashboardRenderer({ dashboard, records, columns }) {
|
|
|
2135
2136
|
children: panel.title || panel.type
|
|
2136
2137
|
}
|
|
2137
2138
|
),
|
|
2139
|
+
panelHeaderExtra && // Host-injected per-panel affordance (e.g. the viewer's
|
|
2140
|
+
// copy-embed-link icon). Stop drag from hijacking the click.
|
|
2141
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { onMouseDown: (e) => e.stopPropagation(), className: "flex items-center", children: panelHeaderExtra(panel) }),
|
|
2138
2142
|
canEditPanels && removePanel && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2139
2143
|
"button",
|
|
2140
2144
|
{
|
|
@@ -2513,6 +2517,7 @@ exports.InsightView = InsightView;
|
|
|
2513
2517
|
exports.LEGEND_ANCHORS = LEGEND_ANCHORS;
|
|
2514
2518
|
exports.LineView = LineView;
|
|
2515
2519
|
exports.MetricView = MetricView;
|
|
2520
|
+
exports.PanelChart = PanelChart;
|
|
2516
2521
|
exports.PieView = PieView;
|
|
2517
2522
|
exports.PivotView = PivotView;
|
|
2518
2523
|
exports.ScatterView = ScatterView;
|