@e-llm-studio/federated-dashboard-components 0.0.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/README.md +698 -0
  2. package/dist/ExecutiveDashboardWrapper.js +2 -0
  3. package/dist/ExecutiveDashboardWrapper.js.map +1 -0
  4. package/dist/_virtual/_tslib.js +2 -0
  5. package/dist/_virtual/_tslib.js.map +1 -0
  6. package/dist/api/dashboardApi.js +2 -0
  7. package/dist/api/dashboardApi.js.map +1 -0
  8. package/dist/cjs/ExecutiveDashboardWrapper.js +2 -0
  9. package/dist/cjs/ExecutiveDashboardWrapper.js.map +1 -0
  10. package/dist/cjs/_virtual/_tslib.js +2 -0
  11. package/dist/cjs/_virtual/_tslib.js.map +1 -0
  12. package/dist/cjs/api/dashboardApi.js +2 -0
  13. package/dist/cjs/api/dashboardApi.js.map +1 -0
  14. package/dist/cjs/components/DashboardCard/BreakingNewsBanner.js +2 -0
  15. package/dist/cjs/components/DashboardCard/BreakingNewsBanner.js.map +1 -0
  16. package/dist/cjs/components/DashboardCard/CardShell.js +2 -0
  17. package/dist/cjs/components/DashboardCard/CardShell.js.map +1 -0
  18. package/dist/cjs/components/DashboardCard/CenteredCell.js +2 -0
  19. package/dist/cjs/components/DashboardCard/CenteredCell.js.map +1 -0
  20. package/dist/cjs/components/DashboardCard/DashboardCard.js +2 -0
  21. package/dist/cjs/components/DashboardCard/DashboardCard.js.map +1 -0
  22. package/dist/cjs/components/DashboardCard/DetailRow.js +2 -0
  23. package/dist/cjs/components/DashboardCard/DetailRow.js.map +1 -0
  24. package/dist/cjs/components/DashboardCard/EventsSection.js +2 -0
  25. package/dist/cjs/components/DashboardCard/EventsSection.js.map +1 -0
  26. package/dist/cjs/components/DashboardCard/FooterLinkButton.js +2 -0
  27. package/dist/cjs/components/DashboardCard/FooterLinkButton.js.map +1 -0
  28. package/dist/cjs/components/DashboardCard/GridSection.js +2 -0
  29. package/dist/cjs/components/DashboardCard/GridSection.js.map +1 -0
  30. package/dist/cjs/components/DashboardCard/ListSection.js +2 -0
  31. package/dist/cjs/components/DashboardCard/ListSection.js.map +1 -0
  32. package/dist/cjs/components/DashboardCard/SectionHeadingBar.js +2 -0
  33. package/dist/cjs/components/DashboardCard/SectionHeadingBar.js.map +1 -0
  34. package/dist/cjs/components/DashboardCard/SkeletonRow.js +2 -0
  35. package/dist/cjs/components/DashboardCard/SkeletonRow.js.map +1 -0
  36. package/dist/cjs/components/DashboardCard/TagsSection.js +2 -0
  37. package/dist/cjs/components/DashboardCard/TagsSection.js.map +1 -0
  38. package/dist/cjs/components/DashboardCard/TopDropdownMenu.js +2 -0
  39. package/dist/cjs/components/DashboardCard/TopDropdownMenu.js.map +1 -0
  40. package/dist/cjs/components/DashboardCard/sectionContent.js +2 -0
  41. package/dist/cjs/components/DashboardCard/sectionContent.js.map +1 -0
  42. package/dist/cjs/components/DashboardCard/styles/DashboardCardStyles.js +2 -0
  43. package/dist/cjs/components/DashboardCard/styles/DashboardCardStyles.js.map +1 -0
  44. package/dist/cjs/components/DashboardDateFilter/DashboardDateFilter.js +2 -0
  45. package/dist/cjs/components/DashboardDateFilter/DashboardDateFilter.js.map +1 -0
  46. package/dist/cjs/components/DashboardDateFilter/datePreset.js +2 -0
  47. package/dist/cjs/components/DashboardDateFilter/datePreset.js.map +1 -0
  48. package/dist/cjs/components/DashboardSkeleton/DashboardSkeleton.js +2 -0
  49. package/dist/cjs/components/DashboardSkeleton/DashboardSkeleton.js.map +1 -0
  50. package/dist/cjs/components/DatePickers/DatePicker.js +2 -0
  51. package/dist/cjs/components/DatePickers/DatePicker.js.map +1 -0
  52. package/dist/cjs/components/DatePickers/DateRangeSelector.js +2 -0
  53. package/dist/cjs/components/DatePickers/DateRangeSelector.js.map +1 -0
  54. package/dist/cjs/components/DatePickers/DateSelector.js +2 -0
  55. package/dist/cjs/components/DatePickers/DateSelector.js.map +1 -0
  56. package/dist/cjs/components/DropDowns/CustomMultiSelect.js +2 -0
  57. package/dist/cjs/components/DropDowns/CustomMultiSelect.js.map +1 -0
  58. package/dist/cjs/components/DropDowns/CustomSingleSelect.js +2 -0
  59. package/dist/cjs/components/DropDowns/CustomSingleSelect.js.map +1 -0
  60. package/dist/cjs/components/ExecutiveDashboard.js +2 -0
  61. package/dist/cjs/components/ExecutiveDashboard.js.map +1 -0
  62. package/dist/cjs/components/FiltersSidebar/CustomTextInput.js +2 -0
  63. package/dist/cjs/components/FiltersSidebar/CustomTextInput.js.map +1 -0
  64. package/dist/cjs/components/FiltersSidebar/FiltersSidebar.js +2 -0
  65. package/dist/cjs/components/FiltersSidebar/FiltersSidebar.js.map +1 -0
  66. package/dist/cjs/components/Graph/Graph.js +2 -0
  67. package/dist/cjs/components/Graph/Graph.js.map +1 -0
  68. package/dist/cjs/components/Graph/GraphEmptyState.js +2 -0
  69. package/dist/cjs/components/Graph/GraphEmptyState.js.map +1 -0
  70. package/dist/cjs/components/Graph/GraphSkeleton.js +2 -0
  71. package/dist/cjs/components/Graph/GraphSkeleton.js.map +1 -0
  72. package/dist/cjs/components/Graph/LineChart.js +2 -0
  73. package/dist/cjs/components/Graph/LineChart.js.map +1 -0
  74. package/dist/cjs/components/Graph/PlotBySelector.js +2 -0
  75. package/dist/cjs/components/Graph/PlotBySelector.js.map +1 -0
  76. package/dist/cjs/components/Graph/types.js +2 -0
  77. package/dist/cjs/components/Graph/types.js.map +1 -0
  78. package/dist/cjs/components/MetricCard/MetricCard.js +2 -0
  79. package/dist/cjs/components/MetricCard/MetricCard.js.map +1 -0
  80. package/dist/cjs/components/Table/FTable.js +2 -0
  81. package/dist/cjs/components/Table/FTable.js.map +1 -0
  82. package/dist/cjs/components/Table/SortDropdown.js +2 -0
  83. package/dist/cjs/components/Table/SortDropdown.js.map +1 -0
  84. package/dist/cjs/components/Table/TableCard.js +2 -0
  85. package/dist/cjs/components/Table/TableCard.js.map +1 -0
  86. package/dist/cjs/components/Table/TableGrid/TableGrid.js +2 -0
  87. package/dist/cjs/components/Table/TableGrid/TableGrid.js.map +1 -0
  88. package/dist/cjs/components/Table/TableGrid/TableLayoutToggle.js +2 -0
  89. package/dist/cjs/components/Table/TableGrid/TableLayoutToggle.js.map +1 -0
  90. package/dist/cjs/components/Table/TableGrid/spans.js +2 -0
  91. package/dist/cjs/components/Table/TableGrid/spans.js.map +1 -0
  92. package/dist/cjs/components/Table/TableGrid/useResponsiveColumns.js +2 -0
  93. package/dist/cjs/components/Table/TableGrid/useResponsiveColumns.js.map +1 -0
  94. package/dist/cjs/components/ui/chart.js +2 -0
  95. package/dist/cjs/components/ui/chart.js.map +1 -0
  96. package/dist/cjs/components/ui/utils.js +2 -0
  97. package/dist/cjs/components/ui/utils.js.map +1 -0
  98. package/dist/cjs/index.js +2 -0
  99. package/dist/cjs/index.js.map +1 -0
  100. package/dist/cjs/styles.css +1 -0
  101. package/dist/cjs/utils/index.js +2 -0
  102. package/dist/cjs/utils/index.js.map +1 -0
  103. package/dist/cjs/utils/kpiIcon.js +2 -0
  104. package/dist/cjs/utils/kpiIcon.js.map +1 -0
  105. package/dist/cjs/utils/sectionOrder.js +2 -0
  106. package/dist/cjs/utils/sectionOrder.js.map +1 -0
  107. package/dist/cjs/utils/tableColumns.js +2 -0
  108. package/dist/cjs/utils/tableColumns.js.map +1 -0
  109. package/dist/components/DashboardCard/BreakingNewsBanner.js +2 -0
  110. package/dist/components/DashboardCard/BreakingNewsBanner.js.map +1 -0
  111. package/dist/components/DashboardCard/CardShell.js +2 -0
  112. package/dist/components/DashboardCard/CardShell.js.map +1 -0
  113. package/dist/components/DashboardCard/CenteredCell.js +2 -0
  114. package/dist/components/DashboardCard/CenteredCell.js.map +1 -0
  115. package/dist/components/DashboardCard/DashboardCard.js +2 -0
  116. package/dist/components/DashboardCard/DashboardCard.js.map +1 -0
  117. package/dist/components/DashboardCard/DetailRow.js +2 -0
  118. package/dist/components/DashboardCard/DetailRow.js.map +1 -0
  119. package/dist/components/DashboardCard/EventsSection.js +2 -0
  120. package/dist/components/DashboardCard/EventsSection.js.map +1 -0
  121. package/dist/components/DashboardCard/FooterLinkButton.js +2 -0
  122. package/dist/components/DashboardCard/FooterLinkButton.js.map +1 -0
  123. package/dist/components/DashboardCard/GridSection.js +2 -0
  124. package/dist/components/DashboardCard/GridSection.js.map +1 -0
  125. package/dist/components/DashboardCard/ListSection.js +2 -0
  126. package/dist/components/DashboardCard/ListSection.js.map +1 -0
  127. package/dist/components/DashboardCard/SectionHeadingBar.js +2 -0
  128. package/dist/components/DashboardCard/SectionHeadingBar.js.map +1 -0
  129. package/dist/components/DashboardCard/SkeletonRow.js +2 -0
  130. package/dist/components/DashboardCard/SkeletonRow.js.map +1 -0
  131. package/dist/components/DashboardCard/TagsSection.js +2 -0
  132. package/dist/components/DashboardCard/TagsSection.js.map +1 -0
  133. package/dist/components/DashboardCard/TopDropdownMenu.js +2 -0
  134. package/dist/components/DashboardCard/TopDropdownMenu.js.map +1 -0
  135. package/dist/components/DashboardCard/sectionContent.js +2 -0
  136. package/dist/components/DashboardCard/sectionContent.js.map +1 -0
  137. package/dist/components/DashboardCard/styles/DashboardCardStyles.js +2 -0
  138. package/dist/components/DashboardCard/styles/DashboardCardStyles.js.map +1 -0
  139. package/dist/components/DashboardDateFilter/DashboardDateFilter.js +2 -0
  140. package/dist/components/DashboardDateFilter/DashboardDateFilter.js.map +1 -0
  141. package/dist/components/DashboardDateFilter/datePreset.js +2 -0
  142. package/dist/components/DashboardDateFilter/datePreset.js.map +1 -0
  143. package/dist/components/DashboardSkeleton/DashboardSkeleton.js +2 -0
  144. package/dist/components/DashboardSkeleton/DashboardSkeleton.js.map +1 -0
  145. package/dist/components/DatePickers/DatePicker.js +2 -0
  146. package/dist/components/DatePickers/DatePicker.js.map +1 -0
  147. package/dist/components/DatePickers/DateRangeSelector.js +2 -0
  148. package/dist/components/DatePickers/DateRangeSelector.js.map +1 -0
  149. package/dist/components/DatePickers/DateSelector.js +2 -0
  150. package/dist/components/DatePickers/DateSelector.js.map +1 -0
  151. package/dist/components/DropDowns/CustomMultiSelect.js +2 -0
  152. package/dist/components/DropDowns/CustomMultiSelect.js.map +1 -0
  153. package/dist/components/DropDowns/CustomSingleSelect.js +2 -0
  154. package/dist/components/DropDowns/CustomSingleSelect.js.map +1 -0
  155. package/dist/components/ExecutiveDashboard.js +2 -0
  156. package/dist/components/ExecutiveDashboard.js.map +1 -0
  157. package/dist/components/FiltersSidebar/CustomTextInput.js +2 -0
  158. package/dist/components/FiltersSidebar/CustomTextInput.js.map +1 -0
  159. package/dist/components/FiltersSidebar/FiltersSidebar.js +2 -0
  160. package/dist/components/FiltersSidebar/FiltersSidebar.js.map +1 -0
  161. package/dist/components/Graph/Graph.js +2 -0
  162. package/dist/components/Graph/Graph.js.map +1 -0
  163. package/dist/components/Graph/GraphEmptyState.js +2 -0
  164. package/dist/components/Graph/GraphEmptyState.js.map +1 -0
  165. package/dist/components/Graph/GraphSkeleton.js +2 -0
  166. package/dist/components/Graph/GraphSkeleton.js.map +1 -0
  167. package/dist/components/Graph/LineChart.js +2 -0
  168. package/dist/components/Graph/LineChart.js.map +1 -0
  169. package/dist/components/Graph/PlotBySelector.js +2 -0
  170. package/dist/components/Graph/PlotBySelector.js.map +1 -0
  171. package/dist/components/Graph/types.js +2 -0
  172. package/dist/components/Graph/types.js.map +1 -0
  173. package/dist/components/MetricCard/MetricCard.js +2 -0
  174. package/dist/components/MetricCard/MetricCard.js.map +1 -0
  175. package/dist/components/Table/FTable.js +2 -0
  176. package/dist/components/Table/FTable.js.map +1 -0
  177. package/dist/components/Table/SortDropdown.js +2 -0
  178. package/dist/components/Table/SortDropdown.js.map +1 -0
  179. package/dist/components/Table/TableCard.js +2 -0
  180. package/dist/components/Table/TableCard.js.map +1 -0
  181. package/dist/components/Table/TableGrid/TableGrid.js +2 -0
  182. package/dist/components/Table/TableGrid/TableGrid.js.map +1 -0
  183. package/dist/components/Table/TableGrid/TableLayoutToggle.js +2 -0
  184. package/dist/components/Table/TableGrid/TableLayoutToggle.js.map +1 -0
  185. package/dist/components/Table/TableGrid/spans.js +2 -0
  186. package/dist/components/Table/TableGrid/spans.js.map +1 -0
  187. package/dist/components/Table/TableGrid/useResponsiveColumns.js +2 -0
  188. package/dist/components/Table/TableGrid/useResponsiveColumns.js.map +1 -0
  189. package/dist/components/ui/chart.js +2 -0
  190. package/dist/components/ui/chart.js.map +1 -0
  191. package/dist/components/ui/utils.js +2 -0
  192. package/dist/components/ui/utils.js.map +1 -0
  193. package/dist/index.js +2 -0
  194. package/dist/index.js.map +1 -0
  195. package/dist/styles.css +1 -0
  196. package/dist/types/App.d.ts +2 -0
  197. package/dist/types/App.d.ts.map +1 -0
  198. package/dist/types/ExecutiveDashboardWrapper.d.ts +4 -0
  199. package/dist/types/ExecutiveDashboardWrapper.d.ts.map +1 -0
  200. package/dist/types/api/dashboardApi.d.ts +30 -0
  201. package/dist/types/api/dashboardApi.d.ts.map +1 -0
  202. package/dist/types/components/DashboardCard/BreakingNewsBanner.d.ts +9 -0
  203. package/dist/types/components/DashboardCard/BreakingNewsBanner.d.ts.map +1 -0
  204. package/dist/types/components/DashboardCard/CardShell.d.ts +22 -0
  205. package/dist/types/components/DashboardCard/CardShell.d.ts.map +1 -0
  206. package/dist/types/components/DashboardCard/CenteredCell.d.ts +6 -0
  207. package/dist/types/components/DashboardCard/CenteredCell.d.ts.map +1 -0
  208. package/dist/types/components/DashboardCard/DashboardCard.d.ts +5 -0
  209. package/dist/types/components/DashboardCard/DashboardCard.d.ts.map +1 -0
  210. package/dist/types/components/DashboardCard/DetailRow.d.ts +9 -0
  211. package/dist/types/components/DashboardCard/DetailRow.d.ts.map +1 -0
  212. package/dist/types/components/DashboardCard/EventsSection.d.ts +3 -0
  213. package/dist/types/components/DashboardCard/EventsSection.d.ts.map +1 -0
  214. package/dist/types/components/DashboardCard/FooterLinkButton.d.ts +6 -0
  215. package/dist/types/components/DashboardCard/FooterLinkButton.d.ts.map +1 -0
  216. package/dist/types/components/DashboardCard/GridSection.d.ts +3 -0
  217. package/dist/types/components/DashboardCard/GridSection.d.ts.map +1 -0
  218. package/dist/types/components/DashboardCard/ListSection.d.ts +4 -0
  219. package/dist/types/components/DashboardCard/ListSection.d.ts.map +1 -0
  220. package/dist/types/components/DashboardCard/SectionHeadingBar.d.ts +9 -0
  221. package/dist/types/components/DashboardCard/SectionHeadingBar.d.ts.map +1 -0
  222. package/dist/types/components/DashboardCard/SkeletonRow.d.ts +3 -0
  223. package/dist/types/components/DashboardCard/SkeletonRow.d.ts.map +1 -0
  224. package/dist/types/components/DashboardCard/TagsSection.d.ts +3 -0
  225. package/dist/types/components/DashboardCard/TagsSection.d.ts.map +1 -0
  226. package/dist/types/components/DashboardCard/TopDropdownMenu.d.ts +6 -0
  227. package/dist/types/components/DashboardCard/TopDropdownMenu.d.ts.map +1 -0
  228. package/dist/types/components/DashboardCard/sectionContent.d.ts +4 -0
  229. package/dist/types/components/DashboardCard/sectionContent.d.ts.map +1 -0
  230. package/dist/types/components/DashboardCard/styles/DashboardCardStyles.d.ts +17 -0
  231. package/dist/types/components/DashboardCard/styles/DashboardCardStyles.d.ts.map +1 -0
  232. package/dist/types/components/DashboardCard/types.d.ts +156 -0
  233. package/dist/types/components/DashboardCard/types.d.ts.map +1 -0
  234. package/dist/types/components/DashboardDateFilter/DashboardDateFilter.d.ts +41 -0
  235. package/dist/types/components/DashboardDateFilter/DashboardDateFilter.d.ts.map +1 -0
  236. package/dist/types/components/DashboardDateFilter/DashboardDateFilter.types.d.ts +18 -0
  237. package/dist/types/components/DashboardDateFilter/DashboardDateFilter.types.d.ts.map +1 -0
  238. package/dist/types/components/DashboardDateFilter/datePreset.d.ts +90 -0
  239. package/dist/types/components/DashboardDateFilter/datePreset.d.ts.map +1 -0
  240. package/dist/types/components/DashboardSkeleton/DashboardSkeleton.d.ts +4 -0
  241. package/dist/types/components/DashboardSkeleton/DashboardSkeleton.d.ts.map +1 -0
  242. package/dist/types/components/DatePickers/DatePicker.d.ts +10 -0
  243. package/dist/types/components/DatePickers/DatePicker.d.ts.map +1 -0
  244. package/dist/types/components/DatePickers/DateRangeSelector.d.ts +20 -0
  245. package/dist/types/components/DatePickers/DateRangeSelector.d.ts.map +1 -0
  246. package/dist/types/components/DatePickers/DateSelector.d.ts +19 -0
  247. package/dist/types/components/DatePickers/DateSelector.d.ts.map +1 -0
  248. package/dist/types/components/DropDowns/CustomMultiSelect.d.ts +17 -0
  249. package/dist/types/components/DropDowns/CustomMultiSelect.d.ts.map +1 -0
  250. package/dist/types/components/DropDowns/CustomSingleSelect.d.ts +16 -0
  251. package/dist/types/components/DropDowns/CustomSingleSelect.d.ts.map +1 -0
  252. package/dist/types/components/ExecutiveDashboard.d.ts +56 -0
  253. package/dist/types/components/ExecutiveDashboard.d.ts.map +1 -0
  254. package/dist/types/components/FiltersSidebar/CustomTextInput.d.ts +12 -0
  255. package/dist/types/components/FiltersSidebar/CustomTextInput.d.ts.map +1 -0
  256. package/dist/types/components/FiltersSidebar/FiltersSidebar.d.ts +34 -0
  257. package/dist/types/components/FiltersSidebar/FiltersSidebar.d.ts.map +1 -0
  258. package/dist/types/components/Graph/Graph.d.ts +4 -0
  259. package/dist/types/components/Graph/Graph.d.ts.map +1 -0
  260. package/dist/types/components/Graph/GraphEmptyState.d.ts +11 -0
  261. package/dist/types/components/Graph/GraphEmptyState.d.ts.map +1 -0
  262. package/dist/types/components/Graph/GraphSkeleton.d.ts +10 -0
  263. package/dist/types/components/Graph/GraphSkeleton.d.ts.map +1 -0
  264. package/dist/types/components/Graph/LineChart.d.ts +25 -0
  265. package/dist/types/components/Graph/LineChart.d.ts.map +1 -0
  266. package/dist/types/components/Graph/PlotBySelector.d.ts +17 -0
  267. package/dist/types/components/Graph/PlotBySelector.d.ts.map +1 -0
  268. package/dist/types/components/Graph/types.d.ts +217 -0
  269. package/dist/types/components/Graph/types.d.ts.map +1 -0
  270. package/dist/types/components/MetricCard/MetricCard.d.ts +49 -0
  271. package/dist/types/components/MetricCard/MetricCard.d.ts.map +1 -0
  272. package/dist/types/components/Table/FTable.d.ts +49 -0
  273. package/dist/types/components/Table/FTable.d.ts.map +1 -0
  274. package/dist/types/components/Table/SortDropdown.d.ts +13 -0
  275. package/dist/types/components/Table/SortDropdown.d.ts.map +1 -0
  276. package/dist/types/components/Table/TableCard.d.ts +35 -0
  277. package/dist/types/components/Table/TableCard.d.ts.map +1 -0
  278. package/dist/types/components/Table/TableGrid/TableGrid.d.ts +54 -0
  279. package/dist/types/components/Table/TableGrid/TableGrid.d.ts.map +1 -0
  280. package/dist/types/components/Table/TableGrid/TableLayoutToggle.d.ts +20 -0
  281. package/dist/types/components/Table/TableGrid/TableLayoutToggle.d.ts.map +1 -0
  282. package/dist/types/components/Table/TableGrid/spans.d.ts +15 -0
  283. package/dist/types/components/Table/TableGrid/spans.d.ts.map +1 -0
  284. package/dist/types/components/Table/TableGrid/useResponsiveColumns.d.ts +17 -0
  285. package/dist/types/components/Table/TableGrid/useResponsiveColumns.d.ts.map +1 -0
  286. package/dist/types/components/ui/chart.d.ts +72 -0
  287. package/dist/types/components/ui/chart.d.ts.map +1 -0
  288. package/dist/types/components/ui/utils.d.ts +7 -0
  289. package/dist/types/components/ui/utils.d.ts.map +1 -0
  290. package/dist/types/constant/index.d.ts +5 -0
  291. package/dist/types/constant/index.d.ts.map +1 -0
  292. package/dist/types/index.d.ts +38 -0
  293. package/dist/types/index.d.ts.map +1 -0
  294. package/dist/types/types/index.d.ts +357 -0
  295. package/dist/types/types/index.d.ts.map +1 -0
  296. package/dist/types/utils/index.d.ts +65 -0
  297. package/dist/types/utils/index.d.ts.map +1 -0
  298. package/dist/types/utils/kpiIcon.d.ts +4 -0
  299. package/dist/types/utils/kpiIcon.d.ts.map +1 -0
  300. package/dist/types/utils/sectionOrder.d.ts +43 -0
  301. package/dist/types/utils/sectionOrder.d.ts.map +1 -0
  302. package/dist/types/utils/tableColumns.d.ts +16 -0
  303. package/dist/types/utils/tableColumns.d.ts.map +1 -0
  304. package/dist/utils/index.js +2 -0
  305. package/dist/utils/index.js.map +1 -0
  306. package/dist/utils/kpiIcon.js +2 -0
  307. package/dist/utils/kpiIcon.js.map +1 -0
  308. package/dist/utils/sectionOrder.js +2 -0
  309. package/dist/utils/sectionOrder.js.map +1 -0
  310. package/dist/utils/tableColumns.js +2 -0
  311. package/dist/utils/tableColumns.js.map +1 -0
  312. package/package.json +122 -0
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Sections the host can re-order, in default render order. These are exactly
3
+ * the keys the sections arrive under in the UI config payload, so a caller
4
+ * passes whatever key it already has.
5
+ *
6
+ * `dateFilters` and `sidebarFilters` are deliberately absent: their position is
7
+ * fixed (top bar / overlay). They can still be hidden — see
8
+ * `PINNED_SECTION_KEYS` and `isSectionHidden`.
9
+ *
10
+ * When the backend grows a new section, adding its renderer to the
11
+ * `sectionNodes` map in `ExecutiveDashboard` is enough — ordering then works for
12
+ * that key with no change here. This constant is the standalone default; the
13
+ * dashboard passes its own map keys so the two can't drift.
14
+ */
15
+ export declare const DASHBOARD_SECTION_KEYS: string[];
16
+ /**
17
+ * Parts whose position is fixed: the date filter bar is pinned to the top and
18
+ * the filters sidebar is an overlay. Passing them in `sectionOrder` is a no-op,
19
+ * but `hiddenSections` still hides them.
20
+ */
21
+ export declare const PINNED_SECTION_KEYS: string[];
22
+ /**
23
+ * Is `key` listed in a `hiddenSections`-style list? Works for any key, which is
24
+ * how the pinned parts get hidden — they never appear in the resolved order, so
25
+ * the dashboard checks them directly.
26
+ */
27
+ export declare function isSectionHidden(hidden: unknown, key: string): boolean;
28
+ /**
29
+ * Resolves the order the dashboard sections render in.
30
+ *
31
+ * - `order` is the host's list; it wins over `configOrder` from the API payload.
32
+ * - Partial lists are fine — anything not listed is appended in `available`
33
+ * order, so `["tableBuilder"]` means "tables first, then the rest as usual".
34
+ * - `hidden` drops sections, applied last.
35
+ * - Names match case-insensitively and ignore spaces/underscores/dashes.
36
+ * - `dateFilters` / `sidebarFilters` are accepted and ignored (both are pinned),
37
+ * so the config's key list can be passed verbatim.
38
+ * - Unknown names are ignored rather than throwing, since these lists are
39
+ * config-driven. `available` comes from the dashboard's section map, so a
40
+ * newly added section is orderable the moment it can render.
41
+ */
42
+ export declare function resolveSectionOrder(order?: unknown, hidden?: unknown, configOrder?: unknown, available?: string[]): string[];
43
+ //# sourceMappingURL=sectionOrder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sectionOrder.d.ts","sourceRoot":"","sources":["../../../src/utils/sectionOrder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,UAIlC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,UAAoC,CAAC;AASrE;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAIrE;AAqDD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,CAAC,EAAE,OAAO,EACf,MAAM,CAAC,EAAE,OAAO,EAChB,WAAW,CAAC,EAAE,OAAO,EACrB,SAAS,GAAE,MAAM,EAA2B,GAC3C,MAAM,EAAE,CAYV"}
@@ -0,0 +1,16 @@
1
+ import type { FTableColumn, TableRow } from "../components/Table/FTable";
2
+ import type { DashboardTableRenderConfig, TableBuilderConfig } from "../types";
3
+ /**
4
+ * FTable keys rows by `id` (`dataKey="id"`), which the data API rows don't
5
+ * carry. Inject a stable synthetic `id` (falling back to the array index) plus
6
+ * a 1-based `__rank` for the optional rank column. Existing `id` values are
7
+ * preserved.
8
+ */
9
+ export declare function withRowIds(rows?: TableRow[]): TableRow[];
10
+ /**
11
+ * Build the final column list for a table: an optional rank column (per
12
+ * `tableBuilder.showRankColumn`) followed by either the host app's columns
13
+ * or the auto-generated fallback when none were supplied.
14
+ */
15
+ export declare function buildColumns(cfg: TableBuilderConfig, render?: DashboardTableRenderConfig): FTableColumn[];
16
+ //# sourceMappingURL=tableColumns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tableColumns.d.ts","sourceRoot":"","sources":["../../../src/utils/tableColumns.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,KAAK,EACV,0BAA0B,EAC1B,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAElB;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,IAAI,GAAE,QAAQ,EAAO,GAAG,QAAQ,EAAE,CAM5D;AAoCD;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,GAAG,EAAE,kBAAkB,EACvB,MAAM,CAAC,EAAE,0BAA0B,GAClC,YAAY,EAAE,CAOhB"}
@@ -0,0 +1,2 @@
1
+ var r=[{value:1e12,suffix:"T"},{value:1e9,suffix:"B"},{value:1e6,suffix:"M"},{value:1e3,suffix:"K"}];function e(r,e){return r.toFixed(e).replace(/\.0+$/,"").replace(/(\.\d*[1-9])0+$/,"$1")}function t(t){if(!Number.isFinite(t))return"";for(var n=Math.abs(t),i=0;i<r.length;i++){var u=r[i];if(!(n<u.value)){var a=t/u.value,l=Math.abs(a)<100?1:0;if(i>0&&Math.abs(Number(a.toFixed(l)))>=1e3){var f=r[i-1];return e(a=t/f.value,l=Math.abs(a)<100?1:0)+f.suffix}return e(a,l)+u.suffix}}return Number.isInteger(t)?t.toLocaleString():Number(t.toFixed(2)).toLocaleString()}function n(r){return"object"==typeof r&&null!==r&&!Array.isArray(r)&&"currentValue"in r}function i(r){if(null!=r&&""!==r){var e=Number(r);return Number.isFinite(e)?e:void 0}}function u(r,e,t){if("higher_better"!==t&&"lower_better"!==t)return"neutral";var n=i(r),u=i(e);if(void 0===n||void 0===u)return"neutral";var a=n-u;return 0===a?"neutral":"higher_better"===t===a>0?"positive":"negative"}var a={positive:"#059669",negative:"#dc2626"};function l(r,e,t,n){var i,l=u(r,e,t);if("neutral"!==l)return null!==(i=null==n?void 0:n[l])&&void 0!==i?i:a[l]}function f(r,e,t){var n=i(r),a=i(e);if(void 0!==n&&void 0!==a&&0!==a){var l=(n-a)/Math.abs(a)*100;if(Number.isFinite(l)){var f=l>0?"up":l<0?"down":"flat",o=Math.abs(l);return{percent:l,direction:f,sentiment:u(r,e,t),label:o>0&&o<.1?"<0.1%":"".concat(Number(o.toFixed(1)),"%")}}}}function o(r,e){if(n(r))return o(r.currentValue,e);if(null==r||""===r)return"";if("string"==typeof r&&/[a-zA-Z%]/.test(r))return"dollar"!==e||r.startsWith("$")?r:"$".concat(r);var i=Number(r);if(Number.isNaN(i))return String(r);var u=t(i);switch(e){case"dollar":return"$".concat(u);case"percent":return"".concat(u,"%");default:return u}}function v(r){return Object.values(r).filter(function(r){return Array.isArray(r)?r.length>0:null!=r&&""!==r}).length}export{a as KPI_SENTIMENT_COLORS,t as compactNumber,o as formatKpiValue,v as getActiveFilterCount,f as getKpiDelta,u as getKpiSentiment,l as getKpiValueColor,n as isKpiValueObject};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{jsx as r}from"react/jsx-runtime";import{Activity as e,Airplay as a,AlarmClock as o,Archive as t,ArrowDown as c,ArrowLeft as i,ArrowRight as l,ArrowUp as n,AtSign as d,Award as h,BadgeCheck as p,Banknote as u,BarChart as s,BarChart2 as b,BarChart3 as g,Battery as m,Bell as k,Bike as f,Book as w,Bookmark as v,Briefcase as y,Building as x,Building2 as j,Bus as z,Calendar as q,Camera as A,Car as B,Check as C,CheckCheck as D,ChevronDown as E,ChevronLeft as F,ChevronRight as G,ChevronUp as H,Circle as I,Clipboard as J,ClipboardCheck as K,Clock as L,Cloud as M,CloudRain as N,Code as O,Cog as P,Cpu as Q,CreditCard as R,Database as S,DollarSign as T,Download as U,Edit as V,Eye as W,File as X,FileText as Y,Filter as Z,Flag as $,Folder as _,Gift as rr,Globe as er,GraduationCap as ar,Hammer as or,HardDrive as tr,Heart as cr,HelpCircle as ir,Home as lr,Image as nr,Inbox as dr,Info as hr,Key as pr,Laptop as ur,LayoutDashboard as sr,LifeBuoy as br,Lightbulb as gr,Link as mr,List as kr,Loader as fr,Lock as wr,LogIn as vr,LogOut as yr,Mail as xr,Map as jr,Menu as zr,MessageCircle as qr,Mic as Ar,Monitor as Br,Moon as Cr,MoreHorizontal as Dr,Package as Er,PenTool as Fr,Percent as Gr,Phone as Hr,PieChart as Ir,Pin as Jr,Play as Kr,Plus as Lr,Printer as Mr,Rocket as Nr,Search as Or,Send as Pr,Settings as Qr,Shield as Rr,ShoppingCart as Sr,Smartphone as Tr,Star as Ur,Sun as Vr,Tag as Wr,Target as Xr,Trash as Yr,TrendingDown as Zr,TrendingUp as $r,Truck as _r,Upload as re,User as ee,UserCheck as ae,UserCog as oe,UserPlus as te,Users as ce,Wallet as ie,Wifi as le,Wrench as ne,X as de,Zap as he}from"lucide-react";var pe={activity:r(e,{}),airplay:r(a,{}),alarm:r(o,{}),archive:r(t,{}),"arrow-down":r(c,{}),"arrow-left":r(i,{}),"arrow-right":r(l,{}),"arrow-up":r(n,{}),at:r(d,{}),award:r(h,{}),badge:r(p,{}),banknote:r(u,{}),"bar-chart":r(s,{}),"bar-chart-2":r(b,{}),"chart-bar":r(g,{}),battery:r(m,{}),bell:r(k,{}),bike:r(f,{}),book:r(w,{}),bookmark:r(v,{}),briefcase:r(y,{}),building:r(x,{}),building2:r(j,{}),bus:r(z,{}),calendar:r(q,{}),camera:r(A,{}),car:r(B,{}),check:r(C,{}),"check-check":r(D,{}),"chevron-down":r(E,{}),"chevron-left":r(F,{}),"chevron-right":r(G,{}),"chevron-up":r(H,{}),circle:r(I,{}),clipboard:r(J,{}),"clipboard-check":r(K,{}),clock:r(L,{}),cloud:r(M,{}),rain:r(N,{}),code:r(O,{}),cog:r(P,{}),cpu:r(Q,{}),"credit-card":r(R,{}),database:r(S,{}),dollar:r(T,{}),download:r(U,{}),edit:r(V,{}),eye:r(W,{}),file:r(X,{}),"file-text":r(Y,{}),filter:r(Z,{}),flag:r($,{}),folder:r(_,{}),gift:r(rr,{}),globe:r(er,{}),graduation:r(ar,{}),hammer:r(or,{}),harddrive:r(tr,{}),heart:r(cr,{}),help:r(ir,{}),home:r(lr,{}),image:r(nr,{}),inbox:r(dr,{}),info:r(hr,{}),key:r(pr,{}),laptop:r(ur,{}),dashboard:r(sr,{}),lifebuoy:r(br,{}),bulb:r(gr,{}),link:r(mr,{}),list:r(kr,{}),loader:r(fr,{}),lock:r(wr,{}),login:r(vr,{}),logout:r(yr,{}),mail:r(xr,{}),map:r(jr,{}),menu:r(zr,{}),message:r(qr,{}),mic:r(Ar,{}),monitor:r(Br,{}),moon:r(Cr,{}),more:r(Dr,{}),package:r(Er,{}),pentool:r(Fr,{}),percent:r(Gr,{}),phone:r(Hr,{}),"pie-chart":r(Ir,{}),pin:r(Jr,{}),play:r(Kr,{}),plus:r(Lr,{}),printer:r(Mr,{}),rocket:r(Nr,{}),search:r(Or,{}),send:r(Pr,{}),settings:r(Qr,{}),shield:r(Rr,{}),cart:r(Sr,{}),smartphone:r(Tr,{}),star:r(Ur,{}),sun:r(Vr,{}),tag:r(Wr,{}),target:r(Xr,{}),trash:r(Yr,{}),"trending-down":r(Zr,{}),"trending-up":r($r,{}),truck:r(_r,{}),upload:r(re,{}),user:r(ee,{}),"user-check":r(ae,{}),"user-cog":r(oe,{}),"user-plus":r(te,{}),users:r(ce,{}),wallet:r(ie,{}),wifi:r(le,{}),wrench:r(ne,{}),close:r(de,{}),zap:r(he,{})};function ue(r){if(r)return pe[r]}export{pe as ICON_MAP,ue as getKpiIcon};
2
+ //# sourceMappingURL=kpiIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kpiIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__spreadArray as r}from"../_virtual/_tslib.js";var n=["graphBuilder","kpiCards","tableBuilder"],e=["dateFilters","sidebarFilters"];function t(r){if("string"!=typeof r)return null;var n=r.trim().toLowerCase().replace(/[\s_-]/g,"");return n.length?n:null}function i(r,n){if(!Array.isArray(r))return!1;var e=t(n);return null!=e&&r.some(function(r){return t(r)===e})}function o(r,n,e){n.length&&"production"!==process.env.NODE_ENV&&console.warn("[federated-dashboard] ".concat(r,": ignored unrecognized section ")+"".concat(1===n.length?"name":"names"," ").concat(n.map(function(r){return JSON.stringify(r)}).join(", "),". Available sections: ").concat(e.join(", "),"."))}function a(r,n,i){if(null==r)return[];if(!Array.isArray(r))return o(i,[r],n),[];var a=new Map;n.forEach(function(r){var n=t(r);n&&a.set(n,r)});for(var u=new Set(e.map(t)),c=[],s=[],l=0,f=r;l<f.length;l++){var d=f[l],g=t(d),p=g?a.get(g):void 0;p?c.includes(p)||c.push(p):g&&u.has(g)||s.push(d)}return o(i,s,n),c}function u(e,t,i,o){void 0===o&&(o=n);var u=a(e,o,"sectionOrder"),c=u.length?u:a(i,o,"uiConfig.data.sectionOrder"),s=a(t,o,"hiddenSections");return r(r([],c,!0),o.filter(function(r){return!c.includes(r)}),!0).filter(function(r){return!s.includes(r)})}export{n as DASHBOARD_SECTION_KEYS,e as PINNED_SECTION_KEYS,i as isSectionHidden,u as resolveSectionOrder};
2
+ //# sourceMappingURL=sectionOrder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sectionOrder.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as n,__spreadArray as l}from"../_virtual/_tslib.js";import{jsx as t}from"react/jsx-runtime";function e(l){return void 0===l&&(l=[]),l.map(function(l,t){var e;return n({__rank:t+1,id:null!==(e=null==l?void 0:l.id)&&void 0!==e?e:String(t)},l)})}function i(e,i){var r=(null==i?void 0:i.columns)&&i.columns.length>0?i.columns:function(l){var e;return(null!==(e=l.columns)&&void 0!==e?e:[]).map(function(l){var e,i,r,d=null!==(i=null===(e=l.columnName)||void 0===e?void 0:e[0])&&void 0!==i?i:l.key;return{key:l.key,header:t("div",n({style:{width:"100%",textAlign:"left"}},{children:null!==(r=l.label)&&void 0!==r?r:d})),style:{textAlign:"left"},headerStyle:{padding:"8px 12px",textAlign:"left"},bodyStyle:{padding:"8px 12px",height:44},body:function(n){var l;return t("span",{children:null!==(l=null==n?void 0:n[d])&&void 0!==l?l:""})}}})}(e);return e.showRankColumn?l([{key:"__rank",header:t("div",n({style:{width:"100%",textAlign:"left"}},{children:"No"})),style:{width:56,textAlign:"left"},headerStyle:{padding:"8px 12px",textAlign:"left"},bodyStyle:{padding:"8px 12px",height:44},body:function(n){var l;return t("span",{children:null!==(l=n.__rank)&&void 0!==l?l:0})}}],r,!0):r}export{i as buildColumns,e as withRowIds};
2
+ //# sourceMappingURL=tableColumns.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tableColumns.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,122 @@
1
+ {
2
+ "name": "@e-llm-studio/federated-dashboard-components",
3
+ "version": "0.0.1-alpha.0",
4
+ "author": "Hitesh Rathi",
5
+ "description": "",
6
+ "license": "MIT",
7
+ "main": "dist/cjs/index.js",
8
+ "module": "dist/index.js",
9
+ "style": "dist/styles.css",
10
+ "sideEffects": [
11
+ "dist/styles.css"
12
+ ],
13
+ "types": "dist/index.d.ts",
14
+ "publishConfig": {
15
+ "access": "public"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/Techolution/e-llm-studio-lib.git"
20
+ },
21
+ "keywords": [
22
+ "e-llm-studio-lib"
23
+ ],
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "scripts": {
28
+ "start": "craco start",
29
+ "build": "rollup -c",
30
+ "tsupBuild": "tsup src/index.ts",
31
+ "test": "craco test",
32
+ "eject": "craco eject",
33
+ "format:changed": "npx lint-staged"
34
+ },
35
+ "lint-staged": {
36
+ "*.{js,jsx,ts,tsx,json,css,md}": "prettier --write"
37
+ },
38
+ "eslintConfig": {
39
+ "extends": [
40
+ "react-app",
41
+ "react-app/jest"
42
+ ]
43
+ },
44
+ "browserslist": {
45
+ "production": [
46
+ ">0.2%",
47
+ "not dead",
48
+ "not op_mini all"
49
+ ],
50
+ "development": [
51
+ "last 1 chrome version",
52
+ "last 1 firefox version",
53
+ "last 1 safari version"
54
+ ]
55
+ },
56
+ "tsup": {
57
+ "entry": [
58
+ "src/index.ts"
59
+ ],
60
+ "format": [
61
+ "esm",
62
+ "cjs"
63
+ ],
64
+ "dts": true,
65
+ "minify": true,
66
+ "sourcemap": true,
67
+ "clean": true
68
+ },
69
+ "exports": {
70
+ ".": {
71
+ "import": "./dist/index.js",
72
+ "require": "./dist/cjs/index.js",
73
+ "types": "./dist/types/index.d.ts"
74
+ },
75
+ "./dist/styles.css": "./dist/styles.css"
76
+ },
77
+ "devDependencies": {
78
+ "@babel/plugin-transform-runtime": "^7.25.9",
79
+ "@babel/preset-react": "7.26.3",
80
+ "@babel/preset-typescript": "7.26.0",
81
+ "@rollup/plugin-commonjs": "28.0.2",
82
+ "@rollup/plugin-json": "6.1.0",
83
+ "@rollup/plugin-node-resolve": "13.3.0",
84
+ "@rollup/plugin-strip": "3.0.4",
85
+ "@rollup/plugin-typescript": "^12.3.0",
86
+ "@rollup/plugin-url": "^8.0.2",
87
+ "@svgr/rollup": "8.1.0",
88
+ "@types/react": "^18.3.0",
89
+ "@types/react-dom": "^18.3.0",
90
+ "@types/react-syntax-highlighter": "^15.5.13",
91
+ "axios": "1.7.9",
92
+ "postcss-import": "^16.1.1",
93
+ "prettier": "^3.7.4",
94
+ "react": "^18.3.1",
95
+ "react-dom": "^18.3.1",
96
+ "react-router-dom": "^7.6.2",
97
+ "react-scripts": ">=5.0.1",
98
+ "rollup": "2.79.2",
99
+ "rollup-plugin-babel": "4.4.0",
100
+ "rollup-plugin-peer-deps-external": "2.2.4",
101
+ "rollup-plugin-polyfill-node": "0.13.0",
102
+ "rollup-plugin-postcss": "4.0.2",
103
+ "rollup-plugin-terser": "7.0.2",
104
+ "rollup-plugin-typescript2": "0.36.0",
105
+ "rollup-plugin-visualizer": "5.12.0",
106
+ "recharts": "^2.15.4",
107
+ "ts-loader": "9.5.1",
108
+ "typescript": "4.9.5"
109
+ },
110
+ "peerDependencies": {
111
+ "lucide-react": "^0.476.0",
112
+ "primeicons": "^7.0.0",
113
+ "primereact": "^10.9.7",
114
+ "react": "^18.3.1",
115
+ "react-dom": "^18.3.1",
116
+ "react-router-dom": "^7.6.2",
117
+ "recharts": "^2.13.0"
118
+ },
119
+ "dependencies": {
120
+ "@craco/craco": "^7.1.0"
121
+ }
122
+ }