grafana-react 0.0.0 → 0.0.2

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 (113) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +88 -2
  3. package/build/cli/cli.test.d.ts +8 -0
  4. package/build/cli/cli.test.js +78 -0
  5. package/build/cli/index.d.ts +13 -0
  6. package/build/cli/index.js +266 -0
  7. package/build/components/annotation/annotation.d.ts +27 -0
  8. package/build/components/annotation/annotation.js +12 -0
  9. package/build/components/base.d.ts +23 -0
  10. package/build/components/base.js +28 -0
  11. package/build/components/dashboard/dashboard.d.ts +33 -0
  12. package/build/components/dashboard/dashboard.js +11 -0
  13. package/build/components/index.d.ts +44 -0
  14. package/build/components/index.js +54 -0
  15. package/build/components/link/link.d.ts +25 -0
  16. package/build/components/link/link.js +10 -0
  17. package/build/components/override/override.d.ts +22 -0
  18. package/build/components/override/override.js +11 -0
  19. package/build/components/panels/core/alert-list/alert-list.d.ts +33 -0
  20. package/build/components/panels/core/alert-list/alert-list.js +15 -0
  21. package/build/components/panels/core/annotations-list/annotations-list.d.ts +31 -0
  22. package/build/components/panels/core/annotations-list/annotations-list.js +15 -0
  23. package/build/components/panels/core/bar-chart/bar-chart.d.ts +47 -0
  24. package/build/components/panels/core/bar-chart/bar-chart.js +16 -0
  25. package/build/components/panels/core/bar-gauge/bar-gauge.d.ts +68 -0
  26. package/build/components/panels/core/bar-gauge/bar-gauge.js +30 -0
  27. package/build/components/panels/core/candlestick/candlestick.d.ts +42 -0
  28. package/build/components/panels/core/candlestick/candlestick.js +17 -0
  29. package/build/components/panels/core/canvas/canvas.d.ts +18 -0
  30. package/build/components/panels/core/canvas/canvas.js +12 -0
  31. package/build/components/panels/core/dashboard-list/dashboard-list.d.ts +35 -0
  32. package/build/components/panels/core/dashboard-list/dashboard-list.js +15 -0
  33. package/build/components/panels/core/datagrid/datagrid.d.ts +16 -0
  34. package/build/components/panels/core/datagrid/datagrid.js +12 -0
  35. package/build/components/panels/core/flame-graph/flame-graph.d.ts +16 -0
  36. package/build/components/panels/core/flame-graph/flame-graph.js +12 -0
  37. package/build/components/panels/core/gauge/gauge.d.ts +64 -0
  38. package/build/components/panels/core/gauge/gauge.js +30 -0
  39. package/build/components/panels/core/geomap/geomap.d.ts +20 -0
  40. package/build/components/panels/core/geomap/geomap.js +12 -0
  41. package/build/components/panels/core/heatmap/heatmap.d.ts +25 -0
  42. package/build/components/panels/core/heatmap/heatmap.js +16 -0
  43. package/build/components/panels/core/histogram/histogram.d.ts +39 -0
  44. package/build/components/panels/core/histogram/histogram.js +16 -0
  45. package/build/components/panels/core/logs/logs.d.ts +33 -0
  46. package/build/components/panels/core/logs/logs.js +17 -0
  47. package/build/components/panels/core/news/news.d.ts +20 -0
  48. package/build/components/panels/core/news/news.js +14 -0
  49. package/build/components/panels/core/node-graph/node-graph.d.ts +18 -0
  50. package/build/components/panels/core/node-graph/node-graph.js +12 -0
  51. package/build/components/panels/core/pie-chart/pie-chart.d.ts +33 -0
  52. package/build/components/panels/core/pie-chart/pie-chart.js +16 -0
  53. package/build/components/panels/core/stat/stat.d.ts +54 -0
  54. package/build/components/panels/core/stat/stat.js +18 -0
  55. package/build/components/panels/core/state-timeline/state-timeline.d.ts +37 -0
  56. package/build/components/panels/core/state-timeline/state-timeline.js +16 -0
  57. package/build/components/panels/core/status-history/status-history.d.ts +35 -0
  58. package/build/components/panels/core/status-history/status-history.js +16 -0
  59. package/build/components/panels/core/table/table.d.ts +63 -0
  60. package/build/components/panels/core/table/table.js +25 -0
  61. package/build/components/panels/core/text/text.d.ts +16 -0
  62. package/build/components/panels/core/text/text.js +10 -0
  63. package/build/components/panels/core/timeseries/timeseries.d.ts +103 -0
  64. package/build/components/panels/core/timeseries/timeseries.js +31 -0
  65. package/build/components/panels/core/traces/traces.d.ts +18 -0
  66. package/build/components/panels/core/traces/traces.js +12 -0
  67. package/build/components/panels/core/trend/trend.d.ts +39 -0
  68. package/build/components/panels/core/trend/trend.js +16 -0
  69. package/build/components/panels/core/xy-chart/xy-chart.d.ts +44 -0
  70. package/build/components/panels/core/xy-chart/xy-chart.js +17 -0
  71. package/build/components/panels/index.d.ts +32 -0
  72. package/build/components/panels/index.js +38 -0
  73. package/build/components/panels/plugins/business-variable-panel/business-variable-panel.d.ts +85 -0
  74. package/build/components/panels/plugins/business-variable-panel/business-variable-panel.js +15 -0
  75. package/build/components/plugin-panel/plugin-panel.d.ts +25 -0
  76. package/build/components/plugin-panel/plugin-panel.js +17 -0
  77. package/build/components/query/query.d.ts +33 -0
  78. package/build/components/query/query.js +19 -0
  79. package/build/components/row/row.d.ts +27 -0
  80. package/build/components/row/row.js +13 -0
  81. package/build/components/variable/variable.d.ts +32 -0
  82. package/build/components/variable/variable.js +12 -0
  83. package/build/index.d.ts +33 -0
  84. package/build/index.js +52 -0
  85. package/build/lib/index.d.ts +5 -0
  86. package/build/lib/index.js +5 -0
  87. package/build/lib/renderer.d.ts +24 -0
  88. package/build/lib/renderer.js +1531 -0
  89. package/build/lib/renderer.test.d.ts +4 -0
  90. package/build/lib/renderer.test.js +480 -0
  91. package/build/lib/utils.d.ts +70 -0
  92. package/build/lib/utils.js +229 -0
  93. package/build/lib/utils.test.d.ts +4 -0
  94. package/build/lib/utils.test.js +252 -0
  95. package/build/types/common/axis.d.ts +76 -0
  96. package/build/types/common/axis.js +8 -0
  97. package/build/types/common/enums.d.ts +50 -0
  98. package/build/types/common/enums.js +9 -0
  99. package/build/types/common/field-config.d.ts +123 -0
  100. package/build/types/common/field-config.js +8 -0
  101. package/build/types/common/index.d.ts +10 -0
  102. package/build/types/common/index.js +7 -0
  103. package/build/types/common/viz-options.d.ts +94 -0
  104. package/build/types/common/viz-options.js +8 -0
  105. package/build/types/display.d.ts +29 -0
  106. package/build/types/display.js +4 -0
  107. package/build/types/grafana-json.d.ts +147 -0
  108. package/build/types/grafana-json.js +6 -0
  109. package/build/types/index.d.ts +10 -0
  110. package/build/types/index.js +7 -0
  111. package/build/types/panel-base.d.ts +72 -0
  112. package/build/types/panel-base.js +4 -0
  113. package/package.json +67 -3
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Component exports
3
+ *
4
+ * All components and their prop types are exported from here.
5
+ */
6
+ // Base utilities
7
+ export { COMPONENT_TYPE, getComponentType, createComponent } from './base.js';
8
+ // Structure components
9
+ export { Dashboard } from './dashboard/dashboard.js';
10
+ export { Row } from './row/row.js';
11
+ export { Variable } from './variable/variable.js';
12
+ export { Annotation } from './annotation/annotation.js';
13
+ export { Link } from './link/link.js';
14
+ // Query components
15
+ export { Query } from './query/query.js';
16
+ export { Override } from './override/override.js';
17
+ // Generic plugin panel
18
+ export { PluginPanel, } from './plugin-panel/plugin-panel.js';
19
+ // Core panels
20
+ export { Stat } from './panels/core/stat/stat.js';
21
+ export { Timeseries, } from './panels/core/timeseries/timeseries.js';
22
+ export { Table } from './panels/core/table/table.js';
23
+ export { BarGauge, } from './panels/core/bar-gauge/bar-gauge.js';
24
+ export { Heatmap } from './panels/core/heatmap/heatmap.js';
25
+ export { Gauge } from './panels/core/gauge/gauge.js';
26
+ export { Text } from './panels/core/text/text.js';
27
+ // Chart panels
28
+ export { BarChart, } from './panels/core/bar-chart/bar-chart.js';
29
+ export { PieChart, } from './panels/core/pie-chart/pie-chart.js';
30
+ export { Histogram, } from './panels/core/histogram/histogram.js';
31
+ export { StateTimeline, } from './panels/core/state-timeline/state-timeline.js';
32
+ export { StatusHistory, } from './panels/core/status-history/status-history.js';
33
+ export { Candlestick, } from './panels/core/candlestick/candlestick.js';
34
+ export { Trend } from './panels/core/trend/trend.js';
35
+ export { XYChart } from './panels/core/xy-chart/xy-chart.js';
36
+ // Data display panels
37
+ export { Logs } from './panels/core/logs/logs.js';
38
+ export { Datagrid, } from './panels/core/datagrid/datagrid.js';
39
+ // Specialized panels
40
+ export { NodeGraph, } from './panels/core/node-graph/node-graph.js';
41
+ export { Traces } from './panels/core/traces/traces.js';
42
+ export { FlameGraph, } from './panels/core/flame-graph/flame-graph.js';
43
+ export { Canvas } from './panels/core/canvas/canvas.js';
44
+ export { Geomap } from './panels/core/geomap/geomap.js';
45
+ // Widget panels
46
+ export { DashboardList, } from './panels/core/dashboard-list/dashboard-list.js';
47
+ export { AlertList, } from './panels/core/alert-list/alert-list.js';
48
+ export { AnnotationsList, } from './panels/core/annotations-list/annotations-list.js';
49
+ export { News } from './panels/core/news/news.js';
50
+ // Plugin panels
51
+ export { BusinessVariablePanel, } from './panels/plugins/business-variable-panel/business-variable-panel.js';
52
+ // Re-export React Fragment for convenience
53
+ import { Fragment } from 'react';
54
+ export { Fragment };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Link - Dashboard navigation link
3
+ *
4
+ * Links appear in the dashboard header for navigation.
5
+ *
6
+ * @example
7
+ * <Link title="Docs" url="https://..." icon="external" />
8
+ */
9
+ export interface LinkProps {
10
+ /** Link title */
11
+ title: string;
12
+ /** Link URL */
13
+ url: string;
14
+ /** Icon type */
15
+ icon?: 'dashboard' | 'external' | 'doc';
16
+ /** Tooltip text */
17
+ tooltip?: string;
18
+ /** Preserve current time range */
19
+ keepTime?: boolean;
20
+ /** Include dashboard variables */
21
+ includeVars?: boolean;
22
+ /** Open in new tab */
23
+ newTab?: boolean;
24
+ }
25
+ export declare const Link: import("react").FC<LinkProps>;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Link - Dashboard navigation link
3
+ *
4
+ * Links appear in the dashboard header for navigation.
5
+ *
6
+ * @example
7
+ * <Link title="Docs" url="https://..." icon="external" />
8
+ */
9
+ import { createComponent } from '../base.js';
10
+ export const Link = createComponent('link');
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Override - Field override for customizing specific series
3
+ *
4
+ * @example
5
+ * <Timeseries title="Metrics">
6
+ * <Query>...</Query>
7
+ * <Override match={{ field: 'error' }} properties={{ color: 'red' }} />
8
+ * </Timeseries>
9
+ */
10
+ import type { ReactNode } from 'react';
11
+ export interface OverrideProps {
12
+ /** Field matcher */
13
+ match: {
14
+ field?: string;
15
+ regex?: string;
16
+ refId?: string;
17
+ };
18
+ /** Properties to override */
19
+ properties: Record<string, unknown>;
20
+ children?: ReactNode;
21
+ }
22
+ export declare const Override: import("react").FC<OverrideProps>;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Override - Field override for customizing specific series
3
+ *
4
+ * @example
5
+ * <Timeseries title="Metrics">
6
+ * <Query>...</Query>
7
+ * <Override match={{ field: 'error' }} properties={{ color: 'red' }} />
8
+ * </Timeseries>
9
+ */
10
+ import { createComponent } from '../base.js';
11
+ export const Override = createComponent('override');
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Alert list panel - displays alert rules and states
3
+ *
4
+ * Use for showing current alert status.
5
+ *
6
+ * @example
7
+ * <AlertList
8
+ * title="Active Alerts"
9
+ * viewMode="list"
10
+ * stateFilter={['alerting', 'pending']}
11
+ * sortOrder="importance"
12
+ * />
13
+ */
14
+ import type { BasePanelProps } from '../../../../types/panel-base.js';
15
+ export interface AlertListProps extends BasePanelProps {
16
+ /** View mode */
17
+ viewMode?: 'list' | 'stat';
18
+ /** Group by */
19
+ groupBy?: string[];
20
+ /** Max items */
21
+ maxItems?: number;
22
+ /** Sort order */
23
+ sortOrder?: 'alpha' | 'importance' | 'time';
24
+ /** State filter */
25
+ stateFilter?: ('alerting' | 'pending' | 'nodata' | 'normal' | 'error')[];
26
+ /** Alert name filter */
27
+ alertNameFilter?: string;
28
+ /** Dashboard filter - only show alerts from current dashboard */
29
+ dashboardFilter?: boolean;
30
+ /** Folder filter */
31
+ folderId?: number;
32
+ }
33
+ export declare const AlertList: import("react").FC<AlertListProps>;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Alert list panel - displays alert rules and states
3
+ *
4
+ * Use for showing current alert status.
5
+ *
6
+ * @example
7
+ * <AlertList
8
+ * title="Active Alerts"
9
+ * viewMode="list"
10
+ * stateFilter={['alerting', 'pending']}
11
+ * sortOrder="importance"
12
+ * />
13
+ */
14
+ import { createComponent } from '../../../base.js';
15
+ export const AlertList = createComponent('alertlist');
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Annotations list panel - displays annotations
3
+ *
4
+ * Use for showing dashboard annotations.
5
+ *
6
+ * @example
7
+ * <AnnotationsList
8
+ * title="Recent Annotations"
9
+ * onlyFromThisDashboard
10
+ * showUser
11
+ * showTime
12
+ * />
13
+ */
14
+ import type { BasePanelProps } from '../../../../types/panel-base.js';
15
+ export interface AnnotationsListProps extends BasePanelProps {
16
+ /** Query filter: all dashboards or this dashboard only */
17
+ onlyFromThisDashboard?: boolean;
18
+ /** Time range filter: use dashboard time range or none */
19
+ onlyInTimeRange?: boolean;
20
+ /** Tags to filter by */
21
+ tags?: string[];
22
+ /** Max items */
23
+ limit?: number;
24
+ /** Show user who created annotation */
25
+ showUser?: boolean;
26
+ /** Show time of annotation */
27
+ showTime?: boolean;
28
+ /** Show tags on annotation */
29
+ showTags?: boolean;
30
+ }
31
+ export declare const AnnotationsList: import("react").FC<AnnotationsListProps>;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Annotations list panel - displays annotations
3
+ *
4
+ * Use for showing dashboard annotations.
5
+ *
6
+ * @example
7
+ * <AnnotationsList
8
+ * title="Recent Annotations"
9
+ * onlyFromThisDashboard
10
+ * showUser
11
+ * showTime
12
+ * />
13
+ */
14
+ import { createComponent } from '../../../base.js';
15
+ export const AnnotationsList = createComponent('annolist');
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Bar chart panel - categorical bar charts
3
+ *
4
+ * Use for comparing discrete categories.
5
+ *
6
+ * @example
7
+ * <BarChart
8
+ * title="Requests by Endpoint"
9
+ * orientation="horizontal"
10
+ * stack="normal"
11
+ * >
12
+ * sum by (endpoint) (http_requests_total)
13
+ * </BarChart>
14
+ */
15
+ import type { BasePanelProps, OverrideConfig } from '../../../../types/panel-base.js';
16
+ import type { Unit, ThresholdSpec, LegendConfig, LegendPlacement, ColorMode } from '../../../../types/display.js';
17
+ export interface BarChartProps extends BasePanelProps {
18
+ /** Display unit */
19
+ unit?: Unit;
20
+ /** Decimal places */
21
+ decimals?: number;
22
+ /** Threshold configuration */
23
+ thresholds?: ThresholdSpec;
24
+ /** X Axis field */
25
+ xField?: string;
26
+ /** Orientation */
27
+ orientation?: 'auto' | 'horizontal' | 'vertical';
28
+ /** Stacking mode */
29
+ stack?: 'off' | 'normal' | 'percent';
30
+ /** Show values on bars */
31
+ showValue?: 'auto' | 'always' | 'never';
32
+ /** Bar width percentage (0-1) */
33
+ barWidth?: number;
34
+ /** Group width percentage (0-1) */
35
+ groupWidth?: number;
36
+ /** Fill opacity (0-100) */
37
+ fill?: number;
38
+ /** Gradient mode for bars */
39
+ gradientMode?: 'none' | 'opacity' | 'hue' | 'scheme';
40
+ /** Legend configuration */
41
+ legend?: LegendConfig | LegendPlacement;
42
+ /** Color mode */
43
+ colorMode?: ColorMode;
44
+ /** Field overrides */
45
+ overrides?: OverrideConfig[];
46
+ }
47
+ export declare const BarChart: import("react").FC<BarChartProps>;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Bar chart panel - categorical bar charts
3
+ *
4
+ * Use for comparing discrete categories.
5
+ *
6
+ * @example
7
+ * <BarChart
8
+ * title="Requests by Endpoint"
9
+ * orientation="horizontal"
10
+ * stack="normal"
11
+ * >
12
+ * sum by (endpoint) (http_requests_total)
13
+ * </BarChart>
14
+ */
15
+ import { createComponent } from '../../../base.js';
16
+ export const BarChart = createComponent('barchart');
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Bar gauge panel - horizontal/vertical progress bars
3
+ *
4
+ * Use for showing progress towards a goal or threshold.
5
+ *
6
+ * @example
7
+ * <BarGauge
8
+ * title="Memory Usage"
9
+ * unit="percent"
10
+ * min={0}
11
+ * max={100}
12
+ * thresholds={{ 70: 'yellow', 90: 'red' }}
13
+ * >
14
+ * avg(memory_usage_percent)
15
+ * </BarGauge>
16
+ *
17
+ * @example
18
+ * // LCD-style display with name placement
19
+ * <BarGauge
20
+ * title="Disk Usage"
21
+ * displayMode="lcd"
22
+ * orientation="horizontal"
23
+ * namePlacement="left"
24
+ * showUnfilled
25
+ * >
26
+ * disk_used_percent
27
+ * </BarGauge>
28
+ */
29
+ import type { BasePanelProps, OverrideConfig, Transformation } from '../../../../types/panel-base.js';
30
+ import type { Unit, ThresholdSpec } from '../../../../types/display.js';
31
+ import type { VizOrientation, BarGaugeSizing, BarGaugeDisplayMode, BarGaugeValueMode, BarGaugeNamePlacement, ReduceDataOptions, TextFormattingOptions } from '../../../../types/common/index.js';
32
+ export interface BarGaugeProps extends BasePanelProps {
33
+ /** Display unit */
34
+ unit?: Unit;
35
+ /** Decimal places */
36
+ decimals?: number;
37
+ /** Minimum value */
38
+ min?: number;
39
+ /** Maximum value */
40
+ max?: number;
41
+ /** Threshold configuration */
42
+ thresholds?: ThresholdSpec;
43
+ /** Bar orientation */
44
+ orientation?: VizOrientation | 'horizontal' | 'vertical';
45
+ /** Display mode (basic, gradient, or lcd) */
46
+ displayMode?: BarGaugeDisplayMode;
47
+ /** Field overrides for series-specific styling */
48
+ overrides?: OverrideConfig[];
49
+ /** Data transformations */
50
+ transformations?: Transformation[];
51
+ /** Show unfilled portion of bar */
52
+ showUnfilled?: boolean;
53
+ /** Minimum visualization width in pixels */
54
+ minVizWidth?: number;
55
+ /** Minimum visualization height in pixels */
56
+ minVizHeight?: number;
57
+ /** Sizing mode */
58
+ sizing?: BarGaugeSizing;
59
+ /** Value display mode */
60
+ valueMode?: BarGaugeValueMode;
61
+ /** Name/label placement */
62
+ namePlacement?: BarGaugeNamePlacement;
63
+ /** Data reduction options (advanced) */
64
+ reduceOptions?: ReduceDataOptions;
65
+ /** Text formatting options */
66
+ text?: TextFormattingOptions;
67
+ }
68
+ export declare const BarGauge: import("react").FC<BarGaugeProps>;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Bar gauge panel - horizontal/vertical progress bars
3
+ *
4
+ * Use for showing progress towards a goal or threshold.
5
+ *
6
+ * @example
7
+ * <BarGauge
8
+ * title="Memory Usage"
9
+ * unit="percent"
10
+ * min={0}
11
+ * max={100}
12
+ * thresholds={{ 70: 'yellow', 90: 'red' }}
13
+ * >
14
+ * avg(memory_usage_percent)
15
+ * </BarGauge>
16
+ *
17
+ * @example
18
+ * // LCD-style display with name placement
19
+ * <BarGauge
20
+ * title="Disk Usage"
21
+ * displayMode="lcd"
22
+ * orientation="horizontal"
23
+ * namePlacement="left"
24
+ * showUnfilled
25
+ * >
26
+ * disk_used_percent
27
+ * </BarGauge>
28
+ */
29
+ import { createComponent } from '../../../base.js';
30
+ export const BarGauge = createComponent('bargauge');
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Candlestick panel - financial OHLC charts
3
+ *
4
+ * Use for displaying financial data with open/high/low/close values.
5
+ *
6
+ * @example
7
+ * <Candlestick
8
+ * title="Stock Price"
9
+ * mode="candles"
10
+ * upColor="green"
11
+ * downColor="red"
12
+ * >
13
+ * stock_price
14
+ * </Candlestick>
15
+ */
16
+ import type { BasePanelProps } from '../../../../types/panel-base.js';
17
+ import type { LegendConfig, LegendPlacement } from '../../../../types/display.js';
18
+ export interface CandlestickProps extends BasePanelProps {
19
+ /** Mode */
20
+ mode?: 'candles' | 'volume' | 'both';
21
+ /** Candle style */
22
+ candleStyle?: 'candles' | 'ohlcbars';
23
+ /** Color strategy */
24
+ colorStrategy?: 'open-close' | 'close-close';
25
+ /** Open field */
26
+ openField?: string;
27
+ /** High field */
28
+ highField?: string;
29
+ /** Low field */
30
+ lowField?: string;
31
+ /** Close field */
32
+ closeField?: string;
33
+ /** Volume field */
34
+ volumeField?: string;
35
+ /** Up color */
36
+ upColor?: string;
37
+ /** Down color */
38
+ downColor?: string;
39
+ /** Legend configuration */
40
+ legend?: LegendConfig | LegendPlacement;
41
+ }
42
+ export declare const Candlestick: import("react").FC<CandlestickProps>;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Candlestick panel - financial OHLC charts
3
+ *
4
+ * Use for displaying financial data with open/high/low/close values.
5
+ *
6
+ * @example
7
+ * <Candlestick
8
+ * title="Stock Price"
9
+ * mode="candles"
10
+ * upColor="green"
11
+ * downColor="red"
12
+ * >
13
+ * stock_price
14
+ * </Candlestick>
15
+ */
16
+ import { createComponent } from '../../../base.js';
17
+ export const Candlestick = createComponent('candlestick');
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Canvas panel - custom visual layouts
3
+ *
4
+ * Use for creating custom visualizations with draggable elements.
5
+ *
6
+ * @example
7
+ * <Canvas title="Custom Layout" inlineEditing panZoom>
8
+ * data_query
9
+ * </Canvas>
10
+ */
11
+ import type { BasePanelProps } from '../../../../types/panel-base.js';
12
+ export interface CanvasProps extends BasePanelProps {
13
+ /** Inline editing enabled */
14
+ inlineEditing?: boolean;
15
+ /** Pan and zoom enabled */
16
+ panZoom?: boolean;
17
+ }
18
+ export declare const Canvas: import("react").FC<CanvasProps>;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Canvas panel - custom visual layouts
3
+ *
4
+ * Use for creating custom visualizations with draggable elements.
5
+ *
6
+ * @example
7
+ * <Canvas title="Custom Layout" inlineEditing panZoom>
8
+ * data_query
9
+ * </Canvas>
10
+ */
11
+ import { createComponent } from '../../../base.js';
12
+ export const Canvas = createComponent('canvas');
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Dashboard list panel - displays dashboard links
3
+ *
4
+ * Use for creating navigation to other dashboards.
5
+ *
6
+ * @example
7
+ * <DashboardList
8
+ * title="Related Dashboards"
9
+ * showSearch
10
+ * tags={['production']}
11
+ * includeTimeRange
12
+ * />
13
+ */
14
+ import type { BasePanelProps } from '../../../../types/panel-base.js';
15
+ export interface DashboardListProps extends BasePanelProps {
16
+ /** Show starred dashboards */
17
+ showStarred?: boolean;
18
+ /** Show recently viewed */
19
+ showRecentlyViewed?: boolean;
20
+ /** Show search results */
21
+ showSearch?: boolean;
22
+ /** Search query */
23
+ query?: string;
24
+ /** Max items to show */
25
+ maxItems?: number;
26
+ /** Tags to filter by */
27
+ tags?: string[];
28
+ /** Folder to filter by */
29
+ folderId?: number;
30
+ /** Include current time range in links */
31
+ includeTimeRange?: boolean;
32
+ /** Include template variables in links */
33
+ includeVars?: boolean;
34
+ }
35
+ export declare const DashboardList: import("react").FC<DashboardListProps>;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Dashboard list panel - displays dashboard links
3
+ *
4
+ * Use for creating navigation to other dashboards.
5
+ *
6
+ * @example
7
+ * <DashboardList
8
+ * title="Related Dashboards"
9
+ * showSearch
10
+ * tags={['production']}
11
+ * includeTimeRange
12
+ * />
13
+ */
14
+ import { createComponent } from '../../../base.js';
15
+ export const DashboardList = createComponent('dashlist');
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Datagrid panel - editable data grid
3
+ *
4
+ * Use for displaying and editing tabular data.
5
+ *
6
+ * @example
7
+ * <Datagrid title="Editable Data" selectedSeries={0}>
8
+ * data_query
9
+ * </Datagrid>
10
+ */
11
+ import type { BasePanelProps } from '../../../../types/panel-base.js';
12
+ export interface DatagridProps extends BasePanelProps {
13
+ /** Selected series index */
14
+ selectedSeries?: number;
15
+ }
16
+ export declare const Datagrid: import("react").FC<DatagridProps>;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Datagrid panel - editable data grid
3
+ *
4
+ * Use for displaying and editing tabular data.
5
+ *
6
+ * @example
7
+ * <Datagrid title="Editable Data" selectedSeries={0}>
8
+ * data_query
9
+ * </Datagrid>
10
+ */
11
+ import { createComponent } from '../../../base.js';
12
+ export const Datagrid = createComponent('datagrid');
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Flame graph panel - profiling visualization
3
+ *
4
+ * Use for displaying CPU/memory profiling data.
5
+ *
6
+ * @example
7
+ * <FlameGraph title="CPU Profile" displayMode="flamegraph">
8
+ * profile_data
9
+ * </FlameGraph>
10
+ */
11
+ import type { BasePanelProps } from '../../../../types/panel-base.js';
12
+ export interface FlameGraphProps extends BasePanelProps {
13
+ /** Display mode */
14
+ displayMode?: 'flamegraph' | 'table' | 'both';
15
+ }
16
+ export declare const FlameGraph: import("react").FC<FlameGraphProps>;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Flame graph panel - profiling visualization
3
+ *
4
+ * Use for displaying CPU/memory profiling data.
5
+ *
6
+ * @example
7
+ * <FlameGraph title="CPU Profile" displayMode="flamegraph">
8
+ * profile_data
9
+ * </FlameGraph>
10
+ */
11
+ import { createComponent } from '../../../base.js';
12
+ export const FlameGraph = createComponent('flamegraph');
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Gauge panel - circular gauge with thresholds
3
+ *
4
+ * Use for showing a single value against a range.
5
+ *
6
+ * @example
7
+ * <Gauge
8
+ * title="CPU Load"
9
+ * unit="percent"
10
+ * min={0}
11
+ * max={100}
12
+ * thresholds={{ 70: 'yellow', 90: 'red' }}
13
+ * >
14
+ * avg(system_load1)
15
+ * </Gauge>
16
+ *
17
+ * @example
18
+ * // With threshold labels and custom sizing
19
+ * <Gauge
20
+ * title="Memory"
21
+ * unit="percent"
22
+ * showThresholdLabels
23
+ * minVizWidth={100}
24
+ * minVizHeight={100}
25
+ * >
26
+ * avg(memory_usage_percent)
27
+ * </Gauge>
28
+ */
29
+ import type { BasePanelProps, OverrideConfig, Transformation } from '../../../../types/panel-base.js';
30
+ import type { Unit, ThresholdSpec } from '../../../../types/display.js';
31
+ import type { VizOrientation, BarGaugeSizing, ReduceDataOptions, TextFormattingOptions } from '../../../../types/common/index.js';
32
+ export interface GaugeProps extends BasePanelProps {
33
+ /** Display unit */
34
+ unit?: Unit;
35
+ /** Decimal places */
36
+ decimals?: number;
37
+ /** Minimum value */
38
+ min?: number;
39
+ /** Maximum value */
40
+ max?: number;
41
+ /** Threshold configuration */
42
+ thresholds?: ThresholdSpec;
43
+ /** Show threshold labels on gauge */
44
+ showThresholdLabels?: boolean;
45
+ /** Show threshold markers on gauge */
46
+ showThresholdMarkers?: boolean;
47
+ /** Field overrides for series-specific styling */
48
+ overrides?: OverrideConfig[];
49
+ /** Data transformations */
50
+ transformations?: Transformation[];
51
+ /** Minimum visualization width in pixels */
52
+ minVizWidth?: number;
53
+ /** Minimum visualization height in pixels */
54
+ minVizHeight?: number;
55
+ /** Sizing mode */
56
+ sizing?: BarGaugeSizing;
57
+ /** Visualization orientation */
58
+ orientation?: VizOrientation;
59
+ /** Data reduction options (advanced) */
60
+ reduceOptions?: ReduceDataOptions;
61
+ /** Text formatting options */
62
+ text?: TextFormattingOptions;
63
+ }
64
+ export declare const Gauge: import("react").FC<GaugeProps>;