sag_components 1.0.950 → 1.0.951
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/stories/components/AttachedFile/AttachedFile.js +62 -0
- package/dist/stories/components/AttachedFile/AttachedFile.stories.js +36 -0
- package/dist/stories/components/AttachedFile/AttachedFile.style.js +14 -0
- package/dist/stories/components/AttachedFile.js +1 -1
- package/dist/stories/components/AttachedFile.style.js +6 -40
- package/dist/stories/components/AutocompleteField.style.js +7 -47
- package/dist/stories/components/BannerEventBox/BannerEventBox.js +87 -0
- package/dist/stories/components/BannerEventBox/BannerEventBox.stories.js +58 -0
- package/dist/stories/components/BannerEventBox/BannerEventBox.style.js +22 -0
- package/dist/stories/components/BannerEventBox.js +33 -23
- package/dist/stories/components/BannerEventBox.style.js +14 -66
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.js +148 -0
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.stories.js +59 -0
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.style.js +23 -0
- package/dist/stories/components/BannerEventBoxList.js +1 -2
- package/dist/stories/components/BannerEventBoxList.style.js +15 -174
- package/dist/stories/components/BannersDropdown/BannersDropdown.js +115 -0
- package/dist/stories/components/BannersDropdown/BannersDropdown.stories.js +64 -0
- package/dist/stories/components/BannersDropdown/BannersDropdown.style.js +18 -0
- package/dist/stories/components/BannersDropdown.style.js +10 -91
- package/dist/stories/components/BarChart/BarChart.js +189 -0
- package/dist/stories/components/BarChart/BarChart.stories.js +144 -0
- package/dist/stories/components/BarChart/BarChart.style.js +18 -0
- package/dist/stories/components/BarChart.js +2 -2
- package/dist/stories/components/BarChart.style.js +10 -52
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.js +204 -0
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.stories.js +133 -0
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.style.js +18 -0
- package/dist/stories/components/BarChartTwoRows.js +2 -2
- package/dist/stories/components/BarChartTwoRows.style.js +11 -70
- package/dist/stories/components/BarChartWithAreaChart.js +7 -7
- package/dist/stories/components/BarChartWithAreaChart.style.js +11 -56
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.js +295 -0
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.stories.js +442 -0
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.style.js +21 -0
- package/dist/stories/components/BarChartsByWeeks.js +3 -7
- package/dist/stories/components/BarChartsByWeeks.style.js +13 -88
- package/dist/stories/components/Benchmark/Benchmark.js +130 -0
- package/dist/stories/components/Benchmark/Benchmark.stories.js +148 -0
- package/dist/stories/components/Benchmark/Benchmark.style.js +15 -0
- package/dist/stories/components/Benchmark.style.js +7 -53
- package/dist/stories/components/Button/Button.js +217 -0
- package/dist/stories/components/Button/Button.stories.js +269 -0
- package/dist/stories/components/Button/Button.style.js +15 -0
- package/dist/stories/components/Button.js +1 -1
- package/dist/stories/components/Button.style.js +7 -82
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.js +48 -0
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.stories.js +65 -0
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.style.js +15 -0
- package/dist/stories/components/CampaignTool/CampaignDemoReport.style.js +7 -40
- package/dist/stories/components/CampaignTool/Card.style.js +10 -58
- package/dist/stories/components/CampaignTool/MultipleCard.style.js +3 -6
- package/dist/stories/components/CampaignTool/PageFilterBar.style.js +4 -14
- package/dist/stories/components/CampaignTool/Popup.style.js +16 -114
- package/dist/stories/components/CampaignTool/PopupContent.style.js +11 -64
- package/dist/stories/components/CampaignTool/Table.js +2 -2
- package/dist/stories/components/CampaignTool/Table.style.js +9 -79
- package/dist/stories/components/Card/Card.js +72 -0
- package/dist/stories/components/Card/Card.stories.js +92 -0
- package/dist/stories/components/Card/Card.style.js +18 -0
- package/dist/stories/components/CheckBox/CheckBox.js +76 -0
- package/dist/stories/components/CheckBox/CheckBox.stories.js +107 -0
- package/dist/stories/components/CheckBox/CheckBox.style.js +14 -0
- package/dist/stories/components/CheckBox.style.js +6 -28
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.js +69 -0
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.stories.js +150 -0
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.style.js +14 -0
- package/dist/stories/components/CheckBoxButton.style.js +6 -31
- package/dist/stories/components/CodeEditor/CodeEditor.js +43 -0
- package/dist/stories/components/CodeEditor/CodeEditor.style.js +12 -0
- package/dist/stories/components/CodeEditor.style.js +3 -4
- package/dist/stories/components/CollapseData/CollapseData.js +66 -0
- package/dist/stories/components/CollapseData/CollapseData.stories.js +125 -0
- package/dist/stories/components/CollapseData/CollapseData.style.js +21 -0
- package/dist/stories/components/CollapseData.js +5 -5
- package/dist/stories/components/CollapseData.style.js +13 -119
- package/dist/stories/components/CollapseHeader/CollapseHeader.js +248 -0
- package/dist/stories/components/CollapseHeader/CollapseHeader.stories.js +116 -0
- package/dist/stories/components/CollapseHeader/CollapseHeader.style.js +35 -0
- package/dist/stories/components/CollapseHeader.style.js +27 -192
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.js +61 -0
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.stories.js +161 -0
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.style.js +17 -0
- package/dist/stories/components/CollapseMenuItem.style.js +9 -53
- package/dist/stories/components/Datepicker/Datepicker.js +148 -0
- package/dist/stories/components/Datepicker/Datepicker.stories.js +86 -0
- package/dist/stories/components/Datepicker/Datepicker.style.js +13 -0
- package/dist/stories/components/Datepicker.style.js +3 -9
- package/dist/stories/components/DownloadProgress/DownloadProgress.js +97 -0
- package/dist/stories/components/DownloadProgress/DownloadProgress.stories.js +111 -0
- package/dist/stories/components/DownloadProgress/DownloadProgress.style.js +14 -0
- package/dist/stories/components/DownloadProgress.style.js +6 -43
- package/dist/stories/components/Dropdown/Dropdown.js +231 -0
- package/dist/stories/components/Dropdown/Dropdown.stories.js +323 -0
- package/dist/stories/components/Dropdown/Dropdown.style.js +11 -0
- package/dist/stories/components/Dropdown.style.js +3 -9
- package/dist/stories/components/DropdownMulti.js +1 -1
- package/dist/stories/components/DropdownMulti.style.js +3 -9
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.js +279 -0
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.style.js +28 -0
- package/dist/stories/components/DropdownMultiNew.js +1 -1
- package/dist/stories/components/DropdownMultiNew.style.js +16 -193
- package/dist/stories/components/DropdownNew/DropdownNew.js +88 -0
- package/dist/stories/components/DropdownNew/DropdownNew.stories.js +407 -0
- package/dist/stories/components/DropdownNew/DropdownNew.style.js +11 -0
- package/dist/stories/components/DropdownNew.style.js +3 -14
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.js +234 -0
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.style.js +26 -0
- package/dist/stories/components/DropdownSingleNew.style.js +14 -162
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.js +144 -0
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.stories.js +57 -0
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.style.js +18 -0
- package/dist/stories/components/EventDetailsCard.style.js +10 -86
- package/dist/stories/components/EventList/EventList.js +61 -0
- package/dist/stories/components/EventList/EventList.stories.js +84 -0
- package/dist/stories/components/EventList/EventList.style.js +14 -0
- package/dist/stories/components/EventList.style.js +6 -30
- package/dist/stories/components/EventListItem/EventListItem.js +50 -0
- package/dist/stories/components/EventListItem/EventListItem.stories.js +65 -0
- package/dist/stories/components/EventListItem/EventListItem.style.js +14 -0
- package/dist/stories/components/EventListItem.style.js +6 -39
- package/dist/stories/components/FilterContainer/FilterContainer.js +29 -0
- package/dist/stories/components/FilterContainer/FilterContainer.stories.js +23 -0
- package/dist/stories/components/FilterContainer/FilterContainer.style.js +13 -0
- package/dist/stories/components/FilterContainer.style.js +5 -22
- package/dist/stories/components/FilterPanel/FilterPanel.js +566 -0
- package/dist/stories/components/FilterPanel/FilterPanel.stories.js +967 -0
- package/dist/stories/components/FilterPanel/FilterPanel.style.js +21 -0
- package/dist/stories/components/FilterPanel.js +17 -17
- package/dist/stories/components/FilterPanel.style.js +13 -81
- package/dist/stories/components/FormInput/FormInput.js +41 -0
- package/dist/stories/components/FormSelect/FormSelect.js +42 -0
- package/dist/stories/components/FormattedValue/FormattedValue.js +68 -0
- package/dist/stories/components/FormattedValue/FormattedValue.stories.js +189 -0
- package/dist/stories/components/FormattedValue/FormattedValue.style.js +18 -0
- package/dist/stories/components/FormattedValue.style.js +10 -83
- package/dist/stories/components/HaiTooltip.js +71 -0
- package/dist/stories/components/HaiTooltip.style.js +12 -0
- package/dist/stories/components/IconButton/IconButton.js +147 -0
- package/dist/stories/components/IconButton/IconButton.stories.js +131 -0
- package/dist/stories/components/IconButton/IconButton.style.js +15 -0
- package/dist/stories/components/IconButton.style.js +7 -56
- package/dist/stories/components/Input/Input.js +183 -0
- package/dist/stories/components/Input/Input.stories.js +434 -0
- package/dist/stories/components/Input/Input.style.js +17 -0
- package/dist/stories/components/Input.style.js +9 -123
- package/dist/stories/components/InputOld/InputOld.js +90 -0
- package/dist/stories/components/InputOld/InputOld.stories.js +100 -0
- package/dist/stories/components/InputOld/InputOld.style.js +16 -0
- package/dist/stories/components/InputOld.style.js +8 -62
- package/dist/stories/components/KpiFilter/KpiFilter.js +313 -0
- package/dist/stories/components/KpiFilter/KpiFilter.stories.js +380 -0
- package/dist/stories/components/KpiFilter/KpiFilter.style.js +26 -0
- package/dist/stories/components/KpiFilter.style.js +18 -124
- package/dist/stories/components/LinkButton/LinkButton.js +207 -0
- package/dist/stories/components/LinkButton/LinkButton.stories.js +180 -0
- package/dist/stories/components/LinkButton/LinkButton.style.js +14 -0
- package/dist/stories/components/LinkButton.style.js +6 -45
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.js +44 -0
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.stories.js +56 -0
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.style.js +22 -0
- package/dist/stories/components/LinnerDataBox.js +1 -1
- package/dist/stories/components/LinnerDataBox.style.js +14 -60
- package/dist/stories/components/ListBox/ListBox.js +82 -0
- package/dist/stories/components/ListBox/ListBox.stories.js +132 -0
- package/dist/stories/components/ListBox/ListBox.style.js +14 -0
- package/dist/stories/components/ListBox.style.js +6 -40
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.js +109 -0
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.stories.js +184 -0
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.style.js +27 -0
- package/dist/stories/components/MarketShareDescription.style.js +19 -207
- package/dist/stories/components/Modal/Modal.js +21 -0
- package/dist/stories/components/Modal/Modal.style.js +17 -0
- package/dist/stories/components/Modal/ModalTotalBenchmark.js +224 -0
- package/dist/stories/components/Modal/ModalTotalCost.js +139 -0
- package/dist/stories/components/Modal.style.js +8 -56
- package/dist/stories/components/ModalTotalBenchmark.js +6 -6
- package/dist/stories/components/MonthPicker/MonthPicker.js +166 -0
- package/dist/stories/components/MonthPicker/MonthPicker.stories.js +140 -0
- package/dist/stories/components/MonthPicker/MonthPicker.style.js +18 -0
- package/dist/stories/components/MonthPicker/MonthPopupPicker.js +122 -0
- package/dist/stories/components/MonthPicker.js +2 -2
- package/dist/stories/components/MonthPicker.style.js +10 -96
- package/dist/stories/components/MonthPopupPicker.js +13 -92
- package/dist/stories/components/MultipleCard/MultipleCard.js +26 -0
- package/dist/stories/components/MultipleCard/MultipleCard.stories.js +33 -0
- package/dist/stories/components/{BannerEventBoxTest.style.js → MultipleCard/MultipleCard.style.js} +2 -2
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.js +30 -0
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.stories.js +66 -0
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.style.js +13 -0
- package/dist/stories/components/NoDataFoundMessage.style.js +5 -31
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.js +121 -0
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.stories.js +119 -0
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.style.js +20 -0
- package/dist/stories/components/OneColumnContainer.style.js +12 -99
- package/dist/stories/components/PageFilterBar/PageFilterBar.js +23 -0
- package/dist/stories/components/PageFilterBar/PageFilterBar.stories.js +28 -0
- package/dist/stories/components/PageFilterBar/PageFilterBar.style.js +12 -0
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.js +440 -0
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.stories.js +258 -0
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.style.js +25 -0
- package/dist/stories/components/PerformanceAnalytics.js +9 -16
- package/dist/stories/components/PerformanceAnalytics.style.js +17 -136
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.js +58 -0
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.stories.js +86 -0
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.style.js +16 -0
- package/dist/stories/components/PerformanceAnalyticsLegend.js +1 -1
- package/dist/stories/components/PerformanceAnalyticsLegend.style.js +8 -55
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.js +320 -0
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.stories.js +231 -0
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.style.js +23 -0
- package/dist/stories/components/PerformanceAnalyticsOneColumn.js +5 -12
- package/dist/stories/components/PerformanceAnalyticsOneColumn.style.js +15 -108
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.js +70 -0
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.stories.js +100 -0
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.style.js +20 -0
- package/dist/stories/components/PerformanceAnalyticsTotals.js +1 -1
- package/dist/stories/components/PerformanceAnalyticsTotals.style.js +12 -81
- package/dist/stories/components/Popup/Popup.js +172 -0
- package/dist/stories/components/Popup/Popup.stories.js +704 -0
- package/dist/stories/components/Popup/Popup.style.js +24 -0
- package/dist/stories/components/PopupCharts/PopupCharts.js +244 -0
- package/dist/stories/components/PopupCharts/PopupCharts.stories.js +1203 -0
- package/dist/stories/components/PopupCharts/PopupCharts.style.js +23 -0
- package/dist/stories/components/PopupCharts.style.js +15 -100
- package/dist/stories/components/PopupContent/PopupContent.js +111 -0
- package/dist/stories/components/PopupContent/PopupContent.style.js +21 -0
- package/dist/stories/components/PopupContent/PopupFieldsRules.js +168 -0
- package/dist/stories/components/ProductsVariety/ProductsVariety.js +94 -0
- package/dist/stories/components/ProductsVariety/ProductsVariety.stories.js +91 -0
- package/dist/stories/components/ProductsVariety/ProductsVariety.style.js +20 -0
- package/dist/stories/components/ProductsVariety.style.js +12 -78
- package/dist/stories/components/ProgressBar/ProgressBar.js +52 -0
- package/dist/stories/components/ProgressBar/ProgressBar.stories.js +72 -0
- package/dist/stories/components/ProgressBar/ProgressBar.style.js +13 -0
- package/dist/stories/components/ProgressBar.style.js +4 -15
- package/dist/stories/components/QuarterPicker/QuarterPicker.js +165 -0
- package/dist/stories/components/QuarterPicker/QuarterPicker.stories.js +140 -0
- package/dist/stories/components/QuarterPicker/QuarterPicker.style.js +18 -0
- package/dist/stories/components/QuarterPicker/QuarterPopupPicker.js +109 -0
- package/dist/stories/components/QuarterPicker.js +2 -2
- package/dist/stories/components/QuarterPicker.style.js +10 -95
- package/dist/stories/components/QuarterPopupPicker.js +12 -86
- package/dist/stories/components/QuickFilter/QuickFilter.js +78 -0
- package/dist/stories/components/QuickFilter/QuickFilter.stories.js +281 -0
- package/dist/stories/components/QuickFilter/QuickFilter.style.js +11 -0
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.js +299 -0
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.style.js +28 -0
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.js +229 -0
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.style.js +27 -0
- package/dist/stories/components/QuickFilter.style.js +3 -13
- package/dist/stories/components/QuickFilterDropdownMultiSelection.js +1 -1
- package/dist/stories/components/QuickFilterDropdownMultiSelection.style.js +16 -182
- package/dist/stories/components/QuickFilterDropdownSingle.style.js +15 -127
- package/dist/stories/components/RangeDatePicker.js +12 -96
- package/dist/stories/components/RangePicker/RangeDatePicker.js +146 -0
- package/dist/stories/components/RangePicker/RangePicker.js +176 -0
- package/dist/stories/components/RangePicker/RangePicker.stories.js +138 -0
- package/dist/stories/components/RangePicker/RangePicker.style.js +18 -0
- package/dist/stories/components/RangePicker.js +2 -2
- package/dist/stories/components/RangePicker.style.js +10 -100
- package/dist/stories/components/Rbackup.js +453 -0
- package/dist/stories/components/ReportTable/ReportTable.js +262 -0
- package/dist/stories/components/ReportTable/ReportTable.stories.js +151 -0
- package/dist/stories/components/ReportTable/ReportTable.style.js +22 -0
- package/dist/stories/components/ReportTable.style.js +14 -123
- package/dist/stories/components/SagButton/SagButton.js +68 -0
- package/dist/stories/components/SagButton/SagButton.stories.js +118 -0
- package/dist/stories/components/SagButton/SagButton.style.js +13 -0
- package/dist/stories/components/SagButton.style.js +5 -39
- package/dist/stories/components/SagIconButton/SagIconButton.js +130 -0
- package/dist/stories/components/SagIconButton/SagIconButton.stories.js +123 -0
- package/dist/stories/components/SagIconButton/SagIconButton.style.js +12 -0
- package/dist/stories/components/SagIconButton.style.js +4 -22
- package/dist/stories/components/SagInput/SagInput.js +53 -0
- package/dist/stories/components/SagInput/SagInput.stories.js +69 -0
- package/dist/stories/components/{NewInput.style.js → SagInput/SagInput.style.js} +2 -2
- package/dist/stories/components/SagInput.style.js +5 -33
- package/dist/stories/components/SalesAndROI/SalesAndROI.js +89 -0
- package/dist/stories/components/SalesAndROI/SalesAndROI.stories.js +168 -0
- package/dist/stories/components/SalesAndROI/SalesAndROI.style.js +19 -0
- package/dist/stories/components/SalesAndROI.style.js +11 -103
- package/dist/stories/components/SearchInput/SearchInput.js +39 -0
- package/dist/stories/components/SearchInput/SearchInput.stories.js +44 -0
- package/dist/stories/components/SearchInput/SearchInput.style.js +12 -0
- package/dist/stories/components/SearchInput.style.js +4 -29
- package/dist/stories/components/SegmentedButton/SegmentedButton.js +122 -0
- package/dist/stories/components/SegmentedButton/SegmentedButton.stories.js +183 -0
- package/dist/stories/components/SegmentedButton/SegmentedButton.style.js +19 -0
- package/dist/stories/components/SegmentedButton.js +5 -5
- package/dist/stories/components/SegmentedButton.style.js +9 -90
- package/dist/stories/components/Select/Select.js +135 -0
- package/dist/stories/components/Select/Select.stories.js +200 -0
- package/dist/stories/components/Select/Select.style.js +19 -0
- package/dist/stories/components/Select.style.js +9 -93
- package/dist/stories/components/SingleBarLineCharts.js +5 -5
- package/dist/stories/components/SingleBarLineCharts.style.js +14 -88
- package/dist/stories/components/TabMenu/TabMenu.js +202 -0
- package/dist/stories/components/TabMenu/TabMenu.stories.js +76 -0
- package/dist/stories/components/TabMenu/TabMenu.style.js +24 -0
- package/dist/stories/components/TabMenu.js +7 -19
- package/dist/stories/components/TabMenu.style.js +14 -105
- package/dist/stories/components/Table/Table.js +195 -0
- package/dist/stories/components/Table/Table.stories.js +104 -0
- package/dist/stories/components/Table/Table.style.js +17 -0
- package/dist/stories/components/TableTooltip.js +71 -0
- package/dist/stories/components/TableTooltip.style.js +12 -0
- package/dist/stories/components/TextField/TextField.js +209 -0
- package/dist/stories/components/TextField/TextField.stories.js +162 -0
- package/dist/stories/components/TextField/TextField.style.js +11 -0
- package/dist/stories/components/TextField.style.js +3 -10
- package/dist/stories/components/TitleDescription/TitleDescription.js +272 -0
- package/dist/stories/components/TitleDescription/TitleDescription.stories.js +117 -0
- package/dist/stories/components/TitleDescription/TitleDescription.style.js +36 -0
- package/dist/stories/components/TitleDescription.style.js +28 -214
- package/dist/stories/components/Tooltip/Tooltip.js +31 -0
- package/dist/stories/components/Tooltip/Tooltip.style.js +18 -0
- package/dist/stories/components/Tooltip.js +1 -1
- package/dist/stories/components/Tooltip.style.js +5 -90
- package/dist/stories/components/TopToggleList/TopToggleList.js +46 -0
- package/dist/stories/components/TopToggleList/TopToggleList.stories.js +52 -0
- package/dist/stories/components/TopToggleList/TopToggleList.style.js +16 -0
- package/dist/stories/components/TopToggleList.style.js +8 -43
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.js +97 -0
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.stories.js +138 -0
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.style.js +21 -0
- package/dist/stories/components/TotalBenchmark.style.js +11 -71
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.js +342 -0
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.stories.js +343 -0
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.style.js +30 -0
- package/dist/stories/components/TotalBenchmarkAreachart.js +3 -3
- package/dist/stories/components/TotalBenchmarkAreachart.style.js +22 -163
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.js +149 -0
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.stories.js +172 -0
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.style.js +24 -0
- package/dist/stories/components/TotalBenchmarkArrows.style.js +16 -100
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.js +165 -0
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.stories.js +185 -0
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.style.js +20 -0
- package/dist/stories/components/TotalBenchmarkBarchart.style.js +12 -69
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.js +186 -0
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.stories.js +291 -0
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.style.js +30 -0
- package/dist/stories/components/TotalDoughnutChart.js +3 -3
- package/dist/stories/components/TotalDoughnutChart.style.js +22 -170
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.js +214 -0
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.js +190 -0
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.style.js +20 -0
- package/dist/stories/components/TotalHorizontalCharts.js +3 -3
- package/dist/stories/components/TotalHorizontalCharts.style.js +12 -113
- package/dist/stories/components/TspanTooltip/TspanTooltip.js +33 -0
- package/dist/stories/components/TspanTooltip/TspanTooltip.style.js +13 -0
- package/dist/stories/components/TspanTooltip.js +3 -3
- package/dist/stories/components/TspanTooltip.style.js +5 -97
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.js +202 -0
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.stories.js +120 -0
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.style.js +18 -0
- package/dist/stories/components/TwoBarCharts.js +2 -2
- package/dist/stories/components/TwoBarCharts.style.js +10 -52
- package/dist/stories/icons/ArrowDownIcon.js +27 -0
- package/dist/stories/icons/ArrowDropDownIcon.js +27 -0
- package/dist/stories/icons/ArrowSelectIcon.js +27 -0
- package/dist/stories/icons/ArrowUpIcon.js +27 -0
- package/dist/stories/icons/AttachedIcon.js +27 -0
- package/dist/stories/icons/BellIcon.js +27 -0
- package/dist/stories/icons/Calendar.js +20 -0
- package/dist/stories/icons/CalendarIcon.js +27 -0
- package/dist/stories/icons/CalendarInOpen.js +26 -0
- package/dist/stories/icons/CheckBoxButtonCheckedIcon.js +28 -0
- package/dist/stories/icons/CheckBoxCheckedIcon.js +28 -0
- package/dist/stories/icons/CheckBoxNotCheckedIcon.js +28 -0
- package/dist/stories/icons/ChervronLeftIcon.js +20 -0
- package/dist/stories/icons/ChervronRightIcon.js +20 -0
- package/dist/stories/icons/ClockIcon.js +27 -0
- package/dist/stories/icons/CloseIcon.js +27 -0
- package/dist/stories/icons/CloseXIcon.js +27 -0
- package/dist/stories/icons/ComboBoxArrowDownIcon.js +28 -0
- package/dist/stories/icons/ComboBoxArrowUpIcon.js +28 -0
- package/dist/stories/icons/DocumentIcon.js +48 -0
- package/dist/stories/icons/DownloadIcon.js +27 -0
- package/dist/stories/icons/Duplicate.js +28 -0
- package/dist/stories/icons/ErrorIcon.js +27 -0
- package/dist/stories/icons/ExitIcon.js +28 -0
- package/dist/stories/icons/ExportIcon.js +28 -0
- package/dist/stories/icons/EyeIcon.js +28 -0
- package/dist/stories/icons/FileIcon.js +27 -0
- package/dist/stories/icons/FilterIcon.js +36 -0
- package/dist/stories/icons/FlyIcon.js +28 -0
- package/dist/stories/icons/FoodLionChartIcon.js +42 -0
- package/dist/stories/icons/FoodLionIcon.js +3076 -0
- package/dist/stories/icons/FoodLionNewIcon.js +39 -0
- package/dist/stories/icons/GiantFoodChartIcon.js +40 -0
- package/dist/stories/icons/GiantFoodIcon.js +1976 -0
- package/dist/stories/icons/GiantFoodIcon_new.js +42 -0
- package/dist/stories/icons/HannafordChartIcon.js +40 -0
- package/dist/stories/icons/HannafordIcon.js +5017 -0
- package/dist/stories/icons/HannafordIcon_new.js +41 -0
- package/dist/stories/icons/HannafordNewIcon.js +213 -0
- package/dist/stories/icons/InfoIcon.js +28 -0
- package/dist/stories/icons/LampIcon.js +27 -0
- package/dist/stories/icons/LegendLineIcon.js +29 -0
- package/dist/stories/icons/LegendUnionIcon.js +29 -0
- package/dist/stories/icons/MaintenanceIcon.js +28 -0
- package/dist/stories/icons/MenuItemClosedIcon.js +28 -0
- package/dist/stories/icons/MenuItemOpenIcon.js +28 -0
- package/dist/stories/icons/MenuItemRightIcon.js +28 -0
- package/dist/stories/icons/MenuItemUpIcon.js +28 -0
- package/dist/stories/icons/NoDataFoundIcon.js +86 -0
- package/dist/stories/icons/OptionsIcon.js +27 -0
- package/dist/stories/icons/SearchIcon.js +27 -0
- package/dist/stories/icons/ShoppingCartIcon.js +45 -0
- package/dist/stories/icons/ShoutIcon.js +27 -0
- package/dist/stories/icons/SpotlightProductIcon.js +28 -0
- package/dist/stories/icons/StopAndShopChartIcon.js +42 -0
- package/dist/stories/icons/StopAndShopIcon.js +134 -0
- package/dist/stories/icons/StopAndShopNewIcon.js +41 -0
- package/dist/stories/icons/SucceededIcon.js +27 -0
- package/dist/stories/icons/TheGiantCompanyChartIcon.js +40 -0
- package/dist/stories/icons/TheGiantCompanyIcon.js +40 -0
- package/dist/stories/icons/TheGiantCompanyNewIcon.js +39 -0
- package/dist/stories/utils/CommonFunctions.js +78 -0
- package/dist/stories/utils/IconsHandler.style.js +3 -8
- package/package.json +1 -1
- package/dist/stories/CampaignTool/PopupContent.stories.js +0 -284
- package/dist/stories/components/BannerEventBoxTest.js +0 -42
- package/dist/stories/components/FilterButton.js +0 -53
- package/dist/stories/components/FilterButton.style.js +0 -12
- package/dist/stories/components/NewInput.js +0 -33
- package/dist/stories/components/icons/TheGiantCompanyIcon_old.js +0 -1831
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = exports.IndividualPerformance = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _PerformanceAnalytics = require("./PerformanceAnalytics");
|
|
10
|
+
const totalsData1 = [{
|
|
11
|
+
title: "Total Cost",
|
|
12
|
+
value: 360000,
|
|
13
|
+
dotCut: true,
|
|
14
|
+
currency: true,
|
|
15
|
+
currencyType: "USD",
|
|
16
|
+
growthPercent: 15.2,
|
|
17
|
+
showGrowthPercentSign: true
|
|
18
|
+
}, {
|
|
19
|
+
title: "Incremental Sales",
|
|
20
|
+
value: 960000,
|
|
21
|
+
dotCut: true,
|
|
22
|
+
currency: true,
|
|
23
|
+
currencyType: "USD",
|
|
24
|
+
growthPercent: 13.5,
|
|
25
|
+
showGrowthPercentSign: true
|
|
26
|
+
}, {
|
|
27
|
+
title: "Incremental Sales ROI",
|
|
28
|
+
value: 2.7,
|
|
29
|
+
dotCut: true,
|
|
30
|
+
currency: false,
|
|
31
|
+
currencyType: null,
|
|
32
|
+
growthPercent: null,
|
|
33
|
+
showGrowthPercentSign: true
|
|
34
|
+
}];
|
|
35
|
+
const data1 = [{
|
|
36
|
+
retailer: "Food Lion",
|
|
37
|
+
offerType: "B2G3",
|
|
38
|
+
period: "15.01.24-31.01.24",
|
|
39
|
+
roiValue: 2.5,
|
|
40
|
+
// individual performance
|
|
41
|
+
packageCostValue: 120,
|
|
42
|
+
redemptionCostValue: null,
|
|
43
|
+
incrementalSalesValue: 300,
|
|
44
|
+
// % Incremental Growth
|
|
45
|
+
IncrementalGrowthValue: 10,
|
|
46
|
+
// % Contribution of Total Cost
|
|
47
|
+
contributionTotalCostValue: 32,
|
|
48
|
+
contributionIncrementalSalesValue: 31
|
|
49
|
+
}, {
|
|
50
|
+
retailer: "Hannaford",
|
|
51
|
+
offerType: "B2G3",
|
|
52
|
+
period: "02.01.24-15.01.24",
|
|
53
|
+
roiValue: 3.6,
|
|
54
|
+
// individual performance
|
|
55
|
+
packageCostValue: 55,
|
|
56
|
+
redemptionCostValue: 30,
|
|
57
|
+
incrementalSalesValue: 250,
|
|
58
|
+
// % Incremental Growth
|
|
59
|
+
IncrementalGrowthValue: 25,
|
|
60
|
+
// % Contribution of Total Cost
|
|
61
|
+
contributionTotalCostValue: 19,
|
|
62
|
+
contributionIncrementalSalesValue: 26
|
|
63
|
+
}, {
|
|
64
|
+
retailer: "The Giant Company",
|
|
65
|
+
offerType: "20% Off",
|
|
66
|
+
period: "15.01.24-31.01.24",
|
|
67
|
+
roiValue: 2.0,
|
|
68
|
+
// individual performance
|
|
69
|
+
packageCostValue: 30,
|
|
70
|
+
redemptionCostValue: 10,
|
|
71
|
+
incrementalSalesValue: 160,
|
|
72
|
+
// % Incremental Growth
|
|
73
|
+
IncrementalGrowthValue: 2,
|
|
74
|
+
// % Contribution of Total Cost
|
|
75
|
+
contributionTotalCostValue: 22,
|
|
76
|
+
contributionIncrementalSalesValue: 17
|
|
77
|
+
}, {
|
|
78
|
+
retailer: "Giant Food",
|
|
79
|
+
offerType: "20% Off",
|
|
80
|
+
period: "02.01.24-15.01.24",
|
|
81
|
+
roiValue: 2.5,
|
|
82
|
+
// individual performance
|
|
83
|
+
packageCostValue: 60,
|
|
84
|
+
redemptionCostValue: 20,
|
|
85
|
+
incrementalSalesValue: 150,
|
|
86
|
+
// % Incremental Growth
|
|
87
|
+
IncrementalGrowthValue: 20,
|
|
88
|
+
// % Contribution of Total Cost
|
|
89
|
+
contributionTotalCostValue: 17,
|
|
90
|
+
contributionIncrementalSalesValue: 16
|
|
91
|
+
}, {
|
|
92
|
+
retailer: "Stop&Shop",
|
|
93
|
+
offerType: "20% Off",
|
|
94
|
+
period: "02.01.24-15.01.24",
|
|
95
|
+
roiValue: 3.3,
|
|
96
|
+
// individual performance
|
|
97
|
+
packageCostValue: 30,
|
|
98
|
+
redemptionCostValue: null,
|
|
99
|
+
incrementalSalesValue: 100,
|
|
100
|
+
// % Incremental Growth
|
|
101
|
+
IncrementalGrowthValue: -8,
|
|
102
|
+
// % Contribution of Total Cost
|
|
103
|
+
contributionTotalCostValue: 8,
|
|
104
|
+
contributionIncrementalSalesValue: 10
|
|
105
|
+
}];
|
|
106
|
+
const legendData1 = [{
|
|
107
|
+
iconColor: "#1F7677",
|
|
108
|
+
iconType: "Square",
|
|
109
|
+
title: "Total Cost"
|
|
110
|
+
}, {
|
|
111
|
+
iconColor: "#90CE9C",
|
|
112
|
+
iconType: "Square",
|
|
113
|
+
title: "Incremental Sales"
|
|
114
|
+
}, {
|
|
115
|
+
iconColor: "#9CCB3B",
|
|
116
|
+
iconType: "LegendUnionIcon",
|
|
117
|
+
title: "Incremental Sales ROI"
|
|
118
|
+
}];
|
|
119
|
+
var _default = exports.default = {
|
|
120
|
+
title: "SAG BI/PerformanceAnalytics",
|
|
121
|
+
component: _PerformanceAnalytics.PerformanceAnalytics,
|
|
122
|
+
tags: ["autodocs"],
|
|
123
|
+
parameters: {
|
|
124
|
+
design: {
|
|
125
|
+
type: "figspec",
|
|
126
|
+
accessToken: "figd_vSza21Sk6g-JWb5K_GAQhRJhmuRhS6k1Ju1KNGpC"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
argTypes: {
|
|
130
|
+
currencyType: {
|
|
131
|
+
name: "currencyType",
|
|
132
|
+
options: ["USD", "EUR", "ILS", "GBP", "JPY", ""],
|
|
133
|
+
control: {
|
|
134
|
+
type: "select"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
legendData: {
|
|
138
|
+
name: "legendData",
|
|
139
|
+
description: "array [] of objects: to fill the legend on bottom of the component "
|
|
140
|
+
},
|
|
141
|
+
width: {
|
|
142
|
+
name: "Width",
|
|
143
|
+
control: {
|
|
144
|
+
type: "text"
|
|
145
|
+
},
|
|
146
|
+
description: "width of the control (in px / %)"
|
|
147
|
+
},
|
|
148
|
+
height: {
|
|
149
|
+
name: "Height",
|
|
150
|
+
control: {
|
|
151
|
+
type: "text"
|
|
152
|
+
},
|
|
153
|
+
description: "height of the control (in px / %)"
|
|
154
|
+
},
|
|
155
|
+
dotCut: {
|
|
156
|
+
name: "dotCut",
|
|
157
|
+
control: {
|
|
158
|
+
type: "boolean"
|
|
159
|
+
},
|
|
160
|
+
description: "true/false - format total value with dot cut"
|
|
161
|
+
},
|
|
162
|
+
lineChartHeight: {
|
|
163
|
+
name: "lineChartHeight",
|
|
164
|
+
control: {
|
|
165
|
+
type: "number"
|
|
166
|
+
},
|
|
167
|
+
description: "height of the control (in px)"
|
|
168
|
+
},
|
|
169
|
+
textcolor: {
|
|
170
|
+
name: "textcolor",
|
|
171
|
+
description: "Sets the text color",
|
|
172
|
+
control: {
|
|
173
|
+
type: "color",
|
|
174
|
+
presetColors: ["#ffffff", "#ff0000", "#00ff00", "#0000ff"]
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
colorGraphROI: {
|
|
178
|
+
name: "colorGraphROI",
|
|
179
|
+
description: "Sets the color Graph ROI",
|
|
180
|
+
control: {
|
|
181
|
+
type: "color",
|
|
182
|
+
presetColors: ["#ffffff", "#ff0000", "#00ff00", "#0000ff"]
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
noDataText: {
|
|
186
|
+
name: "noDataText",
|
|
187
|
+
control: {
|
|
188
|
+
type: "text"
|
|
189
|
+
},
|
|
190
|
+
description: "text to display when no data found"
|
|
191
|
+
},
|
|
192
|
+
tooltipBarchartLabel_ROI: {
|
|
193
|
+
name: "tooltipBarchartLabel_ROI",
|
|
194
|
+
control: {
|
|
195
|
+
type: "text"
|
|
196
|
+
},
|
|
197
|
+
description: "text to display on barchart tooltip ROI"
|
|
198
|
+
},
|
|
199
|
+
tooltipBarchartLabel_IndividualPerformance1: {
|
|
200
|
+
name: "tooltipBarchartLabel_IndividualPerformance1",
|
|
201
|
+
control: {
|
|
202
|
+
type: "text"
|
|
203
|
+
},
|
|
204
|
+
description: "text to display on barchart tooltip line 1"
|
|
205
|
+
},
|
|
206
|
+
tooltipBarchartLabel_IndividualPerformance2: {
|
|
207
|
+
name: "tooltipBarchartLabel_IndividualPerformance1",
|
|
208
|
+
control: {
|
|
209
|
+
type: "text"
|
|
210
|
+
},
|
|
211
|
+
description: "text to display on barchart tooltip line 2"
|
|
212
|
+
},
|
|
213
|
+
tooltipBarchartLabel_IndividualPerformance3: {
|
|
214
|
+
name: "tooltipBarchartLabel_IndividualPerformance3",
|
|
215
|
+
control: {
|
|
216
|
+
type: "text"
|
|
217
|
+
},
|
|
218
|
+
description: "text to display on barchart tooltip line 3"
|
|
219
|
+
},
|
|
220
|
+
tooltipBarchartLabel_ContributionOfTotal1: {
|
|
221
|
+
name: "tooltipBarchartLabel_ContributionOfTotal1",
|
|
222
|
+
control: {
|
|
223
|
+
type: "text"
|
|
224
|
+
},
|
|
225
|
+
description: "text to display on barchart tooltip Contribution to the Total Cost 1"
|
|
226
|
+
},
|
|
227
|
+
tooltipBarchartLabel_ContributionOfTotal2: {
|
|
228
|
+
name: "tooltipBarchartLabel_ContributionOfTotal2",
|
|
229
|
+
control: {
|
|
230
|
+
type: "text"
|
|
231
|
+
},
|
|
232
|
+
description: "text to display on barchart tooltip Contribution to the Total Cost 2"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
const IndividualPerformance = exports.IndividualPerformance = {
|
|
237
|
+
args: {
|
|
238
|
+
totalsData: totalsData1,
|
|
239
|
+
data: data1,
|
|
240
|
+
legendData: legendData1,
|
|
241
|
+
colorBarchart1: "#1F7677",
|
|
242
|
+
colorBarchart2: "#90CE9C",
|
|
243
|
+
colorGraphROI: "#FF7144",
|
|
244
|
+
currencyType: "USD",
|
|
245
|
+
dotCut: true,
|
|
246
|
+
width: "100%",
|
|
247
|
+
height: "100%",
|
|
248
|
+
barChartHeight: 250,
|
|
249
|
+
lineChartHeight: 100,
|
|
250
|
+
noDataText: "The selected event is a TPR or has no offer, therefore there are no redemptions or redemption units to display.",
|
|
251
|
+
tooltipBarchartLabel_ROI: "Incremental Sales ROI:",
|
|
252
|
+
tooltipBarchartLabel_IndividualPerformance1: "Package Cost:",
|
|
253
|
+
tooltipBarchartLabel_IndividualPerformance2: "Redemption Cost:",
|
|
254
|
+
tooltipBarchartLabel_IndividualPerformance3: "Incremental Sales:",
|
|
255
|
+
tooltipBarchartLabel_ContributionOfTotal1: "% Contribution to the Total Cost:",
|
|
256
|
+
tooltipBarchartLabel_ContributionOfTotal2: "% Contribution to the Inc. Sales:"
|
|
257
|
+
}
|
|
258
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.TooltipValue = exports.TooltipTitle = exports.TooltipLabel = exports.TooltipContainer = exports.ToolTipLabelAndValueContainer = exports.ToolTipBarchart1LabelAndValueContainer = exports.ToolTipBarchart1Container = exports.SegmentedButtonContainer = exports.LegendTitle = exports.LegendColorRectangle = exports.LabelText = exports.LabelBoldText = exports.ControlsContainer = exports.Controls = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
|
|
11
|
+
const scrollableStyles = "\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n width: 8px;\n }\n\n &::-webkit-scrollbar-track {\n background: #E8E8E8;\n border-radius: 5px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #D0D0D0;\n border-radius: 5px;\n }\n";
|
|
12
|
+
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n font-family: \"Poppins\", sans-serif;\n font-style: normal;\n font-size: ", ";\n color: ", ";\n width: ", ";\n height: ", ";\n border-radius: 12px;\n align-self: center;\n\n > * {\n box-sizing: border-box;\n }\n"])), props => props.rootFont, props => props.textcolor, props => props.width, props => props.height);
|
|
13
|
+
const Controls = exports.Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 100%;\n padding: 14px 28px;\n background: white;\n ", "\n @media (max-width: 1536px) {\n padding: 12px 24px;\n }\n > #SegmentedButtonContainer {\n padding-left: 0;\n margin-bottom: 16px;\n > #Controls {\n background: #f2f2f2;\n }\n }\n"])), scrollableStyles);
|
|
14
|
+
const LabelBoldText = exports.LabelBoldText = _styledComponents.default.tspan(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n @media (max-width: 1536px) {\n font-size: 12px;\n }\n"])));
|
|
15
|
+
const LabelText = exports.LabelText = _styledComponents.default.tspan(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n @media (max-width: 1536px) {\n font-size: 10px;\n }\n @media (max-width: 1366px) {\n font-size: 8px;\n }\n"])));
|
|
16
|
+
const LegendTitle = exports.LegendTitle = _styledComponents.default.h5(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n @media (max-width: 1536px) {\n font-size: 11px;\n }\n @media (max-width: 1366px) {\n font-size: 10px;\n }\n"])));
|
|
17
|
+
const SegmentedButtonContainer = exports.SegmentedButtonContainer = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n padding: 10px 0 0 10px;\n"])));
|
|
18
|
+
const TooltipContainer = exports.TooltipContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);\n border-radius: 5px;\n background: #fff;\n font-family: \"Poppins\", sans-serif;\n border-radius: 5px;\n padding: 8px 12px;\n display: grid;\n"])));
|
|
19
|
+
const TooltipLabel = exports.TooltipLabel = _styledComponents.default.p(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n width: fit-content;\n margin: 0 6px 0 0;\n"])));
|
|
20
|
+
const TooltipValue = exports.TooltipValue = _styledComponents.default.p(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n width: fit-content;\n margin: 0;\n"])));
|
|
21
|
+
const TooltipTitle = exports.TooltipTitle = _styledComponents.default.p(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-family: Poppins;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n margin: 0;\n"])));
|
|
22
|
+
const ToolTipBarchart1Container = exports.ToolTipBarchart1Container = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 10px;\n"])));
|
|
23
|
+
const ToolTipBarchart1LabelAndValueContainer = exports.ToolTipBarchart1LabelAndValueContainer = _styledComponents.default.div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n gap: 8px;\n"])));
|
|
24
|
+
const ToolTipLabelAndValueContainer = exports.ToolTipLabelAndValueContainer = _styledComponents.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n gap: 8px;\n"])));
|
|
25
|
+
const LegendColorRectangle = exports.LegendColorRectangle = _styledComponents.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n width: 0.875rem;\n min-width: 0.875rem;\n height: 0.875rem;\n border-radius: 2px;\n background: ", ";\n"])), props => props.color);
|
|
@@ -112,7 +112,7 @@ const PerformanceAnalytics = props => {
|
|
|
112
112
|
} = _ref;
|
|
113
113
|
if (active && payload && payload.length > 0) {
|
|
114
114
|
var _payload$0$payload;
|
|
115
|
-
return /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipContainer, null, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipTitle, null,
|
|
115
|
+
return /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipContainer, null, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipTitle, null, "".concat((_payload$0$payload = payload[0].payload) === null || _payload$0$payload === void 0 ? void 0 : _payload$0$payload.retailer)), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipLabelAndValueContainer, null, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipLabel, null, tooltipBarchartLabel_ROI), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, null, "".concat((0, _CommonFunctions.getFormattedValue)(payload[0].value)).concat((0, _CommonFunctions.getFormattedUnits)(payload[0].value)))));
|
|
116
116
|
}
|
|
117
117
|
return null;
|
|
118
118
|
};
|
|
@@ -144,17 +144,13 @@ const PerformanceAnalytics = props => {
|
|
|
144
144
|
id: "TooltipLabel"
|
|
145
145
|
}, tooltipBarchartLabel_IndividualPerformance1), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
|
|
146
146
|
id: "TooltipValue"
|
|
147
|
-
},
|
|
148
|
-
${(0, _CommonFunctions.getFormattedUnits)(payload[0].payload.packageCostValue)} (${packageCostPercent.toFixed(1)}%) `)), redemptionCostPercent > 0 && /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipLabelAndValueContainer, {
|
|
147
|
+
}, "".concat((0, _CommonFunctions.getCurrencySign)(currencyType)).concat((0, _CommonFunctions.getFormattedValue)(payload[0].payload.packageCostValue), "\n ").concat((0, _CommonFunctions.getFormattedUnits)(payload[0].payload.packageCostValue), " (").concat(packageCostPercent.toFixed(1), "%) "))), redemptionCostPercent > 0 && /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipLabelAndValueContainer, {
|
|
149
148
|
id: "ToolTipLabelAndValueContainer"
|
|
150
149
|
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipLabel, {
|
|
151
150
|
id: "TooltipLabel"
|
|
152
151
|
}, tooltipBarchartLabel_IndividualPerformance2), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
|
|
153
152
|
id: "TooltipValue"
|
|
154
|
-
},
|
|
155
|
-
${(0, _CommonFunctions.getFormattedValue)(payload[0].payload.redemptionCostValue)}
|
|
156
|
-
${(0, _CommonFunctions.getFormattedUnits)(payload[0].payload.redemptionCostValue)}
|
|
157
|
-
(${redemptionCostPercent.toFixed(1)}%) `)))), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipLabelAndValueContainer, {
|
|
153
|
+
}, "".concat((0, _CommonFunctions.getCurrencySign)(currencyType), "\n ").concat((0, _CommonFunctions.getFormattedValue)(payload[0].payload.redemptionCostValue), "\n ").concat((0, _CommonFunctions.getFormattedUnits)(payload[0].payload.redemptionCostValue), " \n (").concat(redemptionCostPercent.toFixed(1), "%) "))))), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipLabelAndValueContainer, {
|
|
158
154
|
id: "ToolTipLabelAndValueContainer"
|
|
159
155
|
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.LegendColorRectangle, {
|
|
160
156
|
id: "LegendColorRectangle",
|
|
@@ -163,8 +159,7 @@ const PerformanceAnalytics = props => {
|
|
|
163
159
|
id: "TooltipLabel"
|
|
164
160
|
}, tooltipBarchartLabel_IndividualPerformance3), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
|
|
165
161
|
id: "TooltipValue"
|
|
166
|
-
},
|
|
167
|
-
${(0, _CommonFunctions.getFormattedUnits)(payload[0].payload.incrementalSalesValue)} `)));
|
|
162
|
+
}, "".concat((0, _CommonFunctions.getCurrencySign)(currencyType)).concat((0, _CommonFunctions.getFormattedValue)(payload[0].payload.incrementalSalesValue), "\n ").concat((0, _CommonFunctions.getFormattedUnits)(payload[0].payload.incrementalSalesValue), " "))));
|
|
168
163
|
case PERCENT_INCREMENTAL_GROWTH_STR:
|
|
169
164
|
return /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipContainer, {
|
|
170
165
|
id: "TooltipContainer"
|
|
@@ -177,7 +172,7 @@ const PerformanceAnalytics = props => {
|
|
|
177
172
|
id: "TooltipLabel"
|
|
178
173
|
}, "Incremental Growth Value:"), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
|
|
179
174
|
id: "TooltipValue"
|
|
180
|
-
},
|
|
175
|
+
}, "".concat((_payload$0$payload$In = payload[0].payload.IncrementalGrowthValue) === null || _payload$0$payload$In === void 0 ? void 0 : _payload$0$payload$In.toFixed(1), "% "))));
|
|
181
176
|
case PERCENT_CONTRIBUTION_OF_TOTAL_STR:
|
|
182
177
|
return /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipContainer, {
|
|
183
178
|
id: "TooltipContainer"
|
|
@@ -194,7 +189,7 @@ const PerformanceAnalytics = props => {
|
|
|
194
189
|
id: "TooltipLabel"
|
|
195
190
|
}, tooltipBarchartLabel_ContributionOfTotal1), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
|
|
196
191
|
id: "TooltipValue"
|
|
197
|
-
},
|
|
192
|
+
}, "".concat((_payload$0$payload$co = payload[0].payload.contributionTotalCostValue) === null || _payload$0$payload$co === void 0 ? void 0 : _payload$0$payload$co.toFixed(1), "% "))))), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipLabelAndValueContainer, {
|
|
198
193
|
id: "ToolTipLabelAndValueContainer"
|
|
199
194
|
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.LegendColorRectangle, {
|
|
200
195
|
id: "LegendColorRectangle",
|
|
@@ -203,7 +198,7 @@ const PerformanceAnalytics = props => {
|
|
|
203
198
|
id: "TooltipLabel"
|
|
204
199
|
}, tooltipBarchartLabel_ContributionOfTotal2), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
|
|
205
200
|
id: "TooltipValue"
|
|
206
|
-
},
|
|
201
|
+
}, "".concat((_payload$0$payload$co2 = payload[0].payload.contributionIncrementalSalesValue) === null || _payload$0$payload$co2 === void 0 ? void 0 : _payload$0$payload$co2.toFixed(1), "% "))));
|
|
207
202
|
default:
|
|
208
203
|
return null;
|
|
209
204
|
}
|
|
@@ -250,9 +245,7 @@ const PerformanceAnalytics = props => {
|
|
|
250
245
|
fontSize: "16px",
|
|
251
246
|
textAnchor: "middle",
|
|
252
247
|
dominantBaseline: "middle"
|
|
253
|
-
}, segmentedButtonsFilter === INDIVIDUAL_PERFORMANCE_STR ? currencyType ?
|
|
254
|
-
${dotCut ? (0, _CommonFunctions.getFormattedValue)(value) : (0, _CommonFunctions.getNumberWithCommas)(value)}
|
|
255
|
-
${dotCut ? (0, _CommonFunctions.getFormattedUnits)(value) : ''} ` : '' : segmentedButtonsFilter === PERCENT_INCREMENTAL_GROWTH_STR ? `${plusSign}${value}%` : segmentedButtonsFilter === PERCENT_CONTRIBUTION_OF_TOTAL_STR ? `${value}%` : ''));
|
|
248
|
+
}, segmentedButtonsFilter === INDIVIDUAL_PERFORMANCE_STR ? currencyType ? "".concat((0, _CommonFunctions.getCurrencySign)(currencyType).toString(), "\n ").concat(dotCut ? (0, _CommonFunctions.getFormattedValue)(value) : (0, _CommonFunctions.getNumberWithCommas)(value), "\n ").concat(dotCut ? (0, _CommonFunctions.getFormattedUnits)(value) : '', " ") : '' : segmentedButtonsFilter === PERCENT_INCREMENTAL_GROWTH_STR ? "".concat(plusSign).concat(value, "%") : segmentedButtonsFilter === PERCENT_CONTRIBUTION_OF_TOTAL_STR ? "".concat(value, "%") : ''));
|
|
256
249
|
};
|
|
257
250
|
function CustomizedTickBarChart(props) {
|
|
258
251
|
const {
|
|
@@ -280,7 +273,7 @@ const PerformanceAnalytics = props => {
|
|
|
280
273
|
offerType
|
|
281
274
|
} = retailerData[0];
|
|
282
275
|
return /*#__PURE__*/_react.default.createElement("g", {
|
|
283
|
-
transform:
|
|
276
|
+
transform: "translate(".concat(x, ",").concat(y, ")"),
|
|
284
277
|
onMouseEnter: () => handleMouseEnter(offerType),
|
|
285
278
|
onMouseLeave: handleMouseLeave
|
|
286
279
|
}, /*#__PURE__*/_react.default.createElement("text", {
|
|
@@ -5,140 +5,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.TooltipValue = exports.TooltipTitle = exports.TooltipLabel = exports.TooltipContainer = exports.ToolTipLabelAndValueContainer = exports.ToolTipBarchart1LabelAndValueContainer = exports.ToolTipBarchart1Container = exports.SegmentedButtonContainer = exports.LegendTitle = exports.LegendColorRectangle = exports.LabelText = exports.LabelBoldText = exports.ControlsContainer = exports.Controls = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
8
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
|
|
10
|
-
overflow-y: auto;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
`;
|
|
26
|
-
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
|
|
27
|
-
position: relative;
|
|
28
|
-
font-family: "Poppins", sans-serif;
|
|
29
|
-
font-style: normal;
|
|
30
|
-
font-size: ${props => props.rootFont};
|
|
31
|
-
color: ${props => props.textcolor};
|
|
32
|
-
width: ${props => props.width};
|
|
33
|
-
height: ${props => props.height};
|
|
34
|
-
border-radius: 12px;
|
|
35
|
-
align-self: center;
|
|
36
|
-
|
|
37
|
-
> * {
|
|
38
|
-
box-sizing: border-box;
|
|
39
|
-
}
|
|
40
|
-
`;
|
|
41
|
-
const Controls = exports.Controls = _styledComponents.default.div`
|
|
42
|
-
width: 100%;
|
|
43
|
-
height: 100%;
|
|
44
|
-
padding: 14px 28px;
|
|
45
|
-
background: white;
|
|
46
|
-
${scrollableStyles}
|
|
47
|
-
@media (max-width: 1536px) {
|
|
48
|
-
padding: 12px 24px;
|
|
49
|
-
}
|
|
50
|
-
> #SegmentedButtonContainer {
|
|
51
|
-
padding-left: 0;
|
|
52
|
-
margin-bottom: 16px;
|
|
53
|
-
> #Controls {
|
|
54
|
-
background: #f2f2f2;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
`;
|
|
58
|
-
const LabelBoldText = exports.LabelBoldText = _styledComponents.default.tspan`
|
|
59
|
-
font-size: 16px;
|
|
60
|
-
@media (max-width: 1536px) {
|
|
61
|
-
font-size: 12px;
|
|
62
|
-
}
|
|
63
|
-
`;
|
|
64
|
-
const LabelText = exports.LabelText = _styledComponents.default.tspan`
|
|
65
|
-
font-size: 16px;
|
|
66
|
-
@media (max-width: 1536px) {
|
|
67
|
-
font-size: 10px;
|
|
68
|
-
}
|
|
69
|
-
@media (max-width: 1366px) {
|
|
70
|
-
font-size: 8px;
|
|
71
|
-
}
|
|
72
|
-
`;
|
|
73
|
-
const LegendTitle = exports.LegendTitle = _styledComponents.default.h5`
|
|
74
|
-
font-size: 16px;
|
|
75
|
-
@media (max-width: 1536px) {
|
|
76
|
-
font-size: 11px;
|
|
77
|
-
}
|
|
78
|
-
@media (max-width: 1366px) {
|
|
79
|
-
font-size: 10px;
|
|
80
|
-
}
|
|
81
|
-
`;
|
|
82
|
-
const SegmentedButtonContainer = exports.SegmentedButtonContainer = _styledComponents.default.div`
|
|
83
|
-
display: flex;
|
|
84
|
-
padding: 10px 0 0 10px;
|
|
85
|
-
`;
|
|
86
|
-
const TooltipContainer = exports.TooltipContainer = _styledComponents.default.div`
|
|
87
|
-
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
|
|
88
|
-
border-radius: 5px;
|
|
89
|
-
background: #fff;
|
|
90
|
-
font-family: "Poppins", sans-serif;
|
|
91
|
-
border-radius: 5px;
|
|
92
|
-
padding: 8px 12px;
|
|
93
|
-
display: grid;
|
|
94
|
-
`;
|
|
95
|
-
const TooltipLabel = exports.TooltipLabel = _styledComponents.default.p`
|
|
96
|
-
color: #212121;
|
|
97
|
-
font-family: "Poppins", sans-serif;
|
|
98
|
-
font-size: 14px;
|
|
99
|
-
font-style: normal;
|
|
100
|
-
font-weight: 400;
|
|
101
|
-
line-height: normal;
|
|
102
|
-
width: fit-content;
|
|
103
|
-
margin: 0 6px 0 0;
|
|
104
|
-
`;
|
|
105
|
-
const TooltipValue = exports.TooltipValue = _styledComponents.default.p`
|
|
106
|
-
color: #212121;
|
|
107
|
-
font-family: "Poppins", sans-serif;
|
|
108
|
-
font-size: 14px;
|
|
109
|
-
font-style: normal;
|
|
110
|
-
font-weight: 600;
|
|
111
|
-
line-height: normal;
|
|
112
|
-
width: fit-content;
|
|
113
|
-
margin: 0;
|
|
114
|
-
`;
|
|
115
|
-
const TooltipTitle = exports.TooltipTitle = _styledComponents.default.p`
|
|
116
|
-
color: #212121;
|
|
117
|
-
font-family: Poppins;
|
|
118
|
-
font-size: 14px;
|
|
119
|
-
font-style: normal;
|
|
120
|
-
font-weight: 600;
|
|
121
|
-
line-height: normal;
|
|
122
|
-
margin: 0;
|
|
123
|
-
`;
|
|
124
|
-
const ToolTipBarchart1Container = exports.ToolTipBarchart1Container = _styledComponents.default.div`
|
|
125
|
-
display: flex;
|
|
126
|
-
align-items: center;
|
|
127
|
-
gap: 8px;
|
|
128
|
-
margin-bottom: 10px;
|
|
129
|
-
`;
|
|
130
|
-
const ToolTipBarchart1LabelAndValueContainer = exports.ToolTipBarchart1LabelAndValueContainer = _styledComponents.default.div`
|
|
131
|
-
gap: 8px;
|
|
132
|
-
`;
|
|
133
|
-
const ToolTipLabelAndValueContainer = exports.ToolTipLabelAndValueContainer = _styledComponents.default.div`
|
|
134
|
-
display: flex;
|
|
135
|
-
align-items: center;
|
|
136
|
-
gap: 8px;
|
|
137
|
-
`;
|
|
138
|
-
const LegendColorRectangle = exports.LegendColorRectangle = _styledComponents.default.div`
|
|
139
|
-
width: 0.875rem;
|
|
140
|
-
min-width: 0.875rem;
|
|
141
|
-
height: 0.875rem;
|
|
142
|
-
border-radius: 2px;
|
|
143
|
-
background: ${props => props.color};
|
|
144
|
-
`;
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
|
|
11
|
+
const scrollableStyles = "\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n width: 8px;\n }\n\n &::-webkit-scrollbar-track {\n background: #E8E8E8;\n border-radius: 5px;\n }\n\n &::-webkit-scrollbar-thumb {\n background: #D0D0D0;\n border-radius: 5px;\n }\n";
|
|
12
|
+
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n font-family: \"Poppins\", sans-serif;\n font-style: normal;\n font-size: ", ";\n color: ", ";\n width: ", ";\n height: ", ";\n border-radius: 12px;\n align-self: center;\n\n > * {\n box-sizing: border-box;\n }\n"])), props => props.rootFont, props => props.textcolor, props => props.width, props => props.height);
|
|
13
|
+
const Controls = exports.Controls = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n height: 100%;\n padding: 14px 28px;\n background: white;\n ", "\n @media (max-width: 1536px) {\n padding: 12px 24px;\n }\n > #SegmentedButtonContainer {\n padding-left: 0;\n margin-bottom: 16px;\n > #Controls {\n background: #f2f2f2;\n }\n }\n"])), scrollableStyles);
|
|
14
|
+
const LabelBoldText = exports.LabelBoldText = _styledComponents.default.tspan(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n @media (max-width: 1536px) {\n font-size: 12px;\n }\n"])));
|
|
15
|
+
const LabelText = exports.LabelText = _styledComponents.default.tspan(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n @media (max-width: 1536px) {\n font-size: 10px;\n }\n @media (max-width: 1366px) {\n font-size: 8px;\n }\n"])));
|
|
16
|
+
const LegendTitle = exports.LegendTitle = _styledComponents.default.h5(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 16px;\n @media (max-width: 1536px) {\n font-size: 11px;\n }\n @media (max-width: 1366px) {\n font-size: 10px;\n }\n"])));
|
|
17
|
+
const SegmentedButtonContainer = exports.SegmentedButtonContainer = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n padding: 10px 0 0 10px;\n"])));
|
|
18
|
+
const TooltipContainer = exports.TooltipContainer = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);\n border-radius: 5px;\n background: #fff;\n font-family: \"Poppins\", sans-serif;\n border-radius: 5px;\n padding: 8px 12px;\n display: grid;\n"])));
|
|
19
|
+
const TooltipLabel = exports.TooltipLabel = _styledComponents.default.p(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 400;\n line-height: normal;\n width: fit-content;\n margin: 0 6px 0 0;\n"])));
|
|
20
|
+
const TooltipValue = exports.TooltipValue = _styledComponents.default.p(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-family: \"Poppins\", sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n width: fit-content;\n margin: 0;\n"])));
|
|
21
|
+
const TooltipTitle = exports.TooltipTitle = _styledComponents.default.p(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-family: Poppins;\n font-size: 14px;\n font-style: normal;\n font-weight: 600;\n line-height: normal;\n margin: 0;\n"])));
|
|
22
|
+
const ToolTipBarchart1Container = exports.ToolTipBarchart1Container = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n gap: 8px;\n margin-bottom: 10px;\n"])));
|
|
23
|
+
const ToolTipBarchart1LabelAndValueContainer = exports.ToolTipBarchart1LabelAndValueContainer = _styledComponents.default.div(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n gap: 8px;\n"])));
|
|
24
|
+
const ToolTipLabelAndValueContainer = exports.ToolTipLabelAndValueContainer = _styledComponents.default.div(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n gap: 8px;\n"])));
|
|
25
|
+
const LegendColorRectangle = exports.LegendColorRectangle = _styledComponents.default.div(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n width: 0.875rem;\n min-width: 0.875rem;\n height: 0.875rem;\n border-radius: 2px;\n background: ", ";\n"])), props => props.color);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = exports.PerformanceAnalyticsLegend = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _LegendUnionIcon = require("../../icons/LegendUnionIcon");
|
|
10
|
+
var _LegendLineIcon = require("../../icons/LegendLineIcon");
|
|
11
|
+
var _PerformanceAnalyticsLegend = require("./PerformanceAnalyticsLegend.style");
|
|
12
|
+
const ICON_TYPE_SQUARE = 'Square';
|
|
13
|
+
const ICON_TYPE_LEGEND_UNION_ICON = 'LegendUnionIcon';
|
|
14
|
+
const ICON_TYPE_LEGEND_LINE_ICON = 'LegendLineIcon';
|
|
15
|
+
|
|
16
|
+
/* PerformanceAnalyticsLegend */
|
|
17
|
+
const PerformanceAnalyticsLegend = props => {
|
|
18
|
+
const {
|
|
19
|
+
legendData,
|
|
20
|
+
width,
|
|
21
|
+
height
|
|
22
|
+
} = props;
|
|
23
|
+
const getLegendData = () => /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsLegend.LegendDataContainer, {
|
|
24
|
+
id: "LegendDataContainer"
|
|
25
|
+
}, legendData === null || legendData === void 0 ? void 0 : legendData.map((item, i) => /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsLegend.TitleAndIconContainer, {
|
|
26
|
+
key: "".concat(item.title + i)
|
|
27
|
+
}, item.iconType === ICON_TYPE_SQUARE ? /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsLegend.LegendColorRectangle, {
|
|
28
|
+
id: "LegendColorRectangle",
|
|
29
|
+
color: item.iconColor
|
|
30
|
+
}) : item.iconType === ICON_TYPE_LEGEND_UNION_ICON ? /*#__PURE__*/_react.default.createElement(_LegendUnionIcon.LegendUnionIcon, {
|
|
31
|
+
width: 30,
|
|
32
|
+
height: 30,
|
|
33
|
+
color: item.iconColor
|
|
34
|
+
}) : item.iconType === ICON_TYPE_LEGEND_LINE_ICON ? /*#__PURE__*/_react.default.createElement(_LegendLineIcon.LegendLineIcon, {
|
|
35
|
+
color: item.iconColor
|
|
36
|
+
}) : '', /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsLegend.Title, {
|
|
37
|
+
id: "Title",
|
|
38
|
+
width: width
|
|
39
|
+
}, item.title))));
|
|
40
|
+
return /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsLegend.ControlsContainer, {
|
|
41
|
+
height: height,
|
|
42
|
+
width: width
|
|
43
|
+
}, (legendData === null || legendData === void 0 ? void 0 : legendData.length) > 0 ? /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsLegend.Controls, {
|
|
44
|
+
height: height,
|
|
45
|
+
width: width
|
|
46
|
+
}, getLegendData()) : '');
|
|
47
|
+
};
|
|
48
|
+
exports.PerformanceAnalyticsLegend = PerformanceAnalyticsLegend;
|
|
49
|
+
var _default = exports.default = PerformanceAnalyticsLegend;
|
|
50
|
+
PerformanceAnalyticsLegend.defaultProps = {
|
|
51
|
+
width: '',
|
|
52
|
+
height: '',
|
|
53
|
+
legendData: [{
|
|
54
|
+
title: '',
|
|
55
|
+
iconType: ICON_TYPE_SQUARE,
|
|
56
|
+
iconColor: '#1F7677'
|
|
57
|
+
}]
|
|
58
|
+
};
|