@e-llm-studio/federated-dashboard-components 1.0.7 → 1.0.8
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
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__awaiter as n,__rest as e,__assign as r,__generator as t,__spreadArray as l}from"../_virtual/_tslib.js";import{jsx as o,Fragment as a,jsxs as i}from"react/jsx-runtime";import u,{useState as d,useRef as s,useMemo as c,useCallback as v,useEffect as f}from"react";import{ExecutiveDashboard as b}from"./components/ExecutiveDashboard.js";import{DATE_PRESETS as g}from"./components/DashboardDateFilter/datePreset.js";import{DashboardSkeleton as p}from"./components/DashboardSkeleton/DashboardSkeleton.js";import{fetchUIConfig as h,fetchCurrentConfigUIVersionFromRedis as m,fetchDashboardData as D,fetchTableData as E}from"./api/dashboardApi.js";import{useVisibilityPolling as y}from"./hooks/useVisibilityPolling.js";var I=1e4;function w(w){var C,F,S=this,A=w.baseUrl,P=void 0===A?"https://dev.appmod.ai":A,R=w.configId,j=w.graphEmptyState,M=w.tables,x=w.tableLayout,L=w.sectionOrder,O=w.hiddenSections,k=w.fetchUIConfig,T=w.fetchUIVersionFromRedis,U=w.fetchDashboardData,N=w.fetchTableData,V=w.initialStartDate,K=w.initialEndDate,B=w.onDateChange,_=w.onFiltersApplied,z=w.renderLoading,G=w.renderError,H=w.pollingConfigProp,q=null!=k?k:h,J=null!=T?T:m,Q=null!=U?U:D,W=null!=N?N:E,X=d(null),Y=X[0],Z=X[1],$=d(null),nn=$[0],en=$[1],rn=d(!0),tn=rn[0],ln=rn[1],on=d(!0),an=on[0],un=on[1],dn=d(null),sn=dn[0],cn=dn[1],vn=d(!1),fn=vn[0],bn=vn[1],gn=d({}),pn=gn[0],hn=gn[1],mn=d({}),Dn=mn[0],En=mn[1],yn=d({}),In=yn[0],wn=yn[1],Cn=d(null),Fn=Cn[0],Sn=Cn[1],An=u.useRef(null),Pn=u.useRef(!1),Rn=s(null),jn=s(null),Mn=s({}),xn=s(null),Ln=s(new Set),On=s(!1),kn=s(I),Tn=s(-1),Un=s(!0),Nn=d(null!==(F=null===(C=null==Y?void 0:Y.data)||void 0===C?void 0:C.dateFilters.defaultPreset)&&void 0!==F?F:"today"),Vn=Nn[0],Kn=Nn[1],Bn=d(!1),_n=Bn[0],zn=Bn[1],Gn=d({}),Hn=Gn[0],qn=Gn[1],Jn=c(function(){var n,e;if(Y){var r=Y.data.dateFilters;return(null==r?void 0:r.pollingEnabled)&&(kn.current=null!==(n=r.pollingInterval)&&void 0!==n?n:I),{pollingEnabled:null!==(e=Boolean("yes"===(null==r?void 0:r.pollingEnabled)))&&void 0!==e&&e,pollingInterval:I,maxErrorInterval:5e4,backoffMultiplier:1.5}}},[Y]),Qn=c(function(){return null!=H?H:Jn},[H,Jn]),Wn=function(n){var e=Object.values(g).find(function(e){return e.value===n});return e&&"getRange"in e?e.getRange():null},Xn=v(function(){return n(S,void 0,void 0,function(){var n,e,r,l,o,a,i,u,d,s,c,v,f,b;return t(this,function(t){switch(t.label){case 0:ln(!0),cn(null),null===(i=Rn.current)||void 0===i||i.abort(),n=new AbortController,Rn.current=n,t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,q({configId:R,baseUrl:P},n.signal)];case 2:return e=t.sent(),Z(e),r={},null===(s=null===(d=null===(u=null==e?void 0:e.data)||void 0===u?void 0:u.graphBuilder)||void 0===d?void 0:d.tiers)||void 0===s||s.forEach(function(n){n.plotOptions.length>0&&(r[n.key]=n.plotOptions[0].value)}),hn(r),l={},null===(v=null===(c=null==e?void 0:e.data)||void 0===c?void 0:c.sidebarFilters)||void 0===v||v.forEach(function(n){l[n.schemaFilterName]="Multi select"===n.type?[]:""}),En(l),wn(l),Pn.current||(o=V&&K?{startDate:V,endDate:K}:Wn(null===(b=null===(f=null==e?void 0:e.data)||void 0===f?void 0:f.dateFilters)||void 0===b?void 0:b.defaultPreset))&&(Pn.current=!0,An.current={start:o.startDate.getTime(),end:o.endDate.getTime()},Sn({start:o.startDate,end:o.endDate})),[3,5];case 3:return"AbortError"===(null==(a=t.sent())?void 0:a.name)?[2]:(cn(a),[3,5]);case 4:return Rn.current===n&&ln(!1),[7];case 5:return[2]}})})},[R,P,q,V,K]),Yn=v(function(){return n(S,void 0,void 0,function(){var n,e,r,l,o;return t(this,function(t){switch(t.label){case 0:if(On.current)return[3,7];On.current=!0,console.log("----- POLLING API ----"),null===(o=xn.current)||void 0===o||o.abort(),n=new AbortController,xn.current=n,t.label=1;case 1:return t.trys.push([1,5,6,7]),[4,J({configId:R,baseUrl:P},n.signal)];case 2:return(null==(e=t.sent())?void 0:e.timestamp)&&parseInt(null==e?void 0:e.timestamp)>Tn.current?(r=Wn(Vn),console.log("loadData ranges: ",{selectedPreset:Vn,currentRange:r}),[4,Zn(r).then(function(){return Tn.current=parseInt(e.timestamp)})]):[3,4];case 3:t.sent(),t.label=4;case 4:return Un.current=!1,[3,7];case 5:return"AbortError"===(null==(l=t.sent())?void 0:l.name)?[2]:(console.error("Something went wrong while fetching version from Redis"),[3,7]);case 6:return On.current=!1,[7];case 7:return[2]}})})},[Vn,J]);y((null==Jn?void 0:Jn.pollingEnabled)&&_n,kn.current,Yn,[Qn,_n,Vn,Yn]),f(function(){return Xn(),function(){var n;return null===(n=Rn.current)||void 0===n?void 0:n.abort()}},[Xn]),f(function(){if(Jn&&Jn.pollingEnabled){var n=Jn.pollingInterval;"number"==typeof n&&!isNaN(n)&&n>0&&(kn.current=n)}},[Jn]);var Zn=v(function(e){return n(S,void 0,void 0,function(){var n,r,l,o,a,i,u,d;return t(this,function(t){switch(t.label){case 0:if(!Fn)return[2];null===(a=jn.current)||void 0===a||a.abort(),n=new AbortController,jn.current=n,Un.current&&un(!0),cn(null),console.log("loadData ranges: ",{selectedPreset:Vn,currentRange:e}),t.label=1;case 1:return t.trys.push([1,3,4,5]),r={startDate:(null==Jn?void 0:Jn.pollingEnabled)&&e&&"custom"!==Vn?e.startDate:Fn.start,endDate:(null==Jn?void 0:Jn.pollingEnabled)&&e&&"custom"!==Vn?e.endDate:Fn.end,filters:In},[4,Q({configId:R,baseUrl:P},r,n.signal)];case 2:return l=t.sent(),en(l),(null==Jn?void 0:Jn.pollingEnabled)||qn({}),kn.current&&(null==Qn?void 0:Qn.pollingEnabled)&&(null==Jn?void 0:Jn.pollingInterval)&&(kn.current=null!==(i=null==Qn?void 0:Qn.pollingInterval)&&void 0!==i?i:I,Un.current=!1),[3,5];case 3:return"AbortError"===(null==(o=t.sent())?void 0:o.name)?[2]:(cn(o),kn.current&&(null==Qn?void 0:Qn.maxErrorInterval)&&(kn.current=Math.min(kn.current*(null!==(u=null==Jn?void 0:Jn.backoffMultiplier)&&void 0!==u?u:1.5),null!==(d=null==Jn?void 0:Jn.maxErrorInterval)&&void 0!==d?d:5e4)),[3,5]);case 4:return jn.current===n&&un(!1),[7];case 5:return[2]}})})},[R,P,Fn,In,Q]),$n=v(function(e,o){return n(S,void 0,void 0,function(){var n,a,i,u,d,s,c;return t(this,function(t){switch(t.label){case 0:if(!Fn||!Ln.current.has(e)||Mn.current[e])return[2];n=new AbortController,Mn.current[e]=n,a=function(){return!Ln.current.has(e)||n.signal.aborted||Mn.current[e]!==n},qn(function(n){var t,l,o,a,i,u,d,s;return r(r({},n),((t={})[e]={rows:null!==(o=null===(l=n[e])||void 0===l?void 0:l.rows)&&void 0!==o?o:[],cursor:null===(a=n[e])||void 0===a?void 0:a.cursor,hasMore:null!==(u=null===(i=n[e])||void 0===i?void 0:i.hasMore)&&void 0!==u&&u,loading:!0,loaded:null!==(s=null===(d=n[e])||void 0===d?void 0:d.loaded)&&void 0!==s&&s},t))}),t.label=1;case 1:return t.trys.push([1,3,4,5]),[4,W({configId:R,baseUrl:P},r({startDate:Fn.start,endDate:Fn.end,filters:In,tableKey:e,pageSize:20},o?{cursor:o}:{}),n.signal)];case 2:return i=t.sent(),u=null!==(c=null===(s=i.table)||void 0===s?void 0:s[e])&&void 0!==c?c:[],a()?[2]:(qn(function(n){var t,o,a=n[e];return a?r(r({},n),((t={})[e]={rows:l(l([],a.rows,!0),u,!0),cursor:null!==(o=i.nextCursor)&&void 0!==o?o:void 0,hasMore:i.hasNext,loading:!1,loaded:!0},t)):n}),[3,5]);case 3:return"AbortError"===(null==(d=t.sent())?void 0:d.name)||a()?[2]:(qn(function(n){var t;return n[e]?r(r({},n),((t={})[e]=r(r({},n[e]),{loading:!1,hasMore:!1}),t)):n}),[3,5]);case 4:return Mn.current[e]===n&&delete Mn.current[e],[7];case 5:return[2]}})})},[R,P,Fn,In,W]),ne=v(function(n,r){var t;if(!r)return Ln.current.delete(n),null===(t=Mn.current[n])||void 0===t||t.abort(),delete Mn.current[n],void qn(function(r){var t=r,l=n;return t[l],e(t,["symbol"==typeof l?l:l+""])});Ln.current.add(n),$n(n)},[$n]),ee=v(function(n){var e=Hn[n];(null==e?void 0:e.hasMore)&&!e.loading&&e.cursor&&$n(n,e.cursor)},[$n,Hn]);f(function(){return function(){Ln.current.clear(),Object.values(Mn.current).forEach(function(n){return n.abort()})}},[]),f(function(){return Zn(),function(){var n;return null===(n=jn.current)||void 0===n?void 0:n.abort()}},[Zn]),f(function(){return function(){var n;return null===(n=xn.current)||void 0===n?void 0:n.abort()}},[]),f(function(){!function(n){var e=Object.values(g).find(function(e){return e.value===n}),r=!(!e||!("pollingEnabled"in e)||!1===e.pollingEnabled);zn(r)}(Vn)},[Vn]);var re=v(function(n){if((null==n?void 0:n.startDate)&&(null==n?void 0:n.endDate)){var e=n.startDate.getTime(),r=n.endDate.getTime();An.current&&An.current.start===e&&An.current.end===r||(An.current={start:e,end:r},Sn({start:n.startDate,end:n.endDate}))}null==B||B(n),un(!0)},[B]),te=tn||an&&!nn;return sn?G?o(a,{children:G(sn,Xn)}):i("div",r({style:{padding:24,color:"#b91c1c"}},{children:["Failed to load dashboard: ",sn.message,o("button",r({onClick:Xn,style:{marginLeft:12}},{children:"Retry"}))]})):!te&&Y&&nn&&Fn?(console.log("pollingEnabled: ",null==Jn?void 0:Jn.pollingEnabled,_n),o(b,{uiConfig:Y,data:nn,dataLoading:an,startDate:Fn.start,endDate:Fn.end,onDateChange:re,onRefresh:function(){Zn(),un(!0)},selectedKpis:pn,onKpiChange:function(n,e){hn(function(t){var l;return r(r({},t),((l={})[n]=e,l))})},sidebarVisible:fn,onSidebarShow:function(){return bn(!0)},onSidebarHide:function(){return bn(!1)},filterValues:Dn,onFilterChange:function(n,e){En(function(t){var l;return r(r({},t),((l={})[n]=e,l))})},onFilterReset:function(){if(Y){var n={};Y.data.sidebarFilters.forEach(function(e){n[e.id]="multiSelect"===e.type?[]:""}),En(n)}},onFilterApply:function(){wn(Dn),bn(!1),null==_||_(Dn)},appliedFilters:In,graphEmptyState:j,tables:M,tableLayout:x,sectionOrder:L,hiddenSections:O,tablePages:Hn,onTableExpand:ne,onTableLoadMore:ee,pollingEnabled:(null==Jn?void 0:Jn.pollingEnabled)&&_n,selectedPreset:Vn,handlePresetChange:function(n){Kn(n)}})):z?o(a,{children:z()}):o(p,{})}export{w as ExecutiveDashboardWrapper,w as default};
|
|
2
|
+
//# sourceMappingURL=ExecutiveDashboardWrapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExecutiveDashboardWrapper.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__extends as t,__awaiter as e,__generator as r,__assign as n}from"../../_virtual/_tslib.js";var i=function(e){function r(t,r){var n=e.call(this,t)||this;return n.name="DashboardApiError",n.status=r,n}return t(r,e),r}(Error),a=function(t){return t.replace(/\/+$/,"")};function s(t,n,a){var s;return e(this,void 0,void 0,function(){var e,o;return r(this,function(r){switch(r.label){case 0:return[4,fetch(t,{method:"POST",headers:{accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(n),signal:a})];case 1:if(!(e=r.sent()).ok)throw new i("Request failed with status ".concat(e.status),e.status);return[4,e.json()];case 2:if(!(o=r.sent()).success)throw new i((null===(s=o.error)||void 0===s?void 0:s.errorMessage)||"Request failed");return[2,o.data]}})})}function o(t,n){var a;return e(this,void 0,void 0,function(){var e,s;return r(this,function(r){switch(r.label){case 0:return[4,fetch(t,{method:"GET",headers:{accept:"application/json"},signal:n})];case 1:if(!(e=r.sent()).ok)throw new i("Request failed with status ".concat(e.status),e.status);return[4,e.json()];case 2:if(!(s=r.sent()).success)throw new i((null===(a=s.error)||void 0===a?void 0:a.errorMessage)||"Request failed");return[2,s.data]}})})}function c(t,n){var i=t.configId,o=t.baseUrl,c=void 0===o?"":o;return e(this,void 0,void 0,function(){return r(this,function(t){return[2,s("".concat(a(c),"/federated/filters/ui"),{config_id:i},n)]})})}function u(t,n){var i=t.configId,o=t.baseUrl,c=void 0===o?"":o;return e(this,void 0,void 0,function(){var t;return r(this,function(e){switch(e.label){case 0:return[4,s("".concat(a(c),"/federated/filters/distinct-value"),{config_id:i},n)];case 1:return[2,(null==(t=e.sent())?void 0:t.sidebarFilters)||{}]}})})}function d(t,i){return e(this,void 0,void 0,function(){var e,a,s;return r(this,function(r){switch(r.label){case 0:return[4,Promise.all([c(t,i),u(t,i)])];case 1:return e=r.sent(),a=e[0],s=e[1],[2,{data:n(n({},a),{sidebarFilters:(a.sidebarFilters||[]).map(function(t){return n(n({},t),{options:s[t.schemaFilterName]||[]})})})}]}})})}function f(t,n){var i=t.configId,s=void 0===i?"":i,c=t.baseUrl,u=void 0===c?"":c;return e(this,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return[4,o("".concat(a(null!=u?u:""),"/federated/filters/dashboard/").concat(s,"/last-updated/"),n)];case 1:return[2,t.sent()]}})})}function l(t){void 0===t&&(t={});var e={};return Object.entries(t).forEach(function(t){var r=t[0],n=t[1];Array.isArray(n)?n.length>0&&(e[r]=n):""!==n&&null!=n&&(e[r]=[n])}),e}function v(t,n,i){var o=t.configId,c=t.baseUrl,u=void 0===c?"":c;return e(this,void 0,void 0,function(){var t;return r(this,function(e){return t={config_id:o,dateFilters:{startDate:n.startDate?n.startDate.toISOString():"",endDate:n.endDate?n.endDate.toISOString():""},sidebarFilters:l(n.filters)},[2,s("".concat(a(u),"/federated/filters/get-data"),t,i)]})})}function h(t,i,o){var c,u=t.configId,d=t.baseUrl,f=void 0===d?"":d;return e(this,void 0,void 0,function(){return r(this,function(t){return[2,s("".concat(a(f),"/federated/filters/table-data"),n({config_id:u,dateFilters:{startDate:i.startDate?i.startDate.toISOString():"",endDate:i.endDate?i.endDate.toISOString():""},sidebarFilters:l(i.filters),tableKey:i.tableKey,pageSize:null!==(c=i.pageSize)&&void 0!==c?c:20},i.cursor?{cursor:i.cursor}:{}),o)]})})}export{i as DashboardApiError,f as fetchCurrentConfigUIVersionFromRedis,v as fetchDashboardData,h as fetchTableData,d as fetchUIConfig};
|
|
2
|
+
//# sourceMappingURL=dashboardApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboardApi.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as r,Fragment as t,jsx as n}from"react/jsx-runtime";import l,{NEWS_DOT_COLORS as o}from"./styles/DashboardCardStyles.js";var s=function(s){var a=s.items,i=s.accentBg,c=s.accentBorder,d=s.accentText;if(0===a.length)return null;var m={backgroundColor:i,borderColor:c};return r(t,{children:[n("div",e({style:e(e({},l.newsBanner),m)},{children:n("p",e({style:e(e({},l.newsBannerTitle),{color:d})},{children:"Breaking News"}))})),a.map(function(t,s){return r("div",e({style:e(e(e({},l.newsItem),m),s===a.length-1?l.newsItemLast:{})},{children:[n("span",{style:e(e({},l.newsItemDot),{backgroundColor:o[t.level]})}),n("p",e({style:e(e({},l.newsItemText),{color:d})},{children:t.text}))]}),s)})]})};export{s as BreakingNewsBanner};
|
|
2
|
+
//# sourceMappingURL=BreakingNewsBanner.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as n,Fragment as r}from"react/jsx-runtime";import{useState as l,useRef as c}from"react";import o,{DASHBOARD_CARD_KEYFRAMES as i}from"./styles/DashboardCardStyles.js";var a=function(a){for(var h=a.accent,s=a.iconBg,d=a.icon,y=a.title,u=a.badge,p=a.heroValue,f=a.heroLabel,x=a.heroColor,g=a.heroDelta,v=a.chartData,m=a.chartLabels,b=a.chartColor,C=a.chartPrefix,M=a.footer,k=a.children,L=l(null),S=L[0],w=L[1],D=c(null),W=240,T=90,j=18,A=12,R=v&&v.length>0?Math.min.apply(Math,v):0,B=v&&v.length>0?Math.max.apply(Math,v):100,V=B-R===0?1:B-R,z=(v||[]).map(function(e,t){var n=v.length;return{x:n>1?j+t/(n-1)*204:120,y:78-(e-R)/V*66,value:e,index:t}}),F=z.length>0?"M ".concat(z[0].x," ").concat(z[0].y):"",H=0;H<z.length-1;H++){var I=z[H],N=z[H+1];F+=" C ".concat(I.x+(N.x-I.x)/3," ").concat(I.y,", ").concat(I.x+2*(N.x-I.x)/3," ").concat(N.y,", ").concat(N.x," ").concat(N.y)}var O,P,$=z.length>0?"".concat(F," L ").concat(z[z.length-1].x," ").concat(78," L ").concat(z[0].x," ").concat(78," Z"):"",_=null!==S?z[S]:null,E=function(e){return y.toLowerCase().includes("security")?String(Math.round(e)):"$"===C?"$".concat(e.toFixed(2)):e>=1e3?"".concat((e/1e3).toFixed(1),"K"):String(e)},G=function(e){if(!e)return"Recent";var t=e.split(":");if(t.length<2)return e;var n=parseInt(t[0],10),r=t[1],l=n>=12?"PM":"AM";return"".concat(n=n%12||12,":").concat(r," ").concat(l)},K=(O=y.toLowerCase(),P=h.toLowerCase(),O.includes("security")||P.includes("red")||P.includes("rose")?o.themeRose:O.includes("finops")||P.includes("violet")||P.includes("purple")?o.themeViolet:O.includes("health")||P.includes("sky")||P.includes("emerald")?o.themeSky:O.includes("change")||P.includes("amber")||P.includes("orange")?o.themeAmber:o.themeNeutral);return t("div",e({style:o.card},{children:[n("style",{children:i}),t("div",e({style:e(e({},o.cardHeader),K)},{children:[t("div",e({style:o.headerTop},{children:[t("div",e({style:o.headerIconTitle},{children:[n("div",e({style:e(e({},o.iconWrap),{backgroundColor:s})},{children:d})),n("h3",e({style:o.title},{children:y}))]})),n("span",e({style:o.badge},{children:u}))]})),t("div",e({style:o.heroRow},{children:[t("div",e({style:o.hero},{children:[n("span",e({style:e(e({},o.heroValue),{color:x})},{children:p})),n("span",e({style:o.heroLabel},{children:f})),g&&n("span",e({style:e(e({},o.heroDelta),g.up?o.heroDeltaUp:o.heroDeltaDown)},{children:g.text}))]})),t("div",e({style:o.chartCol},{children:[t("div",e({style:o.chartHeader},{children:[n("span",{children:"Trend Timeline"}),_&&n("span",e({style:o.chartTooltip},{children:y.toLowerCase().includes("security")?"".concat(E(_.value)," alerts at ").concat(m?G(m[_.index]):""):"".concat(m?"".concat(G(m[_.index]),": "):"").concat(E(_.value))}))]})),n("div",e({style:o.chartWrap},{children:v&&v.length>1?t("svg",e({ref:D,viewBox:"0 0 ".concat(W," ").concat(T),style:o.chartSvg,onMouseMove:function(e){if(D.current&&0!==z.length){for(var t=D.current.getBoundingClientRect(),n=(e.clientX-t.left)/t.width*W,r=0,l=Math.abs(z[0].x-n),c=1;c<z.length;c++){var o=Math.abs(z[c].x-n);o<l&&(l=o,r=c)}w(r)}},onMouseLeave:function(){return w(null)}},{children:[n("defs",{children:t("linearGradient",e({id:"grad-".concat(y.replace(/\s+/g,"")),x1:"0",y1:"0",x2:"0",y2:"1"},{children:[n("stop",{offset:"0%",stopColor:b,stopOpacity:.12}),n("stop",{offset:"100%",stopColor:b,stopOpacity:0})]}))}),n("text",e({x:12,y:15,textAnchor:"end",style:{fontSize:8,fontWeight:900,letterSpacing:"-0.05em",fill:"#020617"}},{children:E(B)})),n("text",e({x:12,y:81,textAnchor:"end",style:{fontSize:8,fontWeight:900,letterSpacing:"-0.05em",fill:"#020617"}},{children:E(R)})),n("path",{d:$,fill:"url(#grad-".concat(y.replace(/\s+/g,""),")")}),n("path",{d:F,fill:"none",stroke:b,strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round"}),_?t(r,{children:[n("line",{x1:_.x,y1:A,x2:_.x,y2:78,stroke:"#64748b",strokeWidth:.75,strokeDasharray:"2,2"}),n("circle",{cx:_.x,cy:_.y,r:4,fill:b,opacity:.2}),n("circle",{cx:_.x,cy:_.y,r:2,fill:b,stroke:"#ffffff",strokeWidth:1})]}):z.length>0&&n("circle",{cx:z[z.length-1].x,cy:z[z.length-1].y,r:2.5,fill:b})]})):n("span",e({style:o.chartEmpty},{children:"No live telemetry"}))}))]}))]}))]})),n("div",e({style:o.body},{children:k})),M&&n("div",e({style:o.footer},{children:M}))]}))};export{a as CardShell};
|
|
2
|
+
//# sourceMappingURL=CardShell.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as l,jsx as r}from"react/jsx-runtime";import o from"./styles/DashboardCardStyles.js";import{TopDropdownMenu as t}from"./TopDropdownMenu.js";var i=function(i){var d=i.item;return l("div",e({style:o.centeredCell,onClick:d.onClick},{children:[d.dropdown&&r(t,{config:d.dropdown}),r("div",e({style:o.centeredCellLabel},{children:d.label})),r("div",e({style:e(e({},o.centeredCellValue),d.valueColor?{color:d.valueColor}:{})},{children:d.value})),d.sub&&r("div",e({style:e(e({},o.centeredCellSub),d.subColor?{color:d.subColor}:{})},{children:d.sub}))]}))};export{i as CenteredCell};
|
|
2
|
+
//# sourceMappingURL=CenteredCell.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as o}from"../../../_virtual/_tslib.js";import{jsx as r,Fragment as e,jsxs as t}from"react/jsx-runtime";import n from"react";import a from"./styles/DashboardCardStyles.js";import{CardShell as l}from"./CardShell.js";import{SkeletonRow as i}from"./SkeletonRow.js";import{BreakingNewsBanner as c}from"./BreakingNewsBanner.js";import{SectionHeadingBar as s}from"./SectionHeadingBar.js";import{FooterLinkButton as h}from"./FooterLinkButton.js";import{renderSectionContent as m}from"./sectionContent.js";var d=function(d){var f=d.accent,u=d.iconBg,p=d.icon,g=d.title,b=d.badge,C=void 0===b?"Today":b,B=d.heroValue,j=d.heroLabel,k=d.heroColor,v=d.heroDelta,L=d.chartData,x=d.chartLabels,y=d.chartColor,D=void 0===y?"#6366f1":y,S=d.chartPrefix,w=void 0===S?"":S,T=d.loading,F=d.footer,N=d.footerLinks,P=d.breakingNews,V=d.accentBg,_=d.accentBorder,H=d.accentText,M=d.sections,R=null!=F?F:N&&N.length>0?r("div",o({style:o(o({},a.footerLinks),N.length>1?a.footerLinksMulti:{})},{children:N.map(function(o,e){return r(h,{label:o.label,onClick:o.onClick},e)})})):null;return r(l,o({accent:f,iconBg:u,icon:p,title:g,badge:C,heroValue:B,heroLabel:j,heroColor:k,heroDelta:v,chartData:null!=L?L:null,chartLabels:x,chartColor:D,chartPrefix:w,footer:R},{children:T?r(e,{children:[0,1,2].map(function(o){return r(i,{},o)})}):t("div",o({style:a.bodyContent},{children:[r(c,{items:P,accentBg:V,accentBorder:_,accentText:H}),M.map(function(o,e){return t(n.Fragment,{children:[r(s,{label:o.heading,color:o.headingColor,dotColor:o.dotColor,count:o.count,pulse:o.pulse}),m(o)]},e)})]}))}))};export{d as DashboardCard};
|
|
2
|
+
//# sourceMappingURL=DashboardCard.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as o,jsx as r}from"react/jsx-runtime";import{useState as l}from"react";import{ChevronRight as t}from"lucide-react";import i from"./styles/DashboardCardStyles.js";var a=function(a){var n=a.label,d=a.value,c=a.sub,s=a.onClick,u=a.valueColor,f=l(!1),m=f[0],v=f[1];return o(s?"button":"div",e({onClick:s,onMouseEnter:function(){return s&&v(!0)},onMouseLeave:function(){return s&&v(!1)},style:e(e(e({},i.detailRow),s?i.detailRowClickable:{}),s&&m?{backgroundColor:"#f8fafc"}:{})},{children:[o("div",e({style:i.detailRowMain},{children:[r("p",e({style:i.detailRowLabel},{children:n})),r("p",e({style:e(e({},i.detailRowValue),u?{color:u}:{})},{children:d})),c&&r("p",e({style:i.detailRowSub},{children:c}))]})),s&&r(t,{size:14,style:e(e({},i.detailRowChevron),m?i.detailRowChevronHover:{})})]}))};export{a as DetailRow};
|
|
2
|
+
//# sourceMappingURL=DetailRow.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsx as t,jsxs as o}from"react/jsx-runtime";import{useState as n}from"react";import{ChevronRight as r,X as l}from"lucide-react";import i,{SEV_BADGE_STYLES as a,SEV_BADGE_DEFAULT as c,SEV_DOT_COLORS as d,STATUS_BADGE_STYLES as s,STATUS_BADGE_DEFAULT as u,ACTION_COLORS as m}from"./styles/DashboardCardStyles.js";var v={BLOCKED:{action:"Request blocked — review policy rule",color:m.BLOCKED},FLAGGED:{action:"Flagged for review — investigate source",color:m.FLAGGED},ALLOWED:{action:"Allowed through — monitor for patterns",color:m.ALLOWED}};function y(e){var t=Math.floor((Date.now()-e.getTime())/1e3);if(t<60)return"just now";var o=Math.floor(t/60);if(o<60)return"".concat(o,"m ago");var n=Math.floor(o/60);return n<24?"".concat(n,"h ago"):"".concat(Math.floor(n/24),"d ago")}var h=function(m){var h,f,g,p,T=m.event,b=n(!1),D=b[0],L=b[1],w=n(!1),C=w[0],M=w[1],A=n(!1),E=A[0],S=A[1],k=null!==(h=a[T.severity])&&void 0!==h?h:c,R=T.status&&null!==(f=v[T.status])&&void 0!==f?f:null;return o("div",e({style:i.eventRowWrap},{children:[o("button",e({onClick:function(){return L(!0)},onMouseEnter:function(){return M(!0)},onMouseLeave:function(){return M(!1)},style:e(e({},i.eventRow),C?i.eventRowHover:{})},{children:[t("span",{style:e(e({},i.eventRowDot),{backgroundColor:null!==(g=d[T.severity])&&void 0!==g?g:"#cbd5e1"})}),t("p",e({style:i.eventRowTitle},{children:T.title})),t("span",e({style:i.eventRowTime},{children:y(T.timestamp)})),t(r,{size:10,style:i.eventRowChevron})]})),D&&t("div",e({style:i.modalOverlay},{children:o("div",e({style:i.modal},{children:[o("div",e({style:i.modalHeader},{children:[o("div",e({style:i.modalHeaderLeft},{children:[t("span",e({style:e(e({},i.modalBadge),k)},{children:T.severity})),T.status&&t("span",e({style:e(e({},i.modalStatusBadge),null!==(p=s[T.status])&&void 0!==p?p:u)},{children:T.status})),t("span",e({style:i.modalTitle},{children:T.title}))]})),t("button",e({onClick:function(){return L(!1)},style:i.modalClose,onMouseEnter:function(e){e.currentTarget.style.color="#475569",e.currentTarget.style.backgroundColor="rgba(226,232,240,0.5)"},onMouseLeave:function(e){e.currentTarget.style.color="#94a3b8",e.currentTarget.style.backgroundColor="transparent"}},{children:t(l,{size:14})}))]})),o("div",e({style:i.modalBody},{children:[T.triageSummary&&o("div",{children:[t("h4",e({style:i.modalSectionTitle},{children:"Summary"})),t("p",e({style:i.modalSummaryText},{children:T.triageSummary}))]}),T.details&&T.details.length>0&&o("div",e({style:i.modalBodySpacer},{children:[t("h4",e({style:e(e({},i.modalSectionTitle),i.modalSectionTitleTight)},{children:"Metadata Details"})),t("div",e({style:i.modalDetailsGrid},{children:T.details.map(function(n){return o("div",e({style:i.modalDetail},{children:[t("span",e({style:i.modalDetailLabel},{children:n.label})),t("span",e({style:i.modalDetailValue},{children:n.value}))]}),n.label)})}))]})),T.incidentUrl&&t("div",e({style:e(e({},i.modalLinkRow),i.modalBodySpacer)},{children:t("a",e({href:T.incidentUrl,target:"_blank",rel:"noopener noreferrer",style:i.modalLink,onMouseEnter:function(e){e.currentTarget.style.color="#4338ca",e.currentTarget.style.textDecoration="underline"},onMouseLeave:function(e){e.currentTarget.style.color="#6366f1",e.currentTarget.style.textDecoration="none"}},{children:"View External Incident →"}))}))]})),R&&t("div",e({style:i.modalActionRow},{children:o("button",e({onClick:function(){var e;L(!1),null===(e=T.onAction)||void 0===e||e.call(T)},onMouseEnter:function(){return S(!0)},onMouseLeave:function(){return S(!1)},style:e(e({},i.modalActionBtn),E?i.modalActionBtnHover:{})},{children:[t("span",e({style:e(e({},i.modalActionText),{color:R.color})},{children:R.action})),t(r,{size:12,style:e(e(e({},i.modalActionChevron),{color:R.color}),E?i.modalActionChevronHover:{})})]}))}))]}))}))]}))},f=function(e){return t("div",{children:e.map(function(e){return t(h,{event:e},e.id)})})};export{f as renderEventsSection};
|
|
2
|
+
//# sourceMappingURL=EventsSection.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as r}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as e}from"react/jsx-runtime";import{ChevronRight as o}from"lucide-react";import n from"./styles/DashboardCardStyles.js";var i=function(i){var l=i.label,c=i.onClick;return t("button",r({onClick:c,style:n.footerLink,onMouseEnter:function(r){return r.currentTarget.style.color="#4338ca"},onMouseLeave:function(r){return r.currentTarget.style.color="#6366f1"}},{children:[l," ",e(o,{size:11})]}))};export{i as FooterLinkButton};
|
|
2
|
+
//# sourceMappingURL=FooterLinkButton.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as r}from"../../../_virtual/_tslib.js";import{jsx as o,jsxs as e,Fragment as i}from"react/jsx-runtime";import l from"./styles/DashboardCardStyles.js";import{CenteredCell as d}from"./CenteredCell.js";import{TopDropdownMenu as n}from"./TopDropdownMenu.js";import{DetailRow as t}from"./DetailRow.js";var a=function(a,m,s){for(var p=[],c=0;c<a.length;c+=m)p.push(a.slice(c,c+m));return o("div",{children:p.map(function(a,p){return o("div",r({style:r(r(r({},l.gridRow),{gridTemplateColumns:"repeat(".concat(m,", minmax(0, 1fr))")}),p>0?l.gridRowDivider:{})},{children:a.map(function(a,m){return o("div",r({style:r(r(r({},l.gridCell),s?{}:l.gridCellPadded),m>0?l.gridCellDivider:{})},{children:s?o(d,{item:a}):e(i,{children:[a.dropdown&&o(n,{config:a.dropdown}),o("div",r({style:l.gridCellInner,onClick:a.dropdown?a.onClick:void 0},{children:o(t,{label:a.label,value:a.value,sub:a.sub,onClick:a.dropdown?void 0:a.onClick,valueColor:a.valueColor})}))]})}),m)})}),p)})})};export{a as renderGridSection};
|
|
2
|
+
//# sourceMappingURL=GridSection.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as i}from"../../../_virtual/_tslib.js";import{jsx as t,jsxs as e,Fragment as l}from"react/jsx-runtime";import{useState as o}from"react";import r from"./styles/DashboardCardStyles.js";var n=function(n){var s,c,d=n.item,u=n.compact,a=o(!1),v=a[0],m=a[1];return t("div",i({style:i(i(i({},r.listRow),u?r.listRowCompact:{}),v?r.listRowHover:{}),onClick:d.onClick,onMouseEnter:function(){return m(!0)},onMouseLeave:function(){return m(!1)}},{children:e(l,u?{children:[t("span",{style:i(i({},r.listRowDot),{backgroundColor:null!==(s=d.dotColor)&&void 0!==s?s:"#cbd5e1",animation:"dc-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite"})}),t("p",i({style:r.alertRowValue},{children:d.value})),d.sub&&t("span",i({style:r.alertRowSub},{children:d.sub}))]}:{children:[t("span",{style:i(i({},r.listRowDot),{backgroundColor:null!==(c=d.dotColor)&&void 0!==c?c:"#cbd5e1"})}),e("div",i({style:r.listRowMain},{children:[t("p",i({style:r.listRowValue},{children:d.value})),d.sub&&t("p",i({style:r.listRowSub},{children:d.sub}))]})),t("span",i({style:r.listRowLabel},{children:d.label}))]})}))},s=function(e){return t("div",{children:e.map(function(e,l){return t("div",i({style:l>0?r.listRowDivider:void 0},{children:t(n,{item:e})}),l)})})},c=function(e){return t("div",{children:e.map(function(e,l){return t("div",i({style:l>0?r.listRowDivider:void 0},{children:t(n,{item:e,compact:!0})}),l)})})};export{c as renderAlertsSection,s as renderListSection};
|
|
2
|
+
//# sourceMappingURL=ListSection.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as i,jsx as t}from"react/jsx-runtime";import n from"./styles/DashboardCardStyles.js";var o=function(o){var r=o.label,l=o.color,s=o.dotColor,a=o.count,c=o.pulse;return i("div",e({style:e(e({},n.sectionHeading),null!=l?l:n.sectionHeadingDefault)},{children:[s&&t("span",{style:e(e(e({},n.sectionHeadingDot),{backgroundColor:s}),c?{animation:"dc-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite"}:{})}),t("p",e({style:n.sectionHeadingLabel},{children:r})),void 0!==a&&t("span",e({style:n.sectionHeadingCount},{children:a}))]}))};export{o as SectionHeadingBar};
|
|
2
|
+
//# sourceMappingURL=SectionHeadingBar.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as i}from"react/jsx-runtime";import r from"./styles/DashboardCardStyles.js";var s=function(){return t("div",e({style:r.skeletonRow},{children:[i("div",{style:e(e({},r.skeletonLine),r.skeletonLineTitle)}),i("div",{style:e(e({},r.skeletonLine),r.skeletonLineValue)})]}))};export{s as SkeletonRow};
|
|
2
|
+
//# sourceMappingURL=SkeletonRow.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as t}from"../../../_virtual/_tslib.js";import{jsxs as e,jsx as l}from"react/jsx-runtime";import s from"./styles/DashboardCardStyles.js";var a=function(a){var r,n;return e("div",t({style:s.tags},{children:[l("div",t({style:s.tagsTop},{children:e("div",t({style:s.tagsMeta},{children:[l("span",t({style:s.tagsLabel},{children:a.label})),e("span",t({style:s.tagsCount},{children:[a.count," ",null!==(r=a.countSuffix)&&void 0!==r?r:1===a.count?"Item":"Items"]}))]}))})),l("div",t({style:s.tagsList},{children:a.tags.length>0?a.tags.map(function(a,r){var n;return e("span",t({style:s.tag},{children:[l("span",{style:t(t({},s.tagDot),{backgroundColor:null!==(n=a.dotColor)&&void 0!==n?n:"#94a3b8"})}),a.label]}),r)}):l("span",t({style:s.tagsEmpty},{children:null!==(n=a.emptyText)&&void 0!==n?n:"No items detected"}))}))]}))};export{a as renderTagsSection};
|
|
2
|
+
//# sourceMappingURL=TagsSection.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as r}from"../../../_virtual/_tslib.js";import{jsxs as n,Fragment as o,jsx as e}from"react/jsx-runtime";import{useState as t}from"react";import i from"./styles/DashboardCardStyles.js";var l=function(l){var d=l.config,a=t(!1),s=a[0],c=a[1];return n(o,{children:[n("button",r({onClick:function(r){r.stopPropagation(),c(!s)},style:r(r({},i.dropdownTrigger),s?i.dropdownTriggerOpen:i.dropdownTriggerClosed)},{children:["Top ",d.items.length," ▾"]})),s&&e("div",r({style:i.dropdownPanel,onMouseLeave:function(){return c(!1)}},{children:n("div",r({style:i.dropdownInner},{children:[e("span",r({style:i.dropdownTitle},{children:d.title})),d.items.map(function(o,t){return n("button",r({onClick:function(r){var n;r.stopPropagation(),null===(n=d.onClick)||void 0===n||n.call(d)},style:i.dropdownItem,onMouseEnter:function(r){return r.currentTarget.style.backgroundColor="#f8fafc"},onMouseLeave:function(r){return r.currentTarget.style.backgroundColor="transparent"}},{children:[n("span",r({style:i.dropdownItemName},{children:[t+1,". ",o.name]})),e("span",r({style:i.dropdownItemValue},{children:o.value}))]}),t)})]}))}))]})};export{l as TopDropdownMenu};
|
|
2
|
+
//# sourceMappingURL=TopDropdownMenu.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as l,Fragment as i}from"react/jsx-runtime";import{useState as n,useEffect as a}from"react";import{Button as o}from"primereact/button";import{RefreshCw as r,ListFilter as s}from"lucide-react";import d from"../DatePickers/DateSelector.js";import{DEFAULT_DATE_PRESETS as u}from"./datePreset.js";var c=function(c){var v,m,f,p,h=c.presets,D=void 0===h?u:h,g=c.filterCount,b=void 0===g?0:g,x=c.liveDuration,C=void 0===x?3e4:x,q=c.onDateChange,N=c.onRefresh,k=c.isRefreshLoading,y=c.onFilterClick,w=c.showFilterButton,P=void 0===w||w,R=c.showLiveButton,F=void 0===R||R,j=c.showFilterCount,B=void 0!==j&&j,E=c.datePickerProps,L=c.initialStartDate,T=c.initialEndDate;c.defaultPresets;var z=c.pollingEnabled,S=void 0!==z&&z,W=c.selectedPreset,_=void 0===W?"today":W,A=c.handlePresetChange,I=n(!0),G=I[0],H=I[1],J=n(L||null),K=J[0],M=J[1],O=n(T||null),Q=O[0],U=O[1];a(function(){M(L||null),U(T||null)},[L,T]);var V=n(!1),X=V[0],Y=V[1];a(function(){var e=setTimeout(function(){H(!1)},C);return function(){return clearTimeout(e)}},[_,C]),a(function(){if("custom"!==_){var e=D.find(function(e){return e.value===_});if(e&&e.getRange){var t=e.getRange();null==q||q({preset:_,startDate:t.startDate,endDate:t.endDate})}}},[_,D,q]);var Z=D;return t("div",e({className:"q-date-filter"},{children:[t("div",e({className:"q-date-filter-toolbar"},{children:[t("div",e({style:{display:"flex",alignItems:"center",gap:"8px",flexWrap:"wrap"}},{children:[l("div",e({className:"q-preset-container"},{children:null==Z?void 0:Z.map(function(t){return l("button",e({className:"q-preset-btn ".concat(_===(null==t?void 0:t.value)?"active":""),onClick:function(){return null==A?void 0:A(null==t?void 0:t.value)}},{children:null==t?void 0:t.label}),null==t?void 0:t.value)})})),F&&t(i,G&&!S?{children:[l("div",{style:{width:"1px",height:"31px",backgroundColor:"#CBD5E1"}}),t("div",e({className:"q-live-chip"},{children:[l("span",{className:"q-live-dot"}),"Live Data"]}))]}:{children:[l("div",{className:"q-date-separator",style:{width:"1px",height:"31px",backgroundColor:"#CBD5E1"}}),t(o,e({className:"q-refresh-btn",onClick:N},{children:[l(r,{size:16,strokeWidth:2.5,className:k?"q-spin":""}),l("span",{children:k?"Refreshing...":"Refresh"})]}))]})]})),P&&t("button",e({className:"q-filter-btn",onClick:y},{children:[l(s,{size:12.5}),"Filters",B&&b>0&&l("span",e({className:"q-filter-badge"},{children:b}))]}))]})),"custom"===_&&t("div",e({className:"q-custom-container"},{children:[l(d,{label:"From",value:K,minDate:null===(v=null==E?void 0:E.from)||void 0===v?void 0:v.minDate,maxDate:null!=Q?Q:null===(m=null==E?void 0:E.from)||void 0===m?void 0:m.maxDate,onChange:function(e){M(e),Y(!1)},styles:{root:{width:"250px"}}}),l(d,{label:"To",value:Q,minDate:null!=K?K:null===(f=null==E?void 0:E.to)||void 0===f?void 0:f.minDate,maxDate:null===(p=null==E?void 0:E.to)||void 0===p?void 0:p.maxDate,onChange:function(e){U(e),Y(!1)},styles:{root:{width:"250px"}}}),l(o,{className:"q-apply-btn",label:"Apply Range",disabled:!K||!Q||X,onClick:function(){K&&Q&&(null==q||q({preset:"custom",startDate:K,endDate:Q}),Y(!0))}})]}))]}))};export{c as default};
|
|
2
|
+
//# sourceMappingURL=DashboardDateFilter.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e={today:{label:"Today",value:"today",pollingEnabled:!0,getRange:function(){var e=new Date;return{startDate:new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),endDate:e}}},"1hour":{label:"1 Hour",value:"1hour",pollingEnabled:!0,getRange:function(){var e=new Date,t=new Date;return t.setHours(t.getHours()-1),{startDate:t,endDate:e}}},"3hours":{label:"3 Hours",value:"3hours",pollingEnabled:!0,getRange:function(){var e=new Date,t=new Date;return t.setHours(t.getHours()-3),{startDate:t,endDate:e}}},"6hours":{label:"6 Hours",value:"6hours",pollingEnabled:!0,getRange:function(){var e=new Date,t=new Date;return t.setHours(t.getHours()-6),{startDate:t,endDate:e}}},"12hours":{label:"12 Hours",value:"12hours",pollingEnabled:!0,getRange:function(){var e=new Date,t=new Date;return t.setHours(t.getHours()-12),{startDate:t,endDate:e}}},yesterday:{label:"Yesterday",value:"yesterday",pollingEnabled:!1,getRange:function(){var e=new Date;return e.setDate(e.getDate()-1),{startDate:new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),endDate:new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59)}}},"7days":{label:"7 Days",value:"7days",pollingEnabled:!0,getRange:function(){var e=new Date,t=new Date;return t.setDate(t.getDate()-6),{startDate:t,endDate:e}}},"15days":{label:"15 Days",value:"15days",pollingEnabled:!0,getRange:function(){var e=new Date,t=new Date;return t.setDate(t.getDate()-14),{startDate:t,endDate:e}}},"30days":{label:"30 Days",value:"30days",pollingEnabled:!0,getRange:function(){var e=new Date,t=new Date;return t.setDate(t.getDate()-29),{startDate:t,endDate:e}}},thisMonth:{label:"This Month",value:"thisMonth",pollingEnabled:!0,getRange:function(){var e=new Date;return{startDate:new Date(e.getFullYear(),e.getMonth(),1),endDate:e}}},lastMonth:{label:"Last Month",value:"lastMonth",pollingEnabled:!1,getRange:function(){var e=new Date;return{startDate:new Date(e.getFullYear(),e.getMonth()-1,1),endDate:new Date(e.getFullYear(),e.getMonth(),0,23,59,59)}}},last3Months:{label:"Last 3 Months",value:"last3Months",pollingEnabled:!0,getRange:function(){var e=new Date;return{startDate:new Date(e.getFullYear(),e.getMonth()-3,e.getDate()),endDate:e}}},"6months":{label:"6 Months",value:"6months",pollingEnabled:!0,getRange:function(){var e=new Date;return{startDate:new Date(e.getFullYear(),e.getMonth()-6,e.getDate()),endDate:e}}},"1year":{label:"1 Year",value:"1year",pollingEnabled:!0,getRange:function(){var e=new Date;return{startDate:new Date(e.getFullYear()-1,e.getMonth(),e.getDate()),endDate:e}}},custom:{label:"Custom",value:"custom"}},t=[e.today,e["1hour"],e["3hours"],e["6hours"],e["12hours"],e.yesterday,e["7days"],e["15days"],e["30days"],e.thisMonth,e.lastMonth,e.last3Months,e.custom],a=null==t?void 0:t.reduce(function(e,t){return e[t.value]=t,e},{});export{e as DATE_PRESETS,a as DATE_PRESET_MAP,t as DEFAULT_DATE_PRESETS};
|
|
2
|
+
//# sourceMappingURL=datePreset.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as l,jsx as s}from"react/jsx-runtime";function i(){return l("div",e({className:"q-skeleton","aria-busy":"true","aria-live":"polite"},{children:[l("div",e({className:"q-skeleton-toolbar"},{children:[l("div",e({className:"q-skeleton-presets"},{children:[s("div",{className:"q-skeleton-pill q-skeleton-pill--wide"}),s("div",{className:"q-skeleton-pill"}),s("div",{className:"q-skeleton-pill"}),s("div",{className:"q-skeleton-pill"})]})),s("div",{className:"q-skeleton-pill q-skeleton-pill--filter"})]})),l("div",e({className:"q-skeleton-card q-skeleton-graph"},{children:[l("div",e({className:"q-skeleton-graph-header"},{children:[l("div",{children:[s("div",{className:"q-skeleton-line q-skeleton-line--title"}),s("div",{className:"q-skeleton-line q-skeleton-line--subtitle"})]}),s("div",{className:"q-skeleton-pill q-skeleton-pill--selector"})]})),s("div",e({className:"q-skeleton-graph-body"},{children:s("svg",e({viewBox:"0 0 400 140",className:"q-skeleton-sparkline",preserveAspectRatio:"none"},{children:s("polyline",{points:"0,110 30,90 60,100 90,60 120,80 150,40 180,70 210,50 240,85 270,55 300,95 330,65 360,90 400,70",fill:"none",className:"q-skeleton-sparkline-path"})}))}))]})),s("div",e({className:"q-skeleton-kpis"},{children:[0,1,2].map(function(i){return l("div",e({className:"q-skeleton-card q-skeleton-kpi"},{children:[s("div",{className:"q-skeleton-line q-skeleton-line--label"}),s("div",{className:"q-skeleton-line q-skeleton-line--value"}),s("div",{className:"q-skeleton-line q-skeleton-line--sublabel"})]}),i)})}))]}))}export{i as DashboardSkeleton,i as default};
|
|
2
|
+
//# sourceMappingURL=DashboardSkeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardSkeleton.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as n,jsx as t,Fragment as a}from"react/jsx-runtime";import{useState as r}from"react";var c=["Mo","Tu","We","Th","Fr","Sa","Su"],l=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],o=function(e){var n=new Date(e);return n.setHours(0,0,0,0),n},i=function(i){var d=i.value,u=i.onChange,s=i.minDate,m=i.maxDate,h=new Date,f=r(null!=d?d:h),y=f[0],g=f[1],D=r("day"),p=D[0],b=D[1],k=null!=d?d:h,v=r(new Date(k.getFullYear(),k.getMonth(),1)),N=v[0],w=v[1],_=N.getFullYear(),C=N.getMonth(),M=16*Math.floor(_/16),S=new Date(_,C+1,0).getDate(),F=new Date(_,C,1).getDay(),Y=function(e){var n=o(e);return!!(s&&n<o(s))||!!(m&&n>o(m))},A=function(e){return Y(new Date(_,C,e))},j=Y(h),x=0===F?6:F-1,J=Array.from({length:x+S},function(e,n){return n<x?null:n-x+1}),T=function(e){return e===h.getDate()&&C===h.getMonth()&&_===h.getFullYear()},L=function(e){return y&&e===y.getDate()&&C===y.getMonth()&&_===y.getFullYear()};return n("div",e({className:"date-picker"},{children:[n("div",e({className:"date-picker__header"},{children:[t("button",e({className:"nav-btn",onClick:function(){w("day"===p?new Date(_,C-1,1):"month"===p?new Date(_-1,C,1):new Date(_-16,C,1))}},{children:"‹"})),t("span",e({className:"month-label"},{children:"year"===p?"".concat(M," – ").concat(M+15):"month"===p?_.toString():n(a,{children:[t("span",e({className:"month-label-click",onClick:function(){return b("month")}},{children:N.toLocaleString("default",{month:"long"})}))," ",t("span",e({className:"year-label-click",onClick:function(){return b("year")}},{children:_}))]})})),t("button",e({className:"nav-btn",onClick:function(){w("day"===p?new Date(_,C+1,1):"month"===p?new Date(_+1,C,1):new Date(_+16,C,1))}},{children:"›"}))]})),n("div",e({className:"date-picker__top-actions"},{children:[t("div",e({className:"selected-date"},{children:y?y.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):"Select date"})),t("button",e({className:"today-btn ".concat(j?"today-btn--disabled":""),onClick:function(){w(new Date(h.getFullYear(),h.getMonth(),1)),g(h),b("day"),null==u||u(h)},disabled:j},{children:"Today"}))]})),"month"===p&&t("div",e({className:"date-picker__month-grid"},{children:l.map(function(n,a){return t("button",e({className:"month-cell".concat(a===C?" month-cell--selected":""),onClick:function(){w(new Date(_,a,1)),b("day")}},{children:n}),n)})})),"year"===p&&t("div",e({className:"date-picker__year-grid"},{children:Array.from({length:16},function(e,n){return M+n}).map(function(n){return t("button",e({className:"year-cell".concat(n===_?" year-cell--selected":""),onClick:function(){w(new Date(n,C,1)),b("month")}},{children:n}),n)})})),"day"===p&&n(a,{children:[t("div",e({className:"date-picker__weekdays"},{children:c.map(function(e){return t("span",{children:e},e)})})),t("div",e({className:"date-picker__days"},{children:J.map(function(n,a){return n?t("button",e({disabled:A(n),className:["day",T(n)&&"day--today",L(n)&&"day--selected",A(n)&&"day--disabled"].filter(Boolean).join(" "),onClick:function(){return function(e){if(!A(e)){var n=new Date(_,C,e);g(n),null==u||u(n)}}(n)}},{children:n}),a):t("span",{},a)})}))]})]}))};export{i as default};
|
|
2
|
+
//# sourceMappingURL=DatePicker.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as n,Fragment as a}from"react/jsx-runtime";import{useRef as r,useState as i,useMemo as o,useEffect as l}from"react";import{Calendar as c,ChevronLeft as s,ChevronRight as d}from"lucide-react";var u=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],h=["Mo","Tu","We","Th","Fr","Sa","Su"];function m(e){var t=new Date(e);return t.setHours(0,0,0,0),t}function g(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function f(e,t){var n=new Date(e);return n.setMonth(n.getMonth()+t),n}function _(e){return e?e.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):""}var v=function(v){var p=v.value,y=v.onChange,D=v.placeholder,b=void 0===D?"Select date":D,N=v.disabled,w=void 0!==N&&N,M=v.isOpen,F=void 0!==M&&M,k=v.minDate,Y=v.maxDate,T=v.className,C=v.endIcon,S=void 0!==C&&C,x=r(null),L=i(F),z=L[0],A=L[1],B=i("day"),j=B[0],E=B[1],J=o(function(){if(!p.end)return p;var e=new Date(p.end);return e.setDate(e.getDate()-1),{start:p.start,end:e}},[p.start,p.end]),O=i(J.start),U=O[0],G=O[1],H=i(J.end),I=H[0],R=H[1],W=i(function(){var e,t,n=null!==(t=null!==(e=J.start)&&void 0!==e?e:J.end)&&void 0!==t?t:new Date;return new Date(n.getFullYear(),n.getMonth(),1)}),q=W[0],K=W[1],P=16*Math.floor(q.getFullYear()/16);l(function(){var e;G(J.start),R(J.end);var t=null!==(e=J.start)&&void 0!==e?e:J.end;t&&K(new Date(t.getFullYear(),t.getMonth(),1))},[J.start,J.end]),l(function(){var e=function(e){z&&x.current&&!x.current.contains(e.target)&&(A(!1),E("day"),G(J.start),R(J.end))};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[z,J.start,J.end]);var Q=o(function(){for(var e,t=q.getFullYear(),n=q.getMonth(),a=(new Date(t,n,1).getDay()+6)%7,r=new Date(t,n+1,0).getDate(),i=[],o=0;o<a;o++)i.push({date:new Date(t,n,1-(a-o)),inMonth:!1});for(var l=1;l<=r;l++)i.push({date:new Date(t,n,l),inMonth:!0});for(var c=42-i.length,s=0;s<c;s++){var d=null===(e=i[i.length-1])||void 0===e?void 0:e.date;if(!d)break;var u=new Date(d);u.setDate(u.getDate()+1),i.push({date:u,inMonth:!1})}return i},[q]),V=function(e){var t;!U||U&&I?(G(e),R(null)):(t=U,m(e).getTime()<m(t).getTime()?(R(U),G(e)):R(e))},X=function(e,t){if(!e&&!t)return"";var n=function(e){return e.toLocaleDateString("en-GB",{day:"2-digit",month:"short"})};return e&&!t?"".concat(n(e)," - ..."):!e&&t?"... - ".concat(n(t)):"".concat(n(e)," - ").concat(n(t)," ").concat(t.getFullYear())}(J.start,J.end);return t("div",e({className:"drs",ref:x},{children:[!F&&t("button",e({type:"button",className:"drs__trigger ".concat(T||""),onClick:function(){var e,t;if(!w){if(!z){var n=null!==(t=null!==(e=J.start)&&void 0!==e?e:J.end)&&void 0!==t?t:new Date;G(J.start),R(J.end),K(new Date(n.getFullYear(),n.getMonth(),1)),E("day")}A(function(e){return!e})}},disabled:w},{children:[!S&&n(c,{size:18,style:{color:"#6B7280"}}),n("span",e({className:"drs__label"},{children:X||b})),S&&n("span",e({style:{marginLeft:"auto"}},{children:n(c,{size:18,style:{color:"#6B7280"}})}))]})),z&&t("div",e({className:"drs__popover",role:"dialog","aria-label":"Date range picker"},{children:[t("div",e({className:"drs__header"},{children:[n("button",e({type:"button",className:"drs__nav",onClick:function(){K("day"===j?function(e){return f(e,-1)}:"month"===j?function(e){return new Date(e.getFullYear()-1,e.getMonth(),1)}:function(e){return new Date(e.getFullYear()-16,e.getMonth(),1)})}},{children:n(s,{size:18})})),n("div",e({className:"drs__month"},{children:"year"===j?"".concat(P," – ").concat(P+15):"month"===j?q.getFullYear().toString():t(a,{children:[n("span",e({className:"drs__month-click",onClick:function(){return E("month")}},{children:q.toLocaleDateString("en-US",{month:"long"})}))," ",n("span",e({className:"drs__year-click",onClick:function(){return E("year")}},{children:q.getFullYear()}))]})})),n("button",e({type:"button",className:"drs__nav",onClick:function(){K("day"===j?function(e){return f(e,1)}:"month"===j?function(e){return new Date(e.getFullYear()+1,e.getMonth(),1)}:function(e){return new Date(e.getFullYear()+16,e.getMonth(),1)})}},{children:n(d,{size:18})}))]})),"day"===j&&t("div",e({className:"drs__inputs"},{children:[n("div",e({className:"drs__input-box".concat(U?" is-active":"")},{children:U?_(U):n("span",e({className:"drs__input-placeholder"},{children:"Start date"}))})),n("span",e({className:"drs__input-sep"},{children:"–"})),n("div",e({className:"drs__input-box".concat(I?" is-active":"")},{children:I?_(I):n("span",e({className:"drs__input-placeholder"},{children:"End date"}))}))]})),"month"===j&&n("div",e({className:"drs__month-grid"},{children:u.map(function(t,a){return n("button",e({type:"button",className:"drs__month-cell".concat(q.getMonth()===a?" is-selected":""),onClick:function(){K(new Date(q.getFullYear(),a,1)),E("day")}},{children:t}),t)})})),"year"===j&&n("div",e({className:"drs__year-grid"},{children:Array.from({length:16},function(e,t){return P+t}).map(function(t){return n("button",e({type:"button",className:"drs__year-cell".concat(q.getFullYear()===t?" is-selected":""),onClick:function(){K(new Date(t,q.getMonth(),1)),E("month")}},{children:t}),t)})})),"day"===j&&t(a,{children:[n("div",e({className:"drs__week"},{children:h.map(function(t){return n("div",e({className:"drs__weekday"},{children:t}),t)})})),n("div",e({className:"drs__grid"},{children:Q.map(function(t,a){var r=t.date,i=!!U&&g(r,U),o=!!I&&g(r,I),l=!(!U||!I)&&function(e,t,n){var a=m(e).getTime();return a>=Math.min(m(t).getTime(),m(n).getTime())&&a<=Math.max(m(t).getTime(),m(n).getTime())}(r,U,I),c=i||o,s=i&&!!I,d=o&&!!U,u=a%7,h=0===u,f=6===u,_=function(e,t,n){var a=m(e).getTime();return!!(t&&a<m(t).getTime())||!!(n&&a>m(n).getTime())}(r,k,Y),v=["drs__day",t.inMonth?"":"is-out",l&&!c?"is-range":"",i?"is-start":"",o?"is-end":"",s?"is-range-start":"",d?"is-range-end":"",l&&h?"is-row-first":"",l&&f?"is-row-last":""].filter(Boolean).join(" ");return n("button",e({type:"button",className:"".concat(v," ").concat(_?"is-disabled":""),disabled:_,onClick:function(){_||V(r)}},{children:n("span",e({className:"drs__day-inner"},{children:r.getDate()}))}),a)})}))]}),t("div",e({className:"drs__footer"},{children:[n("button",e({type:"button",className:"drs__btn drs__btn--ghost",onClick:function(){G(null),R(null),y({start:null,end:null}),A(!1),E("day")}},{children:"Reset"})),n("button",e({type:"button",className:"drs__btn drs__btn--primary",disabled:!U||!I,onClick:function(){if(U&&I){var e=new Date(I);e.setDate(e.getDate()+1),y({start:U,end:e}),A(!1),E("day")}}},{children:"Apply"}))]}))]}))]}))};export{v as default};
|
|
2
|
+
//# sourceMappingURL=DateRangeSelector.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as n}from"react/jsx-runtime";import{useState as r,useRef as o,useEffect as a}from"react";import i from"./DatePicker.js";import{Calendar as l}from"lucide-react";var c=function(c){var u,d=c.label,s=c.value,m=c.placeholder,f=void 0===m?"Select date":m,v=c.minDate,g=c.maxDate,p=c.styles,h=c.onChange,_=r(!1),b=_[0],y=_[1],D=r(!1),q=D[0],w=D[1],x=o(null),C=o(null);return a(function(){var e=function(e){C.current&&!C.current.contains(e.target)&&x.current&&!x.current.contains(e.target)&&y(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]),t("div",e({className:"q-date-selector",style:null==p?void 0:p.root},{children:[d&&n("label",e({className:"q-date-selector__label"},{children:d})),t("button",e({ref:x,type:"button",className:"q-date-selector__trigger",style:null==p?void 0:p.trigger,onClick:function(){if(!b&&x.current){var e=x.current.getBoundingClientRect(),t=window.innerHeight-e.bottom,n=e.top;w(t<320&&n>t)}y(function(e){return!e})}},{children:[n("span",{children:s?(u=s,u.toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"numeric"})):f}),n(l,{size:14,color:"#64748B"})]})),b&&n("div",e({ref:C,className:"q-date-selector__panel ".concat(q?"q-date-selector__panel--top":""),style:null==p?void 0:p.panel},{children:n(i,{value:s,minDate:v,maxDate:g,onChange:function(e){h(e),y(!1)}})}))]}))};export{c as default};
|
|
2
|
+
//# sourceMappingURL=DateSelector.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e,__spreadArray as n}from"../../../_virtual/_tslib.js";import{jsxs as c,jsx as t}from"react/jsx-runtime";import{useState as r,useRef as l,useEffect as a,useMemo as i}from"react";import{Search as s}from"lucide-react";function o(o){var u=o.options,m=o.value,d=o.onChange,v=o.placeholder,h=void 0===v?"Select":v,f=o.searchPlaceholder,p=void 0===f?"Search..":f,g=o.showSelectAll,N=void 0===g||g,b=o.selectAllLabel,k=void 0===b?"All":b,x=r(!1),C=x[0],w=x[1],L=r(""),A=L[0],y=L[1],S=l(null);a(function(){var e=function(e){var n;(null===(n=S.current)||void 0===n?void 0:n.contains(e.target))||w(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]);var T=i(function(){var e=A.trim().toLowerCase();return e?u.filter(function(n){return n.label.toLowerCase().includes(e)}):u},[u,A,m]),j=i(function(){return u.map(function(e){return e.value})},[u]),E=m.length>0&&j.every(function(e){return m.includes(e)}),_=i(function(){var e;if(0===m.length)return h;if(E)return"All";if(1===m.length){var n=u.find(function(e){return e.value===m[0]});return null!==(e=null==n?void 0:n.label)&&void 0!==e?e:"1 selected"}return"".concat(m.length," selected")},[m,E,u,h]);return c("div",e({className:"cms-root",ref:S},{children:[c("button",e({type:"button",className:"cms-trigger",onClick:function(){return w(function(e){return!e})}},{children:[t("span",e({className:"cms-triggerText ".concat(m.length?"cms-hasValue":"")},{children:_})),t("span",e({className:"cms-chevron"},{children:"▾"}))]})),C&&c("div",e({className:"cms-panel"},{children:[u.length>0&&c("div",e({className:"cms-searchRow"},{children:[t(s,{size:18}),t("input",{className:"cms-searchInput",placeholder:p,value:A,onChange:function(e){return y(e.target.value)},autoFocus:!0})]})),N&&!(null==A?void 0:A.trim())&&u.length>0&&c("div",e({className:"cms-item",onClick:function(){d(E?[]:j)}},{children:[t("span",e({className:"cms-checkbox ".concat(E?"cms-checked":"")},{children:E?"✓":""})),t("span",e({className:"cms-itemText"},{children:k}))]})),t("div",e({className:"cms-list"},{children:0===T.length?t("div",e({className:"cms-empty"},{children:"No options found"})):T.map(function(r){var l=m.includes(r.value);return c("div",e({className:"cms-item",onClick:function(){return e=r.value,void(m.includes(e)?d(m.filter(function(n){return n!==e})):d(n(n([],m,!0),[e],!1)));var e}},{children:[t("span",e({className:"cms-checkbox ".concat(l?"cms-checked":"")},{children:l?"✓":""})),t("span",e({className:"cms-itemText"},{children:r.label}))]}),r.value)})}))]}))]}))}export{o as default};
|
|
2
|
+
//# sourceMappingURL=CustomMultiSelect.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as n,jsx as r}from"react/jsx-runtime";import{useState as t,useRef as s,useEffect as c,useMemo as a}from"react";import{Search as i}from"lucide-react";function o(o){var l=o.options,u=o.value,d=o.onChange,v=o.placeholder,m=void 0===v?"Select":v,f=o.searchPlaceholder,h=void 0===f?"Search...":f,p=o.disabled,N=void 0!==p&&p,g=t(!1),b=g[0],C=g[1],w=t(""),x=w[0],L=w[1],j=s(null);c(function(){var e=function(e){var n;(null===(n=j.current)||void 0===n?void 0:n.contains(e.target))||C(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]);var k=a(function(){var e=x.trim().toLowerCase();return e?l.filter(function(n){return n.label.toLowerCase().includes(e)}):l},[x,l]),y=a(function(){var e,n;return u&&null!==(n=null===(e=l.find(function(e){return e.value===u}))||void 0===e?void 0:e.label)&&void 0!==n?n:m},[u,l,m]);return n("div",e({className:"css-root",ref:j},{children:[n("button",e({type:"button",disabled:N,className:"css-trigger",onClick:function(){return C(function(e){return!e})}},{children:[r("span",e({className:"css-triggerText ".concat(u?"css-hasValue":"")},{children:y})),r("span",e({className:"css-chevron"},{children:"▾"}))]})),b&&n("div",e({className:"css-panel"},{children:[n("div",e({className:"css-searchRow"},{children:[r(i,{size:18}),r("input",{className:"css-searchInput",placeholder:h,value:x,autoFocus:!0,onChange:function(e){return L(e.target.value)}})]})),r("div",e({className:"css-list"},{children:0===k.length?r("div",e({className:"css-empty"},{children:"No options found"})):k.map(function(n){return r("div",e({className:"css-item ".concat(u===(null==n?void 0:n.value)?"css-selected":""),onClick:function(){return function(e){d(e),C(!1)}(n.value)}},{children:r("span",e({className:"css-itemText"},{children:n.label}))}),n.value)})}))]}))]}))}export{o as default};
|
|
2
|
+
//# sourceMappingURL=CustomSingleSelect.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as l,__spreadArray as i}from"../../_virtual/_tslib.js";import{jsx as e,Fragment as o,jsxs as n}from"react/jsx-runtime";import t,{useMemo as d}from"react";import{ChartLine as a}from"lucide-react";import r from"./DashboardDateFilter/DashboardDateFilter.js";import u from"./MetricCard/MetricCard.js";import v from"./FiltersSidebar/FiltersSidebar.js";import s from"./Graph/Graph.js";import p from"./Graph/GraphEmptyState.js";import{DATE_PRESET_MAP as c}from"./DashboardDateFilter/datePreset.js";import g from"./Table/TableCard.js";import m from"./Table/TableGrid/TableGrid.js";import{buildColumns as h,withRowIds as b}from"../utils/tableColumns.js";import{resolveSectionOrder as f,isSectionHidden as y}from"../utils/sectionOrder.js";import{getActiveFilterCount as C,isKpiValueObject as F,getKpiValueColor as k,getKpiDelta as x,formatKpiValue as D}from"../utils/index.js";import{getKpiIcon as w}from"../utils/kpiIcon.js";var B=["#7c3aed","#FFC130","#F43F5E","#10b981","#3b82f6"];function S(S){var j,L,P,O,A,T,E,M,R,V,G,H,z,I,W,q,K,N,Z,_,J,Q,U,X,Y,$,ll,il,el,ol,nl,tl,dl,al,rl,ul,vl,sl=S.uiConfig,pl=S.data,cl=S.dataLoading,gl=S.startDate,ml=S.endDate,hl=S.onDateChange,bl=S.onRefresh,fl=S.selectedKpis,yl=S.onKpiChange,Cl=S.sidebarVisible,Fl=S.onSidebarShow,kl=S.onSidebarHide,xl=S.filterValues,Dl=S.onFilterChange,wl=S.onFilterReset,Bl=S.onFilterApply,Sl=S.appliedFilters,jl=S.graphEmptyState,Ll=S.tables,Pl=S.tableLayout,Ol=S.sectionOrder,Al=S.hiddenSections,Tl=S.tablePages,El=S.onTableExpand,Ml=S.onTableLoadMore,Rl=S.pollingEnabled,Vl=void 0!==Rl&&Rl,Gl=S.selectedPreset,Hl=S.handlePresetChange,zl=null!==(P=null===(L=null===(j=null==sl?void 0:sl.data)||void 0===j?void 0:j.dateFilters)||void 0===L?void 0:L.datepresets)&&void 0!==P?P:[],Il=d(function(){return zl.map(function(l){return c[l]}).filter(Boolean)},[JSON.stringify(zl)]),Wl=d(function(){return C(Sl)},[Sl]),ql=d(function(){var l,i,e=null==Pl?void 0:Pl.spans;if(e)return(null!==(i=null===(l=null==sl?void 0:sl.data)||void 0===l?void 0:l.tableBuilder)&&void 0!==i?i:[]).map(function(l,i){return Array.isArray(e)?e[i]:e[l.key]})},[null==Pl?void 0:Pl.spans,null===(O=null==sl?void 0:sl.data)||void 0===O?void 0:O.tableBuilder]),Kl=e("div",l({style:{padding:"4px"}},{children:e(s,{loading:cl,emptyState:null!=jl?jl:e(p,{}),title:null===(A=null==sl?void 0:sl.data)||void 0===A?void 0:A.graphBuilder.title,description:null===(E=null===(T=null==sl?void 0:sl.data)||void 0===T?void 0:T.graphBuilder)||void 0===E?void 0:E.subtitle,icon:e(a,{size:18}),xAxis:{label:(null===(R=null===(M=null==sl?void 0:sl.data)||void 0===M?void 0:M.graphBuilder)||void 0===R?void 0:R.axis.xAxisLabel)||"Date"},style:{chartHeight:220},scrollable:Vl,panes:null===(V=null==sl?void 0:sl.data)||void 0===V?void 0:V.graphBuilder.tiers.map(function(l,i){var o,n,t,d,r,u,v,s,p,c,g,m,h=fl[l.key]||(null===(o=l.plotOptions[0])||void 0===o?void 0:o.key),b=pl.graph.tier.find(function(i){return i.key===l.key}),f=(null===(n=null==b?void 0:b.referenceOptions)||void 0===n?void 0:n[h])||{},y=(null===(t=null==b?void 0:b.plotbyoptions)||void 0===t?void 0:t[h])||{},C=(null==l?void 0:l.series)||[],F=Object.keys(y),k=l.plotOptions.find(function(l){return l.value===h});return{key:l.key,selector:{label:"Plot By",value:h,onChange:function(i){yl(l.key,i)},options:l.plotOptions.map(function(l){return{label:l.label,value:l.value}}),triggerIcon:e(a,{size:16,color:0===i?"green":"purple"})},yAxis:{label:null==k?void 0:k.yAxisLabel,beginAtZero:"false"!==(null==h?void 0:h.yAxisBeginAtZero)},tooltip:{formatHeading:function(l){return"".concat(l)}},legend:{position:(null===(u=null===(r=null===(d=null==sl?void 0:sl.data)||void 0===d?void 0:d.graphBuilder)||void 0===r?void 0:r.legend)||void 0===u?void 0:u.position)||"bottom",toggle:"yes"===(null===(p=null===(s=null===(v=null==sl?void 0:sl.data)||void 0===v?void 0:v.graphBuilder)||void 0===s?void 0:s.legend)||void 0===p?void 0:p.allowToggle),align:(null===(m=null===(g=null===(c=null==sl?void 0:sl.data)||void 0===c?void 0:c.graphBuilder)||void 0===g?void 0:g.legend)||void 0===m?void 0:m.alignment)||"center"},height:0===i?300:250,series:F.map(function(l,i){var e,o,n=(null===(o=null===(e=null==b?void 0:b.plotbyoptions)||void 0===e?void 0:e[h])||void 0===o?void 0:o[l])||[],t=B[i%B.length],d=C.find(function(i){return i.key===l});return{key:l,label:(null==d?void 0:d.name)||l,data:n,area:"yes"===(null==d?void 0:d.areaFill),curve:(null==d?void 0:d.curveType)||"linear",color:"#".concat(null==d?void 0:d.color)||t,dashed:"dashed"===(null==d?void 0:d.style),strokeWidth:parseInt(null==d?void 0:d.strokeWidth)||2,showPoints:"yes"===(null==d?void 0:d.showPoints),pointRadius:parseInt(null==d?void 0:d.pointRadius)||3,showInLegend:!0,valueFormatter:function(l){return"".concat(l)}}}),reference:f}})})})),Nl=e("div",l({style:{padding:"4px",display:"flex",gap:"10px",flexWrap:"wrap"}},{children:i([],null!==(H=null===(G=null==sl?void 0:sl.data)||void 0===G?void 0:G.kpiCards)&&void 0!==H?H:[],!0).sort(function(l,i){var e,o;return(null!==(e=l.displayOrder)&&void 0!==e?e:0)-(null!==(o=i.displayOrder)&&void 0!==o?o:0)}).map(function(l){var i,o=null===(i=null==pl?void 0:pl.kpiCards)||void 0===i?void 0:i[l.title],n=F(o)?k(o.currentValue,o.baselineValue,l.indicatorLogic):void 0,t=F(o)?x(o.currentValue,o.baselineValue,l.indicatorLogic):void 0;return e(u,{title:l.title,subtitle:l.subtitle,value:D(o,l.valueFormat),valueColor:n,delta:t&&{label:t.label,direction:t.direction,color:n},icon:w(l.icon),loading:cl},l.title)})})),Zl=(null!==(W=null===(I=null===(z=null==sl?void 0:sl.data)||void 0===z?void 0:z.tableBuilder)||void 0===I?void 0:I.length)&&void 0!==W?W:0)>0?e("div",l({style:{padding:"4px"}},{children:e(m,l({itemSpans:ql,totalColumns:null!==(q=null==Pl?void 0:Pl.totalColumns)&&void 0!==q?q:12,defaultSpan:null==Pl?void 0:Pl.defaultSpan,options:null!==(K=null==Pl?void 0:Pl.options)&&void 0!==K?K:[1,2,3],defaultColumns:null==Pl?void 0:Pl.defaultColumns,columns:null==Pl?void 0:Pl.columns,onColumnsChange:null==Pl?void 0:Pl.onColumnsChange,showToggle:(null===(N=null==Pl?void 0:Pl.showToggle)||void 0===N||N)&&(null!==(J=null===(_=null===(Z=null==sl?void 0:sl.data)||void 0===Z?void 0:Z.tableBuilder)||void 0===_?void 0:_.length)&&void 0!==J?J:0)>1,toggleLabel:null==Pl?void 0:Pl.toggleLabel,minColumnWidth:null!==(Q=null==Pl?void 0:Pl.minColumnWidth)&&void 0!==Q?Q:380,gap:null!==(U=null==Pl?void 0:Pl.gap)&&void 0!==U?U:12,equalHeights:null===(X=null==Pl?void 0:Pl.equalHeights)||void 0===X||X},{children:sl.data.tableBuilder.map(function(i){var o,n,d=null!==(n=null===(o=null==pl?void 0:pl.table)||void 0===o?void 0:o[i.key])&&void 0!==n?n:[],a=null==Tl?void 0:Tl[i.key],r=!!(null==a?void 0:a.loaded),u=r?a.rows:d,v=!r&&i.rowLimit&&i.rowLimit>0?d.slice(0,i.rowLimit):u,s=null==Ll?void 0:Ll[i.key],p=h(i,s),c=null==s?void 0:s.card,m=null==c?void 0:c.icon,f=w(i.icon),y=f&&t.isValidElement(f)?t.cloneElement(f,l(l({},null!=(null==m?void 0:m.size)?{size:m.size}:{}),(null==m?void 0:m.color)?{color:m.color}:{})):f,C=m?l(l(l({width:"auto",height:"auto"},m.color?{color:m.color}:{}),m.background?{background:m.background,padding:6,borderRadius:8}:{}),m.style):void 0;return e(g,{title:i.title,icon:y,styles:{root:null==c?void 0:c.root,header:null==c?void 0:c.header,title:null==c?void 0:c.title,icon:C},onExpand:function(l){return null==El?void 0:El(i.key,l)},table:{rows:b(v),columns:p,loading:cl,loadingMore:null==a?void 0:a.loading,hasMore:null==a?void 0:a.hasMore,onLoadMore:a?function(){return null==Ml?void 0:Ml(i.key)}:void 0,tableProps:null==s?void 0:s.tableProps}},i.key)})}))})):null,_l={graphBuilder:Kl,kpiCards:Nl,tableBuilder:Zl},Jl=f(Ol,Al,null===(Y=null==sl?void 0:sl.data)||void 0===Y?void 0:Y.sectionOrder,Object.keys(_l)),Ql=y(Al,"dateFilters"),Ul=y(Al,"sidebarFilters");return e(o,{children:n("div",l({style:{display:"flex",flexDirection:"column",gap:12,width:"100%"}},{children:[!Ql&&e("div",l({style:{padding:"4px"}},{children:e(r,{filterCount:Wl,initialStartDate:gl,initialEndDate:ml,onDateChange:hl,onRefresh:bl,onFilterClick:Fl,presets:Il,datePickerProps:{from:{minDate:new Date(2025,0,1),maxDate:new Date},to:{minDate:gl,maxDate:new Date}},defaultPresets:null===($=null==sl?void 0:sl.data)||void 0===$?void 0:$.dateFilters.defaultPreset,showLiveButton:"yes"===(null===(il=null===(ll=null==sl?void 0:sl.data)||void 0===ll?void 0:ll.dateFilters)||void 0===il?void 0:il.showLiveButton),showFilterButton:!Ul&&"yes"===(null===(ol=null===(el=null==sl?void 0:sl.data)||void 0===el?void 0:el.dateFilters)||void 0===ol?void 0:ol.showFilterButton),showFilterCount:!Ul&&"yes"===(null===(tl=null===(nl=null==sl?void 0:sl.data)||void 0===nl?void 0:nl.dateFilters)||void 0===tl?void 0:tl.showFilterCount),liveDuration:null===(al=null===(dl=null==sl?void 0:sl.data)||void 0===dl?void 0:dl.dateFilters)||void 0===al?void 0:al.liveDurationMs,pollingEnabled:Vl,selectedPreset:Gl,handlePresetChange:Hl})})),Jl.map(function(l){return e(t.Fragment,{children:_l[l]},l)}),!Ul&&e(v,{visible:Cl,onHide:kl,onReset:wl,onApply:Bl,fields:null!==(vl=null===(ul=null===(rl=null==sl?void 0:sl.data)||void 0===rl?void 0:rl.sidebarFilters)||void 0===ul?void 0:ul.map(function(l){var i,e,o,n,t=l.schemaFilterName,d="Single select"===l.type?"singleSelect":"Multi select"===l.type?"multiSelect":"Date Range"===l.type?"dateRange":"Date"===l.type?"date":"text",a=null!==(e=null===(i=l.options)||void 0===i?void 0:i.map(function(l){return{label:l,value:l}}))&&void 0!==e?e:[];return{id:t,label:l.label,hint:l.description,type:d,placeholder:l.placeholder,options:a,value:"multiSelect"===d?null!==(o=xl[t])&&void 0!==o?o:[]:null!==(n=xl[t])&&void 0!==n?n:"",onChange:function(l){return Dl(t,l)}}}))&&void 0!==vl?vl:[]})]}))})}export{S as ExecutiveDashboard,S as default};
|
|
2
|
+
//# sourceMappingURL=ExecutiveDashboard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExecutiveDashboard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as a}from"../../../_virtual/_tslib.js";import{jsxs as e,jsx as n}from"react/jsx-runtime";import{Search as t}from"lucide-react";function c(c){var i=c.value,r=c.placeholder,l=c.disabled,o=c.onChange,s=c.className,u=c.searchIcon,d=void 0!==u&&u;return e("div",a({className:"cti-wrapper"},{children:[d&&n(t,{size:15,className:"cti-search-icon"}),n("input",{className:"\n cti-input\n ".concat(d?"cti-input--with-icon":"","\n ").concat(null!=s?s:"","\n "),value:null!=i?i:"",disabled:l,placeholder:r,onChange:function(a){return o(a.target.value)}})]}))}export{c as default};
|
|
2
|
+
//# sourceMappingURL=CustomTextInput.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as l,jsx as i,Fragment as o}from"react/jsx-runtime";import{Sidebar as t}from"primereact/sidebar";import{Button as n}from"primereact/button";import"primereact/resources/themes/lara-light-indigo/theme.css";import"primereact/resources/primereact.min.css";import"primeicons/primeicons.css";import r from"../DatePickers/DateRangeSelector.js";import a from"../DropDowns/CustomMultiSelect.js";import s from"../DatePickers/DateSelector.js";import d from"./CustomTextInput.js";import c from"../DropDowns/CustomSingleSelect.js";function u(u){var m=u.visible,p=u.onHide,v=u.fields,h=void 0===v?[]:v,g=u.onReset,f=u.onApply,b=u.title;return l(t,e({visible:m,position:"right",onHide:p,dismissable:!1,showCloseIcon:!0,modal:!0,className:"log-filterSidebar",header:i("div",e({className:"log-filterTitle"},{children:null!=b?b:"Filter By"}))},{children:[i("div",e({className:"log-filterBody"},{children:null==h?void 0:h.map(function(t){var n,u,m;return l("div",e({className:"log-filterBlock"},{children:[i("div",e({className:"log-filterLabel"},{children:t.label})),t.hint&&i("div",e({className:"log-filterHint"},{children:t.hint})),i("div",e({style:{marginTop:"12px"}},{children:(null==t?void 0:t.loading)?i("div",e({className:"log-filterEmpty"},{children:"Loading..."})):l(o,{children:["text"===t.type&&i(d,{value:null==t?void 0:t.value,placeholder:(null==t?void 0:t.placeholder)||"Enter the value..",disabled:null==t?void 0:t.disabled,onChange:null==t?void 0:t.onChange}),"singleSelect"===t.type&&i(c,{value:null==t?void 0:t.value,options:null!==(n=null==t?void 0:t.options)&&void 0!==n?n:[],placeholder:null==t?void 0:t.placeholder,disabled:null==t?void 0:t.disabled,onChange:null==t?void 0:t.onChange}),"multiSelect"===t.type&&i(a,{options:null!==(u=null==t?void 0:t.options)&&void 0!==u?u:[],value:null!==(m=null==t?void 0:t.value)&&void 0!==m?m:[],onChange:null==t?void 0:t.onChange,selectAllLabel:null==t?void 0:t.selectAllLabel}),"date"===t.type&&i(s,{value:null==t?void 0:t.value,onChange:null==t?void 0:t.onChange,styles:{root:{padding:0},trigger:{height:"40px"}}}),"dateRange"===t.type&&i(r,{value:null==t?void 0:t.value,onChange:null==t?void 0:t.onChange,endIcon:!0})]})}))]}),t.id)})})),l("div",e({className:"log-filterFooter"},{children:[i(n,{label:"Reset Filter",className:"p-button-outlined log-btnReset",onClick:g}),i(n,{label:"Apply Filter",className:"log-btnApply",onClick:f})]}))]}))}export{u as default};
|
|
2
|
+
//# sourceMappingURL=FiltersSidebar.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e,__spreadArray as l}from"../../../_virtual/_tslib.js";import{jsxs as n,jsx as i,Fragment as r}from"react/jsx-runtime";import{useId as o,useState as t,useMemo as a}from"react";import s from"./LineChart.js";import c from"./GraphSkeleton.js";import d from"./PlotBySelector.js";import{colorForIndex as u}from"./types.js";function h(e){var l,n,r,o=e.config,a=void 0!==o.value,s=t(null!==(l=o.defaultValue)&&void 0!==l?l:null===(r=null===(n=o.options)||void 0===n?void 0:n[0])||void 0===r?void 0:r.value),c=s[0],u=s[1],h=a?o.value:c;return i(d,{config:o,value:h,onChange:function(e){var l;a||u(e),null===(l=o.onChange)||void 0===l||l.call(o,e)}})}function v(l){var r,o=l.pane,t=l.xAxis,a=l.sharedStyle,c=l.isLast,d=l.hiddenKeys,u=l.toggleSeries,h=l.syncId,v=l.reference,m=l.scrollable,f=void 0!==m&&m,g=l.onPointClick,p=c?t:e(e({},t),{show:!1,label:void 0});return n("div",e({className:"ellm-graph__pane"},{children:[o.title&&i("div",e({className:"ellm-graph__pane-title"},{children:o.title})),i(s,{series:o.series,hiddenKeys:d,onToggleSeries:u,xAxis:p,yAxis:o.yAxis,tooltip:o.tooltip,legend:{show:!1},syncId:h,style:e(e({},a),{chartHeight:null!==(r=o.height)&&void 0!==r?r:null==a?void 0:a.chartHeight}),reference:v,scrollable:f,onPointClick:g})]}))}function m(d){var m,f,g=d.series,p=d.panes,y=d.title,_=d.description,x=d.icon,k=d.plotBy,N=d.xAxis,b=d.yAxis,A=d.tooltip,S=d.legend,w=d.config,C=d.style,j=d.emptyState,P=d.loading,E=d.scrollable,L=void 0!==E&&E,H=d.onPointClick,I=!!(null==p?void 0:p.length),K=o(),W=t(function(){var e=new Set;return(null!=g?g:[]).forEach(function(l){return l.hidden&&e.add(l.key)}),(null!=p?p:[]).forEach(function(l){return l.series.forEach(function(l){return l.hidden&&e.add(l.key)})}),e}),B=W[0],G=W[1],T=function(e){return G(function(l){var n=new Set(l);return n.has(e)?n.delete(e):n.add(e),n})},M=!1!==(null==w?void 0:w.showHeader),V=a(function(){return I?p.some(function(e){return e.series.some(function(e){var l,n;return null===(n=null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.some)||void 0===n?void 0:n.call(l,function(e){return null!=(null==e?void 0:e.y)})})}):(null!=g?g:[]).some(function(e){return e.data.some(function(e){return null!=e.y})})},[I,p,g]),q=a(function(){var l;if(!I)return C;var n=null!==(l=null==C?void 0:C.yAxisWidth)&&void 0!==l?l:p.some(function(e){var l;return null===(l=e.yAxis)||void 0===l?void 0:l.label})?64:48;return e(e({},C),{yAxisWidth:n})},[I,p,C]),z=a(function(){if(!I)return[];var e=[];return p.forEach(function(l){var n;!1!==(null===(n=l.legend)||void 0===n?void 0:n.show)&&l.series.forEach(function(l,n){var i;!1!==l.showInLegend&&e.push({key:l.key,label:l.label,color:null!==(i=l.color)&&void 0!==i?i:u(null==q?void 0:q.colors,n)})})}),e},[I,p,null==q?void 0:q.colors]),D=I&&z.length>0,F=l(l([],k?[k]:[],!0),I?p.flatMap(function(e){return e.selector?[e.selector]:[]}):[],!0),J=y||_||x||F.length>0;return n("div",e({className:"ellm-graph".concat((null==C?void 0:C.className)?" ".concat(C.className):""),style:null==C?void 0:C.container},{children:[M&&J&&n("div",e({className:"ellm-graph__header"},{children:[n("div",e({className:"ellm-graph__heading"},{children:[x&&i("span",e({className:"ellm-graph__icon"},{children:x})),n("div",{children:[y&&i("div",e({className:"ellm-graph__title"},{children:y})),_&&i("div",e({className:"ellm-graph__description"},{children:_}))]})]})),F.length>0&&i("div",e({className:"ellm-graph__controls"},{children:F.map(function(e,l){return i(h,{config:e},l)})}))]})),P?i(c,{height:null==C?void 0:C.chartHeight}):!V&&j?i("div",e({className:"ellm-graph__empty"},{children:j})):I?n(r,{children:[i("div",e({className:"ellm-graph__panes",style:{gap:null!==(m=null==C?void 0:C.paneGap)&&void 0!==m?m:12}},{children:p.map(function(e,l){var n;return i(v,{pane:e,xAxis:N,sharedStyle:q,isLast:l===p.length-1,hiddenKeys:B,toggleSeries:T,syncId:K,reference:e.reference,scrollable:L,onPointClick:H},null!==(n=e.key)&&void 0!==n?n:"pane-".concat(l))})})),D&&i("div",e({className:"ellm-graph__legend"},{children:z.map(function(l){var r=B.has(l.key);return n("button",e({type:"button",className:"ellm-graph__legend-item".concat(r?" ellm-graph__legend-item--off":""),onClick:function(){return T(l.key)}},{children:[n("svg",e({className:"ellm-graph__legend-marker",width:"28",height:"12",viewBox:"0 0 28 12","aria-hidden":"true"},{children:[i("line",{x1:"1",y1:"6",x2:"27",y2:"6",stroke:l.color,strokeWidth:"2.5",strokeLinecap:"round"}),i("circle",{cx:"14",cy:"6",r:"4",fill:"#fff",stroke:l.color,strokeWidth:"2.5"})]})),l.label]}),l.key)})}))]}):i(s,{series:null!=g?g:[],hiddenKeys:B,onToggleSeries:T,xAxis:N,yAxis:b,tooltip:A,legend:S,style:C,reference:null===(f=null==p?void 0:p[0])||void 0===f?void 0:f.reference,scrollable:L,onPointClick:H})]}))}export{m as default};
|
|
2
|
+
//# sourceMappingURL=Graph.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as r,jsx as t}from"react/jsx-runtime";import{LineChart as a}from"lucide-react";function i(i){var l=i.title,d=void 0===l?"No data to display":l,s=i.description,m=void 0===s?"There's no data for the selected date range and filters. Try adjusting your filters or picking a different range.":s;return r("div",e({className:"ellm-graph__empty-default"},{children:[t("span",e({className:"ellm-graph__empty-icon"},{children:t(a,{size:22})})),t("div",e({className:"ellm-graph__empty-title"},{children:d})),t("div",e({className:"ellm-graph__empty-desc"},{children:m}))]}))}export{i as default};
|
|
2
|
+
//# sourceMappingURL=GraphEmptyState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphEmptyState.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as l,jsx as a}from"react/jsx-runtime";import{useId as s}from"react";function r(r){var t=r.height,i=void 0===t?300:t,n=s();return l("div",e({className:"ellm-graph__skeleton","aria-busy":"true","aria-live":"polite",style:{height:i}},{children:[a("div",e({className:"ellm-graph__skeleton-yaxis"},{children:[0,1,2,3,4].map(function(e){return a("span",{className:"ellm-graph__skeleton-tick ellm-graph__shimmer"},e)})})),l("div",e({className:"ellm-graph__skeleton-plot"},{children:[a("div",e({className:"ellm-graph__skeleton-grid"},{children:[0,1,2,3,4].map(function(e){return a("span",{className:"ellm-graph__skeleton-gridline"},e)})})),l("svg",e({className:"ellm-graph__skeleton-svg",viewBox:"0 0 400 120",preserveAspectRatio:"none"},{children:[a("defs",{children:l("linearGradient",e({id:n,x1:"0",y1:"0",x2:"0",y2:"1"},{children:[a("stop",{offset:"0%",className:"ellm-graph__skeleton-area-top"}),a("stop",{offset:"100%",className:"ellm-graph__skeleton-area-bottom"})]}))}),a("path",{d:"M0,120 L0,92 30,78 60,86 90,52 120,66 150,34 180,58 210,42 240,72 270,46 300,80 330,54 360,74 400,58 L400,120 Z",fill:"url(#".concat(n,")")}),a("polyline",{points:"0,92 30,78 60,86 90,52 120,66 150,34 180,58 210,42 240,72 270,46 300,80 330,54 360,74 400,58",fill:"none",className:"ellm-graph__skeleton-line"})]})),a("div",e({className:"ellm-graph__skeleton-xaxis"},{children:[0,1,2,3,4,5].map(function(e){return a("span",{className:"ellm-graph__skeleton-tick ellm-graph__shimmer"},e)})}))]}))]}))}export{r as default};
|
|
2
|
+
//# sourceMappingURL=GraphSkeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphSkeleton.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__spreadArray as e,__assign as n}from"../../../_virtual/_tslib.js";import{jsx as l,jsxs as i}from"react/jsx-runtime";import{useState as o,useMemo as r}from"react";import{ComposedChart as t,CartesianGrid as a,XAxis as u,YAxis as d,ReferenceArea as c,ReferenceLine as v,Area as s,Line as f}from"recharts";import{ChartContainer as h,ChartTooltip as y,ChartTooltipContent as m,ChartLegend as p,ChartLegendContent as g}from"../ui/chart.js";import{colorForIndex as k}from"./types.js";import{compactNumber as x}from"../../utils/index.js";import b from"./Seperator.js";var w=function(e){return"number"==typeof e&&!Number.isNaN(e)},A=function(e){switch(e){case"linear":return"linear";case"step":return"stepAfter";default:return"monotone"}};function C(C){var L,S,T,F,E,K,N,I,P,W=C.series,j=C.hiddenKeys,D=C.onToggleSeries,M=C.xAxis,R=C.yAxis,z=C.tooltip,_=C.legend,B=C.style,H=C.syncId,O=C.reference;C.scrollable;var G=C.onPointClick,V=null!==(L=null==B?void 0:B.chartHeight)&&void 0!==L?L:300,Z=null!==(S=null==B?void 0:B.gridColor)&&void 0!==S?S:"#eef0f4",q=null!==(T=null==B?void 0:B.axisColor)&&void 0!==T?T:"#d7dbe3",J=null!==(F=null==B?void 0:B.axisLabelColor)&&void 0!==F?F:"#6b7280",Q=null!==(E=null==B?void 0:B.tickColor)&&void 0!==E?E:"#9ca3af",U=null!==(K=null==B?void 0:B.fontFamily)&&void 0!==K?K:"Inter, system-ui, -apple-system, sans-serif",X=o(null),Y=X[0],$=X[1],ee=r(function(){var n,l,i;if(null===(n=null==M?void 0:M.categories)||void 0===n?void 0:n.length)return{categories:M.categories,xType:null!==(l=M.type)&&void 0!==l?l:"category"};var o=new Set,r=[];W.forEach(function(e){return e.data.forEach(function(e){o.has(e.x)||(o.add(e.x),r.push(e.x))})});var t=r.every(w),a=null!==(i=null==M?void 0:M.type)&&void 0!==i?i:t?"number":"category";return{categories:"number"===a?e([],r,!0).sort(function(e,n){return Number(e)-Number(n)}):r,xType:a}},[W,null==M?void 0:M.categories,null==M?void 0:M.type]),ne=ee.categories,le=ee.xType,ie=r(function(){var e=new Map;return W.forEach(function(n){var l=new Map;n.data.forEach(function(e){return l.set(e.x,e.y)}),e.set(n.key,l)}),ne.map(function(n){var l={x:n};return W.forEach(function(i){var o,r=null===(o=e.get(i.key))||void 0===o?void 0:o.get(n);l[i.key]=null==r?null:r}),l})},[W,ne]),oe=r(function(){var e={},n=W.map(function(n,l){var i,o=null!==(i=n.color)&&void 0!==i?i:k(null==B?void 0:B.colors,l);return e[n.key]={label:n.label,color:o},{series:n,color:o,index:l}});return{chartConfig:e,resolved:n}},[W,null==B?void 0:B.colors]),re=oe.chartConfig,te=oe.resolved,ae=r(function(){var e={};return W.forEach(function(n){n.valueFormatter&&(e[n.key]=function(e,l){var i;return n.valueFormatter(e,null!==(i=null==l?void 0:l.payload)&&void 0!==i?i:{x:null==l?void 0:l.x,y:e})})}),e},[W]),ue=!1!==(null==z?void 0:z.enabled),de=(null==z?void 0:z.seriesKeys)?new Set(z.seriesKeys):null,ce=!1!==(null==_?void 0:_.show),ve="top"===(null==_?void 0:_.position)?"top":"bottom",se="start"===(null==_?void 0:_.align)?"left":"end"===(null==_?void 0:_.align)?"right":"center",fe=!1!==(null==M?void 0:M.show),he=!1!==(null==R?void 0:R.show),ye=!1!==(null==B?void 0:B.showGrid),me=!!(null==B?void 0:B.showVerticalGrid),pe=r(function(){return Math.max.apply(Math,ie.flatMap(function(e){return W.map(function(n){return Number(e[n.key])||0})}))},[ie]),ge=r(function(){return Math.ceil(1.1*pe)},[pe]),ke=[null!=(null==R?void 0:R.min)?R.min:!1!==(null==R?void 0:R.beginAtZero)?0:"auto",null!=(null==R?void 0:R.max)?R.max:ge],xe=null!==(N=null==B?void 0:B.yAxisWidth)&&void 0!==N?N:(null==R?void 0:R.label)?64:48,be={top:12,right:16,bottom:8,left:null!=(null==B?void 0:B.yAxisWidth)?0:(null==R?void 0:R.label)?16:0},we=null!==(I=null==M?void 0:M.enableScroll)&&void 0!==I&&I,Ae=null!==(P=null==M?void 0:M.minTickGap)&&void 0!==P?P:2;r(function(){if(!we||!Y||ne.length<=1)return"100%";var e=(ne.length-1)*Ae+200;return e>Y-xe-be.left-be.right?"".concat(e,"px"):"100%"},[we,Y,ne.length,Ae,xe,be]);return l(h,n({config:re,style:{height:V,fontFamily:U},ref:function(e){e&&null===Y&&$(e.clientWidth)}},{children:function(){var e,o;return i(t,n({data:ie,margin:be,syncId:H},{children:[l(a,{vertical:me,horizontal:ye,stroke:Z}),l(u,{dataKey:"x",type:"number"===le?"number":"category",hide:!fe,height:(null==M?void 0:M.label)?52:void 0,tickLine:!1,axisLine:!(null==M?void 0:M.hideLine)&&{stroke:q},tickMargin:8,interval:"preserveStartEnd",tick:{fill:Q,fontSize:11},tickFormatter:(null==M?void 0:M.formatTick)?function(e,n){return M.formatTick(e,n)}:void 0,label:(null==O?void 0:O.showReferenceAreaLabel)?function(e){return function(e){var o=e.viewBox;e.startTick,e.endTick;var r=o.x,t=o.y,a=o.width,u=1;if((null==O?void 0:O.showReferenceArea)&&null!=(null==O?void 0:O.referencePoint)&&ne.length>1){var d=ne.indexOf(O.referencePoint);-1!==d&&(u=d/(ne.length-1))}var c=100*u,v=100-c;return l("foreignObject",n({x:r,y:t+24,width:a,height:40},{children:i("div",n({className:"ellm-graph__liveLabelContainer"},{children:[i("div",n({style:{flex:c,display:"flex",alignItems:"center"}},{children:[l(b,{}),l("span",n({style:{padding:"0 12px",color:"#6b7280",fontSize:"12px"}},{children:null==O?void 0:O.referenceAreaLabel})),l(b,{})]})),v>0&&i("div",n({style:{flex:v,display:"flex",alignItems:"center"}},{children:[l(b,{style:{backgroundColor:"#DC2626"}}),i("div",n({className:"ellm-graph__liveLabel"},{children:[l(b,{style:{width:"8px",height:"8px",borderRadius:"100%",backgroundColor:"#DC2626",flex:"auto"},pulse:!0}),"LIVE - ",null==O?void 0:O.referenceAreaLiveLabel]})),l(b,{style:{backgroundColor:"#DC2626"}})]}))]}))}))}(n(n({},e),{startTick:ne[0],endTick:ne[ne.length-1]}))}:(null==M?void 0:M.label)?{value:M.label,position:"insideBottom",offset:4,fill:J,fontSize:12,fontWeight:500}:void 0}),l(d,{hide:!he,domain:ke,tickLine:!1,axisLine:!1===(null==R?void 0:R.hideLine)&&{stroke:q},tickCount:null==R?void 0:R.tickCount,width:xe,tick:{fill:Q,fontSize:11},tickFormatter:(null==R?void 0:R.formatTick)?function(e,n){return R.formatTick(e,n)}:function(e){return"number"==typeof e?x(e):String(e)},label:(null==R?void 0:R.label)?{value:R.label,angle:-90,position:"insideLeft",style:{textAnchor:"middle"},fill:J,fontSize:12,fontWeight:500}:void 0}),ue&&l(y,{cursor:{stroke:q,strokeDasharray:"4 4"},content:function(e){var i,o=(null!==(i=e.payload)&&void 0!==i?i:[]).filter(function(e){var n=W.find(function(n){return n.key===e.dataKey});return!1!==(null==n?void 0:n.showInTooltip)&&!(de&&!de.has(String(e.dataKey)))});return(null==z?void 0:z.render)?z.render({x:e.label,points:o.map(function(n){var l;return{series:W.find(function(e){return e.key===n.dataKey}),value:null!==(l=n.value)&&void 0!==l?l:null,point:{x:e.label,y:n.value},color:n.color}})}):l(m,n({},e,{payload:o,hideLabel:!1===(null==z?void 0:z.showHeading),valueFormatters:ae,labelFormatter:(null==z?void 0:z.formatHeading)?function(e){return z.formatHeading(e)}:void 0}))}}),ce&&l(p,{verticalAlign:ve,content:function(e){return l(g,n({},e,{verticalAlign:ve,align:se,hiddenKeys:j,onItemClick:!1!==(null==_?void 0:_.toggle)&&D?D:void 0}))}}),(null==O?void 0:O.showReferenceArea)&&null!=(null==O?void 0:O.referencePoint)&&l(c,{x1:O.referencePoint,fill:null!==(e=O.referenceAreaFill)&&void 0!==e?e:"#2563EB1A"}),(null==O?void 0:O.showReferenceArea)&&null!=O.referencePoint&&l(v,{x:O.referencePoint,stroke:null!==(o=O.referenceLineStroke)&&void 0!==o?o:"#3B82F6",strokeDasharray:"4 4"}),te.map(function(e){var i,o,r,t,a=e.series,u=j.has(a.key),d="var(--color-".concat(a.key,")"),c=!0===a.dashed?"6 5":"string"==typeof a.dashed?a.dashed:void 0,v=!1!==a.showPoints&&{r:null!==(i=a.pointRadius)&&void 0!==i?i:3,fill:"#fff",stroke:d,strokeWidth:2},h={r:(null!==(o=a.pointRadius)&&void 0!==o?o:3)+2,onClick:G?function(e,n){var l,i;return function(e,n,l){if(G){var i=W.find(function(n){return n.key===e});i&&G({series:i,point:{x:null==n?void 0:n.x,y:null==n?void 0:n[e]},index:l})}}(a.key,null!==(l=null==n?void 0:n.payload)&&void 0!==l?l:n,null!==(i=null==n?void 0:n.index)&&void 0!==i?i:0)}:void 0},y={key:a.key,dataKey:a.key,name:a.key,type:A(a.curve),stroke:d,strokeWidth:null!==(r=a.strokeWidth)&&void 0!==r?r:2,strokeDasharray:c,connectNulls:!1,isAnimationActive:!1,hide:u,dot:v,activeDot:h};return a.area?l(s,n({},y,{fill:d,fillOpacity:null!==(t=a.areaOpacity)&&void 0!==t?t:.12})):l(f,n({},y))})]}))}()}))}export{C as default};
|
|
2
|
+
//# sourceMappingURL=LineChart.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as l,jsx as n}from"react/jsx-runtime";import{useState as t,useRef as o,useEffect as r}from"react";import{ArrowUpDown as a,ChevronDown as i}from"lucide-react";function u(u){var c,p,m=u.config,s=u.value,d=u.onChange,h=m.options,v=m.label,b=void 0===v?"Plot by":v,f=m.placeholder,_=m.hideWhenSingle,g=m.triggerIcon,y=t(!1),N=y[0],x=y[1],C=o(null);if(r(function(){if(N){var e=function(e){C.current&&!C.current.contains(e.target)&&x(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[N]),!(null==h?void 0:h.length))return null;if(h.length<=1&&!1!==_)return null;var j=h.find(function(e){return e.value===s}),k=null!==(p=null!==(c=null==j?void 0:j.label)&&void 0!==c?c:f)&&void 0!==p?p:"Select";return l("div",e({className:"ellm-graph__plotby",ref:C},{children:[l("button",e({type:"button",className:"ellm-graph__plotby-btn".concat(N?" ellm-graph__plotby-btn--open":""),onClick:function(){return x(function(e){return!e})},"aria-haspopup":"listbox","aria-expanded":N},{children:[null!==g&&(null!=g?g:n(a,{size:16})),l("span",e({className:"ellm-graph__plotby-text"},{children:[b?"".concat(b,": "):"",n("span",e({className:"ellm-graph__plotby-value"},{children:k}))]})),n(i,{size:16,className:"ellm-graph__plotby-chevron"})]})),N&&n("div",e({className:"ellm-graph__plotby-menu",role:"listbox"},{children:h.map(function(l){return n("button",e({type:"button",role:"option","aria-selected":l.value===s,className:"ellm-graph__plotby-option".concat(l.value===s?" ellm-graph__plotby-option--active":""),onClick:function(){d(l.value),x(!1)}},{children:l.label}),l.value)})}))]}))}export{u as default};
|
|
2
|
+
//# sourceMappingURL=PlotBySelector.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsx as r}from"react/jsx-runtime";var t=function(t){var a=t.style,l=t.pulse;return r("div",{className:" ".concat(l&&"pulse"),style:e({flex:1,height:"1px",backgroundColor:"#e5e7eb"},a)})};export{t as default};
|
|
2
|
+
//# sourceMappingURL=Seperator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Seperator.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsx as l,jsxs as i,Fragment as c}from"react/jsx-runtime";import a from"react";import{ArrowUp as t,ArrowDown as r}from"lucide-react";var n=function(n){var d,s,o,m,u,v=n.title,_=n.value,p=n.subtitle,h=n.icon,f=n.loading,g=n.valuePrefix,N=n.valueColor,y=n.delta,x=n.segments,b=n.onClick,k=n.classNames,W=x&&x.length>0,z=W?x.reduce(function(e,l){return e+l.value},0):0;return l("div",e({className:"metric-card ".concat(null!==(d=null==k?void 0:k.root)&&void 0!==d?d:""),onClick:b},{children:i("div",e({className:"metric-card__content ".concat(W?"metric-card__content--has-segments":"")},{children:[i("div",e({style:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%",gap:"4px"}},{children:[l("div",e({className:"metric-card__title"},{children:v})),i("div",e({style:{display:"flex",alignItems:"center",gap:"12px",flexWrap:"wrap"}},{children:[l("div",e({className:"metric-card__value ".concat(null!==(s=null==k?void 0:k.value)&&void 0!==s?s:""),style:{color:null!=N?N:null==g?void 0:g.color}},{children:f?l("span",{className:"metric-card__value-skeleton"}):i(c,{children:[(null==g?void 0:g.icon)&&(a.isValidElement(g.icon)?a.cloneElement(g.icon,{size:20,strokeWidth:2.5}):g.icon),_]})})),!f&&y&&i("div",e({className:"metric-card__delta",style:{color:y.color}},{children:["flat"!==y.direction&&("up"===y.direction?l(t,{size:14,strokeWidth:3,"aria-hidden":!0}):l(r,{size:14,strokeWidth:3,"aria-hidden":!0})),l("span",{children:y.label}),y.caption&&l("span",e({className:"metric-card__delta-caption"},{children:y.caption}))]}))]})),p&&l("div",e({className:"metric-card__subtitle ".concat(null!==(o=null==k?void 0:k.subtitle)&&void 0!==o?o:"")},{children:p}))]})),W&&i("div",e({className:"".concat(null!==(m=null==k?void 0:k.segments)&&void 0!==m?m:""),style:{display:"flex",flexDirection:"column",flex:1,margin:0}},{children:[l("div",e({className:"metric-card__stats",style:{margin:"10px"}},{children:x.map(function(c,a){return i("div",e({className:"metric-card__stat"},{children:[i("div",e({className:"metric-card__stat-label"},{children:[l("span",{className:"metric-card__dot",style:{background:c.color}}),c.label]})),l("div",e({className:"metric-card__stat-value"},{children:void 0!==c.displayValue?c.displayValue:"".concat(c.value).concat(c.percentage?"%":"")})),a<x.length-1&&l("div",{className:"metric-card__divider"})]}),c.label)})})),l("div",e({className:"metric-card__progress",style:{marginTop:"4px"}},{children:x.map(function(e){return l("div",{className:"metric-card__progress-segment",style:{width:z>0?"".concat(e.value/z*100,"%"):"0%",background:e.color}},e.label)})}))]})),h&&l("div",e({className:"metric-card__icon-container ".concat(null!==(u=null==k?void 0:k.icon)&&void 0!==u?u:"")},{children:a.isValidElement(h)?a.cloneElement(h,{size:25,strokeWidth:2.5}):h}))]}))}))};export{n as default};
|
|
2
|
+
//# sourceMappingURL=MetricCard.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__rest as l,__spreadArray as i,__assign as e}from"../../../_virtual/_tslib.js";import{jsx as o,jsxs as n}from"react/jsx-runtime";import{useRef as t,useState as r,useEffect as a}from"react";import{DataTable as d}from"primereact/datatable";import{Column as u}from"primereact/column";import{ColumnGroup as c}from"primereact/columngroup";import{Row as s}from"primereact/row";import{Skeleton as m}from"primereact/skeleton";import"primereact/resources/primereact.min.css";import"primeicons/primeicons.css";function v(v){var p,f,h,g,y=v.rows,w=void 0===y?[]:y,N=v.loading,b=v.loadingMore,x=v.onLoadMore,C=v.hasMore,_=v.emptyState,k=v.columns,S=v.tableProps,R=v.onRowClick,E=v.rowDetail,j=v.scrollHeight,T=void 0===j?"flex":j,D=t(null);t(null);var H="function"==typeof(null==E?void 0:E.render),M=r({}),L=M[0],q=M[1],A=function(l){return!(!(null==l?void 0:l.id)||!L[l.id])},B=function(l){(null==l?void 0:l.id)&&q(function(i){var o,n;return(null==E?void 0:E.multiple)?e(e({},i),((o={})[l.id]=!0,o)):((n={})[l.id]=!0,n)})},z=function(l){(null==l?void 0:l.id)&&q(function(i){var o=e({},i);return delete o[l.id],o})},F=function(l){return A(l)?z(l):B(l)},G=null!=S?S:{},K=G.onRowClick,O=G.rowClassName,P=l(G,["onRowClick","rowClassName"]),W=i(i([],w,!0),b?[{id:"__loading-more",__loading:!0}]:[],!0),I=!b&&x&&!1===C&&(null!==(p=null==k?void 0:k.length)&&void 0!==p?p:0)>0?o(c,{children:o(s,{children:o(u,{colSpan:k.length,footer:n("span",e({className:"audit-paginationEndContent"},{children:[o("i",{className:"pi pi-check-circle","aria-hidden":"true"}),"No more records to load"]})),footerClassName:"audit-paginationEnd"})})}):void 0;return a(function(){var l,i=null===(l=D.current)||void 0===l?void 0:l.querySelector(".p-datatable-wrapper");if(i){var e=!1,o=function(){e||(e=!0,requestAnimationFrame(function(){var l=i.scrollTop;i.scrollHeight-l-i.clientHeight<100&&C&&!b&&(null==x||x()),e=!1}))};return i.addEventListener("scroll",o),function(){i.removeEventListener("scroll",o)}}},[w,C,b,x]),N?o("div",{children:i([],Array(5),!0).map(function(l,i){return n("div",e({className:"audit-skeletonRow"},{children:[o(m,{height:0===i?"55px":"25px",width:"25%"}),o(m,{height:0===i?"55px":"25px",width:"50%"}),o(m,{height:0===i?"55px":"25px",width:"25%"})]}),i)})}):w&&0!==w.length?o("div",e({className:"audit-tableWrap",ref:D},{children:o(d,e({value:W,className:"audit-table ".concat(null!==(g=null==S?void 0:S.className)&&void 0!==g?g:""),dataKey:"id",scrollable:!0,scrollHeight:T},P,{rowClassName:function(l,i){var o="function"==typeof O?O(l,i):O,n=!H&&!R||(null==l?void 0:l.__loading)?"":"audit-row--clickable";return o&&"object"==typeof o?e(e({},o),{"audit-row--clickable":!!n}):[o,n].filter(Boolean).join(" ")},expandedRows:L,onRowToggle:function(l){return q(l.data)},rowExpansionTemplate:H?function(l){var i;return!H||(null==l?void 0:l.__loading)?null:o("div",e({className:"audit-rowDetail ".concat(null!==(i=null==E?void 0:E.className)&&void 0!==i?i:""),style:null==E?void 0:E.style},{children:E.render(l,{close:function(){return z(l)}})}))}:void 0,onRowClick:function(l){var i,e,o=null==l?void 0:l.data;if(o&&!o.__loading){var n=null===(i=null==l?void 0:l.originalEvent)||void 0===i?void 0:i.target;(null===(e=null==n?void 0:n.closest)||void 0===e?void 0:e.call(n,"button, a, input, .audit-seeMore"))||(null==R||R(o,{isExpanded:A(o),expand:function(){return B(o)},collapse:function(){return z(o)},toggle:function(){return F(o)}}),H&&!1!==(null==E?void 0:E.expandOnRowClick)&&F(o)),null==K||K(l)}},footerColumnGroup:I},{children:null==k?void 0:k.map(function(l){return o(u,{header:null==l?void 0:l.header,body:function(i){return(null==i?void 0:i.__loading)?o(m,{height:"25px"}):null==l?void 0:l.body(i)},style:null==l?void 0:l.style,headerStyle:null==l?void 0:l.headerStyle,bodyStyle:null==l?void 0:l.bodyStyle,headerClassName:null==l?void 0:l.headerClassName,bodyClassName:null==l?void 0:l.bodyClassName},null==l?void 0:l.key)})}))})):n("div",e({className:"audit-emptyState"},{children:[(null==_?void 0:_.icon)?_.icon:o("i",{className:"pi pi-file",style:{fontSize:"63px",marginBottom:"8px"}}),o("div",e({className:"audit-emptyTitle"},{children:null!==(f=null==_?void 0:_.title)&&void 0!==f?f:"No Data found"})),o("div",e({className:"audit-emptyDesc"},{children:null!==(h=null==_?void 0:_.description)&&void 0!==h?h:"Try adjusting your filters or search criteria."}))]}))}export{v as default};
|
|
2
|
+
//# sourceMappingURL=FTable.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as n}from"react/jsx-runtime";import{useState as r,useRef as o,useEffect as i}from"react";import{ArrowUp as a,ArrowDown as l,ChevronDown as s,Check as c}from"lucide-react";function u(u){var d,v,f=u.value,m=u.orderBy,p=void 0===m?"asc":m,h=u.options,_=u.placeholder,g=void 0===_?"Sort By":_,y=u.onChange,b=r(!1),x=b[0],q=b[1],N=o(null);i(function(){var e=function(e){N.current&&!N.current.contains(e.target)&&q(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]);var k=h.some(function(e){return e.value===f}),C=null!==(v=null===(d=h.find(function(e){return e.value===f}))||void 0===d?void 0:d.label)&&void 0!==v?v:g;return t("div",e({className:"q-sort",ref:N},{children:[t("button",e({className:"q-sort__trigger",onClick:function(){return q(function(e){return!e})}},{children:[t("div",e({className:"q-sort__left"},{children:[n("div",e({onClick:function(e){k&&(e.preventDefault(),e.stopPropagation(),y(f,"asc"===p?"desc":"asc"))},className:"q-sort__order-toggle",style:{display:"flex",alignItems:"center",justifyContent:"center",cursor:k?"pointer":"default",color:k?"#6366f1":"#94A3B8",background:k?"rgba(245, 243, 255, 0.90)":"transparent",padding:"4px",borderRadius:"6px",transition:"all 0.2s ease"}},{children:n("asc"===p?a:l,{size:16,strokeWidth:2.5})})),t("span",{children:["Sort by:"," ",C]})]})),n("div",e({style:{width:"35px"}},{children:n(s,{size:22})}))]})),x&&n("div",e({className:"q-sort__menu"},{children:h.map(function(r){return t("button",e({className:"q-sort__option ".concat(f===r.value?"q-sort__option--active":""),onClick:function(){f===r.value?y("","asc"):y(r.value,"asc"),q(!1)},style:{display:"flex",alignItems:"center",gap:"8px"}},{children:[f===r.value?n(c,{size:14}):n("div",{style:{width:14}}),n("span",{children:r.label})]}),r.value)})}))]}))}export{u as default};
|
|
2
|
+
//# sourceMappingURL=SortDropdown.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as l,jsx as t}from"react/jsx-runtime";import{useState as o}from"react";import{Minimize as a,Maximize as r}from"lucide-react";import i from"./FTable.js";import n from"../FiltersSidebar/CustomTextInput.js";import c from"./SortDropdown.js";function s(s){var d=s.title,h=s.icon,m=s.showExpandButton,u=void 0===m||m,v=s.className,p=s.styles,f=s.table,N=s.searchBar,x=s.sort,y=s.onExpand,g=o(!1),b=g[0],C=g[1];return l("div",e({className:"\n tc-root\n ".concat(b?"tc-root--fullscreen":"","\n ").concat(null!=v?v:"","\n "),style:null==p?void 0:p.root},{children:[l("div",e({className:"tc-header",style:null==p?void 0:p.header},{children:[l("div",e({className:"tc-header-left"},{children:[h&&t("div",e({className:"tc-title-icon",style:e({width:"20px",height:"20px"},null==p?void 0:p.icon)},{children:h})),t("div",e({className:"tc-title",style:null==p?void 0:p.title},{children:d}))]})),l("div",e({className:"tc-header-right"},{children:[N&&t(n,{value:null==N?void 0:N.value,placeholder:null==N?void 0:N.placeholder,onChange:null==N?void 0:N.onChange,searchIcon:!0,className:"tc-search"}),x&&t(c,{value:x.value,orderBy:x.orderBy,options:x.options,placeholder:null==x?void 0:x.placeholder,onChange:x.onChange}),u&&t("button",e({className:"tc-expand-btn",onClick:function(){var e=!b;C(e),null==y||y(e)}},{children:t(b?a:r,{size:20})}))]}))]})),t("div",e({className:"tc-table"},{children:t(i,e({},f,{emptyState:null==f?void 0:f.emptyState,scrollHeight:b?"calc(100vh - 140px)":null==f?void 0:f.scrollHeight}))}))]}))}export{s as default};
|
|
2
|
+
//# sourceMappingURL=TableCard.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__spreadArray as l,__assign as o}from"../../../../_virtual/_tslib.js";import{jsxs as t,jsx as n}from"react/jsx-runtime";import e,{useState as i}from"react";import a from"./TableLayoutToggle.js";import{useResponsiveColumns as r}from"./useResponsiveColumns.js";import{resolveSpan as u,minSpanFor as s}from"./spans.js";function m(m){var d,c=m.children,g=m.itemSpans,v=m.totalColumns,f=void 0===v?12:v,p=m.defaultSpan,h=m.options,C=void 0===h?[1,2,3]:h,b=m.defaultColumns,y=m.columns,x=m.onColumnsChange,N=m.showToggle,j=void 0===N||N,T=m.toggleLabel,L=m.toolbarLeft,w=m.minColumnWidth,F=void 0===w?380:w,S=m.gap,_=void 0===S?12:S,k=m.equalHeights,q=void 0===k||k,A=m.className,B=m.style,H=!!(null==g?void 0:g.some(function(l){return null!=l})),M=i(function(){var l;return null!==(l=null!=y?y:b)&&void 0!==l?l:H?"custom":1}),R=M[0],W=M[1],z=null!=y?y:R,D="custom"===z&&H,E=r("number"==typeof z?z:1,F,_),G=E[0],I=E[1],J=I.columns,K=I.maxFitting,O=e.Children.toArray(c).filter(Boolean),P=s(f,K),Q=null!==(d=u(p,f))&&void 0!==d?d:f,U=H?l(l([],C,!0),["custom"],!1):C;return t("div",o({ref:G,className:"tg-root ".concat(null!=A?A:""),style:B},{children:[j&&(L||U.length>1)&&t("div",o({className:"tg-toolbar-row"},{children:[n("div",o({className:"tg-toolbar-left"},{children:L})),U.length>1&&n(a,{value:z,options:U,onChange:function(l){null==y&&W(l),null==x||x(l)},maxFitting:K,label:T})]})),n("div",o({className:"tg-grid ".concat(q?"":"tg-grid--auto-height"),style:{gridTemplateColumns:"repeat(".concat(D?f:J,", minmax(0, 1fr))"),gap:_}},{children:O.map(function(l,t){var e,i,a=D?Math.max(P,null!==(e=u(null==g?void 0:g[t],f))&&void 0!==e?e:Q):null;return n("div",o({className:"tg-cell",style:a?{gridColumn:"span ".concat(a)}:void 0},{children:l}),null!==(i=null==l?void 0:l.key)&&void 0!==i?i:t)})}))]}))}export{m as default};
|
|
2
|
+
//# sourceMappingURL=TableGrid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableGrid.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as t}from"../../../../_virtual/_tslib.js";import{jsx as e,jsxs as n}from"react/jsx-runtime";import{RectangleHorizontal as o,Columns2 as a,Columns3 as l,Columns4 as r,LayoutPanelTop as i}from"lucide-react";var c={1:e(o,{size:16}),2:e(a,{size:16}),3:e(l,{size:16}),4:e(r,{size:16})},s=function(t){var n;return"custom"===t?e(i,{size:16}):null!==(n=c[t])&&void 0!==n?n:e(r,{size:16})},u=function(t,e){return"custom"===t?"Configured layout":null==e||t<=e?"".concat(t," table").concat(t>1?"s":""," per row"):"".concat(t," per row — not enough width, showing ").concat(e)};function g(o){var a=o.value,l=o.options,r=o.onChange,i=o.maxFitting,c=o.label,g=o.className,m=o.style;return l.length?n("div",t({className:"tg-toolbar ".concat(null!=g?g:""),style:m},{children:[c&&e("span",t({className:"tg-toolbar-label"},{children:c})),e("div",t({className:"tg-toggle",role:"group","aria-label":"Table grid layout"},{children:l.map(function(n){var o=n===a,l="custom"===n||null==i||n<=i;return e("button",t({type:"button",className:"tg-toggle-btn ".concat(o?"tg-toggle-btn--active":""," ").concat(l?"":"tg-toggle-btn--cramped"),"aria-pressed":o,title:u(n,i),onClick:function(){return r(n)}},{children:s(n)}),String(n))})}))]})):null}export{g as default};
|
|
2
|
+
//# sourceMappingURL=TableLayoutToggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableLayoutToggle.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var r=/^(\d+)\s*\/\s*(\d+)$/;function t(t,n){if(null==t)return null;if("number"==typeof t)return!Number.isFinite(t)||t<=0?null:Math.min(n,Math.max(1,Math.round(t)));var u=t.trim().toLowerCase();if("full"===u||"1"===u)return n;if("half"===u)return Math.round(n/2);if("third"===u)return Math.round(n/3);if("quarter"===u)return Math.round(n/4);var e=r.exec(u);if(e){var a=e[1],i=e[2],h=Number(a)/Number(i);return!Number.isFinite(h)||h<=0?null:Math.min(n,Math.max(1,Math.round(n*h)))}var m=Number(u);return Number.isFinite(m)&&m>0?Math.min(n,Math.max(1,Math.round(m))):null}function n(r,t){return Math.ceil(r/Math.max(1,t))}export{n as minSpanFor,t as resolveSpan};
|
|
2
|
+
//# sourceMappingURL=spans.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spans.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{useRef as n,useState as e,useLayoutEffect as r,useEffect as t}from"react";var u="undefined"!=typeof window?r:t;function i(r,t,i){var c=n(null),l=e(null),a=l[0],o=l[1],f=n(null),d=n(null);u(function(){var n=c.current;if(n){var e=function(){var e=n.getBoundingClientRect().width;null!=f.current&&Math.abs(e-f.current)<1||(f.current=e,o(e))},r=function(){null==d.current&&(d.current=requestAnimationFrame(function(){d.current=null,c.current&&e()}))};if(e(),"undefined"==typeof ResizeObserver)return window.addEventListener("resize",r),function(){window.removeEventListener("resize",r),null!=d.current&&cancelAnimationFrame(d.current),d.current=null};var t=new ResizeObserver(r);return t.observe(n),function(){t.disconnect(),null!=d.current&&cancelAnimationFrame(d.current),d.current=null}}},[]);var m=null==a?r:Math.max(1,Math.floor((a+i)/(t+i)));return[c,{columns:Math.max(1,Math.min(r,m)),maxFitting:m,width:a}]}export{i as default,i as useResponsiveColumns};
|
|
2
|
+
//# sourceMappingURL=useResponsiveColumns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResponsiveColumns.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__rest as l,__assign as e}from"../../../_virtual/_tslib.js";import{jsx as a,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as r from"react";import*as o from"recharts";import{cn as i}from"./utils.js";var c=r.createContext(null);function d(){var l=r.useContext(c);if(!l)throw new Error("useChart must be used within a <ChartContainer />");return l}var u=r.forwardRef(function(n,d){var u=n.id,m=n.className,v=n.children,h=n.config,f=n.scrollable,p=void 0!==f&&f,_=l(n,["id","className","children","config","scrollable"]),g=r.useId(),y="chart-".concat((u||g).replace(/:/g,""));return a(c.Provider,e({value:{config:h}},{children:a("div",e({className:"".concat(p&&"chart-scroll")},{children:t("div",e({"data-chart":y,ref:d,className:i("ellm-chart ".concat(p&&"chart-inner"),m)},_,{children:[a(s,{id:y,config:h}),a(o.ResponsiveContainer,e({},p?{width:2600}:{},{children:v}))]}))}))}))});u.displayName="ChartContainer";var s=function(l){var e=l.id,t=l.config,n=Object.entries(t).filter(function(l){return l[1].color});if(!n.length)return null;var r=n.map(function(l){var e=l[0],a=l[1];return" --color-".concat(e,": ").concat(a.color,";")}).join("\n");return a("style",{dangerouslySetInnerHTML:{__html:"[data-chart=".concat(e,"] {\n").concat(r,"\n}")}})},m=o.Tooltip,v=r.forwardRef(function(l,o){var c=l.active,u=l.payload,s=l.className,m=l.indicator,v=void 0===m?"dot":m,h=l.hideLabel,f=l.hideIndicator,_=l.label,g=l.labelFormatter,y=l.formatter,b=l.valueFormatters,N=l.color,C=l.nameKey,w=l.labelKey,K=d().config,k=r.useMemo(function(){var l,t;if(h||!(null==u?void 0:u.length))return null;var n=u[0],r="".concat(w||(null==n?void 0:n.dataKey)||(null==n?void 0:n.name)||"value"),o=p(K,n,r),i=w||"string"!=typeof _?null==o?void 0:o.label:null!==(t=null===(l=K[_])||void 0===l?void 0:l.label)&&void 0!==t?t:_;return g?a("div",e({className:"ellm-chart__tooltip-label"},{children:g(i,u)})):null==i?null:a("div",e({className:"ellm-chart__tooltip-label"},{children:i}))},[_,g,u,h,K,w]);if(!c||!(null==u?void 0:u.length))return null;var x=1===u.length&&"dot"!==v;return t("div",e({ref:o,className:i("ellm-chart__tooltip",s)},{children:[x?null:k,a("div",e({className:"ellm-chart__tooltip-items"},{children:u.map(function(l,r){var o,c,d,u,s="".concat(C||l.name||l.dataKey||"value"),m=p(K,l,s),h=N||(null===(o=l.payload)||void 0===o?void 0:o.fill)||l.color;return a("div",e({className:"ellm-chart__tooltip-item"},{children:y&&void 0!==(null==l?void 0:l.value)&&l.name?y(l.value,l.name,l,r,l.payload):t(n,{children:[(null==m?void 0:m.icon)?a(m.icon,{}):!f&&a("span",{className:i("ellm-chart__indicator","ellm-chart__indicator--".concat(v)),style:{"--indicator-color":h}}),t("div",e({className:i("ellm-chart__tooltip-row",x&&"ellm-chart__tooltip-row--nested")},{children:[t("div",e({className:"ellm-chart__tooltip-grid"},{children:[x?k:null,a("span",e({className:"ellm-chart__tooltip-name"},{children:null!==(c=null==m?void 0:m.label)&&void 0!==c?c:l.name}))]})),void 0!==l.value&&a("span",e({className:"ellm-chart__tooltip-value"},{children:(null==b?void 0:b[String(null!==(d=l.dataKey)&&void 0!==d?d:"")])?b[String(l.dataKey)](l.value,l):"number"==typeof l.value?l.value.toLocaleString():l.value}))]}))]})}),String(null!==(u=l.dataKey)&&void 0!==u?u:r))})}))]}))});v.displayName="ChartTooltipContent";var h=o.Legend,f=r.forwardRef(function(l,n){var r=l.className,o=l.hideIcon,c=l.payload,u=l.verticalAlign,s=void 0===u?"bottom":u,m=l.align,v=void 0===m?"center":m,h=l.nameKey,f=l.onItemClick,_=l.hiddenKeys,g=d().config;return(null==c?void 0:c.length)?a("div",e({ref:n,className:i("ellm-chart__legend","top"===s?"ellm-chart__legend--top":"ellm-chart__legend--bottom","left"===v?"ellm-chart__legend--start":"right"===v?"ellm-chart__legend--end":"ellm-chart__legend--center",r)},{children:c.map(function(l,n){var r,c,d="".concat(h||l.dataKey||"value"),u=p(g,l,d),s=null==_?void 0:_.has(d);return t("button",e({type:"button",className:i("ellm-chart__legend-item",s&&"ellm-chart__legend-item--off"),onClick:f?function(){return f(d)}:void 0,disabled:!f,style:{cursor:f?"pointer":"default"}},{children:[(null==u?void 0:u.icon)&&!o?a(u.icon,{}):t("svg",e({className:"ellm-chart__legend-marker",width:"28",height:"12",viewBox:"0 0 28 12","aria-hidden":"true"},{children:[a("line",{x1:"1",y1:"6",x2:"27",y2:"6",stroke:l.color,strokeWidth:"2.5",strokeLinecap:"round"}),a("circle",{cx:"14",cy:"6",r:"4",fill:"#fff",stroke:l.color,strokeWidth:"2.5"})]})),null!==(r=null==u?void 0:u.label)&&void 0!==r?r:l.value]}),String(null!==(c=l.value)&&void 0!==c?c:n))})})):null});function p(l,e,a){if("object"==typeof e&&null!==e){var t="payload"in e&&"object"==typeof e.payload&&null!==e.payload?e.payload:void 0,n=a;return a in e&&"string"==typeof e[a]?n=e[a]:t&&a in t&&"string"==typeof t[a]&&(n=t[a]),n in l?l[n]:l[a]}}f.displayName="ChartLegendContent";export{u as ChartContainer,h as ChartLegend,f as ChartLegendContent,m as ChartTooltip,v as ChartTooltipContent,d as useChart};
|
|
2
|
+
//# sourceMappingURL=chart.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{useRef as n,useEffect as t}from"react";function i(i,e,r,u){void 0===i&&(i=!1);var c=n(null),o=function(){c.current=window.setInterval(r,e)},l=function(){null!==c.current&&(clearTimeout(c.current),c.current=null)},v=function(){"hidden"===document.visibilityState?l():"visible"===document.visibilityState&&i&&o()};t(function(){return i&&o(),document.addEventListener("visibilitychange",v),function(){document.removeEventListener("visibilitychange",v),l()}},u)}export{i as useVisibilityPolling};
|
|
2
|
+
//# sourceMappingURL=useVisibilityPolling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVisibilityPolling.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var r=[{value:1e12,suffix:"T"},{value:1e9,suffix:"B"},{value:1e6,suffix:"M"},{value:1e3,suffix:"K"}];function e(r,e){return r.toFixed(e).replace(/\.0+$/,"").replace(/(\.\d*[1-9])0+$/,"$1")}function t(t){if(!Number.isFinite(t))return"";for(var n=Math.abs(t),i=0;i<r.length;i++){var u=r[i];if(!(n<u.value)){var a=t/u.value,l=Math.abs(a)<100?1:0;if(i>0&&Math.abs(Number(a.toFixed(l)))>=1e3){var f=r[i-1];return e(a=t/f.value,l=Math.abs(a)<100?1:0)+f.suffix}return e(a,l)+u.suffix}}return Number.isInteger(t)?t.toLocaleString():Number(t.toFixed(2)).toLocaleString()}function n(r){return"object"==typeof r&&null!==r&&!Array.isArray(r)&&"currentValue"in r}function i(r){if(null!=r&&""!==r){var e=Number(r);return Number.isFinite(e)?e:void 0}}function u(r,e,t){if("higher_better"!==t&&"lower_better"!==t)return"neutral";var n=i(r),u=i(e);if(void 0===n||void 0===u)return"neutral";var a=n-u;return 0===a?"neutral":"higher_better"===t===a>0?"positive":"negative"}var a={positive:"#059669",negative:"#dc2626"};function l(r,e,t,n){var i,l=u(r,e,t);if("neutral"!==l)return null!==(i=null==n?void 0:n[l])&&void 0!==i?i:a[l]}function f(r,e,t){var n=i(r),a=i(e);if(void 0!==n&&void 0!==a&&0!==a){var l=(n-a)/Math.abs(a)*100;if(Number.isFinite(l)){var f=l>0?"up":l<0?"down":"flat",o=Math.abs(l);return{percent:l,direction:f,sentiment:u(r,e,t),label:o>0&&o<.1?"<0.1%":"".concat(Number(o.toFixed(1)),"%")}}}}function o(r,e){if(n(r))return o(r.currentValue,e);if(null==r||""===r)return"";if("string"==typeof r&&/[a-zA-Z%]/.test(r))return"dollar"!==e||r.startsWith("$")?r:"$".concat(r);var i=Number(r);if(Number.isNaN(i))return String(r);var u=t(i);switch(e){case"dollar":return"$".concat(u);case"percentage":return"".concat(u,"%");default:return u}}function v(r){return Object.values(r).filter(function(r){return Array.isArray(r)?r.length>0:null!=r&&""!==r}).length}export{a as KPI_SENTIMENT_COLORS,t as compactNumber,o as formatKpiValue,v as getActiveFilterCount,f as getKpiDelta,u as getKpiSentiment,l as getKpiValueColor,n as isKpiValueObject};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{Activity as e,Airplay as a,AlarmClock as o,Archive as t,ArrowDown as c,ArrowLeft as i,ArrowRight as l,ArrowUp as n,AtSign as d,Award as h,BadgeCheck as p,Banknote as u,BarChart as s,BarChart2 as b,BarChart3 as g,Battery as m,Bell as k,Bike as f,Book as w,Bookmark as v,Briefcase as y,Building as x,Building2 as j,Bus as z,Calendar as q,Camera as A,Car as B,Check as C,CheckCheck as D,ChevronDown as E,ChevronLeft as F,ChevronRight as G,ChevronUp as H,Circle as I,Clipboard as J,ClipboardCheck as K,Clock as L,Cloud as M,CloudRain as N,Code as O,Cog as P,Cpu as Q,CreditCard as R,Database as S,DollarSign as T,Download as U,Edit as V,Eye as W,File as X,FileText as Y,Filter as Z,Flag as $,Folder as _,Gift as rr,Globe as er,GraduationCap as ar,Hammer as or,HardDrive as tr,Heart as cr,HelpCircle as ir,Home as lr,Image as nr,Inbox as dr,Info as hr,Key as pr,Laptop as ur,LayoutDashboard as sr,LifeBuoy as br,Lightbulb as gr,Link as mr,List as kr,Loader as fr,Lock as wr,LogIn as vr,LogOut as yr,Mail as xr,Map as jr,Menu as zr,MessageCircle as qr,Mic as Ar,Monitor as Br,Moon as Cr,MoreHorizontal as Dr,Package as Er,PenTool as Fr,Percent as Gr,Phone as Hr,PieChart as Ir,Pin as Jr,Play as Kr,Plus as Lr,Printer as Mr,Rocket as Nr,Search as Or,Send as Pr,Settings as Qr,Shield as Rr,ShoppingCart as Sr,Smartphone as Tr,Star as Ur,Sun as Vr,Tag as Wr,Target as Xr,Trash as Yr,TrendingDown as Zr,TrendingUp as $r,Truck as _r,Upload as re,User as ee,UserCheck as ae,UserCog as oe,UserPlus as te,Users as ce,Wallet as ie,Wifi as le,Wrench as ne,X as de,Zap as he}from"lucide-react";var pe={activity:r(e,{}),airplay:r(a,{}),alarm:r(o,{}),archive:r(t,{}),"arrow-down":r(c,{}),"arrow-left":r(i,{}),"arrow-right":r(l,{}),"arrow-up":r(n,{}),at:r(d,{}),award:r(h,{}),badge:r(p,{}),banknote:r(u,{}),"bar-chart":r(s,{}),"bar-chart-2":r(b,{}),"chart-bar":r(g,{}),battery:r(m,{}),bell:r(k,{}),bike:r(f,{}),book:r(w,{}),bookmark:r(v,{}),briefcase:r(y,{}),building:r(x,{}),building2:r(j,{}),bus:r(z,{}),calendar:r(q,{}),camera:r(A,{}),car:r(B,{}),check:r(C,{}),"check-check":r(D,{}),"chevron-down":r(E,{}),"chevron-left":r(F,{}),"chevron-right":r(G,{}),"chevron-up":r(H,{}),circle:r(I,{}),clipboard:r(J,{}),"clipboard-check":r(K,{}),clock:r(L,{}),cloud:r(M,{}),rain:r(N,{}),code:r(O,{}),cog:r(P,{}),cpu:r(Q,{}),"credit-card":r(R,{}),database:r(S,{}),dollar:r(T,{}),download:r(U,{}),edit:r(V,{}),eye:r(W,{}),file:r(X,{}),"file-text":r(Y,{}),filter:r(Z,{}),flag:r($,{}),folder:r(_,{}),gift:r(rr,{}),globe:r(er,{}),graduation:r(ar,{}),hammer:r(or,{}),harddrive:r(tr,{}),heart:r(cr,{}),help:r(ir,{}),home:r(lr,{}),image:r(nr,{}),inbox:r(dr,{}),info:r(hr,{}),key:r(pr,{}),laptop:r(ur,{}),dashboard:r(sr,{}),lifebuoy:r(br,{}),bulb:r(gr,{}),link:r(mr,{}),list:r(kr,{}),loader:r(fr,{}),lock:r(wr,{}),login:r(vr,{}),logout:r(yr,{}),mail:r(xr,{}),map:r(jr,{}),menu:r(zr,{}),message:r(qr,{}),mic:r(Ar,{}),monitor:r(Br,{}),moon:r(Cr,{}),more:r(Dr,{}),package:r(Er,{}),pentool:r(Fr,{}),percent:r(Gr,{}),phone:r(Hr,{}),"pie-chart":r(Ir,{}),pin:r(Jr,{}),play:r(Kr,{}),plus:r(Lr,{}),printer:r(Mr,{}),rocket:r(Nr,{}),search:r(Or,{}),send:r(Pr,{}),settings:r(Qr,{}),shield:r(Rr,{}),cart:r(Sr,{}),smartphone:r(Tr,{}),star:r(Ur,{}),sun:r(Vr,{}),tag:r(Wr,{}),target:r(Xr,{}),trash:r(Yr,{}),"trending-down":r(Zr,{}),"trending-up":r($r,{}),truck:r(_r,{}),upload:r(re,{}),user:r(ee,{}),"user-check":r(ae,{}),"user-cog":r(oe,{}),"user-plus":r(te,{}),users:r(ce,{}),wallet:r(ie,{}),wifi:r(le,{}),wrench:r(ne,{}),close:r(de,{}),zap:r(he,{})};function ue(r){if(r)return pe[r]}export{pe as ICON_MAP,ue as getKpiIcon};
|
|
2
|
+
//# sourceMappingURL=kpiIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kpiIcon.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__spreadArray as r}from"../../_virtual/_tslib.js";var n=["graphBuilder","kpiCards","tableBuilder"],e=["dateFilters","sidebarFilters"];function t(r){if("string"!=typeof r)return null;var n=r.trim().toLowerCase().replace(/[\s_-]/g,"");return n.length?n:null}function i(r,n){if(!Array.isArray(r))return!1;var e=t(n);return null!=e&&r.some(function(r){return t(r)===e})}function o(r,n,e){n.length&&"production"!==process.env.NODE_ENV&&console.warn("[federated-dashboard] ".concat(r,": ignored unrecognized section ")+"".concat(1===n.length?"name":"names"," ").concat(n.map(function(r){return JSON.stringify(r)}).join(", "),". Available sections: ").concat(e.join(", "),"."))}function a(r,n,i){if(null==r)return[];if(!Array.isArray(r))return o(i,[r],n),[];var a=new Map;n.forEach(function(r){var n=t(r);n&&a.set(n,r)});for(var u=new Set(e.map(t)),c=[],s=[],l=0,f=r;l<f.length;l++){var d=f[l],g=t(d),p=g?a.get(g):void 0;p?c.includes(p)||c.push(p):g&&u.has(g)||s.push(d)}return o(i,s,n),c}function u(e,t,i,o){void 0===o&&(o=n);var u=a(e,o,"sectionOrder"),c=u.length?u:a(i,o,"uiConfig.data.sectionOrder"),s=a(t,o,"hiddenSections");return r(r([],c,!0),o.filter(function(r){return!c.includes(r)}),!0).filter(function(r){return!s.includes(r)})}export{n as DASHBOARD_SECTION_KEYS,e as PINNED_SECTION_KEYS,i as isSectionHidden,u as resolveSectionOrder};
|
|
2
|
+
//# sourceMappingURL=sectionOrder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sectionOrder.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as n,__spreadArray as l}from"../../_virtual/_tslib.js";import{jsx as t}from"react/jsx-runtime";function e(l){return void 0===l&&(l=[]),l.map(function(l,t){var e;return n({__rank:t+1,id:null!==(e=null==l?void 0:l.id)&&void 0!==e?e:String(t)},l)})}function i(e,i){var r=(null==i?void 0:i.columns)&&i.columns.length>0?i.columns:function(l){var e;return(null!==(e=l.columns)&&void 0!==e?e:[]).map(function(l){var e,i,r,d=null!==(i=null===(e=l.columnName)||void 0===e?void 0:e[0])&&void 0!==i?i:l.key;return{key:l.key,header:t("div",n({style:{width:"100%",textAlign:"left"}},{children:null!==(r=l.label)&&void 0!==r?r:d})),style:{textAlign:"left"},headerStyle:{padding:"8px 12px",textAlign:"left"},bodyStyle:{padding:"8px 12px",height:44},body:function(n){var l;return t("span",{children:null!==(l=null==n?void 0:n[d])&&void 0!==l?l:""})}}})}(e);return e.showRankColumn?l([{key:"__rank",header:t("div",n({style:{width:"100%",textAlign:"left"}},{children:"No"})),style:{width:56,textAlign:"left"},headerStyle:{padding:"8px 12px",textAlign:"left"},bodyStyle:{padding:"8px 12px",height:44},body:function(n){var l;return t("span",{children:null!==(l=n.__rank)&&void 0!==l?l:0})}}],r,!0):r}export{i as buildColumns,e as withRowIds};
|
|
2
|
+
//# sourceMappingURL=tableColumns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tableColumns.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__extends as t,__awaiter as e,__generator as r,__assign as s}from"../../_virtual/_tslib.js";var n=function(e){function r(t,r){var s=e.call(this,t)||this;return s.name="DashboardApiError",s.status=r,s}return t(r,e),r}(Error),i=function(t){return t.replace(/\/+$/,"")};function a(t,s,i,a){var o;return e(this,void 0,void 0,function(){var e,c,d;return r(this,function(r){switch(r.label){case 0:return e={accept:"application/json","Content-Type":"application/json"},console.log("[TEST] OUT accessToken",i),i&&(console.log("[TEST] In accessToken",i),e.Authorization="Bearer ".concat(i)),[4,fetch(t,{method:"POST",headers:e,body:JSON.stringify(s),signal:a})];case 1:if(!(c=r.sent()).ok)throw new n("Request failed with status ".concat(c.status),c.status);return[4,c.json()];case 2:if(!(d=r.sent()).success)throw new n((null===(o=d.error)||void 0===o?void 0:o.errorMessage)||"Request failed");return[2,d.data]}})})}function o(t,s){var n=t.configId,o=t.baseUrl,c=void 0===o?"":o,d=t.accessToken;return e(this,void 0,void 0,function(){return r(this,function(t){return[2,a("".concat(i(c),"/records-dashboard/filters/ui"),{config_id:n},d,s)]})})}function c(t,s){var n=t.configId,o=t.baseUrl,c=void 0===o?"":o,d=t.accessToken;return e(this,void 0,void 0,function(){var t;return r(this,function(e){switch(e.label){case 0:return[4,a("".concat(i(c),"/records-dashboard/filters/distinct-value"),{config_id:n},d,s)];case 1:return[2,(null==(t=e.sent())?void 0:t.sidebarFilters)||{}]}})})}function d(t,n){return e(this,void 0,void 0,function(){var e,i,a;return r(this,function(r){switch(r.label){case 0:return[4,Promise.all([o(t,n),c(t,n)])];case 1:return e=r.sent(),i=e[0],a=e[1],[2,{data:s(s({},i),{sidebarFilters:(i.sidebarFilters||[]).map(function(t){return s(s({},t),{options:a[t.schemaFilterName]||[]})})})}]}})})}function u(t){void 0===t&&(t={});var e={};return Object.entries(t).forEach(function(t){var r=t[0],s=t[1];Array.isArray(s)?s.length>0&&(e[r]=s):""!==s&&null!=s&&(e[r]=[s])}),e}function l(t,s,n){var o=t.configId,c=t.baseUrl,d=void 0===c?"":c,l=t.accessToken;return e(this,void 0,void 0,function(){var t;return r(this,function(e){return t={config_id:o,dateFilters:{startDate:"2000-08-01T00:00:00.000Z",endDate:"2050-08-31T23:59:59.000Z"},sidebarFilters:u(s.filters),statsFilters:s.statsFilters||{},selectedStatCards:s.selectedStatCards||[]},[2,a("".concat(i(d),"/records-dashboard/filters/get-data"),t,l,n)]})})}function f(t,n,o){var c=t.configId,d=t.baseUrl,l=void 0===d?"":d,f=t.accessToken;return e(this,void 0,void 0,function(){return r(this,function(t){return[2,a("".concat(i(l),"/records-dashboard/filters/table-data"),s(s({config_id:c,dateFilters:{endDate:"2050-08-13T05:51:34.302Z",startDate:"2000-08-12T18:30:00.000Z"},sidebarFilters:u(n.filters),statsFilters:n.statsFilters||{},selectedStatCards:n.selectedStatCards||[],tableHeader:n.tableHeader,tableKey:n.tableKey,pageSize:n.pageSize},n.page?{page:n.page}:{}),n.cursor?{cursor:n.cursor}:{}),f,o)]})})}export{n as RECODashboardApiError,l as RecordFetchDashboardData,f as RecordFetchTableData,d as RecordFetchUIConfig};
|
|
2
|
+
//# sourceMappingURL=RecordDashboardApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecordDashboardApi.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|