@e-llm-studio/federated-dashboard-components 1.1.12-human-intel-test → 2.0.0

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 (178) hide show
  1. package/dist/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
  2. package/dist/ExecutiveDashboard/api/dashboardApi.js +1 -1
  3. package/dist/ExecutiveDashboard/components/BarChart/BarChart.js +2 -0
  4. package/dist/ExecutiveDashboard/components/BarChart/BarChart.js.map +1 -0
  5. package/dist/ExecutiveDashboard/components/BarChart/BarChartEmptyState.js +2 -0
  6. package/dist/ExecutiveDashboard/components/BarChart/BarChartEmptyState.js.map +1 -0
  7. package/dist/ExecutiveDashboard/components/BarChart/BarChartSkeleton.js +2 -0
  8. package/dist/ExecutiveDashboard/components/BarChart/BarChartSkeleton.js.map +1 -0
  9. package/dist/ExecutiveDashboard/components/BarChart/BarChartTooltip.js +2 -0
  10. package/dist/ExecutiveDashboard/components/BarChart/BarChartTooltip.js.map +1 -0
  11. package/dist/ExecutiveDashboard/components/BarChart/types.js +2 -0
  12. package/dist/ExecutiveDashboard/components/BarChart/types.js.map +1 -0
  13. package/dist/ExecutiveDashboard/components/BarChart/utils.js +2 -0
  14. package/dist/ExecutiveDashboard/components/BarChart/utils.js.map +1 -0
  15. package/dist/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js +1 -1
  16. package/dist/ExecutiveDashboard/components/DashboardDateFilter/datePreset.js +1 -1
  17. package/dist/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
  18. package/dist/ExecutiveDashboard/components/Graph/Graph.js +1 -1
  19. package/dist/ExecutiveDashboard/components/Graph/LineChart.js +1 -1
  20. package/dist/ExecutiveDashboard/components/Graph/Seperator.js +2 -0
  21. package/dist/ExecutiveDashboard/components/Graph/Seperator.js.map +1 -0
  22. package/dist/ExecutiveDashboard/components/MetricCard/MetricCard.js +1 -1
  23. package/dist/ExecutiveDashboard/components/PieChart/PieChart.js +2 -0
  24. package/dist/ExecutiveDashboard/components/PieChart/PieChart.js.map +1 -0
  25. package/dist/ExecutiveDashboard/components/PieChart/PieChartEmptyState.js +2 -0
  26. package/dist/ExecutiveDashboard/components/PieChart/PieChartEmptyState.js.map +1 -0
  27. package/dist/ExecutiveDashboard/components/PieChart/PieChartSkeleton.js +2 -0
  28. package/dist/ExecutiveDashboard/components/PieChart/PieChartSkeleton.js.map +1 -0
  29. package/dist/ExecutiveDashboard/components/PieChart/PieChartTooltip.js +2 -0
  30. package/dist/ExecutiveDashboard/components/PieChart/PieChartTooltip.js.map +1 -0
  31. package/dist/ExecutiveDashboard/components/PieChart/types.js +2 -0
  32. package/dist/ExecutiveDashboard/components/PieChart/types.js.map +1 -0
  33. package/dist/ExecutiveDashboard/components/PieChart/utils.js +2 -0
  34. package/dist/ExecutiveDashboard/components/PieChart/utils.js.map +1 -0
  35. package/dist/ExecutiveDashboard/components/Table/TableCard.js +1 -1
  36. package/dist/ExecutiveDashboard/components/ui/chart.js +1 -1
  37. package/dist/ExecutiveDashboard/hooks/useVisibilityPolling.js +2 -0
  38. package/dist/ExecutiveDashboard/hooks/useVisibilityPolling.js.map +1 -0
  39. package/dist/HumanIntelligence/HumanChangesTableWrapper.js +1 -1
  40. package/dist/HumanIntelligence/components/CitationContent/CitationContent.js +1 -1
  41. package/dist/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.js +1 -1
  42. package/dist/HumanIntelligence/components/LogFilters/LogFilters.js +1 -1
  43. package/dist/HumanIntelligence/components/LogTable/LogTable.js +1 -1
  44. package/dist/RecordDashboard/RecordApi/RecordDashboardApi.js +1 -1
  45. package/dist/RecordDashboard/RecordComponents/RecordDashboard.js +1 -1
  46. package/dist/RecordDashboard/RecordDashboardWrapper.js +1 -1
  47. package/dist/RecordDashboard/RecordUtils/RecordTableColumns.js +1 -1
  48. package/dist/cjs/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
  49. package/dist/cjs/ExecutiveDashboard/api/dashboardApi.js +1 -1
  50. package/dist/cjs/ExecutiveDashboard/components/BarChart/BarChart.js +2 -0
  51. package/dist/cjs/ExecutiveDashboard/components/BarChart/BarChart.js.map +1 -0
  52. package/dist/cjs/ExecutiveDashboard/components/BarChart/BarChartEmptyState.js +2 -0
  53. package/dist/cjs/ExecutiveDashboard/components/BarChart/BarChartEmptyState.js.map +1 -0
  54. package/dist/cjs/ExecutiveDashboard/components/BarChart/BarChartSkeleton.js +2 -0
  55. package/dist/cjs/ExecutiveDashboard/components/BarChart/BarChartSkeleton.js.map +1 -0
  56. package/dist/cjs/ExecutiveDashboard/components/BarChart/BarChartTooltip.js +2 -0
  57. package/dist/cjs/ExecutiveDashboard/components/BarChart/BarChartTooltip.js.map +1 -0
  58. package/dist/cjs/ExecutiveDashboard/components/BarChart/types.js +2 -0
  59. package/dist/cjs/ExecutiveDashboard/components/BarChart/types.js.map +1 -0
  60. package/dist/cjs/ExecutiveDashboard/components/BarChart/utils.js +2 -0
  61. package/dist/cjs/ExecutiveDashboard/components/BarChart/utils.js.map +1 -0
  62. package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js +1 -1
  63. package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/datePreset.js +1 -1
  64. package/dist/cjs/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
  65. package/dist/cjs/ExecutiveDashboard/components/Graph/Graph.js +1 -1
  66. package/dist/cjs/ExecutiveDashboard/components/Graph/LineChart.js +1 -1
  67. package/dist/cjs/ExecutiveDashboard/components/Graph/Seperator.js +2 -0
  68. package/dist/cjs/ExecutiveDashboard/components/Graph/Seperator.js.map +1 -0
  69. package/dist/cjs/ExecutiveDashboard/components/MetricCard/MetricCard.js +1 -1
  70. package/dist/cjs/ExecutiveDashboard/components/PieChart/PieChart.js +2 -0
  71. package/dist/cjs/ExecutiveDashboard/components/PieChart/PieChart.js.map +1 -0
  72. package/dist/cjs/ExecutiveDashboard/components/PieChart/PieChartEmptyState.js +2 -0
  73. package/dist/cjs/ExecutiveDashboard/components/PieChart/PieChartEmptyState.js.map +1 -0
  74. package/dist/cjs/ExecutiveDashboard/components/PieChart/PieChartSkeleton.js +2 -0
  75. package/dist/cjs/ExecutiveDashboard/components/PieChart/PieChartSkeleton.js.map +1 -0
  76. package/dist/cjs/ExecutiveDashboard/components/PieChart/PieChartTooltip.js +2 -0
  77. package/dist/cjs/ExecutiveDashboard/components/PieChart/PieChartTooltip.js.map +1 -0
  78. package/dist/cjs/ExecutiveDashboard/components/PieChart/types.js +2 -0
  79. package/dist/cjs/ExecutiveDashboard/components/PieChart/types.js.map +1 -0
  80. package/dist/cjs/ExecutiveDashboard/components/PieChart/utils.js +2 -0
  81. package/dist/cjs/ExecutiveDashboard/components/PieChart/utils.js.map +1 -0
  82. package/dist/cjs/ExecutiveDashboard/components/Table/TableCard.js +1 -1
  83. package/dist/cjs/ExecutiveDashboard/components/ui/chart.js +1 -1
  84. package/dist/cjs/ExecutiveDashboard/hooks/useVisibilityPolling.js +2 -0
  85. package/dist/cjs/ExecutiveDashboard/hooks/useVisibilityPolling.js.map +1 -0
  86. package/dist/cjs/HumanIntelligence/HumanChangesTableWrapper.js +1 -1
  87. package/dist/cjs/HumanIntelligence/components/CitationContent/CitationContent.js +1 -1
  88. package/dist/cjs/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.js +1 -1
  89. package/dist/cjs/HumanIntelligence/components/LogFilters/LogFilters.js +1 -1
  90. package/dist/cjs/HumanIntelligence/components/LogTable/LogTable.js +1 -1
  91. package/dist/cjs/RecordDashboard/RecordApi/RecordDashboardApi.js +1 -1
  92. package/dist/cjs/RecordDashboard/RecordComponents/RecordDashboard.js +1 -1
  93. package/dist/cjs/RecordDashboard/RecordDashboardWrapper.js +1 -1
  94. package/dist/cjs/RecordDashboard/RecordUtils/RecordTableColumns.js +1 -1
  95. package/dist/cjs/index.js +1 -1
  96. package/dist/cjs/styles.css +1 -1
  97. package/dist/index.js +1 -1
  98. package/dist/styles.css +1 -1
  99. package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts +1 -1
  100. package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts.map +1 -1
  101. package/dist/types/ExecutiveDashboard/TestExecutiveDashboard.d.ts.map +1 -1
  102. package/dist/types/ExecutiveDashboard/api/dashboardApi.d.ts +2 -1
  103. package/dist/types/ExecutiveDashboard/api/dashboardApi.d.ts.map +1 -1
  104. package/dist/types/ExecutiveDashboard/components/BarChart/BarChart.d.ts +11 -0
  105. package/dist/types/ExecutiveDashboard/components/BarChart/BarChart.d.ts.map +1 -0
  106. package/dist/types/ExecutiveDashboard/components/BarChart/BarChartEmptyState.d.ts +11 -0
  107. package/dist/types/ExecutiveDashboard/components/BarChart/BarChartEmptyState.d.ts.map +1 -0
  108. package/dist/types/ExecutiveDashboard/components/BarChart/BarChartSkeleton.d.ts +11 -0
  109. package/dist/types/ExecutiveDashboard/components/BarChart/BarChartSkeleton.d.ts.map +1 -0
  110. package/dist/types/ExecutiveDashboard/components/BarChart/BarChartTooltip.d.ts +13 -0
  111. package/dist/types/ExecutiveDashboard/components/BarChart/BarChartTooltip.d.ts.map +1 -0
  112. package/dist/types/ExecutiveDashboard/components/BarChart/types.d.ts +170 -0
  113. package/dist/types/ExecutiveDashboard/components/BarChart/types.d.ts.map +1 -0
  114. package/dist/types/ExecutiveDashboard/components/BarChart/utils.d.ts +48 -0
  115. package/dist/types/ExecutiveDashboard/components/BarChart/utils.d.ts.map +1 -0
  116. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.d.ts +6 -1
  117. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.d.ts.map +1 -1
  118. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/datePreset.d.ts +47 -0
  119. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/datePreset.d.ts.map +1 -1
  120. package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts +18 -2
  121. package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts.map +1 -1
  122. package/dist/types/ExecutiveDashboard/components/Graph/Graph.d.ts +1 -1
  123. package/dist/types/ExecutiveDashboard/components/Graph/Graph.d.ts.map +1 -1
  124. package/dist/types/ExecutiveDashboard/components/Graph/LineChart.d.ts +4 -2
  125. package/dist/types/ExecutiveDashboard/components/Graph/LineChart.d.ts.map +1 -1
  126. package/dist/types/ExecutiveDashboard/components/Graph/Seperator.d.ts +7 -0
  127. package/dist/types/ExecutiveDashboard/components/Graph/Seperator.d.ts.map +1 -0
  128. package/dist/types/ExecutiveDashboard/components/Graph/types.d.ts +61 -0
  129. package/dist/types/ExecutiveDashboard/components/Graph/types.d.ts.map +1 -1
  130. package/dist/types/ExecutiveDashboard/components/MetricCard/MetricCard.d.ts +13 -1
  131. package/dist/types/ExecutiveDashboard/components/MetricCard/MetricCard.d.ts.map +1 -1
  132. package/dist/types/ExecutiveDashboard/components/PieChart/PieChart.d.ts +11 -0
  133. package/dist/types/ExecutiveDashboard/components/PieChart/PieChart.d.ts.map +1 -0
  134. package/dist/types/ExecutiveDashboard/components/PieChart/PieChartEmptyState.d.ts +11 -0
  135. package/dist/types/ExecutiveDashboard/components/PieChart/PieChartEmptyState.d.ts.map +1 -0
  136. package/dist/types/ExecutiveDashboard/components/PieChart/PieChartSkeleton.d.ts +12 -0
  137. package/dist/types/ExecutiveDashboard/components/PieChart/PieChartSkeleton.d.ts.map +1 -0
  138. package/dist/types/ExecutiveDashboard/components/PieChart/PieChartTooltip.d.ts +13 -0
  139. package/dist/types/ExecutiveDashboard/components/PieChart/PieChartTooltip.d.ts.map +1 -0
  140. package/dist/types/ExecutiveDashboard/components/PieChart/types.d.ts +148 -0
  141. package/dist/types/ExecutiveDashboard/components/PieChart/types.d.ts.map +1 -0
  142. package/dist/types/ExecutiveDashboard/components/PieChart/utils.d.ts +39 -0
  143. package/dist/types/ExecutiveDashboard/components/PieChart/utils.d.ts.map +1 -0
  144. package/dist/types/ExecutiveDashboard/components/Table/TableCard.d.ts +11 -1
  145. package/dist/types/ExecutiveDashboard/components/Table/TableCard.d.ts.map +1 -1
  146. package/dist/types/ExecutiveDashboard/components/common/Accordion.d.ts +34 -0
  147. package/dist/types/ExecutiveDashboard/components/common/Accordion.d.ts.map +1 -0
  148. package/dist/types/ExecutiveDashboard/components/ui/chart.d.ts +1 -0
  149. package/dist/types/ExecutiveDashboard/components/ui/chart.d.ts.map +1 -1
  150. package/dist/types/ExecutiveDashboard/constant/index.d.ts.map +1 -1
  151. package/dist/types/ExecutiveDashboard/hooks/useVisibilityPolling.d.ts +12 -0
  152. package/dist/types/ExecutiveDashboard/hooks/useVisibilityPolling.d.ts.map +1 -0
  153. package/dist/types/ExecutiveDashboard/types/index.d.ts +270 -1
  154. package/dist/types/ExecutiveDashboard/types/index.d.ts.map +1 -1
  155. package/dist/types/HumanIntelligence/HumanChangesTableWrapper.d.ts +7 -1
  156. package/dist/types/HumanIntelligence/HumanChangesTableWrapper.d.ts.map +1 -1
  157. package/dist/types/HumanIntelligence/TestHumanIntelligence.d.ts.map +1 -1
  158. package/dist/types/HumanIntelligence/components/CitationContent/CitationContent.d.ts.map +1 -1
  159. package/dist/types/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.d.ts.map +1 -1
  160. package/dist/types/HumanIntelligence/components/LogFilters/LogFilters.d.ts +3 -0
  161. package/dist/types/HumanIntelligence/components/LogFilters/LogFilters.d.ts.map +1 -1
  162. package/dist/types/HumanIntelligence/components/LogTable/LogTable.d.ts +12 -1
  163. package/dist/types/HumanIntelligence/components/LogTable/LogTable.d.ts.map +1 -1
  164. package/dist/types/RecordDashboard/RecordApi/RecordDashboardApi.d.ts +5 -2
  165. package/dist/types/RecordDashboard/RecordApi/RecordDashboardApi.d.ts.map +1 -1
  166. package/dist/types/RecordDashboard/RecordComponents/AnalyticsChart/AnalyticsChart.d.ts +1 -1
  167. package/dist/types/RecordDashboard/RecordComponents/AnalyticsChart/AnalyticsChart.d.ts.map +1 -1
  168. package/dist/types/RecordDashboard/RecordComponents/RecordDashboard.d.ts.map +1 -1
  169. package/dist/types/RecordDashboard/RecordDashboardWrapper.d.ts +1 -1
  170. package/dist/types/RecordDashboard/RecordDashboardWrapper.d.ts.map +1 -1
  171. package/dist/types/RecordDashboard/RecordTypes/index.d.ts +33 -4
  172. package/dist/types/RecordDashboard/RecordTypes/index.d.ts.map +1 -1
  173. package/dist/types/RecordDashboard/RecordUtils/RecordTableColumns.d.ts +13 -1
  174. package/dist/types/RecordDashboard/RecordUtils/RecordTableColumns.d.ts.map +1 -1
  175. package/dist/types/RecordDashboard/TestRecordDashbaord.d.ts.map +1 -1
  176. package/dist/types/index.d.ts +26 -1
  177. package/dist/types/index.d.ts.map +1 -1
  178. package/package.json +3 -3
@@ -0,0 +1,148 @@
1
+ import type React from "react";
2
+ /**
3
+ * One slice of the pie. A null/zero value is dropped from the ring (and from
4
+ * the legend) rather than drawn as a hairline slice.
5
+ */
6
+ export type PieChartDatum = {
7
+ /** Slice name, shown in the legend and tooltip. */
8
+ label: string;
9
+ value: number | null;
10
+ /**
11
+ * Overrides the shade derived from the base `color` for this slice only —
12
+ * useful for pinning an "Others" bucket to a fixed tint.
13
+ */
14
+ color?: string;
15
+ /** Arbitrary extra data, forwarded to tooltip/click handlers. */
16
+ meta?: Record<string, unknown>;
17
+ };
18
+ /**
19
+ * How the single base `color` is spread across the slices.
20
+ * - `rank` — evenly stepped shades ordered by value (strongest = largest).
21
+ * Default, and what keeps a long tail of small slices readable.
22
+ * - `value` — shade proportional to the value itself.
23
+ * - `none` — every slice uses the base colour as-is.
24
+ */
25
+ export type PieShadeMode = "rank" | "value" | "none";
26
+ export type PieChartLegendConfig = {
27
+ /** Default true. */
28
+ show?: boolean;
29
+ /** Default "right" — falls back to "bottom" on narrow containers. */
30
+ position?: "right" | "bottom";
31
+ /** Show the formatted value column. Default true. */
32
+ showValue?: boolean;
33
+ /** Show the share-of-total column. Default true. */
34
+ showPercent?: boolean;
35
+ /** Decimal places on the percentage. Default 0. */
36
+ percentDecimals?: number;
37
+ /** Cap the rows rendered; the rest scroll. Default unlimited. */
38
+ maxHeight?: number;
39
+ };
40
+ export type PieChartCenterConfig = {
41
+ /** Default true for the donut variant, ignored for a full pie. */
42
+ show?: boolean;
43
+ /** Overrides the summed total. */
44
+ value?: React.ReactNode;
45
+ /** Caption under the value. Default "Total". */
46
+ label?: React.ReactNode;
47
+ /**
48
+ * Swap the centre to the hovered slice's label + value while hovering.
49
+ * Default true.
50
+ */
51
+ followHover?: boolean;
52
+ };
53
+ export type PieChartTooltipConfig = {
54
+ /** Default true. */
55
+ enabled?: boolean;
56
+ /** Show the slice-name heading row. Default true. */
57
+ showHeading?: boolean;
58
+ formatHeading?: (label: string) => React.ReactNode;
59
+ /** Overrides the top-level `valueFormatter` for the tooltip only. */
60
+ formatValue?: (value: number, datum: PieChartDatum) => React.ReactNode;
61
+ /** Adds a "x% of total" row under the value. Default true. */
62
+ showShare?: boolean;
63
+ /** Fully replaces the tooltip body. */
64
+ render?: (ctx: PieChartInteractionContext) => React.ReactNode;
65
+ };
66
+ export type PieChartStyle = {
67
+ className?: string;
68
+ container?: React.CSSProperties;
69
+ /** Height of the plot area in px. Default 260. */
70
+ chartHeight?: number;
71
+ /** Ring thickness is `outerRadius - innerRadius`. Percent strings allowed. */
72
+ innerRadius?: number | string;
73
+ outerRadius?: number | string;
74
+ /** Gap between slices in degrees. Default 0 (a continuous ring). */
75
+ paddingAngle?: number;
76
+ /** Rounded slice ends. Default 0. */
77
+ cornerRadius?: number;
78
+ /** How far the hovered slice grows, in px. Default 6. */
79
+ activeOffset?: number;
80
+ /**
81
+ * Shade intensity range applied to the base colour, `[lightest, strongest]`
82
+ * on a 0–1 scale where 1 is the base colour and 0 is white.
83
+ * Default [0.18, 1].
84
+ */
85
+ shadeRange?: [number, number];
86
+ /** Opacity of the non-hovered slices while hovering. Default 0.45. */
87
+ dimOpacity?: number;
88
+ fontFamily?: string;
89
+ };
90
+ export type PieChartConfig = {
91
+ /** Render the title/icon/description header. Default true. */
92
+ showHeader?: boolean;
93
+ /** Donut (default) leaves a hole for the centre total; pie fills it. */
94
+ variant?: "donut" | "pie";
95
+ /** Fade the other slices while one is hovered. Default true. */
96
+ highlightOnHover?: boolean;
97
+ /** Reorder slices by value before drawing. Default "desc". */
98
+ sortBy?: "none" | "asc" | "desc";
99
+ /** Grow-in animation on mount. Default true. */
100
+ animate?: boolean;
101
+ /** Degree the first slice starts at. Default 90 (12 o'clock, clockwise). */
102
+ startAngle?: number;
103
+ };
104
+ /** Payload handed to tooltip renderers and click handlers. */
105
+ export type PieChartInteractionContext = {
106
+ datum: PieChartDatum;
107
+ value: number;
108
+ /** Resolved slice colour (after shading / per-datum override). */
109
+ color: string;
110
+ index: number;
111
+ /** Sum of every plotted value. */
112
+ total: number;
113
+ /** This slice's share of the total, 0–100. */
114
+ percent: number;
115
+ };
116
+ export type PieChartProps = {
117
+ /** All data comes from outside — the component is presentational. */
118
+ data: PieChartDatum[];
119
+ title?: React.ReactNode;
120
+ /** Muted text after the title, e.g. "(Top 8 of 100+)". */
121
+ titleSuffix?: React.ReactNode;
122
+ description?: React.ReactNode;
123
+ /** Icon shown beside the title (e.g. a lucide-react element). */
124
+ icon?: React.ReactNode;
125
+ /** Controls rendered on the right of the header (expand button, menu…). */
126
+ headerActions?: React.ReactNode;
127
+ /**
128
+ * The one colour the whole chart is built from. Each slice gets a lighter or
129
+ * stronger shade of it depending on its value — see `shadeMode`.
130
+ */
131
+ color?: string;
132
+ /** Default "rank". */
133
+ shadeMode?: PieShadeMode;
134
+ center?: PieChartCenterConfig;
135
+ legend?: PieChartLegendConfig;
136
+ tooltip?: PieChartTooltipConfig;
137
+ config?: PieChartConfig;
138
+ style?: PieChartStyle;
139
+ /** Formats values in the centre, legend and tooltip. */
140
+ valueFormatter?: (value: number, datum?: PieChartDatum) => React.ReactNode;
141
+ loading?: boolean;
142
+ /** Node shown when no slice carries a value. Falls back to a built-in state. */
143
+ emptyState?: React.ReactNode;
144
+ onSliceClick?: (ctx: PieChartInteractionContext) => void;
145
+ };
146
+ /** Base colour used when the consumer doesn't pass one. */
147
+ export declare const DEFAULT_PIE_COLOR = "#1e1b4b";
148
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/PieChart/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAErD,MAAM,MAAM,oBAAoB,GAAG;IACjC,oBAAoB;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,qEAAqE;IACrE,QAAQ,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC9B,qDAAqD;IACrD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oDAAoD;IACpD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,kEAAkE;IAClE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,kCAAkC;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,gDAAgD;IAChD,KAA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AAM,CAAC,EAAE,cAAc,CAAC;IACxB,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB,wDAAwD;IACxD,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,aAAa,KAAK,KAAK,CAAC,SAAS,CAAC;IAE3E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gFAAgF;IAChF,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE7B,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,0BAA0B,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,2DAA2D;AAC3D,eAAO,MAAM,iBAAiB,YAAY,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { PieChartDatum, PieShadeMode } from "./types";
2
+ /**
3
+ * Colour helpers are shared with BarChart so a dashboard's bar and pie cards
4
+ * shade the same base colour identically.
5
+ */
6
+ export { parseColor, withIntensity, withAlpha, darken } from "../BarChart/utils";
7
+ /** Only positive, finite values can be drawn as a slice. */
8
+ export declare const isPlottableSlice: (value: number | null | undefined) => value is number;
9
+ /**
10
+ * Spreads one base colour across the slices — the largest keeps the colour at
11
+ * full strength, smaller ones step down into lighter tints of the same hue.
12
+ */
13
+ export declare function resolveSliceColors(data: PieChartDatum[], baseColor?: string, mode?: PieShadeMode, shadeRange?: [number, number]): string[];
14
+ /** Sum of every plottable slice value. */
15
+ export declare function sumSlices(data: PieChartDatum[]): number;
16
+ /** `value` as a share of `total`, 0–100. Guards the empty-chart divide-by-zero. */
17
+ export declare function percentOf(value: number, total: number): number;
18
+ /**
19
+ * Keeps the `limit` largest slices and rolls the rest into a single bucket —
20
+ * the "Top 8 of 100+" pattern. The bucket's label reports how many slices it
21
+ * absorbed, and it can be pinned to a fixed colour so it always reads as the
22
+ * catch-all.
23
+ */
24
+ export declare function groupTopSlices(data: PieChartDatum[], options: {
25
+ limit: number;
26
+ /** `{count}` is replaced with the number of grouped slices. */
27
+ othersLabel?: string;
28
+ othersColor?: string;
29
+ }): PieChartDatum[];
30
+ /**
31
+ * Maps arbitrary API rows onto `PieChartDatum[]` — for when the get-data
32
+ * response is a list of records rather than the chart's own shape.
33
+ */
34
+ export declare function toPieChartData<T extends Record<string, any>>(rows: T[] | undefined | null, options: {
35
+ labelKey: keyof T;
36
+ valueKey: keyof T;
37
+ colorKey?: keyof T;
38
+ }): PieChartDatum[];
39
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/PieChart/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEzE;;;GAGG;AACH,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEjF,4DAA4D;AAC5D,eAAO,MAAM,gBAAgB,UAAW,MAAM,GAAG,IAAI,GAAG,SAAS,oBACC,CAAC;AAEnE;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,aAAa,EAAE,EACrB,SAAS,GAAE,MAA0B,EACrC,IAAI,GAAE,YAAqB,EAC3B,UAAU,GAAE,CAAC,MAAM,EAAE,MAAM,CAAa,GACvC,MAAM,EAAE,CAEV;AAED,0CAA0C;AAC1C,wBAAgB,SAAS,CAAC,IAAI,EAAE,aAAa,EAAE,GAAG,MAAM,CAKvD;AAED,mFAAmF;AACnF,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,aAAa,EAAE,EACrB,OAAO,EAAE;IACP,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GACA,aAAa,EAAE,CAoBjB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1D,IAAI,EAAE,CAAC,EAAE,GAAG,SAAS,GAAG,IAAI,EAC5B,OAAO,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAA;CAAE,GACpE,aAAa,EAAE,CAejB"}
@@ -21,6 +21,16 @@ export interface TableCardProps {
21
21
  placeholder?: string;
22
22
  onChange: (sortField: string, orderBy: "asc" | "desc") => void;
23
23
  };
24
+ /**
25
+ * Call-to-action button in the header's right-hand group, beside the
26
+ * expand button. Rendered only while `ctaEnabled` is true and `ctaText`
27
+ * is non-empty.
28
+ */
29
+ cta?: {
30
+ ctaEnabled?: boolean;
31
+ ctaText?: string;
32
+ ctaOnClick?: () => void;
33
+ };
24
34
  /** Called with the new expanded state after the fullscreen button is clicked. */
25
35
  onExpand?: (isExpanded: boolean) => void;
26
36
  styles?: {
@@ -31,5 +41,5 @@ export interface TableCardProps {
31
41
  };
32
42
  table?: Partial<React.ComponentProps<typeof FTable>>;
33
43
  }
34
- export default function TableCard({ title, icon, showExpandButton, className, styles, table, searchBar, sort, onExpand }: TableCardProps): React.JSX.Element;
44
+ export default function TableCard({ title, icon, showExpandButton, className, styles, table, searchBar, sort, cta, onExpand }: TableCardProps): React.JSX.Element;
35
45
  //# sourceMappingURL=TableCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableCard.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Table/TableCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAQxC,OAAO,MAAM,MAAM,UAAU,CAAC;AAI9B,OAAO,iBAAiB,CAAC;AAEzB,MAAM,WAAW,cAAc;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC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QAC7B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAC9B,CAAC;IACF,KAAK,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC;CACxD;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,gBAAuB,EACvB,SAAS,EACT,MAAM,EACN,KAAK,EACL,SAAS,EACT,IAAI,EACJ,GAAG,EACH,QAAQ,EACX,EAAE,cAAc,qBA+GhB"}
@@ -0,0 +1,34 @@
1
+ import React, { ReactNode } from "react";
2
+ import "./Accordion.css";
3
+ type RootProps = {
4
+ type?: "single" | "multiple";
5
+ defaultValue?: string | string[];
6
+ children: ReactNode;
7
+ className?: string;
8
+ };
9
+ type ItemProps = {
10
+ value: string;
11
+ children: ReactNode;
12
+ className?: string;
13
+ };
14
+ type HeaderProps = {
15
+ children: ReactNode;
16
+ className?: string;
17
+ };
18
+ type TriggerProps = {
19
+ children?: ReactNode;
20
+ className?: string;
21
+ };
22
+ type ContentProps = {
23
+ children: ReactNode;
24
+ className?: string;
25
+ };
26
+ export declare const Accordion: {
27
+ Root: ({ type, defaultValue, children, className }: RootProps) => React.JSX.Element;
28
+ Item: ({ value, children, className }: ItemProps) => React.JSX.Element;
29
+ Header: ({ children, className }: HeaderProps) => React.JSX.Element;
30
+ Trigger: ({ children, className }: TriggerProps) => React.JSX.Element;
31
+ Content: ({ children, className }: ContentProps) => React.JSX.Element;
32
+ };
33
+ export {};
34
+ //# sourceMappingURL=Accordion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/common/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAuC,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,iBAAiB,CAAC;AAmCzB,KAAK,SAAS,GAAG;IACf,IAAI,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACjC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AA+BF,KAAK,SAAS,GAAG;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAaF,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAMF,KAAK,YAAY,GAAG;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAmBF,KAAK,YAAY,GAAG;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAgBF,eAAO,MAAM,SAAS;wDAhGuD,SAAS;2CAmCnC,SAAS;sCAgBd,WAAW;uCASV,YAAY;uCAsBZ,YAAY;CAoB1D,CAAC"}
@@ -26,6 +26,7 @@ type ChartContextProps = {
26
26
  export declare function useChart(): ChartContextProps;
27
27
  export declare const ChartContainer: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
28
28
  config: ChartConfig;
29
+ scrollable?: boolean | undefined;
29
30
  children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
30
31
  }, "ref"> & React.RefAttributes<HTMLDivElement>>;
31
32
  export declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
@@ -1 +1 @@
1
- {"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/ui/chart.tsx"],"names":[],"mappings":"AAAA,OAAO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,WAAW,WAAW,EAAE,KAAK,MAAM,SAAS;yBAE/D,GAAG,QACJ,GAAG,QACH,WAAW,SACV,MAAM,WACJ,GAAG,KACT,MAAM,SAAS;IACpB,qDAAqD;6CACZ,GAAG,QAAQ,WAAW,KAAK,MAAM,SAAS;gDAqHtF,CAAC;AAKF,eAAO,MAAM,WAAW,iCAA2B,CAAC;AAEpD,KAAK,UAAU,GAAG;IAChB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,GAAG,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;IAQ3B,yDAAyD;yBACrC,MAAM,KAAK,IAAI;;gDA4EtC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ExecutiveDashboard/constant/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EACH,qBAAqB,EACrB,oBAAoB,EAIpB,aAAa,EACd,MAAM,UAAU,CAAC;AAqPlB,eAAO,MAAM,iBAAiB,EAAE,aAG/B,CAAC;AAsDF,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,oBAAoB,EAC7B,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,qBAAqB,CAAC,CAGhC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ExecutiveDashboard/constant/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EACH,qBAAqB,EACrB,oBAAoB,EAIpB,aAAa,EACd,MAAM,UAAU,CAAC;AAyPlB,eAAO,MAAM,iBAAiB,EAAE,aAG/B,CAAC;AAsDF,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,oBAAoB,EAC7B,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,qBAAqB,CAAC,CAGhC"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ /**
3
+ * Custom hook that manages polling intervals with automatic pause/resume
4
+ * based on browser tab visibility state. This prevents unnecessary resource
5
+ * consumption when the tab is inactive.
6
+ *
7
+ * @param interval - The polling interval in milliseconds
8
+ * @param callback - The callback function to execute on each poll
9
+ * @param dependencies - React dependency array for the effect
10
+ */
11
+ export declare function useVisibilityPolling(pollingEnabled: boolean | undefined, interval: number, callback: () => void, dependencies: React.DependencyList): void;
12
+ //# sourceMappingURL=useVisibilityPolling.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useVisibilityPolling.d.ts","sourceRoot":"","sources":["../../../../src/ExecutiveDashboard/hooks/useVisibilityPolling.ts"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,cAAc,qBAAiB,EAC/B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,IAAI,EACpB,YAAY,EAAE,KAAK,CAAC,cAAc,GACjC,IAAI,CAmDN"}