@e-llm-studio/federated-dashboard-components 2.2.12 → 2.2.13-rca-alpha-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 (283) hide show
  1. package/README.md +3 -0
  2. package/dist/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
  3. package/dist/ExecutiveDashboard/api/dashboardApi.js +1 -1
  4. package/dist/ExecutiveDashboard/api/insightsApi.js +2 -0
  5. package/dist/ExecutiveDashboard/api/insightsApi.js.map +1 -0
  6. package/dist/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js +1 -1
  7. package/dist/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.js +2 -0
  8. package/dist/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.js.map +1 -0
  9. package/dist/ExecutiveDashboard/components/DashboardDateFilter/datePreset.js +1 -1
  10. package/dist/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.js +2 -0
  11. package/dist/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.js.map +1 -0
  12. package/dist/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.js +1 -1
  13. package/dist/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.js +2 -0
  14. package/dist/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.js.map +1 -0
  15. package/dist/ExecutiveDashboard/components/DashboardHeader/DashboardHeader.js +2 -0
  16. package/dist/ExecutiveDashboard/components/DashboardHeader/DashboardHeader.js.map +1 -0
  17. package/dist/ExecutiveDashboard/components/DataAccess/DataAccessMessage.js +2 -0
  18. package/dist/ExecutiveDashboard/components/DataAccess/DataAccessMessage.js.map +1 -0
  19. package/dist/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.js +2 -0
  20. package/dist/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.js.map +1 -0
  21. package/dist/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
  22. package/dist/ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.js +1 -1
  23. package/dist/ExecutiveDashboard/components/Graph/Graph.js +1 -1
  24. package/dist/ExecutiveDashboard/components/Graph/LineChart.js +1 -1
  25. package/dist/ExecutiveDashboard/components/Graph/axisDomain.js +2 -0
  26. package/dist/ExecutiveDashboard/components/Graph/axisDomain.js.map +1 -0
  27. package/dist/ExecutiveDashboard/components/Graph/inlineLabels.js +2 -0
  28. package/dist/ExecutiveDashboard/components/Graph/inlineLabels.js.map +1 -0
  29. package/dist/ExecutiveDashboard/components/Insights/AgCharts.js +2 -0
  30. package/dist/ExecutiveDashboard/components/Insights/AgCharts.js.map +1 -0
  31. package/dist/ExecutiveDashboard/components/Insights/AgReport.js +2 -0
  32. package/dist/ExecutiveDashboard/components/Insights/AgReport.js.map +1 -0
  33. package/dist/ExecutiveDashboard/components/Insights/CommentsThread.js +2 -0
  34. package/dist/ExecutiveDashboard/components/Insights/CommentsThread.js.map +1 -0
  35. package/dist/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js +2 -0
  36. package/dist/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js.map +1 -0
  37. package/dist/ExecutiveDashboard/components/Insights/DrillLevel.js +2 -0
  38. package/dist/ExecutiveDashboard/components/Insights/DrillLevel.js.map +1 -0
  39. package/dist/ExecutiveDashboard/components/Insights/DrillTable.js +2 -0
  40. package/dist/ExecutiveDashboard/components/Insights/DrillTable.js.map +1 -0
  41. package/dist/ExecutiveDashboard/components/Insights/DriverActivity.js +2 -0
  42. package/dist/ExecutiveDashboard/components/Insights/DriverActivity.js.map +1 -0
  43. package/dist/ExecutiveDashboard/components/Insights/FilterNotice.js +2 -0
  44. package/dist/ExecutiveDashboard/components/Insights/FilterNotice.js.map +1 -0
  45. package/dist/ExecutiveDashboard/components/Insights/InsightTabs.js +2 -0
  46. package/dist/ExecutiveDashboard/components/Insights/InsightTabs.js.map +1 -0
  47. package/dist/ExecutiveDashboard/components/Insights/InsightsContext.js +2 -0
  48. package/dist/ExecutiveDashboard/components/Insights/InsightsContext.js.map +1 -0
  49. package/dist/ExecutiveDashboard/components/Insights/KpiChart.js +2 -0
  50. package/dist/ExecutiveDashboard/components/Insights/KpiChart.js.map +1 -0
  51. package/dist/ExecutiveDashboard/components/Insights/L1Report.js +2 -0
  52. package/dist/ExecutiveDashboard/components/Insights/L1Report.js.map +1 -0
  53. package/dist/ExecutiveDashboard/components/Insights/NeedsAttention.js +2 -0
  54. package/dist/ExecutiveDashboard/components/Insights/NeedsAttention.js.map +1 -0
  55. package/dist/ExecutiveDashboard/components/Insights/ReportDrawer.js +2 -0
  56. package/dist/ExecutiveDashboard/components/Insights/ReportDrawer.js.map +1 -0
  57. package/dist/ExecutiveDashboard/components/Insights/RowDetail.js +2 -0
  58. package/dist/ExecutiveDashboard/components/Insights/RowDetail.js.map +1 -0
  59. package/dist/ExecutiveDashboard/components/Insights/agPrimitives.js +2 -0
  60. package/dist/ExecutiveDashboard/components/Insights/agPrimitives.js.map +1 -0
  61. package/dist/ExecutiveDashboard/components/Insights/drillDay.js +2 -0
  62. package/dist/ExecutiveDashboard/components/Insights/drillDay.js.map +1 -0
  63. package/dist/ExecutiveDashboard/components/Insights/insightsContextCore.js +2 -0
  64. package/dist/ExecutiveDashboard/components/Insights/insightsContextCore.js.map +1 -0
  65. package/dist/ExecutiveDashboard/components/Insights/insightsErrors.js +2 -0
  66. package/dist/ExecutiveDashboard/components/Insights/insightsErrors.js.map +1 -0
  67. package/dist/ExecutiveDashboard/components/Insights/insightsFilters.js +2 -0
  68. package/dist/ExecutiveDashboard/components/Insights/insightsFilters.js.map +1 -0
  69. package/dist/ExecutiveDashboard/components/Insights/insightsFormat.js +2 -0
  70. package/dist/ExecutiveDashboard/components/Insights/insightsFormat.js.map +1 -0
  71. package/dist/ExecutiveDashboard/components/Insights/insightsUtils.js +2 -0
  72. package/dist/ExecutiveDashboard/components/Insights/insightsUtils.js.map +1 -0
  73. package/dist/ExecutiveDashboard/components/IntegrationTracking/ MarkdownDocsModal.js +2 -0
  74. package/dist/ExecutiveDashboard/components/IntegrationTracking/ MarkdownDocsModal.js.map +1 -0
  75. package/dist/ExecutiveDashboard/components/IntegrationTracking/ useModeTrackingStatus.js +2 -0
  76. package/dist/ExecutiveDashboard/components/IntegrationTracking/ useModeTrackingStatus.js.map +1 -0
  77. package/dist/ExecutiveDashboard/components/IntegrationTracking/TrackingBanner.js +2 -0
  78. package/dist/ExecutiveDashboard/components/IntegrationTracking/TrackingBanner.js.map +1 -0
  79. package/dist/ExecutiveDashboard/components/IntegrationTracking/trackingIntegrationApi.js +2 -0
  80. package/dist/ExecutiveDashboard/components/IntegrationTracking/trackingIntegrationApi.js.map +1 -0
  81. package/dist/ExecutiveDashboard/components/RcaDecisionComponent/CitationMarkdown.js +2 -0
  82. package/dist/ExecutiveDashboard/components/RcaDecisionComponent/CitationMarkdown.js.map +1 -0
  83. package/dist/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.js +1 -1
  84. package/dist/ExecutiveDashboard/components/Table/FTable.js +1 -1
  85. package/dist/ExecutiveDashboard/utils/sectionOrder.js +1 -1
  86. package/dist/cjs/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
  87. package/dist/cjs/ExecutiveDashboard/api/dashboardApi.js +1 -1
  88. package/dist/cjs/ExecutiveDashboard/api/insightsApi.js +2 -0
  89. package/dist/cjs/ExecutiveDashboard/api/insightsApi.js.map +1 -0
  90. package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js +1 -1
  91. package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.js +2 -0
  92. package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.js.map +1 -0
  93. package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/datePreset.js +1 -1
  94. package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.js +2 -0
  95. package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.js.map +1 -0
  96. package/dist/cjs/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.js +1 -1
  97. package/dist/cjs/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.js +2 -0
  98. package/dist/cjs/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.js.map +1 -0
  99. package/dist/cjs/ExecutiveDashboard/components/DashboardHeader/DashboardHeader.js +2 -0
  100. package/dist/cjs/ExecutiveDashboard/components/DashboardHeader/DashboardHeader.js.map +1 -0
  101. package/dist/cjs/ExecutiveDashboard/components/DataAccess/DataAccessMessage.js +2 -0
  102. package/dist/cjs/ExecutiveDashboard/components/DataAccess/DataAccessMessage.js.map +1 -0
  103. package/dist/cjs/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.js +2 -0
  104. package/dist/cjs/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.js.map +1 -0
  105. package/dist/cjs/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
  106. package/dist/cjs/ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.js +1 -1
  107. package/dist/cjs/ExecutiveDashboard/components/Graph/Graph.js +1 -1
  108. package/dist/cjs/ExecutiveDashboard/components/Graph/LineChart.js +1 -1
  109. package/dist/cjs/ExecutiveDashboard/components/Graph/axisDomain.js +2 -0
  110. package/dist/cjs/ExecutiveDashboard/components/Graph/axisDomain.js.map +1 -0
  111. package/dist/cjs/ExecutiveDashboard/components/Graph/inlineLabels.js +2 -0
  112. package/dist/cjs/ExecutiveDashboard/components/Graph/inlineLabels.js.map +1 -0
  113. package/dist/cjs/ExecutiveDashboard/components/Insights/AgCharts.js +2 -0
  114. package/dist/cjs/ExecutiveDashboard/components/Insights/AgCharts.js.map +1 -0
  115. package/dist/cjs/ExecutiveDashboard/components/Insights/AgReport.js +2 -0
  116. package/dist/cjs/ExecutiveDashboard/components/Insights/AgReport.js.map +1 -0
  117. package/dist/cjs/ExecutiveDashboard/components/Insights/CommentsThread.js +2 -0
  118. package/dist/cjs/ExecutiveDashboard/components/Insights/CommentsThread.js.map +1 -0
  119. package/dist/cjs/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js +2 -0
  120. package/dist/cjs/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.js.map +1 -0
  121. package/dist/cjs/ExecutiveDashboard/components/Insights/DrillLevel.js +2 -0
  122. package/dist/cjs/ExecutiveDashboard/components/Insights/DrillLevel.js.map +1 -0
  123. package/dist/cjs/ExecutiveDashboard/components/Insights/DrillTable.js +2 -0
  124. package/dist/cjs/ExecutiveDashboard/components/Insights/DrillTable.js.map +1 -0
  125. package/dist/cjs/ExecutiveDashboard/components/Insights/DriverActivity.js +2 -0
  126. package/dist/cjs/ExecutiveDashboard/components/Insights/DriverActivity.js.map +1 -0
  127. package/dist/cjs/ExecutiveDashboard/components/Insights/FilterNotice.js +2 -0
  128. package/dist/cjs/ExecutiveDashboard/components/Insights/FilterNotice.js.map +1 -0
  129. package/dist/cjs/ExecutiveDashboard/components/Insights/InsightTabs.js +2 -0
  130. package/dist/cjs/ExecutiveDashboard/components/Insights/InsightTabs.js.map +1 -0
  131. package/dist/cjs/ExecutiveDashboard/components/Insights/InsightsContext.js +2 -0
  132. package/dist/cjs/ExecutiveDashboard/components/Insights/InsightsContext.js.map +1 -0
  133. package/dist/cjs/ExecutiveDashboard/components/Insights/KpiChart.js +2 -0
  134. package/dist/cjs/ExecutiveDashboard/components/Insights/KpiChart.js.map +1 -0
  135. package/dist/cjs/ExecutiveDashboard/components/Insights/L1Report.js +2 -0
  136. package/dist/cjs/ExecutiveDashboard/components/Insights/L1Report.js.map +1 -0
  137. package/dist/cjs/ExecutiveDashboard/components/Insights/NeedsAttention.js +2 -0
  138. package/dist/cjs/ExecutiveDashboard/components/Insights/NeedsAttention.js.map +1 -0
  139. package/dist/cjs/ExecutiveDashboard/components/Insights/ReportDrawer.js +2 -0
  140. package/dist/cjs/ExecutiveDashboard/components/Insights/ReportDrawer.js.map +1 -0
  141. package/dist/cjs/ExecutiveDashboard/components/Insights/RowDetail.js +2 -0
  142. package/dist/cjs/ExecutiveDashboard/components/Insights/RowDetail.js.map +1 -0
  143. package/dist/cjs/ExecutiveDashboard/components/Insights/agPrimitives.js +2 -0
  144. package/dist/cjs/ExecutiveDashboard/components/Insights/agPrimitives.js.map +1 -0
  145. package/dist/cjs/ExecutiveDashboard/components/Insights/drillDay.js +2 -0
  146. package/dist/cjs/ExecutiveDashboard/components/Insights/drillDay.js.map +1 -0
  147. package/dist/cjs/ExecutiveDashboard/components/Insights/insightsContextCore.js +2 -0
  148. package/dist/cjs/ExecutiveDashboard/components/Insights/insightsContextCore.js.map +1 -0
  149. package/dist/cjs/ExecutiveDashboard/components/Insights/insightsErrors.js +2 -0
  150. package/dist/cjs/ExecutiveDashboard/components/Insights/insightsErrors.js.map +1 -0
  151. package/dist/cjs/ExecutiveDashboard/components/Insights/insightsFilters.js +2 -0
  152. package/dist/cjs/ExecutiveDashboard/components/Insights/insightsFilters.js.map +1 -0
  153. package/dist/cjs/ExecutiveDashboard/components/Insights/insightsFormat.js +2 -0
  154. package/dist/cjs/ExecutiveDashboard/components/Insights/insightsFormat.js.map +1 -0
  155. package/dist/cjs/ExecutiveDashboard/components/Insights/insightsUtils.js +2 -0
  156. package/dist/cjs/ExecutiveDashboard/components/Insights/insightsUtils.js.map +1 -0
  157. package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/ MarkdownDocsModal.js +2 -0
  158. package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/ MarkdownDocsModal.js.map +1 -0
  159. package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/ useModeTrackingStatus.js +2 -0
  160. package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/ useModeTrackingStatus.js.map +1 -0
  161. package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/TrackingBanner.js +2 -0
  162. package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/TrackingBanner.js.map +1 -0
  163. package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/trackingIntegrationApi.js +2 -0
  164. package/dist/cjs/ExecutiveDashboard/components/IntegrationTracking/trackingIntegrationApi.js.map +1 -0
  165. package/dist/cjs/ExecutiveDashboard/components/RcaDecisionComponent/CitationMarkdown.js +2 -0
  166. package/dist/cjs/ExecutiveDashboard/components/RcaDecisionComponent/CitationMarkdown.js.map +1 -0
  167. package/dist/cjs/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.js +1 -1
  168. package/dist/cjs/ExecutiveDashboard/components/Table/FTable.js +1 -1
  169. package/dist/cjs/ExecutiveDashboard/utils/sectionOrder.js +1 -1
  170. package/dist/cjs/index.js +1 -1
  171. package/dist/cjs/styles.css +1 -1
  172. package/dist/index.js +1 -1
  173. package/dist/styles.css +1 -1
  174. package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts +1 -1
  175. package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts.map +1 -1
  176. package/dist/types/ExecutiveDashboard/TestExecutiveDashboard.d.ts.map +1 -1
  177. package/dist/types/ExecutiveDashboard/api/dashboardApi.d.ts +10 -2
  178. package/dist/types/ExecutiveDashboard/api/dashboardApi.d.ts.map +1 -1
  179. package/dist/types/ExecutiveDashboard/api/insightsApi.d.ts +200 -0
  180. package/dist/types/ExecutiveDashboard/api/insightsApi.d.ts.map +1 -0
  181. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.d.ts +5 -1
  182. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.d.ts.map +1 -1
  183. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.d.ts +9 -0
  184. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.d.ts.map +1 -0
  185. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/datePreset.d.ts +47 -2
  186. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/datePreset.d.ts.map +1 -1
  187. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.d.ts +7 -0
  188. package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.d.ts.map +1 -0
  189. package/dist/types/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.d.ts +12 -1
  190. package/dist/types/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.d.ts.map +1 -1
  191. package/dist/types/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.d.ts +10 -0
  192. package/dist/types/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.d.ts.map +1 -0
  193. package/dist/types/ExecutiveDashboard/components/DashboardHeader/DashboardHeader.d.ts +17 -0
  194. package/dist/types/ExecutiveDashboard/components/DashboardHeader/DashboardHeader.d.ts.map +1 -0
  195. package/dist/types/ExecutiveDashboard/components/DataAccess/DataAccessMessage.d.ts +18 -0
  196. package/dist/types/ExecutiveDashboard/components/DataAccess/DataAccessMessage.d.ts.map +1 -0
  197. package/dist/types/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.d.ts +16 -0
  198. package/dist/types/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.d.ts.map +1 -0
  199. package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts +45 -2
  200. package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts.map +1 -1
  201. package/dist/types/ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.d.ts +11 -1
  202. package/dist/types/ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.d.ts.map +1 -1
  203. package/dist/types/ExecutiveDashboard/components/Graph/Graph.d.ts.map +1 -1
  204. package/dist/types/ExecutiveDashboard/components/Graph/LineChart.d.ts +6 -1
  205. package/dist/types/ExecutiveDashboard/components/Graph/LineChart.d.ts.map +1 -1
  206. package/dist/types/ExecutiveDashboard/components/Graph/axisDomain.d.ts +24 -0
  207. package/dist/types/ExecutiveDashboard/components/Graph/axisDomain.d.ts.map +1 -0
  208. package/dist/types/ExecutiveDashboard/components/Graph/inlineLabels.d.ts +49 -0
  209. package/dist/types/ExecutiveDashboard/components/Graph/inlineLabels.d.ts.map +1 -0
  210. package/dist/types/ExecutiveDashboard/components/Graph/types.d.ts +85 -0
  211. package/dist/types/ExecutiveDashboard/components/Graph/types.d.ts.map +1 -1
  212. package/dist/types/ExecutiveDashboard/components/Insights/AgCharts.d.ts +74 -0
  213. package/dist/types/ExecutiveDashboard/components/Insights/AgCharts.d.ts.map +1 -0
  214. package/dist/types/ExecutiveDashboard/components/Insights/AgReport.d.ts +160 -0
  215. package/dist/types/ExecutiveDashboard/components/Insights/AgReport.d.ts.map +1 -0
  216. package/dist/types/ExecutiveDashboard/components/Insights/CommentsThread.d.ts +6 -0
  217. package/dist/types/ExecutiveDashboard/components/Insights/CommentsThread.d.ts.map +1 -0
  218. package/dist/types/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.d.ts +65 -0
  219. package/dist/types/ExecutiveDashboard/components/Insights/DecisionAdvantageCard.d.ts.map +1 -0
  220. package/dist/types/ExecutiveDashboard/components/Insights/DrillLevel.d.ts +35 -0
  221. package/dist/types/ExecutiveDashboard/components/Insights/DrillLevel.d.ts.map +1 -0
  222. package/dist/types/ExecutiveDashboard/components/Insights/DrillTable.d.ts +29 -0
  223. package/dist/types/ExecutiveDashboard/components/Insights/DrillTable.d.ts.map +1 -0
  224. package/dist/types/ExecutiveDashboard/components/Insights/DriverActivity.d.ts +10 -0
  225. package/dist/types/ExecutiveDashboard/components/Insights/DriverActivity.d.ts.map +1 -0
  226. package/dist/types/ExecutiveDashboard/components/Insights/FilterNotice.d.ts +7 -0
  227. package/dist/types/ExecutiveDashboard/components/Insights/FilterNotice.d.ts.map +1 -0
  228. package/dist/types/ExecutiveDashboard/components/Insights/InsightTabs.d.ts +17 -0
  229. package/dist/types/ExecutiveDashboard/components/Insights/InsightTabs.d.ts.map +1 -0
  230. package/dist/types/ExecutiveDashboard/components/Insights/InsightsContext.d.ts +73 -0
  231. package/dist/types/ExecutiveDashboard/components/Insights/InsightsContext.d.ts.map +1 -0
  232. package/dist/types/ExecutiveDashboard/components/Insights/KpiChart.d.ts +128 -0
  233. package/dist/types/ExecutiveDashboard/components/Insights/KpiChart.d.ts.map +1 -0
  234. package/dist/types/ExecutiveDashboard/components/Insights/L1Report.d.ts +41 -0
  235. package/dist/types/ExecutiveDashboard/components/Insights/L1Report.d.ts.map +1 -0
  236. package/dist/types/ExecutiveDashboard/components/Insights/NeedsAttention.d.ts +27 -0
  237. package/dist/types/ExecutiveDashboard/components/Insights/NeedsAttention.d.ts.map +1 -0
  238. package/dist/types/ExecutiveDashboard/components/Insights/ReportDrawer.d.ts +13 -0
  239. package/dist/types/ExecutiveDashboard/components/Insights/ReportDrawer.d.ts.map +1 -0
  240. package/dist/types/ExecutiveDashboard/components/Insights/RowDetail.d.ts +21 -0
  241. package/dist/types/ExecutiveDashboard/components/Insights/RowDetail.d.ts.map +1 -0
  242. package/dist/types/ExecutiveDashboard/components/Insights/agPrimitives.d.ts +176 -0
  243. package/dist/types/ExecutiveDashboard/components/Insights/agPrimitives.d.ts.map +1 -0
  244. package/dist/types/ExecutiveDashboard/components/Insights/drillDay.d.ts +17 -0
  245. package/dist/types/ExecutiveDashboard/components/Insights/drillDay.d.ts.map +1 -0
  246. package/dist/types/ExecutiveDashboard/components/Insights/insightsContextCore.d.ts +128 -0
  247. package/dist/types/ExecutiveDashboard/components/Insights/insightsContextCore.d.ts.map +1 -0
  248. package/dist/types/ExecutiveDashboard/components/Insights/insightsErrors.d.ts +11 -0
  249. package/dist/types/ExecutiveDashboard/components/Insights/insightsErrors.d.ts.map +1 -0
  250. package/dist/types/ExecutiveDashboard/components/Insights/insightsFilters.d.ts +9 -0
  251. package/dist/types/ExecutiveDashboard/components/Insights/insightsFilters.d.ts.map +1 -0
  252. package/dist/types/ExecutiveDashboard/components/Insights/insightsFormat.d.ts +92 -0
  253. package/dist/types/ExecutiveDashboard/components/Insights/insightsFormat.d.ts.map +1 -0
  254. package/dist/types/ExecutiveDashboard/components/Insights/insightsUtils.d.ts +85 -0
  255. package/dist/types/ExecutiveDashboard/components/Insights/insightsUtils.d.ts.map +1 -0
  256. package/dist/types/ExecutiveDashboard/components/IntegrationTracking/ MarkdownDocsModal.d.ts +24 -0
  257. package/dist/types/ExecutiveDashboard/components/IntegrationTracking/ MarkdownDocsModal.d.ts.map +1 -0
  258. package/dist/types/ExecutiveDashboard/components/IntegrationTracking/ useModeTrackingStatus.d.ts +9 -0
  259. package/dist/types/ExecutiveDashboard/components/IntegrationTracking/ useModeTrackingStatus.d.ts.map +1 -0
  260. package/dist/types/ExecutiveDashboard/components/IntegrationTracking/TrackingBanner.d.ts +25 -0
  261. package/dist/types/ExecutiveDashboard/components/IntegrationTracking/TrackingBanner.d.ts.map +1 -0
  262. package/dist/types/ExecutiveDashboard/components/IntegrationTracking/index.d.ts +5 -0
  263. package/dist/types/ExecutiveDashboard/components/IntegrationTracking/index.d.ts.map +1 -0
  264. package/dist/types/ExecutiveDashboard/components/IntegrationTracking/trackingIntegrationApi.d.ts +17 -0
  265. package/dist/types/ExecutiveDashboard/components/IntegrationTracking/trackingIntegrationApi.d.ts.map +1 -0
  266. package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/CitationMarkdown.d.ts +54 -0
  267. package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/CitationMarkdown.d.ts.map +1 -0
  268. package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.d.ts +13 -2
  269. package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/RcaDecisionComponent.d.ts.map +1 -1
  270. package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/index.d.ts +1 -1
  271. package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/index.d.ts.map +1 -1
  272. package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/types.d.ts +46 -2
  273. package/dist/types/ExecutiveDashboard/components/RcaDecisionComponent/types.d.ts.map +1 -1
  274. package/dist/types/ExecutiveDashboard/components/Table/FTable.d.ts +2 -0
  275. package/dist/types/ExecutiveDashboard/components/Table/FTable.d.ts.map +1 -1
  276. package/dist/types/ExecutiveDashboard/types/index.d.ts +122 -2
  277. package/dist/types/ExecutiveDashboard/types/index.d.ts.map +1 -1
  278. package/dist/types/ExecutiveDashboard/types/insights.d.ts +893 -0
  279. package/dist/types/ExecutiveDashboard/types/insights.d.ts.map +1 -0
  280. package/dist/types/ExecutiveDashboard/utils/sectionOrder.d.ts.map +1 -1
  281. package/dist/types/index.d.ts +20 -2
  282. package/dist/types/index.d.ts.map +1 -1
  283. package/package.json +4 -3
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
2
  import { DashboardContainerProps } from "./types";
3
- export declare function ExecutiveDashboardWrapper({ baseUrl, configId, accessToken, authBaseUrl, graphEmptyState, tables, tableLayout, sectionOrder, hiddenSections, fetchUIConfig: fetchUIConfigProp, fetchUIVersionFromRedis: fetchCurrentConfigUIVersionFromRedisProp, fetchDashboardData: fetchDashboardDataProp, fetchTableData: fetchTableDataProp, initialStartDate, initialEndDate, initialPreset, initialFilters, hiddenFilters, onDateChange, onFiltersApplied, onFilterStateChange, renderLoading, renderError, pollingConfigProp, metricCardConfig, kpiCtaConfig, tableCtaConfig, layout }: DashboardContainerProps): React.JSX.Element;
3
+ export declare function ExecutiveDashboardWrapper({ dashboardName, onBack, backLabel, onFullscreenChange, baseUrl, configId, accessToken, authBaseUrl, resolveExcelCitationGcsUrl, graphEmptyState, insightsDrill, insightsLabels, renderInsightsCell, insightsApprovedApiHosts, insightsActionHandlers, insightsCellRenderers, tables, tableLayout, sectionOrder, hiddenSections, fetchUIConfig: fetchUIConfigProp, fetchUIVersionFromRedis: fetchCurrentConfigUIVersionFromRedisProp, fetchDashboardData: fetchDashboardDataProp, fetchTableData: fetchTableDataProp, initialStartDate, initialEndDate, initialPreset, initialFilters, hiddenFilters, onDateChange, onFiltersApplied, onFilterStateChange, renderLoading, renderError, pollingConfigProp, metricCardConfig, kpiCtaConfig, tableCtaConfig, layout, workingDaysOnly, kpiCardsCollapse, eventsBaseUrl, intervalDays, integrationDocs, }: DashboardContainerProps): React.JSX.Element;
4
4
  export default ExecutiveDashboardWrapper;
5
5
  //# sourceMappingURL=ExecutiveDashboardWrapper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExecutiveDashboardWrapper.d.ts","sourceRoot":"","sources":["../../../src/ExecutiveDashboard/ExecutiveDashboardWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,OAAO,EACL,uBAAuB,EAOxB,MAAM,SAAS,CAAC;AAkBjB,wBAAgB,yBAAyB,CAAC,EACxC,OAA0B,EAC1B,QAAQ,EACR,WAAW,EACX,WAAW,EACX,eAAe,EACf,MAAM,EACN,WAAW,EACX,YAAY,EACZ,cAAc,EACd,aAAa,EAAE,iBAAiB,EAChC,uBAAuB,EAAE,wCAAwC,EACjE,kBAAkB,EAAE,sBAAsB,EAC1C,cAAc,EAAE,kBAAkB,EAClC,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,cAAc,EACd,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,MAAM,EACP,EAAE,uBAAuB,qBAyoBzB;AAED,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"ExecutiveDashboardWrapper.d.ts","sourceRoot":"","sources":["../../../src/ExecutiveDashboard/ExecutiveDashboardWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,OAAO,EACL,uBAAuB,EAQxB,MAAM,SAAS,CAAC;AAoBjB,wBAAgB,yBAAyB,CAAC,EACxC,aAAa,EACb,MAAM,EACN,SAAS,EACT,kBAAkB,EAClB,OAA0B,EAC1B,QAAQ,EACR,WAAW,EACX,WAAW,EACX,0BAA0B,EAC1B,eAAe,EACf,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,MAAM,EACN,WAAW,EACX,YAAY,EACZ,cAAc,EACd,aAAa,EAAE,iBAAiB,EAChC,uBAAuB,EAAE,wCAAwC,EACjE,kBAAkB,EAAE,sBAAsB,EAC1C,cAAc,EAAE,kBAAkB,EAClC,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,cAAc,EACd,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,MAAM,EACN,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,eAAe,GAChB,EAAE,uBAAuB,qBAmrBzB;AAED,eAAe,yBAAyB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TestExecutiveDashboard.d.ts","sourceRoot":"","sources":["../../../src/ExecutiveDashboard/TestExecutiveDashboard.tsx"],"names":[],"mappings":"AAgbA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAiVnD,wBAAgB,sBAAsB,sBAuDrC"}
1
+ {"version":3,"file":"TestExecutiveDashboard.d.ts","sourceRoot":"","sources":["../../../src/ExecutiveDashboard/TestExecutiveDashboard.tsx"],"names":[],"mappings":"AAgbA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAwWnD,wBAAgB,sBAAsB,sBA+DrC"}
@@ -1,7 +1,9 @@
1
- import { UIConfigVersionResponse, DashboardDataResponse, DashboardQueryParams, DashboardUIConfig, TableDataResponse } from "../types";
1
+ import { UIConfigVersionResponse, DashboardDataResponse, DashboardQueryParams, DashboardUIConfig, DataAccessScope, TableDataResponse } from "../types";
2
2
  export declare class DashboardApiError extends Error {
3
3
  status?: number;
4
- constructor(message: string, status?: number);
4
+ /** The backend's `errorType`, e.g. `NoDataAccess`, `DataAccessUnavailable`, `InvalidToken`. */
5
+ errorType?: string;
6
+ constructor(message: string, status?: number, errorType?: string);
5
7
  }
6
8
  export interface DashboardApiConfig {
7
9
  configId: string;
@@ -14,6 +16,12 @@ export interface DashboardApiConfig {
14
16
  * on each filter definition (matched by schemaFilterName).
15
17
  */
16
18
  export declare function fetchUIConfig(config: DashboardApiConfig, signal?: AbortSignal): Promise<DashboardUIConfig>;
19
+ /**
20
+ * GET /federated/access/me — what the caller may see on a dashboard that
21
+ * restricts data by user: `{ enabled, unrestricted, grants[] }`. Used for the
22
+ * "Viewing: …" scope chip.
23
+ */
24
+ export declare function fetchDataAccessScope({ configId, baseUrl, accessToken }: DashboardApiConfig, signal?: AbortSignal): Promise<DataAccessScope>;
17
25
  export declare function fetchCurrentConfigUIVersionFromRedis({ configId, baseUrl, accessToken }: DashboardApiConfig, signal?: AbortSignal): Promise<UIConfigVersionResponse>;
18
26
  /**
19
27
  * POST /federated/filters/data
@@ -1 +1 @@
1
- {"version":3,"file":"dashboardApi.d.ts","sourceRoot":"","sources":["../../../../src/ExecutiveDashboard/api/dashboardApi.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAIlB,qBAAa,iBAAkB,SAAQ,KAAK;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;gBACJ,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM;CAK7C;AAgFD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA4BD;;;;GAIG;AACH,wBAAsB,aAAa,CACjC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,iBAAiB,CAAC,CAe5B;AAED,wBAAsB,oCAAoC,CACxD,EAAC,QAAY,EAAE,OAAW,EAAE,WAAW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AAkB,EAC1B,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,iBAAiB,CAAC,CAe5B;AAED;;;;GAIG;AACH,wBAAsB,oBAAoB,CACxC,EAAE,QAAQ,EAAE,OAAY,EAAE,WAAW,EAAE,EAAE,kBAAkB,EAC3D,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,eAAe,CAAC,CAM1B;AAED,wBAAsB,oCAAoC,CACxD,EAAC,QAAY,EAAE,OAAW,EAAE,WAAW,EAAC,EAAE,kBAAkB,EAC5D,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,uBAAuB,CAAC,CAOlC;AA8BD;;;GAGG;AACH,wBAAsB,kBAAkB,CACtC,EAAE,QAAQ,EAAE,OAAY,EAAE,WAAW,EAAE,EAAE,kBAAkB,EAC3D,MAAM,EAAE,oBAAoB,EAC5B,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,qBAAqB,CAAC,CAgBhC;AAED;;;GAGG;AACH,wBAAsB,cAAc,CAClC,EAAE,QAAQ,EAAE,OAAY,EAAE,WAAW,EAAE,EAAE,kBAAkB,EAC3D,MAAM,EAAE,oBAAoB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,EACD,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,iBAAiB,CAAC,CAiB5B"}
@@ -0,0 +1,200 @@
1
+ import { DashboardApiError, type DashboardApiConfig } from "./dashboardApi";
2
+ import type { InsightsActionInput, InsightsCommentList, InsightsCorrelationResponse, InsightsCorrelationTrendResponse, InsightsDriversResponse, InsightsGraphGroup, InsightsGenerateResult, InsightsHierarchyResponse, InsightsJobStatus, InsightsNeedsAttentionResponse, InsightsObservationResponse, InsightsObservationsResponse, InsightsReport, InsightsReportDetail, InsightsReportsResponse, InsightsRowDetail, InsightsRowsQuery, InsightsRowsResponse, InsightsSeriesResponse, InsightsSummaryResponse } from "../types/insights";
3
+ /**
4
+ * Client for the Decision Advantage routes under /federated/insights. Same
5
+ * envelope and Bearer token as the dashboard API.
6
+ */
7
+ /** A failed insights call, with the backend's `errorType` (e.g. `InsightsDisabled`, `RateLimited`). */
8
+ export declare class InsightsApiError extends DashboardApiError {
9
+ errorType?: string;
10
+ data?: unknown;
11
+ constructor(message: string, status?: number, errorType?: string, data?: unknown);
12
+ }
13
+ export interface InsightsRange {
14
+ startDate: Date;
15
+ endDate: Date;
16
+ /** The dashboard's Working days switch. */
17
+ workingDaysOnly?: boolean;
18
+ /** Backend graph-group key. When present it replaces workingDaysOnly for /series. */
19
+ group?: string;
20
+ /** Applied sidebar filters that the insights backend can resolve. */
21
+ filters?: Record<string, string[]>;
22
+ }
23
+ /** YYYY-MM-DD in the viewer's own calendar, which is what the date picker shows. */
24
+ export declare const toIsoDay: (date: Date) => string;
25
+ /** Serialize filters once; URLSearchParams performs the URL encoding. */
26
+ export declare const filtersParam: (filters?: Record<string, string[]>) => string | undefined;
27
+ /**
28
+ * How a read is retried when the service is briefly unreachable: a 502, 503 or 504 (a gateway answering while the API
29
+ * restarts, rolls out or is out of rotation for a moment) or a dropped connection, after each of these waits. Writes are
30
+ * never retried. Exported so tests can shorten the waits.
31
+ */
32
+ export declare const READ_RETRY: {
33
+ statuses: number[];
34
+ delaysMs: number[];
35
+ };
36
+ /** One page of a Table Builder table shown inside a drill-down. */
37
+ export interface DrillTableRowsResponse {
38
+ rows: Record<string, unknown>[];
39
+ count: number;
40
+ hasNext: boolean;
41
+ nextCursor: string | null;
42
+ }
43
+ /**
44
+ * POST /filters/table-data for a Table Builder table inside a drill-down: the
45
+ * rows of `tableKey` between two days (sent as YYYY-MM-DD, so the backend
46
+ * takes each as a whole calendar day whatever the viewer's time zone),
47
+ * filtered on any of the table's columns.
48
+ */
49
+ export declare const fetchDrillTableRows: (config: DashboardApiConfig, params: {
50
+ tableKey: string;
51
+ startDay: string;
52
+ endDay: string;
53
+ filters: Record<string, string[]>;
54
+ pageSize?: number;
55
+ cursor?: string | null;
56
+ }, signal?: AbortSignal) => Promise<DrillTableRowsResponse>;
57
+ /** GET /summary — the overall Decision Advantage card. */
58
+ export declare const fetchInsightsSummary: (config: DashboardApiConfig, range: InsightsRange, signal?: AbortSignal) => Promise<InsightsSummaryResponse>;
59
+ /** GET /levels/{entityKey}/summary — the card at the top of a tab. */
60
+ export declare const fetchLevelSummary: (config: DashboardApiConfig, entityKey: string, range: InsightsRange, signal?: AbortSignal) => Promise<InsightsSummaryResponse>;
61
+ /** GET /levels/{entityKey}/rows — one page of a tab's ranked list. */
62
+ export declare const fetchLevelRows: (config: DashboardApiConfig, entityKey: string, range: InsightsRange, options?: InsightsRowsQuery, signal?: AbortSignal) => Promise<InsightsRowsResponse>;
63
+ /**
64
+ * GET /series — daily values, moving averages and change markers. Pass
65
+ * `nodeKeys` for chosen rows, or `entityKey` + `topN` for a level's top rows;
66
+ * neither charts the L1 total. At most 10 series (rows × numbers) per call.
67
+ */
68
+ export declare const fetchInsightsSeries: (config: DashboardApiConfig, range: InsightsRange, options: {
69
+ kpiIds: string[];
70
+ nodeKeys?: string[];
71
+ entityKey?: string;
72
+ topN?: number;
73
+ }, signal?: AbortSignal) => Promise<InsightsSeriesResponse>;
74
+ /** GET /reports/{reportId} — one stored report, with the full markdown. */
75
+ export declare const fetchInsightsReport: (config: DashboardApiConfig, reportId: string, signal?: AbortSignal) => Promise<InsightsReportDetail>;
76
+ /**
77
+ * POST /reports/generate — asks for a report on one flagged change. Returns
78
+ * the report when one already exists; otherwise the job writing it. A job
79
+ * already writing the same report (409 InsightsBusy) is returned as that job.
80
+ */
81
+ export declare function generateInsightsReport(config: DashboardApiConfig, target: {
82
+ nodeKey: string;
83
+ kpiId: string;
84
+ dataDay: string;
85
+ force?: boolean;
86
+ }, signal?: AbortSignal): Promise<InsightsGenerateResult>;
87
+ /** GET /jobs/{jobId} — poll every 5 s until succeeded or failed. */
88
+ export declare const fetchInsightsJob: (config: DashboardApiConfig, jobId: string, signal?: AbortSignal) => Promise<InsightsJobStatus>;
89
+ export declare const fetchReportComments: (config: DashboardApiConfig, reportId: string, signal?: AbortSignal) => Promise<InsightsCommentList>;
90
+ export declare const postReportComment: (config: DashboardApiConfig, reportId: string, commentText: string, parentCommentId?: string | null) => Promise<{
91
+ id: string;
92
+ }>;
93
+ export declare const deleteReportComment: (config: DashboardApiConfig, commentId: string) => Promise<{
94
+ id: string;
95
+ deleted: boolean;
96
+ }>;
97
+ export declare const updateReportComment: (config: DashboardApiConfig, commentId: string, commentText: string) => Promise<{
98
+ id: string;
99
+ edited: boolean;
100
+ }>;
101
+ /** PUT /actions/{nodeKey} — dashboard admins only. `status: null` removes the action. */
102
+ export declare const saveInsightsAction: (config: DashboardApiConfig, nodeKey: string, action: InsightsActionInput) => Promise<{
103
+ actionId: string | null;
104
+ status: string | null;
105
+ updatedAt: string | null;
106
+ }>;
107
+ export declare const fetchInsightsDrivers: (config: DashboardApiConfig, params: {
108
+ dataDay?: string;
109
+ kpiId: string;
110
+ entityKey?: string;
111
+ parentNodeKey?: string;
112
+ level?: number;
113
+ tab?: string;
114
+ limit?: number;
115
+ offset?: number;
116
+ filters?: Record<string, string[]>;
117
+ /** The strongest row of each of these parts, in this order (`ui.decisionAdvantage.topDrivers.parts`); unset: the rows of one level. */
118
+ parts?: string[];
119
+ }, signal?: AbortSignal) => Promise<InsightsDriversResponse>;
120
+ export declare const fetchInsightsCorrelation: (config: DashboardApiConfig, nodeKey: string, params: {
121
+ kpiId: string;
122
+ dataDay: string;
123
+ startDate?: string;
124
+ endDate?: string;
125
+ disregardBefore?: string;
126
+ disregardDates?: string[];
127
+ filters?: Record<string, string[]>;
128
+ }, signal?: AbortSignal) => Promise<InsightsCorrelationResponse>;
129
+ export declare const fetchInsightsCorrelationTrend: (config: DashboardApiConfig, nodeKey: string, params: {
130
+ kpiId: string;
131
+ startDate: string;
132
+ endDate: string;
133
+ disregardBefore?: string;
134
+ disregardDates?: string[];
135
+ filters?: Record<string, string[]>;
136
+ }, signal?: AbortSignal) => Promise<InsightsCorrelationTrendResponse>;
137
+ export declare const saveCorrelationWindow: (config: DashboardApiConfig, nodeKey: string, body: {
138
+ kpiId: string;
139
+ startDate: string | null;
140
+ excludedDates: string[];
141
+ dataDay: string;
142
+ changeReason: string;
143
+ regenerate?: boolean;
144
+ }) => Promise<{
145
+ jobId: string;
146
+ }>;
147
+ export declare const fetchGraphGroups: (config: DashboardApiConfig, signal?: AbortSignal) => Promise<{
148
+ groups: InsightsGraphGroup[];
149
+ }>;
150
+ export declare const fetchNeedsAttention: (config: DashboardApiConfig, params?: {
151
+ dataDay?: string;
152
+ kpiId?: string;
153
+ nodeKey?: string;
154
+ filters?: Record<string, string[]>;
155
+ }, signal?: AbortSignal) => Promise<InsightsNeedsAttentionResponse>;
156
+ export declare const decideObservation: (config: DashboardApiConfig, observationId: string, decision: "accept" | "reject" | "undo", reason?: string) => Promise<InsightsObservationResponse>;
157
+ /** GET /observations — data points under review, with filters; used for the ones already decided. */
158
+ export declare const fetchObservations: (config: DashboardApiConfig, params?: {
159
+ dataDay?: string;
160
+ kpiId?: string;
161
+ nodeKey?: string;
162
+ state?: "pending" | "flagged" | "accepted" | "rejected";
163
+ limit?: number;
164
+ filters?: Record<string, string[]>;
165
+ }, signal?: AbortSignal) => Promise<InsightsObservationsResponse>;
166
+ export declare const fetchObservation: (config: DashboardApiConfig, observationId: string, signal?: AbortSignal) => Promise<InsightsObservationResponse>;
167
+ export declare const fetchHierarchy: (config: DashboardApiConfig, signal?: AbortSignal) => Promise<InsightsHierarchyResponse>;
168
+ export declare const fetchRowDetail: (config: DashboardApiConfig, nodeKey: string, params: {
169
+ dataDay: string;
170
+ kpiId: string;
171
+ }, signal?: AbortSignal) => Promise<InsightsRowDetail>;
172
+ export declare const fetchRowReport: (config: DashboardApiConfig, nodeKey: string, params: {
173
+ dataDay: string;
174
+ kpiId: string;
175
+ }, signal?: AbortSignal) => Promise<InsightsReportDetail>;
176
+ export declare const fetchInsightsReports: (config: DashboardApiConfig, params: {
177
+ nodeKey: string;
178
+ kpiId?: string;
179
+ startDate: string;
180
+ endDate: string;
181
+ filters?: Record<string, string[]>;
182
+ }, signal?: AbortSignal) => Promise<InsightsReportsResponse>;
183
+ type GenerateSummaryBody = {
184
+ dataDay: string;
185
+ window: "day" | "week" | "both";
186
+ generationScope?: "decision_advantage";
187
+ };
188
+ export declare const generateInsightsSummary: (config: DashboardApiConfig, body: GenerateSummaryBody) => Promise<{
189
+ report?: InsightsReport | undefined;
190
+ jobId?: string | undefined;
191
+ }>;
192
+ export declare const generateLevelSummary: (config: DashboardApiConfig, entityKey: string, body: {
193
+ dataDay: string;
194
+ window: "day" | "week" | "both";
195
+ }) => Promise<{
196
+ report?: InsightsReport | undefined;
197
+ jobId?: string | undefined;
198
+ }>;
199
+ export {};
200
+ //# sourceMappingURL=insightsApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insightsApi.d.ts","sourceRoot":"","sources":["../../../../src/ExecutiveDashboard/api/insightsApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACnB,2BAA2B,EAC3B,gCAAgC,EAChC,uBAAuB,EACvB,kBAAkB,EAClB,sBAAsB,EACtB,yBAAyB,EACzB,iBAAiB,EACjB,8BAA8B,EAC9B,2BAA2B,EAC3B,4BAA4B,EAC5B,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,mBAAmB,CAAC;AAE3B;;;GAGG;AAEH,uGAAuG;AACvG,qBAAa,gBAAiB,SAAQ,iBAAiB;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CA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,MAAM,GAAG,MAAM,CAAA;CAAE;;;EAC1D,CAAC"}
@@ -10,6 +10,10 @@ export interface DatePreset {
10
10
  };
11
11
  }
12
12
  export interface DashboardDateFilterProps {
13
+ /** Collapse date presets into an inline range strip for the dashboard header. */
14
+ compact?: boolean;
15
+ /** With `compact`: "inline" (default) slides the presets out beside the Range button; "dropdown" opens them in a menu below it. */
16
+ rangeMenu?: "inline" | "dropdown";
13
17
  presets?: DatePreset[];
14
18
  filterCount?: number;
15
19
  liveDuration?: number;
@@ -46,6 +50,6 @@ export interface DashboardDateFilterProps {
46
50
  handlePresetChange?: (value: string) => void;
47
51
  handleSelectedDatePresetHasPollingEnabledChange?: (preset: string) => void;
48
52
  }
49
- declare const DashboardDateFilter: ({ presets, filterCount, liveDuration, onDateChange, onRefresh, isRefreshLoading, onFilterClick, onSubscriptionsClick, onAlertsClick, showFilterButton, showSubscriptionButton, showAlertsBtn, showLiveButton, showFilterCount, datePickerProps, initialStartDate, initialEndDate, defaultPresets, pollingEnabled, selectedPreset, handlePresetChange }: DashboardDateFilterProps) => React.JSX.Element;
53
+ declare const DashboardDateFilter: ({ compact, rangeMenu, presets, filterCount, liveDuration, onDateChange, onRefresh, isRefreshLoading, onFilterClick, onSubscriptionsClick, onAlertsClick, showFilterButton, showSubscriptionButton, showAlertsBtn, showLiveButton, showFilterCount, datePickerProps, initialStartDate, initialEndDate, defaultPresets, pollingEnabled, selectedPreset, handlePresetChange }: DashboardDateFilterProps) => React.JSX.Element;
50
54
  export default DashboardDateFilter;
51
55
  //# sourceMappingURL=DashboardDateFilter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardDateFilter.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,2BAA2B,CAAC;AASnC,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,MAAM,CAAC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c,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,+CAA+C,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CAC7E;AAED,QAAA,MAAM,mBAAmB,2VAsBtB,wBAAwB,sBAoO1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"DashboardDateFilter.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAIlE,OAAO,2BAA2B,CAAC;AAMnC,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM;QACb,SAAS,EAAE,IAAI,CAAC;QAChB,OAAO,EAAE,IAAI,CAAC;KACjB,CAAC;CACL;AAED,MAAM,WAAW,wBAAwB;IACrC,iFAAiF;IACjF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mIAAmI;IACnI,SAAS,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAClC,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,IAAI,CAAC;IACxB,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,cAAc,CAAC,EAAC,MAAM,CAAC;IAEvB,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE;QACrB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,IAAI,CAAC;QAChB,OAAO,EAAE,IAAI,CAAC;KACjB,KAAK,IAAI,CAAC;IAEX,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAE3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE;QACd,IAAI,CAAC,EAAE;YACH,OAAO,CAAC,EAAE,IAAI,CAAC;YACf,OAAO,CAAC,EAAE,IAAI,CAAC;SAClB,CAAC;QACF,EAAE,CAAC,EAAE;YACD,OAAO,CAAC,EAAE,IAAI,CAAC;YACf,OAAO,CAAC,EAAE,IAAI,CAAC;SAClB,CAAC;KACL,CAAC;IACF,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,+CAA+C,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CAC7E;AAED,QAAA,MAAM,mBAAmB,+WAwBtB,wBAAwB,sBA4R1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ type Props = {
3
+ active: boolean;
4
+ startDate: Date | null;
5
+ onSelect: (startDate: Date, endDate: Date) => void;
6
+ };
7
+ export default function QuarterPicker({ active, startDate, onSelect }: Props): React.JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=QuarterPicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuarterPicker.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/DashboardDateFilter/QuarterPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,CAAC,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,KAAK,IAAI,CAAC;CACpD,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,KAAK,qBAwF3E"}
@@ -1,4 +1,4 @@
1
- import { DatePreset } from './DashboardDateFilter';
1
+ import type { DatePreset } from './DashboardDateFilter';
2
2
  export declare const DATE_PRESETS: {
3
3
  today: {
4
4
  label: string;
@@ -126,6 +126,51 @@ export declare const DATE_PRESETS: {
126
126
  endDate: Date;
127
127
  };
128
128
  };
129
+ last6Months: {
130
+ label: string;
131
+ value: string;
132
+ pollingEnabled: true;
133
+ getRange: (now?: Date) => {
134
+ startDate: Date;
135
+ endDate: Date;
136
+ };
137
+ };
138
+ thisYear: {
139
+ label: string;
140
+ value: string;
141
+ pollingEnabled: true;
142
+ getRange: (now?: Date) => {
143
+ startDate: Date;
144
+ endDate: Date;
145
+ };
146
+ };
147
+ lastYear: {
148
+ label: string;
149
+ value: string;
150
+ pollingEnabled: false;
151
+ getRange: (now?: Date) => {
152
+ startDate: Date;
153
+ endDate: Date;
154
+ };
155
+ };
156
+ last5Years: {
157
+ label: string;
158
+ value: string;
159
+ pollingEnabled: true;
160
+ getRange: (now?: Date) => {
161
+ startDate: Date;
162
+ endDate: Date;
163
+ };
164
+ };
165
+ quarter: {
166
+ label: string;
167
+ value: string;
168
+ pollingEnabled: false;
169
+ getRange: (now?: Date) => {
170
+ startDate: Date;
171
+ endDate: Date;
172
+ };
173
+ };
129
174
  custom: {
130
175
  label: string;
131
176
  value: string;
@@ -133,5 +178,5 @@ export declare const DATE_PRESETS: {
133
178
  };
134
179
  export type DatePresetKey = keyof typeof DATE_PRESETS;
135
180
  export declare const DEFAULT_DATE_PRESETS: DatePreset[];
136
- export declare const DATE_PRESET_MAP: any;
181
+ export declare const DATE_PRESET_MAP: Record<string, DatePreset>;
137
182
  //# sourceMappingURL=datePreset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"datePreset.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/DashboardDateFilter/datePreset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAqJnD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmPa,CAAC;AAEvC,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,YAAY,CAAC;AA0BtD,eAAO,MAAM,oBAAoB,EAAE,UAAU,EAc5C,CAAC;AAGF,eAAO,MAAM,eAAe,KAM3B,CAAC"}
1
+ {"version":3,"file":"datePreset.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/DashboardDateFilter/datePreset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAsJxD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAySa,CAAC;AAEvC,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,YAAY,CAAC;AA0BtD,eAAO,MAAM,oBAAoB,EAAE,UAAU,EAc5C,CAAC;AAIF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAuB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare function subtractCalendarMonths(date: Date, months: number): Date;
2
+ export declare function getQuarterRange(year: number, quarter: number): {
3
+ startDate: Date;
4
+ endDate: Date;
5
+ };
6
+ export declare function getCompletedQuarters(year: number, now?: Date): number[];
7
+ //# sourceMappingURL=dateRanges.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dateRanges.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/DashboardDateFilter/dateRanges.ts"],"names":[],"mappings":"AAAA,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAOvE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;;;EAK5D;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAa,GAAG,MAAM,EAAE,CAI7E"}
@@ -1,8 +1,12 @@
1
1
  import type React from "react";
2
2
  import type { BarChartBuilderConfig, DashboardUIData, GraphTierConfig, KpiCardConfig, PieChartBuilderConfig, TableBuilderConfig } from "../../types";
3
3
  import type { DashboardWidget, DashboardWidgetRenderContext } from "./layout";
4
+ import type { InsightTabConfig } from "../../types/insights";
4
5
  /** Id of the graph card, which holds every tier. */
5
6
  export declare const GRAPH_WIDGET_KEY = "chart:graphBuilder";
7
+ /** Ids of the Decision Advantage card and the insights tabs. */
8
+ export declare const DECISION_WIDGET_KEY = "insights:decisionAdvantage";
9
+ export declare const INSIGHT_TABS_WIDGET_KEY = "insights:tabs";
6
10
  /**
7
11
  * How each built-in component draws inside a grid cell. The dashboard supplies
8
12
  * these so the grid reuses the same cards as the regular layout.
@@ -15,6 +19,12 @@ export interface DashboardWidgetRenderers {
15
19
  /** One card per configured bar chart, unlike the graph's single card. */
16
20
  barChart: (chart: BarChartBuilderConfig, ctx: DashboardWidgetRenderContext) => React.ReactNode;
17
21
  pieChart: (chart: PieChartBuilderConfig, ctx: DashboardWidgetRenderContext) => React.ReactNode;
22
+ /** The Decision Advantage card. Without it the card isn't placed. */
23
+ decision?: (card: {
24
+ title?: string;
25
+ }, ctx: DashboardWidgetRenderContext) => React.ReactNode;
26
+ /** All insights tabs, in one block. Without it the tabs aren't placed. */
27
+ insightTabs?: (tabs: InsightTabConfig[], ctx: DashboardWidgetRenderContext) => React.ReactNode;
18
28
  }
19
29
  export interface BuildDashboardWidgetsInput {
20
30
  /** `uiConfig.data` from the UI API. */
@@ -25,7 +35,8 @@ export interface BuildDashboardWidgetsInput {
25
35
  }
26
36
  /**
27
37
  * One widget per dashboard component, in default order: KPI cards, graph
28
- * (one card for all tiers), bar charts, pie charts, tables, host widgets.
38
+ * (one card for all tiers), the Decision Advantage card, bar charts, pie
39
+ * charts, tables, the insights tabs, host widgets.
29
40
  * Component types switched off in `uiData.components` are skipped.
30
41
  */
31
42
  export declare function buildDashboardWidgets({ uiData, renderers, extraWidgets, }: BuildDashboardWidgetsInput): DashboardWidget[];
@@ -1 +1 @@
1
- {"version":3,"file":"buildDashboardWidgets.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EACV,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,eAAe,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAE9E,oDAAoD;AACpD,eAAO,MAAM,gBAAgB,uBAAuB,CAAC;AAErD;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,GAAG,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,4BAA4B,KAAK,KAAK,CAAC,SAAS,CAAC;IACjF,gEAAgE;IAChE,KAAK,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,EAAE,GAAG,EAAE,4BAA4B,KAAK,KAAK,CAAC,SAAS,CAAC;IACxF,KAAK,EAAE,CAAC,KAAK,EAAE,kBAAkB,EAAE,GAAG,EAAE,4BAA4B,KAAK,KAAK,CAAC,SAAS,CAAC;IACzF,yEAAyE;IACzE,QAAQ,EAAE,CAAC,KAAK,EAAE,qBAAqB,EAAE,GAAG,EAAE,4BAA4B,KAAK,KAAK,CAAC,SAAS,CAAC;IAC/F,QAAQ,EAAE,CAAC,KAAK,EAAE,qBAAqB,EAAE,GAAG,EAAE,4BAA4B,KAAK,KAAK,CAAC,SAAS,CAAC;CAChG;AAED,MAAM,WAAW,0BAA0B;IACzC,uCAAuC;IACvC,MAAM,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAChC,SAAS,EAAE,wBAAwB,CAAC;IACpC,+EAA+E;IAC/E,YAAY,CAAC,EAAE,eAAe,EAAE,CAAC;CAClC;AAuBD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,SAAS,EACT,YAAY,GACb,EAAE,0BAA0B,GAAG,eAAe,EAAE,CA2FhD"}
1
+ {"version":3,"file":"buildDashboardWidgets.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/DashboardGrid/buildDashboardWidgets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EACV,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,eAAe,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAG7D,oDAAoD;AACpD,eAAO,MAAM,gBAA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N,SAAS,EACT,YAAY,GACb,EAAE,0BAA0B,GAAG,eAAe,EAAE,CA2HhD"}
@@ -0,0 +1,10 @@
1
+ import type { DashboardLayoutConfig } from "./layout";
2
+ export declare const KPI_GAP = 10;
3
+ export declare const KPI_MIN_WIDTH = 266;
4
+ /** The fallback layout fits at most four readable cards across. */
5
+ export declare function fallbackKpiColumns(width: number): number;
6
+ export declare function kpiInitialCount(setting: unknown, insightsOn: boolean, layout: DashboardLayoutConfig | undefined, cards: {
7
+ title: string;
8
+ key?: string;
9
+ }[], fallbackColumns: number): number | null;
10
+ //# sourceMappingURL=kpiCollapse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kpiCollapse.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/DashboardGrid/kpiCollapse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAmB,MAAM,UAAU,CAAC;AAEvE,eAAO,MAAM,OAAO,KAAK,CAAC;AAC1B,eAAO,MAAM,aAAa,MAAM,CAAC;AAEjC,mEAAmE;AACnE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,wBAAgB,eAAe,CAC7B,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,OAAO,EACnB,MAAM,EAAE,qBAAqB,GAAG,SAAS,EACzC,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,EACxC,eAAe,EAAE,MAAM,GACtB,MAAM,GAAG,IAAI,CAwBf"}
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import "./dashboardHeader.css";
3
+ interface DashboardHeaderProps {
4
+ dashboardName: string;
5
+ /** A back arrow before the name, for a host that uses this header as its page header. None when unset. */
6
+ onBack?: () => void;
7
+ backLabel?: string;
8
+ /** "All plants and regions" or the applied filters: shown as "Viewing: …" beside the name. None: no chip. */
9
+ scopeLabel?: string | null;
10
+ /** Clicking the chip (opens the filters). */
11
+ onScopeClick?: () => void;
12
+ onFullscreenChange?: (fullscreen: boolean) => void;
13
+ children?: React.ReactNode;
14
+ }
15
+ export default function DashboardHeader({ dashboardName, onBack, backLabel, scopeLabel, onScopeClick, onFullscreenChange, children }: DashboardHeaderProps): React.JSX.Element;
16
+ export {};
17
+ //# sourceMappingURL=DashboardHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardHeader.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/DashboardHeader/DashboardHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,OAAO,uBAAuB,CAAC;AAE/B,UAAU,oBAAoB;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,0GAA0G;IAC1G,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6GAA6G;IAC7G,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,6CAA6C;IAC7C,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IACnD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,SAAkB,EAAE,UAAU,EAAE,YAAY,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE,oBAAoB,qBAgElK"}
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import "./dataAccess.css";
3
+ export type DataAccessProblem = "noAccess" | "signedOut" | "unavailable";
4
+ /**
5
+ * Which data-access problem an error is, or null for any other failure.
6
+ * 401 → the token is missing or was rejected; 403 → the viewer has no access
7
+ * to this dashboard's data; 503 `DataAccessUnavailable` → access couldn't be
8
+ * checked (AppSec down), so the backend refused rather than serve unfiltered data.
9
+ */
10
+ export declare function dataAccessProblem(error: unknown): DataAccessProblem | null;
11
+ export interface DataAccessMessageProps {
12
+ problem: DataAccessProblem;
13
+ onRetry?: () => void;
14
+ }
15
+ /** Full-dashboard message for a data-access failure. */
16
+ export declare function DataAccessMessage({ problem, onRetry }: DataAccessMessageProps): React.JSX.Element;
17
+ export default DataAccessMessage;
18
+ //# sourceMappingURL=DataAccessMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataAccessMessage.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/DataAccess/DataAccessMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,kBAAkB,CAAC;AAE1B,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,CAAC;AAEzE;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,iBAAiB,GAAG,IAAI,CAM1E;AAsBD,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,iBAAiB,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wDAAwD;AACxD,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,sBAAsB,qBAgB7E;AAED,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import type { DataAccessScope } from "../../types";
3
+ import "./dataAccess.css";
4
+ /** The grants that limit what the viewer sees; empty when nothing is limited. */
5
+ export declare function restrictingGrants(scope: DataAccessScope | null | undefined): import("../../types").DataAccessGrant[];
6
+ export interface DataAccessScopeChipProps {
7
+ scope: DataAccessScope | null | undefined;
8
+ }
9
+ /**
10
+ * "Viewing: State: Texas · Plant: Plant B" — what the viewer's access limits
11
+ * the dashboard to. Nothing is shown when the dashboard doesn't restrict data
12
+ * or the viewer sees everything.
13
+ */
14
+ export declare function DataAccessScopeChip({ scope }: DataAccessScopeChipProps): React.JSX.Element | null;
15
+ export default DataAccessScopeChip;
16
+ //# sourceMappingURL=DataAccessScopeChip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataAccessScopeChip.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/DataAccess/DataAccessScopeChip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,kBAAkB,CAAC;AAW1B,iFAAiF;AACjF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,GAAG,SAAS,2CAG1E;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,eAAe,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,wBAAwB,4BActE;AAED,eAAe,mBAAmB,CAAC"}
@@ -1,9 +1,16 @@
1
1
  import React from "react";
2
2
  import { GraphPaneConfig, TThresholdConfig } from "./Graph/types";
3
+ import "./DashboardGrid/kpiLayout.css";
3
4
  import type { DashboardLayoutConfig } from "./DashboardGrid/layout";
4
- import { DashboardDataResponse, DashboardSectionKey, DashboardTableLayoutConfig, DashboardTablesConfig, DashboardUIConfig, KpiCtaConfig, TableCtaConfig } from "../types";
5
+ import { DashboardDataResponse, DashboardSectionKey, DashboardTableLayoutConfig, DashboardTablesConfig, DashboardUIConfig, DataAccessScope, KpiCtaConfig, TableCtaConfig } from "../types";
6
+ import type { DrillColumn, DrillConfig, InsightsActionHandlers, InsightsCellRenderer, InsightsLabels, InsightsRow } from "../types/insights";
5
7
  import '../../App.css';
8
+ import { type IntegrationDocsMarkdown } from "./IntegrationTracking";
6
9
  export interface DashboardProps {
10
+ dashboardName?: string;
11
+ onBack?: () => void;
12
+ backLabel?: string;
13
+ onFullscreenChange?: (fullscreen: boolean) => void;
7
14
  baseUrl?: string;
8
15
  configId?: string;
9
16
  uiConfig: DashboardUIConfig;
@@ -25,6 +32,20 @@ export interface DashboardProps {
25
32
  onFilterApply: () => void;
26
33
  /** Node shown inside the graph when no series have data. Defaults to a built-in empty state. */
27
34
  graphEmptyState?: React.ReactNode;
35
+ /** Host overrides for Decision Advantage drill tables. */
36
+ insightsDrill?: DrillConfig | ((fromConfig: DrillConfig) => DrillConfig);
37
+ insightsLabels?: Partial<InsightsLabels>;
38
+ renderInsightsCell?: (context: {
39
+ column: DrillColumn;
40
+ row: InsightsRow;
41
+ entityKey: string;
42
+ }) => React.ReactNode | undefined;
43
+ /** Hosts a Decision Advantage `call` button may send the viewer's token to. */
44
+ insightsApprovedApiHosts?: string[];
45
+ /** Functions Decision Advantage `host` buttons run, by name. */
46
+ insightsActionHandlers?: InsightsActionHandlers;
47
+ /** Host rendering for drill-table columns. */
48
+ insightsCellRenderers?: Record<string, InsightsCellRenderer>;
28
49
  /** Per-table rendering supplied by the host app, keyed by `tableBuilder[].key`. */
29
50
  tables?: DashboardTablesConfig;
30
51
  /** Grid layout (tables per row) for the tables section. */
@@ -77,6 +98,8 @@ export interface DashboardProps {
77
98
  onAlertClose?: (value: boolean) => void;
78
99
  accessToken?: string;
79
100
  authBaseUrl?: string;
101
+ /** Signs an Excel citation's `gs://` workbook URL (the host's get-signed-url call). */
102
+ resolveExcelCitationGcsUrl?: (gsUrl: string) => Promise<string | null | undefined>;
80
103
  /**
81
104
  * Grid layout. Falls back to the backend's `uiConfig.data.dashboardLayout`
82
105
  * when not passed; when passed, it overrides the backend layout.
@@ -109,7 +132,27 @@ export interface DashboardProps {
109
132
  * The date filter bar and filters sidebar stay outside the grid.
110
133
  */
111
134
  layout?: DashboardLayoutConfig;
135
+ /** Decision Advantage reads only working days. Sent to the insights API. Default false. */
136
+ workingDaysOnly?: boolean;
137
+ /**
138
+ * Show only the first KPI cards, with "View more KPIs" for the rest.
139
+ * Falls back to `uiConfig.data.kpiCardsCollapse`; on by default (first KPI row)
140
+ * for dashboards with Decision Advantage. `false` always shows every card.
141
+ */
142
+ kpiCardsCollapse?: KpiCardsCollapse;
143
+ /**
144
+ * The viewer's data access (`GET /federated/access/me`). When it limits what
145
+ * they see, a "Viewing: …" chip sits under the date bar. Hide it with
146
+ * `hiddenSections: ["dataAccessScope"]`.
147
+ */
148
+ dataAccessScope?: DataAccessScope | null;
149
+ eventsBaseUrl?: string;
150
+ intervalDays?: number;
151
+ integrationDocs?: IntegrationDocsMarkdown;
112
152
  }
113
- export declare function ExecutiveDashboard({ baseUrl, configId, uiConfig, data, dataLoading, startDate, endDate, onDateChange, onRefresh, selectedKpis, onKpiChange, sidebarVisible, onSidebarShow, onSidebarHide, filterValues, onFilterChange, onFilterReset, onFilterApply, appliedFilters, graphEmptyState, tables, tableLayout, sectionOrder, hiddenSections, tablePages, onTableExpand, onTableLoadMore, pollingEnabled, selectedPreset, handlePresetChange, metricCardConfig, kpiCtaConfig, tableCtaConfig, activeThreshold, onThresholdViewChange, onAlertsClick, showAlerts, onAlertClose, accessToken, authBaseUrl, layout }: DashboardProps): React.JSX.Element;
153
+ export type KpiCardsCollapse = false | {
154
+ initialCount?: number;
155
+ };
156
+ export declare function ExecutiveDashboard({ dashboardName, onBack, backLabel, onFullscreenChange, baseUrl, configId, uiConfig, data, dataLoading, startDate, endDate, onDateChange, onRefresh, selectedKpis, onKpiChange, sidebarVisible, onSidebarShow, onSidebarHide, filterValues, onFilterChange, onFilterReset, onFilterApply, appliedFilters, graphEmptyState, insightsDrill, insightsLabels, renderInsightsCell, insightsApprovedApiHosts, insightsActionHandlers, insightsCellRenderers, tables, tableLayout, sectionOrder, hiddenSections, tablePages, onTableExpand, onTableLoadMore, pollingEnabled, selectedPreset, handlePresetChange, metricCardConfig, kpiCtaConfig, tableCtaConfig, activeThreshold, onThresholdViewChange, onAlertsClick, showAlerts, onAlertClose, accessToken, authBaseUrl, resolveExcelCitationGcsUrl, layout, workingDaysOnly, kpiCardsCollapse, dataAccessScope, eventsBaseUrl, intervalDays, integrationDocs, }: DashboardProps): React.JSX.Element;
114
157
  export default ExecutiveDashboard;
115
158
  //# sourceMappingURL=ExecutiveDashboard.d.ts.map