sag_components 2.0.0-beta59 → 2.0.0-beta60
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 +245 -250
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +245 -250
- 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 +252 -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;
|
|
@@ -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;
|
|
@@ -29094,7 +29094,7 @@ const DoubleBarSingleLine = props => {
|
|
|
29094
29094
|
} else {
|
|
29095
29095
|
`${currentTooltipValue.toFixed(1)}`;
|
|
29096
29096
|
}
|
|
29097
|
-
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$1, null, `${label}`), payload.map((item, idx) => {
|
|
29098
29098
|
const dataStateItem = dataState.find(state => state.key === item.dataKey);
|
|
29099
29099
|
return /*#__PURE__*/React$1.createElement(TooltipLabel, {
|
|
29100
29100
|
key: item.dataKey || idx
|
|
@@ -29167,7 +29167,7 @@ const DoubleBarSingleLine = props => {
|
|
|
29167
29167
|
noDataText: noDataText
|
|
29168
29168
|
}) : /*#__PURE__*/React$1.createElement(Controls$2, {
|
|
29169
29169
|
className: "Controls"
|
|
29170
|
-
}, title && title.trim() !== '' && /*#__PURE__*/React$1.createElement(Title$
|
|
29170
|
+
}, title && title.trim() !== '' && /*#__PURE__*/React$1.createElement(Title$3, null, title), /*#__PURE__*/React$1.createElement(ChartsWrapper, {
|
|
29171
29171
|
width: hasScroll ? `${data.length * 178}px` : 'auto'
|
|
29172
29172
|
}, /*#__PURE__*/React$1.createElement(LineChartWrapper, null, /*#__PURE__*/React$1.createElement(ResponsiveContainer, null, /*#__PURE__*/React$1.createElement(LineChart, _extends({
|
|
29173
29173
|
data: transformedData
|
|
@@ -29266,7 +29266,7 @@ const CheckboxGroupContainer = styled.div`
|
|
|
29266
29266
|
height: 21px;
|
|
29267
29267
|
gap: 20px;
|
|
29268
29268
|
`;
|
|
29269
|
-
const Title$
|
|
29269
|
+
const Title$2 = styled.h5`
|
|
29270
29270
|
font-weight: 500;
|
|
29271
29271
|
font-size: 18px;
|
|
29272
29272
|
line-height: 20px;
|
|
@@ -29286,7 +29286,7 @@ const LegendIcon = styled.div`
|
|
|
29286
29286
|
margin-right: 5px;
|
|
29287
29287
|
background-color: ${props => props.color};
|
|
29288
29288
|
`;
|
|
29289
|
-
const TooltipContainer
|
|
29289
|
+
const TooltipContainer = styled.div`
|
|
29290
29290
|
background: white;
|
|
29291
29291
|
padding: 10px;
|
|
29292
29292
|
border-radius: 5px;
|
|
@@ -29296,12 +29296,12 @@ const TooltipContainer$1 = styled.div`
|
|
|
29296
29296
|
font-weight: 500;
|
|
29297
29297
|
font-size: 14px;
|
|
29298
29298
|
`;
|
|
29299
|
-
const TooltipTitle
|
|
29299
|
+
const TooltipTitle = styled.p`
|
|
29300
29300
|
font-weight: 700;
|
|
29301
29301
|
margin-top: 5px;
|
|
29302
29302
|
margin-bottom: 5px;
|
|
29303
29303
|
`;
|
|
29304
|
-
const TooltipText
|
|
29304
|
+
const TooltipText = styled.p`
|
|
29305
29305
|
margin-top: 5px;
|
|
29306
29306
|
margin-bottom: 5px;
|
|
29307
29307
|
`;
|
|
@@ -29542,10 +29542,10 @@ const AreaChart = props => {
|
|
|
29542
29542
|
payload
|
|
29543
29543
|
} = _ref3;
|
|
29544
29544
|
if (active && payload && payload.length) {
|
|
29545
|
-
return /*#__PURE__*/React$1.createElement(TooltipContainer
|
|
29545
|
+
return /*#__PURE__*/React$1.createElement(TooltipContainer, null, /*#__PURE__*/React$1.createElement(TooltipTitle, null, `${payload[0].payload.label}`), payload.map((data, index) => {
|
|
29546
29546
|
const chart = areaChartsState.find(chart => chart.key === data.dataKey);
|
|
29547
29547
|
if (chart) {
|
|
29548
|
-
return /*#__PURE__*/React$1.createElement(TooltipText
|
|
29548
|
+
return /*#__PURE__*/React$1.createElement(TooltipText, {
|
|
29549
29549
|
key: index
|
|
29550
29550
|
}, `${chart.name}: ${displayFormattedValue(data.value, chart.isDollar)}`);
|
|
29551
29551
|
}
|
|
@@ -29594,7 +29594,7 @@ const AreaChart = props => {
|
|
|
29594
29594
|
height: height
|
|
29595
29595
|
}) : /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(HeaderContainer$2, {
|
|
29596
29596
|
"data-testid": "header-container"
|
|
29597
|
-
}, /*#__PURE__*/React$1.createElement(Title$
|
|
29597
|
+
}, /*#__PURE__*/React$1.createElement(Title$2, {
|
|
29598
29598
|
"data-testid": "title"
|
|
29599
29599
|
}, title), /*#__PURE__*/React$1.createElement(CheckboxGroupContainer, {
|
|
29600
29600
|
"data-testid": "checkbox-group-container"
|
|
@@ -30092,7 +30092,7 @@ const HeaderContainer$1 = styled.div`
|
|
|
30092
30092
|
align-items: center;
|
|
30093
30093
|
padding-bottom: 8px;
|
|
30094
30094
|
`;
|
|
30095
|
-
const Title$
|
|
30095
|
+
const Title$1 = styled.h3`
|
|
30096
30096
|
font-size: 18px;
|
|
30097
30097
|
font-weight: 400;
|
|
30098
30098
|
margin: 0;
|
|
@@ -30161,7 +30161,7 @@ const BreakdownPanel = props => {
|
|
|
30161
30161
|
height: height
|
|
30162
30162
|
}) : /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(HeaderContainer$1, {
|
|
30163
30163
|
"data-testid": "header-container"
|
|
30164
|
-
}, /*#__PURE__*/React$1.createElement(Title$
|
|
30164
|
+
}, /*#__PURE__*/React$1.createElement(Title$1, {
|
|
30165
30165
|
"data-testid": "title"
|
|
30166
30166
|
}, title)), /*#__PURE__*/React$1.createElement(CategorySalesMainContainer, {
|
|
30167
30167
|
"data-testid": "category-sales-main-container"
|
|
@@ -31403,27 +31403,42 @@ const BatteryChart = props => {
|
|
|
31403
31403
|
}))))))), starText !== "" && /*#__PURE__*/React$1.createElement(StarText, null, starText));
|
|
31404
31404
|
};
|
|
31405
31405
|
|
|
31406
|
+
// const originalData = [
|
|
31407
|
+
// { label: "Vendor Selling Event: Week 34", inc_sales: 20000, inc_roi: 1.2 },
|
|
31408
|
+
// { label: "Vendor Selling Event: Week 36", inc_sales: 10000, inc_roi: 1.2 },
|
|
31409
|
+
// { label: "Vendor Selling Event: Week 38", inc_sales: 8000, inc_roi: 0.8 },
|
|
31410
|
+
// { label: "Vendor Selling Event: Week 33", inc_sales: 12000, inc_roi: 1.1 },
|
|
31411
|
+
// { label: "Vendor Selling Event: Week 29", inc_sales: 8000, inc_roi: 1.2 },
|
|
31412
|
+
// { label: "Vendor Selling Event: Week 28", inc_sales: 8000, inc_roi: 0.7 },
|
|
31413
|
+
// { label: "Vendor Selling Event: Week 35", inc_sales: 8000, inc_roi: 0.8 },
|
|
31414
|
+
// { label: "Vendor Selling Event: Week 30", inc_sales: 9000, inc_roi: 1.1 },
|
|
31415
|
+
// ];
|
|
31416
|
+
|
|
31406
31417
|
const SeparatedLineBarChart = ({
|
|
31407
|
-
|
|
31418
|
+
barlineData = []
|
|
31408
31419
|
}) => {
|
|
31409
|
-
//
|
|
31410
|
-
const
|
|
31411
|
-
|
|
31412
|
-
|
|
31413
|
-
|
|
31414
|
-
shortLabel: item.label.replace("Vendor Selling Event: ", "Wk ")
|
|
31415
|
-
};
|
|
31420
|
+
// Sort the data by week number extracted from the label
|
|
31421
|
+
const sortedData = barlineData?.sort((a, b) => {
|
|
31422
|
+
const weekA = parseInt(a.label.match(/Week (\d+)/)[1], 10);
|
|
31423
|
+
const weekB = parseInt(b.label.match(/Week (\d+)/)[1], 10);
|
|
31424
|
+
return weekA - weekB;
|
|
31416
31425
|
});
|
|
31417
|
-
|
|
31418
|
-
|
|
31419
|
-
|
|
31420
|
-
|
|
31421
|
-
|
|
31422
|
-
|
|
31423
|
-
|
|
31424
|
-
|
|
31425
|
-
|
|
31426
|
+
const dataWithIndex = sortedData.map((item, index) => ({
|
|
31427
|
+
...item,
|
|
31428
|
+
index,
|
|
31429
|
+
shortLabel: item.label.replace("Vendor Selling Event: ", "Wk ")
|
|
31430
|
+
}));
|
|
31431
|
+
const CustomizedTick = ({
|
|
31432
|
+
x,
|
|
31433
|
+
y,
|
|
31434
|
+
payload,
|
|
31435
|
+
viewableIndices
|
|
31436
|
+
}) => {
|
|
31437
|
+
const label = dataWithIndex[payload.value]?.label ?? "";
|
|
31426
31438
|
const parts = label.replace("Vendor Selling Event: ", "").split(" ");
|
|
31439
|
+
if (!viewableIndices.includes(payload.value)) {
|
|
31440
|
+
return null;
|
|
31441
|
+
}
|
|
31427
31442
|
return /*#__PURE__*/React$1.createElement("g", {
|
|
31428
31443
|
transform: `translate(${x},${y})`
|
|
31429
31444
|
}, /*#__PURE__*/React$1.createElement("text", {
|
|
@@ -31433,7 +31448,7 @@ const SeparatedLineBarChart = ({
|
|
|
31433
31448
|
textAnchor: "middle",
|
|
31434
31449
|
fill: "#212121",
|
|
31435
31450
|
fontSize: 11,
|
|
31436
|
-
fontWeight: 400,
|
|
31451
|
+
fontWeight: "400",
|
|
31437
31452
|
fontFamily: "Poppins"
|
|
31438
31453
|
}, /*#__PURE__*/React$1.createElement("tspan", {
|
|
31439
31454
|
x: 0,
|
|
@@ -31443,57 +31458,51 @@ const SeparatedLineBarChart = ({
|
|
|
31443
31458
|
dy: 18
|
|
31444
31459
|
}, "Event: ", parts.join(" "))));
|
|
31445
31460
|
};
|
|
31446
|
-
|
|
31447
|
-
|
|
31448
|
-
|
|
31449
|
-
|
|
31450
|
-
|
|
31451
|
-
|
|
31452
|
-
|
|
31453
|
-
|
|
31454
|
-
|
|
31455
|
-
|
|
31456
|
-
|
|
31457
|
-
|
|
31458
|
-
|
|
31459
|
-
|
|
31460
|
-
|
|
31461
|
-
|
|
31462
|
-
|
|
31463
|
-
|
|
31464
|
-
|
|
31465
|
-
}
|
|
31466
|
-
|
|
31467
|
-
|
|
31468
|
-
|
|
31469
|
-
|
|
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)));
|
|
31461
|
+
const CustomLabelListFilter = props => {
|
|
31462
|
+
const {
|
|
31463
|
+
viewableIndices,
|
|
31464
|
+
dataKey,
|
|
31465
|
+
position,
|
|
31466
|
+
formatter,
|
|
31467
|
+
fill,
|
|
31468
|
+
fontSize,
|
|
31469
|
+
fontWeight,
|
|
31470
|
+
fontFamily
|
|
31471
|
+
} = props;
|
|
31472
|
+
return /*#__PURE__*/React$1.createElement(LabelList, {
|
|
31473
|
+
dataKey: dataKey,
|
|
31474
|
+
position: position,
|
|
31475
|
+
formatter: (value, name, props) => {
|
|
31476
|
+
if (!viewableIndices.includes(props.index)) {
|
|
31477
|
+
return "";
|
|
31478
|
+
}
|
|
31479
|
+
return formatter ? formatter(value) : value;
|
|
31480
|
+
},
|
|
31481
|
+
fill: fill || "#212121",
|
|
31482
|
+
fontSize: fontSize || 12,
|
|
31483
|
+
fontWeight: fontWeight || "400",
|
|
31484
|
+
fontFamily: fontFamily || "Poppins"
|
|
31485
|
+
});
|
|
31484
31486
|
};
|
|
31485
|
-
|
|
31486
|
-
// Chart margins (same as in both examples)
|
|
31487
31487
|
const chartMargins = {
|
|
31488
|
-
top:
|
|
31489
|
-
right:
|
|
31488
|
+
top: 15,
|
|
31489
|
+
right: 40,
|
|
31490
31490
|
left: 20,
|
|
31491
|
-
bottom:
|
|
31491
|
+
bottom: 40
|
|
31492
31492
|
};
|
|
31493
|
+
const [viewWindow, setViewWindow] = useState({
|
|
31494
|
+
startIndex: 0,
|
|
31495
|
+
endIndex: dataWithIndex.length - 1
|
|
31496
|
+
});
|
|
31497
|
+
const viewableIndices = [];
|
|
31498
|
+
for (let i = viewWindow.startIndex; i <= viewWindow.endIndex; i++) {
|
|
31499
|
+
viewableIndices.push(i);
|
|
31500
|
+
}
|
|
31501
|
+
dataWithIndex.filter(item => viewableIndices.includes(item.index));
|
|
31493
31502
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
31494
31503
|
style: {
|
|
31495
31504
|
width: "100%",
|
|
31496
|
-
height:
|
|
31505
|
+
height: 700
|
|
31497
31506
|
}
|
|
31498
31507
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
31499
31508
|
style: {
|
|
@@ -31503,21 +31512,24 @@ const SeparatedLineBarChart = ({
|
|
|
31503
31512
|
width: "100%",
|
|
31504
31513
|
height: "100%"
|
|
31505
31514
|
}, /*#__PURE__*/React$1.createElement(LineChart, {
|
|
31506
|
-
data:
|
|
31515
|
+
data: dataWithIndex,
|
|
31507
31516
|
margin: chartMargins
|
|
31508
31517
|
}, /*#__PURE__*/React$1.createElement(CartesianGrid, {
|
|
31509
31518
|
strokeDasharray: "3 3",
|
|
31510
31519
|
vertical: false
|
|
31511
31520
|
}), /*#__PURE__*/React$1.createElement(XAxis, {
|
|
31512
|
-
dataKey: "
|
|
31513
|
-
|
|
31521
|
+
dataKey: "index",
|
|
31522
|
+
type: "number",
|
|
31523
|
+
domain: ['dataMin', 'dataMax'],
|
|
31524
|
+
padding: {
|
|
31525
|
+
left: 20,
|
|
31526
|
+
right: 20
|
|
31527
|
+
},
|
|
31514
31528
|
hide: true
|
|
31515
31529
|
}), /*#__PURE__*/React$1.createElement(YAxis, {
|
|
31516
31530
|
domain: [0, 2],
|
|
31517
31531
|
hide: true
|
|
31518
|
-
}), /*#__PURE__*/React$1.createElement(Tooltip$2, {
|
|
31519
|
-
content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
|
|
31520
|
-
}), /*#__PURE__*/React$1.createElement(Line, {
|
|
31532
|
+
}), /*#__PURE__*/React$1.createElement(Tooltip$2, null), /*#__PURE__*/React$1.createElement(Line, {
|
|
31521
31533
|
type: "monotone",
|
|
31522
31534
|
dataKey: "inc_roi",
|
|
31523
31535
|
stroke: "#F8CD00",
|
|
@@ -31528,14 +31540,11 @@ const SeparatedLineBarChart = ({
|
|
|
31528
31540
|
},
|
|
31529
31541
|
activeDot: false,
|
|
31530
31542
|
name: "INC Sales ROI"
|
|
31531
|
-
}, /*#__PURE__*/React$1.createElement(
|
|
31543
|
+
}, /*#__PURE__*/React$1.createElement(CustomLabelListFilter, {
|
|
31532
31544
|
dataKey: "inc_roi",
|
|
31533
31545
|
position: "top",
|
|
31534
31546
|
formatter: value => value.toFixed(1),
|
|
31535
|
-
|
|
31536
|
-
fontSize: 12,
|
|
31537
|
-
fontWeight: "400",
|
|
31538
|
-
fontFamily: "Poppins"
|
|
31547
|
+
viewableIndices: viewableIndices
|
|
31539
31548
|
}))))), /*#__PURE__*/React$1.createElement("div", {
|
|
31540
31549
|
style: {
|
|
31541
31550
|
height: "60%"
|
|
@@ -31544,47 +31553,59 @@ const SeparatedLineBarChart = ({
|
|
|
31544
31553
|
width: "100%",
|
|
31545
31554
|
height: "100%"
|
|
31546
31555
|
}, /*#__PURE__*/React$1.createElement(ComposedChart, {
|
|
31547
|
-
data:
|
|
31556
|
+
data: dataWithIndex,
|
|
31548
31557
|
margin: chartMargins
|
|
31549
31558
|
}, /*#__PURE__*/React$1.createElement(CartesianGrid, {
|
|
31550
31559
|
strokeDasharray: "3 3",
|
|
31551
31560
|
vertical: false
|
|
31552
31561
|
}), /*#__PURE__*/React$1.createElement(XAxis, {
|
|
31553
|
-
dataKey: "
|
|
31554
|
-
|
|
31562
|
+
dataKey: "index",
|
|
31563
|
+
type: "number",
|
|
31564
|
+
domain: ['dataMin', 'dataMax'],
|
|
31565
|
+
padding: {
|
|
31566
|
+
left: 20,
|
|
31567
|
+
right: 20
|
|
31568
|
+
},
|
|
31569
|
+
tick: props => /*#__PURE__*/React$1.createElement(CustomizedTick, _extends({}, props, {
|
|
31570
|
+
viewableIndices: viewableIndices
|
|
31571
|
+
})),
|
|
31555
31572
|
interval: 0,
|
|
31556
31573
|
height: 60,
|
|
31557
|
-
tickLine: false
|
|
31574
|
+
tickLine: false,
|
|
31575
|
+
ticks: dataWithIndex.map(item => item.index)
|
|
31558
31576
|
}), /*#__PURE__*/React$1.createElement(YAxis, {
|
|
31559
31577
|
tickFormatter: v => `${v / 1000}k`,
|
|
31560
31578
|
hide: true
|
|
31561
|
-
}), /*#__PURE__*/React$1.createElement(Tooltip$2, {
|
|
31562
|
-
content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
|
|
31563
|
-
}), /*#__PURE__*/React$1.createElement(Bar, {
|
|
31579
|
+
}), /*#__PURE__*/React$1.createElement(Tooltip$2, null), /*#__PURE__*/React$1.createElement(Bar, {
|
|
31564
31580
|
dataKey: "inc_sales",
|
|
31565
31581
|
fill: "#CCDCDD",
|
|
31566
|
-
gap:
|
|
31582
|
+
gap: "4px",
|
|
31567
31583
|
borderRadius: [4, 4, 0, 8],
|
|
31568
31584
|
barSize: 40,
|
|
31569
31585
|
name: "INC Sales"
|
|
31570
|
-
}, /*#__PURE__*/React$1.createElement(
|
|
31586
|
+
}, /*#__PURE__*/React$1.createElement(CustomLabelListFilter, {
|
|
31571
31587
|
dataKey: "inc_sales",
|
|
31572
31588
|
position: "top",
|
|
31573
31589
|
formatter: value => `${value / 1000}k`,
|
|
31574
|
-
|
|
31575
|
-
fontSize: 12,
|
|
31576
|
-
fontWeight: "400",
|
|
31577
|
-
fontFamily: "Poppins"
|
|
31590
|
+
viewableIndices: viewableIndices
|
|
31578
31591
|
})), /*#__PURE__*/React$1.createElement(Brush, {
|
|
31579
|
-
dataKey: "
|
|
31592
|
+
dataKey: "index",
|
|
31580
31593
|
height: 30,
|
|
31581
31594
|
stroke: "#212121",
|
|
31582
|
-
startIndex:
|
|
31583
|
-
endIndex:
|
|
31584
|
-
|
|
31585
|
-
|
|
31586
|
-
|
|
31587
|
-
|
|
31595
|
+
startIndex: viewWindow.startIndex,
|
|
31596
|
+
endIndex: viewWindow.endIndex,
|
|
31597
|
+
onChange: e => {
|
|
31598
|
+
setViewWindow({
|
|
31599
|
+
startIndex: e.startIndex ?? 0,
|
|
31600
|
+
endIndex: e.endIndex ?? dataWithIndex.length - 1
|
|
31601
|
+
});
|
|
31602
|
+
},
|
|
31603
|
+
travellerWidth: 12
|
|
31604
|
+
})), /*#__PURE__*/React$1.createElement("div", {
|
|
31605
|
+
style: {
|
|
31606
|
+
marginTop: "-28px"
|
|
31607
|
+
}
|
|
31608
|
+
}, /*#__PURE__*/React$1.createElement(PerformanceAnalyticsLegend, {
|
|
31588
31609
|
legendData: [{
|
|
31589
31610
|
iconColor: "#CCDCDD",
|
|
31590
31611
|
iconType: "Square",
|
|
@@ -31598,11 +31619,9 @@ const SeparatedLineBarChart = ({
|
|
|
31598
31619
|
};
|
|
31599
31620
|
|
|
31600
31621
|
function SingleChart({
|
|
31601
|
-
|
|
31602
|
-
height = 450,
|
|
31603
|
-
width = "100%"
|
|
31622
|
+
lineChartData
|
|
31604
31623
|
}) {
|
|
31605
|
-
const dataWithIndex =
|
|
31624
|
+
const dataWithIndex = lineChartData?.map((item, index) => ({
|
|
31606
31625
|
...item,
|
|
31607
31626
|
index,
|
|
31608
31627
|
shortLabel: item.label.replace("Vendor Selling Event: ", "Wk ")
|
|
@@ -31633,15 +31652,20 @@ function SingleChart({
|
|
|
31633
31652
|
dy: 18
|
|
31634
31653
|
}, "Event: ", parts.join(" "))));
|
|
31635
31654
|
};
|
|
31636
|
-
useState(0);
|
|
31637
|
-
useState(dataWithIndex?.length - 1);
|
|
31655
|
+
const [startIndex, setStartIndex] = useState(0);
|
|
31656
|
+
const [endIndex, setEndIndex] = useState(dataWithIndex?.length - 1);
|
|
31638
31657
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
31639
31658
|
style: {
|
|
31640
|
-
width: "100%"
|
|
31659
|
+
width: "100%",
|
|
31660
|
+
height: 600
|
|
31661
|
+
}
|
|
31662
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
31663
|
+
style: {
|
|
31664
|
+
height: "100%"
|
|
31641
31665
|
}
|
|
31642
31666
|
}, /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
|
|
31643
|
-
width:
|
|
31644
|
-
height:
|
|
31667
|
+
width: "100%",
|
|
31668
|
+
height: "100%"
|
|
31645
31669
|
}, /*#__PURE__*/React$1.createElement(ComposedChart, {
|
|
31646
31670
|
data: dataWithIndex,
|
|
31647
31671
|
margin: {
|
|
@@ -31682,18 +31706,23 @@ function SingleChart({
|
|
|
31682
31706
|
fontWeight: "400",
|
|
31683
31707
|
fontFamily: "Poppins"
|
|
31684
31708
|
})), /*#__PURE__*/React$1.createElement(Brush, {
|
|
31709
|
+
dataKey: "index",
|
|
31685
31710
|
height: 30,
|
|
31686
|
-
|
|
31687
|
-
startIndex:
|
|
31688
|
-
endIndex:
|
|
31689
|
-
|
|
31711
|
+
stroke: "#212121",
|
|
31712
|
+
startIndex: startIndex,
|
|
31713
|
+
endIndex: endIndex,
|
|
31714
|
+
onChange: e => {
|
|
31715
|
+
setStartIndex(e.startIndex ?? 0);
|
|
31716
|
+
setEndIndex(e.endIndex ?? dataWithIndex?.length - 1);
|
|
31717
|
+
},
|
|
31718
|
+
travellerWidth: 12
|
|
31690
31719
|
})), /*#__PURE__*/React$1.createElement(PerformanceAnalyticsLegend, {
|
|
31691
31720
|
legendData: [{
|
|
31692
31721
|
iconColor: "#CCDCDD",
|
|
31693
31722
|
iconType: "Square",
|
|
31694
31723
|
title: "INC Units"
|
|
31695
31724
|
}]
|
|
31696
|
-
})));
|
|
31725
|
+
}))));
|
|
31697
31726
|
}
|
|
31698
31727
|
|
|
31699
31728
|
styled.div`
|
|
@@ -31923,69 +31952,10 @@ SegmentedButton.defaultProps = {
|
|
|
31923
31952
|
onClick: () => {}
|
|
31924
31953
|
};
|
|
31925
31954
|
|
|
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
|
-
|
|
31985
31955
|
function InnerBarChart({
|
|
31986
|
-
|
|
31956
|
+
data = []
|
|
31987
31957
|
}) {
|
|
31988
|
-
const processedData =
|
|
31958
|
+
const processedData = data.map(item => {
|
|
31989
31959
|
const parts = item.label.replace("Vendor Selling Event:", "").trim();
|
|
31990
31960
|
return {
|
|
31991
31961
|
...item,
|
|
@@ -32046,8 +32016,9 @@ function InnerBarChart({
|
|
|
32046
32016
|
}) => {
|
|
32047
32017
|
if (!active || !payload || !payload.length) return null;
|
|
32048
32018
|
const data = payload[0].payload;
|
|
32049
|
-
|
|
32050
|
-
|
|
32019
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
32020
|
+
className: "bg-white border border-gray-300 p-2 rounded-lg text-sm"
|
|
32021
|
+
}, /*#__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)));
|
|
32051
32022
|
};
|
|
32052
32023
|
const CustomizedTick = props => {
|
|
32053
32024
|
const {
|
|
@@ -32079,7 +32050,9 @@ function InnerBarChart({
|
|
|
32079
32050
|
};
|
|
32080
32051
|
return /*#__PURE__*/React$1.createElement("div", {
|
|
32081
32052
|
className: "w-full"
|
|
32082
|
-
}, /*#__PURE__*/React$1.createElement(
|
|
32053
|
+
}, /*#__PURE__*/React$1.createElement("h3", {
|
|
32054
|
+
className: "text-lg font-medium mb-4 text-center"
|
|
32055
|
+
}, "Vendor Selling Events Comparison"), /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
|
|
32083
32056
|
width: "100%",
|
|
32084
32057
|
height: 450
|
|
32085
32058
|
}, /*#__PURE__*/React$1.createElement(BarChart$1, {
|
|
@@ -32101,8 +32074,7 @@ function InnerBarChart({
|
|
|
32101
32074
|
}), /*#__PURE__*/React$1.createElement(YAxis, {
|
|
32102
32075
|
type: "number",
|
|
32103
32076
|
domain: [0, "dataMax + 2000"],
|
|
32104
|
-
tickFormatter: format
|
|
32105
|
-
hide: true
|
|
32077
|
+
tickFormatter: format
|
|
32106
32078
|
}), /*#__PURE__*/React$1.createElement(Tooltip$2, {
|
|
32107
32079
|
content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
|
|
32108
32080
|
}), /*#__PURE__*/React$1.createElement(Brush, {
|
|
@@ -32118,22 +32090,51 @@ function InnerBarChart({
|
|
|
32118
32090
|
}))));
|
|
32119
32091
|
}
|
|
32120
32092
|
|
|
32093
|
+
const Container = styled.div`
|
|
32094
|
+
width: ${props => props.width};
|
|
32095
|
+
height: ${props => props.height};
|
|
32096
|
+
padding: 15px;
|
|
32097
|
+
display: flex;
|
|
32098
|
+
flex-direction: column;
|
|
32099
|
+
#Segment {
|
|
32100
|
+
width: auto;
|
|
32101
|
+
white-space: nowrap;
|
|
32102
|
+
font-size: 14px;
|
|
32103
|
+
font-weight: 500;
|
|
32104
|
+
font-family: "Poppins"
|
|
32105
|
+
}
|
|
32106
|
+
`;
|
|
32107
|
+
styled.div`
|
|
32108
|
+
font-family: sans-serif;
|
|
32109
|
+
text-align: center;
|
|
32110
|
+
`;
|
|
32111
|
+
styled.div`
|
|
32112
|
+
height: 25%;
|
|
32113
|
+
`;
|
|
32114
|
+
styled.div`
|
|
32115
|
+
height: 75%;
|
|
32116
|
+
`;
|
|
32117
|
+
styled.div`
|
|
32118
|
+
height: 100%;
|
|
32119
|
+
display: flex;
|
|
32120
|
+
flex-direction: column;
|
|
32121
|
+
background-color: white;
|
|
32122
|
+
`;
|
|
32123
|
+
|
|
32121
32124
|
const BrushChart = props => {
|
|
32122
32125
|
const {
|
|
32123
32126
|
width,
|
|
32124
32127
|
height,
|
|
32125
|
-
|
|
32126
|
-
|
|
32127
|
-
|
|
32128
|
-
BrushBarBasketData,
|
|
32129
|
-
title
|
|
32128
|
+
data,
|
|
32129
|
+
barlineData,
|
|
32130
|
+
lineChartData
|
|
32130
32131
|
} = props;
|
|
32131
32132
|
const segmentedbuttonOptions = ["New Shoppers & Repeaters", "INC Sales & ROI", "INC Units", "Basket Lift"];
|
|
32132
32133
|
const [selectedOption, setSelectedOption] = useState(segmentedbuttonOptions[0]);
|
|
32133
32134
|
return /*#__PURE__*/React$1.createElement(Container, {
|
|
32134
32135
|
height: height,
|
|
32135
32136
|
width: width
|
|
32136
|
-
}, /*#__PURE__*/React$1.createElement(
|
|
32137
|
+
}, /*#__PURE__*/React$1.createElement(SegmentedButton, {
|
|
32137
32138
|
gap: "8px",
|
|
32138
32139
|
options: segmentedbuttonOptions.map(value => ({
|
|
32139
32140
|
value
|
|
@@ -32145,13 +32146,13 @@ const BrushChart = props => {
|
|
|
32145
32146
|
return setSelectedOption(value);
|
|
32146
32147
|
}
|
|
32147
32148
|
}), selectedOption === "New Shoppers & Repeaters" && /*#__PURE__*/React$1.createElement(InnerBarChart, {
|
|
32148
|
-
|
|
32149
|
+
data: data
|
|
32149
32150
|
}), selectedOption === "INC Sales & ROI" && /*#__PURE__*/React$1.createElement(SeparatedLineBarChart, {
|
|
32150
|
-
|
|
32151
|
+
barlineData: barlineData
|
|
32151
32152
|
}), selectedOption === "INC Units" && /*#__PURE__*/React$1.createElement(SingleChart, {
|
|
32152
|
-
|
|
32153
|
+
lineChartData: lineChartData
|
|
32153
32154
|
}), selectedOption === "Basket Lift" && /*#__PURE__*/React$1.createElement(SingleChart, {
|
|
32154
|
-
|
|
32155
|
+
lineChartData: lineChartData
|
|
32155
32156
|
}));
|
|
32156
32157
|
};
|
|
32157
32158
|
|
|
@@ -32169,12 +32170,10 @@ const Overlay = styled.div`
|
|
|
32169
32170
|
`;
|
|
32170
32171
|
const ModalContent = styled.div`
|
|
32171
32172
|
position: absolute;
|
|
32172
|
-
width:
|
|
32173
|
-
height:
|
|
32174
|
-
padding: 8rem 0 4rem;
|
|
32173
|
+
width: 70%;
|
|
32174
|
+
height: 80%;
|
|
32175
32175
|
box-sizing: border-box;
|
|
32176
|
-
margin:
|
|
32177
|
-
font-family: 'Poppins', sans-serif;
|
|
32176
|
+
margin: auto;
|
|
32178
32177
|
|
|
32179
32178
|
@media (max-width: 768px) {
|
|
32180
32179
|
width: 100%;
|
|
@@ -32223,12 +32222,7 @@ const Title = styled.h2`
|
|
|
32223
32222
|
color: ${props => props.$titleColor || "#fff"};
|
|
32224
32223
|
font-size: 1.25rem;
|
|
32225
32224
|
margin: 0;
|
|
32226
|
-
font-feature-settings: "liga" off;
|
|
32227
|
-
font-family: 'Poppins', sans-serif;
|
|
32228
|
-
font-size: 23.528px;
|
|
32229
|
-
font-style: normal;
|
|
32230
32225
|
font-weight: 700;
|
|
32231
|
-
line-height: normal;
|
|
32232
32226
|
|
|
32233
32227
|
@media (max-width: 768px) {
|
|
32234
32228
|
position: static;
|
|
@@ -32243,7 +32237,7 @@ styled.span`
|
|
|
32243
32237
|
const CarouselContainer = styled.div`
|
|
32244
32238
|
position: relative;
|
|
32245
32239
|
width: 100%;
|
|
32246
|
-
height:
|
|
32240
|
+
height: 80%;
|
|
32247
32241
|
overflow: visible;
|
|
32248
32242
|
margin: 0 auto;
|
|
32249
32243
|
`;
|
|
@@ -32282,16 +32276,17 @@ const VisibleCardsContainer = styled.div`
|
|
|
32282
32276
|
`;
|
|
32283
32277
|
const Card = styled.div`
|
|
32284
32278
|
position: absolute;
|
|
32285
|
-
width:
|
|
32286
|
-
height:
|
|
32279
|
+
width: 60%;
|
|
32280
|
+
height: 100%;
|
|
32281
|
+
max-width: 755px;
|
|
32287
32282
|
background: #ffffff;
|
|
32288
32283
|
border-radius: 16px;
|
|
32289
|
-
padding:
|
|
32284
|
+
padding: 20px 50px;
|
|
32290
32285
|
text-align: center;
|
|
32291
|
-
display: flex;
|
|
32286
|
+
/* display: flex;
|
|
32292
32287
|
flex-direction: column;
|
|
32293
32288
|
align-items: center;
|
|
32294
|
-
justify-content: center;
|
|
32289
|
+
justify-content: center; */
|
|
32295
32290
|
box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.05);
|
|
32296
32291
|
|
|
32297
32292
|
/* 🎯 תיקון: טרנזישן אחיד לכל שינויי תזוזה/שקיפות */
|
|
@@ -32378,7 +32373,7 @@ const InsightsCarousel = _ref => {
|
|
|
32378
32373
|
} = _ref;
|
|
32379
32374
|
const [currentIndex, setCurrentIndex] = useState(0);
|
|
32380
32375
|
const containerRef = useRef(null);
|
|
32381
|
-
const childrenArray = React$1.Children.toArray(children);
|
|
32376
|
+
const childrenArray = React$1.Children.toArray(children); // Converts children to an array
|
|
32382
32377
|
const totalChildren = childrenArray.length;
|
|
32383
32378
|
const goToSlide = index => {
|
|
32384
32379
|
let normalizedIndex = index;
|
|
@@ -32400,7 +32395,7 @@ const InsightsCarousel = _ref => {
|
|
|
32400
32395
|
fill: iconColor
|
|
32401
32396
|
}), title), /*#__PURE__*/React$1.createElement(CloseButton, {
|
|
32402
32397
|
onClick: () => onClose?.({
|
|
32403
|
-
label: "
|
|
32398
|
+
label: "closeCarousel"
|
|
32404
32399
|
}),
|
|
32405
32400
|
"aria-label": "Close insights overlay",
|
|
32406
32401
|
$navColor: navColor
|