@e-llm-studio/federated-dashboard-components 1.0.12-human-intel-test → 1.0.13-audacy-test
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/dist/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
- package/dist/ExecutiveDashboard/api/dashboardApi.js +1 -1
- package/dist/ExecutiveDashboard/components/BarChart/BarChart.js +2 -0
- package/dist/ExecutiveDashboard/components/BarChart/BarChart.js.map +1 -0
- package/dist/ExecutiveDashboard/components/BarChart/BarChartEmptyState.js +2 -0
- package/dist/ExecutiveDashboard/components/BarChart/BarChartEmptyState.js.map +1 -0
- package/dist/ExecutiveDashboard/components/BarChart/BarChartSkeleton.js +2 -0
- package/dist/ExecutiveDashboard/components/BarChart/BarChartSkeleton.js.map +1 -0
- package/dist/ExecutiveDashboard/components/BarChart/BarChartTooltip.js +2 -0
- package/dist/ExecutiveDashboard/components/BarChart/BarChartTooltip.js.map +1 -0
- package/dist/ExecutiveDashboard/components/BarChart/types.js +2 -0
- package/dist/ExecutiveDashboard/components/BarChart/types.js.map +1 -0
- package/dist/ExecutiveDashboard/components/BarChart/utils.js +2 -0
- package/dist/ExecutiveDashboard/components/BarChart/utils.js.map +1 -0
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js +1 -1
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/SubscriptionFeature/CreateSubscriptionModal.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/SubscriptionFeature/CreateSubscriptionModal.js.map +1 -0
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/SubscriptionFeature/ReportSidebar.js +2 -0
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/SubscriptionFeature/ReportSidebar.js.map +1 -0
- package/dist/ExecutiveDashboard/components/DashboardDateFilter/datePreset.js +1 -1
- package/dist/ExecutiveDashboard/components/DropDowns/CustomMultiSelect.js +1 -1
- package/dist/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
- package/dist/ExecutiveDashboard/components/Graph/Graph.js +1 -1
- package/dist/ExecutiveDashboard/components/Graph/LineChart.js +1 -1
- 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 +1 -1
- package/dist/ExecutiveDashboard/components/PieChart/PieChart.js +2 -0
- package/dist/ExecutiveDashboard/components/PieChart/PieChart.js.map +1 -0
- package/dist/ExecutiveDashboard/components/PieChart/PieChartEmptyState.js +2 -0
- package/dist/ExecutiveDashboard/components/PieChart/PieChartEmptyState.js.map +1 -0
- package/dist/ExecutiveDashboard/components/PieChart/PieChartSkeleton.js +2 -0
- package/dist/ExecutiveDashboard/components/PieChart/PieChartSkeleton.js.map +1 -0
- package/dist/ExecutiveDashboard/components/PieChart/PieChartTooltip.js +2 -0
- package/dist/ExecutiveDashboard/components/PieChart/PieChartTooltip.js.map +1 -0
- package/dist/ExecutiveDashboard/components/PieChart/types.js +2 -0
- package/dist/ExecutiveDashboard/components/PieChart/types.js.map +1 -0
- package/dist/ExecutiveDashboard/components/PieChart/utils.js +2 -0
- package/dist/ExecutiveDashboard/components/PieChart/utils.js.map +1 -0
- package/dist/ExecutiveDashboard/components/Table/TableCard.js +1 -1
- package/dist/ExecutiveDashboard/components/TablePage/TablePage.js +2 -0
- package/dist/ExecutiveDashboard/components/TablePage/TablePage.js.map +1 -0
- package/dist/ExecutiveDashboard/components/common/ConfirmationModal.js +2 -0
- package/dist/ExecutiveDashboard/components/common/ConfirmationModal.js.map +1 -0
- package/dist/ExecutiveDashboard/components/ui/chart.js +1 -1
- package/dist/ExecutiveDashboard/hooks/useVisibilityPolling.js +2 -0
- package/dist/ExecutiveDashboard/hooks/useVisibilityPolling.js.map +1 -0
- package/dist/RecordDashboard/RecordApi/RecordDashboardApi.js +1 -1
- package/dist/RecordDashboard/RecordComponents/AnalyticsChart/AnalyticsChart.js +1 -1
- package/dist/RecordDashboard/RecordComponents/RecordDashboard.js +1 -1
- package/dist/RecordDashboard/RecordDashboardWrapper.js +1 -1
- package/dist/RecordDashboard/RecordUtils/RecordTableColumns.js +1 -1
- package/dist/cjs/ExecutiveDashboard/ExecutiveDashboardWrapper.js +1 -1
- package/dist/cjs/ExecutiveDashboard/api/dashboardApi.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/BarChart/BarChart.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/BarChart/BarChart.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/BarChart/BarChartEmptyState.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/BarChart/BarChartEmptyState.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/BarChart/BarChartSkeleton.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/BarChart/BarChartSkeleton.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/BarChart/BarChartTooltip.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/BarChart/BarChartTooltip.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/BarChart/types.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/BarChart/types.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/BarChart/utils.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/BarChart/utils.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/SubscriptionFeature/CreateSubscriptionModal.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/SubscriptionFeature/CreateSubscriptionModal.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/SubscriptionFeature/ReportSidebar.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/SubscriptionFeature/ReportSidebar.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/DashboardDateFilter/datePreset.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/DropDowns/CustomMultiSelect.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/ExecutiveDashboard.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/Graph/Graph.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/Graph/LineChart.js +1 -1
- 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/MetricCard/MetricCard.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/PieChart/PieChart.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/PieChart/PieChart.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/PieChart/PieChartEmptyState.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/PieChart/PieChartEmptyState.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/PieChart/PieChartSkeleton.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/PieChart/PieChartSkeleton.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/PieChart/PieChartTooltip.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/PieChart/PieChartTooltip.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/PieChart/types.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/PieChart/types.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/PieChart/utils.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/PieChart/utils.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/Table/TableCard.js +1 -1
- package/dist/cjs/ExecutiveDashboard/components/TablePage/TablePage.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/TablePage/TablePage.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/common/ConfirmationModal.js +2 -0
- package/dist/cjs/ExecutiveDashboard/components/common/ConfirmationModal.js.map +1 -0
- package/dist/cjs/ExecutiveDashboard/components/ui/chart.js +1 -1
- package/dist/cjs/ExecutiveDashboard/hooks/useVisibilityPolling.js +2 -0
- package/dist/cjs/ExecutiveDashboard/hooks/useVisibilityPolling.js.map +1 -0
- package/dist/cjs/RecordDashboard/RecordApi/RecordDashboardApi.js +1 -1
- package/dist/cjs/RecordDashboard/RecordComponents/AnalyticsChart/AnalyticsChart.js +1 -1
- package/dist/cjs/RecordDashboard/RecordComponents/RecordDashboard.js +1 -1
- package/dist/cjs/RecordDashboard/RecordDashboardWrapper.js +1 -1
- package/dist/cjs/RecordDashboard/RecordUtils/RecordTableColumns.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.map +1 -1
- package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts +1 -1
- package/dist/types/ExecutiveDashboard/ExecutiveDashboardWrapper.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/TestExecutiveDashboard.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/api/dashboardApi.d.ts +2 -1
- package/dist/types/ExecutiveDashboard/api/dashboardApi.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/BarChart/BarChart.d.ts +11 -0
- package/dist/types/ExecutiveDashboard/components/BarChart/BarChart.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/BarChart/BarChartEmptyState.d.ts +11 -0
- package/dist/types/ExecutiveDashboard/components/BarChart/BarChartEmptyState.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/BarChart/BarChartSkeleton.d.ts +11 -0
- package/dist/types/ExecutiveDashboard/components/BarChart/BarChartSkeleton.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/BarChart/BarChartTooltip.d.ts +13 -0
- package/dist/types/ExecutiveDashboard/components/BarChart/BarChartTooltip.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/BarChart/types.d.ts +170 -0
- package/dist/types/ExecutiveDashboard/components/BarChart/types.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/BarChart/utils.d.ts +48 -0
- package/dist/types/ExecutiveDashboard/components/BarChart/utils.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.d.ts +8 -1
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/DashboardDateFilter.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/SubscriptionFeature/CreateSubscriptionModal.d.ts +33 -0
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/SubscriptionFeature/CreateSubscriptionModal.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/SubscriptionFeature/ReportSidebar.d.ts +11 -0
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/SubscriptionFeature/ReportSidebar.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/datePreset.d.ts +47 -0
- package/dist/types/ExecutiveDashboard/components/DashboardDateFilter/datePreset.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/DropDowns/CustomMultiSelect.d.ts +1 -3
- package/dist/types/ExecutiveDashboard/components/DropDowns/CustomMultiSelect.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts +18 -2
- package/dist/types/ExecutiveDashboard/components/ExecutiveDashboard.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/Graph/Graph.d.ts +1 -1
- package/dist/types/ExecutiveDashboard/components/Graph/Graph.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/Graph/LineChart.d.ts +4 -2
- package/dist/types/ExecutiveDashboard/components/Graph/LineChart.d.ts.map +1 -1
- 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 +61 -0
- package/dist/types/ExecutiveDashboard/components/Graph/types.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/MetricCard/MetricCard.d.ts +13 -1
- package/dist/types/ExecutiveDashboard/components/MetricCard/MetricCard.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/PieChart/PieChart.d.ts +11 -0
- package/dist/types/ExecutiveDashboard/components/PieChart/PieChart.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/PieChart/PieChartEmptyState.d.ts +11 -0
- package/dist/types/ExecutiveDashboard/components/PieChart/PieChartEmptyState.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/PieChart/PieChartSkeleton.d.ts +12 -0
- package/dist/types/ExecutiveDashboard/components/PieChart/PieChartSkeleton.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/PieChart/PieChartTooltip.d.ts +13 -0
- package/dist/types/ExecutiveDashboard/components/PieChart/PieChartTooltip.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/PieChart/types.d.ts +148 -0
- package/dist/types/ExecutiveDashboard/components/PieChart/types.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/PieChart/utils.d.ts +39 -0
- package/dist/types/ExecutiveDashboard/components/PieChart/utils.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/Table/TableCard.d.ts +11 -1
- package/dist/types/ExecutiveDashboard/components/Table/TableCard.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/components/TablePage/TablePage.d.ts +42 -0
- package/dist/types/ExecutiveDashboard/components/TablePage/TablePage.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/ExecutiveDashboard/components/common/ConfirmationModal.d.ts +17 -0
- package/dist/types/ExecutiveDashboard/components/common/ConfirmationModal.d.ts.map +1 -0
- package/dist/types/ExecutiveDashboard/components/ui/chart.d.ts +1 -0
- package/dist/types/ExecutiveDashboard/components/ui/chart.d.ts.map +1 -1
- package/dist/types/ExecutiveDashboard/constant/index.d.ts.map +1 -1
- 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 +299 -1
- package/dist/types/ExecutiveDashboard/types/index.d.ts.map +1 -1
- package/dist/types/RecordDashboard/RecordApi/RecordDashboardApi.d.ts +5 -2
- package/dist/types/RecordDashboard/RecordApi/RecordDashboardApi.d.ts.map +1 -1
- package/dist/types/RecordDashboard/RecordComponents/AnalyticsChart/AnalyticsChart.d.ts +1 -1
- package/dist/types/RecordDashboard/RecordComponents/AnalyticsChart/AnalyticsChart.d.ts.map +1 -1
- package/dist/types/RecordDashboard/RecordComponents/RecordDashboard.d.ts.map +1 -1
- package/dist/types/RecordDashboard/RecordDashboardWrapper.d.ts +1 -1
- package/dist/types/RecordDashboard/RecordDashboardWrapper.d.ts.map +1 -1
- package/dist/types/RecordDashboard/RecordTypes/index.d.ts +33 -4
- package/dist/types/RecordDashboard/RecordTypes/index.d.ts.map +1 -1
- package/dist/types/RecordDashboard/RecordUtils/RecordTableColumns.d.ts +13 -1
- package/dist/types/RecordDashboard/RecordUtils/RecordTableColumns.d.ts.map +1 -1
- package/dist/types/RecordDashboard/TestRecordDashbaord.d.ts.map +1 -1
- package/dist/types/index.d.ts +35 -3
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +5 -25
- package/dist/HumanIntelligence/HumanChangesTableWrapper.js +0 -2
- package/dist/HumanIntelligence/HumanChangesTableWrapper.js.map +0 -1
- package/dist/HumanIntelligence/components/CitationContent/CitationContent.js +0 -2
- package/dist/HumanIntelligence/components/CitationContent/CitationContent.js.map +0 -1
- package/dist/HumanIntelligence/components/CitationContent/CitationContent.module.css.js +0 -2
- package/dist/HumanIntelligence/components/CitationContent/CitationContent.module.css.js.map +0 -1
- package/dist/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.js +0 -2
- package/dist/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.js.map +0 -1
- package/dist/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.module.css.js +0 -2
- package/dist/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.module.css.js.map +0 -1
- package/dist/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.js +0 -2
- package/dist/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.js.map +0 -1
- package/dist/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.module.css.js +0 -2
- package/dist/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.module.css.js.map +0 -1
- package/dist/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.js +0 -2
- package/dist/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.js.map +0 -1
- package/dist/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.module.css.js +0 -2
- package/dist/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.module.css.js.map +0 -1
- package/dist/HumanIntelligence/components/LogFilters/LogFilterDropdown.js +0 -2
- package/dist/HumanIntelligence/components/LogFilters/LogFilterDropdown.js.map +0 -1
- package/dist/HumanIntelligence/components/LogFilters/LogFilters.js +0 -2
- package/dist/HumanIntelligence/components/LogFilters/LogFilters.js.map +0 -1
- package/dist/HumanIntelligence/components/LogTable/LogTable.js +0 -2
- package/dist/HumanIntelligence/components/LogTable/LogTable.js.map +0 -1
- package/dist/HumanIntelligence/components/PatternDetails/PatternDetails.js +0 -2
- package/dist/HumanIntelligence/components/PatternDetails/PatternDetails.js.map +0 -1
- package/dist/HumanIntelligence/components/PatternDetails/PatternDetails.module.css.js +0 -2
- package/dist/HumanIntelligence/components/PatternDetails/PatternDetails.module.css.js.map +0 -1
- package/dist/HumanIntelligence/components/Shared/ReusableTable.js +0 -2
- package/dist/HumanIntelligence/components/Shared/ReusableTable.js.map +0 -1
- package/dist/HumanIntelligence/components/Shared/ReusableTable.module.css.js +0 -2
- package/dist/HumanIntelligence/components/Shared/ReusableTable.module.css.js.map +0 -1
- package/dist/HumanIntelligence/hooks/useHighlightNavigation.js +0 -2
- package/dist/HumanIntelligence/hooks/useHighlightNavigation.js.map +0 -1
- package/dist/HumanIntelligence/hooks/useHumanChangesData.js +0 -2
- package/dist/HumanIntelligence/hooks/useHumanChangesData.js.map +0 -1
- package/dist/HumanIntelligence/hooks/useHumanIntelligenceController.js +0 -2
- package/dist/HumanIntelligence/hooks/useHumanIntelligenceController.js.map +0 -1
- package/dist/HumanIntelligence/styles/HumanIntelligence.module.css.js +0 -2
- package/dist/HumanIntelligence/styles/HumanIntelligence.module.css.js.map +0 -1
- package/dist/cjs/HumanIntelligence/HumanChangesTableWrapper.js +0 -2
- package/dist/cjs/HumanIntelligence/HumanChangesTableWrapper.js.map +0 -1
- package/dist/cjs/HumanIntelligence/components/CitationContent/CitationContent.js +0 -2
- package/dist/cjs/HumanIntelligence/components/CitationContent/CitationContent.js.map +0 -1
- package/dist/cjs/HumanIntelligence/components/CitationContent/CitationContent.module.css.js +0 -2
- package/dist/cjs/HumanIntelligence/components/CitationContent/CitationContent.module.css.js.map +0 -1
- package/dist/cjs/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.js +0 -2
- package/dist/cjs/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.js.map +0 -1
- package/dist/cjs/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.module.css.js +0 -2
- package/dist/cjs/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.module.css.js.map +0 -1
- package/dist/cjs/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.js +0 -2
- package/dist/cjs/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.js.map +0 -1
- package/dist/cjs/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.module.css.js +0 -2
- package/dist/cjs/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.module.css.js.map +0 -1
- package/dist/cjs/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.js +0 -2
- package/dist/cjs/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.js.map +0 -1
- package/dist/cjs/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.module.css.js +0 -2
- package/dist/cjs/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.module.css.js.map +0 -1
- package/dist/cjs/HumanIntelligence/components/LogFilters/LogFilterDropdown.js +0 -2
- package/dist/cjs/HumanIntelligence/components/LogFilters/LogFilterDropdown.js.map +0 -1
- package/dist/cjs/HumanIntelligence/components/LogFilters/LogFilters.js +0 -2
- package/dist/cjs/HumanIntelligence/components/LogFilters/LogFilters.js.map +0 -1
- package/dist/cjs/HumanIntelligence/components/LogTable/LogTable.js +0 -2
- package/dist/cjs/HumanIntelligence/components/LogTable/LogTable.js.map +0 -1
- package/dist/cjs/HumanIntelligence/components/PatternDetails/PatternDetails.js +0 -2
- package/dist/cjs/HumanIntelligence/components/PatternDetails/PatternDetails.js.map +0 -1
- package/dist/cjs/HumanIntelligence/components/PatternDetails/PatternDetails.module.css.js +0 -2
- package/dist/cjs/HumanIntelligence/components/PatternDetails/PatternDetails.module.css.js.map +0 -1
- package/dist/cjs/HumanIntelligence/components/Shared/ReusableTable.js +0 -2
- package/dist/cjs/HumanIntelligence/components/Shared/ReusableTable.js.map +0 -1
- package/dist/cjs/HumanIntelligence/components/Shared/ReusableTable.module.css.js +0 -2
- package/dist/cjs/HumanIntelligence/components/Shared/ReusableTable.module.css.js.map +0 -1
- package/dist/cjs/HumanIntelligence/hooks/useHighlightNavigation.js +0 -2
- package/dist/cjs/HumanIntelligence/hooks/useHighlightNavigation.js.map +0 -1
- package/dist/cjs/HumanIntelligence/hooks/useHumanChangesData.js +0 -2
- package/dist/cjs/HumanIntelligence/hooks/useHumanChangesData.js.map +0 -1
- package/dist/cjs/HumanIntelligence/hooks/useHumanIntelligenceController.js +0 -2
- package/dist/cjs/HumanIntelligence/hooks/useHumanIntelligenceController.js.map +0 -1
- package/dist/cjs/HumanIntelligence/styles/HumanIntelligence.module.css.js +0 -2
- package/dist/cjs/HumanIntelligence/styles/HumanIntelligence.module.css.js.map +0 -1
- package/dist/types/HumanIntelligence/HumanChangesTableWrapper.d.ts +0 -108
- package/dist/types/HumanIntelligence/HumanChangesTableWrapper.d.ts.map +0 -1
- package/dist/types/HumanIntelligence/TestHumanIntelligence.d.ts +0 -3
- package/dist/types/HumanIntelligence/TestHumanIntelligence.d.ts.map +0 -1
- package/dist/types/HumanIntelligence/components/CitationContent/CitationContent.d.ts +0 -26
- package/dist/types/HumanIntelligence/components/CitationContent/CitationContent.d.ts.map +0 -1
- package/dist/types/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.d.ts +0 -36
- package/dist/types/HumanIntelligence/components/CognitiveDecisioning/CognitiveDecisioning.d.ts.map +0 -1
- package/dist/types/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.d.ts +0 -12
- package/dist/types/HumanIntelligence/components/HumanChangesSummary/HumanChangesSummary.d.ts.map +0 -1
- package/dist/types/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.d.ts +0 -40
- package/dist/types/HumanIntelligence/components/HumanIntelligenceCard/HumanIntelligenceCard.d.ts.map +0 -1
- package/dist/types/HumanIntelligence/components/LogFilters/LogFilterDropdown.d.ts +0 -27
- package/dist/types/HumanIntelligence/components/LogFilters/LogFilterDropdown.d.ts.map +0 -1
- package/dist/types/HumanIntelligence/components/LogFilters/LogFilters.d.ts +0 -38
- package/dist/types/HumanIntelligence/components/LogFilters/LogFilters.d.ts.map +0 -1
- package/dist/types/HumanIntelligence/components/LogFilters/LogFiltersSidebar.d.ts +0 -38
- package/dist/types/HumanIntelligence/components/LogFilters/LogFiltersSidebar.d.ts.map +0 -1
- package/dist/types/HumanIntelligence/components/LogTable/LogTable.d.ts +0 -73
- package/dist/types/HumanIntelligence/components/LogTable/LogTable.d.ts.map +0 -1
- package/dist/types/HumanIntelligence/components/PatternDetails/PatternDetails.d.ts +0 -11
- package/dist/types/HumanIntelligence/components/PatternDetails/PatternDetails.d.ts.map +0 -1
- package/dist/types/HumanIntelligence/components/Shared/ReusableTable.d.ts +0 -18
- package/dist/types/HumanIntelligence/components/Shared/ReusableTable.d.ts.map +0 -1
- package/dist/types/HumanIntelligence/hooks/useHighlightNavigation.d.ts +0 -42
- package/dist/types/HumanIntelligence/hooks/useHighlightNavigation.d.ts.map +0 -1
- package/dist/types/HumanIntelligence/hooks/useHumanChangesData.d.ts +0 -146
- package/dist/types/HumanIntelligence/hooks/useHumanChangesData.d.ts.map +0 -1
- package/dist/types/HumanIntelligence/hooks/useHumanIntelligenceController.d.ts +0 -48
- package/dist/types/HumanIntelligence/hooks/useHumanIntelligenceController.d.ts.map +0 -1
- package/dist/types/HumanIntelligence/index.d.ts +0 -21
- package/dist/types/HumanIntelligence/index.d.ts.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),i=require("react"),a=require("lucide-react"),r=require("../../DropDowns/CustomSingleSelect.js"),n=require("../../DropDowns/CustomMultiSelect.js");exports.default=function(t){var l=t.isOpen,o=t.onClose,u=t.scopeFields,c=void 0===u?[]:u,d=t.subscriptionTypes,b=void 0===d?[{label:"Periodic",value:"Periodic",triggers:[{label:"Daily",value:"daily",info:"Email is sent at 8:00 AM on the next day after the selected period."},{label:"Weekly",value:"weekly",info:"Email is sent at 8:00 AM on the Monday after the selected period."},{label:"Monthly",value:"monthly",info:"Email is sent at 8:00 AM on the Monday after the selected period."}]},{label:"Event-based",value:"Event-based"}]:d,v=t.onSearchSubscribers,p=t.onSave,m=t.editData,_=i.useState(1),g=_[0],f=_[1],h=i.useState(""),x=h[0],y=h[1],j=i.useState({}),q=j[0],N=j[1],C=i.useState("Periodic"),S=C[0],w=C[1],k=i.useState("daily"),L=k[0],A=k[1],M=i.useState([]),E=M[0],T=M[1],O=i.useState(""),P=O[0],z=O[1],D=i.useState(!1),B=D[0],W=D[1],U=i.useState([]),F=U[0],R=U[1],X=i.useState(!1),H=X[0],I=X[1];i.useEffect(function(){if(l&&m){y(m.name||"");var e={},s=(null==m?void 0:m.reportScope)||{};Object.keys(s).forEach(function(i){var a=s[i],r=c.find(function(e){return e.id.toLowerCase()===i.toLowerCase()||e.label.toLowerCase()===i.toLowerCase()});"string"==typeof a&&"multiSelect"===(null==r?void 0:r.scopeType)&&a.includes(",")&&(a=a.split(",").map(function(e){return e.trim()}));var n=a;if(r&&r.options){var t=function(e){var s=String(e).trim().toLowerCase(),i=r.options.find(function(e){return String(e.value).toLowerCase()===s||String(e.label).toLowerCase()===s});return i?i.value:e};Array.isArray(a)?n=a.map(t):a&&(n=t(a))}var l=r?r.id:i;"multiSelect"===(null==r?void 0:r.scopeType)?e[l]=Array.isArray(n)?n:n?[n]:[]:"singleSelect"===(null==r?void 0:r.scopeType)?e[l]=Array.isArray(n)?n.length>0?n[0]:"":n:e[l]=n}),f(1),N(e),w(m.type||(b.length>0?b[0].value:"Periodic")),A(m.trigger||"daily");var i=Array.isArray(m.subscribers)?m.subscribers.map(function(e){var s="string"==typeof e?e:e.email||e.value||e.name||e;return{label:"string"==typeof e?e:e.name||e.label||e.email||s,value:s}}):m.subscribers?[{label:"string"==typeof m.subscribers?m.subscribers:m.subscribers.name||m.subscribers.email||m.subscribers,value:"string"==typeof m.subscribers?m.subscribers:m.subscribers.email||m.subscribers.value||m.subscribers}]:[];T(i)}else l&&!m&&(f(1),y(""),N({}),w(b.length>0?b[0].value:"Periodic"),A("daily"),T([]),z(""),R([]))},[l,m,b]);var G=i.useMemo(function(){var s=e.__spreadArray([],c,!0);return(null==m?void 0:m.reportScope)&&Object.keys(m.reportScope).forEach(function(e){var i=s.find(function(s){var i,a;return(null===(i=s.id)||void 0===i?void 0:i.toLowerCase())===e.toLowerCase()||(null===(a=s.label)||void 0===a?void 0:a.toLowerCase())===e.toLowerCase()});if(!i){var a=m.reportScope[e],r=Array.isArray(a);s.push({id:e,label:e.charAt(0).toUpperCase()+e.slice(1),options:r?a.map(function(e){return{label:e,value:e}}):[{label:a,value:a}],scopeType:r?"multiSelect":"singleSelect"})}}),s},[c,m]);if(!l)return null;var J=function(e,s){if(!e)return s?[]:"";var i=Object.keys(q).find(function(s){return s.toLowerCase()===e.toLowerCase()});if(i&&void 0!==q[i]){var a=q[i];return s?Array.isArray(a)?a:a?[a]:[]:Array.isArray(a)?a.length>0?a[0]:"":a}return s?[]:""};return s.jsx("div",e.__assign({className:"q-subs-modal-overlay"},{children:s.jsxs("div",e.__assign({className:"q-subs-modal"},{children:[s.jsxs("div",e.__assign({className:"q-subs-modal-header"},{children:[s.jsx("div",e.__assign({className:"q-subs-modal-title"},{children:m?"Edit Subscription":"Create Subscription"})),s.jsx("button",e.__assign({className:"q-subs-modal-close",onClick:o},{children:s.jsx(a.X,{size:14})}))]})),s.jsxs("div",e.__assign({className:"q-subs-stepper"},{children:[s.jsxs("div",e.__assign({className:"q-subs-step ".concat(g>=1?g>1?"completed":"active":"")},{children:[s.jsx("div",e.__assign({className:"q-subs-step-num"},{children:g>1?s.jsx(a.Check,{size:14}):"1"})),"Name & scope"]})),s.jsx("div",{className:"q-subs-step-line ".concat(g>1?"completed":"")}),s.jsxs("div",e.__assign({className:"q-subs-step ".concat(g>=2?g>2?"completed":"active":"")},{children:[s.jsx("div",e.__assign({className:"q-subs-step-num"},{children:g>2?s.jsx(a.Check,{size:14}):"2"})),"Type"]})),s.jsx("div",{className:"q-subs-step-line ".concat(g>2?"completed":"")}),s.jsxs("div",e.__assign({className:"q-subs-step ".concat(g>=3?"active":"")},{children:[s.jsx("div",e.__assign({className:"q-subs-step-num"},{children:"3"})),"Subscribers"]}))]})),s.jsxs("div",e.__assign({className:"q-subs-modal-body"},{children:[1===g&&s.jsxs("div",{children:[s.jsxs("div",e.__assign({className:"q-subs-form-group"},{children:[s.jsxs("label",e.__assign({className:"q-subs-form-label"},{children:["Subscription name ",s.jsx("span",e.__assign({className:"req"},{children:"*"}))]})),s.jsx("input",{type:"text",className:"q-subs-input",placeholder:"e.g. Midwest Music Weekly Report",value:x,onChange:function(e){return y(e.target.value)}})]})),s.jsx("div",{style:{height:"1px",background:"#E2E8F0",margin:"0 0 24px 0"}}),s.jsx("label",e.__assign({className:"q-subs-form-label"},{children:"Report scope"})),s.jsx("div",e.__assign({className:"q-subs-grid-2"},{children:G.map(function(i){var a,t,l,o;return s.jsxs("div",{children:[s.jsx("label",e.__assign({className:"q-subs-form-desc",style:{display:"block",marginBottom:"4px",color:"#475569"}},{children:i.label})),"multiSelect"===i.scopeType?s.jsx(n.default,{options:(null===(a=i.options)||void 0===a?void 0:a.map(function(e){var s="string"==typeof e?e:e.value||e.id||e;return{label:"string"==typeof e?e:e.label||e.name||s,value:s}}))||[],value:J(i.id,!0)||[],onChange:function(s){var a,r=Object.keys(q).find(function(e){return e.toLowerCase()===(i.id||"").toLowerCase()});N(e.__assign(e.__assign({},q),((a={})[r||i.id]=s,a)))},placeholder:"Select ".concat((null===(t=i.label)||void 0===t?void 0:t.toLowerCase())||"")}):s.jsx(r.default,{options:(null===(l=i.options)||void 0===l?void 0:l.map(function(e){var s="string"==typeof e?e:e.value||e.id||e;return{label:"string"==typeof e?e:e.label||e.name||s,value:s}}))||[],value:J(i.id,!1)||"",onChange:function(s){var a,r=Object.keys(q).find(function(e){return e.toLowerCase()===(i.id||"").toLowerCase()});N(e.__assign(e.__assign({},q),((a={})[r||i.id]=s,a)))},placeholder:"Select ".concat((null===(o=i.label)||void 0===o?void 0:o.toLowerCase())||"")})]},i.id)})}))]}),2===g&&s.jsxs("div",{children:[s.jsxs("div",e.__assign({className:"q-subs-form-group"},{children:[s.jsx("label",e.__assign({className:"q-subs-form-label",style:{marginBottom:"4px"}},{children:"Subscription Type"})),s.jsx("div",e.__assign({className:"q-subs-form-desc"},{children:"Choose when you want to receive this report."})),s.jsx("div",e.__assign({className:"q-subs-radio-group"},{children:b.map(function(i){return s.jsxs("label",e.__assign({className:"q-subs-radio-label"},{children:[s.jsx("input",{type:"radio",className:"q-subs-radio",checked:S===i.value,onChange:function(){return w(i.value)}})," ",i.label]}),i.value)})}))]})),function(){var i=b.find(function(e){return e.value===S}),n=null==i?void 0:i.triggers;if(n&&n.length>0){var t=n.find(function(e){return e.value===L});return s.jsxs("div",e.__assign({className:"q-subs-form-group"},{children:[s.jsx("label",e.__assign({className:"q-subs-form-label",style:{marginBottom:"4px"}},{children:"Trigger"})),s.jsx("div",e.__assign({className:"q-subs-form-desc"},{children:"How often should this report be sent?"})),s.jsx("div",e.__assign({style:{width:"60%"}},{children:s.jsx(r.default,{options:n.map(function(e){return{label:e.label,value:e.value}}),value:L,onChange:function(e){return A(e)},placeholder:"Select trigger"})})),t&&t.info&&s.jsxs("div",e.__assign({className:"q-subs-info"},{children:[s.jsx(a.Info,{size:12,strokeWidth:3}),t.info]}))]}))}return null}()]}),3===g&&s.jsx("div",{children:s.jsxs("div",e.__assign({className:"q-subs-form-group"},{children:[s.jsx("label",e.__assign({className:"q-subs-form-label",style:{marginBottom:"4px"}},{children:"Subscribers"})),s.jsx("div",e.__assign({className:"q-subs-form-desc"},{children:"Who should receive this report?"})),s.jsxs("div",e.__assign({className:"q-subs-search-box"},{children:[s.jsx("input",{type:"text",className:"q-subs-input",placeholder:"Type name or email...",value:P,onChange:function(s){return e.__awaiter(void 0,void 0,void 0,function(){var i,a;return e.__generator(this,function(e){switch(e.label){case 0:if(i=s.target.value,z(i),!i)return R([]),[2];if(!v)return[3,5];I(!0),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,v(i)];case 2:return a=e.sent(),R(a||[]),[3,5];case 3:return e.sent(),R([]),[3,5];case 4:return I(!1),[7];case 5:return[2]}})})}}),H&&s.jsx("div",e.__assign({style:{position:"absolute",right:"12px",top:"10px",fontSize:"12px",color:"#94a3b8"}},{children:"Loading..."})),F.length>0&&P&&s.jsx("div",e.__assign({className:"q-subs-search-results"},{children:F.map(function(i){return s.jsx("div",e.__assign({className:"q-subs-search-item",onClick:function(){return function(s){E.find(function(e){return e.value===s.value})||T(e.__spreadArray(e.__spreadArray([],E,!0),[s],!1)),z(""),R([])}(i)}},{children:i.label}),i.value)})}))]})),E.length>0&&s.jsx("div",e.__assign({className:"q-subs-chips"},{children:E.map(function(i){return s.jsxs("div",e.__assign({className:"q-subs-chip"},{children:[i.label,s.jsx("div",e.__assign({className:"q-subs-chip-remove",onClick:function(){return e=i.value,void T(E.filter(function(s){return s.value!==e}));var e}},{children:s.jsx(a.X,{size:12,strokeWidth:3})}))]}),i.value)})}))]}))})]})),s.jsxs("div",e.__assign({className:"q-subs-modal-footer"},{children:[1===g?s.jsx("button",e.__assign({className:"q-subs-btn-cancel",onClick:o},{children:"Cancel"})):s.jsx("button",e.__assign({className:"q-subs-btn-cancel",onClick:function(){return f(function(e){return Math.max(e-1,1)})}},{children:"Back"})),g<3?s.jsxs("button",e.__assign({className:"q-subs-btn-primary",onClick:function(){return f(function(e){return Math.min(e+1,3)})},disabled:1===g&&!x.trim()},{children:["Next ",s.jsx("span",e.__assign({style:{marginLeft:"4px"}},{children:"→"}))]})):s.jsx("button",e.__assign({className:"q-subs-btn-primary",onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var s,i,a,r,n;return e.__generator(this,function(e){switch(e.label){case 0:return W(!0),s={name:x,scope:q,subscription_type:S.toLowerCase(),trigger_frequency:(null===(n=null===(r=b.find(function(e){return e.value===S}))||void 0===r?void 0:r.triggers)||void 0===n?void 0:n.length)?L:"",trigger_event:S,subscriber_emails:E.map(function(e){return e.value})},i=!1,p?[4,p(s,!!(null==m?void 0:m.id))]:[3,2];case 1:return a=e.sent(),i=!1!==a,[3,3];case 2:i=!0,e.label=3;case 3:return W(!1),i&&(o(),f(1),y(""),N({}),w("Periodic"),A("daily"),T([]),z("")),[2]}})})},disabled:B||0===E.length},{children:B?m?"Updating...":"Creating...":m?"Update Subscription":"Create Subscription"}))]}))]}))}))};
|
|
2
|
+
//# sourceMappingURL=CreateSubscriptionModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateSubscriptionModal.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),a=require("lucide-react"),i=require("../../MetricCard/MetricCard.js");exports.default=function(n){var r,l=n.visible,d=n.onHide,c=n.reportData,t=n.loading;if(!l)return null;var _=null==c?void 0:c.banner;return s.jsxs("div",e.__assign({className:"q-rep-panel"},{children:[s.jsxs("div",e.__assign({className:"q-rep-panel-header"},{children:[s.jsxs("div",{children:[s.jsx("div",e.__assign({className:"q-rep-title"},{children:t?"Loading…":(null==c?void 0:c.title)||"Report"})),(null==c?void 0:c.subtitle)&&s.jsx("div",e.__assign({className:"q-rep-subtitle"},{children:c.subtitle}))]}),s.jsx("button",e.__assign({className:"q-rep-close-btn",onClick:d,"aria-label":"Close report"},{children:s.jsx(a.X,{size:16})}))]})),s.jsx("div",e.__assign({className:"q-rep-panel-content"},{children:t||!c?s.jsx("div",e.__assign({style:{padding:"40px",textAlign:"center",color:"#64748b"}},{children:"Loading report…"})):s.jsxs(s.Fragment,{children:[s.jsxs("div",e.__assign({className:"q-rep-banner",style:{backgroundColor:null!==(r=null==_?void 0:_.backgroundColor)&&void 0!==r?r:"#0f172a"}},{children:[s.jsxs("div",e.__assign({className:"q-rep-banner-left"},{children:[s.jsxs("div",e.__assign({className:"q-rep-banner-top-row"},{children:[(null==_?void 0:_.icon)&&s.jsx("div",e.__assign({className:"q-rep-banner-icon"},{children:_.icon})),s.jsx("span",e.__assign({className:"q-rep-brand-name",style:null==_?void 0:_.brandNameStyle},{children:null==_?void 0:_.brandName}))]})),(null==_?void 0:_.appName)&&s.jsx("span",e.__assign({className:"q-rep-app-name",style:null==_?void 0:_.appNameStyle},{children:_.appName}))]})),s.jsxs("div",e.__assign({className:"q-rep-generated"},{children:[s.jsx("span",e.__assign({className:"q-rep-generated-label",style:null==_?void 0:_.generatedOnLabelStyle},{children:"Generated On"})),s.jsx("span",e.__assign({className:"q-rep-generated-value",style:null==_?void 0:_.generatedOnValueStyle},{children:null==_?void 0:_.generatedOn}))]}))]})),s.jsxs("div",e.__assign({className:"q-rep-summary-card"},{children:[s.jsxs("div",e.__assign({className:"q-rep-summary-header"},{children:[s.jsx("div",{className:"q-rep-summary-accent"}),s.jsxs("div",{children:[s.jsx("div",e.__assign({className:"q-rep-summary-title"},{children:c.summary.title})),s.jsx("div",e.__assign({className:"q-rep-summary-desc"},{children:c.summary.description}))]})]})),s.jsx("div",e.__assign({className:"q-rep-scope-grid"},{children:c.scope.map(function(a,i){return s.jsxs("div",e.__assign({className:"q-rep-scope-item"},{children:[s.jsx("div",e.__assign({className:"q-rep-scope-item-label"},{children:a.label})),s.jsx("div",e.__assign({className:"q-rep-scope-item-value"},{children:a.value}))]}),i)})})),s.jsx("div",e.__assign({className:"q-rep-metrics-grid"},{children:c.metrics.map(function(a,n){var r;return s.jsx(i.default,e.__assign({},a,{classNames:e.__assign(e.__assign({},a.classNames),{root:"q-rep-metric-card ".concat((null===(r=a.classNames)||void 0===r?void 0:r.root)||"")})}),n)})}))]}))]})}))]}))};
|
|
2
|
+
//# sourceMappingURL=ReportSidebar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportSidebar.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e={today:{label:"Today",value:"today",getRange:function(){var e=new Date;return{startDate:new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),endDate:e}}},yesterday:{label:"Yesterday",value:"yesterday",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",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",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",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",getRange:function(){var e=new Date;return{startDate:new Date(e.getFullYear(),e.getMonth(),1),endDate:e}}},lastMonth:{label:"Last Month",value:"lastMonth",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",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",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",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.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},{});exports.DATE_PRESETS=e,exports.DATE_PRESET_MAP=a,exports.DEFAULT_DATE_PRESETS=t;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});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},{});exports.DATE_PRESETS=e,exports.DATE_PRESET_MAP=a,exports.DEFAULT_DATE_PRESETS=t;
|
|
2
2
|
//# sourceMappingURL=datePreset.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),n=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),n=require("react"),r=require("lucide-react");exports.default=function(c){var t=c.options,a=c.value,i=c.onChange,l=c.placeholder,u=void 0===l?"Select":l,o=c.searchPlaceholder,d=void 0===o?"Search..":o,m=c.showSelectAll,v=void 0===m||m,h=c.selectAllLabel,_=void 0===h?"All":h,f=n.useState(!1),g=f[0],x=f[1],p=n.useState(""),j=p[0],N=p[1],b=n.useRef(null);n.useEffect(function(){var e=function(e){var s;(null===(s=b.current)||void 0===s?void 0:s.contains(e.target))||x(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]);var k=n.useMemo(function(){var e=j.trim().toLowerCase();return e?t.filter(function(s){return s.label.toLowerCase().includes(e)}):t},[t,j,a]),C=n.useMemo(function(){return t.map(function(e){return e.value})},[t]),w=a.length>0&&C.every(function(e){return a.includes(e)}),y=n.useMemo(function(){var e;if(0===a.length)return u;if(w)return"All";if(1===a.length){var s=t.find(function(e){return e.value===a[0]});return null!==(e=null==s?void 0:s.label)&&void 0!==e?e:"1 selected"}return"".concat(a.length," selected")},[a,w,t,u]);return s.jsxs("div",e.__assign({className:"cms-root",ref:b},{children:[s.jsxs("button",e.__assign({type:"button",className:"cms-trigger",onClick:function(){return x(function(e){return!e})}},{children:[s.jsx("span",e.__assign({className:"cms-triggerText ".concat(a.length?"cms-hasValue":"")},{children:y})),s.jsx("span",e.__assign({className:"cms-chevron"},{children:"▾"}))]})),g&&s.jsxs("div",e.__assign({className:"cms-panel"},{children:[t.length>0&&s.jsxs("div",e.__assign({className:"cms-searchRow"},{children:[s.jsx(r.Search,{size:18}),s.jsx("input",{className:"cms-searchInput",placeholder:d,value:j,onChange:function(e){return N(e.target.value)},autoFocus:!0})]})),v&&!(null==j?void 0:j.trim())&&t.length>0&&s.jsxs("div",e.__assign({className:"cms-item",onClick:function(){i(w?[]:C)}},{children:[s.jsx("span",e.__assign({className:"cms-checkbox ".concat(w?"cms-checked":"")},{children:w?"✓":""})),s.jsx("span",e.__assign({className:"cms-itemText"},{children:_}))]})),s.jsx("div",e.__assign({className:"cms-list"},{children:0===k.length?s.jsx("div",e.__assign({className:"cms-empty"},{children:"No options found"})):k.map(function(n){var r=a.includes(n.value);return s.jsxs("div",e.__assign({className:"cms-item",onClick:function(){return s=n.value,void(a.includes(s)?i(a.filter(function(e){return e!==s})):i(e.__spreadArray(e.__spreadArray([],a,!0),[s],!1)));var s}},{children:[s.jsx("span",e.__assign({className:"cms-checkbox ".concat(r?"cms-checked":"")},{children:r?"✓":""})),s.jsx("span",e.__assign({className:"cms-itemText"},{children:n.label}))]}),n.value)})}))]}))]}))};
|
|
2
2
|
//# sourceMappingURL=CustomMultiSelect.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var l=require("../../_virtual/_tslib.js"),e=require("react/jsx-runtime"),i=require("react"),o=require("lucide-react"),n=require("./DashboardDateFilter/DashboardDateFilter.js"),t=require("./MetricCard/MetricCard.js"),d=require("./FiltersSidebar/FiltersSidebar.js"),a=require("./Graph/Graph.js"),u=require("./Graph/GraphEmptyState.js"),r=require("./DashboardDateFilter/datePreset.js"),s=require("./Table/TableCard.js"),v=require("./Table/TableGrid/TableGrid.js"),c=require("../utils/tableColumns.js"),p=require("../utils/sectionOrder.js"),g=require("../utils/index.js"),h=require("../utils/kpiIcon.js");function b(l){return l&&"object"==typeof l&&"default"in l?l:{default:l}}var f=b(i),y=["#7c3aed","#FFC130","#F43F5E","#10b981","#3b82f6"];function m(b){var m,x,j,C,F,_,k,D,w,S,B,q,L,A,O,M,P,T,E,R,V,K,H,I,G,z,W,N,Z,J,Q,U,X,Y,$,ll,el,il=b.uiConfig,ol=b.data,nl=b.dataLoading,tl=b.startDate,dl=b.endDate,al=b.onDateChange,ul=b.onRefresh,rl=b.selectedKpis,sl=b.onKpiChange,vl=b.sidebarVisible,cl=b.onSidebarShow,pl=b.onSidebarHide,gl=b.filterValues,hl=b.onFilterChange,bl=b.onFilterReset,fl=b.onFilterApply,yl=b.appliedFilters,ml=b.graphEmptyState,xl=b.tables,jl=b.tableLayout,Cl=b.sectionOrder,Fl=b.hiddenSections,_l=b.tablePages,kl=b.onTableExpand,Dl=b.onTableLoadMore,wl=null!==(j=null===(x=null===(m=null==il?void 0:il.data)||void 0===m?void 0:m.dateFilters)||void 0===x?void 0:x.datepresets)&&void 0!==j?j:[],Sl=i.useMemo(function(){return wl.map(function(l){return r.DATE_PRESET_MAP[l]}).filter(Boolean)},[JSON.stringify(wl)]),Bl=i.useMemo(function(){return g.getActiveFilterCount(yl)},[yl]),ql=i.useMemo(function(){var l,e,i=null==jl?void 0:jl.spans;if(i)return(null!==(e=null===(l=null==il?void 0:il.data)||void 0===l?void 0:l.tableBuilder)&&void 0!==e?e:[]).map(function(l,e){return Array.isArray(i)?i[e]:i[l.key]})},[null==jl?void 0:jl.spans,null===(C=null==il?void 0:il.data)||void 0===C?void 0:C.tableBuilder]),Ll=e.jsx("div",l.__assign({style:{padding:"4px"}},{children:e.jsx(a.default,{loading:nl,emptyState:null!=ml?ml:e.jsx(u.default,{}),title:null===(F=null==il?void 0:il.data)||void 0===F?void 0:F.graphBuilder.title,description:null===(k=null===(_=null==il?void 0:il.data)||void 0===_?void 0:_.graphBuilder)||void 0===k?void 0:k.subtitle,icon:e.jsx(o.ChartLine,{size:18}),xAxis:{label:(null===(w=null===(D=null==il?void 0:il.data)||void 0===D?void 0:D.graphBuilder)||void 0===w?void 0:w.axis.xAxisLabel)||"Date"},style:{chartHeight:220},panes:null===(S=null==il?void 0:il.data)||void 0===S?void 0:S.graphBuilder.tiers.map(function(l,i){var n,t,d,a,u,r,s,v,c,p,g,h=rl[l.key]||(null===(n=l.plotOptions[0])||void 0===n?void 0:n.key),b=ol.graph.tier.find(function(e){return e.key===l.key}),f=(null===(t=null==b?void 0:b.plotbyoptions)||void 0===t?void 0:t[h])||{},m=(null==l?void 0:l.series)||[],x=Object.keys(f),j=l.plotOptions.find(function(l){return l.value===h});return{key:l.key,selector:{label:"Plot By",value:h,onChange:function(e){sl(l.key,e)},options:l.plotOptions.map(function(l){return{label:l.label,value:l.value}}),triggerIcon:e.jsx(o.ChartLine,{size:16,color:0===i?"green":"purple"})},yAxis:{label:null==j?void 0:j.yAxisLabel,beginAtZero:"false"!==(null==h?void 0:h.yAxisBeginAtZero)},tooltip:{formatHeading:function(l){return"".concat(l)}},legend:{position:(null===(u=null===(a=null===(d=null==il?void 0:il.data)||void 0===d?void 0:d.graphBuilder)||void 0===a?void 0:a.legend)||void 0===u?void 0:u.position)||"bottom",toggle:"yes"===(null===(v=null===(s=null===(r=null==il?void 0:il.data)||void 0===r?void 0:r.graphBuilder)||void 0===s?void 0:s.legend)||void 0===v?void 0:v.allowToggle),align:(null===(g=null===(p=null===(c=null==il?void 0:il.data)||void 0===c?void 0:c.graphBuilder)||void 0===p?void 0:p.legend)||void 0===g?void 0:g.alignment)||"center"},height:0===i?300:250,series:x.map(function(l,e){var i,o,n=(null===(o=null===(i=null==b?void 0:b.plotbyoptions)||void 0===i?void 0:i[h])||void 0===o?void 0:o[l])||[],t=y[e%y.length],d=m.find(function(e){return e.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)}}})}})})})),Al=e.jsx("div",l.__assign({style:{padding:"4px",display:"flex",gap:"10px",flexWrap:"wrap"}},{children:l.__spreadArray([],null!==(q=null===(B=null==il?void 0:il.data)||void 0===B?void 0:B.kpiCards)&&void 0!==q?q:[],!0).sort(function(l,e){var i,o;return(null!==(i=l.displayOrder)&&void 0!==i?i:0)-(null!==(o=e.displayOrder)&&void 0!==o?o:0)}).map(function(l){var i,o=null===(i=null==ol?void 0:ol.kpiCards)||void 0===i?void 0:i[l.title],n=g.isKpiValueObject(o)?g.getKpiValueColor(o.currentValue,o.baselineValue,l.indicatorLogic):void 0,d=g.isKpiValueObject(o)?g.getKpiDelta(o.currentValue,o.baselineValue,l.indicatorLogic):void 0;return e.jsx(t.default,{title:l.title,subtitle:l.subtitle,value:g.formatKpiValue(o,l.valueFormat),valueColor:n,delta:d&&{label:d.label,direction:d.direction,color:n},icon:h.getKpiIcon(l.icon),loading:nl},l.title)})})),Ol=(null!==(O=null===(A=null===(L=null==il?void 0:il.data)||void 0===L?void 0:L.tableBuilder)||void 0===A?void 0:A.length)&&void 0!==O?O:0)>0?e.jsx("div",l.__assign({style:{padding:"4px"}},{children:e.jsx(v.default,l.__assign({itemSpans:ql,totalColumns:null!==(M=null==jl?void 0:jl.totalColumns)&&void 0!==M?M:12,defaultSpan:null==jl?void 0:jl.defaultSpan,options:null!==(P=null==jl?void 0:jl.options)&&void 0!==P?P:[1,2,3],defaultColumns:null==jl?void 0:jl.defaultColumns,columns:null==jl?void 0:jl.columns,onColumnsChange:null==jl?void 0:jl.onColumnsChange,showToggle:(null===(T=null==jl?void 0:jl.showToggle)||void 0===T||T)&&(null!==(V=null===(R=null===(E=null==il?void 0:il.data)||void 0===E?void 0:E.tableBuilder)||void 0===R?void 0:R.length)&&void 0!==V?V:0)>1,toggleLabel:null==jl?void 0:jl.toggleLabel,minColumnWidth:null!==(K=null==jl?void 0:jl.minColumnWidth)&&void 0!==K?K:380,gap:null!==(H=null==jl?void 0:jl.gap)&&void 0!==H?H:12,equalHeights:null===(I=null==jl?void 0:jl.equalHeights)||void 0===I||I},{children:il.data.tableBuilder.map(function(i){var o,n,t=null!==(n=null===(o=null==ol?void 0:ol.table)||void 0===o?void 0:o[i.key])&&void 0!==n?n:[],d=null==_l?void 0:_l[i.key],a=!!(null==d?void 0:d.loaded),u=a?d.rows:t,r=!a&&i.rowLimit&&i.rowLimit>0?t.slice(0,i.rowLimit):u,v=null==xl?void 0:xl[i.key],p=c.buildColumns(i,v),g=null==v?void 0:v.card,b=null==g?void 0:g.icon,y=h.getKpiIcon(i.icon),m=y&&f.default.isValidElement(y)?f.default.cloneElement(y,l.__assign(l.__assign({},null!=(null==b?void 0:b.size)?{size:b.size}:{}),(null==b?void 0:b.color)?{color:b.color}:{})):y,x=b?l.__assign(l.__assign(l.__assign({width:"auto",height:"auto"},b.color?{color:b.color}:{}),b.background?{background:b.background,padding:6,borderRadius:8}:{}),b.style):void 0;return e.jsx(s.default,{title:i.title,icon:m,styles:{root:null==g?void 0:g.root,header:null==g?void 0:g.header,title:null==g?void 0:g.title,icon:x},onExpand:function(l){return null==kl?void 0:kl(i.key,l)},table:{rows:c.withRowIds(r),columns:p,loading:nl,loadingMore:null==d?void 0:d.loading,hasMore:null==d?void 0:d.hasMore,onLoadMore:d?function(){return null==Dl?void 0:Dl(i.key)}:void 0,tableProps:null==v?void 0:v.tableProps}},i.key)})}))})):null,Ml={graphBuilder:Ll,kpiCards:Al,tableBuilder:Ol},Pl=p.resolveSectionOrder(Cl,Fl,null===(G=null==il?void 0:il.data)||void 0===G?void 0:G.sectionOrder,Object.keys(Ml)),Tl=p.isSectionHidden(Fl,"dateFilters"),El=p.isSectionHidden(Fl,"sidebarFilters");return e.jsx(e.Fragment,{children:e.jsxs("div",l.__assign({style:{display:"flex",flexDirection:"column",gap:12}},{children:[!Tl&&e.jsx("div",l.__assign({style:{padding:"4px"}},{children:e.jsx(n.default,{filterCount:Bl,initialStartDate:tl,initialEndDate:dl,onDateChange:al,onRefresh:ul,onFilterClick:cl,presets:Sl,datePickerProps:{from:{minDate:new Date(2025,0,1),maxDate:new Date},to:{minDate:tl,maxDate:new Date}},defaultPresets:null===(z=null==il?void 0:il.data)||void 0===z?void 0:z.dateFilters.defaultPreset,showLiveButton:"yes"===(null===(N=null===(W=null==il?void 0:il.data)||void 0===W?void 0:W.dateFilters)||void 0===N?void 0:N.showLiveButton),showFilterButton:!El&&"yes"===(null===(J=null===(Z=null==il?void 0:il.data)||void 0===Z?void 0:Z.dateFilters)||void 0===J?void 0:J.showFilterButton),showFilterCount:!El&&"yes"===(null===(U=null===(Q=null==il?void 0:il.data)||void 0===Q?void 0:Q.dateFilters)||void 0===U?void 0:U.showFilterCount),liveDuration:null===(Y=null===(X=null==il?void 0:il.data)||void 0===X?void 0:X.dateFilters)||void 0===Y?void 0:Y.liveDurationMs})})),Pl.map(function(l){return e.jsx(f.default.Fragment,{children:Ml[l]},l)}),!El&&e.jsx(d.default,{visible:vl,onHide:pl,onReset:bl,onApply:fl,fields:null!==(el=null===(ll=null===($=null==il?void 0:il.data)||void 0===$?void 0:$.sidebarFilters)||void 0===ll?void 0:ll.map(function(l){var e,i,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!==(i=null===(e=l.options)||void 0===e?void 0:e.map(function(l){return{label:l,value:l}}))&&void 0!==i?i:[];return{id:t,label:l.label,hint:l.description,type:d,placeholder:l.placeholder,options:a,value:"multiSelect"===d?null!==(o=gl[t])&&void 0!==o?o:[]:null!==(n=gl[t])&&void 0!==n?n:"",onChange:function(l){return hl(t,l)}}}))&&void 0!==el?el:[]})]}))})}exports.ExecutiveDashboard=m,exports.default=m;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var l=require("../../_virtual/_tslib.js"),e=require("react/jsx-runtime"),i=require("react"),o=require("lucide-react"),n=require("./DashboardDateFilter/DashboardDateFilter.js"),t=require("./MetricCard/MetricCard.js"),d=require("./FiltersSidebar/FiltersSidebar.js"),a=require("./Graph/Graph.js"),u=require("./Graph/GraphEmptyState.js"),r=require("./DashboardDateFilter/datePreset.js"),s=require("./Table/TableCard.js"),v=require("./Table/TableGrid/TableGrid.js"),c=require("../utils/tableColumns.js"),p=require("../utils/sectionOrder.js"),g=require("../utils/index.js"),h=require("../utils/kpiIcon.js");function b(l){return l&&"object"==typeof l&&"default"in l?l:{default:l}}var f=b(i),y=["#7c3aed","#FFC130","#F43F5E","#10b981","#3b82f6"];function m(b){var m,x,C,j,k,F,w,D,_,B,S,L,q,O,P,A,E,T,M,K,R,V,H,I,G,z,W,N,Z,J,Q,U,X,Y,$,ll,el,il=b.uiConfig,ol=b.data,nl=b.dataLoading,tl=b.startDate,dl=b.endDate,al=b.onDateChange,ul=b.onRefresh,rl=b.selectedKpis,sl=b.onKpiChange,vl=b.sidebarVisible,cl=b.onSidebarShow,pl=b.onSidebarHide,gl=b.filterValues,hl=b.onFilterChange,bl=b.onFilterReset,fl=b.onFilterApply,yl=b.appliedFilters,ml=b.graphEmptyState,xl=b.tables,Cl=b.tableLayout,jl=b.sectionOrder,kl=b.hiddenSections,Fl=b.tablePages,wl=b.onTableExpand,Dl=b.onTableLoadMore,_l=b.pollingEnabled,Bl=void 0!==_l&&_l,Sl=b.selectedPreset,Ll=b.handlePresetChange,ql=b.metricCardConfig,Ol=b.kpiCtaConfig,Pl=b.tableCtaConfig,Al=null!==(C=null===(x=null===(m=null==il?void 0:il.data)||void 0===m?void 0:m.dateFilters)||void 0===x?void 0:x.datepresets)&&void 0!==C?C:[],El=i.useMemo(function(){return Al.map(function(l){return r.DATE_PRESET_MAP[l]}).filter(Boolean)},[JSON.stringify(Al)]),Tl=i.useMemo(function(){return g.getActiveFilterCount(yl)},[yl]),Ml=i.useMemo(function(){var l,e,i=null==Cl?void 0:Cl.spans;if(i)return(null!==(e=null===(l=null==il?void 0:il.data)||void 0===l?void 0:l.tableBuilder)&&void 0!==e?e:[]).map(function(l,e){return Array.isArray(i)?i[e]:i[l.key]})},[null==Cl?void 0:Cl.spans,null===(j=null==il?void 0:il.data)||void 0===j?void 0:j.tableBuilder]),Kl=e.jsx("div",l.__assign({style:{padding:"4px"}},{children:e.jsx(a.default,{loading:nl,emptyState:null!=ml?ml:e.jsx(u.default,{}),title:null===(k=null==il?void 0:il.data)||void 0===k?void 0:k.graphBuilder.title,description:null===(w=null===(F=null==il?void 0:il.data)||void 0===F?void 0:F.graphBuilder)||void 0===w?void 0:w.subtitle,icon:e.jsx(o.ChartLine,{size:18}),xAxis:{label:(null===(_=null===(D=null==il?void 0:il.data)||void 0===D?void 0:D.graphBuilder)||void 0===_?void 0:_.axis.xAxisLabel)||"Date"},style:{chartHeight:220},scrollable:Bl,panes:null===(B=null==il?void 0:il.data)||void 0===B?void 0:B.graphBuilder.tiers.map(function(l,i){var n,t,d,a,u,r,s,v,c,p,g,h,b=rl[l.key]||(null===(n=l.plotOptions[0])||void 0===n?void 0:n.key),f=ol.graph.tier.find(function(e){return e.key===l.key}),m=(null===(t=null==f?void 0:f.referenceOptions)||void 0===t?void 0:t[b])||{},x=(null===(d=null==f?void 0:f.plotbyoptions)||void 0===d?void 0:d[b])||{},C=(null==l?void 0:l.series)||[],j=Object.keys(x),k=l.plotOptions.find(function(l){return l.value===b});return{key:l.key,selector:{label:"Plot By",value:b,onChange:function(e){sl(l.key,e)},options:l.plotOptions.map(function(l){return{label:l.label,value:l.value}}),triggerIcon:e.jsx(o.ChartLine,{size:16,color:0===i?"green":"purple"})},yAxis:{label:null==k?void 0:k.yAxisLabel,beginAtZero:"false"!==(null==b?void 0:b.yAxisBeginAtZero)},tooltip:{formatHeading:function(l){return"".concat(l)}},legend:{position:(null===(r=null===(u=null===(a=null==il?void 0:il.data)||void 0===a?void 0:a.graphBuilder)||void 0===u?void 0:u.legend)||void 0===r?void 0:r.position)||"bottom",toggle:"yes"===(null===(c=null===(v=null===(s=null==il?void 0:il.data)||void 0===s?void 0:s.graphBuilder)||void 0===v?void 0:v.legend)||void 0===c?void 0:c.allowToggle),align:(null===(h=null===(g=null===(p=null==il?void 0:il.data)||void 0===p?void 0:p.graphBuilder)||void 0===g?void 0:g.legend)||void 0===h?void 0:h.alignment)||"center"},height:0===i?300:250,series:j.map(function(l,e){var i,o,n=(null===(o=null===(i=null==f?void 0:f.plotbyoptions)||void 0===i?void 0:i[b])||void 0===o?void 0:o[l])||[],t=y[e%y.length],d=C.find(function(e){return e.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:m}})})})),Rl=e.jsx("div",l.__assign({style:{padding:"4px",display:"flex",gap:"10px",flexWrap:"wrap"}},{children:l.__spreadArray([],null!==(L=null===(S=null==il?void 0:il.data)||void 0===S?void 0:S.kpiCards)&&void 0!==L?L:[],!0).sort(function(l,e){var i,o;return(null!==(i=l.displayOrder)&&void 0!==i?i:0)-(null!==(o=e.displayOrder)&&void 0!==o?o:0)}).map(function(l){var i,o,n,d=null===(i=null==ol?void 0:ol.kpiCards)||void 0===i?void 0:i[l.title],a=g.isKpiValueObject(d)?g.getKpiValueColor(d.currentValue,d.baselineValue,l.indicatorLogic):void 0,u=g.isKpiValueObject(d)?g.getKpiDelta(d.currentValue,d.baselineValue,l.indicatorLogic):void 0,r=null!==(o=l.ctaKey)&&void 0!==o?o:l.key,s=r?null==Ol?void 0:Ol[r]:void 0;return e.jsx(t.default,{title:l.title,subtitle:l.subtitle,value:g.formatKpiValue(d,l.valueFormat),valueColor:a,delta:u&&{label:u.label,direction:u.direction,color:a},icon:h.getKpiIcon(l.icon),loading:nl,showDelta:null===(n=null==ql?void 0:ql.showDelta)||void 0===n||n,cta:{ctaEnabled:Boolean(l.showActionButton),ctaText:l.actionButtonLabel,ctaOnClick:function(){return null==s?void 0:s(l)}}},l.title)})})),Vl=(null!==(P=null===(O=null===(q=null==il?void 0:il.data)||void 0===q?void 0:q.tableBuilder)||void 0===O?void 0:O.length)&&void 0!==P?P:0)>0?e.jsx("div",l.__assign({style:{padding:"4px"}},{children:e.jsx(v.default,l.__assign({itemSpans:Ml,totalColumns:null!==(A=null==Cl?void 0:Cl.totalColumns)&&void 0!==A?A:12,defaultSpan:null==Cl?void 0:Cl.defaultSpan,options:null!==(E=null==Cl?void 0:Cl.options)&&void 0!==E?E:[1,2,3],defaultColumns:null==Cl?void 0:Cl.defaultColumns,columns:null==Cl?void 0:Cl.columns,onColumnsChange:null==Cl?void 0:Cl.onColumnsChange,showToggle:(null===(T=null==Cl?void 0:Cl.showToggle)||void 0===T||T)&&(null!==(R=null===(K=null===(M=null==il?void 0:il.data)||void 0===M?void 0:M.tableBuilder)||void 0===K?void 0:K.length)&&void 0!==R?R:0)>1,toggleLabel:null==Cl?void 0:Cl.toggleLabel,minColumnWidth:null!==(V=null==Cl?void 0:Cl.minColumnWidth)&&void 0!==V?V:380,gap:null!==(H=null==Cl?void 0:Cl.gap)&&void 0!==H?H:12,equalHeights:null===(I=null==Cl?void 0:Cl.equalHeights)||void 0===I||I},{children:il.data.tableBuilder.map(function(i){var o,n,t,d=null!==(n=null===(o=null==ol?void 0:ol.table)||void 0===o?void 0:o[i.key])&&void 0!==n?n:[],a=null==Fl?void 0:Fl[i.key],u=!!(null==a?void 0:a.loaded),r=u?a.rows:d,v=!u&&i.rowLimit&&i.rowLimit>0?d.slice(0,i.rowLimit):r,p=null==xl?void 0:xl[i.key],g=c.buildColumns(i,p),b=null==p?void 0:p.card,y=null==b?void 0:b.icon,m=h.getKpiIcon(i.icon),x=m&&f.default.isValidElement(m)?f.default.cloneElement(m,l.__assign(l.__assign({},null!=(null==y?void 0:y.size)?{size:y.size}:{}),(null==y?void 0:y.color)?{color:y.color}:{})):m,C=y?l.__assign(l.__assign(l.__assign({width:"auto",height:"auto"},y.color?{color:y.color}:{}),y.background?{background:y.background,padding:6,borderRadius:8}:{}),y.style):void 0,j=null!==(t=i.ctaKey)&&void 0!==t?t:i.key,k=j?null==Pl?void 0:Pl[j]:void 0;return e.jsx(s.default,{title:i.title,icon:x,styles:{root:null==b?void 0:b.root,header:null==b?void 0:b.header,title:null==b?void 0:b.title,icon:C},cta:{ctaEnabled:Boolean(i.showActionButton),ctaText:i.actionButtonLabel,ctaOnClick:function(){return null==k?void 0:k(i)}},onExpand:function(l){return null==wl?void 0:wl(i.key,l)},table:{rows:c.withRowIds(v),columns:g,loading:nl,loadingMore:null==a?void 0:a.loading,hasMore:null==a?void 0:a.hasMore,onLoadMore:a?function(){return null==Dl?void 0:Dl(i.key)}:void 0,tableProps:null==p?void 0:p.tableProps}},i.key)})}))})):null,Hl={graphBuilder:Kl,kpiCards:Rl,tableBuilder:Vl},Il=p.resolveSectionOrder(jl,kl,null===(G=null==il?void 0:il.data)||void 0===G?void 0:G.sectionOrder,Object.keys(Hl)),Gl=p.isSectionHidden(kl,"dateFilters"),zl=p.isSectionHidden(kl,"sidebarFilters");return e.jsx(e.Fragment,{children:e.jsxs("div",l.__assign({style:{display:"flex",flexDirection:"column",gap:12,width:"100%"}},{children:[!Gl&&e.jsx("div",l.__assign({style:{padding:"4px"}},{children:e.jsx(n.default,{filterCount:Tl,initialStartDate:tl,initialEndDate:dl,onDateChange:al,onRefresh:ul,onFilterClick:cl,presets:El,datePickerProps:{from:{minDate:new Date(2025,0,1),maxDate:new Date},to:{minDate:tl,maxDate:new Date}},defaultPresets:null===(z=null==il?void 0:il.data)||void 0===z?void 0:z.dateFilters.defaultPreset,showLiveButton:"yes"===(null===(N=null===(W=null==il?void 0:il.data)||void 0===W?void 0:W.dateFilters)||void 0===N?void 0:N.showLiveButton),showFilterButton:!zl&&"yes"===(null===(J=null===(Z=null==il?void 0:il.data)||void 0===Z?void 0:Z.dateFilters)||void 0===J?void 0:J.showFilterButton),showFilterCount:!zl&&"yes"===(null===(U=null===(Q=null==il?void 0:il.data)||void 0===Q?void 0:Q.dateFilters)||void 0===U?void 0:U.showFilterCount),liveDuration:null===(Y=null===(X=null==il?void 0:il.data)||void 0===X?void 0:X.dateFilters)||void 0===Y?void 0:Y.liveDurationMs,pollingEnabled:Bl,selectedPreset:Sl,handlePresetChange:Ll})})),Il.map(function(l){return e.jsx(f.default.Fragment,{children:Hl[l]},l)}),!zl&&e.jsx(d.default,{visible:vl,onHide:pl,onReset:bl,onApply:fl,fields:null!==(el=null===(ll=null===($=null==il?void 0:il.data)||void 0===$?void 0:$.sidebarFilters)||void 0===ll?void 0:ll.map(function(l){var e,i,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!==(i=null===(e=l.options)||void 0===e?void 0:e.map(function(l){return{label:l,value:l}}))&&void 0!==i?i:[];return{id:t,label:l.label,hint:l.description,type:d,placeholder:l.placeholder,options:a,value:"multiSelect"===d?null!==(o=gl[t])&&void 0!==o?o:[]:null!==(n=gl[t])&&void 0!==n?n:"",onChange:function(l){return hl(t,l)}}}))&&void 0!==el?el:[]})]}))})}exports.ExecutiveDashboard=m,exports.default=m;
|
|
2
2
|
//# sourceMappingURL=ExecutiveDashboard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),l=require("react"),i=require("./LineChart.js"),s=require("./GraphSkeleton.js"),r=require("./PlotBySelector.js"),a=require("./types.js");function o(e){var i,s,a,o=e.config,t=void 0!==o.value,d=l.useState(null!==(i=o.defaultValue)&&void 0!==i?i:null===(a=null===(s=o.options)||void 0===s?void 0:s[0])||void 0===a?void 0:a.value),u=d[0],c=d[1],v=t?o.value:u;return n.jsx(r.default,{config:o,value:v,onChange:function(e){var n;t||c(e),null===(n=o.onChange)||void 0===n||n.call(o,e)}})}function t(l){var s,r=l.pane,a=l.xAxis,o=l.sharedStyle,t=l.isLast,d=l.hiddenKeys,u=l.toggleSeries,c=l.syncId,v=l.reference,h=l.scrollable,_=void 0!==h&&h,g=l.onPointClick,f=t?a:e.__assign(e.__assign({},a),{show:!1,label:void 0});return n.jsxs("div",e.__assign({className:"ellm-graph__pane"},{children:[r.title&&n.jsx("div",e.__assign({className:"ellm-graph__pane-title"},{children:r.title})),n.jsx(i.default,{series:r.series,hiddenKeys:d,onToggleSeries:u,xAxis:f,yAxis:r.yAxis,tooltip:r.tooltip,legend:{show:!0},syncId:c,style:e.__assign(e.__assign({},o),{chartHeight:null!==(s=r.height)&&void 0!==s?s:null==o?void 0:o.chartHeight}),reference:v,scrollable:_,onPointClick:g})]}))}exports.default=function(r){var d,u,c=r.series,v=r.panes,h=r.title,_=r.description,g=r.icon,f=r.plotBy,p=r.xAxis,x=r.yAxis,m=r.tooltip,y=r.legend,j=r.config,A=r.style,N=r.emptyState,S=r.loading,b=r.scrollable,k=void 0!==b&&b,C=r.onPointClick,q=!!(null==v?void 0:v.length),w=l.useId(),P=l.useState(function(){var e=new Set;return(null!=c?c:[]).forEach(function(n){return n.hidden&&e.add(n.key)}),(null!=v?v:[]).forEach(function(n){return n.series.forEach(function(n){return n.hidden&&e.add(n.key)})}),e}),I=P[0],E=P[1],M=function(e){return E(function(n){var l=new Set(n);return l.has(e)?l.delete(e):l.add(e),l})},H=!1!==(null==j?void 0:j.showHeader),K=l.useMemo(function(){return q?v.some(function(e){return e.series.some(function(e){var n,l;return null===(l=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.some)||void 0===l?void 0:l.call(n,function(e){return null!=(null==e?void 0:e.y)})})}):(null!=c?c:[]).some(function(e){return e.data.some(function(e){return null!=e.y})})},[q,v,c]),L=l.useMemo(function(){var n;if(!q)return A;var l=null!==(n=null==A?void 0:A.yAxisWidth)&&void 0!==n?n:v.some(function(e){var n;return null===(n=e.yAxis)||void 0===n?void 0:n.label})?64:48;return e.__assign(e.__assign({},A),{yAxisWidth:l})},[q,v,A]);l.useMemo(function(){if(!q)return[];var e=[];return v.forEach(function(n){var l;!1!==(null===(l=n.legend)||void 0===l?void 0:l.show)&&n.series.forEach(function(n,l){var i;!1!==n.showInLegend&&e.push({key:n.key,label:n.label,color:null!==(i=n.color)&&void 0!==i?i:a.colorForIndex(null==L?void 0:L.colors,l)})})}),e},[q,v,null==L?void 0:L.colors]);var B=e.__spreadArray(e.__spreadArray([],f?[f]:[],!0),q?v.flatMap(function(e){return e.selector?[e.selector]:[]}):[],!0),F=h||_||g||B.length>0;return n.jsxs("div",e.__assign({className:"ellm-graph".concat((null==A?void 0:A.className)?" ".concat(A.className):""),style:null==A?void 0:A.container},{children:[H&&F&&n.jsxs("div",e.__assign({className:"ellm-graph__header"},{children:[n.jsxs("div",e.__assign({className:"ellm-graph__heading"},{children:[g&&n.jsx("span",e.__assign({className:"ellm-graph__icon"},{children:g})),n.jsxs("div",{children:[h&&n.jsx("div",e.__assign({className:"ellm-graph__title"},{children:h})),_&&n.jsx("div",e.__assign({className:"ellm-graph__description"},{children:_}))]})]})),B.length>0&&n.jsx("div",e.__assign({className:"ellm-graph__controls"},{children:B.map(function(e,l){return n.jsx(o,{config:e},l)})}))]})),S?n.jsx(s.default,{height:null==A?void 0:A.chartHeight}):!K&&N?n.jsx("div",e.__assign({className:"ellm-graph__empty"},{children:N})):q?n.jsxs(n.Fragment,{children:[n.jsx("div",e.__assign({className:"ellm-graph__panes",style:{gap:null!==(d=null==A?void 0:A.paneGap)&&void 0!==d?d:12}},{children:v.map(function(e,l){var i;return n.jsx(t,{pane:e,xAxis:p,sharedStyle:L,isLast:l===v.length-1,hiddenKeys:I,toggleSeries:M,syncId:w,reference:e.reference,scrollable:k,onPointClick:C},null!==(i=e.key)&&void 0!==i?i:"pane-".concat(l))})})),!1]}):n.jsx(i.default,{series:null!=c?c:[],hiddenKeys:I,onToggleSeries:M,xAxis:p,yAxis:x,tooltip:m,legend:y,style:A,reference:null===(u=null==v?void 0:v[0])||void 0===u?void 0:u.reference,scrollable:k,onPointClick:C})]}))};
|
|
2
2
|
//# sourceMappingURL=Graph.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),i=require("react"),l=require("recharts"),r=require("../ui/chart.js"),o=require("./types.js"),t=require("../../utils/index.js"),a=require("./Seperator.js"),u=function(e){return"number"==typeof e&&!Number.isNaN(e)},s=function(e){switch(e){case"linear":return"linear";case"step":return"stepAfter";default:return"monotone"}};exports.default=function(d){var c,v,f,h,y,x,g,p,m,k=d.series,b=d.hiddenKeys,_=d.onToggleSeries,j=d.xAxis,C=d.yAxis,A=d.tooltip,w=d.legend,L=d.style,T=d.syncId,M=d.reference;d.scrollable;var S=d.onPointClick,F=null!==(c=null==L?void 0:L.chartHeight)&&void 0!==c?c:300,N=null!==(v=null==L?void 0:L.gridColor)&&void 0!==v?v:"#eef0f4",E=null!==(f=null==L?void 0:L.axisColor)&&void 0!==f?f:"#d7dbe3",I=null!==(h=null==L?void 0:L.axisLabelColor)&&void 0!==h?h:"#6b7280",K=null!==(y=null==L?void 0:L.tickColor)&&void 0!==y?y:"#9ca3af",P=null!==(x=null==L?void 0:L.fontFamily)&&void 0!==x?x:"Inter, system-ui, -apple-system, sans-serif",R=i.useState(null),q=R[0],W=R[1],D=i.useMemo(function(){var n,i,l;if(null===(n=null==j?void 0:j.categories)||void 0===n?void 0:n.length)return{categories:j.categories,xType:null!==(i=j.type)&&void 0!==i?i:"category"};var r=new Set,o=[];k.forEach(function(e){return e.data.forEach(function(e){r.has(e.x)||(r.add(e.x),o.push(e.x))})});var t=o.every(u),a=null!==(l=null==j?void 0:j.type)&&void 0!==l?l:t?"number":"category";return{categories:"number"===a?e.__spreadArray([],o,!0).sort(function(e,n){return Number(e)-Number(n)}):o,xType:a}},[k,null==j?void 0:j.categories,null==j?void 0:j.type]),z=D.categories,O=D.xType,B=i.useMemo(function(){var e=new Map;return k.forEach(function(n){var i=new Map;n.data.forEach(function(e){return i.set(e.x,e.y)}),e.set(n.key,i)}),z.map(function(n){var i={x:n};return k.forEach(function(l){var r,o=null===(r=e.get(l.key))||void 0===r?void 0:r.get(n);i[l.key]=null==o?null:o}),i})},[k,z]),G=i.useMemo(function(){var e={},n=k.map(function(n,i){var l,r=null!==(l=n.color)&&void 0!==l?l:o.colorForIndex(null==L?void 0:L.colors,i);return e[n.key]={label:n.label,color:r},{series:n,color:r,index:i}});return{chartConfig:e,resolved:n}},[k,null==L?void 0:L.colors]),H=G.chartConfig,V=G.resolved,X=i.useMemo(function(){var e={};return k.forEach(function(n){n.valueFormatter&&(e[n.key]=function(e,i){var l;return n.valueFormatter(e,null!==(l=null==i?void 0:i.payload)&&void 0!==l?l:{x:null==i?void 0:i.x,y:e})})}),e},[k]),Y=!1!==(null==A?void 0:A.enabled),Z=(null==A?void 0:A.seriesKeys)?new Set(A.seriesKeys):null,J=!1!==(null==w?void 0:w.show),Q="top"===(null==w?void 0:w.position)?"top":"bottom",U="start"===(null==w?void 0:w.align)?"left":"end"===(null==w?void 0:w.align)?"right":"center",$=!1!==(null==j?void 0:j.show),ee=!1!==(null==C?void 0:C.show),ne=!1!==(null==L?void 0:L.showGrid),ie=!!(null==L?void 0:L.showVerticalGrid),le=i.useMemo(function(){return Math.max.apply(Math,B.flatMap(function(e){return k.map(function(n){return Number(e[n.key])||0})}))},[B]),re=i.useMemo(function(){return Math.ceil(1.1*le)},[le]),oe=[null!=(null==C?void 0:C.min)?C.min:!1!==(null==C?void 0:C.beginAtZero)?0:"auto",null!=(null==C?void 0:C.max)?C.max:re],te=null!==(g=null==L?void 0:L.yAxisWidth)&&void 0!==g?g:(null==C?void 0:C.label)?64:48,ae={top:12,right:16,bottom:8,left:null!=(null==L?void 0:L.yAxisWidth)?0:(null==C?void 0:C.label)?16:0},ue=null!==(p=null==j?void 0:j.enableScroll)&&void 0!==p&&p,se=null!==(m=null==j?void 0:j.minTickGap)&&void 0!==m?m:2;return i.useMemo(function(){if(!ue||!q||z.length<=1)return"100%";var e=(z.length-1)*se+200;return e>q-te-ae.left-ae.right?"".concat(e,"px"):"100%"},[ue,q,z.length,se,te,ae]),n.jsx(r.ChartContainer,e.__assign({config:H,style:{height:F,fontFamily:P},ref:function(e){e&&null===q&&W(e.clientWidth)}},{children:function(){var i,o;return n.jsxs(l.ComposedChart,e.__assign({data:B,margin:ae,syncId:T},{children:[n.jsx(l.CartesianGrid,{vertical:ie,horizontal:ne,stroke:N}),n.jsx(l.XAxis,{dataKey:"x",type:"number"===O?"number":"category",hide:!$,height:(null==j?void 0:j.label)?52:void 0,tickLine:!1,axisLine:!(null==j?void 0:j.hideLine)&&{stroke:E},tickMargin:8,interval:"preserveStartEnd",tick:{fill:K,fontSize:11},tickFormatter:(null==j?void 0:j.formatTick)?function(e,n){return j.formatTick(e,n)}:void 0,label:(null==M?void 0:M.showReferenceAreaLabel)?function(i){return function(i){var l=i.viewBox;i.startTick,i.endTick;var r=l.x,o=l.y,t=l.width,u=1;if((null==M?void 0:M.showReferenceArea)&&null!=(null==M?void 0:M.referencePoint)&&z.length>1){var s=z.indexOf(M.referencePoint);-1!==s&&(u=s/(z.length-1))}var d=100*u,c=100-d;return n.jsx("foreignObject",e.__assign({x:r,y:o+24,width:t,height:40},{children:n.jsxs("div",e.__assign({className:"ellm-graph__liveLabelContainer"},{children:[(null==M?void 0:M.referenceAreaLabel)&&n.jsxs("div",e.__assign({style:{flex:d,display:"flex",alignItems:"center"}},{children:[n.jsx(a.default,{}),n.jsx("span",e.__assign({style:{padding:"0 12px",color:"#6b7280",fontSize:"12px"}},{children:null==M?void 0:M.referenceAreaLabel})),n.jsx(a.default,{})]})),c>0&&n.jsxs("div",e.__assign({style:{flex:c,display:"flex",alignItems:"center"}},{children:[n.jsx(a.default,{style:{backgroundColor:"#DC2626"}}),n.jsxs("div",e.__assign({className:"ellm-graph__liveLabel"},{children:[n.jsx(a.default,{style:{width:"8px",height:"8px",borderRadius:"100%",backgroundColor:"#DC2626",flex:"auto"},pulse:!0}),"LIVE - ",null==M?void 0:M.referenceAreaLiveLabel]})),n.jsx(a.default,{style:{backgroundColor:"#DC2626"}})]}))]}))}))}(e.__assign(e.__assign({},i),{startTick:z[0],endTick:z[z.length-1]}))}:(null==j?void 0:j.label)?{value:j.label,position:"insideBottom",offset:4,fill:I,fontSize:12,fontWeight:500}:void 0}),n.jsx(l.YAxis,{hide:!ee,domain:oe,tickLine:!1,axisLine:!1===(null==C?void 0:C.hideLine)&&{stroke:E},tickCount:null==C?void 0:C.tickCount,width:te,tick:{fill:K,fontSize:11},tickFormatter:(null==C?void 0:C.formatTick)?function(e,n){return C.formatTick(e,n)}:function(e){return"number"==typeof e?t.compactNumber(e):String(e)},label:(null==C?void 0:C.label)?{value:C.label,angle:-90,position:"insideLeft",style:{textAnchor:"middle"},fill:I,fontSize:12,fontWeight:500}:void 0}),Y&&n.jsx(r.ChartTooltip,{cursor:{stroke:E,strokeDasharray:"4 4"},content:function(i){var l,o=(null!==(l=i.payload)&&void 0!==l?l:[]).filter(function(e){var n=k.find(function(n){return n.key===e.dataKey});return!1!==(null==n?void 0:n.showInTooltip)&&!(Z&&!Z.has(String(e.dataKey)))});return(null==A?void 0:A.render)?A.render({x:i.label,points:o.map(function(e){var n;return{series:k.find(function(n){return n.key===e.dataKey}),value:null!==(n=e.value)&&void 0!==n?n:null,point:{x:i.label,y:e.value},color:e.color}})}):n.jsx(r.ChartTooltipContent,e.__assign({},i,{payload:o,hideLabel:!1===(null==A?void 0:A.showHeading),valueFormatters:X,labelFormatter:(null==A?void 0:A.formatHeading)?function(e){return A.formatHeading(e)}:void 0}))}}),J&&n.jsx(r.ChartLegend,{verticalAlign:Q,content:function(i){return n.jsx(r.ChartLegendContent,e.__assign({},i,{verticalAlign:Q,align:U,hiddenKeys:b,onItemClick:!1!==(null==w?void 0:w.toggle)&&_?_:void 0}))}}),(null==M?void 0:M.showReferenceArea)&&null!=(null==M?void 0:M.referencePoint)&&n.jsx(l.ReferenceArea,{x1:M.referencePoint,fill:null!==(i=M.referenceAreaFill)&&void 0!==i?i:"#2563EB1A"}),(null==M?void 0:M.showReferenceArea)&&null!=M.referencePoint&&n.jsx(l.ReferenceLine,{x:M.referencePoint,stroke:null!==(o=M.referenceLineStroke)&&void 0!==o?o:"#3B82F6",strokeDasharray:"4 4"}),V.map(function(i){var r,o,t,a,u=i.series,d=b.has(u.key),c="var(--color-".concat(u.key,")"),v=!0===u.dashed?"6 5":"string"==typeof u.dashed?u.dashed:void 0,f=!1!==u.showPoints&&{r:null!==(r=u.pointRadius)&&void 0!==r?r:3,fill:"#fff",stroke:c,strokeWidth:2},h={r:(null!==(o=u.pointRadius)&&void 0!==o?o:3)+2,onClick:S?function(e,n){var i,l;return function(e,n,i){if(S){var l=k.find(function(n){return n.key===e});l&&S({series:l,point:{x:null==n?void 0:n.x,y:null==n?void 0:n[e]},index:i})}}(u.key,null!==(i=null==n?void 0:n.payload)&&void 0!==i?i:n,null!==(l=null==n?void 0:n.index)&&void 0!==l?l:0)}:void 0},y={key:u.key,dataKey:u.key,name:u.key,type:s(u.curve),stroke:c,strokeWidth:null!==(t=u.strokeWidth)&&void 0!==t?t:2,strokeDasharray:v,connectNulls:!1,isAnimationActive:!1,hide:d,dot:f,activeDot:h};return u.area?n.jsx(l.Area,e.__assign({},y,{fill:c,fillOpacity:null!==(a=u.areaOpacity)&&void 0!==a?a:.12})):n.jsx(l.Line,e.__assign({},y))})]}))}()}))};
|
|
2
2
|
//# sourceMappingURL=LineChart.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),r=require("react/jsx-runtime");exports.default=function(s){var t=s.style,u=s.pulse;return r.jsx("div",{className:" ".concat(u&&"pulse"),style:e.__assign({flex:1,height:"1px",backgroundColor:"#e5e7eb"},t)})};
|
|
2
|
+
//# sourceMappingURL=Seperator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Seperator.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),a=require("react/jsx-runtime"),i=require("react"),s=require("lucide-react");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=l(i);exports.default=function(i){var l,t,n,r,d,o,_=i.title,u=i.value,m=i.subtitle,v=i.icon,x=i.loading,g=i.valuePrefix,h=i.valueColor,p=i.delta,j=i.cta,f=i.segments,N=i.onClick,b=i.classNames,y=i.showDelta,k=void 0===y||y,w=Boolean((null==j?void 0:j.ctaEnabled)&&(null==j?void 0:j.ctaText)),C=f&&f.length>0,W=C?f.reduce(function(e,a){return e+a.value},0):0;return a.jsxs("div",e.__assign({className:"metric-card ".concat(null!==(l=null==b?void 0:b.root)&&void 0!==l?l:""),onClick:N},{children:[a.jsxs("div",e.__assign({className:"metric-card__content ".concat(C?"metric-card__content--has-segments":"")},{children:[a.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%",gap:"4px"}},{children:[a.jsx("div",e.__assign({className:"metric-card__title"},{children:_})),a.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"12px",flexWrap:"wrap"}},{children:[a.jsx("div",e.__assign({className:"metric-card__value ".concat(null!==(t=null==b?void 0:b.value)&&void 0!==t?t:""),style:{color:null!=h?h:null==g?void 0:g.color}},{children:x?a.jsx("span",{className:"metric-card__value-skeleton"}):a.jsxs(a.Fragment,{children:[(null==g?void 0:g.icon)&&(c.default.isValidElement(g.icon)?c.default.cloneElement(g.icon,{size:20,strokeWidth:2.5}):g.icon),u]})})),!x&&p&&"0%"!==p.label&&k&&a.jsxs("div",e.__assign({className:"metric-card__delta",style:{color:p.color}},{children:["flat"!==p.direction&&("up"===p.direction?a.jsx(s.ArrowUp,{size:14,strokeWidth:3,"aria-hidden":!0}):a.jsx(s.ArrowDown,{size:14,strokeWidth:3,"aria-hidden":!0})),a.jsx("span",{children:p.label}),p.caption&&a.jsx("span",e.__assign({className:"metric-card__delta-caption"},{children:p.caption}))]}))]})),m&&a.jsx("div",e.__assign({className:"metric-card__subtitle ".concat(null!==(n=null==b?void 0:b.subtitle)&&void 0!==n?n:"")},{children:m}))]})),C&&a.jsxs("div",e.__assign({className:"".concat(null!==(r=null==b?void 0:b.segments)&&void 0!==r?r:""),style:{display:"flex",flexDirection:"column",flex:1,margin:0}},{children:[a.jsx("div",e.__assign({className:"metric-card__stats",style:{margin:"10px"}},{children:f.map(function(i,s){return a.jsxs("div",e.__assign({className:"metric-card__stat"},{children:[a.jsxs("div",e.__assign({className:"metric-card__stat-label"},{children:[a.jsx("span",{className:"metric-card__dot",style:{background:i.color}}),i.label]})),a.jsx("div",e.__assign({className:"metric-card__stat-value"},{children:void 0!==i.displayValue?i.displayValue:"".concat(i.value).concat(i.percentage?"%":"")})),s<f.length-1&&a.jsx("div",{className:"metric-card__divider"})]}),i.label)})})),a.jsx("div",e.__assign({className:"metric-card__progress",style:{marginTop:"4px"}},{children:f.map(function(e){return a.jsx("div",{className:"metric-card__progress-segment",style:{width:W>0?"".concat(e.value/W*100,"%"):"0%",background:e.color}},e.label)})}))]})),v&&a.jsx("div",e.__assign({className:"metric-card__icon-container ".concat(null!==(d=null==b?void 0:b.icon)&&void 0!==d?d:"")},{children:c.default.isValidElement(v)?c.default.cloneElement(v,{size:25,strokeWidth:2.5}):v}))]})),w&&a.jsx("div",e.__assign({className:"metric-card__cta-row"},{children:a.jsxs("button",e.__assign({type:"button",className:"metric-card__cta ".concat(null!==(o=null==b?void 0:b.cta)&&void 0!==o?o:""),onClick:function(e){var a;e.stopPropagation(),null===(a=null==j?void 0:j.ctaOnClick)||void 0===a||a.call(j)}},{children:[null==j?void 0:j.ctaText,a.jsx(s.ArrowRight,{size:14,strokeWidth:2,"aria-hidden":!0})]}))}))]}))};
|
|
2
2
|
//# sourceMappingURL=MetricCard.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),l=require("react/jsx-runtime"),n=require("react"),i=require("recharts"),a=require("../ui/chart.js"),t=require("../../utils/index.js"),s=require("./PieChartEmptyState.js"),r=require("./PieChartSkeleton.js"),o=require("./PieChartTooltip.js"),u=require("./types.js"),c=require("./utils.js");exports.default=function(d){var v,_,h,m,p,g,f,x,j=d.data,y=d.title,b=d.titleSuffix,N=d.description,C=d.icon,M=d.headerActions,R=d.color,S=void 0===R?u.DEFAULT_PIE_COLOR:R,q=d.shadeMode,A=void 0===q?"rank":q,P=d.center,w=d.legend,O=d.tooltip,k=d.config,F=d.style,H=d.valueFormatter,E=d.loading,L=d.emptyState,T=d.onSliceClick,D=n.useState(null),I=D[0],B=D[1],K=null!==(v=null==F?void 0:F.chartHeight)&&void 0!==v?v:260,V=null!==(_=null==F?void 0:F.fontFamily)&&void 0!==_?_:"Inter, system-ui, -apple-system, sans-serif",U="donut"===(null!==(h=null==k?void 0:k.variant)&&void 0!==h?h:"donut"),Y=!1!==(null==k?void 0:k.showHeader),z=!1!==(null==k?void 0:k.highlightOnHover),G=!1!==(null==k?void 0:k.animate),J=null!==(m=null==k?void 0:k.sortBy)&&void 0!==m?m:"desc",Q=null!==(p=null==w?void 0:w.position)&&void 0!==p?p:"right",W=!1!==(null==w?void 0:w.show),X=n.useMemo(function(){var l=(null!=j?j:[]).filter(function(e){return c.isPlottableSlice(e.value)});if("none"===J)return l;var n="asc"===J?1:-1;return e.__spreadArray([],l,!0).sort(function(e,l){return(e.value-l.value)*n})},[j,J]),Z=n.useMemo(function(){return c.resolveSliceColors(X,S,A,null==F?void 0:F.shadeRange)},[X,S,A,null==F?void 0:F.shadeRange]),$=n.useMemo(function(){return c.sumSlices(X)},[X]),ee=n.useMemo(function(){return X.map(function(e,l){return{label:e.label,value:e.value,__index:l}})},[X]),le=n.useMemo(function(){return{value:{label:"Value",color:S}}},[S]),ne=function(e){var l=X[e];return l&&c.isPlottableSlice(l.value)?{datum:l,value:l.value,color:Z[e],index:e,total:$,percent:c.percentOf(l.value,$)}:null},ie=function(e){if(T){var l=ne(e);l&&T(l)}},ae=function(e,l){return H?H(e,l):t.compactNumber(e)},te=function(e){var l;return"".concat(c.percentOf(e,$).toFixed(null!==(l=null==w?void 0:w.percentDecimals)&&void 0!==l?l:0),"%")},se=null!=I?X[I]:void 0,re=!1!==(null==P?void 0:P.followHover),oe=U&&!1!==(null==P?void 0:P.show),ue=se&&re?ae(se.value,se):null!==(g=null==P?void 0:P.value)&&void 0!==g?g:ae($),ce=se&&re?se.label:null!==(f=null==P?void 0:P.label)&&void 0!==f?f:"Total",de=X.length>0,ve=null!==(x=null==F?void 0:F.activeOffset)&&void 0!==x?x:6,_e=y||N||C||M;return l.jsxs("div",e.__assign({className:"ellm-pie-chart".concat((null==F?void 0:F.className)?" ".concat(F.className):""),style:null==F?void 0:F.container},{children:[Y&&_e&&l.jsxs("div",e.__assign({className:"ellm-pie-chart__header"},{children:[l.jsxs("div",e.__assign({className:"ellm-pie-chart__heading"},{children:[C&&l.jsx("span",e.__assign({className:"ellm-pie-chart__icon"},{children:C})),l.jsxs("div",{children:[y&&l.jsxs("div",e.__assign({className:"ellm-pie-chart__title"},{children:[y,b&&l.jsx("span",e.__assign({className:"ellm-pie-chart__title-suffix"},{children:b}))]})),N&&l.jsx("div",e.__assign({className:"ellm-pie-chart__description"},{children:N}))]})]})),M&&l.jsx("div",e.__assign({className:"ellm-pie-chart__actions"},{children:M}))]})),E?l.jsx(r.default,{height:K,rows:Math.max(X.length||6,3),legendPosition:Q}):de?l.jsxs("div",e.__assign({className:"ellm-pie-chart__body ellm-pie-chart__body--".concat(Q)},{children:[l.jsxs("div",e.__assign({className:"ellm-pie-chart__plot",style:{height:K}},{children:[l.jsx(a.ChartContainer,e.__assign({config:le,style:{height:K,fontFamily:V}},{children:function(){var n,t,s,r,u,c,d;return l.jsxs(i.PieChart,e.__assign({margin:{top:4,right:4,bottom:4,left:4}},{children:[!1!==(null==O?void 0:O.enabled)&&l.jsx(a.ChartTooltip,{content:function(e){var n,i,a,t=null===(a=null===(i=null===(n=null==e?void 0:e.payload)||void 0===n?void 0:n[0])||void 0===i?void 0:i.payload)||void 0===a?void 0:a.__index,s="number"==typeof t?ne(t):null;return s?(null==O?void 0:O.render)?l.jsx(l.Fragment,{children:O.render(s)}):l.jsx(o.default,{ctx:s,config:O,valueFormatter:H}):null}}),l.jsx(i.Pie,e.__assign({data:ee,dataKey:"value",nameKey:"label",cx:"50%",cy:"50%",innerRadius:U?null!==(n=null==F?void 0:F.innerRadius)&&void 0!==n?n:"55%":0,outerRadius:null!==(t=null==F?void 0:F.outerRadius)&&void 0!==t?t:"85%",paddingAngle:null!==(s=null==F?void 0:F.paddingAngle)&&void 0!==s?s:0,cornerRadius:null!==(r=null==F?void 0:F.cornerRadius)&&void 0!==r?r:0,startAngle:null!==(u=null==k?void 0:k.startAngle)&&void 0!==u?u:90,endAngle:(null!==(c=null==k?void 0:k.startAngle)&&void 0!==c?c:90)-360,stroke:"none",isAnimationActive:G,animationDuration:600,activeIndex:null!=I?I:void 0,activeShape:(d=ve,function(n){var a=n.outerRadius,t=void 0===a?0:a,s=e.__rest(n,["outerRadius"]);return l.jsx(i.Sector,e.__assign({},s,{outerRadius:t+d}))}),onMouseEnter:function(e,l){return B(l)},onMouseLeave:function(){return B(null)},onClick:function(e,l){return ie(l)},className:T?"ellm-pie-chart__pie--clickable":void 0},{children:ee.map(function(e,n){var a,t=z&&null!==I&&I!==n;return l.jsx(i.Cell,{className:"ellm-pie-chart__slice",fill:Z[n],fillOpacity:t?null!==(a=null==F?void 0:F.dimOpacity)&&void 0!==a?a:.45:1},"".concat(e.label,"-").concat(n))})}))]}))}()})),oe&&l.jsxs("div",e.__assign({className:"ellm-pie-chart__center","aria-hidden":!0},{children:[l.jsx("div",e.__assign({className:"ellm-pie-chart__center-value"},{children:ue})),l.jsx("div",e.__assign({className:"ellm-pie-chart__center-label"},{children:ce}))]}))]})),W&&l.jsx("div",e.__assign({className:"ellm-pie-chart__legend",style:(null==w?void 0:w.maxHeight)?{maxHeight:w.maxHeight,overflowY:"auto"}:void 0},{children:X.map(function(n,i){return l.jsxs("button",e.__assign({type:"button",className:"ellm-pie-chart__legend-row".concat(null!==I&&I!==i?" ellm-pie-chart__legend-row--off":""),onMouseEnter:function(){return B(i)},onMouseLeave:function(){return B(null)},onFocus:function(){return B(i)},onBlur:function(){return B(null)},onClick:function(){return ie(i)}},{children:[l.jsx("span",{className:"ellm-pie-chart__legend-dot",style:{background:Z[i]}}),l.jsx("span",e.__assign({className:"ellm-pie-chart__legend-label",title:n.label},{children:n.label})),!1!==(null==w?void 0:w.showValue)&&l.jsx("span",e.__assign({className:"ellm-pie-chart__legend-value"},{children:ae(n.value,n)})),!1!==(null==w?void 0:w.showPercent)&&l.jsx("span",e.__assign({className:"ellm-pie-chart__legend-percent"},{children:te(n.value)}))]}),"".concat(n.label,"-").concat(i))})}))]})):l.jsx("div",e.__assign({className:"ellm-pie-chart__empty"},{children:null!=L?L:l.jsx(s.default,{})}))]}))};
|
|
2
|
+
//# sourceMappingURL=PieChart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PieChart.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),i=require("react/jsx-runtime"),s=require("lucide-react");exports.default=function(r){var t=r.title,a=void 0===t?"No data to display":t,l=r.description,d=void 0===l?"There's no data for the selected date range and filters. Try adjusting your filters or picking a different range.":l;return i.jsxs("div",e.__assign({className:"ellm-pie-chart__empty-default"},{children:[i.jsx("span",e.__assign({className:"ellm-pie-chart__empty-icon"},{children:i.jsx(s.PieChart,{size:22})})),i.jsx("div",e.__assign({className:"ellm-pie-chart__empty-title"},{children:a})),i.jsx("div",e.__assign({className:"ellm-pie-chart__empty-desc"},{children:d}))]}))};
|
|
2
|
+
//# sourceMappingURL=PieChartEmptyState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PieChartEmptyState.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),s=require("react/jsx-runtime");exports.default=function(l){var i=l.height,a=void 0===i?260:i,t=l.rows,r=void 0===t?6:t,_=l.legendPosition,n=void 0===_?"right":_,m=Math.min(a-24,200);return s.jsxs("div",e.__assign({className:"ellm-pie-chart__skeleton ellm-pie-chart__skeleton--".concat(n),"aria-busy":"true","aria-live":"polite",style:{minHeight:a}},{children:[s.jsx("div",e.__assign({className:"ellm-pie-chart__skeleton-plot"},{children:s.jsx("span",{className:"ellm-pie-chart__skeleton-ring ellm-pie-chart__shimmer",style:{width:m,height:m}})})),s.jsx("div",e.__assign({className:"ellm-pie-chart__skeleton-legend"},{children:Array.from({length:r}).map(function(l,i){return s.jsxs("div",e.__assign({className:"ellm-pie-chart__skeleton-row"},{children:[s.jsx("span",{className:"ellm-pie-chart__skeleton-dot ellm-pie-chart__shimmer"}),s.jsx("span",{className:"ellm-pie-chart__skeleton-label ellm-pie-chart__shimmer"}),s.jsx("span",{className:"ellm-pie-chart__skeleton-value ellm-pie-chart__shimmer"})]}),i)})}))]}))};
|
|
2
|
+
//# sourceMappingURL=PieChartSkeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PieChartSkeleton.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),l=require("react/jsx-runtime");exports.default=function(a){var s,i=a.ctx,t=a.config,r=a.valueFormatter,o=i.datum,n=i.value,c=i.color,_=i.percent,d=null!==(s=null==t?void 0:t.formatValue)&&void 0!==s?s:r,u=d?d(n,o):n;return l.jsxs("div",e.__assign({className:"ellm-pie-chart__tooltip"},{children:[!1!==(null==t?void 0:t.showHeading)&&l.jsxs("div",e.__assign({className:"ellm-pie-chart__tooltip-heading"},{children:[l.jsx("span",{className:"ellm-pie-chart__tooltip-swatch",style:{background:c}}),l.jsx("span",e.__assign({className:"ellm-pie-chart__tooltip-label"},{children:(null==t?void 0:t.formatHeading)?t.formatHeading(o.label):o.label}))]})),l.jsx("div",e.__assign({className:"ellm-pie-chart__tooltip-value"},{children:u})),!1!==(null==t?void 0:t.showShare)&&l.jsxs("div",e.__assign({className:"ellm-pie-chart__tooltip-share"},{children:[_.toFixed(1),"% of total"]}))]}))};
|
|
2
|
+
//# sourceMappingURL=PieChartTooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PieChartTooltip.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),r=require("../BarChart/utils.js"),t=require("./types.js"),o=function(e){return"number"==typeof e&&Number.isFinite(e)&&e>0};exports.darken=r.darken,exports.parseColor=r.parseColor,exports.withAlpha=r.withAlpha,exports.withIntensity=r.withIntensity,exports.groupTopSlices=function(r,t){var n=t.limit,u=t.othersLabel,l=void 0===u?"Others ({count} items)":u,i=t.othersColor,s=(null!=r?r:[]).filter(function(e){return o(e.value)});if(s.length<=n)return null!=r?r:[];var a=e.__spreadArray([],s,!0).sort(function(e,r){return r.value-e.value}),p=a.slice(0,n),c=a.slice(n);return e.__spreadArray(e.__spreadArray([],p,!0),[{label:l.replace("{count}",String(c.length)),value:c.reduce(function(e,r){return e+r.value},0),color:i,meta:{grouped:c}}],!1)},exports.isPlottableSlice=o,exports.percentOf=function(e,r){return r>0?e/r*100:0},exports.resolveSliceColors=function(e,o,n,u){return void 0===o&&(o=t.DEFAULT_PIE_COLOR),void 0===n&&(n="rank"),void 0===u&&(u=[.18,1]),r.resolveBarColors(e,o,n,u)},exports.sumSlices=function(e){return e.reduce(function(e,r){return o(r.value)?e+r.value:e},0)},exports.toPieChartData=function(e,r){if(!(null==e?void 0:e.length))return[];var t=r.labelKey,o=r.valueKey,n=r.colorKey;return e.map(function(e){var r,u=e[o],l="string"==typeof u?Number(u):u;return{label:String(null!==(r=e[t])&&void 0!==r?r:""),value:"number"==typeof l&&Number.isFinite(l)?l:null,color:n?e[n]:void 0,meta:e}})};
|
|
2
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),l=require("react/jsx-runtime"),s=require("react"),t=require("lucide-react"),a=require("./FTable.js"),i=require("../FiltersSidebar/CustomTextInput.js"),n=require("./SortDropdown.js");exports.default=function(r){var c=r.title,o=r.icon,d=r.showExpandButton,u=void 0===d||d,h=r.className,v=r.styles,x=r.table,_=r.searchBar,j=r.sort,g=r.cta,p=r.onExpand,m=s.useState(!1),b=m[0],y=m[1],N=Boolean((null==g?void 0:g.ctaEnabled)&&(null==g?void 0:g.ctaText));return l.jsxs("div",e.__assign({className:"\n tc-root\n ".concat(b?"tc-root--fullscreen":"","\n ").concat(null!=h?h:"","\n "),style:null==v?void 0:v.root},{children:[l.jsxs("div",e.__assign({className:"tc-header",style:null==v?void 0:v.header},{children:[l.jsxs("div",e.__assign({className:"tc-header-left"},{children:[o&&l.jsx("div",e.__assign({className:"tc-title-icon",style:e.__assign({width:"20px",height:"20px"},null==v?void 0:v.icon)},{children:o})),l.jsx("div",e.__assign({className:"tc-title",style:null==v?void 0:v.title},{children:c}))]})),l.jsxs("div",e.__assign({className:"tc-header-right"},{children:[_&&l.jsx(i.default,{value:null==_?void 0:_.value,placeholder:null==_?void 0:_.placeholder,onChange:null==_?void 0:_.onChange,searchIcon:!0,className:"tc-search"}),j&&l.jsx(n.default,{value:j.value,orderBy:j.orderBy,options:j.options,placeholder:null==j?void 0:j.placeholder,onChange:j.onChange}),N&&l.jsxs("button",e.__assign({type:"button",className:"tc-cta",onClick:function(){var e;return null===(e=null==g?void 0:g.ctaOnClick)||void 0===e?void 0:e.call(g)}},{children:[null==g?void 0:g.ctaText,l.jsx(t.ArrowRight,{size:14,strokeWidth:2,"aria-hidden":!0})]})),u&&!N&&l.jsx("button",e.__assign({className:"tc-expand-btn",onClick:function(){var e=!b;y(e),null==p||p(e)}},{children:b?l.jsx(t.Minimize,{size:20}):l.jsx(t.Maximize,{size:20})}))]}))]})),l.jsx("div",e.__assign({className:"tc-table"},{children:l.jsx(a.default,e.__assign({},x,{emptyState:null==x?void 0:x.emptyState,scrollHeight:b?"calc(100vh - 140px)":null==x?void 0:x.scrollHeight}))}))]}))};
|
|
2
2
|
//# sourceMappingURL=TableCard.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),a=require("react"),r=require("lucide-react"),l=require("../Table/FTable.js");exports.default=function(t){var i,n=t.subtitle,c=t.search,o=t.filter,u=t.addAction,d=t.table,v=t.styles,h=t.children,p=a.useMemo(function(){if(!(null==c?void 0:c.value)||!(null==c?void 0:c.searchKey)||!d.rows)return d.rows;var e=c.value.toLowerCase(),s=Array.isArray(c.searchKey)?c.searchKey:[c.searchKey];return d.rows.filter(function(a){return s.some(function(s){var r=a[s];return r&&String(r).toLowerCase().includes(e)})})},[d.rows,null==c?void 0:c.value,null==c?void 0:c.searchKey]);return s.jsxs("div",e.__assign({className:"tp-main",style:null==v?void 0:v.root},{children:[s.jsxs("div",e.__assign({className:"tp-toolbar",style:null==v?void 0:v.toolbar},{children:[s.jsx("div",e.__assign({className:"tp-subtitle"},{children:n})),s.jsxs("div",e.__assign({className:"tp-actions"},{children:[c&&s.jsxs("div",e.__assign({className:"tp-search"},{children:[s.jsx(r.Search,{size:16,className:"tp-search-icon"}),s.jsx("input",{type:"text",placeholder:c.placeholder||"Search...",className:"tp-search-input",value:c.value,onChange:function(e){return c.onChange(e.target.value)}})]})),o&&s.jsxs("button",e.__assign({className:"tp-filter-btn",onClick:o.onClick},{children:[s.jsx(r.ListFilter,{size:16}),"Filter",(null!==(i=o.count)&&void 0!==i?i:0)>0&&s.jsx("span",e.__assign({className:"tp-filter-badge"},{children:o.count}))]})),u&&s.jsxs("button",e.__assign({className:"tp-add-btn",onClick:u.onClick},{children:[u.icon||s.jsx(r.Plus,{size:16}),u.label]}))]}))]})),s.jsx("div",e.__assign({className:"tp-table-wrapper",style:null==v?void 0:v.tableWrapper},{children:s.jsx(l.default,e.__assign({},d,{rows:p,columns:d.columns||d.extraColumns}))})),h]}))};
|
|
2
|
+
//# sourceMappingURL=TablePage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TablePage.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("../../../_virtual/_tslib.js"),e=require("react/jsx-runtime"),i=require("react"),n=require("lucide-react");exports.default=function(r){var c=r.isOpen,a=r.onClose,o=r.onConfirm,l=r.title,t=r.message,d=r.warningText,m=r.confirmText,u=void 0===m?"Confirm":m,_=r.cancelText,f=void 0===_?"Cancel":_,x=r.confirmButtonColor,v=void 0===x?"#EF4444":x,g=r.isLoading,j=void 0!==g&&g;return i.useEffect(function(){return document.body.style.overflow=c?"hidden":"unset",function(){document.body.style.overflow="unset"}},[c]),c?e.jsx("div",s.__assign({className:"q-confirm-overlay"},{children:e.jsxs("div",s.__assign({className:"q-confirm-modal"},{children:[e.jsxs("div",s.__assign({className:"q-confirm-header"},{children:[e.jsx("div",s.__assign({className:"q-confirm-title"},{children:l})),e.jsx("button",s.__assign({className:"q-confirm-close",onClick:a,disabled:j},{children:e.jsx(n.X,{size:18,strokeWidth:2})}))]})),e.jsxs("div",s.__assign({className:"q-confirm-content"},{children:[e.jsx("div",s.__assign({className:"q-confirm-message"},{children:t})),d&&e.jsxs("div",s.__assign({className:"q-confirm-warning"},{children:[e.jsx(n.Info,{size:14,strokeWidth:2}),e.jsx("span",{children:d})]}))]})),e.jsxs("div",s.__assign({className:"q-confirm-actions"},{children:[e.jsx("button",s.__assign({className:"q-confirm-cancel-btn",onClick:a,disabled:j},{children:f})),e.jsx("button",s.__assign({className:"q-confirm-submit-btn",onClick:o,style:{backgroundColor:v},disabled:j},{children:j?"Loading...":u}))]}))]}))})):null};
|
|
2
|
+
//# sourceMappingURL=ConfirmationModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmationModal.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),l=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),l=require("react/jsx-runtime"),a=require("react"),n=require("recharts"),t=require("./utils.js");function r(e){if(e&&e.__esModule)return e;var l=Object.create(null);return e&&Object.keys(e).forEach(function(a){if("default"!==a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(l,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}}),l.default=e,Object.freeze(l)}var o=r(a),i=r(n),c=o.createContext(null);function s(){var e=o.useContext(c);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}var d=o.forwardRef(function(a,n){var r=a.id,s=a.className,d=a.children,v=a.config,_=a.scrollable,h=void 0!==_&&_,m=e.__rest(a,["id","className","children","config","scrollable"]),g=o.useId(),p="chart-".concat((r||g).replace(/:/g,""));return l.jsx(c.Provider,e.__assign({value:{config:v}},{children:l.jsx("div",e.__assign({className:"".concat(h&&"chart-scroll")},{children:l.jsxs("div",e.__assign({"data-chart":p,ref:n,className:t.cn("ellm-chart ".concat(h&&"chart-inner"),s)},m,{children:[l.jsx(u,{id:p,config:v}),l.jsx(i.ResponsiveContainer,e.__assign({},h?{width:2600}:{},{children:d}))]}))}))}))});d.displayName="ChartContainer";var u=function(e){var a=e.id,n=e.config,t=Object.entries(n).filter(function(e){return e[1].color});if(!t.length)return null;var r=t.map(function(e){var l=e[0],a=e[1];return" --color-".concat(l,": ").concat(a.color,";")}).join("\n");return l.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-chart=".concat(a,"] {\n").concat(r,"\n}")}})},v=i.Tooltip,_=o.forwardRef(function(a,n){var r=a.active,i=a.payload,c=a.className,d=a.indicator,u=void 0===d?"dot":d,v=a.hideLabel,_=a.hideIndicator,h=a.label,m=a.labelFormatter,p=a.formatter,f=a.valueFormatters,y=a.color,j=a.nameKey,x=a.labelKey,b=s().config,C=o.useMemo(function(){var a,n;if(v||!(null==i?void 0:i.length))return null;var t=i[0],r="".concat(x||(null==t?void 0:t.dataKey)||(null==t?void 0:t.name)||"value"),o=g(b,t,r),c=x||"string"!=typeof h?null==o?void 0:o.label:null!==(n=null===(a=b[h])||void 0===a?void 0:a.label)&&void 0!==n?n:h;return m?l.jsx("div",e.__assign({className:"ellm-chart__tooltip-label"},{children:m(c,i)})):null==c?null:l.jsx("div",e.__assign({className:"ellm-chart__tooltip-label"},{children:c}))},[h,m,i,v,b,x]);if(!r||!(null==i?void 0:i.length))return null;var N=1===i.length&&"dot"!==u;return l.jsxs("div",e.__assign({ref:n,className:t.cn("ellm-chart__tooltip",c)},{children:[N?null:C,l.jsx("div",e.__assign({className:"ellm-chart__tooltip-items"},{children:i.map(function(a,n){var r,o,i,c,s="".concat(j||a.name||a.dataKey||"value"),d=g(b,a,s),v=y||(null===(r=a.payload)||void 0===r?void 0:r.fill)||a.color;return l.jsx("div",e.__assign({className:"ellm-chart__tooltip-item"},{children:p&&void 0!==(null==a?void 0:a.value)&&a.name?p(a.value,a.name,a,n,a.payload):l.jsxs(l.Fragment,{children:[(null==d?void 0:d.icon)?l.jsx(d.icon,{}):!_&&l.jsx("span",{className:t.cn("ellm-chart__indicator","ellm-chart__indicator--".concat(u)),style:{"--indicator-color":v}}),l.jsxs("div",e.__assign({className:t.cn("ellm-chart__tooltip-row",N&&"ellm-chart__tooltip-row--nested")},{children:[l.jsxs("div",e.__assign({className:"ellm-chart__tooltip-grid"},{children:[N?C:null,l.jsx("span",e.__assign({className:"ellm-chart__tooltip-name"},{children:null!==(o=null==d?void 0:d.label)&&void 0!==o?o:a.name}))]})),void 0!==a.value&&l.jsx("span",e.__assign({className:"ellm-chart__tooltip-value"},{children:(null==f?void 0:f[String(null!==(i=a.dataKey)&&void 0!==i?i:"")])?f[String(a.dataKey)](a.value,a):"number"==typeof a.value?a.value.toLocaleString():a.value}))]}))]})}),String(null!==(c=a.dataKey)&&void 0!==c?c:n))})}))]}))});_.displayName="ChartTooltipContent";var h=i.Legend,m=o.forwardRef(function(a,n){var r=a.className,o=a.hideIcon,i=a.payload,c=a.verticalAlign,d=void 0===c?"bottom":c,u=a.align,v=void 0===u?"center":u,_=a.nameKey,h=a.onItemClick,m=a.hiddenKeys,p=s().config;return(null==i?void 0:i.length)?l.jsx("div",e.__assign({ref:n,className:t.cn("ellm-graph__legend","top"===d?"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:i.map(function(a,n){var r,i,c="".concat(_||a.dataKey||"value"),s=g(p,a,c),d=null==m?void 0:m.has(c);return l.jsxs("label",e.__assign({className:t.cn("ellm-graph__legend-item",d&&"ellm-graph__legend-item--off"),style:{cursor:h?"pointer":"default","--checkbox-color":a.color,color:a.color}},{children:[(null==s?void 0:s.icon)&&!o?l.jsx(s.icon,{}):l.jsx("input",{type:"checkbox",className:"ellm-graph__legend-checkbox",checked:!d,onChange:h?function(){return h(c)}:void 0,disabled:!h,style:{borderColor:a.color,accentColor:a.color}}),null!==(r=null==s?void 0:s.label)&&void 0!==r?r:a.value]}),String(null!==(i=a.value)&&void 0!==i?i:n))})})):null});function g(e,l,a){if("object"==typeof l&&null!==l){var n="payload"in l&&"object"==typeof l.payload&&null!==l.payload?l.payload:void 0,t=a;return a in l&&"string"==typeof l[a]?t=l[a]:n&&a in n&&"string"==typeof n[a]&&(t=n[a]),t in e?e[t]:e[a]}}m.displayName="ChartLegendContent",exports.ChartContainer=d,exports.ChartLegend=h,exports.ChartLegendContent=m,exports.ChartTooltip=v,exports.ChartTooltipContent=_,exports.useChart=s;
|
|
2
2
|
//# sourceMappingURL=chart.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.useVisibilityPolling=function(t,i,n,u){void 0===t&&(t=!1);var r=e.useRef(null),c=function(){r.current=window.setInterval(n,i)},o=function(){null!==r.current&&(clearTimeout(r.current),r.current=null)},l=function(){"hidden"===document.visibilityState?o():"visible"===document.visibilityState&&t&&c()};e.useEffect(function(){return t&&c(),document.addEventListener("visibilitychange",l),function(){document.removeEventListener("visibilitychange",l),o()}},u)};
|
|
2
|
+
//# sourceMappingURL=useVisibilityPolling.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVisibilityPolling.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),t=function(t){function r(e,r){var i=t.call(this,e)||this;return i.name="DashboardApiError",i.status=r,i}return e.__extends(r,t),r}(Error),r=function(e){return e.replace(/\/+$/,"")};function i(r,i,a,s){var n;return e.__awaiter(this,void 0,void 0,function(){var o,c,d;return e.__generator(this,function(e){switch(e.label){case 0:return o={accept:"application/json","Content-Type":"application/json"},console.log("[TEST] OUT accessToken",a),a&&(console.log("[TEST] In accessToken",a),o.Authorization="Bearer ".concat(a)),[4,fetch(r,{method:"POST",headers:o,body:JSON.stringify(i),signal:s})];case 1:if(!(c=e.sent()).ok)throw new t("Request failed with status ".concat(c.status),c.status);return[4,c.json()];case 2:if(!(d=e.sent()).success)throw new t((null===(n=d.error)||void 0===n?void 0:n.errorMessage)||"Request failed");return[2,d.data]}})})}function a(t,a){var s=t.configId,n=t.baseUrl,o=void 0===n?"":n,c=t.accessToken,d=t.uiConfigId,u=t.applicationType;return e.__awaiter(this,void 0,void 0,function(){return e.__generator(this,function(t){return[2,i("".concat(r(o),"/records-dashboard/filters/ui"),e.__assign(e.__assign({config_id:s},d&&{ui_config_id:d}),u&&{application_type:u}),c,a)]})})}function s(t,a){var s=t.configId,n=t.baseUrl,o=void 0===n?"":n,c=t.accessToken,d=t.uiConfigId,u=t.applicationType;return e.__awaiter(this,void 0,void 0,function(){var t;return e.__generator(this,function(n){switch(n.label){case 0:return[4,i("".concat(r(o),"/records-dashboard/filters/distinct-value"),e.__assign(e.__assign({config_id:s},d&&{ui_config_id:d}),u&&{application_type:u}),c,a)];case 1:return[2,(null==(t=n.sent())?void 0:t.sidebarFilters)||{}]}})})}function n(e){void 0===e&&(e={});var t={};return Object.entries(e).forEach(function(e){var r=e[0],i=e[1];Array.isArray(i)?i.length>0&&(t[r]=i):""!==i&&null!=i&&(t[r]=[i])}),t}exports.RECODashboardApiError=t,exports.RecordFetchDashboardData=function(t,a,s){var o=t.configId,c=t.baseUrl,d=void 0===c?"":c,u=t.accessToken,_=t.uiConfigId,l=t.applicationType;return e.__awaiter(this,void 0,void 0,function(){var t;return e.__generator(this,function(c){return t=e.__assign(e.__assign({config_id:o,dateFilters:{startDate:"2000-08-01T00:00:00.000Z",endDate:"2050-08-31T23:59:59.000Z"},sidebarFilters:n(a.filters),statsFilters:a.statsFilters||{},selectedStatCards:a.selectedStatCards||[]},_&&{ui_config_id:_}),l&&{application_type:l}),[2,i("".concat(r(d),"/records-dashboard/filters/get-data"),t,u,s)]})})},exports.RecordFetchTableData=function(t,a,s){var o=t.configId,c=t.baseUrl,d=void 0===c?"":c,u=t.accessToken,_=t.uiConfigId,l=t.applicationType;return e.__awaiter(this,void 0,void 0,function(){return e.__generator(this,function(t){return[2,i("".concat(r(d),"/records-dashboard/filters/table-data"),e.__assign(e.__assign(e.__assign(e.__assign({config_id:o,dateFilters:{endDate:"2050-08-13T05:51:34.302Z",startDate:"2000-08-12T18:30:00.000Z"},sidebarFilters:n(a.filters),statsFilters:a.statsFilters||{},selectedStatCards:a.selectedStatCards||[],tableHeader:a.tableHeader,tableKey:a.tableKey,pageSize:a.pageSize},a.page?{page:a.page}:{}),a.cursor?{cursor:a.cursor}:{}),_&&{ui_config_id:_}),l&&{application_type:l}),u,s)]})})},exports.RecordFetchUIConfig=function(t,r){return e.__awaiter(this,void 0,void 0,function(){var i,n,o;return e.__generator(this,function(c){switch(c.label){case 0:return[4,Promise.all([a(t,r),s(t,r)])];case 1:return i=c.sent(),n=i[0],o=i[1],[2,{data:e.__assign(e.__assign({},n),{sidebarFilters:(n.sidebarFilters||[]).map(function(t){return e.__assign(e.__assign({},t),{options:o[t.schemaFilterName]||[]})})})}]}})})};
|
|
2
2
|
//# sourceMappingURL=RecordDashboardApi.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),a=require("react"),i=require("primereact/chart");require("../../../node_modules/chart.js/auto/auto.js");var s=require("../../../node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.js");require("../../../node_modules/chart.js/dist/chart.js").Chart.register(s.default);exports.default=function(s){var r=s.title,o=void 0===r?"Membership Tier Distribution":r,n=s.labels,l=void 0===n?[]:n,d=s.values,c=void 0===d?[]:d,u=s.colors,h=void 0===u?["#3B82F6","#6DDB36","#FBBF24"]:u,b=s.legendPosition,g=void 0===b?"right":b,p=s.cutout,_=void 0===p?"50%":p,v=s.showLegend,y=void 0===v||v,f=s.showDataLabels,m=void 0===f||f,F=s.height,j=void 0===F?300:F,x=s.chartType,C=void 0===x?"pie":x,q=s.style,S=s.titleStyle,k=s.chartContainerStyle,B=a.useMemo(function(){return{labels:l,datasets:[{data:c,backgroundColor:h,borderColor:"#FFFFFF",borderWidth:2,hoverBorderWidth:2,hoverOffset:4,datalabels:{display:m,color:"#000",font:{weight:"bold"},formatter:function(e){return e}}}]}},[l,c,h,m]),W=a.useMemo(function(){return e.__assign(e.__assign({responsive:!0,maintainAspectRatio:!1},"doughnut"===C?{cutout:_}:{}),{plugins:{datalabels:{display:m},legend:{display:y,position:g,onClick:function(){},labels:{usePointStyle:!0,pointStyle:"rectRounded",boxWidth:14,boxHeight:14,padding:20,generateLabels:function(e){var t=e.data;return t.labels.map(function(e,a){return{text:"".concat(e," (").concat(t.datasets[0].data[a],")"),fillStyle:"#FFFFFF",strokeStyle:t.datasets[0].backgroundColor[a],lineWidth:2,pointStyle:"rectRounded",hidden:!1,index:a}})}}},tooltip:{displayColors:!0,boxWidth:10,boxHeight:10,boxPadding:4,padding:8,callbacks:{label:function(e){return"".concat(e.raw)}}}}})},[C,_,m,y,g]);return t.jsxs("div",e.__assign({className:"analytics-chart",style:q},{children:[o&&t.jsx("h2",e.__assign({className:"analytics-chart__title",style:S},{children:o})),t.jsx("div",e.__assign({className:"analytics-chart__container",style:e.__assign({height:j},k)},{children:t.jsx(i.Chart,{type:C,data:B,options:W})}))]}))};
|
|
2
2
|
//# sourceMappingURL=AnalyticsChart.js.map
|