@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
@@ -0,0 +1,176 @@
1
+ import { type ReactNode } from "react";
2
+ import "./agPrimitives.css";
3
+ import type { InsightsGraphGroup, InsightsItemLink } from "../../types/insights";
4
+ import { type ExcelCitationDisplay } from "../RcaDecisionComponent/CitationMarkdown";
5
+ export type GoodDirection = "up" | "down";
6
+ /**
7
+ * The day's colour, as on the AI Governance trend legend: a significant move
8
+ * is green when it went the good way and red when not, other movers are
9
+ * purple, a steady day is ink, and a day never classified is blue.
10
+ */
11
+ export declare function movementColorHex(movementType: string | null | undefined, direction: string | null | undefined, good?: GoodDirection): "#E11D48" | "#15803D" | "#5928ED" | "#0F172A" | "#2563EB";
12
+ /** Readable on the dark tooltip. */
13
+ export declare const tooltipSafeColorHex: (hex: string) => string;
14
+ /** The Summary title: "Significant change", "Trending up/down", "New entity"… */
15
+ export declare function movementVerdictLabel(movementType: string | null | undefined, direction?: string | null): "Significant change" | "Trending down" | "Trending up" | "New entity" | "Now dormant" | "Recovered" | "No significant change";
16
+ /** The narrative sentence shows for significant and trending days. */
17
+ export declare const showsMovementNarrative: (movementType: string | null | undefined) => boolean;
18
+ export type MovementPhrase = {
19
+ label: string;
20
+ dir: "up" | "down" | "flat";
21
+ };
22
+ /** The plain-English chip beside the criticality badge. */
23
+ export declare function getMovementPhrase(movementType: string | null | undefined, direction?: string | null): MovementPhrase | null;
24
+ export declare const CRITICALITY_TONE: Record<string, string>;
25
+ /** "Oct 8, 2026", as the AI Governance report headers show it. */
26
+ export declare function formatHeaderDate(day: string | null | undefined): string;
27
+ /** A report header's date in the dashboard's period: "Oct 8, 2026" for a day as before, "June 2025" for a month, "Q2 2025" for a quarter. */
28
+ export declare function periodHeading(day: string | null | undefined, grain?: string | null): string;
29
+ export declare function SectionHeader({ title, meta, action }: {
30
+ title: string;
31
+ meta?: string;
32
+ action?: ReactNode;
33
+ }): import("react").JSX.Element;
34
+ /** A titled visual block with its own collapse button, like "Trend" or "User Activity". */
35
+ export declare function CollapsibleVisualSection({ title, meta, action, children, className, defaultExpanded, }: {
36
+ title: string;
37
+ meta?: string;
38
+ action?: ReactNode;
39
+ children: ReactNode;
40
+ className?: string;
41
+ /** Open at first (the default); false starts it collapsed, its header still showing. */
42
+ defaultExpanded?: boolean;
43
+ }): import("react").JSX.Element;
44
+ export declare function StatusToken({ children, tone, compact }: {
45
+ children: ReactNode;
46
+ tone: string;
47
+ compact?: boolean;
48
+ }): import("react").JSX.Element;
49
+ export declare function MovementChip({ movementType, direction, good }: {
50
+ movementType: string | null | undefined;
51
+ direction?: string | null;
52
+ good?: GoodDirection;
53
+ }): import("react").JSX.Element | null;
54
+ export declare function CriticalityChip({ criticality, compact }: {
55
+ criticality: string | null | undefined;
56
+ compact?: boolean;
57
+ }): import("react").JSX.Element | null;
58
+ /** A collapsible card section, like "Top Drivers". */
59
+ export declare function ReportAccordion({ title, defaultExpanded, children }: {
60
+ title: string;
61
+ defaultExpanded?: boolean;
62
+ children: ReactNode;
63
+ }): import("react").JSX.Element;
64
+ /** Whether a change was good, bad, or no change, for its colour. */
65
+ export declare function toneOf(change: number | null | undefined, good: GoodDirection): "good" | "bad" | "flat" | null;
66
+ /** One average card: value, coloured by how the average is moving, and a "Going up / down" badge. */
67
+ export declare function Metric({ label, value, change, good, }: {
68
+ label: string;
69
+ value: string;
70
+ /** How the average is moving (e.g. 3-day minus 7-day); omitted for the daily value and the 7-day card. */
71
+ change?: number | null;
72
+ good?: GoodDirection;
73
+ }): import("react").JSX.Element;
74
+ /**
75
+ * Daily value plus the 3, 7 and 30-day averages, with AI Governance's
76
+ * badges: the 3-day card compares the 3-day average with the 7-day one, the
77
+ * 30-day card the 7-day with the 30-day; the 7-day card has none.
78
+ */
79
+ export declare function TrendMetricsSection({ dailyLabel, daily, fast, slow, long, windows, good, format, dashboardKpiCards, kpiLabel, }: {
80
+ dashboardKpiCards?: ReactNode;
81
+ dailyLabel?: string;
82
+ daily?: number | null;
83
+ fast: number | null;
84
+ slow: number | null;
85
+ long: number | null;
86
+ /** `unit` is the period the averages count ("day" when unset). */
87
+ windows: {
88
+ fast: number;
89
+ slow: number;
90
+ long: number;
91
+ unit?: string;
92
+ };
93
+ good: GoodDirection;
94
+ format: (value: number | null | undefined) => string;
95
+ /** Named after the average above a day ("3-Month Average EBITDA"); a daily card reads as before. */
96
+ kpiLabel?: string;
97
+ }): import("react").JSX.Element;
98
+ /**
99
+ * Colours every "↑ 20%" / "↓ 1%" in a sentence: green when it moved the good way for the number it is about ("SG&A expense
100
+ * of $1.6M (↑ 14%)" is red, "↑ 24% in Raw material volume" green), by the KPIs' `goodDirection`. A figure whose number the
101
+ * sentence doesn't name takes `tone` when given, else `good`.
102
+ */
103
+ export declare function ArrowColoredText({ text, good, tone, renderText, citations, excelDisplay, excelHover }: {
104
+ text: string;
105
+ good?: GoodDirection;
106
+ tone?: "good" | "bad";
107
+ renderText?: (part: string) => ReactNode;
108
+ citations?: Array<Record<string, any>>;
109
+ excelDisplay?: ExcelCitationDisplay;
110
+ excelHover?: boolean;
111
+ }): import("react").JSX.Element;
112
+ /** Text with the named rows turned into buttons that open the row's report: 'prajwal.kr gave 3.6 for Prompt Mode on DEV' with each name clickable. */
113
+ export declare function linkedText(links: InsightsItemLink[] | undefined, open: ((link: InsightsItemLink) => void) | undefined): ((part: string) => ReactNode) | undefined;
114
+ /** Splits the agent's "Good news - …" / "Bad news - …" opener off the sentence so only that word is coloured. */
115
+ export declare function splitVerdict(text: string): {
116
+ prefix: "Good news" | "Bad news";
117
+ rest: string;
118
+ } | {
119
+ prefix: null;
120
+ rest: string;
121
+ };
122
+ /**
123
+ * "Good news" green, "Bad news" red, the rest plain, with arrows coloured. A line that opens with a verdict (a Root Cause line about any
124
+ * number) colours its arrows the verdict's way; otherwise they follow the headline number's good direction.
125
+ */
126
+ export declare function VerdictSentence({ text, good, arrowsFollowVerdict, renderText, citations, excelDisplay, excelHover }: {
127
+ text: string;
128
+ good?: GoodDirection;
129
+ arrowsFollowVerdict?: boolean;
130
+ renderText?: (part: string) => ReactNode;
131
+ citations?: Array<Record<string, any>>;
132
+ excelDisplay?: ExcelCitationDisplay;
133
+ excelHover?: boolean;
134
+ }): import("react").JSX.Element;
135
+ /** "↑ 12%" / "↓ 4%" vs last day, coloured by the number's good direction. */
136
+ export declare function DayOverDayChange({ deltaPct, good, suffix, direction, tone: sentTone, }: {
137
+ deltaPct: number | null | undefined;
138
+ good?: GoodDirection;
139
+ suffix?: string;
140
+ direction?: string | null;
141
+ tone?: string | null;
142
+ }): import("react").JSX.Element | null;
143
+ /** The colour of a report's verdict from the backend's tone. */
144
+ export declare const verdictToneHex: (tone: string | null | undefined) => "#E11D48" | "#15803D" | "#5928ED";
145
+ /** Shimmering text lines; widths in percent. */
146
+ export declare function SkeletonLines({ widths, label }: {
147
+ widths?: number[];
148
+ label?: string;
149
+ }): import("react").JSX.Element;
150
+ /** Placeholder for the daily value and average cards. */
151
+ export declare function MetricsSkeleton({ count }: {
152
+ count?: number;
153
+ }): import("react").JSX.Element;
154
+ /** Placeholder the height of a chart. */
155
+ export declare function ChartSkeleton({ height, label }: {
156
+ height?: number;
157
+ label?: string;
158
+ }): import("react").JSX.Element;
159
+ /**
160
+ * "Complete" / "Working Days" for a trend, as a styled listbox instead of
161
+ * the browser's select: opens on click, Enter, Space or the arrow keys,
162
+ * closes on Escape, Tab or a click outside.
163
+ */
164
+ type DaysDropdownProps = Parameters<typeof DaysDropdownMenu>[0];
165
+ /** The day-group menu (Complete / Working days / Weekends). A dashboard whose period is longer than a day has no such thing, so it shows nothing. */
166
+ export declare function DaysDropdown(props: DaysDropdownProps): import("react").JSX.Element | null;
167
+ declare function DaysDropdownMenu({ value, onChange, disabled, groups, group, onGroupChange, }: {
168
+ value: boolean;
169
+ onChange: (workingDays: boolean) => void;
170
+ disabled?: boolean;
171
+ groups?: InsightsGraphGroup[];
172
+ group?: string | null;
173
+ onGroupChange?: (group: string) => void;
174
+ }): import("react").JSX.Element;
175
+ export {};
176
+ //# sourceMappingURL=agPrimitives.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agPrimitives.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/agPrimitives.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6E,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGlH,OAAO,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGjF,OAAO,EAAqC,KAAK,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAUxH,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,MAAM,CAAC;AAyB1C;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,IAAI,GAAE,aAAoB,6DASzI;AAED,oCAAoC;AACpC,eAAO,MAAM,mBAAmB,QAAS,MAAM,WAAiE,CAAC;AAEjH,iFAAiF;AACjF,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,iIAiBtG;AAED,sEAAsE;AACtE,eAAO,MAAM,sBAAsB,iBAAkB,MAAM,GAAG,IAAI,GAAG,SAAS,YAC0G,CAAC;AAEzL,MAAM,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M,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,+BAQhH;AAED,yDAAyD;AACzD,wBAAgB,eAAe,CAAC,EAAE,KAAS,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,+BAWhE;AAED,yCAAyC;AACzC,wBAAgB,aAAa,CAAC,EAAE,MAAY,EAAE,KAAuB,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,+BAQ3G;AASD;;;;GAIG;AACH,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAEhE,qJAAqJ;AACrJ,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,sCAIpD;AAED,iBAAS,gBAAgB,CAAC,EACxB,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,KAAK,EACL,aAAa,GACd,EAAE;IACD,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,+BAkGA"}
@@ -0,0 +1,17 @@
1
+ import type { InsightsRange } from "../../api/insightsApi";
2
+ /**
3
+ * Resolve a table drill's default date without changing an explicitly opened date. Above a day (`grain` month, quarter…)
4
+ * a drill opens on the period of the newest report in the selected dates (`reportDay`), else on the period holding the
5
+ * range's last day: never on "the latest completed working day", which only means something for a daily dashboard.
6
+ */
7
+ export declare function resolveDrillDay({ endDate, workingDays, selectedDay, reportDay, now, grain, }: {
8
+ endDate: Date;
9
+ workingDays: boolean;
10
+ selectedDay?: string;
11
+ reportDay?: string | null;
12
+ now?: Date;
13
+ grain?: string | null;
14
+ }): string;
15
+ /** Keep the level summary's content on the same completed day as its drills. Above a day the summary covers the selected dates as they are. */
16
+ export declare function resolveL2SummaryRange(range: InsightsRange, workingDays: boolean, selectedDay?: string, now?: Date, grain?: string | null): InsightsRange;
17
+ //# sourceMappingURL=drillDay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drillDay.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/drillDay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAe3D;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,WAAW,EACX,WAAW,EACX,SAAS,EACT,GAAgB,EAChB,KAAK,GACN,EAAE;IACD,OAAO,EAAE,IAAI,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,GAAG,MAAM,CAaT;AACD,+IAA+I;AAC/I,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,aAAa,CAUxJ"}
@@ -0,0 +1,128 @@
1
+ import { type ReactNode } from "react";
2
+ import type { DashboardApiConfig } from "../../api/dashboardApi";
3
+ import type { DashboardTablesConfig } from "../../types";
4
+ import type { InsightsRange } from "../../api/insightsApi";
5
+ import type { DecisionAdvantageUiConfig, DrillColumn, DrillLevelConfig, DrillTableConfig, DrillTableSourceConfig, InsightsActionHandlers, InsightsCellRenderer, InsightsKpiConfig, InsightsLabels, InsightsRow } from "../../types/insights";
6
+ import type { PeriodWords } from "./insightsFormat";
7
+ export interface ResolvedDrillConfig {
8
+ tabTables: Record<string, DrillTableConfig | undefined>;
9
+ levels: DrillLevelConfig[];
10
+ }
11
+ /**
12
+ * What the report drawer opens on: a stored report, or a flagged change that
13
+ * has none yet (its row, number and day), which can then be written.
14
+ */
15
+ export interface InsightsReportTarget {
16
+ reportId?: string | null;
17
+ nodeKey?: string;
18
+ kpiId?: string;
19
+ /** YYYY-MM-DD */
20
+ dataDay?: string;
21
+ /** Shown while the report loads, e.g. "eCG · AI Queries · 02 Oct". */
22
+ title?: string;
23
+ }
24
+ export interface InsightsContextValue {
25
+ /** Configured dashboard KPI cards rendered with their original values and actions. */
26
+ dashboardKpiCards?: ReactNode;
27
+ api: DashboardApiConfig;
28
+ range: InsightsRange;
29
+ /** Changes whenever the range does; a dependency for fetches. */
30
+ rangeKey: string;
31
+ /** Sidebar filters are applied; insights still cover all data. */
32
+ filtersActive: boolean;
33
+ kpis: Record<string, InsightsKpiConfig>;
34
+ kpiLabel: (kpiId: string) => string;
35
+ /** A number in its KPI's `format` ("$24.1M"); a KPI without one is shown as it always was. */
36
+ formatKpi: (kpiId: string | null | undefined, value: number | null | undefined) => string;
37
+ /** An axis tick in its KPI's `format`, without decimals on compact figures ("$30M"). */
38
+ formatKpiAxis: (kpiId: string | null | undefined, value: number | null | undefined) => string;
39
+ /** The dashboard's period (`ui.insights.grain`) and its words; a day when unset. */
40
+ period: PeriodWords;
41
+ goodDirection: (kpiId: string) => "up" | "down";
42
+ /**
43
+ * The headline number every report leads with: Tier 1's primary graph line
44
+ * when it's watched, otherwise the first watched Tier 1 number.
45
+ */
46
+ headlineKpi: string | null;
47
+ /** Watched numbers on each graph tier, in config order. */
48
+ tierKpis: {
49
+ 1: string[];
50
+ 2: string[];
51
+ };
52
+ /** Charts open on working days only, as the graph's day filter says. */
53
+ defaultWorkingDays: boolean;
54
+ /** Whether the graph config fills this KPI's line (`areaFill: "yes"`), with its `areaOpacity` (null when unset); null when it doesn't. */
55
+ areaFillOf?: (kpiId: string) => {
56
+ opacity: number | null;
57
+ } | null;
58
+ /** Periods in the fast, slow and long moving averages, from `ui.insights.analysis`, and the period they count ("day" when unset). */
59
+ windows: {
60
+ fast: number;
61
+ slow: number;
62
+ long: number;
63
+ unit?: string;
64
+ };
65
+ /** The drill-down level (1 = total) of a part, from `ui.insights.hierarchy`. Unknown or none is 1. */
66
+ levelOf: (entityKey?: string | null) => number;
67
+ entityName: (entityKey: string) => string;
68
+ entityPluralName: (entityKey: string) => string;
69
+ entityKpis: (entityKey: string) => string[];
70
+ entityOrder: string[];
71
+ isChildOf: (entityKey: string, parentEntityKey: string) => boolean;
72
+ decisionAdvantage?: DecisionAdvantageUiConfig | null;
73
+ labels: InsightsLabels;
74
+ tierTitles: {
75
+ 1: string;
76
+ 2: string;
77
+ };
78
+ drill: ResolvedDrillConfig;
79
+ /**
80
+ * The drill level a row of `entityKey` opens when the breadcrumb already
81
+ * holds `contextEntityKeys`: the most specific match, or undefined when the
82
+ * row opens nothing.
83
+ */
84
+ matchDrillLevel: (entityKey: string, contextEntityKeys: string[]) => DrillLevelConfig | undefined;
85
+ /** The source column holding a part's row names, used to filter Table Builder tables by an opened row. */
86
+ labelColumnOf: (entityKey: string) => string | null;
87
+ /** The dashboard's sidebar filters, which Table Builder tables inside drill-downs also apply. */
88
+ sidebarFilters: Record<string, string[]>;
89
+ /** Human labels for configured sidebar filter keys. */
90
+ sidebarFilterLabel: (key: string) => string;
91
+ /** A Table Builder table from the dashboard config. */
92
+ tableSource: (tableKey: string) => DrillTableSourceConfig | undefined;
93
+ /** Hosts a `call` button may send the viewer's token to. Any other host gets no token. */
94
+ approvedApiHosts: string[];
95
+ /** Functions `host` buttons run, by name. */
96
+ actionHandlers: InsightsActionHandlers;
97
+ /** Host rendering for drill-table columns, by "<table or part>.<column>" or "<column>". */
98
+ cellRenderers: Record<string, InsightsCellRenderer>;
99
+ /**
100
+ * The host's `tables` prop, also used by drill tables: a Table Builder table
101
+ * by its key (the same entry it uses on the dashboard), drill-down rows of a
102
+ * part by "insights.<entityKey>". Its columns replace the config's.
103
+ */
104
+ hostTables: DashboardTablesConfig;
105
+ renderInsightsCell?: (context: {
106
+ column: DrillColumn;
107
+ row: InsightsRow;
108
+ entityKey: string;
109
+ }) => ReactNode | undefined;
110
+ openReport: (target: InsightsReportTarget) => void;
111
+ viewer: {
112
+ email: string | null;
113
+ isAdmin: boolean;
114
+ };
115
+ minReasonLength: number;
116
+ revision: number;
117
+ refresh: () => void;
118
+ eventsBaseUrl?: string;
119
+ intervalDays?: number;
120
+ integrationDocs?: {
121
+ quickStart?: string;
122
+ detailed?: string;
123
+ taskTracking?: string;
124
+ };
125
+ }
126
+ export declare const InsightsContext: import("react").Context<InsightsContextValue | null>;
127
+ export declare const useInsights: () => InsightsContextValue | null;
128
+ //# sourceMappingURL=insightsContextCore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insightsContextCore.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/insightsContextCore.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAElE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,yBAAyB,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC7O,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,WAAW,mBAAmB;IA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,WAAW,mCAAoC,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * What a failed insights action means for the person who clicked it, from the
3
+ * backend's `errorType` (see the backend's `app/services/mode_authz.py`).
4
+ *
5
+ * Actions that change a dashboard (regenerate a summary, decide a data point,
6
+ * save a correlation window, delete someone else's comment) need the global
7
+ * `cw-admin` role or the dashboard mode's admin role. The backend names the
8
+ * missing role in its message, so that message is shown as it is.
9
+ */
10
+ export declare function insightsErrorText(error: unknown, fallback: string): string;
11
+ //# sourceMappingURL=insightsErrors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insightsErrors.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/insightsErrors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AASH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAyB1E"}
@@ -0,0 +1,9 @@
1
+ import type { SidebarFilterConfig } from "../../types";
2
+ /** Keep only applied filters that the current dashboard explicitly permits. */
3
+ export declare function resolveInsightsSidebarFilters(applied: Record<string, string | string[]> | undefined, configured: SidebarFilterConfig[] | undefined): {
4
+ filters: any;
5
+ labels: {
6
+ [k: string]: string;
7
+ };
8
+ };
9
+ //# sourceMappingURL=insightsFilters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insightsFilters.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/insightsFilters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,+EAA+E;AAC/E,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,GAAG,SAAS,EACtD,UAAU,EAAE,mBAAmB,EAAE,GAAG,SAAS;;;;;EAa9C"}
@@ -0,0 +1,92 @@
1
+ import type { DaRootCauseTagsConfig, InsightsKpiFormat } from "../../types/insights";
2
+ /**
3
+ * A figure the way the owner set it (`kpis[].format`), with the backend's
4
+ * rules (`format_figure`) so a card and a sentence read alike: K, M and B
5
+ * when `compact`, always `decimals` places (1 when unset), the sign before
6
+ * the prefix ("-$1.2M"), the suffix after the letter ("138.6M lbs"). Null
7
+ * without a format, so the caller keeps its own.
8
+ */
9
+ export declare function formatFigure(value: number | null | undefined, format: InsightsKpiFormat | null | undefined): string | null;
10
+ /** A figure without the zeros ending its decimals: "$13.00 / cwt" → "$13 / cwt", "$12.50" → "$12.5", "$3.93" as is. */
11
+ export declare const trimZeros: (text: string) => string;
12
+ /**
13
+ * An axis tick in the number's format, unit and all ("$13 / cwt", "85%"), kept short: no decimals on compact figures
14
+ * ("$30M", "50M lbs") and no trailing zeros on the others ("$13 / cwt", "$2.5 / cwt", "$3.93 / cwt").
15
+ */
16
+ export declare function formatAxisFigure(value: number | null | undefined, format: InsightsKpiFormat | null | undefined): string | null;
17
+ /** How a dashboard's period is named on the page: the moving averages, the first card and the chart ticks. */
18
+ export interface PeriodWords {
19
+ grain: string;
20
+ /** "day", "week", "month", "quarter" */
21
+ unit: string;
22
+ /** "Daily", "Weekly", "Monthly", "Quarterly" */
23
+ adjective: string;
24
+ }
25
+ /** The words for `ui.insights.grain`; a day when it is missing or unknown. */
26
+ export declare const periodWordsOf: (grain: unknown) => PeriodWords;
27
+ /** A moving-average card: "3-day average" exactly as before for a day; above it "3-Month Average". */
28
+ export declare const averageLabel: (n: number, unit?: string) => string;
29
+ /** A moving-average line in a chart legend: "3-day Average" exactly as before for a day; above it "3-Month Average". */
30
+ export declare const averageLineLabel: (n: number, unit?: string) => string;
31
+ /** The short form in a comparison: "3d" for a day as before; "3m", "3w", "3q" above it. */
32
+ export declare const averageShort: (n: number, unit?: string) => string;
33
+ /** A chart tick: "10/02" for a day or a week (its first day) exactly as before, "Jan" for a month, "Q1 2025" for a quarter. */
34
+ export declare function shortPeriod(x: string | number, grain?: string | null): string;
35
+ /** A tooltip's heading: the day as given for a day, "January 2025", "Week of 6 Oct 2025" or "Q1 2025" above it. */
36
+ export declare function longPeriod(x: string | number, grain?: string | null): string;
37
+ export declare namespace longPeriod {
38
+ var axisTitle: (grain: string) => string;
39
+ }
40
+ /**
41
+ * The day a period is stored on, for any day inside it: the 1st of its month, quarter or year. A day or a week (whose first
42
+ * day depends on the dashboard) is returned as given. Above a day the backend keeps one row per period on that day, so a day
43
+ * like the range's last ("2025-12-31") must be moved to it before it is sent as a `dataDay`.
44
+ */
45
+ export declare function periodStart(day: string, grain?: string | null): string;
46
+ /** The last day of the period a stored day (`periodStart`) begins: the month's, quarter's or year's last day, a week's seventh; a day itself. */
47
+ export declare function periodLastDay(day: string, grain?: string | null): string;
48
+ /**
49
+ * Whether a report's period lies in the selected dates (YYYY-MM-DD, inclusive): any of its days does. The backend answers
50
+ * "the newest report up to the range's end", however old, so a range with no report of its own ("This year" before the
51
+ * year's first one) gets an older period, which the page must not show as the range's.
52
+ */
53
+ export declare function periodInRange(period: {
54
+ start?: string | null;
55
+ end?: string | null;
56
+ } | null | undefined, startDay: string, endDay: string, grain?: string | null): boolean;
57
+ /** A number a report sentence can name, and which way is good for it. */
58
+ export interface KpiMention {
59
+ name: string;
60
+ good: "up" | "down";
61
+ }
62
+ /**
63
+ * The names each KPI goes by in report text, longest first: its label without a trailing unit ("EBITDA ($)" → "EBITDA"),
64
+ * its id in words ("total_operating_expense" → "total operating expense") and any `aliases`, each with the KPI's good direction.
65
+ */
66
+ export declare function kpiMentions(kpis: Record<string, {
67
+ label?: string | null;
68
+ goodDirection?: string | null;
69
+ aliases?: unknown;
70
+ } | undefined> | null | undefined): KpiMention[];
71
+ /**
72
+ * Which way is good for each "↑ 12%" / "↓ 4%" figure that `figure` finds in `text`, in order: that of the number the figure
73
+ * is about. A figure followed by "in <name>" ("↑ 24% in Raw material volume") is that number's; otherwise it is the number
74
+ * named last before it in the same sentence, with no other figure between ("SG&A expense of $1.6M (↑ 14%)", "EBITDA rose … (↑ 44%)"). A cost or expense
75
+ * that is not a KPI counts as lower-is-better. Null where the sentence names no number: the caller keeps its own direction.
76
+ */
77
+ export declare function figureDirections(text: string, mentions: KpiMention[], figure: RegExp): Array<"up" | "down" | null>;
78
+ /** The chip an item's tag shows as, by the dashboard's `rootCauseTags`; none without that setting. */
79
+ export declare function rootCauseTag(tag: {
80
+ label?: string;
81
+ } | null | undefined, config: DaRootCauseTagsConfig | null | undefined): {
82
+ label: string;
83
+ tone: "good" | "bad" | "neutral";
84
+ } | undefined;
85
+ /**
86
+ * A Root Cause card's title: the row the line is about, i.e. the first linked row its first sentence names ("Rendering EBITDA
87
+ * rose…", "EBITDA for Rendering rose…"). An overview line that names a row only later ("… This is mainly due to Rendering.") has none.
88
+ */
89
+ export declare function rootCauseTitle(content: string, links: {
90
+ label: string;
91
+ }[] | null | undefined): string | undefined;
92
+ //# sourceMappingURL=insightsFormat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insightsFormat.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/insightsFormat.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAOrF;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,MAAM,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAgB1H;AAED,uHAAuH;AACvH,eAAO,MAAM,SAAS,SAAU,MAAM,WAAoF,CAAC;AAE3H;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,MAAM,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAI9H;AAED,8GAA8G;AAC9G,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAA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AE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,GAAG,MAAM,CAAC;CACrB;AAKD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,UAAU,EAAE,CAW1K;AAMD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC,CA8BlH;AAKD,sGAAsG;AACtG,wBAAgB,YAAY,CAAC,GAAG,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,EAAE,MAAM,EAAE,qBAAqB,GAAG,IAAI,GAAG,SAAS,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAAA;CAAE,GAAG,SAAS,CAO1L;AAKD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAGjH"}
@@ -0,0 +1,85 @@
1
+ import { type RefObject } from "react";
2
+ import type { RcaDecisionItem, RcaDecisioning } from "../RcaDecisionComponent/types";
3
+ import type { DaRootCauseTagsConfig, DecisionAdvantageUiConfig, InsightsDecisionItem, InsightsItemLink, InsightsReport, InsightsPeriod, InsightsUiConfig } from "../../types/insights";
4
+ import type { DashboardApiConfig } from "../../api/dashboardApi";
5
+ /**
6
+ * What every insights popup does while open: the page behind doesn't scroll, focus starts on its close button,
7
+ * Escape closes it (only the top one, when one opened over another), and the page gets its scroll and focus back
8
+ * once the last popup closes. Returns the popup's class names.
9
+ *
10
+ * A breadcrumb step (L1 → a level's top rows → a row, and back) closes one popup and opens the next in the same
11
+ * update. The next one appears in place, without the fade and pop of a first opening, which would flash the page
12
+ * through the backdrop; and the page isn't handed its focus and scroll in between, which would scroll it.
13
+ */
14
+ export declare function useInsightsModal(onClose: () => void, closeRef: RefObject<HTMLElement | null>): string;
15
+ /**
16
+ * Puts a popup's scroll back at its top each time `step` changes: a drill-down opening a row, or a breadcrumb going
17
+ * back up. The new step starts at its title instead of where the reader had scrolled to in the one before (often the
18
+ * table at the bottom they clicked a row in). Before paint, so the new step never shows mid-page first.
19
+ */
20
+ export declare function useScrollToTopOnStep(ref: RefObject<HTMLElement | null>, step: string): void;
21
+ export declare function isInsightsOn(insights: InsightsUiConfig | null | undefined): boolean;
22
+ /** The card's config when it should show, or null. A card saved without `enabled` shows. */
23
+ export declare function summaryCardConfig(da: DecisionAdvantageUiConfig | null | undefined): {
24
+ layoutKey?: string | undefined;
25
+ enabled?: boolean | undefined;
26
+ title?: string | undefined;
27
+ } | null;
28
+ /** Tabs worth showing: each needs the part it lists. */
29
+ export declare function insightTabItems(da: DecisionAdvantageUiConfig | null | undefined): import("../../types/insights").InsightTabConfig[];
30
+ /** "vs previous working day" (Monday against Friday) or "vs previous weekend day": the previous reading is always of the same kind of day. */
31
+ export declare const previousDayLabel: (day?: string | null) => "vs previous weekend day" | "vs previous working day";
32
+ /** `previousDayLabel` for a day, as before; above it "vs previous month" (a month is compared with the month before). */
33
+ export declare const previousPeriodLabel: (day?: string | null, grain?: string | null) => string;
34
+ /** The period a share line names ("{share}% of {period}'s movement"): "today" for a day, "January" for a month, the period's words otherwise. */
35
+ export declare const periodName: (day?: string | null, grain?: string | null) => string;
36
+ /** "1–7 Oct 2026", "28 Sep – 4 Oct 2026" or "7 Oct 2026". A period the backend names (above a day) shows its own words: "January 2025". */
37
+ export declare function formatPeriod(period: InsightsPeriod | null | undefined): string;
38
+ /** "8 Oct 2026": the day a report was written for, which is the last day of the period it covers. Above a day: the period's words, "January 2025". */
39
+ export declare const formatReportDate: (period: InsightsPeriod | null | undefined) => string;
40
+ /** "10/02" from "2026-10-02", for chart ticks and tooltips. */
41
+ export declare const shortDay: (x: string | number) => string;
42
+ export declare const formatValue: (value: number | null | undefined) => string;
43
+ export { averageLabel, averageLineLabel, averageShort, formatAxisFigure, formatFigure, longPeriod, periodWordsOf, rootCauseTag, shortPeriod } from "./insightsFormat";
44
+ export type { PeriodWords } from "./insightsFormat";
45
+ /** Change against the previous period: whether it is good depends on the number's direction. */
46
+ export declare function deltaTone(deltaPct: number | null | undefined, goodDirection?: "up" | "down"): "flat" | "good" | "bad";
47
+ export declare const formatDelta: (deltaPct: number | null | undefined) => string;
48
+ export declare const movementLabel: (type: string | null | undefined) => string;
49
+ /** Green when the change moved the right way, red when not, amber when the direction is unknown. */
50
+ export declare function sentimentColor(direction: string | null | undefined, goodDirection?: "up" | "down"): "#d97706" | "#16a34a" | "#dc2626";
51
+ /** Opens the latest report of a row named in a report line (an application, a reviewer, a feature, an environment). */
52
+ export declare const OPEN_INSIGHTS_ENTITY_REPORT = "insights:open-entity-report";
53
+ export declare function useOpenRow(): (link: InsightsItemLink) => void;
54
+ /** API decision lines in the shape RcaDecisionComponent draws. With `open`, the rows a line names are buttons that open their report. */
55
+ export declare const toRcaItems: (items: InsightsDecisionItem[] | null | undefined, open?: ((link: InsightsItemLink) => void) | undefined, tags?: DaRootCauseTagsConfig | null) => RcaDecisionItem[];
56
+ /**
57
+ * Reasoning for a whole report, for the brain button on its Summary and its
58
+ * Decision Advantage header: the report's own explanation, its overall score,
59
+ * and the factors and gaps behind its Root Cause and Next Steps lines.
60
+ * Null when the report carries no reasoning at all.
61
+ */
62
+ export declare function reportDecisioning(report: InsightsReport | null | undefined, explanation?: string | null): RcaDecisioning | null;
63
+ /** Who is viewing, read from the token's claims. Only decides which buttons show; the backend checks again. */
64
+ export declare function viewerFromToken(accessToken?: string): {
65
+ email: string | null;
66
+ isAdmin: boolean;
67
+ };
68
+ /**
69
+ * Runs `load` whenever `deps` change and keeps the latest answer. A newer run
70
+ * aborts the one before, so a slow response never overwrites a newer one.
71
+ */
72
+ export declare function useInsightsFetch<T>(load: ((signal: AbortSignal) => Promise<T>) | null, deps: unknown[], identityKey?: string): {
73
+ data: T | undefined;
74
+ error: Error | undefined;
75
+ loading: boolean;
76
+ reload: () => void;
77
+ updateData: (update: (data: T | undefined) => T | undefined) => void;
78
+ identityKey?: string | undefined;
79
+ };
80
+ /** Shared polling for every Insights write job. */
81
+ export declare function useJob(jobId: string | null, api: DashboardApiConfig | null, onSucceeded?: (reportId: string | null) => void): {
82
+ status: string | null;
83
+ error: string | null;
84
+ };
85
+ //# sourceMappingURL=insightsUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"insightsUtils.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/Insights/insightsUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+D,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpG,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,gBAAgB,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAajE;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,IAAI,EAAE,QAAQ,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,MAAM,CAkCrG;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,SAAS,CAAC,WAAW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nD,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,kBAAkB,GAAG,IAAI,EAAE,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI;YAC7E,MAAM,GAAG,IAAI;WAAS,MAAM,GAAG,IAAI;EA8BjF"}
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import './markdownDocsModal.css';
3
+ export type DocsTabType = 'quick-start' | 'detailed' | 'task-tracking';
4
+ export interface IntegrationDocsMarkdown {
5
+ quickStart?: string;
6
+ detailed?: string;
7
+ taskTracking?: string;
8
+ }
9
+ export interface MarkdownDocsModalProps {
10
+ open: boolean;
11
+ onClose: () => void;
12
+ title?: string;
13
+ subtitle?: string;
14
+ content?: string;
15
+ integrationDocs?: IntegrationDocsMarkdown;
16
+ showQuickStartToggle?: boolean;
17
+ isQuickStart?: boolean;
18
+ onQuickStartToggle?: () => void;
19
+ activeTab?: DocsTabType;
20
+ onTabChange?: (tab: DocsTabType) => void;
21
+ }
22
+ export declare const MarkdownDocsModal: React.FC<MarkdownDocsModalProps>;
23
+ export default MarkdownDocsModal;
24
+ //# sourceMappingURL=%20MarkdownDocsModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":" MarkdownDocsModal.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/IntegrationTracking/ MarkdownDocsModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAiBxC,OAAO,yBAAyB,CAAC;AAEjC,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,UAAU,GAAG,eAAe,CAAC;AAEvE,MAAM,WAAW,uBAAuB;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,uBAAuB,CAAC;IAC1C,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;CAC1C;AA4HD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAmO9D,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,9 @@
1
+ export interface UseModeTrackingStatusResult {
2
+ isChecking: boolean;
3
+ showBanner: boolean;
4
+ message: string;
5
+ isIntegrated: boolean;
6
+ singleMode: string | undefined;
7
+ }
8
+ export declare function useModeTrackingStatus(mode: string | string[] | undefined | null, contextTag?: string, accessToken?: string, eventsBaseUrl?: string, intervalDays?: number): UseModeTrackingStatusResult;
9
+ //# sourceMappingURL=%20useModeTrackingStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":" useModeTrackingStatus.d.ts","sourceRoot":"","sources":["../../../../../src/ExecutiveDashboard/components/IntegrationTracking/ useModeTrackingStatus.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,2BAA2B;IAC1C,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,GAAG,IAAI,EAC1C,UAAU,GAAE,MAAmB,EAC/B,WAAW,CAAC,EAAE,MAAM,EACpB,aAAa,CAAC,EAAE,MAAM,EACtB,YAAY,CAAC,EAAE,MAAM,GACpB,2BAA2B,CA4E7B"}