sag_components 2.0.0-beta57 → 2.0.0-beta59
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 +1082 -1173
- package/dist/index.esm.js +561 -264
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +561 -263
- 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 +79 -80
- 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 +23 -24
- 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 +14 -15
- 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 +38 -39
- 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 +70 -71
- 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 +17 -18
- 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 +70 -79
- 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 +73 -82
- 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 +56 -66
- 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 +99 -107
- 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 +44 -45
- 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 +73 -74
- 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 +9 -5
- 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 +5 -3
- package/dist/types/components/BubbleChart/BubbleChart.d.ts +15 -15
- package/dist/types/components/BubbleChart/BubbleChart.stories.d.ts +92 -93
- 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 +26 -33
- 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 +31 -37
- 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 +14 -15
- 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 +11 -12
- 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 +26 -27
- 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 +23 -28
- 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 +51 -56
- 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 +23 -34
- 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 +67 -82
- 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 +23 -24
- 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 +20 -21
- 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 +251 -252
- 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 +38 -39
- 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 +72 -79
- 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 +74 -81
- package/dist/types/components/DropdownNew/DropdownNew.style.d.ts +1 -1
- package/dist/types/components/DropdownSingleNew/DropdownSingleNew.d.ts +68 -75
- package/dist/types/components/DropdownSingleNew/DropdownSingleNew.style.d.ts +10 -10
- package/dist/types/components/EventDetailsCard/EventDetailsCard.d.ts +47 -48
- 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 +26 -30
- 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 +26 -27
- 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 +2 -3
- 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 +62 -89
- 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 +44 -45
- 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 +10 -15
- package/dist/types/components/Heatmap/Heatmap.stories.d.ts +59 -59
- package/dist/types/components/Heatmap/Heatmap.style.d.ts +13 -15
- package/dist/types/components/IconButton/IconButton.d.ts +47 -48
- 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 +79 -80
- 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 +65 -66
- 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 +47 -48
- package/dist/types/components/InsightsCarousel/InsightsCarousel.style.d.ts +12 -12
- package/dist/types/components/KpiFilter/KpiFilter.d.ts +53 -58
- 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 +12 -14
- 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 +26 -31
- 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 +53 -54
- 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 +80 -81
- 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 +68 -86
- 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 +64 -85
- 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 +28 -37
- 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 +62 -66
- 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 +53 -64
- 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 +24 -29
- 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 +23 -24
- 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 +53 -54
- 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 +69 -76
- package/dist/types/components/QuickFilterDropdownMultiSelection/QuickFilterDropdownMultiSelection.style.d.ts +12 -12
- package/dist/types/components/QuickFilterDropdownSingle/QuickFilterDropdownSingle.d.ts +61 -68
- package/dist/types/components/QuickFilterDropdownSingle/QuickFilterDropdownSingle.style.d.ts +11 -11
- package/dist/types/components/QuickFilterDropdownSingle/SagIconButton/SagIconButton.d.ts +44 -45
- 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 +51 -52
- 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 +74 -83
- 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 +44 -45
- 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 +35 -36
- 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 +44 -50
- 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 +23 -24
- 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 +49 -52
- 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 +54 -58
- 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 +56 -59
- 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 +23 -24
- package/dist/types/components/Tooltip/Tooltip.style.d.ts +3 -3
- package/dist/types/components/TopToggleList/TopToggleList.d.ts +23 -24
- 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 +34 -40
- 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 +81 -86
- 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 +47 -51
- 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 +51 -56
- 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 +77 -82
- 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 +71 -76
- 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 +23 -24
- package/dist/types/components/TspanTooltip/TspanTooltip.style.d.ts +3 -3
- package/dist/types/components/TwoBarCharts/TwoBarCharts.d.ts +65 -74
- 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 +11 -12
- 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 -31
- 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 +6 -3
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$f = 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$4 = 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$4, 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$f, {
|
|
2417
2417
|
className: "Title"
|
|
2418
2418
|
}, title), /*#__PURE__*/React$1.createElement(CurrencySignAndFormattedValueContainer$2, {
|
|
2419
2419
|
className: "CurrencySignAndFormattedValueContainer"
|
|
@@ -9720,35 +9720,41 @@ const OptionsContainer$4 = styled.div`
|
|
|
9720
9720
|
padding-top: 8px;
|
|
9721
9721
|
`;
|
|
9722
9722
|
|
|
9723
|
-
const ChervronRightIcon =
|
|
9724
|
-
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
|
|
9729
|
-
|
|
9730
|
-
|
|
9731
|
-
|
|
9732
|
-
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9723
|
+
const ChervronRightIcon = _ref => {
|
|
9724
|
+
let {
|
|
9725
|
+
width = "8",
|
|
9726
|
+
height = "13",
|
|
9727
|
+
fill = "#777575"
|
|
9728
|
+
} = _ref;
|
|
9729
|
+
return /*#__PURE__*/React$1.createElement("svg", {
|
|
9730
|
+
width: width,
|
|
9731
|
+
height: height,
|
|
9732
|
+
viewBox: "0 0 8 13",
|
|
9733
|
+
fill: "none",
|
|
9734
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9735
|
+
}, /*#__PURE__*/React$1.createElement("path", {
|
|
9736
|
+
d: "M7.33984 5.78516C7.58594 6.05859 7.58594 6.46875 7.33984 6.71484L2.08984 11.9648C1.81641 12.2383 1.40625 12.2383 1.16016 11.9648C0.886719 11.7188 0.886719 11.3086 1.16016 11.0625L5.94531 6.27734L1.16016 1.46484C0.886719 1.21875 0.886719 0.808594 1.16016 0.5625C1.40625 0.289062 1.81641 0.289062 2.0625 0.5625L7.33984 5.78516Z",
|
|
9737
|
+
fill: fill
|
|
9738
|
+
}));
|
|
9739
|
+
};
|
|
9737
9740
|
|
|
9738
|
-
const ChervronLeftIcon =
|
|
9739
|
-
|
|
9740
|
-
|
|
9741
|
-
|
|
9742
|
-
|
|
9743
|
-
|
|
9744
|
-
|
|
9745
|
-
|
|
9746
|
-
|
|
9747
|
-
|
|
9748
|
-
|
|
9749
|
-
|
|
9750
|
-
|
|
9751
|
-
|
|
9741
|
+
const ChervronLeftIcon = _ref => {
|
|
9742
|
+
let {
|
|
9743
|
+
width = 7,
|
|
9744
|
+
height = 13,
|
|
9745
|
+
fill = "#777575"
|
|
9746
|
+
} = _ref;
|
|
9747
|
+
return /*#__PURE__*/React$1.createElement("svg", {
|
|
9748
|
+
width: width,
|
|
9749
|
+
height: height,
|
|
9750
|
+
viewBox: "0 0 7 13",
|
|
9751
|
+
fill: "none",
|
|
9752
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9753
|
+
}, /*#__PURE__*/React$1.createElement("path", {
|
|
9754
|
+
d: "M0.410156 5.78516L5.66016 0.5625C5.90625 0.289062 6.31641 0.289062 6.58984 0.5625C6.83594 0.808594 6.83594 1.21875 6.58984 1.46484L1.77734 6.25L6.5625 11.0625C6.83594 11.3086 6.83594 11.7188 6.5625 11.9648C6.31641 12.2383 5.90625 12.2383 5.66016 11.9648L0.410156 6.71484C0.136719 6.46875 0.136719 6.05859 0.410156 5.78516Z",
|
|
9755
|
+
fill: fill
|
|
9756
|
+
}));
|
|
9757
|
+
};
|
|
9752
9758
|
|
|
9753
9759
|
/* eslint-disable react/prop-types */
|
|
9754
9760
|
|
|
@@ -11133,7 +11139,7 @@ const TooltipTextContainer = styled.div`
|
|
|
11133
11139
|
cursor: pointer;
|
|
11134
11140
|
}
|
|
11135
11141
|
`;
|
|
11136
|
-
const TooltipText$
|
|
11142
|
+
const TooltipText$2 = styled.div`
|
|
11137
11143
|
margin: 0;
|
|
11138
11144
|
`;
|
|
11139
11145
|
|
|
@@ -11303,8 +11309,8 @@ const FilterPanel = props => {
|
|
|
11303
11309
|
fieldsData: newFieldsDataState
|
|
11304
11310
|
});
|
|
11305
11311
|
};
|
|
11306
|
-
const getTooltipTextDates = () => /*#__PURE__*/React$1.createElement(TooltipTextContainer, null, /*#__PURE__*/React$1.createElement(TooltipText$
|
|
11307
|
-
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$2, null, "Dates can be selected"), /*#__PURE__*/React$1.createElement(TooltipText$2, null, "only after selecting"), /*#__PURE__*/React$1.createElement(TooltipText$2, null, "period types"));
|
|
11313
|
+
const getTooltipTextGoButton = () => /*#__PURE__*/React$1.createElement(TooltipTextContainer, null, /*#__PURE__*/React$1.createElement(TooltipText$2, null, tooltipTextGoButton));
|
|
11308
11314
|
const getYearsArray = () => {
|
|
11309
11315
|
const currentYear = moment().year();
|
|
11310
11316
|
const previousYear = moment().subtract(1, 'years').year();
|
|
@@ -25381,7 +25387,7 @@ const TitleAndValueContainer$3 = styled.div`
|
|
|
25381
25387
|
display: flex;
|
|
25382
25388
|
flex-direction: column;
|
|
25383
25389
|
`;
|
|
25384
|
-
const Title$
|
|
25390
|
+
const Title$e = styled.h4`
|
|
25385
25391
|
font-weight: 400;
|
|
25386
25392
|
font-size: 20px;
|
|
25387
25393
|
margin: 0;
|
|
@@ -25444,7 +25450,7 @@ const FormattedValue$3 = props => {
|
|
|
25444
25450
|
width: width
|
|
25445
25451
|
}, /*#__PURE__*/React$1.createElement(TitleAndValueContainer$3, {
|
|
25446
25452
|
className: "TitleAndValueContainer"
|
|
25447
|
-
}, title ? /*#__PURE__*/React$1.createElement(Title$
|
|
25453
|
+
}, title ? /*#__PURE__*/React$1.createElement(Title$e, {
|
|
25448
25454
|
className: "Title",
|
|
25449
25455
|
width: width
|
|
25450
25456
|
}, title) : '', showTopValue && /*#__PURE__*/React$1.createElement(CurrencySignAndFormattedValueContainer$1, {
|
|
@@ -25456,7 +25462,7 @@ const FormattedValue$3 = props => {
|
|
|
25456
25462
|
className: "CurrencySignOrPercent"
|
|
25457
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, {
|
|
25458
25464
|
className: "CurrencySignOrPercent"
|
|
25459
|
-
}, isPercent ? '%' : ''))), subtitle ? /*#__PURE__*/React$1.createElement(Title$
|
|
25465
|
+
}, isPercent ? '%' : ''))), subtitle ? /*#__PURE__*/React$1.createElement(Title$e, {
|
|
25460
25466
|
className: "Title",
|
|
25461
25467
|
width: width
|
|
25462
25468
|
}, subtitle) : '')));
|
|
@@ -25518,7 +25524,7 @@ const TooltipLabel$3 = styled.div`
|
|
|
25518
25524
|
font-weight: 400;
|
|
25519
25525
|
width: fit-content;
|
|
25520
25526
|
`;
|
|
25521
|
-
const TooltipTitle$
|
|
25527
|
+
const TooltipTitle$4 = styled.div`
|
|
25522
25528
|
color: #212121;
|
|
25523
25529
|
font-size: 14px;
|
|
25524
25530
|
font-weight: 600;
|
|
@@ -25526,7 +25532,7 @@ const TooltipTitle$3 = styled.div`
|
|
|
25526
25532
|
const TitleAndValueContainer$2 = styled.div`
|
|
25527
25533
|
padding: 0 1rem;
|
|
25528
25534
|
`;
|
|
25529
|
-
const Title$
|
|
25535
|
+
const Title$d = styled.h5`
|
|
25530
25536
|
font-weight: 500;
|
|
25531
25537
|
font-size: 18px;
|
|
25532
25538
|
line-height: 20px;
|
|
@@ -25655,7 +25661,7 @@ const TitleAndIconContainer = styled.div`
|
|
|
25655
25661
|
display: flex;
|
|
25656
25662
|
align-items: center;
|
|
25657
25663
|
`;
|
|
25658
|
-
const Title$
|
|
25664
|
+
const Title$c = styled.h4`
|
|
25659
25665
|
font-weight: 400;
|
|
25660
25666
|
font-size: 14px;
|
|
25661
25667
|
line-height: 27px;
|
|
@@ -25709,7 +25715,7 @@ const PerformanceAnalyticsLegend = props => {
|
|
|
25709
25715
|
color: item.iconColor
|
|
25710
25716
|
}) : item.iconType === ICON_TYPE_LEGEND_LINE_ICON$2 ? /*#__PURE__*/React$1.createElement(LegendLineIcon, {
|
|
25711
25717
|
color: item.iconColor
|
|
25712
|
-
}) : '', /*#__PURE__*/React$1.createElement(Title$
|
|
25718
|
+
}) : '', /*#__PURE__*/React$1.createElement(Title$c, {
|
|
25713
25719
|
id: "Title",
|
|
25714
25720
|
width: width
|
|
25715
25721
|
}, item.title))))) : '');
|
|
@@ -25807,7 +25813,7 @@ const BarChartsByWeeks = props => {
|
|
|
25807
25813
|
let currentTooltipSecondValue = 0;
|
|
25808
25814
|
if (payload[0].payload?.value) currentTooltipValue = payload[0].payload?.value;
|
|
25809
25815
|
if (payload[0].payload?.secondValue) currentTooltipSecondValue = payload[0].payload?.secondValue;
|
|
25810
|
-
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$4, null, `${isTitleOriganal ? '' : 'Week: '}${week}`), /*#__PURE__*/React$1.createElement(TooltipLabel$3, null, `${tooltipTitle}
|
|
25811
25817
|
${displayFormattedValue(currentTooltipValue)}
|
|
25812
25818
|
`), currentTooltipSecondValue ? /*#__PURE__*/React$1.createElement(TooltipLabel$3, null, `${tooltipSecondTitle}
|
|
25813
25819
|
${displayFormattedValue(currentTooltipSecondValue)}
|
|
@@ -25864,7 +25870,7 @@ const BarChartsByWeeks = props => {
|
|
|
25864
25870
|
ref: controlsContainerRef
|
|
25865
25871
|
}, /*#__PURE__*/React$1.createElement(Controls$6, {
|
|
25866
25872
|
height: getControlsHeight()
|
|
25867
|
-
}, 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$d, null, title), /*#__PURE__*/React$1.createElement(FormattedValue$3, {
|
|
25868
25874
|
title: headerValueTopTitle,
|
|
25869
25875
|
subtitle: headerValueBottomTitle,
|
|
25870
25876
|
showTopValue: showHeaderTopValue,
|
|
@@ -26097,7 +26103,7 @@ const TitleAndValueContainer$1 = styled.div`
|
|
|
26097
26103
|
flex-direction: column;
|
|
26098
26104
|
padding: 0 1.25em; /* 20px → 1.25em */
|
|
26099
26105
|
`;
|
|
26100
|
-
const Title$
|
|
26106
|
+
const Title$b = styled.h4`
|
|
26101
26107
|
font-weight: 500;
|
|
26102
26108
|
font-size: ${props => props.titleFontSize || '1.125em'}; /* Default: 18px → 1.125em */
|
|
26103
26109
|
margin: 0;
|
|
@@ -26300,7 +26306,7 @@ const TotalDoughnutChart = props => {
|
|
|
26300
26306
|
width: width
|
|
26301
26307
|
}, !hideTitleAndValue && /*#__PURE__*/React$1.createElement(TitleAndValueContainer$1, {
|
|
26302
26308
|
className: "TitleAndValueContainer"
|
|
26303
|
-
}, /*#__PURE__*/React$1.createElement(Title$
|
|
26309
|
+
}, /*#__PURE__*/React$1.createElement(Title$b, {
|
|
26304
26310
|
className: "Title",
|
|
26305
26311
|
fontSize: titleFontSize
|
|
26306
26312
|
}, title), /*#__PURE__*/React$1.createElement(CurrencySignAndFormattedValueContainer, {
|
|
@@ -26430,7 +26436,7 @@ CustomTooltip.defaultProps = {
|
|
|
26430
26436
|
isPercent: false
|
|
26431
26437
|
};
|
|
26432
26438
|
|
|
26433
|
-
const TooltipContainer$
|
|
26439
|
+
const TooltipContainer$3 = styled.div`
|
|
26434
26440
|
--tooltip-text-color: black;
|
|
26435
26441
|
--tooltip-background-color: white;
|
|
26436
26442
|
--tooltip-margin: 40px;
|
|
@@ -26536,7 +26542,7 @@ const Tooltip = props => {
|
|
|
26536
26542
|
direction,
|
|
26537
26543
|
content
|
|
26538
26544
|
} = props;
|
|
26539
|
-
return /*#__PURE__*/React$1.createElement(TooltipContainer$
|
|
26545
|
+
return /*#__PURE__*/React$1.createElement(TooltipContainer$3, {
|
|
26540
26546
|
className: className,
|
|
26541
26547
|
top: `${top}px`,
|
|
26542
26548
|
left: `${left}px`
|
|
@@ -26622,7 +26628,7 @@ const TotalValue = styled.div`
|
|
|
26622
26628
|
font-size: 20px;
|
|
26623
26629
|
}
|
|
26624
26630
|
`;
|
|
26625
|
-
const Title$
|
|
26631
|
+
const Title$a = styled.h4`
|
|
26626
26632
|
font-size: 18px;
|
|
26627
26633
|
font-weight: 400;
|
|
26628
26634
|
line-height: 1;
|
|
@@ -26779,7 +26785,7 @@ const TotalHorizontalCharts = props => {
|
|
|
26779
26785
|
}, chartsData?.length > 0 ? /*#__PURE__*/React$1.createElement(React$1.Fragment, null, !hideTitle || !hideTotalValue ? /*#__PURE__*/React$1.createElement(CardHeader, {
|
|
26780
26786
|
ref: topHeader,
|
|
26781
26787
|
className: "CardHeader"
|
|
26782
|
-
}, !hideTitle ? /*#__PURE__*/React$1.createElement(Title$
|
|
26788
|
+
}, !hideTitle ? /*#__PURE__*/React$1.createElement(Title$a, null, title) : '', !hideTotalValue ? /*#__PURE__*/React$1.createElement(TotalValue, {
|
|
26783
26789
|
className: "TotalValue"
|
|
26784
26790
|
}, currencySign && /*#__PURE__*/React$1.createElement(CurrencySign, {
|
|
26785
26791
|
className: "CurrencySign"
|
|
@@ -27252,7 +27258,7 @@ const ItemContainer = styled.div`
|
|
|
27252
27258
|
flex-direction: column;
|
|
27253
27259
|
flex-wrap: wrap;
|
|
27254
27260
|
`;
|
|
27255
|
-
const Title$
|
|
27261
|
+
const Title$9 = styled.h4`
|
|
27256
27262
|
font-size: 18px;
|
|
27257
27263
|
font-weight: 500;
|
|
27258
27264
|
margin: 0;
|
|
@@ -27368,7 +27374,7 @@ const SalesAndROI = props => {
|
|
|
27368
27374
|
showBorderShadow: showBorderShadow
|
|
27369
27375
|
}, /*#__PURE__*/React$1.createElement(TitleAndValueContainer, {
|
|
27370
27376
|
id: "TitleAndValueContainer"
|
|
27371
|
-
}, /*#__PURE__*/React$1.createElement(Title$
|
|
27377
|
+
}, /*#__PURE__*/React$1.createElement(Title$9, {
|
|
27372
27378
|
id: "Title"
|
|
27373
27379
|
}, title), showBanner && /*#__PURE__*/React$1.createElement(OutBanner, {
|
|
27374
27380
|
id: "OutBanner",
|
|
@@ -27447,7 +27453,7 @@ const ModalOverlay = styled.div`
|
|
|
27447
27453
|
justify-content: center;
|
|
27448
27454
|
align-items: center;
|
|
27449
27455
|
`;
|
|
27450
|
-
const ModalContent = styled.div`
|
|
27456
|
+
const ModalContent$1 = styled.div`
|
|
27451
27457
|
font-family: "Poppins", sans-serif;
|
|
27452
27458
|
font-weight: 500;
|
|
27453
27459
|
font-size: 18px;
|
|
@@ -27467,7 +27473,7 @@ const TitleContainer$1 = styled.div`
|
|
|
27467
27473
|
margin: 0;
|
|
27468
27474
|
border-bottom: 1px solid #b1b1b1;
|
|
27469
27475
|
`;
|
|
27470
|
-
const Title$
|
|
27476
|
+
const Title$8 = styled.p`
|
|
27471
27477
|
font-weight: 400;
|
|
27472
27478
|
font-size: 24px;
|
|
27473
27479
|
margin: 0;
|
|
@@ -27680,14 +27686,14 @@ const PopupCharts = props => {
|
|
|
27680
27686
|
}, IsPopupChartsOpen && /*#__PURE__*/React$1.createElement(ModalOverlay, {
|
|
27681
27687
|
id: "ModalOverlay",
|
|
27682
27688
|
className: "modal-overlay"
|
|
27683
|
-
}, /*#__PURE__*/React$1.createElement(ModalContent, {
|
|
27689
|
+
}, /*#__PURE__*/React$1.createElement(ModalContent$1, {
|
|
27684
27690
|
id: "ModalContent",
|
|
27685
27691
|
ref: divRef,
|
|
27686
27692
|
className: "modal-content",
|
|
27687
27693
|
height: height,
|
|
27688
27694
|
width: width,
|
|
27689
27695
|
onClick: e => e.stopPropagation()
|
|
27690
|
-
}, /*#__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$8, null, title), /*#__PURE__*/React$1.createElement(CloseXIconContainer, {
|
|
27691
27697
|
onClick: e => closePopupCharts(e)
|
|
27692
27698
|
}, /*#__PURE__*/React$1.createElement(CloseXIcon, null))), /*#__PURE__*/React$1.createElement(ChartsContainer, {
|
|
27693
27699
|
id: "ChartsContainer",
|
|
@@ -27785,7 +27791,7 @@ const TopToggleListMainContainer = styled.div`
|
|
|
27785
27791
|
padding: 0 24px;
|
|
27786
27792
|
width: ${props => props.width};
|
|
27787
27793
|
`;
|
|
27788
|
-
const Title$
|
|
27794
|
+
const Title$7 = styled.h4`
|
|
27789
27795
|
font-size: 14px;
|
|
27790
27796
|
font-weight: 600;
|
|
27791
27797
|
margin: 20px 0 12px;
|
|
@@ -27815,7 +27821,7 @@ const TopToggleList = props => {
|
|
|
27815
27821
|
} = props;
|
|
27816
27822
|
return /*#__PURE__*/React$1.createElement(TopToggleListMainContainer, {
|
|
27817
27823
|
width: width
|
|
27818
|
-
}, /*#__PURE__*/React$1.createElement(Title$
|
|
27824
|
+
}, /*#__PURE__*/React$1.createElement(Title$7, null, title), /*#__PURE__*/React$1.createElement(ListContainer, {
|
|
27819
27825
|
height: height
|
|
27820
27826
|
}, list.map(item => /*#__PURE__*/React$1.createElement(ListItem, {
|
|
27821
27827
|
key: item.value
|
|
@@ -27877,7 +27883,7 @@ const TitleContainer = styled.div`
|
|
|
27877
27883
|
justify-content: flex-start;
|
|
27878
27884
|
margin: 0 0 10px 0;
|
|
27879
27885
|
`;
|
|
27880
|
-
const Title$
|
|
27886
|
+
const Title$6 = styled.h3`
|
|
27881
27887
|
user-select: none;
|
|
27882
27888
|
text-align: left;
|
|
27883
27889
|
margin: 0;
|
|
@@ -27922,7 +27928,7 @@ const BarLabel = styled.span`
|
|
|
27922
27928
|
font-weight: 400;
|
|
27923
27929
|
user-select: none;
|
|
27924
27930
|
`;
|
|
27925
|
-
const TooltipContainer$
|
|
27931
|
+
const TooltipContainer$2 = styled.div`
|
|
27926
27932
|
position: absolute;
|
|
27927
27933
|
|
|
27928
27934
|
top: ${props => props.top};
|
|
@@ -28032,7 +28038,7 @@ const Heatmap = props => {
|
|
|
28032
28038
|
if (tooltip && tooltipPosition && tooltip.label === `${item.label} - ${Math.round(item.value / totalValue * 100)}%`) {
|
|
28033
28039
|
const top = `${tooltipPosition.y}px`;
|
|
28034
28040
|
const left = `${tooltipPosition.x}px`;
|
|
28035
|
-
return /*#__PURE__*/React$1.createElement(TooltipContainer$
|
|
28041
|
+
return /*#__PURE__*/React$1.createElement(TooltipContainer$2, {
|
|
28036
28042
|
className: "TooltipContainer",
|
|
28037
28043
|
top: top,
|
|
28038
28044
|
left: left
|
|
@@ -28152,7 +28158,7 @@ const Heatmap = props => {
|
|
|
28152
28158
|
className: "HeatmapWrapper"
|
|
28153
28159
|
}, /*#__PURE__*/React$1.createElement(TitleContainer, {
|
|
28154
28160
|
className: "TitleContainer"
|
|
28155
|
-
}, /*#__PURE__*/React$1.createElement(Title$
|
|
28161
|
+
}, /*#__PURE__*/React$1.createElement(Title$6, {
|
|
28156
28162
|
className: "Title"
|
|
28157
28163
|
}, title)), refreshRequired && renderBars(), !refreshRequired && renderBars(), renderLegend()));
|
|
28158
28164
|
};
|
|
@@ -28566,12 +28572,12 @@ const TooltipLabel$1 = styled.div`
|
|
|
28566
28572
|
font-weight: 400;
|
|
28567
28573
|
width: fit-content;
|
|
28568
28574
|
`;
|
|
28569
|
-
const TooltipTitle$
|
|
28575
|
+
const TooltipTitle$3 = styled.div`
|
|
28570
28576
|
color: #212121;
|
|
28571
28577
|
font-size: 14px;
|
|
28572
28578
|
font-weight: 600;
|
|
28573
28579
|
`;
|
|
28574
|
-
const Title$
|
|
28580
|
+
const Title$5 = styled.h5`
|
|
28575
28581
|
font-weight: 500;
|
|
28576
28582
|
font-size: 18px;
|
|
28577
28583
|
line-height: 20px;
|
|
@@ -28648,7 +28654,7 @@ const BarChart = props => {
|
|
|
28648
28654
|
if (!active || !payload || payload?.length === 0) return null;
|
|
28649
28655
|
let currentTooltipValue = 0;
|
|
28650
28656
|
if (payload[0].payload?.value) currentTooltipValue = payload[0].payload?.value;
|
|
28651
|
-
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$3, null, `${label}`), /*#__PURE__*/React$1.createElement(TooltipLabel$1, null, `${displayFormattedValue(currentTooltipValue, !!showCurrentCampaignStyle)}`));
|
|
28652
28658
|
};
|
|
28653
28659
|
const CustomizedTickBarChart = props => {
|
|
28654
28660
|
const {
|
|
@@ -28731,7 +28737,7 @@ const BarChart = props => {
|
|
|
28731
28737
|
height: height,
|
|
28732
28738
|
width: width,
|
|
28733
28739
|
ref: controlsContainerRef
|
|
28734
|
-
}, /*#__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$5, null, title), /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
|
|
28735
28741
|
width: "100%",
|
|
28736
28742
|
height: 400
|
|
28737
28743
|
}, /*#__PURE__*/React$1.createElement(BarChart$1, {
|
|
@@ -28902,7 +28908,7 @@ const Controls$2 = styled.div`
|
|
|
28902
28908
|
flex-direction: column;
|
|
28903
28909
|
background-color: white;
|
|
28904
28910
|
`;
|
|
28905
|
-
const Title$
|
|
28911
|
+
const Title$4 = styled.h5`
|
|
28906
28912
|
font-size: 18px;
|
|
28907
28913
|
font-weight: 400;
|
|
28908
28914
|
margin: 0 0 30px;
|
|
@@ -28935,7 +28941,7 @@ const TooltipLabel = styled.div`
|
|
|
28935
28941
|
font-weight: 400;
|
|
28936
28942
|
width: fit-content;
|
|
28937
28943
|
`;
|
|
28938
|
-
const TooltipTitle$
|
|
28944
|
+
const TooltipTitle$2 = styled.div`
|
|
28939
28945
|
color: #212121;
|
|
28940
28946
|
font-size: 14px;
|
|
28941
28947
|
font-weight: 600;
|
|
@@ -29088,7 +29094,7 @@ const DoubleBarSingleLine = props => {
|
|
|
29088
29094
|
} else {
|
|
29089
29095
|
`${currentTooltipValue.toFixed(1)}`;
|
|
29090
29096
|
}
|
|
29091
|
-
return /*#__PURE__*/React$1.createElement(TooltipDiv, null, /*#__PURE__*/React$1.createElement(TooltipTitle$
|
|
29097
|
+
return /*#__PURE__*/React$1.createElement(TooltipDiv, null, /*#__PURE__*/React$1.createElement(TooltipTitle$2, null, `${label}`), payload.map((item, idx) => {
|
|
29092
29098
|
const dataStateItem = dataState.find(state => state.key === item.dataKey);
|
|
29093
29099
|
return /*#__PURE__*/React$1.createElement(TooltipLabel, {
|
|
29094
29100
|
key: item.dataKey || idx
|
|
@@ -29161,7 +29167,7 @@ const DoubleBarSingleLine = props => {
|
|
|
29161
29167
|
noDataText: noDataText
|
|
29162
29168
|
}) : /*#__PURE__*/React$1.createElement(Controls$2, {
|
|
29163
29169
|
className: "Controls"
|
|
29164
|
-
}, title && title.trim() !== '' && /*#__PURE__*/React$1.createElement(Title$
|
|
29170
|
+
}, title && title.trim() !== '' && /*#__PURE__*/React$1.createElement(Title$4, null, title), /*#__PURE__*/React$1.createElement(ChartsWrapper, {
|
|
29165
29171
|
width: hasScroll ? `${data.length * 178}px` : 'auto'
|
|
29166
29172
|
}, /*#__PURE__*/React$1.createElement(LineChartWrapper, null, /*#__PURE__*/React$1.createElement(ResponsiveContainer, null, /*#__PURE__*/React$1.createElement(LineChart, _extends({
|
|
29167
29173
|
data: transformedData
|
|
@@ -29260,7 +29266,7 @@ const CheckboxGroupContainer = styled.div`
|
|
|
29260
29266
|
height: 21px;
|
|
29261
29267
|
gap: 20px;
|
|
29262
29268
|
`;
|
|
29263
|
-
const Title$
|
|
29269
|
+
const Title$3 = styled.h5`
|
|
29264
29270
|
font-weight: 500;
|
|
29265
29271
|
font-size: 18px;
|
|
29266
29272
|
line-height: 20px;
|
|
@@ -29280,7 +29286,7 @@ const LegendIcon = styled.div`
|
|
|
29280
29286
|
margin-right: 5px;
|
|
29281
29287
|
background-color: ${props => props.color};
|
|
29282
29288
|
`;
|
|
29283
|
-
const TooltipContainer = styled.div`
|
|
29289
|
+
const TooltipContainer$1 = styled.div`
|
|
29284
29290
|
background: white;
|
|
29285
29291
|
padding: 10px;
|
|
29286
29292
|
border-radius: 5px;
|
|
@@ -29290,12 +29296,12 @@ const TooltipContainer = styled.div`
|
|
|
29290
29296
|
font-weight: 500;
|
|
29291
29297
|
font-size: 14px;
|
|
29292
29298
|
`;
|
|
29293
|
-
const TooltipTitle = styled.p`
|
|
29299
|
+
const TooltipTitle$1 = styled.p`
|
|
29294
29300
|
font-weight: 700;
|
|
29295
29301
|
margin-top: 5px;
|
|
29296
29302
|
margin-bottom: 5px;
|
|
29297
29303
|
`;
|
|
29298
|
-
const TooltipText = styled.p`
|
|
29304
|
+
const TooltipText$1 = styled.p`
|
|
29299
29305
|
margin-top: 5px;
|
|
29300
29306
|
margin-bottom: 5px;
|
|
29301
29307
|
`;
|
|
@@ -29536,10 +29542,10 @@ const AreaChart = props => {
|
|
|
29536
29542
|
payload
|
|
29537
29543
|
} = _ref3;
|
|
29538
29544
|
if (active && payload && payload.length) {
|
|
29539
|
-
return /*#__PURE__*/React$1.createElement(TooltipContainer, null, /*#__PURE__*/React$1.createElement(TooltipTitle, null, `${payload[0].payload.label}`), payload.map((data, index) => {
|
|
29545
|
+
return /*#__PURE__*/React$1.createElement(TooltipContainer$1, null, /*#__PURE__*/React$1.createElement(TooltipTitle$1, null, `${payload[0].payload.label}`), payload.map((data, index) => {
|
|
29540
29546
|
const chart = areaChartsState.find(chart => chart.key === data.dataKey);
|
|
29541
29547
|
if (chart) {
|
|
29542
|
-
return /*#__PURE__*/React$1.createElement(TooltipText, {
|
|
29548
|
+
return /*#__PURE__*/React$1.createElement(TooltipText$1, {
|
|
29543
29549
|
key: index
|
|
29544
29550
|
}, `${chart.name}: ${displayFormattedValue(data.value, chart.isDollar)}`);
|
|
29545
29551
|
}
|
|
@@ -29588,7 +29594,7 @@ const AreaChart = props => {
|
|
|
29588
29594
|
height: height
|
|
29589
29595
|
}) : /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(HeaderContainer$2, {
|
|
29590
29596
|
"data-testid": "header-container"
|
|
29591
|
-
}, /*#__PURE__*/React$1.createElement(Title$
|
|
29597
|
+
}, /*#__PURE__*/React$1.createElement(Title$3, {
|
|
29592
29598
|
"data-testid": "title"
|
|
29593
29599
|
}, title), /*#__PURE__*/React$1.createElement(CheckboxGroupContainer, {
|
|
29594
29600
|
"data-testid": "checkbox-group-container"
|
|
@@ -30086,7 +30092,7 @@ const HeaderContainer$1 = styled.div`
|
|
|
30086
30092
|
align-items: center;
|
|
30087
30093
|
padding-bottom: 8px;
|
|
30088
30094
|
`;
|
|
30089
|
-
const Title = styled.h3`
|
|
30095
|
+
const Title$2 = styled.h3`
|
|
30090
30096
|
font-size: 18px;
|
|
30091
30097
|
font-weight: 400;
|
|
30092
30098
|
margin: 0;
|
|
@@ -30155,7 +30161,7 @@ const BreakdownPanel = props => {
|
|
|
30155
30161
|
height: height
|
|
30156
30162
|
}) : /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(HeaderContainer$1, {
|
|
30157
30163
|
"data-testid": "header-container"
|
|
30158
|
-
}, /*#__PURE__*/React$1.createElement(Title, {
|
|
30164
|
+
}, /*#__PURE__*/React$1.createElement(Title$2, {
|
|
30159
30165
|
"data-testid": "title"
|
|
30160
30166
|
}, title)), /*#__PURE__*/React$1.createElement(CategorySalesMainContainer, {
|
|
30161
30167
|
"data-testid": "category-sales-main-container"
|
|
@@ -31397,42 +31403,27 @@ const BatteryChart = props => {
|
|
|
31397
31403
|
}))))))), starText !== "" && /*#__PURE__*/React$1.createElement(StarText, null, starText));
|
|
31398
31404
|
};
|
|
31399
31405
|
|
|
31400
|
-
// const originalData = [
|
|
31401
|
-
// { label: "Vendor Selling Event: Week 34", inc_sales: 20000, inc_roi: 1.2 },
|
|
31402
|
-
// { label: "Vendor Selling Event: Week 36", inc_sales: 10000, inc_roi: 1.2 },
|
|
31403
|
-
// { label: "Vendor Selling Event: Week 38", inc_sales: 8000, inc_roi: 0.8 },
|
|
31404
|
-
// { label: "Vendor Selling Event: Week 33", inc_sales: 12000, inc_roi: 1.1 },
|
|
31405
|
-
// { label: "Vendor Selling Event: Week 29", inc_sales: 8000, inc_roi: 1.2 },
|
|
31406
|
-
// { label: "Vendor Selling Event: Week 28", inc_sales: 8000, inc_roi: 0.7 },
|
|
31407
|
-
// { label: "Vendor Selling Event: Week 35", inc_sales: 8000, inc_roi: 0.8 },
|
|
31408
|
-
// { label: "Vendor Selling Event: Week 30", inc_sales: 9000, inc_roi: 1.1 },
|
|
31409
|
-
// ];
|
|
31410
|
-
|
|
31411
31406
|
const SeparatedLineBarChart = ({
|
|
31412
|
-
|
|
31407
|
+
BrushAreaBarData = []
|
|
31413
31408
|
}) => {
|
|
31414
|
-
//
|
|
31415
|
-
const
|
|
31416
|
-
|
|
31417
|
-
|
|
31418
|
-
|
|
31409
|
+
// Use simple data processing like in the working example
|
|
31410
|
+
const processedData = BrushAreaBarData.map(item => {
|
|
31411
|
+
return {
|
|
31412
|
+
...item,
|
|
31413
|
+
// Keep the full label for tooltip and filtering
|
|
31414
|
+
shortLabel: item.label.replace("Vendor Selling Event: ", "Wk ")
|
|
31415
|
+
};
|
|
31419
31416
|
});
|
|
31420
|
-
|
|
31421
|
-
|
|
31422
|
-
|
|
31423
|
-
|
|
31424
|
-
|
|
31425
|
-
|
|
31426
|
-
|
|
31427
|
-
|
|
31428
|
-
payload
|
|
31429
|
-
viewableIndices
|
|
31430
|
-
}) => {
|
|
31431
|
-
const label = dataWithIndex[payload.value]?.label ?? "";
|
|
31417
|
+
|
|
31418
|
+
// CustomTick component for the X-axis (similar to working example)
|
|
31419
|
+
const CustomizedTick = props => {
|
|
31420
|
+
const {
|
|
31421
|
+
x,
|
|
31422
|
+
y,
|
|
31423
|
+
payload
|
|
31424
|
+
} = props;
|
|
31425
|
+
const label = payload.value;
|
|
31432
31426
|
const parts = label.replace("Vendor Selling Event: ", "").split(" ");
|
|
31433
|
-
if (!viewableIndices.includes(payload.value)) {
|
|
31434
|
-
return null;
|
|
31435
|
-
}
|
|
31436
31427
|
return /*#__PURE__*/React$1.createElement("g", {
|
|
31437
31428
|
transform: `translate(${x},${y})`
|
|
31438
31429
|
}, /*#__PURE__*/React$1.createElement("text", {
|
|
@@ -31442,7 +31433,7 @@ const SeparatedLineBarChart = ({
|
|
|
31442
31433
|
textAnchor: "middle",
|
|
31443
31434
|
fill: "#212121",
|
|
31444
31435
|
fontSize: 11,
|
|
31445
|
-
fontWeight:
|
|
31436
|
+
fontWeight: 400,
|
|
31446
31437
|
fontFamily: "Poppins"
|
|
31447
31438
|
}, /*#__PURE__*/React$1.createElement("tspan", {
|
|
31448
31439
|
x: 0,
|
|
@@ -31452,51 +31443,57 @@ const SeparatedLineBarChart = ({
|
|
|
31452
31443
|
dy: 18
|
|
31453
31444
|
}, "Event: ", parts.join(" "))));
|
|
31454
31445
|
};
|
|
31455
|
-
|
|
31456
|
-
|
|
31457
|
-
|
|
31458
|
-
|
|
31459
|
-
|
|
31460
|
-
|
|
31461
|
-
|
|
31462
|
-
|
|
31463
|
-
|
|
31464
|
-
|
|
31465
|
-
|
|
31466
|
-
|
|
31467
|
-
|
|
31468
|
-
|
|
31469
|
-
|
|
31470
|
-
|
|
31471
|
-
|
|
31472
|
-
|
|
31473
|
-
|
|
31474
|
-
}
|
|
31475
|
-
|
|
31476
|
-
|
|
31477
|
-
|
|
31478
|
-
|
|
31479
|
-
|
|
31446
|
+
|
|
31447
|
+
// Custom tooltip (similar to the working example)
|
|
31448
|
+
const CustomTooltip = ({
|
|
31449
|
+
active,
|
|
31450
|
+
payload,
|
|
31451
|
+
label
|
|
31452
|
+
}) => {
|
|
31453
|
+
if (!active || !payload || !payload.length) return null;
|
|
31454
|
+
|
|
31455
|
+
// Find the data item based on index
|
|
31456
|
+
const data = payload[0]?.payload;
|
|
31457
|
+
if (!data) return null;
|
|
31458
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
31459
|
+
style: {
|
|
31460
|
+
backgroundColor: "white",
|
|
31461
|
+
padding: "10px",
|
|
31462
|
+
border: "1px solid #ccc",
|
|
31463
|
+
borderRadius: "4px",
|
|
31464
|
+
fontFamily: "Poppins"
|
|
31465
|
+
}
|
|
31466
|
+
}, /*#__PURE__*/React$1.createElement("p", {
|
|
31467
|
+
style: {
|
|
31468
|
+
margin: "0 0 5px",
|
|
31469
|
+
fontWeight: "bold"
|
|
31470
|
+
}
|
|
31471
|
+
}, "EVENT_NAME.DIM_EVENTS: ", data.label), /*#__PURE__*/React$1.createElement("p", {
|
|
31472
|
+
style: {
|
|
31473
|
+
margin: "0 0 5px"
|
|
31474
|
+
}
|
|
31475
|
+
}, "EVENT_DESCRIPTION.DIM_EVENTS: ", data.description || "N/A"), /*#__PURE__*/React$1.createElement("p", {
|
|
31476
|
+
style: {
|
|
31477
|
+
margin: "0 0 5px"
|
|
31478
|
+
}
|
|
31479
|
+
}, "INC Sales: ", data.inc_sales?.toLocaleString()), /*#__PURE__*/React$1.createElement("p", {
|
|
31480
|
+
style: {
|
|
31481
|
+
margin: "0"
|
|
31482
|
+
}
|
|
31483
|
+
}, "INC Sales ROI: ", data.inc_roi?.toFixed(1)));
|
|
31480
31484
|
};
|
|
31485
|
+
|
|
31486
|
+
// Chart margins (same as in both examples)
|
|
31481
31487
|
const chartMargins = {
|
|
31482
|
-
top:
|
|
31483
|
-
right:
|
|
31488
|
+
top: 30,
|
|
31489
|
+
right: 30,
|
|
31484
31490
|
left: 20,
|
|
31485
|
-
bottom:
|
|
31491
|
+
bottom: 60
|
|
31486
31492
|
};
|
|
31487
|
-
const [viewWindow, setViewWindow] = useState({
|
|
31488
|
-
startIndex: 0,
|
|
31489
|
-
endIndex: dataWithIndex.length - 1
|
|
31490
|
-
});
|
|
31491
|
-
const viewableIndices = [];
|
|
31492
|
-
for (let i = viewWindow.startIndex; i <= viewWindow.endIndex; i++) {
|
|
31493
|
-
viewableIndices.push(i);
|
|
31494
|
-
}
|
|
31495
|
-
dataWithIndex.filter(item => viewableIndices.includes(item.index));
|
|
31496
31493
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
31497
31494
|
style: {
|
|
31498
31495
|
width: "100%",
|
|
31499
|
-
height:
|
|
31496
|
+
height: "700px"
|
|
31500
31497
|
}
|
|
31501
31498
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
31502
31499
|
style: {
|
|
@@ -31506,24 +31503,21 @@ const SeparatedLineBarChart = ({
|
|
|
31506
31503
|
width: "100%",
|
|
31507
31504
|
height: "100%"
|
|
31508
31505
|
}, /*#__PURE__*/React$1.createElement(LineChart, {
|
|
31509
|
-
data:
|
|
31506
|
+
data: processedData,
|
|
31510
31507
|
margin: chartMargins
|
|
31511
31508
|
}, /*#__PURE__*/React$1.createElement(CartesianGrid, {
|
|
31512
31509
|
strokeDasharray: "3 3",
|
|
31513
31510
|
vertical: false
|
|
31514
31511
|
}), /*#__PURE__*/React$1.createElement(XAxis, {
|
|
31515
|
-
dataKey: "
|
|
31516
|
-
|
|
31517
|
-
domain: ['dataMin', 'dataMax'],
|
|
31518
|
-
padding: {
|
|
31519
|
-
left: 20,
|
|
31520
|
-
right: 20
|
|
31521
|
-
},
|
|
31512
|
+
dataKey: "label",
|
|
31513
|
+
tick: false,
|
|
31522
31514
|
hide: true
|
|
31523
31515
|
}), /*#__PURE__*/React$1.createElement(YAxis, {
|
|
31524
31516
|
domain: [0, 2],
|
|
31525
31517
|
hide: true
|
|
31526
|
-
}), /*#__PURE__*/React$1.createElement(Tooltip$2,
|
|
31518
|
+
}), /*#__PURE__*/React$1.createElement(Tooltip$2, {
|
|
31519
|
+
content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
|
|
31520
|
+
}), /*#__PURE__*/React$1.createElement(Line, {
|
|
31527
31521
|
type: "monotone",
|
|
31528
31522
|
dataKey: "inc_roi",
|
|
31529
31523
|
stroke: "#F8CD00",
|
|
@@ -31534,11 +31528,14 @@ const SeparatedLineBarChart = ({
|
|
|
31534
31528
|
},
|
|
31535
31529
|
activeDot: false,
|
|
31536
31530
|
name: "INC Sales ROI"
|
|
31537
|
-
}, /*#__PURE__*/React$1.createElement(
|
|
31531
|
+
}, /*#__PURE__*/React$1.createElement(LabelList, {
|
|
31538
31532
|
dataKey: "inc_roi",
|
|
31539
31533
|
position: "top",
|
|
31540
31534
|
formatter: value => value.toFixed(1),
|
|
31541
|
-
|
|
31535
|
+
fill: "#212121",
|
|
31536
|
+
fontSize: 12,
|
|
31537
|
+
fontWeight: "400",
|
|
31538
|
+
fontFamily: "Poppins"
|
|
31542
31539
|
}))))), /*#__PURE__*/React$1.createElement("div", {
|
|
31543
31540
|
style: {
|
|
31544
31541
|
height: "60%"
|
|
@@ -31547,59 +31544,47 @@ const SeparatedLineBarChart = ({
|
|
|
31547
31544
|
width: "100%",
|
|
31548
31545
|
height: "100%"
|
|
31549
31546
|
}, /*#__PURE__*/React$1.createElement(ComposedChart, {
|
|
31550
|
-
data:
|
|
31547
|
+
data: processedData,
|
|
31551
31548
|
margin: chartMargins
|
|
31552
31549
|
}, /*#__PURE__*/React$1.createElement(CartesianGrid, {
|
|
31553
31550
|
strokeDasharray: "3 3",
|
|
31554
31551
|
vertical: false
|
|
31555
31552
|
}), /*#__PURE__*/React$1.createElement(XAxis, {
|
|
31556
|
-
dataKey: "
|
|
31557
|
-
|
|
31558
|
-
domain: ['dataMin', 'dataMax'],
|
|
31559
|
-
padding: {
|
|
31560
|
-
left: 20,
|
|
31561
|
-
right: 20
|
|
31562
|
-
},
|
|
31563
|
-
tick: props => /*#__PURE__*/React$1.createElement(CustomizedTick, _extends({}, props, {
|
|
31564
|
-
viewableIndices: viewableIndices
|
|
31565
|
-
})),
|
|
31553
|
+
dataKey: "label",
|
|
31554
|
+
tick: /*#__PURE__*/React$1.createElement(CustomizedTick, null),
|
|
31566
31555
|
interval: 0,
|
|
31567
31556
|
height: 60,
|
|
31568
|
-
tickLine: false
|
|
31569
|
-
ticks: dataWithIndex.map(item => item.index)
|
|
31557
|
+
tickLine: false
|
|
31570
31558
|
}), /*#__PURE__*/React$1.createElement(YAxis, {
|
|
31571
31559
|
tickFormatter: v => `${v / 1000}k`,
|
|
31572
31560
|
hide: true
|
|
31573
|
-
}), /*#__PURE__*/React$1.createElement(Tooltip$2,
|
|
31561
|
+
}), /*#__PURE__*/React$1.createElement(Tooltip$2, {
|
|
31562
|
+
content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
|
|
31563
|
+
}), /*#__PURE__*/React$1.createElement(Bar, {
|
|
31574
31564
|
dataKey: "inc_sales",
|
|
31575
31565
|
fill: "#CCDCDD",
|
|
31576
|
-
gap:
|
|
31566
|
+
gap: 4,
|
|
31577
31567
|
borderRadius: [4, 4, 0, 8],
|
|
31578
31568
|
barSize: 40,
|
|
31579
31569
|
name: "INC Sales"
|
|
31580
|
-
}, /*#__PURE__*/React$1.createElement(
|
|
31570
|
+
}, /*#__PURE__*/React$1.createElement(LabelList, {
|
|
31581
31571
|
dataKey: "inc_sales",
|
|
31582
31572
|
position: "top",
|
|
31583
31573
|
formatter: value => `${value / 1000}k`,
|
|
31584
|
-
|
|
31574
|
+
fill: "#212121",
|
|
31575
|
+
fontSize: 12,
|
|
31576
|
+
fontWeight: "400",
|
|
31577
|
+
fontFamily: "Poppins"
|
|
31585
31578
|
})), /*#__PURE__*/React$1.createElement(Brush, {
|
|
31586
|
-
dataKey: "
|
|
31579
|
+
dataKey: "label",
|
|
31587
31580
|
height: 30,
|
|
31588
31581
|
stroke: "#212121",
|
|
31589
|
-
startIndex:
|
|
31590
|
-
endIndex:
|
|
31591
|
-
|
|
31592
|
-
|
|
31593
|
-
|
|
31594
|
-
|
|
31595
|
-
});
|
|
31596
|
-
},
|
|
31597
|
-
travellerWidth: 12
|
|
31598
|
-
})), /*#__PURE__*/React$1.createElement("div", {
|
|
31599
|
-
style: {
|
|
31600
|
-
marginTop: "-28px"
|
|
31601
|
-
}
|
|
31602
|
-
}, /*#__PURE__*/React$1.createElement(PerformanceAnalyticsLegend, {
|
|
31582
|
+
startIndex: 0,
|
|
31583
|
+
endIndex: Math.min(4, processedData.length - 1),
|
|
31584
|
+
y: 330,
|
|
31585
|
+
travellerWidth: 10,
|
|
31586
|
+
tickFormatter: (value, index) => index + 1
|
|
31587
|
+
})), /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(PerformanceAnalyticsLegend, {
|
|
31603
31588
|
legendData: [{
|
|
31604
31589
|
iconColor: "#CCDCDD",
|
|
31605
31590
|
iconType: "Square",
|
|
@@ -31613,9 +31598,11 @@ const SeparatedLineBarChart = ({
|
|
|
31613
31598
|
};
|
|
31614
31599
|
|
|
31615
31600
|
function SingleChart({
|
|
31616
|
-
|
|
31601
|
+
BrushBarBasketData,
|
|
31602
|
+
height = 450,
|
|
31603
|
+
width = "100%"
|
|
31617
31604
|
}) {
|
|
31618
|
-
const dataWithIndex =
|
|
31605
|
+
const dataWithIndex = BrushBarBasketData?.map((item, index) => ({
|
|
31619
31606
|
...item,
|
|
31620
31607
|
index,
|
|
31621
31608
|
shortLabel: item.label.replace("Vendor Selling Event: ", "Wk ")
|
|
@@ -31646,20 +31633,15 @@ function SingleChart({
|
|
|
31646
31633
|
dy: 18
|
|
31647
31634
|
}, "Event: ", parts.join(" "))));
|
|
31648
31635
|
};
|
|
31649
|
-
|
|
31650
|
-
|
|
31636
|
+
useState(0);
|
|
31637
|
+
useState(dataWithIndex?.length - 1);
|
|
31651
31638
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
31652
31639
|
style: {
|
|
31653
|
-
width: "100%"
|
|
31654
|
-
height: 600
|
|
31655
|
-
}
|
|
31656
|
-
}, /*#__PURE__*/React$1.createElement("div", {
|
|
31657
|
-
style: {
|
|
31658
|
-
height: "100%"
|
|
31640
|
+
width: "100%"
|
|
31659
31641
|
}
|
|
31660
31642
|
}, /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
|
|
31661
|
-
width:
|
|
31662
|
-
height:
|
|
31643
|
+
width: width,
|
|
31644
|
+
height: height
|
|
31663
31645
|
}, /*#__PURE__*/React$1.createElement(ComposedChart, {
|
|
31664
31646
|
data: dataWithIndex,
|
|
31665
31647
|
margin: {
|
|
@@ -31700,23 +31682,18 @@ function SingleChart({
|
|
|
31700
31682
|
fontWeight: "400",
|
|
31701
31683
|
fontFamily: "Poppins"
|
|
31702
31684
|
})), /*#__PURE__*/React$1.createElement(Brush, {
|
|
31703
|
-
dataKey: "index",
|
|
31704
31685
|
height: 30,
|
|
31705
|
-
|
|
31706
|
-
startIndex:
|
|
31707
|
-
endIndex:
|
|
31708
|
-
|
|
31709
|
-
setStartIndex(e.startIndex ?? 0);
|
|
31710
|
-
setEndIndex(e.endIndex ?? dataWithIndex?.length - 1);
|
|
31711
|
-
},
|
|
31712
|
-
travellerWidth: 12
|
|
31686
|
+
travellerWidth: 10,
|
|
31687
|
+
startIndex: 0,
|
|
31688
|
+
endIndex: 5,
|
|
31689
|
+
y: 380
|
|
31713
31690
|
})), /*#__PURE__*/React$1.createElement(PerformanceAnalyticsLegend, {
|
|
31714
31691
|
legendData: [{
|
|
31715
31692
|
iconColor: "#CCDCDD",
|
|
31716
31693
|
iconType: "Square",
|
|
31717
31694
|
title: "INC Units"
|
|
31718
31695
|
}]
|
|
31719
|
-
})))
|
|
31696
|
+
})));
|
|
31720
31697
|
}
|
|
31721
31698
|
|
|
31722
31699
|
styled.div`
|
|
@@ -31946,10 +31923,69 @@ SegmentedButton.defaultProps = {
|
|
|
31946
31923
|
onClick: () => {}
|
|
31947
31924
|
};
|
|
31948
31925
|
|
|
31926
|
+
const Container = styled.div`
|
|
31927
|
+
width: ${props => props.width};
|
|
31928
|
+
height: ${props => props.height};
|
|
31929
|
+
padding: 15px;
|
|
31930
|
+
display: flex;
|
|
31931
|
+
flex-direction: column;
|
|
31932
|
+
#Segment {
|
|
31933
|
+
width: auto;
|
|
31934
|
+
white-space: nowrap;
|
|
31935
|
+
font-size: 14px;
|
|
31936
|
+
font-weight: 500;
|
|
31937
|
+
font-family: "Poppins"
|
|
31938
|
+
}
|
|
31939
|
+
`;
|
|
31940
|
+
const Title$1 = styled.h2`
|
|
31941
|
+
color: #212121;
|
|
31942
|
+
font-family: "Poppins";
|
|
31943
|
+
font-size: 18px;
|
|
31944
|
+
font-style: normal;
|
|
31945
|
+
font-weight: 400;
|
|
31946
|
+
line-height: normal;
|
|
31947
|
+
margin: 0 0 16px 0;
|
|
31948
|
+
`;
|
|
31949
|
+
styled.div`
|
|
31950
|
+
font-family: sans-serif;
|
|
31951
|
+
text-align: center;
|
|
31952
|
+
`;
|
|
31953
|
+
styled.div`
|
|
31954
|
+
height: 25%;
|
|
31955
|
+
`;
|
|
31956
|
+
styled.div`
|
|
31957
|
+
height: 75%;
|
|
31958
|
+
`;
|
|
31959
|
+
styled.div`
|
|
31960
|
+
height: 100%;
|
|
31961
|
+
display: flex;
|
|
31962
|
+
flex-direction: column;
|
|
31963
|
+
background-color: white;
|
|
31964
|
+
`;
|
|
31965
|
+
const TooltipContainer = styled.div`
|
|
31966
|
+
background: white;
|
|
31967
|
+
padding: 10px;
|
|
31968
|
+
border-radius: 5px;
|
|
31969
|
+
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
|
|
31970
|
+
border: 1px solid #ddd;
|
|
31971
|
+
font-family: Poppins, sans-serif;
|
|
31972
|
+
font-weight: 500;
|
|
31973
|
+
font-size: 14px;
|
|
31974
|
+
`;
|
|
31975
|
+
const TooltipTitle = styled.p`
|
|
31976
|
+
font-weight: 700;
|
|
31977
|
+
margin-top: 5px;
|
|
31978
|
+
margin-bottom: 5px;
|
|
31979
|
+
`;
|
|
31980
|
+
const TooltipText = styled.p`
|
|
31981
|
+
margin-top: 5px;
|
|
31982
|
+
margin-bottom: 5px;
|
|
31983
|
+
`;
|
|
31984
|
+
|
|
31949
31985
|
function InnerBarChart({
|
|
31950
|
-
|
|
31986
|
+
brushInnerBarData
|
|
31951
31987
|
}) {
|
|
31952
|
-
const processedData =
|
|
31988
|
+
const processedData = brushInnerBarData.map(item => {
|
|
31953
31989
|
const parts = item.label.replace("Vendor Selling Event:", "").trim();
|
|
31954
31990
|
return {
|
|
31955
31991
|
...item,
|
|
@@ -32010,9 +32046,8 @@ function InnerBarChart({
|
|
|
32010
32046
|
}) => {
|
|
32011
32047
|
if (!active || !payload || !payload.length) return null;
|
|
32012
32048
|
const data = payload[0].payload;
|
|
32013
|
-
|
|
32014
|
-
|
|
32015
|
-
}, /*#__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)));
|
|
32049
|
+
const repeaterPercentage = (data.actual / data.total * 100).toFixed(1);
|
|
32050
|
+
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, `New Shoppers: ${format(data.total)}`), /*#__PURE__*/React$1.createElement(TooltipText, null, `Repeaters: ${format(data.actual)}`), /*#__PURE__*/React$1.createElement(TooltipText, null, `% Repeaters: ${repeaterPercentage}%`));
|
|
32016
32051
|
};
|
|
32017
32052
|
const CustomizedTick = props => {
|
|
32018
32053
|
const {
|
|
@@ -32044,9 +32079,7 @@ function InnerBarChart({
|
|
|
32044
32079
|
};
|
|
32045
32080
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
32046
32081
|
className: "w-full"
|
|
32047
|
-
}, /*#__PURE__*/React$1.createElement(
|
|
32048
|
-
className: "text-lg font-medium mb-4 text-center"
|
|
32049
|
-
}, "Vendor Selling Events Comparison"), /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
|
|
32082
|
+
}, /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
|
|
32050
32083
|
width: "100%",
|
|
32051
32084
|
height: 450
|
|
32052
32085
|
}, /*#__PURE__*/React$1.createElement(BarChart$1, {
|
|
@@ -32068,7 +32101,8 @@ function InnerBarChart({
|
|
|
32068
32101
|
}), /*#__PURE__*/React$1.createElement(YAxis, {
|
|
32069
32102
|
type: "number",
|
|
32070
32103
|
domain: [0, "dataMax + 2000"],
|
|
32071
|
-
tickFormatter: format
|
|
32104
|
+
tickFormatter: format,
|
|
32105
|
+
hide: true
|
|
32072
32106
|
}), /*#__PURE__*/React$1.createElement(Tooltip$2, {
|
|
32073
32107
|
content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
|
|
32074
32108
|
}), /*#__PURE__*/React$1.createElement(Brush, {
|
|
@@ -32084,51 +32118,22 @@ function InnerBarChart({
|
|
|
32084
32118
|
}))));
|
|
32085
32119
|
}
|
|
32086
32120
|
|
|
32087
|
-
const Container = styled.div`
|
|
32088
|
-
width: ${props => props.width};
|
|
32089
|
-
height: ${props => props.height};
|
|
32090
|
-
padding: 15px;
|
|
32091
|
-
display: flex;
|
|
32092
|
-
flex-direction: column;
|
|
32093
|
-
#Segment {
|
|
32094
|
-
width: auto;
|
|
32095
|
-
white-space: nowrap;
|
|
32096
|
-
font-size: 14px;
|
|
32097
|
-
font-weight: 500;
|
|
32098
|
-
font-family: "Poppins"
|
|
32099
|
-
}
|
|
32100
|
-
`;
|
|
32101
|
-
styled.div`
|
|
32102
|
-
font-family: sans-serif;
|
|
32103
|
-
text-align: center;
|
|
32104
|
-
`;
|
|
32105
|
-
styled.div`
|
|
32106
|
-
height: 25%;
|
|
32107
|
-
`;
|
|
32108
|
-
styled.div`
|
|
32109
|
-
height: 75%;
|
|
32110
|
-
`;
|
|
32111
|
-
styled.div`
|
|
32112
|
-
height: 100%;
|
|
32113
|
-
display: flex;
|
|
32114
|
-
flex-direction: column;
|
|
32115
|
-
background-color: white;
|
|
32116
|
-
`;
|
|
32117
|
-
|
|
32118
32121
|
const BrushChart = props => {
|
|
32119
32122
|
const {
|
|
32120
32123
|
width,
|
|
32121
32124
|
height,
|
|
32122
|
-
|
|
32123
|
-
|
|
32124
|
-
|
|
32125
|
+
brushInnerBarData,
|
|
32126
|
+
BrushBarIncData,
|
|
32127
|
+
BrushAreaBarData,
|
|
32128
|
+
BrushBarBasketData,
|
|
32129
|
+
title
|
|
32125
32130
|
} = props;
|
|
32126
32131
|
const segmentedbuttonOptions = ["New Shoppers & Repeaters", "INC Sales & ROI", "INC Units", "Basket Lift"];
|
|
32127
32132
|
const [selectedOption, setSelectedOption] = useState(segmentedbuttonOptions[0]);
|
|
32128
32133
|
return /*#__PURE__*/React$1.createElement(Container, {
|
|
32129
32134
|
height: height,
|
|
32130
32135
|
width: width
|
|
32131
|
-
}, /*#__PURE__*/React$1.createElement(SegmentedButton, {
|
|
32136
|
+
}, /*#__PURE__*/React$1.createElement(Title$1, null, title), /*#__PURE__*/React$1.createElement(SegmentedButton, {
|
|
32132
32137
|
gap: "8px",
|
|
32133
32138
|
options: segmentedbuttonOptions.map(value => ({
|
|
32134
32139
|
value
|
|
@@ -32140,15 +32145,307 @@ const BrushChart = props => {
|
|
|
32140
32145
|
return setSelectedOption(value);
|
|
32141
32146
|
}
|
|
32142
32147
|
}), selectedOption === "New Shoppers & Repeaters" && /*#__PURE__*/React$1.createElement(InnerBarChart, {
|
|
32143
|
-
|
|
32148
|
+
brushInnerBarData: brushInnerBarData
|
|
32144
32149
|
}), selectedOption === "INC Sales & ROI" && /*#__PURE__*/React$1.createElement(SeparatedLineBarChart, {
|
|
32145
|
-
|
|
32150
|
+
BrushAreaBarData: BrushAreaBarData
|
|
32146
32151
|
}), selectedOption === "INC Units" && /*#__PURE__*/React$1.createElement(SingleChart, {
|
|
32147
|
-
|
|
32152
|
+
BrushBarIncData: BrushBarIncData
|
|
32148
32153
|
}), selectedOption === "Basket Lift" && /*#__PURE__*/React$1.createElement(SingleChart, {
|
|
32149
|
-
|
|
32154
|
+
BrushBarBasketData: BrushBarBasketData
|
|
32150
32155
|
}));
|
|
32151
32156
|
};
|
|
32152
32157
|
|
|
32153
|
-
|
|
32158
|
+
const Overlay = styled.div`
|
|
32159
|
+
position: fixed;
|
|
32160
|
+
top: 0;
|
|
32161
|
+
left: 0;
|
|
32162
|
+
width: 100%;
|
|
32163
|
+
height: 100%;
|
|
32164
|
+
background: rgba(0, 0, 0, 0.5);
|
|
32165
|
+
display: flex;
|
|
32166
|
+
justify-content: center;
|
|
32167
|
+
align-items: center;
|
|
32168
|
+
z-index: 999;
|
|
32169
|
+
`;
|
|
32170
|
+
const ModalContent = styled.div`
|
|
32171
|
+
position: absolute;
|
|
32172
|
+
width: 69%;
|
|
32173
|
+
height: 100%;
|
|
32174
|
+
padding: 8rem 0 4rem;
|
|
32175
|
+
box-sizing: border-box;
|
|
32176
|
+
margin: 0 auto;
|
|
32177
|
+
font-family: 'Poppins', sans-serif;
|
|
32178
|
+
|
|
32179
|
+
@media (max-width: 768px) {
|
|
32180
|
+
width: 100%;
|
|
32181
|
+
max-width: 940px;
|
|
32182
|
+
padding: 1rem 0 3rem;
|
|
32183
|
+
}
|
|
32184
|
+
`;
|
|
32185
|
+
const Header = styled.div`
|
|
32186
|
+
position: relative;
|
|
32187
|
+
display: flex;
|
|
32188
|
+
justify-content: space-between;
|
|
32189
|
+
align-items: center;
|
|
32190
|
+
margin-bottom: 4rem;
|
|
32191
|
+
|
|
32192
|
+
@media (max-width: 768px) {
|
|
32193
|
+
flex-direction: column;
|
|
32194
|
+
gap: 1rem;
|
|
32195
|
+
align-items: flex-start;
|
|
32196
|
+
}
|
|
32197
|
+
`;
|
|
32198
|
+
const CloseButton = styled.button`
|
|
32199
|
+
position: absolute;
|
|
32200
|
+
top: -10px;
|
|
32201
|
+
right: 0px;
|
|
32202
|
+
background: transparent;
|
|
32203
|
+
border: none;
|
|
32204
|
+
color: ${props => props.$navcolor || "#fff"};
|
|
32205
|
+
font-size: 1.5rem;
|
|
32206
|
+
cursor: pointer;
|
|
32207
|
+
|
|
32208
|
+
&:hover {
|
|
32209
|
+
opacity: 0.8;
|
|
32210
|
+
}
|
|
32211
|
+
|
|
32212
|
+
@media (max-width: 768px) {
|
|
32213
|
+
position: static;
|
|
32214
|
+
align-self: flex-end;
|
|
32215
|
+
}
|
|
32216
|
+
`;
|
|
32217
|
+
const Title = styled.h2`
|
|
32218
|
+
position: absolute;
|
|
32219
|
+
display: flex;
|
|
32220
|
+
align-items: center;
|
|
32221
|
+
gap: 0.5rem;
|
|
32222
|
+
top: -10px;
|
|
32223
|
+
color: ${props => props.$titleColor || "#fff"};
|
|
32224
|
+
font-size: 1.25rem;
|
|
32225
|
+
margin: 0;
|
|
32226
|
+
font-feature-settings: "liga" off;
|
|
32227
|
+
font-family: 'Poppins', sans-serif;
|
|
32228
|
+
font-size: 23.528px;
|
|
32229
|
+
font-style: normal;
|
|
32230
|
+
font-weight: 700;
|
|
32231
|
+
line-height: normal;
|
|
32232
|
+
|
|
32233
|
+
@media (max-width: 768px) {
|
|
32234
|
+
position: static;
|
|
32235
|
+
align-self: flex-start;
|
|
32236
|
+
}
|
|
32237
|
+
`;
|
|
32238
|
+
styled.span`
|
|
32239
|
+
font-size: 1.5rem;
|
|
32240
|
+
margin-right: 0.5rem;
|
|
32241
|
+
color: ${props => props.$iconcolor || "#fff"};
|
|
32242
|
+
`;
|
|
32243
|
+
const CarouselContainer = styled.div`
|
|
32244
|
+
position: relative;
|
|
32245
|
+
width: 100%;
|
|
32246
|
+
height: 75%;
|
|
32247
|
+
overflow: visible;
|
|
32248
|
+
margin: 0 auto;
|
|
32249
|
+
`;
|
|
32250
|
+
const VisibleCardsContainer = styled.div`
|
|
32251
|
+
display: flex;
|
|
32252
|
+
justify-content: center;
|
|
32253
|
+
align-items: center;
|
|
32254
|
+
width: 100%;
|
|
32255
|
+
height: 100%;
|
|
32256
|
+
position: relative;
|
|
32257
|
+
|
|
32258
|
+
.prev-card,
|
|
32259
|
+
.next-card {
|
|
32260
|
+
opacity: 0.3;
|
|
32261
|
+
}
|
|
32262
|
+
|
|
32263
|
+
.prev-card {
|
|
32264
|
+
transform: translateX(-50%) scale(0.75);
|
|
32265
|
+
opacity: 0.3;
|
|
32266
|
+
}
|
|
32267
|
+
|
|
32268
|
+
.active-card {
|
|
32269
|
+
transform: translateX(0) scale(1);
|
|
32270
|
+
opacity: 1;
|
|
32271
|
+
z-index: 2;
|
|
32272
|
+
}
|
|
32273
|
+
|
|
32274
|
+
.next-card {
|
|
32275
|
+
transform: translateX(50%) scale(0.75);
|
|
32276
|
+
opacity: 0.3;
|
|
32277
|
+
}
|
|
32278
|
+
|
|
32279
|
+
.hidden-card {
|
|
32280
|
+
display: none;
|
|
32281
|
+
}
|
|
32282
|
+
`;
|
|
32283
|
+
const Card = styled.div`
|
|
32284
|
+
position: absolute;
|
|
32285
|
+
width: 41%;
|
|
32286
|
+
height: 90%;
|
|
32287
|
+
background: #ffffff;
|
|
32288
|
+
border-radius: 16px;
|
|
32289
|
+
padding: 2rem;
|
|
32290
|
+
text-align: center;
|
|
32291
|
+
display: flex;
|
|
32292
|
+
flex-direction: column;
|
|
32293
|
+
align-items: center;
|
|
32294
|
+
justify-content: center;
|
|
32295
|
+
box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.05);
|
|
32296
|
+
|
|
32297
|
+
/* 🎯 תיקון: טרנזישן אחיד לכל שינויי תזוזה/שקיפות */
|
|
32298
|
+
transition: transform 0.4s ease-in-out, left 0.4s ease-in-out,
|
|
32299
|
+
right 0.4s ease-in-out, opacity 0.4s ease-in-out;
|
|
32300
|
+
|
|
32301
|
+
@media (max-width: 768px) {
|
|
32302
|
+
width: 280px;
|
|
32303
|
+
height: 250px;
|
|
32304
|
+
padding: 1.5rem;
|
|
32305
|
+
}
|
|
32306
|
+
`;
|
|
32307
|
+
const NavButton = styled.div`
|
|
32308
|
+
position: absolute;
|
|
32309
|
+
top: 50%;
|
|
32310
|
+
transform: translateY(-50%);
|
|
32311
|
+
z-index: 1000;
|
|
32312
|
+
color: ${props => props.$navcolor || "#fff"};
|
|
32313
|
+
font-size: 2.5rem;
|
|
32314
|
+
cursor: pointer;
|
|
32315
|
+
user-select: none;
|
|
32316
|
+
width: 40px;
|
|
32317
|
+
height: 40px;
|
|
32318
|
+
display: flex;
|
|
32319
|
+
align-items: center;
|
|
32320
|
+
justify-content: center;
|
|
32321
|
+
|
|
32322
|
+
&.prev {
|
|
32323
|
+
left: 0;
|
|
32324
|
+
}
|
|
32325
|
+
|
|
32326
|
+
&.next {
|
|
32327
|
+
right: 0;
|
|
32328
|
+
}
|
|
32329
|
+
|
|
32330
|
+
&:hover {
|
|
32331
|
+
opacity: 0.8;
|
|
32332
|
+
}
|
|
32333
|
+
`;
|
|
32334
|
+
const Pagination = styled.div`
|
|
32335
|
+
display: flex;
|
|
32336
|
+
justify-content: center;
|
|
32337
|
+
margin-top: 32px;
|
|
32338
|
+
position: relative;
|
|
32339
|
+
`;
|
|
32340
|
+
const Dot = styled.button`
|
|
32341
|
+
width: 20px;
|
|
32342
|
+
height: 20px;
|
|
32343
|
+
border-radius: 50%;
|
|
32344
|
+
border: 2px solid #fff;
|
|
32345
|
+
background: transparent;
|
|
32346
|
+
opacity: 1;
|
|
32347
|
+
margin: 4px;
|
|
32348
|
+
cursor: pointer;
|
|
32349
|
+
transition: background 0.3s ease;
|
|
32350
|
+
padding: 0;
|
|
32351
|
+
position: relative;
|
|
32352
|
+
|
|
32353
|
+
&::after {
|
|
32354
|
+
content: "";
|
|
32355
|
+
position: absolute;
|
|
32356
|
+
top: 2px;
|
|
32357
|
+
left: 2px;
|
|
32358
|
+
width: 12px;
|
|
32359
|
+
height: 12px;
|
|
32360
|
+
background: ${props => props.active ? "#fff" : "transparent"};
|
|
32361
|
+
border-radius: 50%;
|
|
32362
|
+
}
|
|
32363
|
+
|
|
32364
|
+
&:focus {
|
|
32365
|
+
outline: none;
|
|
32366
|
+
}
|
|
32367
|
+
`;
|
|
32368
|
+
|
|
32369
|
+
const InsightsCarousel = _ref => {
|
|
32370
|
+
let {
|
|
32371
|
+
children,
|
|
32372
|
+
onClose,
|
|
32373
|
+
title = "Insights:",
|
|
32374
|
+
icon = /*#__PURE__*/React$1.createElement(LampIcon, null),
|
|
32375
|
+
titleColor = "#fff",
|
|
32376
|
+
iconColor = "#fff",
|
|
32377
|
+
navColor = "#fff"
|
|
32378
|
+
} = _ref;
|
|
32379
|
+
const [currentIndex, setCurrentIndex] = useState(0);
|
|
32380
|
+
const containerRef = useRef(null);
|
|
32381
|
+
const childrenArray = React$1.Children.toArray(children);
|
|
32382
|
+
const totalChildren = childrenArray.length;
|
|
32383
|
+
const goToSlide = index => {
|
|
32384
|
+
let normalizedIndex = index;
|
|
32385
|
+
if (index < 0) normalizedIndex = totalChildren - 1;
|
|
32386
|
+
if (index >= totalChildren) normalizedIndex = 0;
|
|
32387
|
+
setCurrentIndex(normalizedIndex);
|
|
32388
|
+
};
|
|
32389
|
+
const goToPrev = () => {
|
|
32390
|
+
goToSlide(currentIndex - 1);
|
|
32391
|
+
};
|
|
32392
|
+
const goToNext = () => {
|
|
32393
|
+
goToSlide(currentIndex + 1);
|
|
32394
|
+
};
|
|
32395
|
+
const prevIndex = (currentIndex - 1 + totalChildren) % totalChildren;
|
|
32396
|
+
const nextIndex = (currentIndex + 1) % totalChildren;
|
|
32397
|
+
return /*#__PURE__*/React$1.createElement(Overlay, null, /*#__PURE__*/React$1.createElement(ModalContent, null, /*#__PURE__*/React$1.createElement(Header, null, /*#__PURE__*/React$1.createElement(Title, {
|
|
32398
|
+
$titleColor: titleColor
|
|
32399
|
+
}, /*#__PURE__*/React$1.cloneElement(icon, {
|
|
32400
|
+
fill: iconColor
|
|
32401
|
+
}), title), /*#__PURE__*/React$1.createElement(CloseButton, {
|
|
32402
|
+
onClick: () => onClose?.({
|
|
32403
|
+
label: "closeCrusel"
|
|
32404
|
+
}),
|
|
32405
|
+
"aria-label": "Close insights overlay",
|
|
32406
|
+
$navColor: navColor
|
|
32407
|
+
}, /*#__PURE__*/React$1.createElement(CloseXIcon, {
|
|
32408
|
+
fill: navColor,
|
|
32409
|
+
width: 18.82,
|
|
32410
|
+
height: 18.82
|
|
32411
|
+
}))), /*#__PURE__*/React$1.createElement(CarouselContainer, {
|
|
32412
|
+
ref: containerRef
|
|
32413
|
+
}, totalChildren > 1 && /*#__PURE__*/React$1.createElement(NavButton, {
|
|
32414
|
+
className: "prev",
|
|
32415
|
+
onClick: goToPrev,
|
|
32416
|
+
$navColor: navColor
|
|
32417
|
+
}, /*#__PURE__*/React$1.createElement(ChervronLeftIcon, {
|
|
32418
|
+
fill: navColor,
|
|
32419
|
+
width: 41,
|
|
32420
|
+
height: 42
|
|
32421
|
+
})), /*#__PURE__*/React$1.createElement(VisibleCardsContainer, null, childrenArray.map((child, index) => {
|
|
32422
|
+
let className = "hidden-card";
|
|
32423
|
+
if (totalChildren === 1) {
|
|
32424
|
+
className = "active-card";
|
|
32425
|
+
} else {
|
|
32426
|
+
if (index === prevIndex) className = "prev-card";
|
|
32427
|
+
if (index === currentIndex) className = "active-card";
|
|
32428
|
+
if (index === nextIndex) className = "next-card";
|
|
32429
|
+
}
|
|
32430
|
+
return /*#__PURE__*/React$1.createElement(Card, {
|
|
32431
|
+
key: index,
|
|
32432
|
+
className: className
|
|
32433
|
+
}, child);
|
|
32434
|
+
})), totalChildren > 1 && /*#__PURE__*/React$1.createElement(NavButton, {
|
|
32435
|
+
className: "next",
|
|
32436
|
+
onClick: goToNext,
|
|
32437
|
+
$navColor: navColor
|
|
32438
|
+
}, /*#__PURE__*/React$1.createElement(ChervronRightIcon, {
|
|
32439
|
+
fill: navColor,
|
|
32440
|
+
width: 41,
|
|
32441
|
+
height: 42
|
|
32442
|
+
}))), /*#__PURE__*/React$1.createElement(Pagination, null, childrenArray.map((_, index) => /*#__PURE__*/React$1.createElement(Dot, {
|
|
32443
|
+
key: index,
|
|
32444
|
+
active: index === currentIndex,
|
|
32445
|
+
onClick: () => goToSlide(index),
|
|
32446
|
+
"aria-label": `Go to slide ${index + 1}`
|
|
32447
|
+
})))));
|
|
32448
|
+
};
|
|
32449
|
+
|
|
32450
|
+
export { AreaChart, BannerEventBoxList, BarChart, BarChartsByWeeks, BatteryChart, BreakdownPanel, BrushChart, BubbleChart, Button, CollapseHeader, DialogOverlay, DoubleBarSingleLine, DoublePanelDataRow, EventDetailsCard, EventList, FilterPanel, Heatmap, IconButton, InsightsCarousel, LinkButton, LinnerDataBox, MarketShareDescription, OneColumnContainer, PerformanceAnalyticsLegend, PieChart, PopupCharts, QuickFilter, ReportTable, TabMenu, TopToggleList, TotalDoughnutChart, TotalHorizontalCharts };
|
|
32154
32451
|
//# sourceMappingURL=index.esm.js.map
|