sag_components 1.0.921 → 1.0.923
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 +40 -6
- package/dist/stories/components/AutocompleteField.style.js +47 -7
- 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.style.js +66 -14
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.js +148 -0
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.stories.js +30 -0
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.style.js +22 -0
- package/dist/stories/components/BannerEventBoxList.js +2 -1
- package/dist/stories/components/BannerEventBoxList.style.js +174 -15
- 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 +91 -10
- 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 +52 -10
- 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 +53 -10
- package/dist/stories/components/BarChartWithAreaChart.js +12 -11
- package/dist/stories/components/BarChartWithAreaChart.style.js +56 -11
- 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 +7 -3
- package/dist/stories/components/BarChartsByWeeks.style.js +88 -13
- 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 +53 -7
- 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 +82 -7
- 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 +40 -7
- package/dist/stories/components/CampaignTool/Card.style.js +58 -10
- package/dist/stories/components/CampaignTool/MultipleCard.style.js +6 -3
- package/dist/stories/components/CampaignTool/PageFilterBar.style.js +14 -4
- package/dist/stories/components/CampaignTool/Popup.style.js +114 -16
- package/dist/stories/components/CampaignTool/PopupContent.style.js +64 -11
- package/dist/stories/components/CampaignTool/Table.js +2 -2
- package/dist/stories/components/CampaignTool/Table.style.js +79 -9
- 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 +28 -6
- 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 +31 -6
- 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 +4 -3
- 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 +119 -13
- package/dist/stories/components/CollapseHeader/CollapseHeader.js +267 -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 +192 -27
- 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 +53 -9
- 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 +9 -3
- 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 +43 -6
- 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 +9 -3
- package/dist/stories/components/DropdownMulti/DropdownMulti.js +290 -0
- package/dist/stories/components/DropdownMulti/DropdownMulti.stories.js +220 -0
- package/dist/stories/components/DropdownMulti/DropdownMulti.style.js +11 -0
- package/dist/stories/components/DropdownMulti.js +1 -1
- package/dist/stories/components/DropdownMulti.style.js +9 -3
- 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 +193 -16
- 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 +14 -3
- 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 +162 -14
- 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 +86 -10
- 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 +30 -6
- 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 +39 -6
- 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 +22 -5
- 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 +81 -13
- 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 +83 -10
- 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 +56 -7
- 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 +123 -9
- 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 +62 -8
- 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 +124 -18
- 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 +45 -6
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.js +43 -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 +60 -14
- 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 +40 -6
- 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 +207 -19
- 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 +56 -8
- 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 +96 -10
- package/dist/stories/components/MonthPopupPicker.js +92 -13
- package/dist/stories/components/MultipleCard/MultipleCard.js +26 -0
- package/dist/stories/components/MultipleCard/MultipleCard.stories.js +33 -0
- package/dist/stories/components/MultipleCard/MultipleCard.style.js +11 -0
- 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 +31 -5
- 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 +99 -12
- 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 +431 -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 +25 -9
- package/dist/stories/components/PerformanceAnalytics.style.js +136 -17
- 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 +55 -8
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.js +315 -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 +12 -5
- package/dist/stories/components/PerformanceAnalyticsOneColumn.style.js +108 -15
- 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 +81 -12
- 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 +100 -15
- 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 +78 -12
- 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 +15 -4
- 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 +95 -10
- package/dist/stories/components/QuarterPopupPicker.js +86 -12
- package/dist/stories/components/QuickFilter/QuickFilter.js +77 -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 +230 -0
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.style.js +27 -0
- package/dist/stories/components/QuickFilter.style.js +13 -3
- package/dist/stories/components/QuickFilterDropdownMultiSelection.js +1 -1
- package/dist/stories/components/QuickFilterDropdownMultiSelection.style.js +182 -16
- package/dist/stories/components/QuickFilterDropdownSingle.style.js +127 -15
- package/dist/stories/components/RangeDatePicker.js +96 -12
- 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 +100 -10
- 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.js +6 -27
- package/dist/stories/components/ReportTable.style.js +123 -14
- 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 +39 -5
- 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 +22 -4
- package/dist/stories/components/SagInput/SagInput.js +53 -0
- package/dist/stories/components/SagInput/SagInput.stories.js +69 -0
- package/dist/stories/components/SagInput/SagInput.style.js +13 -0
- package/dist/stories/components/SagInput.style.js +33 -5
- 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 +103 -11
- 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 +29 -4
- 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 +90 -9
- 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 +93 -9
- package/dist/stories/components/SingleBarLineCharts.js +80 -49
- package/dist/stories/components/SingleBarLineCharts.style.js +77 -9
- 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 +19 -7
- package/dist/stories/components/TabMenu.style.js +105 -14
- 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/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 +10 -3
- 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 +214 -28
- 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 +90 -5
- 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 +43 -8
- 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 +71 -11
- 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 +163 -22
- 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 +100 -16
- 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 +69 -12
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.js +182 -0
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.stories.js +290 -0
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.style.js +30 -0
- package/dist/stories/components/TotalDoughnutChart.js +7 -3
- package/dist/stories/components/TotalDoughnutChart.style.js +170 -22
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.js +207 -0
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.js +158 -0
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.style.js +20 -0
- package/dist/stories/components/TotalHorizontalCharts.js +12 -9
- package/dist/stories/components/TotalHorizontalCharts.style.js +113 -12
- package/dist/stories/components/TspanTooltip/TspanTooltip.js +16 -0
- package/dist/stories/components/TspanTooltip/TspanTooltip.style.js +13 -0
- package/dist/stories/components/TspanTooltip.js +24 -7
- package/dist/stories/components/TspanTooltip.style.js +97 -5
- 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 +52 -10
- 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/FoodLionIcon.js +3076 -0
- package/dist/stories/icons/FoodLionNewIcon.js +39 -0
- package/dist/stories/icons/GiantFoodIcon.js +1976 -0
- package/dist/stories/icons/GiantFoodIcon_new.js +42 -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/StopAndShopIcon.js +134 -0
- package/dist/stories/icons/StopAndShopNewIcon.js +41 -0
- package/dist/stories/icons/SucceededIcon.js +27 -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 +8 -3
- package/package.json +1 -1
- package/dist/stories/components/HaiTooltip.js +0 -71
- package/dist/stories/components/HaiTooltip.style.js +0 -12
- package/dist/stories/components/Rbackup.js +0 -453
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = exports.PerformanceAnalytics = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _recharts = require("recharts");
|
|
11
|
+
var _TspanTooltip = _interopRequireDefault(require("../TspanTooltip/TspanTooltip"));
|
|
12
|
+
var _NoDataFoundMessage = require("../NoDataFoundMessage/NoDataFoundMessage");
|
|
13
|
+
var _SegmentedButton = require("../SegmentedButton/SegmentedButton");
|
|
14
|
+
var _PerformanceAnalyticsTotals = require("../PerformanceAnalyticsTotals/PerformanceAnalyticsTotals");
|
|
15
|
+
var _PerformanceAnalyticsLegend = require("../PerformanceAnalyticsLegend/PerformanceAnalyticsLegend");
|
|
16
|
+
var _CommonFunctions = require("../../utils/CommonFunctions");
|
|
17
|
+
var _PerformanceAnalytics = require("./PerformanceAnalytics.style");
|
|
18
|
+
const INDIVIDUAL_PERFORMANCE_STR = 'Individual Performance';
|
|
19
|
+
const PERCENT_INCREMENTAL_GROWTH_STR = '% Incremental Growth';
|
|
20
|
+
const PERCENT_CONTRIBUTION_OF_TOTAL_STR = '% Contribution of Total';
|
|
21
|
+
|
|
22
|
+
/* PerformanceAnalytics */
|
|
23
|
+
const PerformanceAnalytics = props => {
|
|
24
|
+
const {
|
|
25
|
+
currencyType,
|
|
26
|
+
colorGraphROI,
|
|
27
|
+
colorBarchart1,
|
|
28
|
+
colorBarchart2,
|
|
29
|
+
textcolor,
|
|
30
|
+
width,
|
|
31
|
+
height,
|
|
32
|
+
lineChartHeight,
|
|
33
|
+
barChartHeight,
|
|
34
|
+
dotCut,
|
|
35
|
+
noDataText,
|
|
36
|
+
totalsData,
|
|
37
|
+
data,
|
|
38
|
+
legendData,
|
|
39
|
+
tooltipBarchartLabel_ROI,
|
|
40
|
+
tooltipBarchartLabel_IndividualPerformance1,
|
|
41
|
+
tooltipBarchartLabel_IndividualPerformance2,
|
|
42
|
+
tooltipBarchartLabel_IndividualPerformance3,
|
|
43
|
+
tooltipBarchartLabel_ContributionOfTotal1,
|
|
44
|
+
tooltipBarchartLabel_ContributionOfTotal2
|
|
45
|
+
} = props;
|
|
46
|
+
const [segmentedButtonsFilter, setSegmentedButtonsFilter] = (0, _react.useState)(INDIVIDUAL_PERFORMANCE_STR);
|
|
47
|
+
const [showLegendTooltip, setShowLegendTooltip] = (0, _react.useState)(false);
|
|
48
|
+
const [tooltipCouponText, setTooltipCouponText] = (0, _react.useState)({
|
|
49
|
+
content: '',
|
|
50
|
+
clientX: 0,
|
|
51
|
+
clientY: 0
|
|
52
|
+
});
|
|
53
|
+
const displayTotalsData = () => /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsTotals.PerformanceAnalyticsTotals, {
|
|
54
|
+
totalsData: totalsData,
|
|
55
|
+
width: width
|
|
56
|
+
});
|
|
57
|
+
const displaySegmentedButtons = () => /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.SegmentedButtonContainer, {
|
|
58
|
+
id: "SegmentedButtonContainer"
|
|
59
|
+
}, /*#__PURE__*/_react.default.createElement(_SegmentedButton.SegmentedButton, {
|
|
60
|
+
id: "SegmentedButton BaselineSTLY",
|
|
61
|
+
options: [{
|
|
62
|
+
value: INDIVIDUAL_PERFORMANCE_STR
|
|
63
|
+
}, {
|
|
64
|
+
value: PERCENT_INCREMENTAL_GROWTH_STR
|
|
65
|
+
}, {
|
|
66
|
+
value: PERCENT_CONTRIBUTION_OF_TOTAL_STR
|
|
67
|
+
}],
|
|
68
|
+
backgroundcolor: "#F2F2F2",
|
|
69
|
+
controlradius: 8,
|
|
70
|
+
defaultIndex: 0,
|
|
71
|
+
fontSize: 12,
|
|
72
|
+
name: "segmentedDollarsOrUnits",
|
|
73
|
+
onClick: event => {
|
|
74
|
+
setSegmentedButtonsFilter(event.value);
|
|
75
|
+
},
|
|
76
|
+
segmentradius: 8,
|
|
77
|
+
selectedsegmentcolor: "#ffffff",
|
|
78
|
+
selectedtextcolor: "#212121",
|
|
79
|
+
unselectedtextcolor: "#212121",
|
|
80
|
+
width: 490,
|
|
81
|
+
heigth: 14
|
|
82
|
+
}));
|
|
83
|
+
const CustomizedLabelROI = props => {
|
|
84
|
+
const {
|
|
85
|
+
x,
|
|
86
|
+
y,
|
|
87
|
+
stroke,
|
|
88
|
+
value
|
|
89
|
+
} = props;
|
|
90
|
+
return /*#__PURE__*/_react.default.createElement("text", {
|
|
91
|
+
x: x,
|
|
92
|
+
y: y,
|
|
93
|
+
dy: -8,
|
|
94
|
+
fill: stroke,
|
|
95
|
+
fontSize: 14,
|
|
96
|
+
textAnchor: "middle"
|
|
97
|
+
}, value);
|
|
98
|
+
};
|
|
99
|
+
const CustomTooltipROI = _ref => {
|
|
100
|
+
let {
|
|
101
|
+
active,
|
|
102
|
+
payload
|
|
103
|
+
} = _ref;
|
|
104
|
+
if (active && payload && payload.length > 0) {
|
|
105
|
+
var _payload$0$payload;
|
|
106
|
+
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)))));
|
|
107
|
+
}
|
|
108
|
+
return null;
|
|
109
|
+
};
|
|
110
|
+
const CustomTooltipBarChart = _ref2 => {
|
|
111
|
+
var _payload$0$payload$In, _payload$0$payload$co, _payload$0$payload$co2;
|
|
112
|
+
let {
|
|
113
|
+
active,
|
|
114
|
+
payload
|
|
115
|
+
} = _ref2;
|
|
116
|
+
if (active && payload && payload.length > 0) {
|
|
117
|
+
var _payload$0$payload2, _payload$0$payload3, _payload$0$payload4, _payload$0$payload5;
|
|
118
|
+
const totalCostValue = ((_payload$0$payload2 = payload[0].payload) === null || _payload$0$payload2 === void 0 ? void 0 : _payload$0$payload2.packageCostValue) + ((_payload$0$payload3 = payload[0].payload) === null || _payload$0$payload3 === void 0 ? void 0 : _payload$0$payload3.redemptionCostValue);
|
|
119
|
+
const packageCostPercent = totalCostValue ? ((_payload$0$payload4 = payload[0].payload) === null || _payload$0$payload4 === void 0 ? void 0 : _payload$0$payload4.packageCostValue) / totalCostValue * 100 : 0;
|
|
120
|
+
const redemptionCostPercent = totalCostValue ? ((_payload$0$payload5 = payload[0].payload) === null || _payload$0$payload5 === void 0 ? void 0 : _payload$0$payload5.redemptionCostValue) / totalCostValue * 100 : 0;
|
|
121
|
+
switch (segmentedButtonsFilter) {
|
|
122
|
+
case INDIVIDUAL_PERFORMANCE_STR:
|
|
123
|
+
return /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipContainer, {
|
|
124
|
+
id: "TooltipContainer"
|
|
125
|
+
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipBarchart1Container, {
|
|
126
|
+
id: "ToolTipBarchart1Container"
|
|
127
|
+
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.LegendColorRectangle, {
|
|
128
|
+
id: "LegendColorRectangle",
|
|
129
|
+
color: colorBarchart1
|
|
130
|
+
}), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipBarchart1LabelAndValueContainer, {
|
|
131
|
+
id: "ToolTipBarchart1LabelAndValueContainer"
|
|
132
|
+
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipLabelAndValueContainer, {
|
|
133
|
+
id: "ToolTipLabelAndValueContainer"
|
|
134
|
+
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipLabel, {
|
|
135
|
+
id: "TooltipLabel"
|
|
136
|
+
}, tooltipBarchartLabel_IndividualPerformance1), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
|
|
137
|
+
id: "TooltipValue"
|
|
138
|
+
}, "".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, {
|
|
139
|
+
id: "ToolTipLabelAndValueContainer"
|
|
140
|
+
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipLabel, {
|
|
141
|
+
id: "TooltipLabel"
|
|
142
|
+
}, tooltipBarchartLabel_IndividualPerformance2), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
|
|
143
|
+
id: "TooltipValue"
|
|
144
|
+
}, "".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, {
|
|
145
|
+
id: "ToolTipLabelAndValueContainer"
|
|
146
|
+
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.LegendColorRectangle, {
|
|
147
|
+
id: "LegendColorRectangle",
|
|
148
|
+
color: colorBarchart2
|
|
149
|
+
}), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipLabel, {
|
|
150
|
+
id: "TooltipLabel"
|
|
151
|
+
}, tooltipBarchartLabel_IndividualPerformance3), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
|
|
152
|
+
id: "TooltipValue"
|
|
153
|
+
}, "".concat((0, _CommonFunctions.getCurrencySign)(currencyType)).concat((0, _CommonFunctions.getFormattedValue)(payload[0].payload.incrementalSalesValue), "\n ").concat((0, _CommonFunctions.getFormattedUnits)(payload[0].payload.incrementalSalesValue), " "))));
|
|
154
|
+
case PERCENT_INCREMENTAL_GROWTH_STR:
|
|
155
|
+
return /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipContainer, {
|
|
156
|
+
id: "TooltipContainer"
|
|
157
|
+
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipLabelAndValueContainer, {
|
|
158
|
+
id: "ToolTipLabelAndValueContainer"
|
|
159
|
+
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.LegendColorRectangle, {
|
|
160
|
+
id: "LegendColorRectangle",
|
|
161
|
+
color: colorBarchart2
|
|
162
|
+
}), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipLabel, {
|
|
163
|
+
id: "TooltipLabel"
|
|
164
|
+
}, "Incremental Growth Value:"), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
|
|
165
|
+
id: "TooltipValue"
|
|
166
|
+
}, "".concat((_payload$0$payload$In = payload[0].payload.IncrementalGrowthValue) === null || _payload$0$payload$In === void 0 ? void 0 : _payload$0$payload$In.toFixed(1), "% "))));
|
|
167
|
+
case PERCENT_CONTRIBUTION_OF_TOTAL_STR:
|
|
168
|
+
return /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipContainer, {
|
|
169
|
+
id: "TooltipContainer"
|
|
170
|
+
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipBarchart1Container, {
|
|
171
|
+
id: "ToolTipBarchart1Container"
|
|
172
|
+
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.LegendColorRectangle, {
|
|
173
|
+
id: "LegendColorRectangle",
|
|
174
|
+
color: colorBarchart1
|
|
175
|
+
}), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipBarchart1LabelAndValueContainer, {
|
|
176
|
+
id: "ToolTipBarchart1LabelAndValueContainer"
|
|
177
|
+
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ToolTipLabelAndValueContainer, {
|
|
178
|
+
id: "ToolTipLabelAndValueContainer"
|
|
179
|
+
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipLabel, {
|
|
180
|
+
id: "TooltipLabel"
|
|
181
|
+
}, tooltipBarchartLabel_ContributionOfTotal1), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
|
|
182
|
+
id: "TooltipValue"
|
|
183
|
+
}, "".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, {
|
|
184
|
+
id: "ToolTipLabelAndValueContainer"
|
|
185
|
+
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.LegendColorRectangle, {
|
|
186
|
+
id: "LegendColorRectangle",
|
|
187
|
+
color: colorBarchart2
|
|
188
|
+
}), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipLabel, {
|
|
189
|
+
id: "TooltipLabel"
|
|
190
|
+
}, tooltipBarchartLabel_ContributionOfTotal2), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.TooltipValue, {
|
|
191
|
+
id: "TooltipValue"
|
|
192
|
+
}, "".concat((_payload$0$payload$co2 = payload[0].payload.contributionIncrementalSalesValue) === null || _payload$0$payload$co2 === void 0 ? void 0 : _payload$0$payload$co2.toFixed(1), "% "))));
|
|
193
|
+
default:
|
|
194
|
+
return null;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return null;
|
|
198
|
+
};
|
|
199
|
+
const displayLineChartROI = () => /*#__PURE__*/_react.default.createElement(_recharts.ResponsiveContainer, {
|
|
200
|
+
id: "ResponsiveContainer",
|
|
201
|
+
height: lineChartHeight
|
|
202
|
+
}, segmentedButtonsFilter !== PERCENT_CONTRIBUTION_OF_TOTAL_STR ? /*#__PURE__*/_react.default.createElement(_recharts.LineChart, {
|
|
203
|
+
data: data,
|
|
204
|
+
margin: {
|
|
205
|
+
top: 20,
|
|
206
|
+
right: 30,
|
|
207
|
+
left: 20,
|
|
208
|
+
bottom: 10
|
|
209
|
+
}
|
|
210
|
+
}, /*#__PURE__*/_react.default.createElement(_recharts.Tooltip, {
|
|
211
|
+
content: /*#__PURE__*/_react.default.createElement(CustomTooltipROI, null)
|
|
212
|
+
}), /*#__PURE__*/_react.default.createElement(_recharts.Line, {
|
|
213
|
+
type: "monotone",
|
|
214
|
+
dataKey: "roiValue",
|
|
215
|
+
fill: colorGraphROI,
|
|
216
|
+
name: "retailer",
|
|
217
|
+
stroke: colorGraphROI
|
|
218
|
+
}, /*#__PURE__*/_react.default.createElement(_recharts.LabelList, {
|
|
219
|
+
content: /*#__PURE__*/_react.default.createElement(CustomizedLabelROI, null)
|
|
220
|
+
}))) : /*#__PURE__*/_react.default.createElement("div", null));
|
|
221
|
+
const CustomizedLabelBarchart = props => {
|
|
222
|
+
const {
|
|
223
|
+
x,
|
|
224
|
+
y,
|
|
225
|
+
width,
|
|
226
|
+
value,
|
|
227
|
+
payload
|
|
228
|
+
} = props;
|
|
229
|
+
const radius = 10;
|
|
230
|
+
const plusSign = value > 0 ? '+' : '';
|
|
231
|
+
return /*#__PURE__*/_react.default.createElement("g", null, /*#__PURE__*/_react.default.createElement("text", {
|
|
232
|
+
x: x + width / 2,
|
|
233
|
+
y: y - radius,
|
|
234
|
+
fill: textcolor,
|
|
235
|
+
fontWeight: 400,
|
|
236
|
+
fontSize: "16px",
|
|
237
|
+
textAnchor: "middle",
|
|
238
|
+
dominantBaseline: "middle"
|
|
239
|
+
}, 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, "%") : ''));
|
|
240
|
+
};
|
|
241
|
+
function CustomizedTickBarChart(props) {
|
|
242
|
+
const {
|
|
243
|
+
x,
|
|
244
|
+
y,
|
|
245
|
+
stroke,
|
|
246
|
+
payload
|
|
247
|
+
} = props;
|
|
248
|
+
const handleMouseEnter = content => {
|
|
249
|
+
setTooltipCouponText(prevState => ({
|
|
250
|
+
...prevState,
|
|
251
|
+
content: content !== prevState.content ? content : prevState.content,
|
|
252
|
+
clientX: x,
|
|
253
|
+
clientY: y
|
|
254
|
+
}));
|
|
255
|
+
setShowLegendTooltip(true);
|
|
256
|
+
};
|
|
257
|
+
const handleMouseLeave = () => {
|
|
258
|
+
setShowLegendTooltip(false);
|
|
259
|
+
};
|
|
260
|
+
if (data && data.length > 0 && payload) {
|
|
261
|
+
const retailerData = data.filter(item => item.retailer === payload.value);
|
|
262
|
+
if (retailerData && retailerData.length > 0) {
|
|
263
|
+
const {
|
|
264
|
+
offerType
|
|
265
|
+
} = retailerData[0];
|
|
266
|
+
return /*#__PURE__*/_react.default.createElement("g", {
|
|
267
|
+
transform: "translate(".concat(x, ",").concat(y, ")"),
|
|
268
|
+
onMouseEnter: () => handleMouseEnter(offerType),
|
|
269
|
+
onMouseLeave: handleMouseLeave
|
|
270
|
+
}, /*#__PURE__*/_react.default.createElement("text", {
|
|
271
|
+
x: 0,
|
|
272
|
+
y: 0,
|
|
273
|
+
dy: 16,
|
|
274
|
+
fill: "#212121"
|
|
275
|
+
}, /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.LabelBoldText, {
|
|
276
|
+
textAnchor: "middle",
|
|
277
|
+
x: "0",
|
|
278
|
+
dy: "50",
|
|
279
|
+
fontSize: 16,
|
|
280
|
+
fontWeight: 600
|
|
281
|
+
}, payload.value), /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.LabelText, {
|
|
282
|
+
textAnchor: "middle",
|
|
283
|
+
x: "0",
|
|
284
|
+
dy: "30",
|
|
285
|
+
fontSize: 14,
|
|
286
|
+
fontWeight: 400
|
|
287
|
+
}, retailerData[0].period)));
|
|
288
|
+
}
|
|
289
|
+
return null;
|
|
290
|
+
}
|
|
291
|
+
return null;
|
|
292
|
+
}
|
|
293
|
+
const getDataKeyNameBar1 = () => segmentedButtonsFilter === INDIVIDUAL_PERFORMANCE_STR ? 'totalValue' : segmentedButtonsFilter === PERCENT_INCREMENTAL_GROWTH_STR ? '' : segmentedButtonsFilter === PERCENT_CONTRIBUTION_OF_TOTAL_STR ? 'contributionTotalCostValue' : '';
|
|
294
|
+
const getDataKeyNameBar2 = () => segmentedButtonsFilter === INDIVIDUAL_PERFORMANCE_STR ? 'incrementalSalesValue' : segmentedButtonsFilter === PERCENT_INCREMENTAL_GROWTH_STR ? 'IncrementalGrowthValue' : segmentedButtonsFilter === PERCENT_CONTRIBUTION_OF_TOTAL_STR ? 'contributionIncrementalSalesValue' : '';
|
|
295
|
+
const displayBarChart = () => {
|
|
296
|
+
if (data && data.length > 0) {
|
|
297
|
+
const formatedData = data.map(item => ({
|
|
298
|
+
...item,
|
|
299
|
+
totalValue: item.packageCostValue + item.redemptionCostValue,
|
|
300
|
+
contributionTotalCostValue: item.contributionTotalCostValue
|
|
301
|
+
}));
|
|
302
|
+
return /*#__PURE__*/_react.default.createElement(_recharts.ResponsiveContainer, {
|
|
303
|
+
id: "ResponsiveContainer",
|
|
304
|
+
height: barChartHeight,
|
|
305
|
+
width: width
|
|
306
|
+
}, /*#__PURE__*/_react.default.createElement(_recharts.BarChart, {
|
|
307
|
+
data: formatedData,
|
|
308
|
+
maxBarSize: 60,
|
|
309
|
+
margin: {
|
|
310
|
+
top: 30,
|
|
311
|
+
right: 30,
|
|
312
|
+
left: 20,
|
|
313
|
+
bottom: 5
|
|
314
|
+
}
|
|
315
|
+
}, /*#__PURE__*/_react.default.createElement(_recharts.XAxis, {
|
|
316
|
+
dataKey: "retailer",
|
|
317
|
+
tick: CustomizedTickBarChart,
|
|
318
|
+
tickLine: false,
|
|
319
|
+
height: 120,
|
|
320
|
+
stroke: isNegativeValueFound() === true ? '#D0D0D0' : '#000'
|
|
321
|
+
}), showLegendTooltip && /*#__PURE__*/_react.default.createElement(_TspanTooltip.default, {
|
|
322
|
+
id: "Tooltip",
|
|
323
|
+
content: tooltipCouponText.content,
|
|
324
|
+
top: tooltipCouponText.clientY,
|
|
325
|
+
left: tooltipCouponText.clientX,
|
|
326
|
+
direction: "top"
|
|
327
|
+
}), /*#__PURE__*/_react.default.createElement(_recharts.Tooltip, {
|
|
328
|
+
cursor: {
|
|
329
|
+
fill: 'transparent'
|
|
330
|
+
},
|
|
331
|
+
content: CustomTooltipBarChart
|
|
332
|
+
}), /*#__PURE__*/_react.default.createElement(_recharts.ReferenceLine, {
|
|
333
|
+
y: 0,
|
|
334
|
+
stroke: "#D0D0D0"
|
|
335
|
+
}), segmentedButtonsFilter !== PERCENT_INCREMENTAL_GROWTH_STR ? /*#__PURE__*/_react.default.createElement(_recharts.Bar, {
|
|
336
|
+
dataKey: getDataKeyNameBar1(),
|
|
337
|
+
fill: colorBarchart1,
|
|
338
|
+
minPointSize: 5,
|
|
339
|
+
radius: [5, 5, 0, 0]
|
|
340
|
+
}, /*#__PURE__*/_react.default.createElement(_recharts.LabelList, {
|
|
341
|
+
dataKey: getDataKeyNameBar1(),
|
|
342
|
+
content: CustomizedLabelBarchart
|
|
343
|
+
})) : '', /*#__PURE__*/_react.default.createElement(_recharts.Bar, {
|
|
344
|
+
dataKey: getDataKeyNameBar2(),
|
|
345
|
+
fill: colorBarchart2,
|
|
346
|
+
minPointSize: 10,
|
|
347
|
+
radius: [5, 5, 0, 0]
|
|
348
|
+
}, /*#__PURE__*/_react.default.createElement(_recharts.LabelList, {
|
|
349
|
+
dataKey: getDataKeyNameBar2(),
|
|
350
|
+
content: CustomizedLabelBarchart
|
|
351
|
+
}))));
|
|
352
|
+
}
|
|
353
|
+
return null;
|
|
354
|
+
};
|
|
355
|
+
const isNegativeValueFound = () => {
|
|
356
|
+
if (data && data.length > 0) {
|
|
357
|
+
const negativeData = data.filter(item => item.IncrementalGrowthValue < 0);
|
|
358
|
+
if (negativeData && negativeData.length > 0) return true;
|
|
359
|
+
return false;
|
|
360
|
+
}
|
|
361
|
+
return false;
|
|
362
|
+
};
|
|
363
|
+
const displayLegendData = () => {
|
|
364
|
+
switch (segmentedButtonsFilter) {
|
|
365
|
+
case INDIVIDUAL_PERFORMANCE_STR:
|
|
366
|
+
return /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsLegend.PerformanceAnalyticsLegend, {
|
|
367
|
+
legendData: legendData
|
|
368
|
+
});
|
|
369
|
+
case PERCENT_INCREMENTAL_GROWTH_STR:
|
|
370
|
+
return /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsLegend.PerformanceAnalyticsLegend, {
|
|
371
|
+
legendData: [{
|
|
372
|
+
iconColor: colorBarchart2,
|
|
373
|
+
iconType: 'Square',
|
|
374
|
+
title: '% Incremental Growth'
|
|
375
|
+
}, {
|
|
376
|
+
iconColor: colorGraphROI,
|
|
377
|
+
iconType: 'LegendUnionIcon',
|
|
378
|
+
title: 'Incremental Sales ROI'
|
|
379
|
+
}]
|
|
380
|
+
});
|
|
381
|
+
case PERCENT_CONTRIBUTION_OF_TOTAL_STR:
|
|
382
|
+
return /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsLegend.PerformanceAnalyticsLegend, {
|
|
383
|
+
legendData: [{
|
|
384
|
+
iconColor: colorBarchart1,
|
|
385
|
+
iconType: 'Square',
|
|
386
|
+
title: '% Contribution to the Total Cost'
|
|
387
|
+
}, {
|
|
388
|
+
iconColor: colorBarchart2,
|
|
389
|
+
iconType: 'Square',
|
|
390
|
+
title: '% Contribution to the Inc. Sales'
|
|
391
|
+
}]
|
|
392
|
+
});
|
|
393
|
+
default:
|
|
394
|
+
return '';
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
return /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.ControlsContainer, {
|
|
398
|
+
id: "ControlsContainer",
|
|
399
|
+
height: height,
|
|
400
|
+
width: width,
|
|
401
|
+
textcolor: textcolor
|
|
402
|
+
}, (totalsData === null || totalsData === void 0 ? void 0 : totalsData.length) > 0 && (data === null || data === void 0 ? void 0 : data.length) > 0 ? /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.Controls, {
|
|
403
|
+
id: "Controls"
|
|
404
|
+
}, displayTotalsData(), displaySegmentedButtons(), displayLineChartROI(), displayBarChart(), displayLegendData()) : /*#__PURE__*/_react.default.createElement(_NoDataFoundMessage.NoDataFoundMessage, {
|
|
405
|
+
noDataText: noDataText
|
|
406
|
+
}));
|
|
407
|
+
};
|
|
408
|
+
exports.PerformanceAnalytics = PerformanceAnalytics;
|
|
409
|
+
var _default = exports.default = PerformanceAnalytics;
|
|
410
|
+
PerformanceAnalytics.defaultProps = {
|
|
411
|
+
totalsData: [],
|
|
412
|
+
data: [],
|
|
413
|
+
legendData: [],
|
|
414
|
+
currencyType: 'USD',
|
|
415
|
+
colorGraphROI: '#9CCB3B',
|
|
416
|
+
colorBarchart1: '#1F7677',
|
|
417
|
+
colorBarchart2: '#90CE9C',
|
|
418
|
+
textcolor: '#212121',
|
|
419
|
+
width: '',
|
|
420
|
+
height: 130,
|
|
421
|
+
barChartHeight: 130,
|
|
422
|
+
lineChartHeight: 50,
|
|
423
|
+
dotCut: true,
|
|
424
|
+
noDataText: '',
|
|
425
|
+
tooltipBarchartLabel_ROI: 'Incremental Sales ROI:',
|
|
426
|
+
tooltipBarchartLabel_IndividualPerformance1: 'Package Cost:',
|
|
427
|
+
tooltipBarchartLabel_IndividualPerformance2: 'Redemption Cost:',
|
|
428
|
+
tooltipBarchartLabel_IndividualPerformance3: 'Incremental Sales:',
|
|
429
|
+
tooltipBarchartLabel_ContributionOfTotal1: '% Contribution to the Total Cost:',
|
|
430
|
+
tooltipBarchartLabel_ContributionOfTotal2: '% Contribution to the Inc. Sales:'
|
|
431
|
+
};
|
|
@@ -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
|
+
};
|