@e-llm-studio/federated-dashboard-components 1.0.7 → 1.0.9
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.
- package/README.md +698 -0
- package/dist/ExecutiveDashboard/ExecutiveDashboardWrapper.js +2 -0
- package/dist/ExecutiveDashboard/ExecutiveDashboardWrapper.js.map +1 -0
- package/dist/ExecutiveDashboard/api/dashboardApi.js +2 -0
- package/dist/ExecutiveDashboard/api/dashboardApi.js.map +1 -0
- package/dist/ExecutiveDashboard/components/DashboardCard/BreakingNewsBanner.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardCard/CardShell.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardCard/CenteredCell.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardCard/DashboardCard.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardCard/DetailRow.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardCard/EventsSection.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardCard/FooterLinkButton.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardCard/GridSection.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardCard/ListSection.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardCard/SectionHeadingBar.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardCard/SkeletonRow.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardCard/TagsSection.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardCard/TopDropdownMenu.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/datePreset.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardSkeleton/DashboardSkeleton.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardSkeleton/DashboardSkeleton.js.map +1 -0
- package/dist/ExecutiveDashboard/components/DatePickers/DatePicker.js +2 -0
- package/dist/ExecutiveDashboard/components/DatePickers/DateRangeSelector.js +2 -0
- package/dist/ExecutiveDashboard/components/DatePickers/DateSelector.js +2 -0
- package/dist/ExecutiveDashboard/components/DropDowns/CustomMultiSelect.js +2 -0
- package/dist/ExecutiveDashboard/components/DropDowns/CustomSingleSelect.js +2 -0
- package/dist/ExecutiveDashboard/components/ExecutiveDashboard.js +2 -0
- package/dist/ExecutiveDashboard/components/ExecutiveDashboard.js.map +1 -0
- package/dist/ExecutiveDashboard/components/FiltersSidebar/CustomTextInput.js +2 -0
- package/dist/ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.js +2 -0
- package/dist/ExecutiveDashboard/components/Graph/Graph.js +2 -0
- package/dist/ExecutiveDashboard/components/Graph/GraphEmptyState.js +2 -0
- package/dist/ExecutiveDashboard/components/Graph/GraphEmptyState.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Graph/GraphSkeleton.js +2 -0
- package/dist/ExecutiveDashboard/components/Graph/GraphSkeleton.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Graph/LineChart.js +2 -0
- package/dist/ExecutiveDashboard/components/Graph/PlotBySelector.js +2 -0
- package/dist/ExecutiveDashboard/components/Graph/Seperator.js +2 -0
- package/dist/ExecutiveDashboard/components/Graph/Seperator.js.map +1 -0
- package/dist/ExecutiveDashboard/components/MetricCard/MetricCard.js +2 -0
- package/dist/ExecutiveDashboard/components/Table/FTable.js +2 -0
- package/dist/ExecutiveDashboard/components/Table/SortDropdown.js +2 -0
- package/dist/ExecutiveDashboard/components/Table/TableCard.js +2 -0
- package/dist/ExecutiveDashboard/components/Table/TableGrid/TableGrid.js +2 -0
- package/dist/ExecutiveDashboard/components/Table/TableGrid/TableGrid.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Table/TableGrid/TableLayoutToggle.js +2 -0
- package/dist/ExecutiveDashboard/components/Table/TableGrid/TableLayoutToggle.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Table/TableGrid/spans.js +2 -0
- package/dist/ExecutiveDashboard/components/Table/TableGrid/spans.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Table/TableGrid/useResponsiveColumns.js +2 -0
- package/dist/ExecutiveDashboard/components/Table/TableGrid/useResponsiveColumns.js.map +1 -0
- package/dist/ExecutiveDashboard/components/ui/chart.js +2 -0
- package/dist/ExecutiveDashboard/hooks/useVisibilityPolling.js +2 -0
- package/dist/ExecutiveDashboard/hooks/useVisibilityPolling.js.map +1 -0
- package/dist/ExecutiveDashboard/utils/index.js +2 -0
- package/dist/ExecutiveDashboard/utils/index.js.map +1 -0
- package/dist/ExecutiveDashboard/utils/kpiIcon.js +2 -0
- package/dist/ExecutiveDashboard/utils/kpiIcon.js.map +1 -0
- package/dist/ExecutiveDashboard/utils/sectionOrder.js +2 -0
- package/dist/ExecutiveDashboard/utils/sectionOrder.js.map +1 -0
- package/dist/ExecutiveDashboard/utils/tableColumns.js +2 -0
- package/dist/ExecutiveDashboard/utils/tableColumns.js.map +1 -0
- package/dist/RecordDashboard/RecordApi/RecordDashboardApi.js +2 -0
- package/dist/RecordDashboard/RecordApi/RecordDashboardApi.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/AnalyticsChart/AnalyticsChart.js +2 -0
- package/dist/RecordDashboard/RecordComponents/AnalyticsChart/AnalyticsChart.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordBreakingNewsBanner.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordBreakingNewsBanner.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordCardShell.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordCardShell.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordCenteredCell.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordCenteredCell.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordDashboardCard.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordDashboardCard.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordDetailRow.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordDetailRow.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordEventsSection.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordEventsSection.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordFooterLinkButton.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordFooterLinkButton.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordGridSection.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordGridSection.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordListSection.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordListSection.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordSectionContent.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordSectionContent.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordSectionHeadingBar.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordSectionHeadingBar.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordSkeletonRow.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordSkeletonRow.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordTagsSection.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordTagsSection.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordTopDropdownMenu.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/RecordTopDropdownMenu.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/styles/RecordDashboardCardStyles.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DashboardCard/styles/RecordDashboardCardStyles.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DashboardDateFilter/RecordDashboardDateFilter.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DashboardDateFilter/RecordDashboardDateFilter.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DashboardDateFilter/RecordDatePreset.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DashboardDateFilter/RecordDatePreset.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DashboardSkeleton/RecordDashboardSkeleton.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DashboardSkeleton/RecordDashboardSkeleton.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DatePickers/RecordDatePicker.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DatePickers/RecordDatePicker.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DatePickers/RecordDateRangeSelector.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DatePickers/RecordDateRangeSelector.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DatePickers/RecordDateSelector.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DatePickers/RecordDateSelector.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DropDowns/RecordCustomMultiSelect.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DropDowns/RecordCustomMultiSelect.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/DropDowns/RecordCustomSingleSelect.js +2 -0
- package/dist/RecordDashboard/RecordComponents/DropDowns/RecordCustomSingleSelect.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/FiltersSidebar/RecordCustomTextInput.js +2 -0
- package/dist/RecordDashboard/RecordComponents/FiltersSidebar/RecordCustomTextInput.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/FiltersSidebar/RecordFiltersSidebar.js +2 -0
- package/dist/RecordDashboard/RecordComponents/FiltersSidebar/RecordFiltersSidebar.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/Graph/RecordGraph.js +2 -0
- package/dist/RecordDashboard/RecordComponents/Graph/RecordGraph.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/Graph/RecordGraphEmptyState.js +2 -0
- package/dist/RecordDashboard/RecordComponents/Graph/RecordGraphEmptyState.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/Graph/RecordGraphSkeleton.js +2 -0
- package/dist/RecordDashboard/RecordComponents/Graph/RecordGraphSkeleton.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/Graph/RecordLineChart.js +2 -0
- package/dist/RecordDashboard/RecordComponents/Graph/RecordLineChart.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/Graph/RecordPlotBySelector.js +2 -0
- package/dist/RecordDashboard/RecordComponents/Graph/RecordPlotBySelector.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/Graph/types.js +2 -0
- package/dist/RecordDashboard/RecordComponents/MetricCard/RecordMetricCard.js +2 -0
- package/dist/RecordDashboard/RecordComponents/MetricCard/RecordMetricCard.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/RecordDashboard.js +2 -0
- package/dist/RecordDashboard/RecordComponents/RecordDashboard.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/StatsCard/RecordDashboardStats.js +2 -0
- package/dist/RecordDashboard/RecordComponents/StatsCard/RecordDashboardStats.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/Table/Pagination/TablePagination.js +2 -0
- package/dist/RecordDashboard/RecordComponents/Table/Pagination/TablePagination.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/Table/RecordFTable.js +2 -0
- package/dist/RecordDashboard/RecordComponents/Table/RecordFTable.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/Table/RecordSortDropdown.js +2 -0
- package/dist/RecordDashboard/RecordComponents/Table/RecordSortDropdown.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/Table/RecordTableCard.js +2 -0
- package/dist/RecordDashboard/RecordComponents/Table/RecordTableCard.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/Table/TableGrid/RecordSpans.js +2 -0
- package/dist/RecordDashboard/RecordComponents/Table/TableGrid/RecordSpans.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/Table/TableGrid/RecordTableGrid.js +2 -0
- package/dist/RecordDashboard/RecordComponents/Table/TableGrid/RecordTableGrid.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/Table/TableGrid/RecordTableLayoutToggle.js +2 -0
- package/dist/RecordDashboard/RecordComponents/Table/TableGrid/RecordTableLayoutToggle.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/Table/TableGrid/useRecordResponsiveColumns.js +2 -0
- package/dist/RecordDashboard/RecordComponents/Table/TableGrid/useRecordResponsiveColumns.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/TableHeader/TableHeader.js +2 -0
- package/dist/RecordDashboard/RecordComponents/TableHeader/TableHeader.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/ui/RecordChart.js +2 -0
- package/dist/RecordDashboard/RecordComponents/ui/RecordChart.js.map +1 -0
- package/dist/RecordDashboard/RecordComponents/ui/utils.js +2 -0
- package/dist/RecordDashboard/RecordDashboardWrapper.js +2 -0
- package/dist/RecordDashboard/RecordDashboardWrapper.js.map +1 -0
- package/dist/RecordDashboard/RecordUtils/RecordKpiIcon.js +2 -0
- package/dist/RecordDashboard/RecordUtils/RecordKpiIcon.js.map +1 -0
- package/dist/RecordDashboard/RecordUtils/RecordSectionOrder.js +2 -0
- package/dist/RecordDashboard/RecordUtils/RecordSectionOrder.js.map +1 -0
- package/dist/RecordDashboard/RecordUtils/RecordTableColumns.js +2 -0
- package/dist/RecordDashboard/RecordUtils/RecordTableColumns.js.map +1 -0
- package/dist/RecordDashboard/RecordUtils/index.js +2 -0
- package/dist/RecordDashboard/RecordUtils/index.js.map +1 -0
- package/dist/_virtual/_tslib.js +1 -1
- package/dist/cjs/ExecutiveDashboard/ExecutiveDashboardWrapper.js +2 -0
- package/dist/cjs/ExecutiveDashboard/ExecutiveDashboardWrapper.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/api/dashboardApi.js +2 -0
- package/dist/cjs/ExecutiveDashboard/api/dashboardApi.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardCard/BreakingNewsBanner.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardCard/CardShell.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardCard/CenteredCell.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardCard/DashboardCard.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardCard/DetailRow.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardCard/EventsSection.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardCard/FooterLinkButton.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardCard/GridSection.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardCard/ListSection.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardCard/SectionHeadingBar.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardCard/SkeletonRow.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardCard/TagsSection.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardCard/TopDropdownMenu.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/datePreset.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardSkeleton/DashboardSkeleton.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardSkeleton/DashboardSkeleton.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/DatePickers/DatePicker.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DatePickers/DateRangeSelector.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DatePickers/DateSelector.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DropDowns/CustomMultiSelect.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DropDowns/CustomSingleSelect.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/ExecutiveDashboard.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/ExecutiveDashboard.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/FiltersSidebar/CustomTextInput.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Graph/Graph.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Graph/GraphEmptyState.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Graph/GraphEmptyState.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Graph/GraphSkeleton.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Graph/GraphSkeleton.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Graph/LineChart.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Graph/PlotBySelector.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Graph/Seperator.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Graph/Seperator.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Graph/types.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/MetricCard/MetricCard.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Table/FTable.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Table/SortDropdown.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Table/TableCard.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Table/TableGrid/TableGrid.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Table/TableGrid/TableGrid.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Table/TableGrid/TableLayoutToggle.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Table/TableGrid/TableLayoutToggle.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Table/TableGrid/spans.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Table/TableGrid/spans.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Table/TableGrid/useResponsiveColumns.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/Table/TableGrid/useResponsiveColumns.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/ui/chart.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/ui/utils.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/hooks/useVisibilityPolling.js +2 -0
- package/dist/cjs/ExecutiveDashboard/hooks/useVisibilityPolling.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/utils/index.js +2 -0
- package/dist/cjs/ExecutiveDashboard/utils/index.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/utils/kpiIcon.js +2 -0
- package/dist/cjs/ExecutiveDashboard/utils/kpiIcon.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/utils/sectionOrder.js +2 -0
- package/dist/cjs/ExecutiveDashboard/utils/sectionOrder.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/utils/tableColumns.js +2 -0
- package/dist/cjs/ExecutiveDashboard/utils/tableColumns.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordApi/RecordDashboardApi.js +2 -0
- package/dist/cjs/RecordDashboard/RecordApi/RecordDashboardApi.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/AnalyticsChart/AnalyticsChart.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/AnalyticsChart/AnalyticsChart.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordBreakingNewsBanner.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordBreakingNewsBanner.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordCardShell.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordCardShell.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordCenteredCell.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordCenteredCell.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordDashboardCard.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordDashboardCard.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordDetailRow.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordDetailRow.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordEventsSection.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordEventsSection.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordFooterLinkButton.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordFooterLinkButton.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordGridSection.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordGridSection.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordListSection.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordListSection.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordSectionContent.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordSectionContent.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordSectionHeadingBar.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordSectionHeadingBar.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordSkeletonRow.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordSkeletonRow.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordTagsSection.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordTagsSection.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordTopDropdownMenu.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/RecordTopDropdownMenu.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/styles/RecordDashboardCardStyles.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardCard/styles/RecordDashboardCardStyles.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardDateFilter/RecordDashboardDateFilter.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardDateFilter/RecordDashboardDateFilter.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardDateFilter/RecordDatePreset.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardDateFilter/RecordDatePreset.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardSkeleton/RecordDashboardSkeleton.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DashboardSkeleton/RecordDashboardSkeleton.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DatePickers/RecordDatePicker.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DatePickers/RecordDatePicker.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DatePickers/RecordDateRangeSelector.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DatePickers/RecordDateRangeSelector.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DatePickers/RecordDateSelector.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DatePickers/RecordDateSelector.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DropDowns/RecordCustomMultiSelect.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DropDowns/RecordCustomMultiSelect.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DropDowns/RecordCustomSingleSelect.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/DropDowns/RecordCustomSingleSelect.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/FiltersSidebar/RecordCustomTextInput.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/FiltersSidebar/RecordCustomTextInput.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/FiltersSidebar/RecordFiltersSidebar.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/FiltersSidebar/RecordFiltersSidebar.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Graph/RecordGraph.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Graph/RecordGraph.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Graph/RecordGraphEmptyState.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Graph/RecordGraphEmptyState.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Graph/RecordGraphSkeleton.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Graph/RecordGraphSkeleton.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Graph/RecordLineChart.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Graph/RecordLineChart.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Graph/RecordPlotBySelector.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Graph/RecordPlotBySelector.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Graph/types.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Graph/types.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/MetricCard/RecordMetricCard.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/MetricCard/RecordMetricCard.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/RecordDashboard.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/RecordDashboard.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/StatsCard/RecordDashboardStats.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/StatsCard/RecordDashboardStats.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Table/Pagination/TablePagination.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Table/Pagination/TablePagination.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Table/RecordFTable.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Table/RecordFTable.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Table/RecordSortDropdown.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Table/RecordSortDropdown.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Table/RecordTableCard.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Table/RecordTableCard.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Table/TableGrid/RecordSpans.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Table/TableGrid/RecordSpans.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Table/TableGrid/RecordTableGrid.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Table/TableGrid/RecordTableGrid.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Table/TableGrid/RecordTableLayoutToggle.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Table/TableGrid/RecordTableLayoutToggle.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Table/TableGrid/useRecordResponsiveColumns.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/Table/TableGrid/useRecordResponsiveColumns.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/TableHeader/TableHeader.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/TableHeader/TableHeader.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/ui/RecordChart.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/ui/RecordChart.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordComponents/ui/utils.js +2 -0
- package/dist/cjs/RecordDashboard/RecordComponents/ui/utils.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordDashboardWrapper.js +2 -0
- package/dist/cjs/RecordDashboard/RecordDashboardWrapper.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordUtils/RecordKpiIcon.js +2 -0
- package/dist/cjs/RecordDashboard/RecordUtils/RecordKpiIcon.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordUtils/RecordSectionOrder.js +2 -0
- package/dist/cjs/RecordDashboard/RecordUtils/RecordSectionOrder.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordUtils/RecordTableColumns.js +2 -0
- package/dist/cjs/RecordDashboard/RecordUtils/RecordTableColumns.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordUtils/index.js +2 -0
- package/dist/cjs/RecordDashboard/RecordUtils/index.js.map +1 -0
- package/dist/cjs/_virtual/_tslib.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/node_modules/@kurkle/color/dist/color.esm.js +9 -0
- package/dist/cjs/node_modules/@kurkle/color/dist/color.esm.js.map +1 -0
- package/dist/cjs/node_modules/chart.js/auto/auto.js +2 -0
- package/dist/cjs/node_modules/chart.js/auto/auto.js.map +1 -0
- package/dist/cjs/node_modules/chart.js/dist/chart.js +8 -0
- package/dist/cjs/node_modules/chart.js/dist/chart.js.map +1 -0
- package/dist/cjs/node_modules/chart.js/dist/chunks/helpers.dataset.js +8 -0
- package/dist/cjs/node_modules/chart.js/dist/chunks/helpers.dataset.js.map +1 -0
- package/dist/cjs/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.js +2 -0
- package/dist/cjs/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.js.map +1 -0
- package/dist/cjs/styles.css +1 -1
- package/dist/index.js +1 -1
- package/dist/node_modules/@kurkle/color/dist/color.esm.js +8 -0
- package/dist/node_modules/@kurkle/color/dist/color.esm.js.map +1 -0
- package/dist/node_modules/chart.js/auto/auto.js +2 -0
- package/dist/node_modules/chart.js/auto/auto.js.map +1 -0
- package/dist/node_modules/chart.js/dist/chart.js +8 -0
- package/dist/node_modules/chart.js/dist/chart.js.map +1 -0
- package/dist/node_modules/chart.js/dist/chunks/helpers.dataset.js +8 -0
- package/dist/node_modules/chart.js/dist/chunks/helpers.dataset.js.map +1 -0
- package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.js +8 -0
- package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/types/App.d.ts +2 -2
- package/dist/types/App.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts +5 -0
- package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/TestExecutiveDashboard.d.ts +3 -0
- package/dist/types/ExecutiveDashboard/TestExecutiveDashboard.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/api/dashboardApi.d.ts +31 -0
- package/dist/types/ExecutiveDashboard/api/dashboardApi.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardCard/BreakingNewsBanner.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardCard/CardShell.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardCard/CenteredCell.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardCard/DashboardCard.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardCard/DetailRow.d.ts.map +1 -0
- package/dist/types/{components → ExecutiveDashboard/components}/DashboardCard/EventsSection.d.ts +2 -1
- package/dist/types/ExecutiveDashboard/components/DashboardCard/EventsSection.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardCard/FooterLinkButton.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardCard/GridSection.d.ts +4 -0
- package/dist/types/ExecutiveDashboard/components/DashboardCard/GridSection.d.ts.map +1 -0
- package/dist/types/{components → ExecutiveDashboard/components}/DashboardCard/ListSection.d.ts +3 -2
- package/dist/types/ExecutiveDashboard/components/DashboardCard/ListSection.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardCard/SectionHeadingBar.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardCard/SkeletonRow.d.ts.map +1 -0
- package/dist/types/{components → ExecutiveDashboard/components}/DashboardCard/TagsSection.d.ts +2 -1
- package/dist/types/ExecutiveDashboard/components/DashboardCard/TagsSection.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardCard/TopDropdownMenu.d.ts.map +1 -0
- package/dist/types/{components → ExecutiveDashboard/components}/DashboardCard/sectionContent.d.ts +1 -1
- package/dist/types/ExecutiveDashboard/components/DashboardCard/sectionContent.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardCard/styles/DashboardCardStyles.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardCard/types.d.ts.map +1 -0
- package/dist/types/{components → ExecutiveDashboard/components}/DashboardDateFilter/DashboardDateFilter.d.ts +8 -1
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.types.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/datePreset.d.ts +137 -0
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/datePreset.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardSkeleton/DashboardSkeleton.d.ts +5 -0
- package/dist/types/ExecutiveDashboard/components/DashboardSkeleton/DashboardSkeleton.d.ts.map +1 -0
- package/dist/types/{components → ExecutiveDashboard/components}/DatePickers/DatePicker.d.ts +2 -1
- package/dist/types/ExecutiveDashboard/components/DatePickers/DatePicker.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DatePickers/DateRangeSelector.d.ts.map +1 -0
- package/dist/types/{components → ExecutiveDashboard/components}/DatePickers/DateSelector.d.ts +1 -1
- package/dist/types/ExecutiveDashboard/components/DatePickers/DateSelector.d.ts.map +1 -0
- package/dist/types/{components → ExecutiveDashboard/components}/DropDowns/CustomMultiSelect.d.ts +2 -1
- package/dist/types/ExecutiveDashboard/components/DropDowns/CustomMultiSelect.d.ts.map +1 -0
- package/dist/types/{components → ExecutiveDashboard/components}/DropDowns/CustomSingleSelect.d.ts +2 -1
- package/dist/types/ExecutiveDashboard/components/DropDowns/CustomSingleSelect.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts +59 -0
- package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts.map +1 -0
- package/dist/types/{components → ExecutiveDashboard/components}/FiltersSidebar/CustomTextInput.d.ts +2 -1
- package/dist/types/ExecutiveDashboard/components/FiltersSidebar/CustomTextInput.d.ts.map +1 -0
- package/dist/types/{components → ExecutiveDashboard/components}/FiltersSidebar/FiltersSidebar.d.ts +2 -1
- package/dist/types/ExecutiveDashboard/components/FiltersSidebar/FiltersSidebar.d.ts.map +1 -0
- package/dist/types/{components → ExecutiveDashboard/components}/Graph/Graph.d.ts +2 -1
- package/dist/types/ExecutiveDashboard/components/Graph/Graph.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Graph/GraphEmptyState.d.ts +11 -0
- package/dist/types/ExecutiveDashboard/components/Graph/GraphEmptyState.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Graph/GraphSkeleton.d.ts +11 -0
- package/dist/types/ExecutiveDashboard/components/Graph/GraphSkeleton.d.ts.map +1 -0
- package/dist/types/{components → ExecutiveDashboard/components}/Graph/LineChart.d.ts +5 -2
- package/dist/types/ExecutiveDashboard/components/Graph/LineChart.d.ts.map +1 -0
- package/dist/types/{components → ExecutiveDashboard/components}/Graph/PlotBySelector.d.ts +2 -1
- package/dist/types/ExecutiveDashboard/components/Graph/PlotBySelector.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Graph/Seperator.d.ts +7 -0
- package/dist/types/ExecutiveDashboard/components/Graph/Seperator.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Graph/types.d.ts +278 -0
- package/dist/types/ExecutiveDashboard/components/Graph/types.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/MetricCard/MetricCard.d.ts +49 -0
- package/dist/types/ExecutiveDashboard/components/MetricCard/MetricCard.d.ts.map +1 -0
- package/dist/types/{components → ExecutiveDashboard/components}/Table/FTable.d.ts +12 -11
- package/dist/types/ExecutiveDashboard/components/Table/FTable.d.ts.map +1 -0
- package/dist/types/{components → ExecutiveDashboard/components}/Table/SortDropdown.d.ts +2 -1
- package/dist/types/ExecutiveDashboard/components/Table/SortDropdown.d.ts.map +1 -0
- package/dist/types/{components → ExecutiveDashboard/components}/Table/TableCard.d.ts +3 -2
- package/dist/types/ExecutiveDashboard/components/Table/TableCard.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Table/TableGrid/TableGrid.d.ts +54 -0
- package/dist/types/ExecutiveDashboard/components/Table/TableGrid/TableGrid.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Table/TableGrid/TableLayoutToggle.d.ts +20 -0
- package/dist/types/ExecutiveDashboard/components/Table/TableGrid/TableLayoutToggle.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Table/TableGrid/spans.d.ts +15 -0
- package/dist/types/ExecutiveDashboard/components/Table/TableGrid/spans.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Table/TableGrid/useResponsiveColumns.d.ts +17 -0
- package/dist/types/ExecutiveDashboard/components/Table/TableGrid/useResponsiveColumns.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/common/Accordion.d.ts +34 -0
- package/dist/types/ExecutiveDashboard/components/common/Accordion.d.ts.map +1 -0
- package/dist/types/{components → ExecutiveDashboard/components}/ui/chart.d.ts +1 -0
- package/dist/types/ExecutiveDashboard/components/ui/chart.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/ui/utils.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/constant/index.d.ts +5 -0
- package/dist/types/ExecutiveDashboard/constant/index.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/hooks/useVisibilityPolling.d.ts +12 -0
- package/dist/types/ExecutiveDashboard/hooks/useVisibilityPolling.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/types/index.d.ts +416 -0
- package/dist/types/ExecutiveDashboard/types/index.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/utils/index.d.ts +65 -0
- package/dist/types/ExecutiveDashboard/utils/index.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/utils/kpiIcon.d.ts +4 -0
- package/dist/types/ExecutiveDashboard/utils/kpiIcon.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/utils/sectionOrder.d.ts +43 -0
- package/dist/types/ExecutiveDashboard/utils/sectionOrder.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/utils/tableColumns.d.ts +16 -0
- package/dist/types/ExecutiveDashboard/utils/tableColumns.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordApi/RecordDashboardApi.d.ts +32 -0
- package/dist/types/RecordDashboard/RecordApi/RecordDashboardApi.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/AnalyticsChart/AnalyticsChart.d.ts +20 -0
- package/dist/types/RecordDashboard/RecordComponents/AnalyticsChart/AnalyticsChart.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordBreakingNewsBanner.d.ts +9 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordBreakingNewsBanner.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordCardShell.d.ts +22 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordCardShell.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordCenteredCell.d.ts +6 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordCenteredCell.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordDashboardCard.d.ts +5 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordDashboardCard.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordDetailRow.d.ts +9 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordDetailRow.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordEventsSection.d.ts +4 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordEventsSection.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordFooterLinkButton.d.ts +6 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordFooterLinkButton.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordGridSection.d.ts +4 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordGridSection.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordListSection.d.ts +5 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordListSection.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordSectionContent.d.ts +4 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordSectionContent.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordSectionHeadingBar.d.ts +9 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordSectionHeadingBar.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordSkeletonRow.d.ts +3 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordSkeletonRow.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordTagsSection.d.ts +4 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordTagsSection.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordTopDropdownMenu.d.ts +6 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/RecordTopDropdownMenu.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/styles/RecordDashboardCardStyles.d.ts +17 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/styles/RecordDashboardCardStyles.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/types.d.ts +156 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardCard/types.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardDateFilter/RecordDashboardDateFilter.d.ts +42 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardDateFilter/RecordDashboardDateFilter.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardDateFilter/RecordDashboardDateFilter.types.d.ts +18 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardDateFilter/RecordDashboardDateFilter.types.d.ts.map +1 -0
- package/dist/types/{components/DashboardDateFilter/datePreset.d.ts → RecordDashboard/RecordComponents/DashboardDateFilter/RecordDatePreset.d.ts} +16 -15
- package/dist/types/RecordDashboard/RecordComponents/DashboardDateFilter/RecordDatePreset.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardSkeleton/RecordDashboardSkeleton.d.ts +5 -0
- package/dist/types/RecordDashboard/RecordComponents/DashboardSkeleton/RecordDashboardSkeleton.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DatePickers/RecordDatePicker.d.ts +11 -0
- package/dist/types/RecordDashboard/RecordComponents/DatePickers/RecordDatePicker.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DatePickers/RecordDateRangeSelector.d.ts +20 -0
- package/dist/types/RecordDashboard/RecordComponents/DatePickers/RecordDateRangeSelector.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DatePickers/RecordDateSelector.d.ts +19 -0
- package/dist/types/RecordDashboard/RecordComponents/DatePickers/RecordDateSelector.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DropDowns/RecordCustomMultiSelect.d.ts +18 -0
- package/dist/types/RecordDashboard/RecordComponents/DropDowns/RecordCustomMultiSelect.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/DropDowns/RecordCustomSingleSelect.d.ts +17 -0
- package/dist/types/RecordDashboard/RecordComponents/DropDowns/RecordCustomSingleSelect.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/FiltersSidebar/RecordCustomTextInput.d.ts +13 -0
- package/dist/types/RecordDashboard/RecordComponents/FiltersSidebar/RecordCustomTextInput.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/FiltersSidebar/RecordFiltersSidebar.d.ts +35 -0
- package/dist/types/RecordDashboard/RecordComponents/FiltersSidebar/RecordFiltersSidebar.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/Graph/RecordGraph.d.ts +5 -0
- package/dist/types/RecordDashboard/RecordComponents/Graph/RecordGraph.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/Graph/RecordGraphEmptyState.d.ts +11 -0
- package/dist/types/RecordDashboard/RecordComponents/Graph/RecordGraphEmptyState.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/Graph/RecordGraphSkeleton.d.ts +11 -0
- package/dist/types/RecordDashboard/RecordComponents/Graph/RecordGraphSkeleton.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/Graph/RecordLineChart.d.ts +26 -0
- package/dist/types/RecordDashboard/RecordComponents/Graph/RecordLineChart.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/Graph/RecordPlotBySelector.d.ts +18 -0
- package/dist/types/RecordDashboard/RecordComponents/Graph/RecordPlotBySelector.d.ts.map +1 -0
- package/dist/types/{components → RecordDashboard/RecordComponents}/Graph/types.d.ts +41 -41
- package/dist/types/RecordDashboard/RecordComponents/Graph/types.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/MetricCard/RecordMetricCard.d.ts +49 -0
- package/dist/types/RecordDashboard/RecordComponents/MetricCard/RecordMetricCard.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/RecordDashboard.d.ts +84 -0
- package/dist/types/RecordDashboard/RecordComponents/RecordDashboard.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/StatsCard/RecordDashboardStats.d.ts +10 -0
- package/dist/types/RecordDashboard/RecordComponents/StatsCard/RecordDashboardStats.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/Table/Pagination/TablePagination.d.ts +28 -0
- package/dist/types/RecordDashboard/RecordComponents/Table/Pagination/TablePagination.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/Table/RecordFTable.d.ts +70 -0
- package/dist/types/RecordDashboard/RecordComponents/Table/RecordFTable.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/Table/RecordSortDropdown.d.ts +14 -0
- package/dist/types/RecordDashboard/RecordComponents/Table/RecordSortDropdown.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/Table/RecordTableCard.d.ts +43 -0
- package/dist/types/RecordDashboard/RecordComponents/Table/RecordTableCard.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/Table/TableGrid/RecordSpans.d.ts +15 -0
- package/dist/types/RecordDashboard/RecordComponents/Table/TableGrid/RecordSpans.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/Table/TableGrid/RecordTableGrid.d.ts +54 -0
- package/dist/types/RecordDashboard/RecordComponents/Table/TableGrid/RecordTableGrid.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/Table/TableGrid/RecordTableLayoutToggle.d.ts +20 -0
- package/dist/types/RecordDashboard/RecordComponents/Table/TableGrid/RecordTableLayoutToggle.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/Table/TableGrid/useRecordResponsiveColumns.d.ts +17 -0
- package/dist/types/RecordDashboard/RecordComponents/Table/TableGrid/useRecordResponsiveColumns.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/TableHeader/TableHeader.d.ts +53 -0
- package/dist/types/RecordDashboard/RecordComponents/TableHeader/TableHeader.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/ui/RecordChart.d.ts +72 -0
- package/dist/types/RecordDashboard/RecordComponents/ui/RecordChart.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordComponents/ui/utils.d.ts +7 -0
- package/dist/types/RecordDashboard/RecordComponents/ui/utils.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordConstant/index.d.ts +5 -0
- package/dist/types/RecordDashboard/RecordConstant/index.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordDashboardWrapper.d.ts +8 -0
- package/dist/types/RecordDashboard/RecordDashboardWrapper.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordTypes/index.d.ts +986 -0
- package/dist/types/RecordDashboard/RecordTypes/index.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordUtils/RecordKpiIcon.d.ts +4 -0
- package/dist/types/RecordDashboard/RecordUtils/RecordKpiIcon.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordUtils/RecordSectionOrder.d.ts +43 -0
- package/dist/types/RecordDashboard/RecordUtils/RecordSectionOrder.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordUtils/RecordTableColumns.d.ts +22 -0
- package/dist/types/RecordDashboard/RecordUtils/RecordTableColumns.d.ts.map +1 -0
- package/dist/types/RecordDashboard/RecordUtils/index.d.ts +65 -0
- package/dist/types/RecordDashboard/RecordUtils/index.d.ts.map +1 -0
- package/dist/types/RecordDashboard/TestRecordDashbaord.d.ts +3 -0
- package/dist/types/RecordDashboard/TestRecordDashbaord.d.ts.map +1 -0
- package/dist/types/index.d.ts +85 -19
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +12 -9
- package/dist/cjs/components/DashboardCard/BreakingNewsBanner.js +0 -2
- package/dist/cjs/components/DashboardCard/CardShell.js +0 -2
- package/dist/cjs/components/DashboardCard/CenteredCell.js +0 -2
- package/dist/cjs/components/DashboardCard/DashboardCard.js +0 -2
- package/dist/cjs/components/DashboardCard/DetailRow.js +0 -2
- package/dist/cjs/components/DashboardCard/EventsSection.js +0 -2
- package/dist/cjs/components/DashboardCard/FooterLinkButton.js +0 -2
- package/dist/cjs/components/DashboardCard/GridSection.js +0 -2
- package/dist/cjs/components/DashboardCard/ListSection.js +0 -2
- package/dist/cjs/components/DashboardCard/SectionHeadingBar.js +0 -2
- package/dist/cjs/components/DashboardCard/SkeletonRow.js +0 -2
- package/dist/cjs/components/DashboardCard/TagsSection.js +0 -2
- package/dist/cjs/components/DashboardCard/TopDropdownMenu.js +0 -2
- package/dist/cjs/components/DashboardDateFilter/DashboardDateFilter.js +0 -2
- package/dist/cjs/components/DashboardDateFilter/datePreset.js +0 -2
- package/dist/cjs/components/DatePickers/DatePicker.js +0 -2
- package/dist/cjs/components/DatePickers/DateRangeSelector.js +0 -2
- package/dist/cjs/components/DatePickers/DateSelector.js +0 -2
- package/dist/cjs/components/DropDowns/CustomMultiSelect.js +0 -2
- package/dist/cjs/components/DropDowns/CustomSingleSelect.js +0 -2
- package/dist/cjs/components/FiltersSidebar/CustomTextInput.js +0 -2
- package/dist/cjs/components/FiltersSidebar/FiltersSidebar.js +0 -2
- package/dist/cjs/components/Graph/Graph.js +0 -2
- package/dist/cjs/components/Graph/LineChart.js +0 -2
- package/dist/cjs/components/Graph/PlotBySelector.js +0 -2
- package/dist/cjs/components/MetricCard/MetricCard.js +0 -2
- package/dist/cjs/components/Table/FTable.js +0 -2
- package/dist/cjs/components/Table/SortDropdown.js +0 -2
- package/dist/cjs/components/Table/TableCard.js +0 -2
- package/dist/cjs/components/ui/chart.js +0 -2
- package/dist/components/DashboardCard/BreakingNewsBanner.js +0 -2
- package/dist/components/DashboardCard/CardShell.js +0 -2
- package/dist/components/DashboardCard/CenteredCell.js +0 -2
- package/dist/components/DashboardCard/DashboardCard.js +0 -2
- package/dist/components/DashboardCard/DetailRow.js +0 -2
- package/dist/components/DashboardCard/EventsSection.js +0 -2
- package/dist/components/DashboardCard/FooterLinkButton.js +0 -2
- package/dist/components/DashboardCard/GridSection.js +0 -2
- package/dist/components/DashboardCard/ListSection.js +0 -2
- package/dist/components/DashboardCard/SectionHeadingBar.js +0 -2
- package/dist/components/DashboardCard/SkeletonRow.js +0 -2
- package/dist/components/DashboardCard/TagsSection.js +0 -2
- package/dist/components/DashboardCard/TopDropdownMenu.js +0 -2
- package/dist/components/DashboardDateFilter/DashboardDateFilter.js +0 -2
- package/dist/components/DashboardDateFilter/datePreset.js +0 -2
- package/dist/components/DatePickers/DatePicker.js +0 -2
- package/dist/components/DatePickers/DateRangeSelector.js +0 -2
- package/dist/components/DatePickers/DateSelector.js +0 -2
- package/dist/components/DropDowns/CustomMultiSelect.js +0 -2
- package/dist/components/DropDowns/CustomSingleSelect.js +0 -2
- package/dist/components/FiltersSidebar/CustomTextInput.js +0 -2
- package/dist/components/FiltersSidebar/FiltersSidebar.js +0 -2
- package/dist/components/Graph/Graph.js +0 -2
- package/dist/components/Graph/LineChart.js +0 -2
- package/dist/components/Graph/PlotBySelector.js +0 -2
- package/dist/components/MetricCard/MetricCard.js +0 -2
- package/dist/components/Table/FTable.js +0 -2
- package/dist/components/Table/SortDropdown.js +0 -2
- package/dist/components/Table/TableCard.js +0 -2
- package/dist/components/ui/chart.js +0 -2
- package/dist/types/components/DashboardCard/BreakingNewsBanner.d.ts.map +0 -1
- package/dist/types/components/DashboardCard/CardShell.d.ts.map +0 -1
- package/dist/types/components/DashboardCard/CenteredCell.d.ts.map +0 -1
- package/dist/types/components/DashboardCard/DashboardCard.d.ts.map +0 -1
- package/dist/types/components/DashboardCard/DetailRow.d.ts.map +0 -1
- package/dist/types/components/DashboardCard/EventsSection.d.ts.map +0 -1
- package/dist/types/components/DashboardCard/FooterLinkButton.d.ts.map +0 -1
- package/dist/types/components/DashboardCard/GridSection.d.ts +0 -3
- package/dist/types/components/DashboardCard/GridSection.d.ts.map +0 -1
- package/dist/types/components/DashboardCard/ListSection.d.ts.map +0 -1
- package/dist/types/components/DashboardCard/SectionHeadingBar.d.ts.map +0 -1
- package/dist/types/components/DashboardCard/SkeletonRow.d.ts.map +0 -1
- package/dist/types/components/DashboardCard/TagsSection.d.ts.map +0 -1
- package/dist/types/components/DashboardCard/TopDropdownMenu.d.ts.map +0 -1
- package/dist/types/components/DashboardCard/sectionContent.d.ts.map +0 -1
- package/dist/types/components/DashboardCard/styles/DashboardCardStyles.d.ts.map +0 -1
- package/dist/types/components/DashboardCard/types.d.ts.map +0 -1
- package/dist/types/components/DashboardDateFilter/DashboardDateFilter.d.ts.map +0 -1
- package/dist/types/components/DashboardDateFilter/DashboardDateFilter.types.d.ts.map +0 -1
- package/dist/types/components/DashboardDateFilter/datePreset.d.ts.map +0 -1
- package/dist/types/components/DatePickers/DatePicker.d.ts.map +0 -1
- package/dist/types/components/DatePickers/DateRangeSelector.d.ts.map +0 -1
- package/dist/types/components/DatePickers/DateSelector.d.ts.map +0 -1
- package/dist/types/components/DropDowns/CustomMultiSelect.d.ts.map +0 -1
- package/dist/types/components/DropDowns/CustomSingleSelect.d.ts.map +0 -1
- package/dist/types/components/FiltersSidebar/CustomTextInput.d.ts.map +0 -1
- package/dist/types/components/FiltersSidebar/FiltersSidebar.d.ts.map +0 -1
- package/dist/types/components/Graph/Graph.d.ts.map +0 -1
- package/dist/types/components/Graph/LineChart.d.ts.map +0 -1
- package/dist/types/components/Graph/PlotBySelector.d.ts.map +0 -1
- package/dist/types/components/Graph/types.d.ts.map +0 -1
- package/dist/types/components/MetricCard/MetricCard.d.ts +0 -31
- package/dist/types/components/MetricCard/MetricCard.d.ts.map +0 -1
- package/dist/types/components/Table/FTable.d.ts.map +0 -1
- package/dist/types/components/Table/SortDropdown.d.ts.map +0 -1
- package/dist/types/components/Table/TableCard.d.ts.map +0 -1
- package/dist/types/components/ui/chart.d.ts.map +0 -1
- package/dist/types/components/ui/utils.d.ts.map +0 -1
- /package/dist/{cjs → ExecutiveDashboard}/components/DashboardCard/BreakingNewsBanner.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DashboardCard/CardShell.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DashboardCard/CenteredCell.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DashboardCard/DashboardCard.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DashboardCard/DetailRow.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DashboardCard/EventsSection.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DashboardCard/FooterLinkButton.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DashboardCard/GridSection.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DashboardCard/ListSection.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DashboardCard/SectionHeadingBar.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DashboardCard/SkeletonRow.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DashboardCard/TagsSection.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DashboardCard/TopDropdownMenu.js.map +0 -0
- /package/dist/{components → ExecutiveDashboard/components}/DashboardCard/sectionContent.js +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DashboardCard/sectionContent.js.map +0 -0
- /package/dist/{components → ExecutiveDashboard/components}/DashboardCard/styles/DashboardCardStyles.js +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DashboardCard/styles/DashboardCardStyles.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DashboardDateFilter/DashboardDateFilter.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DashboardDateFilter/datePreset.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DatePickers/DatePicker.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DatePickers/DateRangeSelector.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DatePickers/DateSelector.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DropDowns/CustomMultiSelect.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/DropDowns/CustomSingleSelect.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/FiltersSidebar/CustomTextInput.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/FiltersSidebar/FiltersSidebar.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/Graph/Graph.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/Graph/LineChart.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/Graph/PlotBySelector.js.map +0 -0
- /package/dist/{components → ExecutiveDashboard/components}/Graph/types.js +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/Graph/types.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/MetricCard/MetricCard.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/Table/FTable.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/Table/SortDropdown.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/Table/TableCard.js.map +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/ui/chart.js.map +0 -0
- /package/dist/{components → ExecutiveDashboard/components}/ui/utils.js +0 -0
- /package/dist/{cjs → ExecutiveDashboard}/components/ui/utils.js.map +0 -0
- /package/dist/{components → RecordDashboard/RecordComponents}/Graph/types.js.map +0 -0
- /package/dist/{components → RecordDashboard/RecordComponents}/ui/utils.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DashboardCard/BreakingNewsBanner.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DashboardCard/CardShell.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DashboardCard/CenteredCell.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DashboardCard/DashboardCard.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DashboardCard/DetailRow.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DashboardCard/EventsSection.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DashboardCard/FooterLinkButton.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DashboardCard/GridSection.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DashboardCard/ListSection.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DashboardCard/SectionHeadingBar.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DashboardCard/SkeletonRow.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DashboardCard/TagsSection.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DashboardCard/TopDropdownMenu.js.map +0 -0
- /package/dist/cjs/{components → ExecutiveDashboard/components}/DashboardCard/sectionContent.js +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DashboardCard/sectionContent.js.map +0 -0
- /package/dist/cjs/{components → ExecutiveDashboard/components}/DashboardCard/styles/DashboardCardStyles.js +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DashboardCard/styles/DashboardCardStyles.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DashboardDateFilter/DashboardDateFilter.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DashboardDateFilter/datePreset.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DatePickers/DatePicker.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DatePickers/DateRangeSelector.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DatePickers/DateSelector.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DropDowns/CustomMultiSelect.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/DropDowns/CustomSingleSelect.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/FiltersSidebar/CustomTextInput.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/FiltersSidebar/FiltersSidebar.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/Graph/Graph.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/Graph/LineChart.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/Graph/PlotBySelector.js.map +0 -0
- /package/dist/cjs/{components → ExecutiveDashboard/components}/Graph/types.js +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/MetricCard/MetricCard.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/Table/FTable.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/Table/SortDropdown.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/Table/TableCard.js.map +0 -0
- /package/dist/{components → cjs/ExecutiveDashboard/components}/ui/chart.js.map +0 -0
- /package/dist/cjs/{components → ExecutiveDashboard/components}/ui/utils.js +0 -0
- /package/dist/types/{components → ExecutiveDashboard/components}/DashboardCard/BreakingNewsBanner.d.ts +0 -0
- /package/dist/types/{components → ExecutiveDashboard/components}/DashboardCard/CardShell.d.ts +0 -0
- /package/dist/types/{components → ExecutiveDashboard/components}/DashboardCard/CenteredCell.d.ts +0 -0
- /package/dist/types/{components → ExecutiveDashboard/components}/DashboardCard/DashboardCard.d.ts +0 -0
- /package/dist/types/{components → ExecutiveDashboard/components}/DashboardCard/DetailRow.d.ts +0 -0
- /package/dist/types/{components → ExecutiveDashboard/components}/DashboardCard/FooterLinkButton.d.ts +0 -0
- /package/dist/types/{components → ExecutiveDashboard/components}/DashboardCard/SectionHeadingBar.d.ts +0 -0
- /package/dist/types/{components → ExecutiveDashboard/components}/DashboardCard/SkeletonRow.d.ts +0 -0
- /package/dist/types/{components → ExecutiveDashboard/components}/DashboardCard/TopDropdownMenu.d.ts +0 -0
- /package/dist/types/{components → ExecutiveDashboard/components}/DashboardCard/styles/DashboardCardStyles.d.ts +0 -0
- /package/dist/types/{components → ExecutiveDashboard/components}/DashboardCard/types.d.ts +0 -0
- /package/dist/types/{components → ExecutiveDashboard/components}/DashboardDateFilter/DashboardDateFilter.types.d.ts +0 -0
- /package/dist/types/{components → ExecutiveDashboard/components}/DatePickers/DateRangeSelector.d.ts +0 -0
- /package/dist/types/{components → ExecutiveDashboard/components}/ui/utils.d.ts +0 -0
package/README.md
CHANGED
|
@@ -0,0 +1,698 @@
|
|
|
1
|
+
# @e-llm-studio/federated-dashboard-components
|
|
2
|
+
|
|
3
|
+
A React component library for building **config-driven executive dashboards**. The
|
|
4
|
+
flagship export, `ExecutiveDashboardWrapper`, renders a complete dashboard —
|
|
5
|
+
date filters, a multi-tier line-chart, KPI metric cards, a filter sidebar, and
|
|
6
|
+
data tables — from a single `configId`. The wrapper fetches its own layout and
|
|
7
|
+
data from the backend, so the host application only has to mount one component
|
|
8
|
+
and (optionally) describe how its tables should render.
|
|
9
|
+
|
|
10
|
+
The package also ships the underlying building blocks (`Graph`, `MetricCard`,
|
|
11
|
+
`FTable`, `TableCard`, `DashboardCard`, `DashboardDateFilter`, `FiltersSidebar`,
|
|
12
|
+
chart primitives, and KPI formatting helpers) for teams that want to compose a
|
|
13
|
+
dashboard by hand.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Table of contents
|
|
18
|
+
|
|
19
|
+
1. [Installation](#1-installation)
|
|
20
|
+
2. [Quick start](#2-quick-start)
|
|
21
|
+
3. [How it works (architecture)](#3-how-it-works-architecture)
|
|
22
|
+
4. [`ExecutiveDashboardWrapper` props](#4-executivedashboardwrapper-props)
|
|
23
|
+
- [4.1 Section order (`sectionOrder` / `hiddenSections`)](#41-section-order-sectionorder--hiddensections)
|
|
24
|
+
5. [The `tables` prop in depth](#5-the-tables-prop-in-depth)
|
|
25
|
+
- [5.1 Table grid layout (`tableLayout`)](#51-table-grid-layout-tablelayout)
|
|
26
|
+
6. [Backend API contract](#6-backend-api-contract)
|
|
27
|
+
7. [Exported building blocks](#7-exported-building-blocks)
|
|
28
|
+
8. [KPI formatting utilities](#8-kpi-formatting-utilities)
|
|
29
|
+
9. [TypeScript types reference](#9-typescript-types-reference)
|
|
30
|
+
10. [Troubleshooting](#10-troubleshooting)
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## 1. Installation
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npm install @e-llm-studio/federated-dashboard-components
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Peer dependencies
|
|
41
|
+
|
|
42
|
+
These must be installed in the host application (they are intentionally **not**
|
|
43
|
+
bundled, so a single copy is shared):
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
npm install react@^18.3.1 react-dom@^18.3.1 \
|
|
47
|
+
primereact@^10.9.7 primeicons@^7.0.0 \
|
|
48
|
+
lucide-react@^0.476.0 recharts@^2.13.0 \
|
|
49
|
+
react-router-dom@^7.6.2
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
| Peer dependency | Version | Used for |
|
|
53
|
+
| ------------------ | ---------- | ----------------------------------------- |
|
|
54
|
+
| `react` / `react-dom` | `^18.3.1` | Core runtime |
|
|
55
|
+
| `primereact` | `^10.9.7` | Underlying `DataTable`, sidebar, dropdowns |
|
|
56
|
+
| `primeicons` | `^7.0.0` | Icon font used by PrimeReact widgets |
|
|
57
|
+
| `lucide-react` | `^0.476.0` | Iconography (chart/KPI/table icons) |
|
|
58
|
+
| `recharts` | `^2.13.0` | Line-chart rendering |
|
|
59
|
+
| `react-router-dom` | `^7.6.2` | Router context expected by the demo shell |
|
|
60
|
+
|
|
61
|
+
### Import the stylesheet **once**
|
|
62
|
+
|
|
63
|
+
The library ships a single extracted stylesheet. Import it once at your app root
|
|
64
|
+
(it is side-effecting and required for correct layout):
|
|
65
|
+
|
|
66
|
+
```ts
|
|
67
|
+
import "@e-llm-studio/federated-dashboard-components/dist/styles.css";
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
You will typically also want PrimeReact's own base CSS in your app shell:
|
|
71
|
+
|
|
72
|
+
```ts
|
|
73
|
+
import "primereact/resources/themes/lara-light-indigo/theme.css"; // or your theme
|
|
74
|
+
import "primereact/resources/primereact.min.css";
|
|
75
|
+
import "primeicons/primeicons.css";
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## 2. Quick start
|
|
81
|
+
|
|
82
|
+
The wrapper is fully self-contained. Give it a `configId` and a `baseUrl`; it
|
|
83
|
+
does the rest.
|
|
84
|
+
|
|
85
|
+
```tsx
|
|
86
|
+
import "@e-llm-studio/federated-dashboard-components/dist/styles.css";
|
|
87
|
+
import { ExecutiveDashboardWrapper } from "@e-llm-studio/federated-dashboard-components";
|
|
88
|
+
|
|
89
|
+
export function ClaimsDashboard() {
|
|
90
|
+
return (
|
|
91
|
+
<ExecutiveDashboardWrapper
|
|
92
|
+
configId="6a579569dc07b01447bd9797"
|
|
93
|
+
baseUrl="https://dev.appmod.ai"
|
|
94
|
+
/>
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
That single mount will:
|
|
100
|
+
|
|
101
|
+
1. Call the **UI config API** once to learn the dashboard's structure (graph
|
|
102
|
+
tiers, plot options, KPI cards, sidebar filters, date presets, table layout).
|
|
103
|
+
2. Seed the date range from the config's default preset.
|
|
104
|
+
3. Call the **data API** to load graph series + KPI values, and re-call it every
|
|
105
|
+
time the date range or applied filters change.
|
|
106
|
+
4. Render a skeleton while loading and an inline error + **Retry** button on
|
|
107
|
+
failure.
|
|
108
|
+
|
|
109
|
+
> **Exports:** `ExecutiveDashboardWrapper` is exported from the package root
|
|
110
|
+
> ([src/index.ts](src/index.ts)), alongside the presentational
|
|
111
|
+
> `ExecutiveDashboard`, the built-in API fetchers (`fetchUIConfig`,
|
|
112
|
+
> `fetchDashboardData`, `DashboardApiError`), and the full set of container /
|
|
113
|
+
> config / data types.
|
|
114
|
+
|
|
115
|
+
### With custom table rendering
|
|
116
|
+
|
|
117
|
+
To control how the dashboard's tables look (links, badges, currency, impact
|
|
118
|
+
chips), pass a `tables` config keyed by each table's `key` from the UI config.
|
|
119
|
+
See [§5](#5-the-tables-prop-in-depth) for the full walkthrough.
|
|
120
|
+
|
|
121
|
+
```tsx
|
|
122
|
+
import type { DashboardTablesConfig } from "@e-llm-studio/federated-dashboard-components";
|
|
123
|
+
|
|
124
|
+
const TABLES: DashboardTablesConfig = {
|
|
125
|
+
top_plant_locations_by_claim_cost: {
|
|
126
|
+
tableProps: { showGridlines: true },
|
|
127
|
+
card: {
|
|
128
|
+
title: { fontSize: 16, color: "#111827" },
|
|
129
|
+
icon: { size: 18, color: "#059669" },
|
|
130
|
+
},
|
|
131
|
+
columns: [
|
|
132
|
+
{
|
|
133
|
+
key: "plant_location",
|
|
134
|
+
header: "Plant Location",
|
|
135
|
+
body: (row) => <a href="#">{row.plant_location}</a>,
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
key: "claim_count",
|
|
139
|
+
header: "Claim Count",
|
|
140
|
+
body: (row) => <span>{row.claim_count}</span>,
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
<ExecutiveDashboardWrapper
|
|
147
|
+
configId="6a579569dc07b01447bd9797"
|
|
148
|
+
baseUrl="https://dev.appmod.ai"
|
|
149
|
+
tables={TABLES}
|
|
150
|
+
/>;
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
A full worked example (money/impact/status cell helpers, a custom app header)
|
|
154
|
+
lives in [src/App.tsx](src/App.tsx).
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## 3. How it works (architecture)
|
|
159
|
+
|
|
160
|
+
```
|
|
161
|
+
┌──────────────────────────────┐
|
|
162
|
+
configId, baseUrl → │ ExecutiveDashboardWrapper │
|
|
163
|
+
│ (state + data orchestration) │
|
|
164
|
+
└──────────────┬───────────────┘
|
|
165
|
+
│
|
|
166
|
+
┌───────────────────────────┼───────────────────────────┐
|
|
167
|
+
│ 1. UI config API (once) │ 2. Data API (on range/ │
|
|
168
|
+
│ /federated/filters/ui │ filter change) │
|
|
169
|
+
│ + .../distinct-value │ /federated/filters/ │
|
|
170
|
+
│ │ get-data │
|
|
171
|
+
▼ ▼ │
|
|
172
|
+
structure & labels numeric series + KPI values │
|
|
173
|
+
└───────────────┬───────────────────────────────────────┘
|
|
174
|
+
▼
|
|
175
|
+
┌────────────────────┐
|
|
176
|
+
│ ExecutiveDashboard │ (presentational)
|
|
177
|
+
│ • DashboardDateFilter
|
|
178
|
+
│ • Graph (tiers + plot selectors)
|
|
179
|
+
│ • MetricCard × N
|
|
180
|
+
│ • FiltersSidebar
|
|
181
|
+
│ • TableCard × N
|
|
182
|
+
└────────────────────┘
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
- **State lives in the wrapper** ([ExecutiveDashboardWrapper.tsx](src/ExecutiveDashboardWrapper.tsx)):
|
|
186
|
+
selected plot-by option per tier, filter values (draft vs. applied), and the
|
|
187
|
+
active date range. All fetches are `AbortController`-guarded, so rapid filter
|
|
188
|
+
changes cancel in-flight requests.
|
|
189
|
+
- **Two logical fetch phases.** The UI config load also fetches the distinct
|
|
190
|
+
values for each sidebar filter and merges them in as `options`. The data load
|
|
191
|
+
is re-run whenever `dateRange` or `appliedFilters` change.
|
|
192
|
+
- **The inner `ExecutiveDashboard` is presentational** — it receives everything
|
|
193
|
+
as props and reports interactions back up via callbacks.
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## 4. `ExecutiveDashboardWrapper` props
|
|
198
|
+
|
|
199
|
+
Defined by the `DashboardContainerProps` interface in
|
|
200
|
+
[src/types/index.ts](src/types/index.ts). All props below are wired and
|
|
201
|
+
consumed by the wrapper.
|
|
202
|
+
|
|
203
|
+
| Prop | Type | Required | Description |
|
|
204
|
+
| ------------------ | ------------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
205
|
+
| `configId` | `string` | ✅ Yes | Identifies which dashboard config to load. Sent as `config_id` in the body of every API call. |
|
|
206
|
+
| `baseUrl` | `string` | No | API origin. **Defaults to `"https://dev.appmod.ai"`.** Trailing slashes are trimmed. Override for other environments (staging, prod, localhost). |
|
|
207
|
+
| `graphEmptyState` | `React.ReactNode` | No | Custom node shown inside the graph area when no series have data. Falls back to a built-in empty state when omitted. |
|
|
208
|
+
| `tables` | `DashboardTablesConfig` | No | Per-table render config keyed by the table `key` from the UI config's `tableBuilder`. Tables without an entry auto-render as plain text. See [§5](#5-the-tables-prop-in-depth). |
|
|
209
|
+
| `tableLayout` | `DashboardTableLayoutConfig` | No | Grid layout for the tables section — how many tables sit per row, which options the toolbar offers, and how narrow a card may get before the grid reflows. See [§5.1](#51-table-grid-layout-tablelayout). |
|
|
210
|
+
| `sectionOrder` | `DashboardSectionKey[]` | No | Vertical order of the dashboard sections, by UI config key — e.g. `["tableBuilder", "kpiCards", "graphBuilder"]`. Partial lists are allowed. See [§4.1](#41-section-order-sectionorder--hiddensections). |
|
|
211
|
+
| `hiddenSections` | `DashboardSectionKey[]` | No | Parts to leave out entirely, e.g. `["graphBuilder", "sidebarFilters"]`. Applied after `sectionOrder`, and unlike it, also accepts the pinned `dateFilters` / `sidebarFilters`. See [§4.1](#41-section-order-sectionorder--hiddensections). |
|
|
212
|
+
| `fetchUIConfig` | `FetchUIConfig` | No | Override the built-in UI-config fetcher — `(config, signal?) => Promise<DashboardUIConfig>`. Useful for mocks/tests or a custom transport. Defaults to the built-in `/federated/filters/ui` fetcher. |
|
|
213
|
+
| `fetchDashboardData` | `FetchDashboardData` | No | Override the built-in data fetcher — `(config, params, signal?) => Promise<DashboardDataResponse>`. Defaults to the built-in `/federated/filters/get-data` fetcher. |
|
|
214
|
+
| `initialStartDate` | `Date` | No | Force the initial range start instead of deriving it from the config's default preset. Must be paired with `initialEndDate`. |
|
|
215
|
+
| `initialEndDate` | `Date` | No | Force the initial range end. Must be paired with `initialStartDate`. |
|
|
216
|
+
| `onDateChange` | `(payload: any) => void` | No | Fires whenever the resolved date range changes (payload carries `{ startDate, endDate }`). |
|
|
217
|
+
| `onFiltersApplied` | `(filters: Record<string, string \| string[]>) => void` | No | Fires after the sidebar's **Apply** is pressed, with the applied filter values. |
|
|
218
|
+
| `renderLoading` | `() => React.ReactNode` | No | Replace the default skeleton loader. |
|
|
219
|
+
| `renderError` | `(error: Error, retry: () => void) => React.ReactNode` | No | Replace the default inline error + retry UI. `retry` re-runs the UI-config load. |
|
|
220
|
+
|
|
221
|
+
### Notes
|
|
222
|
+
|
|
223
|
+
- **`initialStartDate` / `initialEndDate`** only seed the *first* render. If
|
|
224
|
+
only one is provided, the wrapper falls back to the config's default preset.
|
|
225
|
+
- **Fetcher overrides** receive an `AbortController` signal and are expected to
|
|
226
|
+
honour it — the wrapper cancels in-flight requests when inputs change.
|
|
227
|
+
|
|
228
|
+
```tsx
|
|
229
|
+
<ExecutiveDashboardWrapper
|
|
230
|
+
configId="6a579569dc07b01447bd9797"
|
|
231
|
+
initialStartDate={new Date("2026-01-01")}
|
|
232
|
+
initialEndDate={new Date("2026-04-18")}
|
|
233
|
+
onDateChange={(p) => console.log("range:", p)}
|
|
234
|
+
onFiltersApplied={(f) => console.log("filters:", f)}
|
|
235
|
+
renderLoading={() => <MySpinner />}
|
|
236
|
+
renderError={(err, retry) => <MyError message={err.message} onRetry={retry} />}
|
|
237
|
+
/>
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
### 4.1 Section order (`sectionOrder` / `hiddenSections`)
|
|
241
|
+
|
|
242
|
+
Everything in the dashboard body can be re-ordered by passing **the same keys the
|
|
243
|
+
API sends** — today `graphBuilder`, `kpiCards` and `tableBuilder`:
|
|
244
|
+
|
|
245
|
+
```tsx
|
|
246
|
+
// Tables on top, then the KPI cards, then the chart.
|
|
247
|
+
<ExecutiveDashboardWrapper
|
|
248
|
+
configId="6a579569dc07b01447bd9797"
|
|
249
|
+
sectionOrder={["tableBuilder", "kpiCards", "graphBuilder"]}
|
|
250
|
+
/>
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
Two parts have a **fixed position**: the **date filter bar** stays pinned at the
|
|
254
|
+
top and the **filters sidebar** is an overlay, so its position never affects the
|
|
255
|
+
layout. `sectionOrder` therefore ignores `dateFilters` / `sidebarFilters` — handy
|
|
256
|
+
when you're just reordering the config's key list wholesale:
|
|
257
|
+
|
|
258
|
+
```tsx
|
|
259
|
+
// Same result as above.
|
|
260
|
+
sectionOrder={["dateFilters", "sidebarFilters", "tableBuilder", "kpiCards", "graphBuilder"]}
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
Fixed position doesn't mean permanent, though — **`hiddenSections` can remove
|
|
264
|
+
them**:
|
|
265
|
+
|
|
266
|
+
```tsx
|
|
267
|
+
hiddenSections={["dateFilters", "sidebarFilters"]} // both gone
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
**New sections work automatically.** When the backend grows another section, pass
|
|
271
|
+
its key the same way — `sectionOrder={["kpiCards", "pieChartBuilder", "graphBuilder"]}`.
|
|
272
|
+
Nothing about ordering needs to change: the order is resolved against whatever
|
|
273
|
+
sections the dashboard currently renders, and the prop type accepts any string, so
|
|
274
|
+
a new key never trips the type checker.
|
|
275
|
+
|
|
276
|
+
Details:
|
|
277
|
+
|
|
278
|
+
- **Partial lists are fine.** Anything omitted keeps its default position, so
|
|
279
|
+
`sectionOrder={["tableBuilder"]}` alone means "tables first, then the rest as
|
|
280
|
+
usual".
|
|
281
|
+
- **`hiddenSections` drops a part** — separate from `sectionOrder`, so nothing
|
|
282
|
+
disappears just for being left out of the order. It's applied last, so hiding
|
|
283
|
+
always wins, and it accepts the pinned parts as well as the body sections:
|
|
284
|
+
```tsx
|
|
285
|
+
sectionOrder={["kpiCards", "graphBuilder"]}
|
|
286
|
+
hiddenSections={["tableBuilder", "sidebarFilters"]}
|
|
287
|
+
```
|
|
288
|
+
Hiding `sidebarFilters` also removes the **Filter** button (and its count) from
|
|
289
|
+
the date bar, since there'd be no panel left for it to open. Hiding
|
|
290
|
+
`dateFilters` only removes the bar — the dashboard still loads data for the
|
|
291
|
+
config's default date range.
|
|
292
|
+
- **Key matching is forgiving** — case-insensitive, and spaces/underscores/dashes
|
|
293
|
+
are ignored, so `"Table Builder"`, `"table_builder"` and `"tableBuilder"` are
|
|
294
|
+
the same key.
|
|
295
|
+
- **Unknown keys are ignored**, not thrown — they'd usually come from config. In
|
|
296
|
+
development an ignored key logs a console warning naming it and listing the
|
|
297
|
+
available sections, so a typo is easy to spot. Duplicates collapse.
|
|
298
|
+
|
|
299
|
+
#### Driving the order from the backend config
|
|
300
|
+
|
|
301
|
+
The UI config payload may also carry the order as `data.sectionOrder`, which is
|
|
302
|
+
useful when the layout should travel with the dashboard config instead of being
|
|
303
|
+
hard-coded in the host app:
|
|
304
|
+
|
|
305
|
+
```json
|
|
306
|
+
{
|
|
307
|
+
"data": {
|
|
308
|
+
"sectionOrder": ["tableBuilder", "kpiCards", "graphBuilder"],
|
|
309
|
+
"dateFilters": { "...": "..." },
|
|
310
|
+
"graphBuilder": { "...": "..." },
|
|
311
|
+
"kpiCards": ["..."],
|
|
312
|
+
"tableBuilder": ["..."]
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
The `sectionOrder` **prop wins** over `data.sectionOrder`, so a host can always
|
|
318
|
+
override what the config asks for. Both go through the same resolution, so the
|
|
319
|
+
same keys work in either place.
|
|
320
|
+
|
|
321
|
+
The resolver is exported if a host needs the same behaviour in its own layout UI:
|
|
322
|
+
|
|
323
|
+
```tsx
|
|
324
|
+
import {
|
|
325
|
+
DASHBOARD_SECTION_KEYS, // ["graphBuilder", "kpiCards", "tableBuilder"]
|
|
326
|
+
PINNED_SECTION_KEYS, // ["dateFilters", "sidebarFilters"]
|
|
327
|
+
resolveSectionOrder, // (order?, hidden?, configOrder?, available?) → string[]
|
|
328
|
+
isSectionHidden, // (hidden, "dateFilters") → boolean
|
|
329
|
+
} from "@e-llm-studio/federated-dashboard-components";
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
> Ordering **within** a section still comes from the config: KPI cards honour
|
|
333
|
+
> `displayOrder`, graph tiers/series honour theirs, and table placement inside
|
|
334
|
+
> the grid is controlled by [`tableLayout.spans`](#per-table-widths-spans).
|
|
335
|
+
|
|
336
|
+
---
|
|
337
|
+
|
|
338
|
+
## 5. The `tables` prop in depth
|
|
339
|
+
|
|
340
|
+
The UI config's `tableBuilder` defines *which* tables exist and their raw
|
|
341
|
+
columns. The `tables` prop lets the **host app** decide how each of those tables
|
|
342
|
+
*renders* — custom cell JSX, headers, per-column styles, and the surrounding
|
|
343
|
+
card chrome (icon + title). It's optional and partial: any table key you don't
|
|
344
|
+
provide falls back to auto-generated plain-text columns.
|
|
345
|
+
|
|
346
|
+
```ts
|
|
347
|
+
type DashboardTablesConfig = Record<string, DashboardTableRenderConfig>;
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
The keys must match `tableBuilder[].key` from the UI config.
|
|
351
|
+
|
|
352
|
+
### `DashboardTableRenderConfig`
|
|
353
|
+
|
|
354
|
+
| Field | Type | Description |
|
|
355
|
+
| ------------ | --------------------------- | ------------------------------------------------------------------------------------------------------- |
|
|
356
|
+
| `columns` | `FTableColumn[]` | **Required.** Column render definitions (see below). |
|
|
357
|
+
| `tableProps` | `Record<string, any>` | Passthrough props merged onto the underlying PrimeReact `DataTable` (e.g. `{ showGridlines: true }`). |
|
|
358
|
+
| `card` | `DashboardTableCardStyles` | Styling for the card wrapping the table (shell, header, title, icon). |
|
|
359
|
+
|
|
360
|
+
### `FTableColumn`
|
|
361
|
+
|
|
362
|
+
| Field | Type | Description |
|
|
363
|
+
| ---------------- | ------------------------------------ | ----------------------------------------------------------------------- |
|
|
364
|
+
| `key` | `string` | Row field / column identity. |
|
|
365
|
+
| `header` | `React.ReactNode` | Header cell content (string or JSX). |
|
|
366
|
+
| `body` | `(row: TableRow) => React.ReactNode` | Cell renderer for each row. `TableRow` is `Record<string, any>`. |
|
|
367
|
+
| `style` | `React.CSSProperties` | Applied to **both** header and body cells of the column. |
|
|
368
|
+
| `headerStyle` | `React.CSSProperties` | Header-cell (`<th>`) only; overrides `style` for the header. |
|
|
369
|
+
| `bodyStyle` | `React.CSSProperties` | Body-cell (`<td>`) only; overrides `style` for rows. |
|
|
370
|
+
| `headerClassName`| `string` | Class on the header cell. |
|
|
371
|
+
| `bodyClassName` | `string` | Class on body cells. |
|
|
372
|
+
|
|
373
|
+
### `DashboardTableCardStyles`
|
|
374
|
+
|
|
375
|
+
| Field | Type | Description |
|
|
376
|
+
| -------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
|
|
377
|
+
| `root` | `React.CSSProperties` | The card shell. **Set `width` here to size the whole card** — the table fills it. |
|
|
378
|
+
| `header` | `React.CSSProperties` | The header row (icon + title + search/expand controls). |
|
|
379
|
+
| `title` | `React.CSSProperties` | The title text (font, colour, padding). |
|
|
380
|
+
| `icon` | `{ size?: number; color?: string; background?: string; style?: CSSProperties }` | Glyph size/colour, chip background, and an escape hatch for other icon-container CSS. |
|
|
381
|
+
|
|
382
|
+
> **Sizing tip:** To make a table narrower, set `card.root.width` (e.g.
|
|
383
|
+
> `"60%"`). Sizing only the table leaves the card full-width.
|
|
384
|
+
|
|
385
|
+
### Full table example
|
|
386
|
+
|
|
387
|
+
```tsx
|
|
388
|
+
import type { DashboardTablesConfig, FTableColumn, TableRow } from "@e-llm-studio/federated-dashboard-components";
|
|
389
|
+
|
|
390
|
+
const money = (v: any) => (Number.isFinite(Number(v)) ? `$${v}` : String(v ?? ""));
|
|
391
|
+
|
|
392
|
+
const linkCol = (field: string, header: string): FTableColumn => ({
|
|
393
|
+
key: field,
|
|
394
|
+
header,
|
|
395
|
+
body: (row) => <a href="#" style={{ color: "#7c3aed" }}>{row[field]}</a>,
|
|
396
|
+
});
|
|
397
|
+
|
|
398
|
+
const TABLES: DashboardTablesConfig = {
|
|
399
|
+
claim_cost_by_incident_type: {
|
|
400
|
+
tableProps: { showGridlines: true },
|
|
401
|
+
card: {
|
|
402
|
+
header: { padding: "10px" },
|
|
403
|
+
title: { fontSize: 16, color: "#111827" },
|
|
404
|
+
icon: { size: 18, color: "#059669" },
|
|
405
|
+
},
|
|
406
|
+
columns: [
|
|
407
|
+
linkCol("incident_type", "Incident Type"),
|
|
408
|
+
{ key: "total_claim_cost", header: "Total Claim Cost", body: (r) => money(r.total_claim_cost) },
|
|
409
|
+
{ key: "litigation_rate", header: "Litigation Rate", body: (r) => `${r.litigation_rate} %` },
|
|
410
|
+
],
|
|
411
|
+
},
|
|
412
|
+
};
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
### 5.1 Table grid layout (`tableLayout`)
|
|
416
|
+
|
|
417
|
+
When the UI config has more than one table, a small toolbar appears above the
|
|
418
|
+
tables section with one icon per layout — **1 / 2 / 3 tables per row**. Picking
|
|
419
|
+
an icon re-flows the tables into that many columns.
|
|
420
|
+
|
|
421
|
+
The layout is always responsive: `minColumnWidth` is the narrowest a table card
|
|
422
|
+
may become, and the grid drops columns automatically as the *container* (not the
|
|
423
|
+
window) gets narrower — 3-up becomes 2-up, then 1-up. The user's choice is
|
|
424
|
+
remembered, so widening the container restores it. An option that can't fit at
|
|
425
|
+
the current width is dimmed in the toolbar.
|
|
426
|
+
|
|
427
|
+
```tsx
|
|
428
|
+
<ExecutiveDashboardWrapper
|
|
429
|
+
configId="6a579569dc07b01447bd9797"
|
|
430
|
+
tables={TABLES}
|
|
431
|
+
tableLayout={{
|
|
432
|
+
options: [1, 2, 3], // icons offered in the toolbar
|
|
433
|
+
defaultColumns: 2, // start 2-up
|
|
434
|
+
minColumnWidth: 420, // drop a column below this per-card width
|
|
435
|
+
gap: 16,
|
|
436
|
+
toggleLabel: "Layout",
|
|
437
|
+
}}
|
|
438
|
+
/>
|
|
439
|
+
```
|
|
440
|
+
|
|
441
|
+
| Field | Type | Default | Description |
|
|
442
|
+
| ----------------- | ------------------------------------------- | ----------- | ---------------------------------------------------------------------- |
|
|
443
|
+
| `spans` | `Record<string, TableSpan>` \| `TableSpan[]` | — | Per-table width — see [below](#per-table-widths-spans). |
|
|
444
|
+
| `totalColumns` | `number` | `12` | Grid columns the `spans` values are expressed in. |
|
|
445
|
+
| `defaultSpan` | `TableSpan` | full width | Width for tables missing from `spans`. |
|
|
446
|
+
| `options` | `number[]` | `[1, 2, 3]` | Column counts offered as toolbar icons (`1`–`4` have dedicated icons). |
|
|
447
|
+
| `defaultColumns` | `number \| "custom"` | see note | Layout on first render. Defaults to `"custom"` when `spans` is set, else `1`. |
|
|
448
|
+
| `columns` | `number \| "custom"` | — | Controlled layout. Pair with `onColumnsChange` to own the state. |
|
|
449
|
+
| `onColumnsChange` | `(columns: number \| "custom") => void` | — | Fires when the user picks a layout. |
|
|
450
|
+
| `showToggle` | `boolean` | `true` | Hide the toolbar and keep the configured column count. Auto-hidden for 1 table. |
|
|
451
|
+
| `toggleLabel` | `string` | — | Caption rendered left of the toggle. |
|
|
452
|
+
| `minColumnWidth` | `number` | `380` | Narrowest a card may get before a column is dropped — this drives the reflow. |
|
|
453
|
+
| `gap` | `number` | `12` | Gap between cards, in px. |
|
|
454
|
+
| `equalHeights` | `boolean` | `true` | Stretch every card in a row to the tallest one. `false` lets each card hug its own content. |
|
|
455
|
+
|
|
456
|
+
Cards in the same row are height-matched by default, so a 5-row table beside a
|
|
457
|
+
10-row one no longer renders short — the shorter table's card fills the row
|
|
458
|
+
height. To cap how tall a row can get, give the table a scroll height via
|
|
459
|
+
`tables[key].tableProps`, e.g. `{ scrollHeight: "360px" }`.
|
|
460
|
+
|
|
461
|
+
#### Per-table widths (`spans`)
|
|
462
|
+
|
|
463
|
+
Uniform 1/2/3-up is the user's control. `spans` is the **host's** control: it
|
|
464
|
+
sets the width of each table individually, so table 1 can own a full row while
|
|
465
|
+
tables 2 and 3 sit side by side and table 4 goes full width again.
|
|
466
|
+
|
|
467
|
+
```tsx
|
|
468
|
+
tableLayout={{
|
|
469
|
+
spans: {
|
|
470
|
+
revenue_summary: "full", // row 1 — on its own
|
|
471
|
+
claims_by_type: "1/2", // row 2 — side by side
|
|
472
|
+
claims_by_plant: "1/2", //
|
|
473
|
+
litigation_log: "full", // row 3 — on its own
|
|
474
|
+
},
|
|
475
|
+
}}
|
|
476
|
+
```
|
|
477
|
+
|
|
478
|
+
Keys are the table's `key` from the UI config's `tableBuilder`. An array works
|
|
479
|
+
too and is read in table order — handy when the layout is positional:
|
|
480
|
+
|
|
481
|
+
```tsx
|
|
482
|
+
tableLayout={{ spans: ["full", "1/2", "1/2", "full"] }}
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
Accepted values (`TableSpan`): `"full"`, any fraction string (`"1/2"`, `"1/3"`,
|
|
486
|
+
`"2/3"`, `"1/4"`, `"3/4"`, …), or a raw column count against `totalColumns`
|
|
487
|
+
(`6` is half of the default 12-column grid). Rows are formed by CSS grid
|
|
488
|
+
auto-placement, so spans that overflow a row simply wrap.
|
|
489
|
+
|
|
490
|
+
**This stays responsive.** No table is ever rendered narrower than
|
|
491
|
+
`minColumnWidth`; spans widen instead. With the four-table layout above at
|
|
492
|
+
`minColumnWidth: 380`:
|
|
493
|
+
|
|
494
|
+
| Container width | Result |
|
|
495
|
+
| --------------- | --------------------------------------------------- |
|
|
496
|
+
| ≥ 772px | `[T1]` / `[T2 + T3]` / `[T4]` — the configured shape |
|
|
497
|
+
| < 772px | `[T1]` / `[T2]` / `[T3]` / `[T4]` — all full width |
|
|
498
|
+
|
|
499
|
+
(772px = two 380px cards plus the 12px gap.) Raise `minColumnWidth` to make it
|
|
500
|
+
break to one column earlier, lower it to hold two columns longer.
|
|
501
|
+
|
|
502
|
+
When `spans` is set, the toolbar grows an extra icon for the configured layout
|
|
503
|
+
and starts on it. The user can still switch to a uniform 1/2/3-up and click
|
|
504
|
+
back to the configured one. Pass `showToggle: false` to lock the layout down.
|
|
505
|
+
|
|
506
|
+
The same grid is exported standalone as `TableGrid` if you're composing table
|
|
507
|
+
cards yourself:
|
|
508
|
+
|
|
509
|
+
```tsx
|
|
510
|
+
import { TableGrid, TableCard } from "@e-llm-studio/federated-dashboard-components";
|
|
511
|
+
|
|
512
|
+
<TableGrid defaultColumns={2} minColumnWidth={400}>
|
|
513
|
+
<TableCard title="Claims" table={{ rows, columns }} />
|
|
514
|
+
<TableCard title="Providers" table={{ rows: rows2, columns: columns2 }} />
|
|
515
|
+
</TableGrid>;
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
---
|
|
519
|
+
|
|
520
|
+
## 6. Backend API contract
|
|
521
|
+
|
|
522
|
+
The wrapper (via [src/api/dashboardApi.ts](src/api/dashboardApi.ts)) calls three
|
|
523
|
+
`POST` JSON endpoints, all relative to `baseUrl`. Each responds with an envelope:
|
|
524
|
+
|
|
525
|
+
```jsonc
|
|
526
|
+
{
|
|
527
|
+
"success": true,
|
|
528
|
+
"request_id": "…",
|
|
529
|
+
"data": { /* … */ },
|
|
530
|
+
"error": null | { "errorMessage": "…", "errorType": "…" }
|
|
531
|
+
}
|
|
532
|
+
```
|
|
533
|
+
|
|
534
|
+
A non-2xx status, or `success: false`, throws a `DashboardApiError` (surfaced in
|
|
535
|
+
the wrapper's error UI).
|
|
536
|
+
|
|
537
|
+
### 6.1 `POST /federated/filters/ui` — structure & labels
|
|
538
|
+
|
|
539
|
+
Request: `{ "config_id": "<configId>" }`
|
|
540
|
+
|
|
541
|
+
Returns the dashboard layout: `dateFilters`, `sidebarFilters`, `graphBuilder`
|
|
542
|
+
(tiers → plot options → series), `kpiCards`, and optional `tableBuilder`. See
|
|
543
|
+
`DashboardUIData` in [§9](#9-typescript-types-reference).
|
|
544
|
+
|
|
545
|
+
### 6.2 `POST /federated/filters/distinct-value` — filter options
|
|
546
|
+
|
|
547
|
+
Request: `{ "config_id": "<configId>" }`
|
|
548
|
+
|
|
549
|
+
Returns `{ "sidebarFilters": { "<schemaFilterName>": string[] } }`. The wrapper
|
|
550
|
+
merges these arrays into each sidebar filter definition as its `options`.
|
|
551
|
+
|
|
552
|
+
> UI config (6.1) and distinct values (6.2) are fetched **in parallel** and
|
|
553
|
+
> merged into a single `DashboardUIConfig`.
|
|
554
|
+
|
|
555
|
+
### 6.3 `POST /federated/filters/get-data` — the numbers
|
|
556
|
+
|
|
557
|
+
Request:
|
|
558
|
+
|
|
559
|
+
```jsonc
|
|
560
|
+
{
|
|
561
|
+
"config_id": "<configId>",
|
|
562
|
+
"dateFilters": { "startDate": "<ISO>", "endDate": "<ISO>" },
|
|
563
|
+
"sidebarFilters": { "<schemaFilterName>": ["value", …] }
|
|
564
|
+
}
|
|
565
|
+
```
|
|
566
|
+
|
|
567
|
+
Filter normalisation: single-select values become one-element arrays; empty /
|
|
568
|
+
unset filters are dropped from the payload.
|
|
569
|
+
|
|
570
|
+
Response `data` shape (`DashboardDataResponse`):
|
|
571
|
+
|
|
572
|
+
```jsonc
|
|
573
|
+
{
|
|
574
|
+
"graph": {
|
|
575
|
+
"<graphKey>": [
|
|
576
|
+
{ "key": "<tierKey>", "plotbyoptions": { "<plotOptionKey>": { "<seriesKey>": [ { "x": "D1", "y": 58 }, … ] } } }
|
|
577
|
+
]
|
|
578
|
+
},
|
|
579
|
+
"kpiCards": {
|
|
580
|
+
// either a bare value…
|
|
581
|
+
"Fill Rate Impact": "2.8k",
|
|
582
|
+
// …or an object carrying a baseline for indicator colouring:
|
|
583
|
+
"Total Claim Cost": { "currentValue": 8421316, "baselineValue": 7900000 }
|
|
584
|
+
},
|
|
585
|
+
"table": {
|
|
586
|
+
"<tableKey>": [ { /* row */ }, … ]
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
```
|
|
590
|
+
|
|
591
|
+
---
|
|
592
|
+
|
|
593
|
+
## 7. Exported building blocks
|
|
594
|
+
|
|
595
|
+
If you're composing a dashboard by hand rather than using the wrapper, the
|
|
596
|
+
following are exported from the package root (see [src/index.ts](src/index.ts)):
|
|
597
|
+
|
|
598
|
+
### Components
|
|
599
|
+
|
|
600
|
+
| Export | Notes |
|
|
601
|
+
| --------------------- | -------------------------------------------------------- |
|
|
602
|
+
| `Graph` | Multi-pane line chart. Props: `GraphProps`. |
|
|
603
|
+
| `LineChart` | Single line chart primitive. |
|
|
604
|
+
| `PlotBySelector` | Dropdown used to switch a tier's plotted metric. |
|
|
605
|
+
| `DashboardDateFilter` | Date-range picker with presets + refresh/filter buttons. |
|
|
606
|
+
| `MetricCard` | KPI card. Props: `MetricCardProps`. |
|
|
607
|
+
| `FiltersSidebar` | Slide-out filter panel. Props: `FiltersSidebarProps`. |
|
|
608
|
+
| `FTable` | Low-level table. Props: `FTableProps`. |
|
|
609
|
+
| `TableCard` | `FTable` wrapped in a titled/iconed card. Props: `TableCardProps`. |
|
|
610
|
+
| `TableGrid` | Responsive N-per-row grid + layout toggle for table cards. Props: `TableGridProps`. |
|
|
611
|
+
| `TableLayoutToggle` | The 1/2/3-per-row icon group on its own. Props: `TableLayoutToggleProps`. |
|
|
612
|
+
| `useResponsiveColumns`| Hook behind the grid — caps a desired column count to what the container fits. |
|
|
613
|
+
| `DashboardCard` | Rich content card (sections, tags, events, news, grid). |
|
|
614
|
+
|
|
615
|
+
### Chart primitives (shadcn/Recharts port)
|
|
616
|
+
|
|
617
|
+
`ChartContainer`, `ChartTooltip`, `ChartTooltipContent`, `ChartLegend`,
|
|
618
|
+
`ChartLegendContent`, `useChart`, plus the `ChartConfig` type and the
|
|
619
|
+
`DEFAULT_COLORS` / `colorForIndex` palette helpers.
|
|
620
|
+
|
|
621
|
+
### Date presets
|
|
622
|
+
|
|
623
|
+
`DATE_PRESETS` and related exports from `datePreset` — e.g. `DAYS_7`, `DAYS_15`,
|
|
624
|
+
`DAYS_30`, `THIS_MONTH`, `CUSTOM`. Each preset with a `getRange()` returns
|
|
625
|
+
`{ startDate, endDate }`.
|
|
626
|
+
|
|
627
|
+
---
|
|
628
|
+
|
|
629
|
+
## 8. KPI formatting utilities
|
|
630
|
+
|
|
631
|
+
Exported from the package root for formatting/colouring KPI values consistently
|
|
632
|
+
(see [src/utils/index.ts](src/utils/index.ts)):
|
|
633
|
+
|
|
634
|
+
| Export | Signature / purpose |
|
|
635
|
+
| --------------------- | ----------------------------------------------------------------------------------------------------------- |
|
|
636
|
+
| `formatKpiValue` | Format a raw KPI value using a format string (compacts numbers, preserves suffixes like `%`). |
|
|
637
|
+
| `getKpiDelta` | Compute the delta (absolute + %) and sentiment between a current and baseline value. Returns `KpiDelta`. |
|
|
638
|
+
| `getKpiSentiment` | `(current, baseline, indicatorLogic) → "positive" \| "negative" \| "neutral"`. |
|
|
639
|
+
| `getKpiValueColor` | Resolve a display colour from sentiment, with optional per-sentiment overrides. |
|
|
640
|
+
| `isKpiValueObject` | Type guard: is a raw value the `{ currentValue, baselineValue }` object form? |
|
|
641
|
+
| `KPI_SENTIMENT_COLORS`| Default positive/negative colour map. |
|
|
642
|
+
| `compactNumber` | `8421316 → "8.4M"` style compaction. |
|
|
643
|
+
|
|
644
|
+
`IndicatorLogic` is one of `"higher_better" | "lower_better" | "neutral"` — it
|
|
645
|
+
tells the sentiment helpers whether an increase is good or bad.
|
|
646
|
+
|
|
647
|
+
```ts
|
|
648
|
+
import {
|
|
649
|
+
getKpiDelta,
|
|
650
|
+
getKpiValueColor,
|
|
651
|
+
} from "@e-llm-studio/federated-dashboard-components";
|
|
652
|
+
|
|
653
|
+
const delta = getKpiDelta(8421316, 7900000, "higher_better");
|
|
654
|
+
// → { …, sentiment: "positive" }
|
|
655
|
+
const color = getKpiValueColor(8421316, 7900000, "higher_better");
|
|
656
|
+
```
|
|
657
|
+
|
|
658
|
+
---
|
|
659
|
+
|
|
660
|
+
## 9. TypeScript types reference
|
|
661
|
+
|
|
662
|
+
All types below are exported (or defined) in
|
|
663
|
+
[src/types/index.ts](src/types/index.ts) and re-exported from the root where
|
|
664
|
+
noted.
|
|
665
|
+
|
|
666
|
+
- **Container:** `DashboardContainerProps` — the wrapper's prop bag ([§4](#4-executivedashboardwrapper-props)).
|
|
667
|
+
- **UI config:** `DashboardUIConfig` → `DashboardUIData` → `{ dateFilters, sidebarFilters, graphBuilder, kpiCards, tableBuilder, sectionOrder? }`.
|
|
668
|
+
- `DateFiltersConfig` — `datepresets`, `defaultPreset`, `showFilterButton`, `showFilterCount`, `showLiveButton`, `liveDurationMs`.
|
|
669
|
+
- `SidebarFilterConfig` — `label`, `description`, `schemaFilterName`, `type`.
|
|
670
|
+
- `GraphBuilderConfig` — `title`, `subtitle`, `icon`, `axis`, `tiers[]`, `legend`.
|
|
671
|
+
- `GraphTierConfig` — `key`, `title`, `displayOrder`, `plotOptions[]`, `yAxis`, `series[]`.
|
|
672
|
+
- `PlotOptionConfig`, `SeriesConfig`, `LegendConfig`, `KpiCardConfig`.
|
|
673
|
+
- **Data:** `DashboardDataResponse`, `TierData`, `PlotByOptions`, `SeriesDataMap`, `DataPoint`.
|
|
674
|
+
- **Query:** `DashboardQueryParams` — `{ startDate?, endDate?, filters? }`.
|
|
675
|
+
- **Tables:** `DashboardTablesConfig`, `DashboardTableRenderConfig`, `DashboardTableCardStyles`, `DashboardTableLayoutConfig`, `TableBuilderConfig`, `TableColumnConfig`, `FTableColumn`, `TableRow`.
|
|
676
|
+
- **Layout:** `DashboardSectionKey` — a section named by its UI config key (`"graphBuilder" | "kpiCards" | "tableBuilder"`, plus any future one, since any string is accepted). Used by `sectionOrder` / `hiddenSections` ([§4.1](#41-section-order-sectionorder--hiddensections)).
|
|
677
|
+
- **KPI:** `KpiValueObject`, `KpiDelta`, `KpiSentiment`, `IndicatorLogic`.
|
|
678
|
+
- **Fetchers:** `FetchUIConfig`, `FetchDashboardData` (function types for the pluggable fetchers).
|
|
679
|
+
|
|
680
|
+
---
|
|
681
|
+
|
|
682
|
+
## 10. Troubleshooting
|
|
683
|
+
|
|
684
|
+
| Symptom | Likely cause / fix |
|
|
685
|
+
| --------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
686
|
+
| `ExecutiveDashboardWrapper` is `undefined` on import | Ensure you're on a build that exports it from the root; it is exported from [src/index.ts](src/index.ts). |
|
|
687
|
+
| Blank / unstyled layout | You didn't import `dist/styles.css` (and/or PrimeReact's theme CSS). See [§1](#1-import-the-stylesheet-once). |
|
|
688
|
+
| Requests hit the wrong host / 404 | `baseUrl` defaults to `https://dev.appmod.ai`. For another environment pass an explicit absolute `baseUrl`. |
|
|
689
|
+
| "Failed to load dashboard" with a Retry button | An API returned non-2xx or `success: false`. Check the three endpoints in [§6](#6-backend-api-contract) and the `config_id`. |
|
|
690
|
+
| Tables render as plain text | No matching entry in `tables` for that `tableBuilder[].key`. Keys must match exactly. See [§5](#5-the-tables-prop-in-depth). |
|
|
691
|
+
| Peer dependency warnings on install | Install the peers listed in [§1](#peer-dependencies) at compatible versions. |
|
|
692
|
+
|
|
693
|
+
---
|
|
694
|
+
|
|
695
|
+
_Package: `@e-llm-studio/federated-dashboard-components` · Entry:
|
|
696
|
+
[src/index.ts](src/index.ts) · Wrapper:
|
|
697
|
+
[src/ExecutiveDashboardWrapper.tsx](src/ExecutiveDashboardWrapper.tsx) · API
|
|
698
|
+
layer: [src/api/dashboardApi.ts](src/api/dashboardApi.ts)_
|