sag_components 2.0.0-beta65 → 2.0.0-beta66
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/index.d.ts +1181 -1080
- package/dist/index.esm.js +294 -333
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +294 -333
- package/dist/index.js.map +1 -1
- package/dist/types/components/AreaChart/AreaChart.d.ts +2 -2
- package/dist/types/components/AreaChart/AreaChart.stories.d.ts +80 -79
- package/dist/types/components/AreaChart/AreaChart.style.d.ts +8 -8
- package/dist/types/components/AreaChart/AreaChart.test.d.ts +1 -1
- package/dist/types/components/AttachedFile/AttachedFile.d.ts +24 -23
- package/dist/types/components/AttachedFile/AttachedFile.stories.d.ts +95 -95
- package/dist/types/components/AttachedFile/AttachedFile.style.d.ts +4 -4
- package/dist/types/components/AutocompleteField/AutocompleteField.d.ts +15 -14
- package/dist/types/components/AutocompleteField/AutocompleteField.stories.d.ts +13 -13
- package/dist/types/components/AutocompleteField/AutocompleteField.style.d.ts +5 -5
- package/dist/types/components/BannerEventBox/BannerEventBox.d.ts +39 -38
- package/dist/types/components/BannerEventBox/BannerEventBox.stories.d.ts +40 -40
- package/dist/types/components/BannerEventBox/BannerEventBox.style.d.ts +13 -13
- package/dist/types/components/BannerEventBoxList/BannerEventBoxList.d.ts +71 -70
- package/dist/types/components/BannerEventBoxList/BannerEventBoxList.stories.d.ts +28 -28
- package/dist/types/components/BannerEventBoxList/BannerEventBoxList.style.d.ts +12 -12
- package/dist/types/components/BannersDropdown/BannersDropdown.d.ts +18 -17
- package/dist/types/components/BannersDropdown/BannersDropdown.stories.d.ts +19 -19
- package/dist/types/components/BannersDropdown/BannersDropdown.style.d.ts +8 -8
- package/dist/types/components/BarChart/BarChart.d.ts +79 -70
- package/dist/types/components/BarChart/BarChart.stories.d.ts +179 -179
- package/dist/types/components/BarChart/BarChart.style.d.ts +8 -8
- package/dist/types/components/BarChartTwoRows/BarChartTwoRows.d.ts +82 -73
- package/dist/types/components/BarChartTwoRows/BarChartTwoRows.stories.d.ts +199 -199
- package/dist/types/components/BarChartTwoRows/BarChartTwoRows.style.d.ts +9 -9
- package/dist/types/components/BarChartWithAreaChart/BarChartWithAreaChart.d.ts +66 -56
- package/dist/types/components/BarChartWithAreaChart/BarChartWithAreaChart.stories.d.ts +112 -112
- package/dist/types/components/BarChartWithAreaChart/BarChartWithAreaChart.style.d.ts +9 -9
- package/dist/types/components/BarChartsByWeeks/BarChartsByWeeks.d.ts +107 -99
- package/dist/types/components/BarChartsByWeeks/BarChartsByWeeks.stories.d.ts +207 -207
- package/dist/types/components/BarChartsByWeeks/BarChartsByWeeks.style.d.ts +11 -11
- package/dist/types/components/BatteryChart/BatteryChart.d.ts +2 -2
- package/dist/types/components/BatteryChart/BatteryChart.style.d.ts +18 -18
- package/dist/types/components/Benchmark/Benchmark.d.ts +45 -44
- package/dist/types/components/Benchmark/Benchmark.stories.d.ts +167 -167
- package/dist/types/components/Benchmark/Benchmark.style.d.ts +5 -5
- package/dist/types/components/BreakdownPanel/BreakdownPanel.d.ts +2 -2
- package/dist/types/components/BreakdownPanel/BreakdownPanel.stories.d.ts +74 -73
- package/dist/types/components/BreakdownPanel/BreakdownPanel.style.d.ts +7 -7
- package/dist/types/components/BreakdownPanel/BreakdownPanel.test.d.ts +1 -1
- package/dist/types/components/BreakdownPanel/ItemSales/BannerButton.d.ts +8 -8
- package/dist/types/components/BreakdownPanel/ItemSales/BannerButton.style.d.ts +1 -1
- package/dist/types/components/BreakdownPanel/ItemSales/CategorySalesPanel.d.ts +7 -7
- package/dist/types/components/BreakdownPanel/ItemSales/CategorySalesPanel.style.d.ts +6 -6
- package/dist/types/components/BreakdownPanel/ItemSales/ItemSalesPanel.d.ts +2 -2
- package/dist/types/components/BreakdownPanel/ItemSales/ItemSalesPanel.style.d.ts +3 -3
- package/dist/types/components/BreakdownPanel/ItemSales/ItemsCounterGraphPanel.d.ts +6 -6
- package/dist/types/components/BreakdownPanel/ItemSales/ItemsCounterGraphPanel.style.d.ts +3 -3
- package/dist/types/components/BrushChart/BrushChart.d.ts +2 -2
- package/dist/types/components/BrushChart/BrushChart.stories.d.ts +8 -8
- package/dist/types/components/BrushChart/BrushChart.style.d.ts +5 -9
- package/dist/types/components/BrushChart/Charts/BarLine.d.ts +4 -4
- package/dist/types/components/BrushChart/Charts/InnerBar.d.ts +3 -3
- package/dist/types/components/BrushChart/Charts/SingleChart.d.ts +3 -5
- package/dist/types/components/BubbleChart/BubbleChart.d.ts +15 -15
- package/dist/types/components/BubbleChart/BubbleChart.stories.d.ts +93 -92
- package/dist/types/components/BubbleChart/BubbleChart.style.d.ts +13 -13
- package/dist/types/components/Button/Button.d.ts +22 -22
- package/dist/types/components/Button/Button.stories.d.ts +185 -185
- package/dist/types/components/Button/Button.style.d.ts +5 -5
- package/dist/types/components/Button/Button.test.d.ts +1 -1
- package/dist/types/components/CampaignTool/CampaignDemoReport.d.ts +33 -26
- package/dist/types/components/CampaignTool/CampaignDemoReport.stories.d.ts +46 -46
- package/dist/types/components/CampaignTool/CampaignDemoReport.style.d.ts +5 -5
- package/dist/types/components/CampaignTool/Card.d.ts +37 -31
- package/dist/types/components/CampaignTool/Card.stories.d.ts +57 -57
- package/dist/types/components/CampaignTool/Card.style.d.ts +8 -8
- package/dist/types/components/CampaignTool/FormInput.d.ts +5 -5
- package/dist/types/components/CampaignTool/FormSelect.d.ts +5 -5
- package/dist/types/components/CampaignTool/MultipleCard.d.ts +15 -14
- package/dist/types/components/CampaignTool/MultipleCard.stories.d.ts +28 -28
- package/dist/types/components/CampaignTool/MultipleCard.style.d.ts +1 -1
- package/dist/types/components/CampaignTool/PageFilterBar.d.ts +12 -11
- package/dist/types/components/CampaignTool/PageFilterBar.stories.d.ts +17 -17
- package/dist/types/components/CampaignTool/PageFilterBar.style.d.ts +2 -2
- package/dist/types/components/CampaignTool/Popup.d.ts +27 -26
- package/dist/types/components/CampaignTool/Popup.stories.d.ts +101 -101
- package/dist/types/components/CampaignTool/Popup.style.d.ts +14 -14
- package/dist/types/components/CampaignTool/PopupContent.d.ts +28 -23
- package/dist/types/components/CampaignTool/PopupContent.style.d.ts +7 -7
- package/dist/types/components/CampaignTool/PopupFieldsRules.d.ts +41 -41
- package/dist/types/components/CampaignTool/Table.d.ts +56 -51
- package/dist/types/components/CampaignTool/Table.stories.d.ts +108 -108
- package/dist/types/components/CampaignTool/Table.style.d.ts +7 -7
- package/dist/types/components/CheckBox/CheckBox.d.ts +2 -2
- package/dist/types/components/CheckBox/CheckBox.stories.d.ts +126 -126
- package/dist/types/components/CheckBox/CheckBox.style.d.ts +4 -4
- package/dist/types/components/CheckBoxButton/CheckBoxButton.d.ts +21 -21
- package/dist/types/components/CheckBoxButton/CheckBoxButton.stories.d.ts +187 -187
- package/dist/types/components/CheckBoxButton/CheckBoxButton.style.d.ts +4 -4
- package/dist/types/components/CodeEditor/CodeEditor.d.ts +5 -5
- package/dist/types/components/CollapseData/CollapseData.d.ts +34 -23
- package/dist/types/components/CollapseData/CollapseData.stories.d.ts +59 -59
- package/dist/types/components/CollapseData/CollapseData.style.d.ts +11 -11
- package/dist/types/components/CollapseHeader/CollapseHeader.d.ts +82 -67
- package/dist/types/components/CollapseHeader/CollapseHeader.stories.d.ts +101 -101
- package/dist/types/components/CollapseHeader/CollapseHeader.style.d.ts +25 -25
- package/dist/types/components/CollapseMenuItem/CollapseMenuItem.d.ts +24 -23
- package/dist/types/components/CollapseMenuItem/CollapseMenuItem.stories.d.ts +54 -54
- package/dist/types/components/CollapseMenuItem/CollapseMenuItem.style.d.ts +7 -7
- package/dist/types/components/DialogOverlay/DialogOverlay.d.ts +21 -20
- package/dist/types/components/DialogOverlay/DialogOverlay.stories.d.ts +31 -31
- package/dist/types/components/DialogOverlay/DialogOverlay.style.d.ts +6 -6
- package/dist/types/components/DoubleBarSingleLine/DoubleBarSingleLine.d.ts +2 -2
- package/dist/types/components/DoubleBarSingleLine/DoubleBarSingleLine.stories.d.ts +265 -251
- package/dist/types/components/DoubleBarSingleLine/DoubleBarSingleLine.style.d.ts +10 -10
- package/dist/types/components/DoublePanelDataRow/DoublePanelDataRow.d.ts +2 -2
- package/dist/types/components/DoublePanelDataRow/DoublePanelDataRow.stories.d.ts +72 -72
- package/dist/types/components/DoublePanelDataRow/DoublePanelDataRow.style.d.ts +9 -9
- package/dist/types/components/DownloadProgress/DownloadProgress.d.ts +39 -38
- package/dist/types/components/DownloadProgress/DownloadProgress.stories.d.ts +99 -99
- package/dist/types/components/DownloadProgress/DownloadProgress.style.d.ts +4 -4
- package/dist/types/components/DropdownMultiNew/DropdownMultiNew.d.ts +79 -72
- package/dist/types/components/DropdownMultiNew/DropdownMultiNew.style.d.ts +12 -12
- package/dist/types/components/DropdownMultiNew/DropdownNew.stories.d.ts +240 -240
- package/dist/types/components/DropdownNew/DropdownNew.d.ts +81 -74
- package/dist/types/components/DropdownNew/DropdownNew.style.d.ts +1 -1
- package/dist/types/components/DropdownSingleNew/DropdownSingleNew.d.ts +75 -68
- package/dist/types/components/DropdownSingleNew/DropdownSingleNew.style.d.ts +10 -10
- package/dist/types/components/EventDetailsCard/EventDetailsCard.d.ts +48 -47
- package/dist/types/components/EventDetailsCard/EventDetailsCard.stories.d.ts +122 -122
- package/dist/types/components/EventDetailsCard/EventDetailsCard.style.d.ts +6 -6
- package/dist/types/components/EventList/EventList.d.ts +30 -26
- package/dist/types/components/EventList/EventList.stories.d.ts +67 -67
- package/dist/types/components/EventList/EventList.style.d.ts +4 -4
- package/dist/types/components/EventListItem/EventListItem.d.ts +27 -26
- package/dist/types/components/EventListItem/EventListItem.stories.d.ts +67 -67
- package/dist/types/components/EventListItem/EventListItem.style.d.ts +4 -4
- package/dist/types/components/FilterContainer/FilterContainer.d.ts +3 -2
- package/dist/types/components/FilterContainer/FilterContainer.stories.d.ts +9 -9
- package/dist/types/components/FilterContainer/FilterContainer.style.d.ts +3 -3
- package/dist/types/components/FilterPanel/FilterPanel.d.ts +89 -62
- package/dist/types/components/FilterPanel/FilterPanel.stories.d.ts +172 -172
- package/dist/types/components/FilterPanel/FilterPanel.style.d.ts +11 -11
- package/dist/types/components/FormattedValue/FormattedValue.d.ts +45 -44
- package/dist/types/components/FormattedValue/FormattedValue.stories.d.ts +131 -131
- package/dist/types/components/FormattedValue/FormattedValue.style.d.ts +7 -7
- package/dist/types/components/Heatmap/Heatmap.d.ts +15 -10
- package/dist/types/components/Heatmap/Heatmap.stories.d.ts +59 -59
- package/dist/types/components/Heatmap/Heatmap.style.d.ts +15 -13
- package/dist/types/components/IconButton/IconButton.d.ts +48 -47
- package/dist/types/components/IconButton/IconButton.stories.d.ts +89 -89
- package/dist/types/components/IconButton/IconButton.style.d.ts +4 -4
- package/dist/types/components/Input/Input.d.ts +80 -79
- package/dist/types/components/Input/Input.stories.d.ts +278 -278
- package/dist/types/components/Input/Input.style.d.ts +7 -7
- package/dist/types/components/InputOld/InputOld.d.ts +66 -65
- package/dist/types/components/InputOld/InputOld.stories.d.ts +109 -109
- package/dist/types/components/InputOld/InputOld.style.d.ts +6 -6
- package/dist/types/components/InsightsCarousel/InsightsCarousel.d.ts +10 -10
- package/dist/types/components/InsightsCarousel/InsightsCarousel.stories.d.ts +48 -47
- package/dist/types/components/InsightsCarousel/InsightsCarousel.style.d.ts +12 -12
- package/dist/types/components/KpiFilter/KpiFilter.d.ts +58 -53
- package/dist/types/components/KpiFilter/KpiFilter.stories.d.ts +174 -174
- package/dist/types/components/KpiFilter/KpiFilter.style.d.ts +16 -16
- package/dist/types/components/LinkButton/LinkButton.d.ts +13 -13
- package/dist/types/components/LinkButton/LinkButton.stories.d.ts +110 -110
- package/dist/types/components/LinkButton/LinkButton.style.d.ts +4 -4
- package/dist/types/components/LinkButton/LinkButton.test.d.ts +1 -1
- package/dist/types/components/LinnerDataBox/LinnerDataBox.d.ts +2 -2
- package/dist/types/components/LinnerDataBox/LinnerDataBox.data.d.ts +15 -15
- package/dist/types/components/LinnerDataBox/LinnerDataBox.stories.d.ts +39 -39
- package/dist/types/components/LinnerDataBox/LinnerDataBox.style.d.ts +14 -12
- package/dist/types/components/ListBox/ListBox.d.ts +15 -15
- package/dist/types/components/ListBox/ListBox.stories.d.ts +134 -134
- package/dist/types/components/ListBox/ListBox.style.d.ts +4 -4
- package/dist/types/components/MarketShareDescription/MarketShareDescription.d.ts +31 -26
- package/dist/types/components/MarketShareDescription/MarketShareDescription.stories.d.ts +70 -70
- package/dist/types/components/MarketShareDescription/MarketShareDescription.style.d.ts +16 -16
- package/dist/types/components/Modal/Modal.d.ts +6 -6
- package/dist/types/components/Modal/Modal.style.d.ts +4 -4
- package/dist/types/components/Modal/ModalTotalBenchmark.d.ts +8 -8
- package/dist/types/components/Modal/ModalTotalCost.d.ts +7 -7
- package/dist/types/components/MonthPicker/MonthPicker.d.ts +54 -53
- package/dist/types/components/MonthPicker/MonthPicker.stories.d.ts +148 -148
- package/dist/types/components/MonthPicker/MonthPicker.style.d.ts +8 -8
- package/dist/types/components/MonthPicker/MonthPopupPicker.d.ts +9 -9
- package/dist/types/components/NoDataFoundMessage/NoDataFoundMessage.d.ts +2 -2
- package/dist/types/components/NoDataFoundMessage/NoDataFoundMessage.stories.d.ts +39 -39
- package/dist/types/components/NoDataFoundMessage/NoDataFoundMessage.style.d.ts +3 -3
- package/dist/types/components/OneColumnContainer/OneColumnContainer.d.ts +81 -80
- package/dist/types/components/OneColumnContainer/OneColumnContainer.stories.d.ts +396 -396
- package/dist/types/components/OneColumnContainer/OneColumnContainer.style.d.ts +12 -12
- package/dist/types/components/PerformanceAnalytics/PerformanceAnalytics.d.ts +86 -68
- package/dist/types/components/PerformanceAnalytics/PerformanceAnalytics.stories.d.ts +175 -175
- package/dist/types/components/PerformanceAnalytics/PerformanceAnalytics.style.d.ts +14 -14
- package/dist/types/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.d.ts +2 -2
- package/dist/types/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.stories.d.ts +43 -43
- package/dist/types/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.style.d.ts +6 -6
- package/dist/types/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.d.ts +85 -64
- package/dist/types/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.stories.d.ts +153 -153
- package/dist/types/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.style.d.ts +13 -13
- package/dist/types/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.d.ts +37 -28
- package/dist/types/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.stories.d.ts +42 -42
- package/dist/types/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.style.d.ts +10 -10
- package/dist/types/components/PieChart/PieChart.d.ts +66 -62
- package/dist/types/components/PieChart/PieChart.stories.d.ts +201 -201
- package/dist/types/components/PieChart/PieChart.style.d.ts +18 -18
- package/dist/types/components/PopupCharts/PopupCharts.d.ts +64 -53
- package/dist/types/components/PopupCharts/PopupCharts.stories.d.ts +89 -89
- package/dist/types/components/PopupCharts/PopupCharts.style.d.ts +12 -12
- package/dist/types/components/ProductsVariety/ProductsVariety.d.ts +29 -24
- package/dist/types/components/ProductsVariety/ProductsVariety.stories.d.ts +48 -48
- package/dist/types/components/ProductsVariety/ProductsVariety.style.d.ts +10 -10
- package/dist/types/components/ProgressBar/ProgressBar.d.ts +24 -23
- package/dist/types/components/ProgressBar/ProgressBar.stories.d.ts +65 -65
- package/dist/types/components/ProgressBar/ProgressBar.style.d.ts +2 -2
- package/dist/types/components/QuarterPicker/QuarterPicker.d.ts +54 -53
- package/dist/types/components/QuarterPicker/QuarterPicker.stories.d.ts +148 -148
- package/dist/types/components/QuarterPicker/QuarterPicker.style.d.ts +8 -8
- package/dist/types/components/QuarterPicker/QuarterPopupPicker.d.ts +9 -9
- package/dist/types/components/QuickFilter/QuickFilter.d.ts +17 -17
- package/dist/types/components/QuickFilter/QuickFilter.stories.d.ts +194 -194
- package/dist/types/components/QuickFilter/QuickFilter.style.d.ts +1 -1
- package/dist/types/components/QuickFilterDropdownMultiSelection/QuickFilterDropdownMultiSelection.d.ts +76 -69
- package/dist/types/components/QuickFilterDropdownMultiSelection/QuickFilterDropdownMultiSelection.style.d.ts +12 -12
- package/dist/types/components/QuickFilterDropdownSingle/QuickFilterDropdownSingle.d.ts +68 -61
- package/dist/types/components/QuickFilterDropdownSingle/QuickFilterDropdownSingle.style.d.ts +11 -11
- package/dist/types/components/QuickFilterDropdownSingle/SagIconButton/SagIconButton.d.ts +45 -44
- package/dist/types/components/QuickFilterDropdownSingle/SagIconButton/SagIconButton.stories.d.ts +129 -129
- package/dist/types/components/QuickFilterDropdownSingle/SagIconButton/SagIconButton.style.d.ts +2 -2
- package/dist/types/components/RangePicker/RangeDatePicker.d.ts +9 -9
- package/dist/types/components/RangePicker/RangePicker.d.ts +52 -51
- package/dist/types/components/RangePicker/RangePicker.stories.d.ts +148 -148
- package/dist/types/components/RangePicker/RangePicker.style.d.ts +8 -8
- package/dist/types/components/ReportTable/ReportTable.d.ts +83 -74
- package/dist/types/components/ReportTable/ReportTable.stories.d.ts +139 -139
- package/dist/types/components/ReportTable/ReportTable.style.d.ts +14 -14
- package/dist/types/components/SagButton/SagButton.d.ts +45 -44
- package/dist/types/components/SagButton/SagButton.stories.d.ts +142 -142
- package/dist/types/components/SagButton/SagButton.style.d.ts +3 -3
- package/dist/types/components/SagInput/SagInput.d.ts +36 -35
- package/dist/types/components/SagInput/SagInput.stories.d.ts +71 -71
- package/dist/types/components/SagInput/SagInput.style.d.ts +3 -3
- package/dist/types/components/SalesAndROI/SalesAndROI.d.ts +50 -44
- package/dist/types/components/SalesAndROI/SalesAndROI.stories.d.ts +139 -139
- package/dist/types/components/SalesAndROI/SalesAndROI.style.d.ts +9 -9
- package/dist/types/components/SearchInput/SearchInput.d.ts +24 -23
- package/dist/types/components/SearchInput/SearchInput.stories.d.ts +39 -39
- package/dist/types/components/SearchInput/SearchInput.style.d.ts +2 -2
- package/dist/types/components/SegmentedButton/SegmentedButton.d.ts +52 -49
- package/dist/types/components/SegmentedButton/SegmentedButton.stories.d.ts +168 -168
- package/dist/types/components/SegmentedButton/SegmentedButton.style.d.ts +6 -6
- package/dist/types/components/Select/Select.d.ts +21 -21
- package/dist/types/components/Select/Select.stories.d.ts +252 -252
- package/dist/types/components/Select/Select.style.d.ts +6 -6
- package/dist/types/components/SingleBarLineCharts/SingleBarLineCharts.d.ts +28 -28
- package/dist/types/components/SingleBarLineCharts/SingleBarLineCharts.stories.d.ts +226 -226
- package/dist/types/components/SingleBarLineCharts/SingleBarLineCharts.style.d.ts +13 -13
- package/dist/types/components/SingleBarLineCharts/SingleBarLineCharts.test.d.ts +1 -1
- package/dist/types/components/TabMenu/TabMenu.d.ts +58 -54
- package/dist/types/components/TabMenu/TabMenu.stories.d.ts +181 -181
- package/dist/types/components/TabMenu/TabMenu.style.d.ts +59 -59
- package/dist/types/components/TitleDescription/TitleDescription.d.ts +59 -56
- package/dist/types/components/TitleDescription/TitleDescription.stories.d.ts +90 -90
- package/dist/types/components/TitleDescription/TitleDescription.style.d.ts +26 -26
- package/dist/types/components/Tooltip/Tooltip.d.ts +24 -23
- package/dist/types/components/Tooltip/Tooltip.style.d.ts +3 -3
- package/dist/types/components/TopToggleList/TopToggleList.d.ts +24 -23
- package/dist/types/components/TopToggleList/TopToggleList.stories.d.ts +25 -25
- package/dist/types/components/TopToggleList/TopToggleList.style.d.ts +5 -5
- package/dist/types/components/TotalBenchmark/TotalBenchmark.d.ts +40 -34
- package/dist/types/components/TotalBenchmark/TotalBenchmark.stories.d.ts +101 -101
- package/dist/types/components/TotalBenchmark/TotalBenchmark.style.d.ts +9 -9
- package/dist/types/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.d.ts +86 -81
- package/dist/types/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.stories.d.ts +240 -240
- package/dist/types/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.style.d.ts +20 -20
- package/dist/types/components/TotalBenchmarkArrows/TotalBenchmarkArrows.d.ts +51 -47
- package/dist/types/components/TotalBenchmarkArrows/TotalBenchmarkArrows.stories.d.ts +145 -145
- package/dist/types/components/TotalBenchmarkArrows/TotalBenchmarkArrows.style.d.ts +14 -14
- package/dist/types/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.d.ts +56 -51
- package/dist/types/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.stories.d.ts +155 -155
- package/dist/types/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.style.d.ts +10 -10
- package/dist/types/components/TotalDoughnutChart/TotalDoughnutChart.d.ts +82 -77
- package/dist/types/components/TotalDoughnutChart/TotalDoughnutChart.stories.d.ts +241 -241
- package/dist/types/components/TotalDoughnutChart/TotalDoughnutChart.style.d.ts +19 -19
- package/dist/types/components/TotalHorizontalCharts/TotalHorizontalCharts.d.ts +76 -71
- package/dist/types/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.d.ts +214 -214
- package/dist/types/components/TotalHorizontalCharts/TotalHorizontalCharts.style.d.ts +6 -6
- package/dist/types/components/TspanTooltip/TspanTooltip.d.ts +24 -23
- package/dist/types/components/TspanTooltip/TspanTooltip.style.d.ts +3 -3
- package/dist/types/components/TwoBarCharts/TwoBarCharts.d.ts +74 -65
- package/dist/types/components/TwoBarCharts/TwoBarCharts.stories.d.ts +156 -156
- package/dist/types/components/TwoBarCharts/TwoBarCharts.style.d.ts +8 -8
- package/dist/types/icons/ArrowDownIcon.d.ts +6 -6
- package/dist/types/icons/ArrowDropDownIcon.d.ts +6 -6
- package/dist/types/icons/ArrowSelectIcon.d.ts +6 -6
- package/dist/types/icons/ArrowUpIcon.d.ts +6 -6
- package/dist/types/icons/AttachedIcon.d.ts +6 -6
- package/dist/types/icons/BellIcon.d.ts +6 -6
- package/dist/types/icons/ButtonArrowRight.d.ts +5 -5
- package/dist/types/icons/Calendar.d.ts +2 -2
- package/dist/types/icons/CalendarIcon.d.ts +6 -6
- package/dist/types/icons/CalendarInOpen.d.ts +2 -2
- package/dist/types/icons/CheckBoxButtonCheckedIcon.d.ts +7 -7
- package/dist/types/icons/CheckBoxCheckedIcon.d.ts +7 -7
- package/dist/types/icons/CheckBoxNotCheckedIcon.d.ts +7 -7
- package/dist/types/icons/ChervronLeftIcon.d.ts +6 -6
- package/dist/types/icons/ChervronRightIcon.d.ts +6 -6
- package/dist/types/icons/ChevronLeftIcon.d.ts +4 -4
- package/dist/types/icons/ChevronRightIcon.d.ts +4 -4
- package/dist/types/icons/ClockIcon.d.ts +6 -6
- package/dist/types/icons/CloseIcon.d.ts +6 -6
- package/dist/types/icons/CloseXIcon.d.ts +6 -6
- package/dist/types/icons/ComboBoxArrowDownIcon.d.ts +7 -7
- package/dist/types/icons/ComboBoxArrowUpIcon.d.ts +7 -7
- package/dist/types/icons/DocumentIcon.d.ts +6 -6
- package/dist/types/icons/DownArrowIcon.d.ts +5 -5
- package/dist/types/icons/DownloadIcon.d.ts +6 -6
- package/dist/types/icons/Duplicate.d.ts +7 -7
- package/dist/types/icons/ErrorIcon.d.ts +6 -6
- package/dist/types/icons/ExitIcon.d.ts +7 -7
- package/dist/types/icons/ExportIcon.d.ts +6 -6
- package/dist/types/icons/EyeIcon.d.ts +7 -7
- package/dist/types/icons/FileIcon.d.ts +6 -6
- package/dist/types/icons/FilterIcon.d.ts +6 -6
- package/dist/types/icons/FlyIcon.d.ts +6 -6
- package/dist/types/icons/FoodLionChartIcon.d.ts +2 -2
- package/dist/types/icons/FoodLionIcon.d.ts +6 -6
- package/dist/types/icons/FoodLionNewIcon.d.ts +5 -5
- package/dist/types/icons/GiantFoodChartIcon.d.ts +2 -2
- package/dist/types/icons/GiantFoodIcon.d.ts +7 -7
- package/dist/types/icons/GiantFoodIcon_new.d.ts +7 -7
- package/dist/types/icons/HannafordChartIcon.d.ts +2 -2
- package/dist/types/icons/HannafordIcon.d.ts +6 -6
- package/dist/types/icons/HannafordIcon_new.d.ts +7 -7
- package/dist/types/icons/HannafordNewIcon.d.ts +5 -5
- package/dist/types/icons/InfoIcon.d.ts +7 -7
- package/dist/types/icons/LampIcon.d.ts +6 -6
- package/dist/types/icons/LegendLineIcon.d.ts +6 -6
- package/dist/types/icons/LegendUnionIcon.d.ts +6 -6
- package/dist/types/icons/MaintenanceIcon.d.ts +7 -7
- package/dist/types/icons/MenuItemClosedIcon.d.ts +7 -7
- package/dist/types/icons/MenuItemOpenIcon.d.ts +6 -6
- package/dist/types/icons/MenuItemRightIcon.d.ts +7 -7
- package/dist/types/icons/MenuItemUpIcon.d.ts +6 -6
- package/dist/types/icons/NoDataFoundIcon.d.ts +12 -11
- package/dist/types/icons/OptionsIcon.d.ts +6 -6
- package/dist/types/icons/ReselectIcon.d.ts +6 -6
- package/dist/types/icons/SearchIcon.d.ts +6 -6
- package/dist/types/icons/ShoppingCartIcon.d.ts +6 -6
- package/dist/types/icons/ShoutIcon.d.ts +6 -6
- package/dist/types/icons/Sort.d.ts +1 -1
- package/dist/types/icons/SortIcon.d.ts +7 -7
- package/dist/types/icons/SpotlightProductIcon.d.ts +7 -7
- package/dist/types/icons/StopAndShopChartIcon.d.ts +2 -2
- package/dist/types/icons/StopAndShopIcon.d.ts +7 -7
- package/dist/types/icons/StopAndShopNewIcon.d.ts +6 -6
- package/dist/types/icons/SucceededIcon.d.ts +6 -6
- package/dist/types/icons/TheGiantCompanyChartIcon.d.ts +2 -2
- package/dist/types/icons/TheGiantCompanyIcon.d.ts +5 -5
- package/dist/types/icons/TheGiantCompanyNewIcon.d.ts +6 -6
- package/dist/types/icons/UpArrowIcon.d.ts +5 -5
- package/dist/types/index.d.ts +32 -32
- package/dist/types/utils/CommonFunctions.d.ts +6 -6
- package/dist/types/utils/ComponentFactory.d.ts +4 -4
- package/dist/types/utils/IconsHandler.d.ts +1 -1
- package/dist/types/utils/IconsHandler.style.d.ts +1 -1
- package/dist/types/utils/regex/Email.regex.d.ts +1 -1
- package/dist/types/utils/regex/LatinWithSpaces.regex.d.ts +1 -1
- package/dist/types/utils/regex/Phone.regex.d.ts +1 -1
- package/package.json +3 -6
package/dist/index.esm.js
CHANGED
|
@@ -1933,7 +1933,7 @@ const TitleAndValueContainer$4 = styled.div`
|
|
|
1933
1933
|
flex-direction: column;
|
|
1934
1934
|
padding: 0 20px;
|
|
1935
1935
|
`;
|
|
1936
|
-
const Title$
|
|
1936
|
+
const Title$e = styled.h4`
|
|
1937
1937
|
font-weight: 400;
|
|
1938
1938
|
font-size: 18px;
|
|
1939
1939
|
margin: 0 0 8px;
|
|
@@ -2068,7 +2068,7 @@ const AvarageDelimiter = styled.div`
|
|
|
2068
2068
|
`;
|
|
2069
2069
|
|
|
2070
2070
|
/* Custom properties */
|
|
2071
|
-
const TooltipContainer$
|
|
2071
|
+
const TooltipContainer$3 = styled.div`
|
|
2072
2072
|
--tooltip-text-color: black;
|
|
2073
2073
|
--tooltip-background-color: white;
|
|
2074
2074
|
--tooltip-margin: 40px;
|
|
@@ -2182,7 +2182,7 @@ const Tooltip$1 = props => {
|
|
|
2182
2182
|
clearInterval(timeout);
|
|
2183
2183
|
setActive(false);
|
|
2184
2184
|
};
|
|
2185
|
-
return /*#__PURE__*/React$1.createElement(TooltipContainer$
|
|
2185
|
+
return /*#__PURE__*/React$1.createElement(TooltipContainer$3, null, /*#__PURE__*/React$1.createElement(TooltipWrapper$2, {
|
|
2186
2186
|
onMouseEnter: showTip,
|
|
2187
2187
|
onMouseLeave: hideTip
|
|
2188
2188
|
}, children, active && /*#__PURE__*/React$1.createElement(TooltipTip$1, {
|
|
@@ -2413,7 +2413,7 @@ const PieChart = props => {
|
|
|
2413
2413
|
width: width
|
|
2414
2414
|
}, !hideTitleAndValue && /*#__PURE__*/React$1.createElement(TitleAndValueContainer$4, {
|
|
2415
2415
|
className: "TitleAndValueContainer"
|
|
2416
|
-
}, /*#__PURE__*/React$1.createElement(Title$
|
|
2416
|
+
}, /*#__PURE__*/React$1.createElement(Title$e, {
|
|
2417
2417
|
className: "Title"
|
|
2418
2418
|
}, title), /*#__PURE__*/React$1.createElement(CurrencySignAndFormattedValueContainer$2, {
|
|
2419
2419
|
className: "CurrencySignAndFormattedValueContainer"
|
|
@@ -11139,7 +11139,7 @@ const TooltipTextContainer = styled.div`
|
|
|
11139
11139
|
cursor: pointer;
|
|
11140
11140
|
}
|
|
11141
11141
|
`;
|
|
11142
|
-
const TooltipText$
|
|
11142
|
+
const TooltipText$1 = styled.div`
|
|
11143
11143
|
margin: 0;
|
|
11144
11144
|
`;
|
|
11145
11145
|
|
|
@@ -11309,8 +11309,8 @@ const FilterPanel = props => {
|
|
|
11309
11309
|
fieldsData: newFieldsDataState
|
|
11310
11310
|
});
|
|
11311
11311
|
};
|
|
11312
|
-
const getTooltipTextDates = () => /*#__PURE__*/React$1.createElement(TooltipTextContainer, null, /*#__PURE__*/React$1.createElement(TooltipText$
|
|
11313
|
-
const getTooltipTextGoButton = () => /*#__PURE__*/React$1.createElement(TooltipTextContainer, null, /*#__PURE__*/React$1.createElement(TooltipText$
|
|
11312
|
+
const getTooltipTextDates = () => /*#__PURE__*/React$1.createElement(TooltipTextContainer, null, /*#__PURE__*/React$1.createElement(TooltipText$1, null, "Dates can be selected"), /*#__PURE__*/React$1.createElement(TooltipText$1, null, "only after selecting"), /*#__PURE__*/React$1.createElement(TooltipText$1, null, "period types"));
|
|
11313
|
+
const getTooltipTextGoButton = () => /*#__PURE__*/React$1.createElement(TooltipTextContainer, null, /*#__PURE__*/React$1.createElement(TooltipText$1, null, tooltipTextGoButton));
|
|
11314
11314
|
const getYearsArray = () => {
|
|
11315
11315
|
const currentYear = moment().year();
|
|
11316
11316
|
const previousYear = moment().subtract(1, 'years').year();
|
|
@@ -25387,7 +25387,7 @@ const TitleAndValueContainer$3 = styled.div`
|
|
|
25387
25387
|
display: flex;
|
|
25388
25388
|
flex-direction: column;
|
|
25389
25389
|
`;
|
|
25390
|
-
const Title$
|
|
25390
|
+
const Title$d = styled.h4`
|
|
25391
25391
|
font-weight: 400;
|
|
25392
25392
|
font-size: 20px;
|
|
25393
25393
|
margin: 0;
|
|
@@ -25450,7 +25450,7 @@ const FormattedValue$3 = props => {
|
|
|
25450
25450
|
width: width
|
|
25451
25451
|
}, /*#__PURE__*/React$1.createElement(TitleAndValueContainer$3, {
|
|
25452
25452
|
className: "TitleAndValueContainer"
|
|
25453
|
-
}, title ? /*#__PURE__*/React$1.createElement(Title$
|
|
25453
|
+
}, title ? /*#__PURE__*/React$1.createElement(Title$d, {
|
|
25454
25454
|
className: "Title",
|
|
25455
25455
|
width: width
|
|
25456
25456
|
}, title) : '', showTopValue && /*#__PURE__*/React$1.createElement(CurrencySignAndFormattedValueContainer$1, {
|
|
@@ -25462,7 +25462,7 @@ const FormattedValue$3 = props => {
|
|
|
25462
25462
|
className: "CurrencySignOrPercent"
|
|
25463
25463
|
}, currencySign ? getCurrencySign(currencyType, value) : ''), dotCut ? getFormattedValue(value && Math.abs(value) > 0 && value % 1 !== 0 ? value?.toFixed(2) : value) : getNumberWithCommas(value), dotCut ? getFormattedUnits(value) : '', /*#__PURE__*/React$1.createElement(CurrencySignOrPercent, {
|
|
25464
25464
|
className: "CurrencySignOrPercent"
|
|
25465
|
-
}, isPercent ? '%' : ''))), subtitle ? /*#__PURE__*/React$1.createElement(Title$
|
|
25465
|
+
}, isPercent ? '%' : ''))), subtitle ? /*#__PURE__*/React$1.createElement(Title$d, {
|
|
25466
25466
|
className: "Title",
|
|
25467
25467
|
width: width
|
|
25468
25468
|
}, subtitle) : '')));
|
|
@@ -25524,7 +25524,7 @@ const TooltipLabel$3 = styled.div`
|
|
|
25524
25524
|
font-weight: 400;
|
|
25525
25525
|
width: fit-content;
|
|
25526
25526
|
`;
|
|
25527
|
-
const TooltipTitle$
|
|
25527
|
+
const TooltipTitle$3 = styled.div`
|
|
25528
25528
|
color: #212121;
|
|
25529
25529
|
font-size: 14px;
|
|
25530
25530
|
font-weight: 600;
|
|
@@ -25532,7 +25532,7 @@ const TooltipTitle$4 = styled.div`
|
|
|
25532
25532
|
const TitleAndValueContainer$2 = styled.div`
|
|
25533
25533
|
padding: 0 1rem;
|
|
25534
25534
|
`;
|
|
25535
|
-
const Title$
|
|
25535
|
+
const Title$c = styled.h5`
|
|
25536
25536
|
font-weight: 500;
|
|
25537
25537
|
font-size: 18px;
|
|
25538
25538
|
line-height: 20px;
|
|
@@ -25661,7 +25661,7 @@ const TitleAndIconContainer = styled.div`
|
|
|
25661
25661
|
display: flex;
|
|
25662
25662
|
align-items: center;
|
|
25663
25663
|
`;
|
|
25664
|
-
const Title$
|
|
25664
|
+
const Title$b = styled.h4`
|
|
25665
25665
|
font-weight: 400;
|
|
25666
25666
|
font-size: 14px;
|
|
25667
25667
|
line-height: 27px;
|
|
@@ -25715,7 +25715,7 @@ const PerformanceAnalyticsLegend = props => {
|
|
|
25715
25715
|
color: item.iconColor
|
|
25716
25716
|
}) : item.iconType === ICON_TYPE_LEGEND_LINE_ICON$2 ? /*#__PURE__*/React$1.createElement(LegendLineIcon, {
|
|
25717
25717
|
color: item.iconColor
|
|
25718
|
-
}) : '', /*#__PURE__*/React$1.createElement(Title$
|
|
25718
|
+
}) : '', /*#__PURE__*/React$1.createElement(Title$b, {
|
|
25719
25719
|
id: "Title",
|
|
25720
25720
|
width: width
|
|
25721
25721
|
}, item.title))))) : '');
|
|
@@ -25813,7 +25813,7 @@ const BarChartsByWeeks = props => {
|
|
|
25813
25813
|
let currentTooltipSecondValue = 0;
|
|
25814
25814
|
if (payload[0].payload?.value) currentTooltipValue = payload[0].payload?.value;
|
|
25815
25815
|
if (payload[0].payload?.secondValue) currentTooltipSecondValue = payload[0].payload?.secondValue;
|
|
25816
|
-
return /*#__PURE__*/React$1.createElement(TooltipDiv$3, null, /*#__PURE__*/React$1.createElement(TooltipTitle$
|
|
25816
|
+
return /*#__PURE__*/React$1.createElement(TooltipDiv$3, null, /*#__PURE__*/React$1.createElement(TooltipTitle$3, null, `${isTitleOriganal ? '' : 'Week: '}${week}`), /*#__PURE__*/React$1.createElement(TooltipLabel$3, null, `${tooltipTitle}
|
|
25817
25817
|
${displayFormattedValue(currentTooltipValue)}
|
|
25818
25818
|
`), currentTooltipSecondValue ? /*#__PURE__*/React$1.createElement(TooltipLabel$3, null, `${tooltipSecondTitle}
|
|
25819
25819
|
${displayFormattedValue(currentTooltipSecondValue)}
|
|
@@ -25870,7 +25870,7 @@ const BarChartsByWeeks = props => {
|
|
|
25870
25870
|
ref: controlsContainerRef
|
|
25871
25871
|
}, /*#__PURE__*/React$1.createElement(Controls$6, {
|
|
25872
25872
|
height: getControlsHeight()
|
|
25873
|
-
}, showTitle && /*#__PURE__*/React$1.createElement(TitleAndValueContainer$2, null, /*#__PURE__*/React$1.createElement(Title$
|
|
25873
|
+
}, showTitle && /*#__PURE__*/React$1.createElement(TitleAndValueContainer$2, null, /*#__PURE__*/React$1.createElement(Title$c, null, title), /*#__PURE__*/React$1.createElement(FormattedValue$3, {
|
|
25874
25874
|
title: headerValueTopTitle,
|
|
25875
25875
|
subtitle: headerValueBottomTitle,
|
|
25876
25876
|
showTopValue: showHeaderTopValue,
|
|
@@ -26103,7 +26103,7 @@ const TitleAndValueContainer$1 = styled.div`
|
|
|
26103
26103
|
flex-direction: column;
|
|
26104
26104
|
padding: 0 1.25em; /* 20px → 1.25em */
|
|
26105
26105
|
`;
|
|
26106
|
-
const Title$
|
|
26106
|
+
const Title$a = styled.h4`
|
|
26107
26107
|
font-weight: 500;
|
|
26108
26108
|
font-size: ${props => props.titleFontSize || '1.125em'}; /* Default: 18px → 1.125em */
|
|
26109
26109
|
margin: 0;
|
|
@@ -26306,7 +26306,7 @@ const TotalDoughnutChart = props => {
|
|
|
26306
26306
|
width: width
|
|
26307
26307
|
}, !hideTitleAndValue && /*#__PURE__*/React$1.createElement(TitleAndValueContainer$1, {
|
|
26308
26308
|
className: "TitleAndValueContainer"
|
|
26309
|
-
}, /*#__PURE__*/React$1.createElement(Title$
|
|
26309
|
+
}, /*#__PURE__*/React$1.createElement(Title$a, {
|
|
26310
26310
|
className: "Title",
|
|
26311
26311
|
fontSize: titleFontSize
|
|
26312
26312
|
}, title), /*#__PURE__*/React$1.createElement(CurrencySignAndFormattedValueContainer, {
|
|
@@ -26436,7 +26436,7 @@ CustomTooltip.defaultProps = {
|
|
|
26436
26436
|
isPercent: false
|
|
26437
26437
|
};
|
|
26438
26438
|
|
|
26439
|
-
const TooltipContainer$
|
|
26439
|
+
const TooltipContainer$2 = styled.div`
|
|
26440
26440
|
--tooltip-text-color: black;
|
|
26441
26441
|
--tooltip-background-color: white;
|
|
26442
26442
|
--tooltip-margin: 40px;
|
|
@@ -26542,7 +26542,7 @@ const Tooltip = props => {
|
|
|
26542
26542
|
direction,
|
|
26543
26543
|
content
|
|
26544
26544
|
} = props;
|
|
26545
|
-
return /*#__PURE__*/React$1.createElement(TooltipContainer$
|
|
26545
|
+
return /*#__PURE__*/React$1.createElement(TooltipContainer$2, {
|
|
26546
26546
|
className: className,
|
|
26547
26547
|
top: `${top}px`,
|
|
26548
26548
|
left: `${left}px`
|
|
@@ -26628,7 +26628,7 @@ const TotalValue = styled.div`
|
|
|
26628
26628
|
font-size: 20px;
|
|
26629
26629
|
}
|
|
26630
26630
|
`;
|
|
26631
|
-
const Title$
|
|
26631
|
+
const Title$9 = styled.h4`
|
|
26632
26632
|
font-size: 18px;
|
|
26633
26633
|
font-weight: 400;
|
|
26634
26634
|
line-height: 1;
|
|
@@ -26785,7 +26785,7 @@ const TotalHorizontalCharts = props => {
|
|
|
26785
26785
|
}, chartsData?.length > 0 ? /*#__PURE__*/React$1.createElement(React$1.Fragment, null, !hideTitle || !hideTotalValue ? /*#__PURE__*/React$1.createElement(CardHeader, {
|
|
26786
26786
|
ref: topHeader,
|
|
26787
26787
|
className: "CardHeader"
|
|
26788
|
-
}, !hideTitle ? /*#__PURE__*/React$1.createElement(Title$
|
|
26788
|
+
}, !hideTitle ? /*#__PURE__*/React$1.createElement(Title$9, null, title) : '', !hideTotalValue ? /*#__PURE__*/React$1.createElement(TotalValue, {
|
|
26789
26789
|
className: "TotalValue"
|
|
26790
26790
|
}, currencySign && /*#__PURE__*/React$1.createElement(CurrencySign, {
|
|
26791
26791
|
className: "CurrencySign"
|
|
@@ -27258,7 +27258,7 @@ const ItemContainer = styled.div`
|
|
|
27258
27258
|
flex-direction: column;
|
|
27259
27259
|
flex-wrap: wrap;
|
|
27260
27260
|
`;
|
|
27261
|
-
const Title$
|
|
27261
|
+
const Title$8 = styled.h4`
|
|
27262
27262
|
font-size: 18px;
|
|
27263
27263
|
font-weight: 500;
|
|
27264
27264
|
margin: 0;
|
|
@@ -27374,7 +27374,7 @@ const SalesAndROI = props => {
|
|
|
27374
27374
|
showBorderShadow: showBorderShadow
|
|
27375
27375
|
}, /*#__PURE__*/React$1.createElement(TitleAndValueContainer, {
|
|
27376
27376
|
id: "TitleAndValueContainer"
|
|
27377
|
-
}, /*#__PURE__*/React$1.createElement(Title$
|
|
27377
|
+
}, /*#__PURE__*/React$1.createElement(Title$8, {
|
|
27378
27378
|
id: "Title"
|
|
27379
27379
|
}, title), showBanner && /*#__PURE__*/React$1.createElement(OutBanner, {
|
|
27380
27380
|
id: "OutBanner",
|
|
@@ -27473,7 +27473,7 @@ const TitleContainer$1 = styled.div`
|
|
|
27473
27473
|
margin: 0;
|
|
27474
27474
|
border-bottom: 1px solid #b1b1b1;
|
|
27475
27475
|
`;
|
|
27476
|
-
const Title$
|
|
27476
|
+
const Title$7 = styled.p`
|
|
27477
27477
|
font-weight: 400;
|
|
27478
27478
|
font-size: 24px;
|
|
27479
27479
|
margin: 0;
|
|
@@ -27693,7 +27693,7 @@ const PopupCharts = props => {
|
|
|
27693
27693
|
height: height,
|
|
27694
27694
|
width: width,
|
|
27695
27695
|
onClick: e => e.stopPropagation()
|
|
27696
|
-
}, /*#__PURE__*/React$1.createElement(TitleContainer$1, null, /*#__PURE__*/React$1.createElement(Title$
|
|
27696
|
+
}, /*#__PURE__*/React$1.createElement(TitleContainer$1, null, /*#__PURE__*/React$1.createElement(Title$7, null, title), /*#__PURE__*/React$1.createElement(CloseXIconContainer, {
|
|
27697
27697
|
onClick: e => closePopupCharts(e)
|
|
27698
27698
|
}, /*#__PURE__*/React$1.createElement(CloseXIcon, null))), /*#__PURE__*/React$1.createElement(ChartsContainer, {
|
|
27699
27699
|
id: "ChartsContainer",
|
|
@@ -27791,7 +27791,7 @@ const TopToggleListMainContainer = styled.div`
|
|
|
27791
27791
|
padding: 0 24px;
|
|
27792
27792
|
width: ${props => props.width};
|
|
27793
27793
|
`;
|
|
27794
|
-
const Title$
|
|
27794
|
+
const Title$6 = styled.h4`
|
|
27795
27795
|
font-size: 14px;
|
|
27796
27796
|
font-weight: 600;
|
|
27797
27797
|
margin: 20px 0 12px;
|
|
@@ -27821,7 +27821,7 @@ const TopToggleList = props => {
|
|
|
27821
27821
|
} = props;
|
|
27822
27822
|
return /*#__PURE__*/React$1.createElement(TopToggleListMainContainer, {
|
|
27823
27823
|
width: width
|
|
27824
|
-
}, /*#__PURE__*/React$1.createElement(Title$
|
|
27824
|
+
}, /*#__PURE__*/React$1.createElement(Title$6, null, title), /*#__PURE__*/React$1.createElement(ListContainer, {
|
|
27825
27825
|
height: height
|
|
27826
27826
|
}, list.map(item => /*#__PURE__*/React$1.createElement(ListItem, {
|
|
27827
27827
|
key: item.value
|
|
@@ -27883,7 +27883,7 @@ const TitleContainer = styled.div`
|
|
|
27883
27883
|
justify-content: flex-start;
|
|
27884
27884
|
margin: 0 0 10px 0;
|
|
27885
27885
|
`;
|
|
27886
|
-
const Title$
|
|
27886
|
+
const Title$5 = styled.h3`
|
|
27887
27887
|
user-select: none;
|
|
27888
27888
|
text-align: left;
|
|
27889
27889
|
margin: 0;
|
|
@@ -27928,7 +27928,7 @@ const BarLabel = styled.span`
|
|
|
27928
27928
|
font-weight: 400;
|
|
27929
27929
|
user-select: none;
|
|
27930
27930
|
`;
|
|
27931
|
-
const TooltipContainer$
|
|
27931
|
+
const TooltipContainer$1 = styled.div`
|
|
27932
27932
|
position: absolute;
|
|
27933
27933
|
|
|
27934
27934
|
top: ${props => props.top};
|
|
@@ -28038,7 +28038,7 @@ const Heatmap = props => {
|
|
|
28038
28038
|
if (tooltip && tooltipPosition && tooltip.label === `${item.label} - ${Math.round(item.value / totalValue * 100)}%`) {
|
|
28039
28039
|
const top = `${tooltipPosition.y}px`;
|
|
28040
28040
|
const left = `${tooltipPosition.x}px`;
|
|
28041
|
-
return /*#__PURE__*/React$1.createElement(TooltipContainer$
|
|
28041
|
+
return /*#__PURE__*/React$1.createElement(TooltipContainer$1, {
|
|
28042
28042
|
className: "TooltipContainer",
|
|
28043
28043
|
top: top,
|
|
28044
28044
|
left: left
|
|
@@ -28158,7 +28158,7 @@ const Heatmap = props => {
|
|
|
28158
28158
|
className: "HeatmapWrapper"
|
|
28159
28159
|
}, /*#__PURE__*/React$1.createElement(TitleContainer, {
|
|
28160
28160
|
className: "TitleContainer"
|
|
28161
|
-
}, /*#__PURE__*/React$1.createElement(Title$
|
|
28161
|
+
}, /*#__PURE__*/React$1.createElement(Title$5, {
|
|
28162
28162
|
className: "Title"
|
|
28163
28163
|
}, title)), refreshRequired && renderBars(), !refreshRequired && renderBars(), renderLegend()));
|
|
28164
28164
|
};
|
|
@@ -28572,12 +28572,12 @@ const TooltipLabel$1 = styled.div`
|
|
|
28572
28572
|
font-weight: 400;
|
|
28573
28573
|
width: fit-content;
|
|
28574
28574
|
`;
|
|
28575
|
-
const TooltipTitle$
|
|
28575
|
+
const TooltipTitle$2 = styled.div`
|
|
28576
28576
|
color: #212121;
|
|
28577
28577
|
font-size: 14px;
|
|
28578
28578
|
font-weight: 600;
|
|
28579
28579
|
`;
|
|
28580
|
-
const Title$
|
|
28580
|
+
const Title$4 = styled.h5`
|
|
28581
28581
|
font-weight: 500;
|
|
28582
28582
|
font-size: 18px;
|
|
28583
28583
|
line-height: 20px;
|
|
@@ -28654,7 +28654,7 @@ const BarChart = props => {
|
|
|
28654
28654
|
if (!active || !payload || payload?.length === 0) return null;
|
|
28655
28655
|
let currentTooltipValue = 0;
|
|
28656
28656
|
if (payload[0].payload?.value) currentTooltipValue = payload[0].payload?.value;
|
|
28657
|
-
return /*#__PURE__*/React$1.createElement(TooltipDiv$1, null, /*#__PURE__*/React$1.createElement(TooltipTitle$
|
|
28657
|
+
return /*#__PURE__*/React$1.createElement(TooltipDiv$1, null, /*#__PURE__*/React$1.createElement(TooltipTitle$2, null, `${label}`), /*#__PURE__*/React$1.createElement(TooltipLabel$1, null, `${displayFormattedValue(currentTooltipValue, !!showCurrentCampaignStyle)}`));
|
|
28658
28658
|
};
|
|
28659
28659
|
const CustomizedTickBarChart = props => {
|
|
28660
28660
|
const {
|
|
@@ -28737,7 +28737,7 @@ const BarChart = props => {
|
|
|
28737
28737
|
height: height,
|
|
28738
28738
|
width: width,
|
|
28739
28739
|
ref: controlsContainerRef
|
|
28740
|
-
}, /*#__PURE__*/React$1.createElement(Controls$3, null, /*#__PURE__*/React$1.createElement(Title$
|
|
28740
|
+
}, /*#__PURE__*/React$1.createElement(Controls$3, null, /*#__PURE__*/React$1.createElement(Title$4, null, title), /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
|
|
28741
28741
|
width: "100%",
|
|
28742
28742
|
height: 400
|
|
28743
28743
|
}, /*#__PURE__*/React$1.createElement(BarChart$1, {
|
|
@@ -28908,7 +28908,7 @@ const Controls$2 = styled.div`
|
|
|
28908
28908
|
flex-direction: column;
|
|
28909
28909
|
background-color: white;
|
|
28910
28910
|
`;
|
|
28911
|
-
const Title$
|
|
28911
|
+
const Title$3 = styled.h5`
|
|
28912
28912
|
font-size: 18px;
|
|
28913
28913
|
font-weight: 400;
|
|
28914
28914
|
margin: 0 0 30px;
|
|
@@ -28923,10 +28923,10 @@ const ChartsWrapper = styled.div`
|
|
|
28923
28923
|
background-color: white;
|
|
28924
28924
|
`;
|
|
28925
28925
|
const LineChartWrapper = styled.div`
|
|
28926
|
-
height:
|
|
28926
|
+
height: 150px;
|
|
28927
28927
|
`;
|
|
28928
28928
|
const BarChartWrapper = styled.div`
|
|
28929
|
-
height:
|
|
28929
|
+
height: 260px;
|
|
28930
28930
|
`;
|
|
28931
28931
|
const TooltipDiv = styled.div`
|
|
28932
28932
|
border-radius: 5px;
|
|
@@ -28941,7 +28941,7 @@ const TooltipLabel = styled.div`
|
|
|
28941
28941
|
font-weight: 400;
|
|
28942
28942
|
width: fit-content;
|
|
28943
28943
|
`;
|
|
28944
|
-
const TooltipTitle$
|
|
28944
|
+
const TooltipTitle$1 = styled.div`
|
|
28945
28945
|
color: #212121;
|
|
28946
28946
|
font-size: 14px;
|
|
28947
28947
|
font-weight: 600;
|
|
@@ -28958,6 +28958,7 @@ const DoubleBarSingleLine = props => {
|
|
|
28958
28958
|
hasScroll,
|
|
28959
28959
|
dataState,
|
|
28960
28960
|
data,
|
|
28961
|
+
lineType,
|
|
28961
28962
|
lineChartValueType,
|
|
28962
28963
|
barChartValueType,
|
|
28963
28964
|
barsWidth,
|
|
@@ -29094,7 +29095,7 @@ const DoubleBarSingleLine = props => {
|
|
|
29094
29095
|
} else {
|
|
29095
29096
|
`${currentTooltipValue.toFixed(1)}`;
|
|
29096
29097
|
}
|
|
29097
|
-
return /*#__PURE__*/React$1.createElement(TooltipDiv, null, /*#__PURE__*/React$1.createElement(TooltipTitle$
|
|
29098
|
+
return /*#__PURE__*/React$1.createElement(TooltipDiv, null, /*#__PURE__*/React$1.createElement(TooltipTitle$1, null, `${label}`), payload.map((item, idx) => {
|
|
29098
29099
|
const dataStateItem = dataState.find(state => state.key === item.dataKey);
|
|
29099
29100
|
return /*#__PURE__*/React$1.createElement(TooltipLabel, {
|
|
29100
29101
|
key: item.dataKey || idx
|
|
@@ -29167,7 +29168,7 @@ const DoubleBarSingleLine = props => {
|
|
|
29167
29168
|
noDataText: noDataText
|
|
29168
29169
|
}) : /*#__PURE__*/React$1.createElement(Controls$2, {
|
|
29169
29170
|
className: "Controls"
|
|
29170
|
-
}, title && title.trim() !== '' && /*#__PURE__*/React$1.createElement(Title$
|
|
29171
|
+
}, title && title.trim() !== '' && /*#__PURE__*/React$1.createElement(Title$3, null, title), /*#__PURE__*/React$1.createElement(ChartsWrapper, {
|
|
29171
29172
|
width: hasScroll ? `${data.length * 178}px` : 'auto'
|
|
29172
29173
|
}, /*#__PURE__*/React$1.createElement(LineChartWrapper, null, /*#__PURE__*/React$1.createElement(ResponsiveContainer, null, /*#__PURE__*/React$1.createElement(LineChart, _extends({
|
|
29173
29174
|
data: transformedData
|
|
@@ -29185,10 +29186,10 @@ const DoubleBarSingleLine = props => {
|
|
|
29185
29186
|
right: barsWidth
|
|
29186
29187
|
}
|
|
29187
29188
|
}), /*#__PURE__*/React$1.createElement(YAxis, {
|
|
29188
|
-
domain: [dataMin => Math.min(dataMin, calculateMinValue(data, dataState))
|
|
29189
|
+
domain: [dataMin => Math.min(dataMin, calculateMinValue(data, dataState)) + 5, dataMax => Math.max(dataMax, calculateMaxValue(data, dataState)) + 5],
|
|
29189
29190
|
hide: true
|
|
29190
29191
|
}), dataState.filter(item => item.type === "line").map(obj => /*#__PURE__*/React$1.createElement(Line, {
|
|
29191
|
-
type:
|
|
29192
|
+
type: lineType,
|
|
29192
29193
|
key: obj.key,
|
|
29193
29194
|
dataKey: obj.key,
|
|
29194
29195
|
stroke: obj.color,
|
|
@@ -29266,7 +29267,7 @@ const CheckboxGroupContainer = styled.div`
|
|
|
29266
29267
|
height: 21px;
|
|
29267
29268
|
gap: 20px;
|
|
29268
29269
|
`;
|
|
29269
|
-
const Title$
|
|
29270
|
+
const Title$2 = styled.h5`
|
|
29270
29271
|
font-weight: 500;
|
|
29271
29272
|
font-size: 18px;
|
|
29272
29273
|
line-height: 20px;
|
|
@@ -29286,7 +29287,7 @@ const LegendIcon = styled.div`
|
|
|
29286
29287
|
margin-right: 5px;
|
|
29287
29288
|
background-color: ${props => props.color};
|
|
29288
29289
|
`;
|
|
29289
|
-
const TooltipContainer
|
|
29290
|
+
const TooltipContainer = styled.div`
|
|
29290
29291
|
background: white;
|
|
29291
29292
|
padding: 10px;
|
|
29292
29293
|
border-radius: 5px;
|
|
@@ -29296,12 +29297,12 @@ const TooltipContainer$1 = styled.div`
|
|
|
29296
29297
|
font-weight: 500;
|
|
29297
29298
|
font-size: 14px;
|
|
29298
29299
|
`;
|
|
29299
|
-
const TooltipTitle
|
|
29300
|
+
const TooltipTitle = styled.p`
|
|
29300
29301
|
font-weight: 700;
|
|
29301
29302
|
margin-top: 5px;
|
|
29302
29303
|
margin-bottom: 5px;
|
|
29303
29304
|
`;
|
|
29304
|
-
const TooltipText
|
|
29305
|
+
const TooltipText = styled.p`
|
|
29305
29306
|
margin-top: 5px;
|
|
29306
29307
|
margin-bottom: 5px;
|
|
29307
29308
|
`;
|
|
@@ -29542,10 +29543,10 @@ const AreaChart = props => {
|
|
|
29542
29543
|
payload
|
|
29543
29544
|
} = _ref3;
|
|
29544
29545
|
if (active && payload && payload.length) {
|
|
29545
|
-
return /*#__PURE__*/React$1.createElement(TooltipContainer
|
|
29546
|
+
return /*#__PURE__*/React$1.createElement(TooltipContainer, null, /*#__PURE__*/React$1.createElement(TooltipTitle, null, `${payload[0].payload.label}`), payload.map((data, index) => {
|
|
29546
29547
|
const chart = areaChartsState.find(chart => chart.key === data.dataKey);
|
|
29547
29548
|
if (chart) {
|
|
29548
|
-
return /*#__PURE__*/React$1.createElement(TooltipText
|
|
29549
|
+
return /*#__PURE__*/React$1.createElement(TooltipText, {
|
|
29549
29550
|
key: index
|
|
29550
29551
|
}, `${chart.name}: ${displayFormattedValue(data.value, chart.isDollar)}`);
|
|
29551
29552
|
}
|
|
@@ -29594,7 +29595,7 @@ const AreaChart = props => {
|
|
|
29594
29595
|
height: height
|
|
29595
29596
|
}) : /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(HeaderContainer$2, {
|
|
29596
29597
|
"data-testid": "header-container"
|
|
29597
|
-
}, /*#__PURE__*/React$1.createElement(Title$
|
|
29598
|
+
}, /*#__PURE__*/React$1.createElement(Title$2, {
|
|
29598
29599
|
"data-testid": "title"
|
|
29599
29600
|
}, title), /*#__PURE__*/React$1.createElement(CheckboxGroupContainer, {
|
|
29600
29601
|
"data-testid": "checkbox-group-container"
|
|
@@ -30092,7 +30093,7 @@ const HeaderContainer$1 = styled.div`
|
|
|
30092
30093
|
align-items: center;
|
|
30093
30094
|
padding-bottom: 8px;
|
|
30094
30095
|
`;
|
|
30095
|
-
const Title$
|
|
30096
|
+
const Title$1 = styled.h3`
|
|
30096
30097
|
font-size: 18px;
|
|
30097
30098
|
font-weight: 400;
|
|
30098
30099
|
margin: 0;
|
|
@@ -30161,7 +30162,7 @@ const BreakdownPanel = props => {
|
|
|
30161
30162
|
height: height
|
|
30162
30163
|
}) : /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(HeaderContainer$1, {
|
|
30163
30164
|
"data-testid": "header-container"
|
|
30164
|
-
}, /*#__PURE__*/React$1.createElement(Title$
|
|
30165
|
+
}, /*#__PURE__*/React$1.createElement(Title$1, {
|
|
30165
30166
|
"data-testid": "title"
|
|
30166
30167
|
}, title)), /*#__PURE__*/React$1.createElement(CategorySalesMainContainer, {
|
|
30167
30168
|
"data-testid": "category-sales-main-container"
|
|
@@ -31403,94 +31404,41 @@ const BatteryChart = props => {
|
|
|
31403
31404
|
}))))))), starText !== "" && /*#__PURE__*/React$1.createElement(StarText, null, starText));
|
|
31404
31405
|
};
|
|
31405
31406
|
|
|
31406
|
-
const
|
|
31407
|
-
|
|
31408
|
-
|
|
31409
|
-
|
|
31410
|
-
|
|
31411
|
-
|
|
31412
|
-
|
|
31413
|
-
|
|
31414
|
-
|
|
31415
|
-
|
|
31416
|
-
font-weight: 500;
|
|
31417
|
-
font-family: "Poppins"
|
|
31418
|
-
}
|
|
31419
|
-
`;
|
|
31420
|
-
const Title$1 = styled.h2`
|
|
31421
|
-
color: #212121;
|
|
31422
|
-
font-family: "Poppins";
|
|
31423
|
-
font-size: 18px;
|
|
31424
|
-
font-style: normal;
|
|
31425
|
-
font-weight: 400;
|
|
31426
|
-
line-height: normal;
|
|
31427
|
-
margin: 0 0 16px 0;
|
|
31428
|
-
`;
|
|
31429
|
-
styled.div`
|
|
31430
|
-
font-family: sans-serif;
|
|
31431
|
-
text-align: center;
|
|
31432
|
-
`;
|
|
31433
|
-
styled.div`
|
|
31434
|
-
height: 25%;
|
|
31435
|
-
`;
|
|
31436
|
-
styled.div`
|
|
31437
|
-
height: 75%;
|
|
31438
|
-
`;
|
|
31439
|
-
styled.div`
|
|
31440
|
-
height: 100%;
|
|
31441
|
-
display: flex;
|
|
31442
|
-
flex-direction: column;
|
|
31443
|
-
background-color: white;
|
|
31444
|
-
`;
|
|
31445
|
-
const TooltipContainer = styled.div`
|
|
31446
|
-
background: white;
|
|
31447
|
-
padding: 10px;
|
|
31448
|
-
border-radius: 5px;
|
|
31449
|
-
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
|
|
31450
|
-
border: 1px solid #ddd;
|
|
31451
|
-
font-family: Poppins, sans-serif;
|
|
31452
|
-
font-weight: 500;
|
|
31453
|
-
font-size: 14px;
|
|
31454
|
-
`;
|
|
31455
|
-
const TooltipTitle = styled.p`
|
|
31456
|
-
font-weight: 700;
|
|
31457
|
-
margin-top: 5px;
|
|
31458
|
-
margin-bottom: 5px;
|
|
31459
|
-
`;
|
|
31460
|
-
const TooltipText = styled.p`
|
|
31461
|
-
margin-top: 5px;
|
|
31462
|
-
margin-bottom: 5px;
|
|
31463
|
-
`;
|
|
31407
|
+
// const originalData = [
|
|
31408
|
+
// { label: "Vendor Selling Event: Week 34", inc_sales: 20000, inc_roi: 1.2 },
|
|
31409
|
+
// { label: "Vendor Selling Event: Week 36", inc_sales: 10000, inc_roi: 1.2 },
|
|
31410
|
+
// { label: "Vendor Selling Event: Week 38", inc_sales: 8000, inc_roi: 0.8 },
|
|
31411
|
+
// { label: "Vendor Selling Event: Week 33", inc_sales: 12000, inc_roi: 1.1 },
|
|
31412
|
+
// { label: "Vendor Selling Event: Week 29", inc_sales: 8000, inc_roi: 1.2 },
|
|
31413
|
+
// { label: "Vendor Selling Event: Week 28", inc_sales: 8000, inc_roi: 0.7 },
|
|
31414
|
+
// { label: "Vendor Selling Event: Week 35", inc_sales: 8000, inc_roi: 0.8 },
|
|
31415
|
+
// { label: "Vendor Selling Event: Week 30", inc_sales: 9000, inc_roi: 1.1 },
|
|
31416
|
+
// ];
|
|
31464
31417
|
|
|
31465
31418
|
const SeparatedLineBarChart = ({
|
|
31466
|
-
|
|
31419
|
+
barlineData = []
|
|
31467
31420
|
}) => {
|
|
31468
|
-
|
|
31469
|
-
|
|
31470
|
-
|
|
31471
|
-
|
|
31472
|
-
|
|
31421
|
+
// Sort the data by week number extracted from the label
|
|
31422
|
+
const sortedData = barlineData?.sort((a, b) => {
|
|
31423
|
+
const weekA = parseInt(a.label.match(/Week (\d+)/)[1], 10);
|
|
31424
|
+
const weekB = parseInt(b.label.match(/Week (\d+)/)[1], 10);
|
|
31425
|
+
return weekA - weekB;
|
|
31473
31426
|
});
|
|
31474
|
-
const
|
|
31475
|
-
|
|
31476
|
-
|
|
31477
|
-
|
|
31478
|
-
|
|
31479
|
-
|
|
31480
|
-
|
|
31481
|
-
|
|
31482
|
-
|
|
31483
|
-
|
|
31484
|
-
|
|
31485
|
-
|
|
31486
|
-
|
|
31487
|
-
|
|
31488
|
-
|
|
31489
|
-
currentChunk += (currentChunk ? " " : "") + word;
|
|
31490
|
-
}
|
|
31491
|
-
});
|
|
31492
|
-
if (currentChunk) {
|
|
31493
|
-
chunks.push(currentChunk.trim());
|
|
31427
|
+
const dataWithIndex = sortedData.map((item, index) => ({
|
|
31428
|
+
...item,
|
|
31429
|
+
index,
|
|
31430
|
+
shortLabel: item.label.replace("Vendor Selling Event: ", "Wk ")
|
|
31431
|
+
}));
|
|
31432
|
+
const CustomizedTick = ({
|
|
31433
|
+
x,
|
|
31434
|
+
y,
|
|
31435
|
+
payload,
|
|
31436
|
+
viewableIndices
|
|
31437
|
+
}) => {
|
|
31438
|
+
const label = dataWithIndex[payload.value]?.label ?? "";
|
|
31439
|
+
const parts = label.replace("Vendor Selling Event: ", "").split(" ");
|
|
31440
|
+
if (!viewableIndices.includes(payload.value)) {
|
|
31441
|
+
return null;
|
|
31494
31442
|
}
|
|
31495
31443
|
return /*#__PURE__*/React$1.createElement("g", {
|
|
31496
31444
|
transform: `translate(${x},${y})`
|
|
@@ -31500,68 +31448,89 @@ const SeparatedLineBarChart = ({
|
|
|
31500
31448
|
dy: 16,
|
|
31501
31449
|
textAnchor: "middle",
|
|
31502
31450
|
fill: "#212121",
|
|
31503
|
-
fontSize:
|
|
31451
|
+
fontSize: 11,
|
|
31452
|
+
fontWeight: "400",
|
|
31504
31453
|
fontFamily: "Poppins"
|
|
31505
|
-
},
|
|
31506
|
-
|
|
31454
|
+
}, /*#__PURE__*/React$1.createElement("tspan", {
|
|
31455
|
+
x: 0,
|
|
31456
|
+
dy: 8
|
|
31457
|
+
}, "Vendor Selling"), /*#__PURE__*/React$1.createElement("tspan", {
|
|
31507
31458
|
x: 0,
|
|
31508
|
-
dy:
|
|
31509
|
-
},
|
|
31459
|
+
dy: 18
|
|
31460
|
+
}, "Event: ", parts.join(" "))));
|
|
31510
31461
|
};
|
|
31511
|
-
const
|
|
31512
|
-
|
|
31513
|
-
|
|
31514
|
-
|
|
31515
|
-
|
|
31516
|
-
|
|
31517
|
-
|
|
31518
|
-
|
|
31462
|
+
const CustomLabelListFilter = props => {
|
|
31463
|
+
const {
|
|
31464
|
+
viewableIndices,
|
|
31465
|
+
dataKey,
|
|
31466
|
+
position,
|
|
31467
|
+
formatter,
|
|
31468
|
+
fill,
|
|
31469
|
+
fontSize,
|
|
31470
|
+
fontWeight,
|
|
31471
|
+
fontFamily
|
|
31472
|
+
} = props;
|
|
31473
|
+
return /*#__PURE__*/React$1.createElement(LabelList, {
|
|
31474
|
+
dataKey: dataKey,
|
|
31475
|
+
position: position,
|
|
31476
|
+
formatter: (value, name, props) => {
|
|
31477
|
+
if (!viewableIndices.includes(props.index)) {
|
|
31478
|
+
return "";
|
|
31479
|
+
}
|
|
31480
|
+
return formatter ? formatter(value) : value;
|
|
31481
|
+
},
|
|
31482
|
+
fill: fill || "#212121",
|
|
31483
|
+
fontSize: fontSize || 12,
|
|
31484
|
+
fontWeight: fontWeight || "400",
|
|
31485
|
+
fontFamily: fontFamily || "Poppins"
|
|
31486
|
+
});
|
|
31519
31487
|
};
|
|
31520
31488
|
const chartMargins = {
|
|
31521
|
-
top:
|
|
31522
|
-
right:
|
|
31523
|
-
left: 20,
|
|
31524
|
-
bottom: 0
|
|
31525
|
-
};
|
|
31526
|
-
const chartMargins2 = {
|
|
31527
|
-
top: 30,
|
|
31528
|
-
right: 30,
|
|
31489
|
+
top: 15,
|
|
31490
|
+
right: 40,
|
|
31529
31491
|
left: 20,
|
|
31530
|
-
bottom:
|
|
31492
|
+
bottom: 40
|
|
31531
31493
|
};
|
|
31532
|
-
const
|
|
31494
|
+
const [viewWindow, setViewWindow] = useState({
|
|
31495
|
+
startIndex: 0,
|
|
31496
|
+
endIndex: dataWithIndex.length - 1
|
|
31497
|
+
});
|
|
31498
|
+
const viewableIndices = [];
|
|
31499
|
+
for (let i = viewWindow.startIndex; i <= viewWindow.endIndex; i++) {
|
|
31500
|
+
viewableIndices.push(i);
|
|
31501
|
+
}
|
|
31502
|
+
dataWithIndex.filter(item => viewableIndices.includes(item.index));
|
|
31533
31503
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
31534
31504
|
style: {
|
|
31535
31505
|
width: "100%",
|
|
31536
|
-
height:
|
|
31506
|
+
height: 700
|
|
31537
31507
|
}
|
|
31538
31508
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
31539
31509
|
style: {
|
|
31540
|
-
height: "
|
|
31510
|
+
height: "40%"
|
|
31541
31511
|
}
|
|
31542
31512
|
}, /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
|
|
31543
31513
|
width: "100%",
|
|
31544
31514
|
height: "100%"
|
|
31545
31515
|
}, /*#__PURE__*/React$1.createElement(LineChart, {
|
|
31546
|
-
data:
|
|
31547
|
-
margin: chartMargins
|
|
31548
|
-
syncId: "composedChart",
|
|
31549
|
-
syncMethod: "index"
|
|
31516
|
+
data: dataWithIndex,
|
|
31517
|
+
margin: chartMargins
|
|
31550
31518
|
}, /*#__PURE__*/React$1.createElement(CartesianGrid, {
|
|
31551
31519
|
strokeDasharray: "3 3",
|
|
31552
31520
|
vertical: false
|
|
31553
31521
|
}), /*#__PURE__*/React$1.createElement(XAxis, {
|
|
31554
|
-
dataKey: "
|
|
31555
|
-
|
|
31522
|
+
dataKey: "index",
|
|
31523
|
+
type: "number",
|
|
31524
|
+
domain: ['dataMin', 'dataMax'],
|
|
31556
31525
|
padding: {
|
|
31557
|
-
left:
|
|
31558
|
-
right:
|
|
31526
|
+
left: 20,
|
|
31527
|
+
right: 20
|
|
31559
31528
|
},
|
|
31560
31529
|
hide: true
|
|
31561
31530
|
}), /*#__PURE__*/React$1.createElement(YAxis, {
|
|
31562
31531
|
domain: [0, 2],
|
|
31563
31532
|
hide: true
|
|
31564
|
-
}), /*#__PURE__*/React$1.createElement(Line, {
|
|
31533
|
+
}), /*#__PURE__*/React$1.createElement(Tooltip$2, null), /*#__PURE__*/React$1.createElement(Line, {
|
|
31565
31534
|
type: "monotone",
|
|
31566
31535
|
dataKey: "inc_roi",
|
|
31567
31536
|
stroke: "#F8CD00",
|
|
@@ -31571,81 +31540,73 @@ const SeparatedLineBarChart = ({
|
|
|
31571
31540
|
fill: "#F8CD00"
|
|
31572
31541
|
},
|
|
31573
31542
|
activeDot: false,
|
|
31574
|
-
name: "INC Sales ROI"
|
|
31575
|
-
|
|
31576
|
-
barGap: 0
|
|
31577
|
-
}, /*#__PURE__*/React$1.createElement(LabelList, {
|
|
31543
|
+
name: "INC Sales ROI"
|
|
31544
|
+
}, /*#__PURE__*/React$1.createElement(CustomLabelListFilter, {
|
|
31578
31545
|
dataKey: "inc_roi",
|
|
31579
31546
|
position: "top",
|
|
31580
|
-
formatter: value =>
|
|
31581
|
-
|
|
31582
|
-
|
|
31583
|
-
fontWeight: "400",
|
|
31584
|
-
fontFamily: "Poppins"
|
|
31585
|
-
})), /*#__PURE__*/React$1.createElement(Brush, {
|
|
31586
|
-
dataKey: "label",
|
|
31587
|
-
height: 30,
|
|
31588
|
-
stroke: "#212121",
|
|
31589
|
-
startIndex: 0,
|
|
31590
|
-
endIndex: Math.min(6, processedData.length - 1),
|
|
31591
|
-
y: 330,
|
|
31592
|
-
travellerWidth: 10,
|
|
31593
|
-
tickFormatter: (value, index) => index + 1,
|
|
31594
|
-
hide: true
|
|
31595
|
-
})))), /*#__PURE__*/React$1.createElement("div", {
|
|
31547
|
+
formatter: value => value.toFixed(1),
|
|
31548
|
+
viewableIndices: viewableIndices
|
|
31549
|
+
}))))), /*#__PURE__*/React$1.createElement("div", {
|
|
31596
31550
|
style: {
|
|
31597
|
-
height: "
|
|
31551
|
+
height: "60%"
|
|
31598
31552
|
}
|
|
31599
31553
|
}, /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
|
|
31600
31554
|
width: "100%",
|
|
31601
31555
|
height: "100%"
|
|
31602
31556
|
}, /*#__PURE__*/React$1.createElement(ComposedChart, {
|
|
31603
|
-
data:
|
|
31604
|
-
margin:
|
|
31605
|
-
syncId: "composedChart",
|
|
31606
|
-
syncMethod: "index",
|
|
31607
|
-
barCategoryGap: BAR_CATEGORY_GAP,
|
|
31608
|
-
barGap: 0
|
|
31557
|
+
data: dataWithIndex,
|
|
31558
|
+
margin: chartMargins
|
|
31609
31559
|
}, /*#__PURE__*/React$1.createElement(CartesianGrid, {
|
|
31610
31560
|
strokeDasharray: "3 3",
|
|
31611
31561
|
vertical: false
|
|
31612
31562
|
}), /*#__PURE__*/React$1.createElement(XAxis, {
|
|
31613
|
-
dataKey: "
|
|
31614
|
-
|
|
31563
|
+
dataKey: "index",
|
|
31564
|
+
type: "number",
|
|
31565
|
+
domain: ['dataMin', 'dataMax'],
|
|
31566
|
+
padding: {
|
|
31567
|
+
left: 20,
|
|
31568
|
+
right: 20
|
|
31569
|
+
},
|
|
31570
|
+
tick: props => /*#__PURE__*/React$1.createElement(CustomizedTick, _extends({}, props, {
|
|
31571
|
+
viewableIndices: viewableIndices
|
|
31572
|
+
})),
|
|
31615
31573
|
interval: 0,
|
|
31616
|
-
height:
|
|
31617
|
-
tickLine: false
|
|
31574
|
+
height: 60,
|
|
31575
|
+
tickLine: false,
|
|
31576
|
+
ticks: dataWithIndex.map(item => item.index)
|
|
31618
31577
|
}), /*#__PURE__*/React$1.createElement(YAxis, {
|
|
31619
31578
|
tickFormatter: v => `${v / 1000}k`,
|
|
31620
31579
|
hide: true
|
|
31621
|
-
}), /*#__PURE__*/React$1.createElement(Tooltip$2, {
|
|
31622
|
-
content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
|
|
31623
|
-
}), /*#__PURE__*/React$1.createElement(Bar, {
|
|
31580
|
+
}), /*#__PURE__*/React$1.createElement(Tooltip$2, null), /*#__PURE__*/React$1.createElement(Bar, {
|
|
31624
31581
|
dataKey: "inc_sales",
|
|
31625
31582
|
fill: "#CCDCDD",
|
|
31626
|
-
gap:
|
|
31583
|
+
gap: "4px",
|
|
31627
31584
|
borderRadius: [4, 4, 0, 8],
|
|
31628
31585
|
barSize: 40,
|
|
31629
31586
|
name: "INC Sales"
|
|
31630
|
-
}, /*#__PURE__*/React$1.createElement(
|
|
31587
|
+
}, /*#__PURE__*/React$1.createElement(CustomLabelListFilter, {
|
|
31631
31588
|
dataKey: "inc_sales",
|
|
31632
31589
|
position: "top",
|
|
31633
|
-
formatter: value =>
|
|
31634
|
-
|
|
31635
|
-
fontSize: 12,
|
|
31636
|
-
fontWeight: "400",
|
|
31637
|
-
fontFamily: "Poppins"
|
|
31590
|
+
formatter: value => `${value / 1000}k`,
|
|
31591
|
+
viewableIndices: viewableIndices
|
|
31638
31592
|
})), /*#__PURE__*/React$1.createElement(Brush, {
|
|
31639
|
-
dataKey: "
|
|
31593
|
+
dataKey: "index",
|
|
31640
31594
|
height: 30,
|
|
31641
31595
|
stroke: "#212121",
|
|
31642
|
-
startIndex:
|
|
31643
|
-
endIndex:
|
|
31644
|
-
|
|
31645
|
-
|
|
31646
|
-
|
|
31647
|
-
|
|
31648
|
-
|
|
31596
|
+
startIndex: viewWindow.startIndex,
|
|
31597
|
+
endIndex: viewWindow.endIndex,
|
|
31598
|
+
onChange: e => {
|
|
31599
|
+
setViewWindow({
|
|
31600
|
+
startIndex: e.startIndex ?? 0,
|
|
31601
|
+
endIndex: e.endIndex ?? dataWithIndex.length - 1
|
|
31602
|
+
});
|
|
31603
|
+
},
|
|
31604
|
+
travellerWidth: 12
|
|
31605
|
+
})), /*#__PURE__*/React$1.createElement("div", {
|
|
31606
|
+
style: {
|
|
31607
|
+
marginTop: "-28px"
|
|
31608
|
+
}
|
|
31609
|
+
}, /*#__PURE__*/React$1.createElement(PerformanceAnalyticsLegend, {
|
|
31649
31610
|
legendData: [{
|
|
31650
31611
|
iconColor: "#CCDCDD",
|
|
31651
31612
|
iconType: "Square",
|
|
@@ -31655,15 +31616,13 @@ const SeparatedLineBarChart = ({
|
|
|
31655
31616
|
iconType: "LegendUnionIcon",
|
|
31656
31617
|
title: "INC Sales ROI"
|
|
31657
31618
|
}]
|
|
31658
|
-
})));
|
|
31619
|
+
})))));
|
|
31659
31620
|
};
|
|
31660
31621
|
|
|
31661
31622
|
function SingleChart({
|
|
31662
|
-
|
|
31663
|
-
height = 450,
|
|
31664
|
-
width = "100%"
|
|
31623
|
+
lineChartData
|
|
31665
31624
|
}) {
|
|
31666
|
-
const dataWithIndex =
|
|
31625
|
+
const dataWithIndex = lineChartData?.map((item, index) => ({
|
|
31667
31626
|
...item,
|
|
31668
31627
|
index,
|
|
31669
31628
|
shortLabel: item.label.replace("Vendor Selling Event: ", "Wk ")
|
|
@@ -31674,20 +31633,7 @@ function SingleChart({
|
|
|
31674
31633
|
payload
|
|
31675
31634
|
}) => {
|
|
31676
31635
|
const label = dataWithIndex[payload.value]?.label ?? "";
|
|
31677
|
-
const
|
|
31678
|
-
const chunks = [];
|
|
31679
|
-
let currentChunk = '';
|
|
31680
|
-
words.forEach(word => {
|
|
31681
|
-
if (currentChunk.length + word.length > 15) {
|
|
31682
|
-
chunks.push(currentChunk.trim());
|
|
31683
|
-
currentChunk = word;
|
|
31684
|
-
} else {
|
|
31685
|
-
currentChunk += (currentChunk ? ' ' : '') + word;
|
|
31686
|
-
}
|
|
31687
|
-
});
|
|
31688
|
-
if (currentChunk) {
|
|
31689
|
-
chunks.push(currentChunk.trim());
|
|
31690
|
-
}
|
|
31636
|
+
const parts = label.replace("Vendor Selling Event: ", "").split(" ");
|
|
31691
31637
|
return /*#__PURE__*/React$1.createElement("g", {
|
|
31692
31638
|
transform: `translate(${x},${y})`
|
|
31693
31639
|
}, /*#__PURE__*/React$1.createElement("text", {
|
|
@@ -31696,31 +31642,31 @@ function SingleChart({
|
|
|
31696
31642
|
dy: 16,
|
|
31697
31643
|
textAnchor: "middle",
|
|
31698
31644
|
fill: "#212121",
|
|
31699
|
-
fontSize:
|
|
31645
|
+
fontSize: 11,
|
|
31646
|
+
fontWeight: "400",
|
|
31700
31647
|
fontFamily: "Poppins"
|
|
31701
|
-
},
|
|
31702
|
-
key: i,
|
|
31648
|
+
}, /*#__PURE__*/React$1.createElement("tspan", {
|
|
31703
31649
|
x: 0,
|
|
31704
|
-
dy:
|
|
31705
|
-
},
|
|
31706
|
-
|
|
31707
|
-
|
|
31708
|
-
|
|
31709
|
-
payload
|
|
31710
|
-
}) => {
|
|
31711
|
-
if (!active || !payload || !payload.length) return null;
|
|
31712
|
-
const data = payload[0]?.payload;
|
|
31713
|
-
if (!data) return null;
|
|
31714
|
-
return /*#__PURE__*/React$1.createElement(TooltipContainer, null, /*#__PURE__*/React$1.createElement(TooltipTitle, null, `${data.label}`), /*#__PURE__*/React$1.createElement(TooltipText, null, `${data.description}`), /*#__PURE__*/React$1.createElement(TooltipText, null, `${data.typeTitle}: ${getFormattedValue(data.value)}${getFormattedUnits(data.value)}`));
|
|
31650
|
+
dy: 8
|
|
31651
|
+
}, "Vendor Selling"), /*#__PURE__*/React$1.createElement("tspan", {
|
|
31652
|
+
x: 0,
|
|
31653
|
+
dy: 18
|
|
31654
|
+
}, "Event: ", parts.join(" "))));
|
|
31715
31655
|
};
|
|
31656
|
+
const [startIndex, setStartIndex] = useState(0);
|
|
31657
|
+
const [endIndex, setEndIndex] = useState(dataWithIndex?.length - 1);
|
|
31716
31658
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
31717
31659
|
style: {
|
|
31718
31660
|
width: "100%",
|
|
31661
|
+
height: 600
|
|
31662
|
+
}
|
|
31663
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
31664
|
+
style: {
|
|
31719
31665
|
height: "100%"
|
|
31720
31666
|
}
|
|
31721
31667
|
}, /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
|
|
31722
31668
|
width: "100%",
|
|
31723
|
-
height: "
|
|
31669
|
+
height: "100%"
|
|
31724
31670
|
}, /*#__PURE__*/React$1.createElement(ComposedChart, {
|
|
31725
31671
|
data: dataWithIndex,
|
|
31726
31672
|
margin: {
|
|
@@ -31736,7 +31682,7 @@ function SingleChart({
|
|
|
31736
31682
|
dataKey: "index",
|
|
31737
31683
|
tick: /*#__PURE__*/React$1.createElement(CustomizedTick, null),
|
|
31738
31684
|
interval: 0,
|
|
31739
|
-
height:
|
|
31685
|
+
height: 60,
|
|
31740
31686
|
padding: {
|
|
31741
31687
|
left: 20,
|
|
31742
31688
|
right: 20
|
|
@@ -31745,9 +31691,7 @@ function SingleChart({
|
|
|
31745
31691
|
}), /*#__PURE__*/React$1.createElement(YAxis, {
|
|
31746
31692
|
tickFormatter: v => `$${v / 1000}k`,
|
|
31747
31693
|
hide: true
|
|
31748
|
-
}), /*#__PURE__*/React$1.createElement(Tooltip$2, {
|
|
31749
|
-
content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
|
|
31750
|
-
}), /*#__PURE__*/React$1.createElement(Bar, {
|
|
31694
|
+
}), /*#__PURE__*/React$1.createElement(Tooltip$2, null), /*#__PURE__*/React$1.createElement(Bar, {
|
|
31751
31695
|
dataKey: "value",
|
|
31752
31696
|
fill: "#CCDCDD",
|
|
31753
31697
|
gap: "4px",
|
|
@@ -31757,25 +31701,29 @@ function SingleChart({
|
|
|
31757
31701
|
}, /*#__PURE__*/React$1.createElement(LabelList, {
|
|
31758
31702
|
dataKey: "value",
|
|
31759
31703
|
position: "top",
|
|
31760
|
-
formatter: value => `$${
|
|
31704
|
+
formatter: value => `$${value / 1000}k`,
|
|
31761
31705
|
fill: "#212121",
|
|
31762
31706
|
fontSize: 12,
|
|
31763
31707
|
fontWeight: "400",
|
|
31764
31708
|
fontFamily: "Poppins"
|
|
31765
31709
|
})), /*#__PURE__*/React$1.createElement(Brush, {
|
|
31710
|
+
dataKey: "index",
|
|
31766
31711
|
height: 30,
|
|
31767
|
-
|
|
31768
|
-
startIndex:
|
|
31769
|
-
endIndex:
|
|
31770
|
-
|
|
31771
|
-
|
|
31772
|
-
|
|
31712
|
+
stroke: "#212121",
|
|
31713
|
+
startIndex: startIndex,
|
|
31714
|
+
endIndex: endIndex,
|
|
31715
|
+
onChange: e => {
|
|
31716
|
+
setStartIndex(e.startIndex ?? 0);
|
|
31717
|
+
setEndIndex(e.endIndex ?? dataWithIndex?.length - 1);
|
|
31718
|
+
},
|
|
31719
|
+
travellerWidth: 12
|
|
31720
|
+
})), /*#__PURE__*/React$1.createElement(PerformanceAnalyticsLegend, {
|
|
31773
31721
|
legendData: [{
|
|
31774
31722
|
iconColor: "#CCDCDD",
|
|
31775
31723
|
iconType: "Square",
|
|
31776
31724
|
title: "INC Units"
|
|
31777
31725
|
}]
|
|
31778
|
-
}));
|
|
31726
|
+
}))));
|
|
31779
31727
|
}
|
|
31780
31728
|
|
|
31781
31729
|
styled.div`
|
|
@@ -32006,8 +31954,16 @@ SegmentedButton.defaultProps = {
|
|
|
32006
31954
|
};
|
|
32007
31955
|
|
|
32008
31956
|
function InnerBarChart({
|
|
32009
|
-
|
|
31957
|
+
data = []
|
|
32010
31958
|
}) {
|
|
31959
|
+
const processedData = data.map(item => {
|
|
31960
|
+
const parts = item.label.replace("Vendor Selling Event:", "").trim();
|
|
31961
|
+
return {
|
|
31962
|
+
...item,
|
|
31963
|
+
shortLabel: parts
|
|
31964
|
+
};
|
|
31965
|
+
});
|
|
31966
|
+
const format = v => v >= 1000 ? `${v / 1000}K` : v;
|
|
32011
31967
|
const BarWithInner = props => {
|
|
32012
31968
|
const {
|
|
32013
31969
|
x,
|
|
@@ -32036,7 +31992,7 @@ function InnerBarChart({
|
|
|
32036
31992
|
fontWeight: 400,
|
|
32037
31993
|
fontFamily: "Poppins",
|
|
32038
31994
|
fill: "#212121"
|
|
32039
|
-
},
|
|
31995
|
+
}, format(payload.total)), /*#__PURE__*/React$1.createElement("rect", {
|
|
32040
31996
|
x: x + width * 0.2,
|
|
32041
31997
|
y: innerY,
|
|
32042
31998
|
width: width * 0.6,
|
|
@@ -32052,7 +32008,7 @@ function InnerBarChart({
|
|
|
32052
32008
|
fontWeight: 400,
|
|
32053
32009
|
fontFamily: "Poppins",
|
|
32054
32010
|
fill: "#212121"
|
|
32055
|
-
},
|
|
32011
|
+
}, format(payload.actual)));
|
|
32056
32012
|
};
|
|
32057
32013
|
const CustomTooltip = ({
|
|
32058
32014
|
active,
|
|
@@ -32061,8 +32017,9 @@ function InnerBarChart({
|
|
|
32061
32017
|
}) => {
|
|
32062
32018
|
if (!active || !payload || !payload.length) return null;
|
|
32063
32019
|
const data = payload[0].payload;
|
|
32064
|
-
|
|
32065
|
-
|
|
32020
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
32021
|
+
className: "bg-white border border-gray-300 p-2 rounded-lg text-sm"
|
|
32022
|
+
}, /*#__PURE__*/React$1.createElement("strong", null, data.label), /*#__PURE__*/React$1.createElement("div", null, "Actual: ", format(data.actual)), /*#__PURE__*/React$1.createElement("div", null, "Total: ", format(data.total)));
|
|
32066
32023
|
};
|
|
32067
32024
|
const CustomizedTick = props => {
|
|
32068
32025
|
const {
|
|
@@ -32070,23 +32027,7 @@ function InnerBarChart({
|
|
|
32070
32027
|
y,
|
|
32071
32028
|
payload
|
|
32072
32029
|
} = props;
|
|
32073
|
-
const
|
|
32074
|
-
|
|
32075
|
-
// Split the label into chunks of words
|
|
32076
|
-
const words = label.split(" ");
|
|
32077
|
-
const chunks = [];
|
|
32078
|
-
let currentChunk = "";
|
|
32079
|
-
words.forEach(word => {
|
|
32080
|
-
if (currentChunk.length + word.length > 15) {
|
|
32081
|
-
chunks.push(currentChunk.trim());
|
|
32082
|
-
currentChunk = word;
|
|
32083
|
-
} else {
|
|
32084
|
-
currentChunk += " " + word;
|
|
32085
|
-
}
|
|
32086
|
-
});
|
|
32087
|
-
if (currentChunk) {
|
|
32088
|
-
chunks.push(currentChunk.trim());
|
|
32089
|
-
}
|
|
32030
|
+
const labelText = payload.value.replace("Vendor Selling Event:", "").trim();
|
|
32090
32031
|
return /*#__PURE__*/React$1.createElement("g", {
|
|
32091
32032
|
transform: `translate(${x},${y})`
|
|
32092
32033
|
}, /*#__PURE__*/React$1.createElement("text", {
|
|
@@ -32097,82 +32038,104 @@ function InnerBarChart({
|
|
|
32097
32038
|
fill: "#212121",
|
|
32098
32039
|
fontSize: 10,
|
|
32099
32040
|
fontFamily: "Poppins"
|
|
32100
|
-
},
|
|
32101
|
-
|
|
32041
|
+
}, /*#__PURE__*/React$1.createElement("tspan", {
|
|
32042
|
+
x: 0,
|
|
32043
|
+
dy: "0.71em"
|
|
32044
|
+
}, "Vendor"), /*#__PURE__*/React$1.createElement("tspan", {
|
|
32045
|
+
x: 0,
|
|
32046
|
+
dy: "1.2em"
|
|
32047
|
+
}, "Selling"), /*#__PURE__*/React$1.createElement("tspan", {
|
|
32102
32048
|
x: 0,
|
|
32103
|
-
dy:
|
|
32104
|
-
},
|
|
32049
|
+
dy: "1.2em"
|
|
32050
|
+
}, labelText)));
|
|
32105
32051
|
};
|
|
32106
32052
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
32107
|
-
|
|
32108
|
-
|
|
32109
|
-
|
|
32110
|
-
|
|
32111
|
-
}, /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
|
|
32053
|
+
className: "w-full"
|
|
32054
|
+
}, /*#__PURE__*/React$1.createElement("h3", {
|
|
32055
|
+
className: "text-lg font-medium mb-4 text-center"
|
|
32056
|
+
}, "Vendor Selling Events Comparison"), /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
|
|
32112
32057
|
width: "100%",
|
|
32113
|
-
height:
|
|
32058
|
+
height: 450
|
|
32114
32059
|
}, /*#__PURE__*/React$1.createElement(BarChart$1, {
|
|
32115
|
-
data:
|
|
32060
|
+
data: processedData,
|
|
32116
32061
|
margin: {
|
|
32117
32062
|
top: 30,
|
|
32118
32063
|
right: 30,
|
|
32119
32064
|
left: 20,
|
|
32120
|
-
bottom:
|
|
32065
|
+
bottom: 60
|
|
32121
32066
|
}
|
|
32122
32067
|
}, /*#__PURE__*/React$1.createElement(CartesianGrid, {
|
|
32123
32068
|
strokeDasharray: "3 3",
|
|
32124
32069
|
vertical: false
|
|
32125
32070
|
}), /*#__PURE__*/React$1.createElement(XAxis, {
|
|
32126
|
-
dataKey: "
|
|
32071
|
+
dataKey: "shortLabel",
|
|
32127
32072
|
tick: /*#__PURE__*/React$1.createElement(CustomizedTick, null),
|
|
32128
|
-
height:
|
|
32073
|
+
height: 70,
|
|
32129
32074
|
interval: 0
|
|
32130
32075
|
}), /*#__PURE__*/React$1.createElement(YAxis, {
|
|
32131
32076
|
type: "number",
|
|
32132
32077
|
domain: [0, "dataMax + 2000"],
|
|
32133
|
-
|
|
32078
|
+
tickFormatter: format
|
|
32134
32079
|
}), /*#__PURE__*/React$1.createElement(Tooltip$2, {
|
|
32135
32080
|
content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
|
|
32136
|
-
}), /*#__PURE__*/React$1.createElement(Bar, {
|
|
32137
|
-
dataKey: "total",
|
|
32138
|
-
shape: /*#__PURE__*/React$1.createElement(BarWithInner, null),
|
|
32139
|
-
barSize: 36
|
|
32140
32081
|
}), /*#__PURE__*/React$1.createElement(Brush, {
|
|
32141
32082
|
height: 30,
|
|
32142
32083
|
travellerWidth: 10,
|
|
32143
32084
|
startIndex: 0,
|
|
32144
|
-
endIndex:
|
|
32145
|
-
|
|
32146
|
-
|
|
32147
|
-
|
|
32148
|
-
|
|
32149
|
-
|
|
32150
|
-
|
|
32151
|
-
title: "New Shoppers"
|
|
32152
|
-
}, {
|
|
32153
|
-
iconColor: "#07575b",
|
|
32154
|
-
iconType: "Square",
|
|
32155
|
-
title: "Repeaters"
|
|
32156
|
-
}]
|
|
32157
|
-
}));
|
|
32085
|
+
endIndex: 5,
|
|
32086
|
+
y: 380
|
|
32087
|
+
}), /*#__PURE__*/React$1.createElement(Bar, {
|
|
32088
|
+
dataKey: "total",
|
|
32089
|
+
shape: /*#__PURE__*/React$1.createElement(BarWithInner, null),
|
|
32090
|
+
barSize: 36
|
|
32091
|
+
}))));
|
|
32158
32092
|
}
|
|
32159
32093
|
|
|
32094
|
+
const Container = styled.div`
|
|
32095
|
+
width: ${props => props.width};
|
|
32096
|
+
height: ${props => props.height};
|
|
32097
|
+
padding: 15px;
|
|
32098
|
+
display: flex;
|
|
32099
|
+
flex-direction: column;
|
|
32100
|
+
#Segment {
|
|
32101
|
+
width: auto;
|
|
32102
|
+
white-space: nowrap;
|
|
32103
|
+
font-size: 14px;
|
|
32104
|
+
font-weight: 500;
|
|
32105
|
+
font-family: "Poppins"
|
|
32106
|
+
}
|
|
32107
|
+
`;
|
|
32108
|
+
styled.div`
|
|
32109
|
+
font-family: sans-serif;
|
|
32110
|
+
text-align: center;
|
|
32111
|
+
`;
|
|
32112
|
+
styled.div`
|
|
32113
|
+
height: 25%;
|
|
32114
|
+
`;
|
|
32115
|
+
styled.div`
|
|
32116
|
+
height: 75%;
|
|
32117
|
+
`;
|
|
32118
|
+
styled.div`
|
|
32119
|
+
height: 100%;
|
|
32120
|
+
display: flex;
|
|
32121
|
+
flex-direction: column;
|
|
32122
|
+
background-color: white;
|
|
32123
|
+
`;
|
|
32124
|
+
|
|
32160
32125
|
const BrushChart = props => {
|
|
32161
32126
|
const {
|
|
32162
32127
|
width,
|
|
32163
32128
|
height,
|
|
32164
|
-
|
|
32165
|
-
|
|
32166
|
-
|
|
32167
|
-
brushAreaBarData,
|
|
32168
|
-
title
|
|
32129
|
+
data,
|
|
32130
|
+
barlineData,
|
|
32131
|
+
lineChartData
|
|
32169
32132
|
} = props;
|
|
32170
32133
|
const segmentedbuttonOptions = ["New Shoppers & Repeaters", "INC Sales & ROI", "INC Units", "Basket Lift"];
|
|
32171
32134
|
const [selectedOption, setSelectedOption] = useState(segmentedbuttonOptions[0]);
|
|
32172
32135
|
return /*#__PURE__*/React$1.createElement(Container, {
|
|
32173
32136
|
height: height,
|
|
32174
32137
|
width: width
|
|
32175
|
-
}, /*#__PURE__*/React$1.createElement(
|
|
32138
|
+
}, /*#__PURE__*/React$1.createElement(SegmentedButton, {
|
|
32176
32139
|
gap: "8px",
|
|
32177
32140
|
options: segmentedbuttonOptions.map(value => ({
|
|
32178
32141
|
value
|
|
@@ -32184,13 +32147,13 @@ const BrushChart = props => {
|
|
|
32184
32147
|
return setSelectedOption(value);
|
|
32185
32148
|
}
|
|
32186
32149
|
}), selectedOption === "New Shoppers & Repeaters" && /*#__PURE__*/React$1.createElement(InnerBarChart, {
|
|
32187
|
-
|
|
32150
|
+
data: data
|
|
32188
32151
|
}), selectedOption === "INC Sales & ROI" && /*#__PURE__*/React$1.createElement(SeparatedLineBarChart, {
|
|
32189
|
-
|
|
32152
|
+
barlineData: barlineData
|
|
32190
32153
|
}), selectedOption === "INC Units" && /*#__PURE__*/React$1.createElement(SingleChart, {
|
|
32191
|
-
|
|
32154
|
+
lineChartData: lineChartData
|
|
32192
32155
|
}), selectedOption === "Basket Lift" && /*#__PURE__*/React$1.createElement(SingleChart, {
|
|
32193
|
-
|
|
32156
|
+
lineChartData: lineChartData
|
|
32194
32157
|
}));
|
|
32195
32158
|
};
|
|
32196
32159
|
|
|
@@ -32294,7 +32257,6 @@ const VisibleCardsContainer = styled.div`
|
|
|
32294
32257
|
|
|
32295
32258
|
.prev-card {
|
|
32296
32259
|
transform: translateX(-50%) scale(0.75);
|
|
32297
|
-
opacity: 0.3;
|
|
32298
32260
|
}
|
|
32299
32261
|
|
|
32300
32262
|
.active-card {
|
|
@@ -32305,7 +32267,6 @@ const VisibleCardsContainer = styled.div`
|
|
|
32305
32267
|
|
|
32306
32268
|
.next-card {
|
|
32307
32269
|
transform: translateX(50%) scale(0.75);
|
|
32308
|
-
opacity: 0.3;
|
|
32309
32270
|
}
|
|
32310
32271
|
|
|
32311
32272
|
.hidden-card {
|