sag_components 2.0.0-beta27 → 2.0.0-beta29
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/App.js +56 -0
- package/dist/App.test.js +10 -0
- package/dist/Button.test.js +162 -0
- package/dist/LinkButton.test.js +150 -0
- package/dist/SingleBar.test.js +120 -0
- package/dist/index.esm.js +2208 -544
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2207 -544
- package/dist/index.js.map +1 -1
- package/dist/setupTests.js +15 -0
- package/dist/stories/AttachedFile.stories.js +37 -0
- package/dist/stories/AutocompleteField.stories.js +25 -0
- package/dist/stories/BannerEventBox.stories.js +59 -0
- package/dist/stories/BannerEventBoxList.stories.js +39 -0
- package/dist/stories/BannerEventBoxTest.stories.js +27 -0
- package/dist/stories/BannersDropdown.stories.js +64 -0
- package/dist/stories/BarChart.stories.js +306 -0
- package/dist/stories/BarChartTwoRows.stories.js +259 -0
- package/dist/stories/BarChartWithAreaChart.stories.js +134 -0
- package/dist/stories/BarChartsByWeeks.stories.js +445 -0
- package/dist/stories/Benchmark.stories.js +147 -0
- package/dist/stories/Button.stories.js +255 -0
- package/dist/stories/CampaignDemoReport.stories.js +65 -0
- package/dist/stories/CampaignTool/Card.stories.js +92 -0
- package/dist/stories/CampaignTool/MultipleCard.stories.js +33 -0
- package/dist/stories/CampaignTool/PageFilterBar.stories.js +28 -0
- package/dist/stories/CampaignTool/Popup.stories.js +697 -0
- package/dist/stories/CampaignTool/PopupContent.stories.js +284 -0
- package/dist/stories/CampaignTool/Table.stories.js +104 -0
- package/dist/stories/CheckBox.stories.js +107 -0
- package/dist/stories/CheckBoxButton.stories.js +150 -0
- package/dist/stories/CollapseData.stories.js +125 -0
- package/dist/stories/CollapseHeader.stories.js +123 -0
- package/dist/stories/CollapseMenuItem.stories.js +134 -0
- package/dist/stories/Datepicker.stories.js +85 -0
- package/dist/stories/DialogOverlay.stories.js +39 -0
- package/dist/stories/DoublePanelDataRow.stories.js +116 -0
- package/dist/stories/DownloadProgress.stories.js +109 -0
- package/dist/stories/Dropdown.stories.js +318 -0
- package/dist/stories/DropdownMulti.stories.js +220 -0
- package/dist/stories/DropdownNew.stories.js +407 -0
- package/dist/stories/EventDetailsCard.stories.js +122 -0
- package/dist/stories/EventList.stories.js +84 -0
- package/dist/stories/EventListItem.stories.js +65 -0
- package/dist/stories/FilterButton.stories.js +90 -0
- package/dist/stories/FilterContainer.stories.js +22 -0
- package/dist/stories/FilterPanel.stories.js +967 -0
- package/dist/stories/FormattedValue.stories.js +183 -0
- package/dist/stories/Heatmap.stories.js +118 -0
- package/dist/stories/IconButton.stories.js +126 -0
- package/dist/stories/Input.stories.js +422 -0
- package/dist/stories/InputOld.stories.js +103 -0
- package/dist/stories/KpiFilter.stories.js +401 -0
- package/dist/stories/LinkButton.stories.js +171 -0
- package/dist/stories/LinnerDataBox.stories.js +79 -0
- package/dist/stories/ListBox.stories.js +132 -0
- package/dist/stories/MarketShareDescription.stories.js +196 -0
- package/dist/stories/MonthPicker.stories.js +142 -0
- package/dist/stories/NewInput.stories.js +37 -0
- package/dist/stories/NoDataFoundMessage.stories.js +66 -0
- package/dist/stories/OneColumnContainer.stories.js +119 -0
- package/dist/stories/PerformanceAnalytics.stories.js +263 -0
- package/dist/stories/PerformanceAnalyticsLegend.stories.js +99 -0
- package/dist/stories/PerformanceAnalyticsOneColumn.stories.js +236 -0
- package/dist/stories/PerformanceAnalyticsTotals.stories.js +109 -0
- package/dist/stories/PieChart.stories.js +215 -0
- package/dist/stories/PopupCharts.stories.js +1191 -0
- package/dist/stories/ProductsVariety.stories.js +90 -0
- package/dist/stories/ProgressBar.stories.js +71 -0
- package/dist/stories/QuarterPicker.stories.js +142 -0
- package/dist/stories/QuickFilter.stories.js +275 -0
- package/dist/stories/RangePicker.stories.js +140 -0
- package/dist/stories/ReportTable.stories.js +255 -0
- package/dist/stories/SagButton.stories.js +118 -0
- package/dist/stories/SagIconButton.stories.js +122 -0
- package/dist/stories/SagInput.stories.js +69 -0
- package/dist/stories/SalesAndROI.stories.js +166 -0
- package/dist/stories/SalesSplit.stories.js +122 -0
- package/dist/stories/SearchInput.stories.js +44 -0
- package/dist/stories/SegmentedButton.stories.js +181 -0
- package/dist/stories/Select.stories.js +201 -0
- package/dist/stories/SingleBarLineCharts.stories.js +310 -0
- package/dist/stories/TabMenu.stories.js +224 -0
- package/dist/stories/TextField.stories.js +160 -0
- package/dist/stories/TitleDescription.stories.js +116 -0
- package/dist/stories/TopToggleList.stories.js +52 -0
- package/dist/stories/TotalBenchmark.stories.js +135 -0
- package/dist/stories/TotalBenchmarkAreachart.stories.js +341 -0
- package/dist/stories/TotalBenchmarkArrows.stories.js +170 -0
- package/dist/stories/TotalBenchmarkBarchart.stories.js +183 -0
- package/dist/stories/TotalDoughnutChart.stories.js +301 -0
- package/dist/stories/TotalHorizontalCharts.stories.js +291 -0
- package/dist/stories/TwoBarCharts.stories.js +185 -0
- package/dist/stories/components/AttachedFile.js +60 -0
- package/dist/stories/components/AttachedFile.style.js +48 -0
- package/dist/stories/components/AutocompleteField.js +40 -0
- package/dist/stories/components/AutocompleteField.style.js +55 -0
- package/dist/stories/components/BannerEventBox.js +97 -0
- package/dist/stories/components/BannerEventBox.style.js +78 -0
- package/dist/stories/components/BannerEventBoxList.js +153 -0
- package/dist/stories/components/BannerEventBoxList.style.js +189 -0
- package/dist/stories/components/BannerEventBoxTest.js +42 -0
- package/dist/stories/components/BannerEventBoxTest.style.js +11 -0
- package/dist/stories/components/BannersDropdown.js +119 -0
- package/dist/stories/components/BannersDropdown.style.js +99 -0
- package/dist/stories/components/BarChart.js +258 -0
- package/dist/stories/components/BarChart.style.js +60 -0
- package/dist/stories/components/BarChartTwoRows.js +220 -0
- package/dist/stories/components/BarChartTwoRows.style.js +79 -0
- package/dist/stories/components/BarChartWithAreaChart.js +268 -0
- package/dist/stories/components/BarChartWithAreaChart.style.js +67 -0
- package/dist/stories/components/BarChartsByWeeks.js +306 -0
- package/dist/stories/components/BarChartsByWeeks.style.js +96 -0
- package/dist/stories/components/Benchmark.js +130 -0
- package/dist/stories/components/Benchmark.style.js +61 -0
- package/dist/stories/components/Button.js +255 -0
- package/dist/stories/components/Button.style.js +90 -0
- package/dist/stories/components/CampaignTool/CampaignDemoReport.js +48 -0
- package/dist/stories/components/CampaignTool/CampaignDemoReport.style.js +48 -0
- package/dist/stories/components/CampaignTool/Card.js +72 -0
- package/dist/stories/components/CampaignTool/Card.style.js +65 -0
- package/dist/stories/components/CampaignTool/FormInput.js +41 -0
- package/dist/stories/components/CampaignTool/FormSelect.js +42 -0
- package/dist/stories/components/CampaignTool/MultipleCard.js +26 -0
- package/dist/stories/components/CampaignTool/MultipleCard.style.js +13 -0
- package/dist/stories/components/CampaignTool/PageFilterBar.js +23 -0
- package/dist/stories/components/CampaignTool/PageFilterBar.style.js +22 -0
- package/dist/stories/components/CampaignTool/Popup.js +172 -0
- package/dist/stories/components/CampaignTool/Popup.style.js +122 -0
- package/dist/stories/components/CampaignTool/PopupContent.js +111 -0
- package/dist/stories/components/CampaignTool/PopupContent.style.js +74 -0
- package/dist/stories/components/CampaignTool/PopupFieldsRules.js +168 -0
- package/dist/stories/components/CampaignTool/Table.js +195 -0
- package/dist/stories/components/CampaignTool/Table.style.js +86 -0
- package/dist/stories/components/CheckBox.js +76 -0
- package/dist/stories/components/CheckBox.style.js +36 -0
- package/dist/stories/components/CheckBoxButton.js +69 -0
- package/dist/stories/components/CheckBoxButton.style.js +39 -0
- package/dist/stories/components/CodeEditor.js +43 -0
- package/dist/stories/components/CodeEditor.style.js +13 -0
- package/dist/stories/components/CollapseData.js +66 -0
- package/dist/stories/components/CollapseData.style.js +127 -0
- package/dist/stories/components/CollapseHeader.js +255 -0
- package/dist/stories/components/CollapseHeader.style.js +200 -0
- package/dist/stories/components/CollapseMenuItem.js +61 -0
- package/dist/stories/components/CollapseMenuItem.style.js +61 -0
- package/dist/stories/components/CommonFunctions.js +99 -0
- package/dist/stories/components/Datepicker.js +148 -0
- package/dist/stories/components/Datepicker.style.js +19 -0
- package/dist/stories/components/DialogOverlay.js +44 -0
- package/dist/stories/components/DialogOverlay.style.js +70 -0
- package/dist/stories/components/DoublePanelDataRow.js +70 -0
- package/dist/stories/components/DoublePanelDataRow.style.js +66 -0
- package/dist/stories/components/DownloadProgress.js +97 -0
- package/dist/stories/components/DownloadProgress.style.js +51 -0
- package/dist/stories/components/Dropdown.js +231 -0
- package/dist/stories/components/Dropdown.style.js +17 -0
- package/dist/stories/components/DropdownMulti.js +290 -0
- package/dist/stories/components/DropdownMulti.style.js +17 -0
- package/dist/stories/components/DropdownMultiNew.js +292 -0
- package/dist/stories/components/DropdownMultiNew.style.js +218 -0
- package/dist/stories/components/DropdownNew.js +98 -0
- package/dist/stories/components/DropdownNew.style.js +21 -0
- package/dist/stories/components/DropdownSingleNew.js +256 -0
- package/dist/stories/components/DropdownSingleNew.style.js +189 -0
- package/dist/stories/components/EventDetailsCard.js +142 -0
- package/dist/stories/components/EventDetailsCard.style.js +62 -0
- package/dist/stories/components/EventList.js +61 -0
- package/dist/stories/components/EventList.style.js +38 -0
- package/dist/stories/components/EventListItem.js +50 -0
- package/dist/stories/components/EventListItem.style.js +47 -0
- package/dist/stories/components/FilterButton.js +53 -0
- package/dist/stories/components/FilterButton.style.js +12 -0
- package/dist/stories/components/FilterContainer.js +29 -0
- package/dist/stories/components/FilterContainer.style.js +30 -0
- package/dist/stories/components/FilterPanel.js +614 -0
- package/dist/stories/components/FilterPanel.style.js +89 -0
- package/dist/stories/components/FormattedValue.js +69 -0
- package/dist/stories/components/FormattedValue.style.js +91 -0
- package/dist/stories/components/Heatmap.js +184 -0
- package/dist/stories/components/Heatmap.style.js +151 -0
- package/dist/stories/components/IconButton.js +147 -0
- package/dist/stories/components/IconButton.style.js +64 -0
- package/dist/stories/components/Input.js +186 -0
- package/dist/stories/components/Input.style.js +132 -0
- package/dist/stories/components/InputOld.js +93 -0
- package/dist/stories/components/InputOld.style.js +71 -0
- package/dist/stories/components/KpiFilter.js +345 -0
- package/dist/stories/components/KpiFilter.style.js +132 -0
- package/dist/stories/components/LinkButton.js +225 -0
- package/dist/stories/components/LinkButton.style.js +53 -0
- package/dist/stories/components/LinnerDataBox.js +54 -0
- package/dist/stories/components/LinnerDataBox.style.js +68 -0
- package/dist/stories/components/ListBox.js +82 -0
- package/dist/stories/components/ListBox.style.js +48 -0
- package/dist/stories/components/MarketShareDescription.js +109 -0
- package/dist/stories/components/MarketShareDescription.style.js +215 -0
- package/dist/stories/components/Modal.js +21 -0
- package/dist/stories/components/Modal.style.js +63 -0
- package/dist/stories/components/ModalTotalBenchmark.js +224 -0
- package/dist/stories/components/ModalTotalCost.js +139 -0
- package/dist/stories/components/MonthPicker.js +169 -0
- package/dist/stories/components/MonthPicker.style.js +105 -0
- package/dist/stories/components/MonthPopupPicker.js +206 -0
- package/dist/stories/components/NewInput.js +33 -0
- package/dist/stories/components/NewInput.style.js +13 -0
- package/dist/stories/components/NoDataFoundMessage.js +30 -0
- package/dist/stories/components/NoDataFoundMessage.style.js +39 -0
- package/dist/stories/components/OneColumnContainer.js +121 -0
- package/dist/stories/components/OneColumnContainer.style.js +107 -0
- package/dist/stories/components/PerformanceAnalytics.js +447 -0
- package/dist/stories/components/PerformanceAnalytics.style.js +144 -0
- package/dist/stories/components/PerformanceAnalyticsLegend.js +59 -0
- package/dist/stories/components/PerformanceAnalyticsLegend.style.js +63 -0
- package/dist/stories/components/PerformanceAnalyticsOneColumn.js +327 -0
- package/dist/stories/components/PerformanceAnalyticsOneColumn.style.js +116 -0
- package/dist/stories/components/PerformanceAnalyticsTotals.js +70 -0
- package/dist/stories/components/PerformanceAnalyticsTotals.style.js +89 -0
- package/dist/stories/components/PieChart.js +154 -0
- package/dist/stories/components/PieChart.style.js +154 -0
- package/dist/stories/components/PopupCharts.js +244 -0
- package/dist/stories/components/PopupCharts.style.js +108 -0
- package/dist/stories/components/ProductsVariety.js +94 -0
- package/dist/stories/components/ProductsVariety.style.js +86 -0
- package/dist/stories/components/ProgressBar.js +52 -0
- package/dist/stories/components/ProgressBar.style.js +24 -0
- package/dist/stories/components/QuarterPicker.js +168 -0
- package/dist/stories/components/QuarterPicker.style.js +104 -0
- package/dist/stories/components/QuarterPopupPicker.js +186 -0
- package/dist/stories/components/QuickFilter.js +78 -0
- package/dist/stories/components/QuickFilter.style.js +21 -0
- package/dist/stories/components/QuickFilterDropdownMultiSelection.js +299 -0
- package/dist/stories/components/QuickFilterDropdownMultiSelection.style.js +194 -0
- package/dist/stories/components/QuickFilterDropdownSingle.js +229 -0
- package/dist/stories/components/QuickFilterDropdownSingle.style.js +139 -0
- package/dist/stories/components/RangeDatePicker.js +231 -0
- package/dist/stories/components/RangePicker.js +179 -0
- package/dist/stories/components/RangePicker.style.js +109 -0
- package/dist/stories/components/ReportTable.js +420 -0
- package/dist/stories/components/ReportTable.style.js +306 -0
- package/dist/stories/components/SagButton.js +68 -0
- package/dist/stories/components/SagButton.style.js +47 -0
- package/dist/stories/components/SagIconButton.js +130 -0
- package/dist/stories/components/SagIconButton.style.js +30 -0
- package/dist/stories/components/SagInput.js +53 -0
- package/dist/stories/components/SagInput.style.js +41 -0
- package/dist/stories/components/SalesAndROI.js +89 -0
- package/dist/stories/components/SalesAndROI.style.js +111 -0
- package/dist/stories/components/SalesSplit.js +153 -0
- package/dist/stories/components/SalesSplit.style.js +150 -0
- package/dist/stories/components/SearchInput.js +39 -0
- package/dist/stories/components/SearchInput.style.js +37 -0
- package/dist/stories/components/SegmentedButton.js +124 -0
- package/dist/stories/components/SegmentedButton.style.js +100 -0
- package/dist/stories/components/Select.js +137 -0
- package/dist/stories/components/Select.style.js +104 -0
- package/dist/stories/components/SingleBarLineCharts.js +415 -0
- package/dist/stories/components/SingleBarLineCharts.style.js +101 -0
- package/dist/stories/components/TabMenu.js +241 -0
- package/dist/stories/components/TabMenu.style.js +120 -0
- package/dist/stories/components/TextField.js +209 -0
- package/dist/stories/components/TextField.style.js +18 -0
- package/dist/stories/components/TitleDescription.js +272 -0
- package/dist/stories/components/TitleDescription.style.js +222 -0
- package/dist/stories/components/Tooltip.js +44 -0
- package/dist/stories/components/Tooltip.style.js +103 -0
- package/dist/stories/components/TopToggleList.js +46 -0
- package/dist/stories/components/TopToggleList.style.js +51 -0
- package/dist/stories/components/TotalBenchmark.js +97 -0
- package/dist/stories/components/TotalBenchmark.style.js +79 -0
- package/dist/stories/components/TotalBenchmarkAreachart.js +342 -0
- package/dist/stories/components/TotalBenchmarkAreachart.style.js +171 -0
- package/dist/stories/components/TotalBenchmarkArrows.js +149 -0
- package/dist/stories/components/TotalBenchmarkArrows.style.js +108 -0
- package/dist/stories/components/TotalBenchmarkBarchart.js +165 -0
- package/dist/stories/components/TotalBenchmarkBarchart.style.js +77 -0
- package/dist/stories/components/TotalDoughnutChart.js +187 -0
- package/dist/stories/components/TotalDoughnutChart.style.js +178 -0
- package/dist/stories/components/TotalHorizontalCharts.js +236 -0
- package/dist/stories/components/TotalHorizontalCharts.style.js +93 -0
- package/dist/stories/components/TspanTooltip.js +33 -0
- package/dist/stories/components/TspanTooltip.style.js +105 -0
- package/dist/stories/components/TwoBarCharts.js +211 -0
- package/dist/stories/components/TwoBarCharts.style.js +60 -0
- package/dist/stories/components/icons/ArrowDownIcon.js +27 -0
- package/dist/stories/components/icons/ArrowDropDownIcon.js +27 -0
- package/dist/stories/components/icons/ArrowSelectIcon.js +28 -0
- package/dist/stories/components/icons/ArrowUpIcon.js +27 -0
- package/dist/stories/components/icons/AttachedIcon.js +27 -0
- package/dist/stories/components/icons/BellIcon.js +27 -0
- package/dist/stories/components/icons/ButtonArrowRight.js +27 -0
- package/dist/stories/components/icons/Calendar.js +20 -0
- package/dist/stories/components/icons/CalendarIcon.js +27 -0
- package/dist/stories/components/icons/CalendarInOpen.js +26 -0
- package/dist/stories/components/icons/CheckBoxButtonCheckedIcon.js +28 -0
- package/dist/stories/components/icons/CheckBoxCheckedIcon.js +28 -0
- package/dist/stories/components/icons/CheckBoxNotCheckedIcon.js +28 -0
- package/dist/stories/components/icons/ChervronLeftIcon.js +20 -0
- package/dist/stories/components/icons/ChervronRightIcon.js +20 -0
- package/dist/stories/components/icons/ChevronLeftIcon.js +29 -0
- package/dist/stories/components/icons/ChevronRightIcon.js +29 -0
- package/dist/stories/components/icons/ClockIcon.js +27 -0
- package/dist/stories/components/icons/CloseIcon.js +27 -0
- package/dist/stories/components/icons/CloseXIcon.js +27 -0
- package/dist/stories/components/icons/ComboBoxArrowDownIcon.js +28 -0
- package/dist/stories/components/icons/ComboBoxArrowUpIcon.js +28 -0
- package/dist/stories/components/icons/DocumentIcon.js +48 -0
- package/dist/stories/components/icons/DownloadIcon.js +27 -0
- package/dist/stories/components/icons/Duplicate.js +28 -0
- package/dist/stories/components/icons/ErrorIcon.js +28 -0
- package/dist/stories/components/icons/ExitIcon.js +28 -0
- package/dist/stories/components/icons/ExportIcon.js +28 -0
- package/dist/stories/components/icons/EyeIcon.js +28 -0
- package/dist/stories/components/icons/FileIcon.js +27 -0
- package/dist/stories/components/icons/FilterIcon.js +36 -0
- package/dist/stories/components/icons/FlyIcon.js +28 -0
- package/dist/stories/components/icons/FoodLionChartIcon.js +42 -0
- package/dist/stories/components/icons/FoodLionIcon.js +3076 -0
- package/dist/stories/components/icons/FoodLionNewIcon.js +39 -0
- package/dist/stories/components/icons/GiantFoodChartIcon.js +40 -0
- package/dist/stories/components/icons/GiantFoodIcon.js +1976 -0
- package/dist/stories/components/icons/GiantFoodIcon_new.js +42 -0
- package/dist/stories/components/icons/HannafordChartIcon.js +40 -0
- package/dist/stories/components/icons/HannafordIcon.js +5017 -0
- package/dist/stories/components/icons/HannafordIcon_new.js +41 -0
- package/dist/stories/components/icons/HannafordNewIcon.js +213 -0
- package/dist/stories/components/icons/InfoIcon.js +28 -0
- package/dist/stories/components/icons/LampIcon.js +30 -0
- package/dist/stories/components/icons/LegendLineIcon.js +29 -0
- package/dist/stories/components/icons/LegendUnionIcon.js +29 -0
- package/dist/stories/components/icons/MaintenanceIcon.js +28 -0
- package/dist/stories/components/icons/MenuItemClosedIcon.js +28 -0
- package/dist/stories/components/icons/MenuItemOpenIcon.js +28 -0
- package/dist/stories/components/icons/MenuItemRightIcon.js +28 -0
- package/dist/stories/components/icons/MenuItemUpIcon.js +28 -0
- package/dist/stories/components/icons/NoDataFoundIcon.js +86 -0
- package/dist/stories/components/icons/OptionsIcon.js +27 -0
- package/dist/stories/components/icons/ReselectIcon.js +27 -0
- package/dist/stories/components/icons/SearchIcon.js +27 -0
- package/dist/stories/components/icons/ShoppingCartIcon.js +45 -0
- package/dist/stories/components/icons/ShoutIcon.js +27 -0
- package/dist/stories/components/icons/Sort.js +13 -0
- package/dist/stories/components/icons/SortIcon.js +35 -0
- package/dist/stories/components/icons/SpotlightProductIcon.js +28 -0
- package/dist/stories/components/icons/StopAndShopChartIcon.js +42 -0
- package/dist/stories/components/icons/StopAndShopIcon.js +134 -0
- package/dist/stories/components/icons/StopAndShopNewIcon.js +41 -0
- package/dist/stories/components/icons/SucceededIcon.js +28 -0
- package/dist/stories/components/icons/TheGiantCompanyChartIcon.js +40 -0
- package/dist/stories/components/icons/TheGiantCompanyIcon.js +40 -0
- package/dist/stories/components/icons/TheGiantCompanyIcon_old.js +1831 -0
- package/dist/stories/components/icons/TheGiantCompanyNewIcon.js +39 -0
- package/dist/stories/utils/ComponentFactory.js +65 -0
- package/dist/stories/utils/IconsHandler.js +150 -0
- package/dist/stories/utils/IconsHandler.style.js +16 -0
- package/dist/stories/utils/regex/Email.regex.js +7 -0
- package/dist/stories/utils/regex/LatinWithSpaces.regex.js +7 -0
- package/dist/stories/utils/regex/OnlyEnglishLetters.regex.js +7 -0
- package/dist/stories/utils/regex/Phone.regex.js +7 -0
- package/dist/types/components/LinnerDataBox/LinnerDataBox.data.d.ts +23 -0
- package/dist/vite.config.js +15 -0
- package/package.json +4 -4
|
@@ -0,0 +1,1191 @@
|
|
|
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.TotalHorizontalCharts = exports.TotalDoughnutChart = exports.SalesAndROI = exports.MarketShareWeeklyTriers = exports.BarChartsByWeeksTwoBars = exports.BarChartsByWeeks = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _PopupCharts = _interopRequireDefault(require("./components/PopupCharts"));
|
|
10
|
+
const FoodLionDetails = {
|
|
11
|
+
TotalDoughnutChartDetails: {
|
|
12
|
+
title: 'Switchers Pattern',
|
|
13
|
+
value: 720000,
|
|
14
|
+
legendData: [{
|
|
15
|
+
color: '#066768',
|
|
16
|
+
name: 'None Switcher',
|
|
17
|
+
value: 40.2222
|
|
18
|
+
}, {
|
|
19
|
+
color: '#82B3B4',
|
|
20
|
+
name: 'From Other Products',
|
|
21
|
+
value: 19.8888
|
|
22
|
+
}, {
|
|
23
|
+
color: '#90CE9C',
|
|
24
|
+
name: 'From Other Supplier Brand',
|
|
25
|
+
value: 24.666
|
|
26
|
+
}, {
|
|
27
|
+
color: '#5FCC70',
|
|
28
|
+
name: 'From other Suppliers',
|
|
29
|
+
value: 15.444
|
|
30
|
+
}],
|
|
31
|
+
noDataText: ''
|
|
32
|
+
},
|
|
33
|
+
BarChartsByWeeksDetails: {
|
|
34
|
+
title: 'Total Product Line Triers',
|
|
35
|
+
headerValueTopTitle: '',
|
|
36
|
+
headerValue: 4842366,
|
|
37
|
+
headerValueBottomTitle: 'Product Line Triers VS. Repeaters',
|
|
38
|
+
barChartData: [{
|
|
39
|
+
title: '202320',
|
|
40
|
+
value: 522366,
|
|
41
|
+
secondValue: 555885
|
|
42
|
+
}, {
|
|
43
|
+
title: '202321',
|
|
44
|
+
value: 659511,
|
|
45
|
+
secondValue: 335885
|
|
46
|
+
}, {
|
|
47
|
+
title: '202322',
|
|
48
|
+
value: 473092,
|
|
49
|
+
secondValue: 487885
|
|
50
|
+
}, {
|
|
51
|
+
title: '202323',
|
|
52
|
+
value: 896184,
|
|
53
|
+
secondValue: 225885
|
|
54
|
+
}, {
|
|
55
|
+
title: '202324',
|
|
56
|
+
value: 415317,
|
|
57
|
+
secondValue: 367485
|
|
58
|
+
}, {
|
|
59
|
+
title: '202325',
|
|
60
|
+
value: 668376,
|
|
61
|
+
secondValue: 324885
|
|
62
|
+
}, {
|
|
63
|
+
title: '202326',
|
|
64
|
+
value: 1278121,
|
|
65
|
+
secondValue: 871885
|
|
66
|
+
}, {
|
|
67
|
+
title: '202327',
|
|
68
|
+
value: 377930,
|
|
69
|
+
secondValue: 841185
|
|
70
|
+
}, {
|
|
71
|
+
title: '202328',
|
|
72
|
+
value: 446258,
|
|
73
|
+
secondValue: 225885
|
|
74
|
+
}, {
|
|
75
|
+
title: '202329',
|
|
76
|
+
value: 650184,
|
|
77
|
+
secondValue: 315885
|
|
78
|
+
}, {
|
|
79
|
+
title: '202330',
|
|
80
|
+
value: 312790,
|
|
81
|
+
secondValue: 415885
|
|
82
|
+
}, {
|
|
83
|
+
title: '202331',
|
|
84
|
+
value: 735076,
|
|
85
|
+
secondValue: 741885
|
|
86
|
+
}, {
|
|
87
|
+
title: '202332',
|
|
88
|
+
value: 411037,
|
|
89
|
+
secondValue: 285885
|
|
90
|
+
}],
|
|
91
|
+
barChartColor: '#1F7677',
|
|
92
|
+
barChartSecondColor: '#90CE9C',
|
|
93
|
+
startWeekRange: '202323',
|
|
94
|
+
endWeekRange: '202329',
|
|
95
|
+
tooltipTitle: 'New Shoppers: ',
|
|
96
|
+
tooltipSecondTitle: 'Repeaters: ',
|
|
97
|
+
xselectedColor: '#C7E7CD',
|
|
98
|
+
isPercentValue: false,
|
|
99
|
+
showLegend: true,
|
|
100
|
+
legendData: [{
|
|
101
|
+
title: 'New Shoppers',
|
|
102
|
+
iconType: 'Square',
|
|
103
|
+
iconColor: '#1F7677'
|
|
104
|
+
}, {
|
|
105
|
+
title: 'Repeaters',
|
|
106
|
+
iconType: 'Square',
|
|
107
|
+
iconColor: '#90CE9C'
|
|
108
|
+
}]
|
|
109
|
+
},
|
|
110
|
+
TotalHorizontalChartsDetails: {
|
|
111
|
+
title: 'Sales',
|
|
112
|
+
value: 35500,
|
|
113
|
+
chartsData: [{
|
|
114
|
+
color: 'rgba(31, 118, 119, 0.1)',
|
|
115
|
+
name: 'Lysoe',
|
|
116
|
+
value: 14
|
|
117
|
+
}, {
|
|
118
|
+
color: 'rgba(31, 118, 119, 0.2)',
|
|
119
|
+
name: 'Ensueno',
|
|
120
|
+
value: 19
|
|
121
|
+
}, {
|
|
122
|
+
color: 'rgba(31, 118, 119, 0.3)',
|
|
123
|
+
name: 'Starbucks Frappuccino',
|
|
124
|
+
value: 15
|
|
125
|
+
}, {
|
|
126
|
+
color: 'rgba(31, 118, 119, 0.4)',
|
|
127
|
+
name: 'Chunky Bowls',
|
|
128
|
+
value: 23
|
|
129
|
+
}, {
|
|
130
|
+
color: 'rgba(31, 118, 119, 0.5)',
|
|
131
|
+
name: 'Pringles',
|
|
132
|
+
value: 40
|
|
133
|
+
}],
|
|
134
|
+
noDataText: '',
|
|
135
|
+
currencySign: false,
|
|
136
|
+
dotCut: true
|
|
137
|
+
},
|
|
138
|
+
MarketShareDescriptionDetails: {
|
|
139
|
+
dotCut: false,
|
|
140
|
+
marketShareData: [{
|
|
141
|
+
fieldsArray: [{
|
|
142
|
+
label: 'Pre-event',
|
|
143
|
+
textAfter: '',
|
|
144
|
+
textBefore: '',
|
|
145
|
+
value: 1140
|
|
146
|
+
}, {
|
|
147
|
+
label: 'Event',
|
|
148
|
+
textAfter: '',
|
|
149
|
+
textBefore: '',
|
|
150
|
+
value: 6342
|
|
151
|
+
}, {
|
|
152
|
+
label: 'Post-event',
|
|
153
|
+
textAfter: '',
|
|
154
|
+
textBefore: '',
|
|
155
|
+
value: 548
|
|
156
|
+
}],
|
|
157
|
+
name: 'weeklyTriers',
|
|
158
|
+
rowFooter: ' \n <p1>The event drove </p1>\n <strong>320% </strong>\n <p1>new Pringles Harvest Brand Crisp triers</p1>\n ',
|
|
159
|
+
rowTitle: 'Weekly Triers',
|
|
160
|
+
showBanner: false
|
|
161
|
+
}, {
|
|
162
|
+
fieldsArray: [{
|
|
163
|
+
label: 'Pre-event',
|
|
164
|
+
textAfter: '',
|
|
165
|
+
textBefore: '',
|
|
166
|
+
value: 235
|
|
167
|
+
}, {
|
|
168
|
+
label: 'Event',
|
|
169
|
+
textAfter: '',
|
|
170
|
+
textBefore: '',
|
|
171
|
+
value: 1345
|
|
172
|
+
}, {
|
|
173
|
+
label: 'Post-event',
|
|
174
|
+
textAfter: '',
|
|
175
|
+
textBefore: '',
|
|
176
|
+
value: 1569
|
|
177
|
+
}],
|
|
178
|
+
name: 'weeklyRepeaters',
|
|
179
|
+
rowFooter: '',
|
|
180
|
+
rowTitle: 'Weekly Repeaters',
|
|
181
|
+
showBanner: false
|
|
182
|
+
}],
|
|
183
|
+
height: '630px',
|
|
184
|
+
width: '700px'
|
|
185
|
+
},
|
|
186
|
+
SalesAndROIDetails: {
|
|
187
|
+
title: '',
|
|
188
|
+
currencySign: true,
|
|
189
|
+
dotCut: true,
|
|
190
|
+
noDataText: 'No data to display.',
|
|
191
|
+
salesData: [{
|
|
192
|
+
name: 'Total Sales',
|
|
193
|
+
textAfter: '',
|
|
194
|
+
textBefore: '',
|
|
195
|
+
value: 90000
|
|
196
|
+
}, {
|
|
197
|
+
name: 'Incremental sales',
|
|
198
|
+
textAfter: '(43 Units)',
|
|
199
|
+
textBefore: '',
|
|
200
|
+
value: 420000
|
|
201
|
+
}, {
|
|
202
|
+
name: 'Package Cost',
|
|
203
|
+
textAfter: '',
|
|
204
|
+
textBefore: '',
|
|
205
|
+
value: 50000
|
|
206
|
+
}, {
|
|
207
|
+
name: 'ROI',
|
|
208
|
+
textAfter: '',
|
|
209
|
+
textBefore: 'x',
|
|
210
|
+
value: 9.2
|
|
211
|
+
}],
|
|
212
|
+
showBanner: false,
|
|
213
|
+
height: '300px',
|
|
214
|
+
width: '100%'
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
/// /////////////////////////////////////////////// Food Lion Details - END /////////////////////////////////////////////
|
|
218
|
+
|
|
219
|
+
/// /////////////////////////////////////////////// Hannaford Details - START /////////////////////////////////////////////
|
|
220
|
+
|
|
221
|
+
const HannafordDetails = {
|
|
222
|
+
TotalDoughnutChartDetails: {
|
|
223
|
+
title: 'Switchers Pattern',
|
|
224
|
+
value: 140000,
|
|
225
|
+
legendData: [{
|
|
226
|
+
color: '#066768',
|
|
227
|
+
name: 'None Switcher',
|
|
228
|
+
value: 35.2
|
|
229
|
+
}, {
|
|
230
|
+
color: '#82B3B4',
|
|
231
|
+
name: 'From Other Products',
|
|
232
|
+
value: 14.8
|
|
233
|
+
}, {
|
|
234
|
+
color: '#90CE9C',
|
|
235
|
+
name: 'From Other Supplier Brand',
|
|
236
|
+
value: 20.666
|
|
237
|
+
}, {
|
|
238
|
+
color: '#5FCC70',
|
|
239
|
+
name: 'From other Suppliers',
|
|
240
|
+
value: 29.444
|
|
241
|
+
}],
|
|
242
|
+
noDataText: ''
|
|
243
|
+
},
|
|
244
|
+
BarChartsByWeeksDetails: {
|
|
245
|
+
title: 'Total Product Line Triers',
|
|
246
|
+
headerValueTopTitle: '',
|
|
247
|
+
headerValue: 4842366,
|
|
248
|
+
headerValueBottomTitle: 'Product Line Triers VS. Repeaters',
|
|
249
|
+
barChartData: [{
|
|
250
|
+
title: '202320',
|
|
251
|
+
value: 442366,
|
|
252
|
+
secondValue: 555885
|
|
253
|
+
}, {
|
|
254
|
+
title: '202321',
|
|
255
|
+
value: 599511,
|
|
256
|
+
secondValue: 356885
|
|
257
|
+
}, {
|
|
258
|
+
title: '202322',
|
|
259
|
+
value: 603092,
|
|
260
|
+
secondValue: 658485
|
|
261
|
+
}, {
|
|
262
|
+
title: '202323',
|
|
263
|
+
value: 796184,
|
|
264
|
+
secondValue: 356842
|
|
265
|
+
}, {
|
|
266
|
+
title: '202324',
|
|
267
|
+
value: 815317,
|
|
268
|
+
secondValue: 687549
|
|
269
|
+
}, {
|
|
270
|
+
title: '202325',
|
|
271
|
+
value: 968376,
|
|
272
|
+
secondValue: 632597
|
|
273
|
+
}, {
|
|
274
|
+
title: '202326',
|
|
275
|
+
value: 1078121,
|
|
276
|
+
secondValue: 784521
|
|
277
|
+
}, {
|
|
278
|
+
title: '202327',
|
|
279
|
+
value: 847930,
|
|
280
|
+
secondValue: 586491
|
|
281
|
+
}, {
|
|
282
|
+
title: '202328',
|
|
283
|
+
value: 746258,
|
|
284
|
+
secondValue: 654219
|
|
285
|
+
}, {
|
|
286
|
+
title: '202329',
|
|
287
|
+
value: 650184,
|
|
288
|
+
secondValue: 128456
|
|
289
|
+
}, {
|
|
290
|
+
title: '202330',
|
|
291
|
+
value: 512790,
|
|
292
|
+
secondValue: 157246
|
|
293
|
+
}, {
|
|
294
|
+
title: '202331',
|
|
295
|
+
value: 435076,
|
|
296
|
+
secondValue: 369854
|
|
297
|
+
}, {
|
|
298
|
+
title: '202332',
|
|
299
|
+
value: 311037,
|
|
300
|
+
secondValue: 154872
|
|
301
|
+
}],
|
|
302
|
+
barChartColor: '#1F7677',
|
|
303
|
+
barChartSecondColor: '#90CE9C',
|
|
304
|
+
startWeekRange: '202323',
|
|
305
|
+
endWeekRange: '202329',
|
|
306
|
+
tooltipTitle: 'New Shoppers: ',
|
|
307
|
+
tooltipSecondTitle: 'Repeaters: ',
|
|
308
|
+
xselectedColor: '#C7E7CD',
|
|
309
|
+
isPercentValue: false,
|
|
310
|
+
showLegend: true,
|
|
311
|
+
legendData: [{
|
|
312
|
+
title: 'New Shoppers',
|
|
313
|
+
iconType: 'Square',
|
|
314
|
+
iconColor: '#1F7677'
|
|
315
|
+
}, {
|
|
316
|
+
title: 'Repeaters',
|
|
317
|
+
iconType: 'Square',
|
|
318
|
+
iconColor: '#90CE9C'
|
|
319
|
+
}]
|
|
320
|
+
},
|
|
321
|
+
TotalHorizontalChartsDetails: {
|
|
322
|
+
title: 'Sales',
|
|
323
|
+
value: 47500,
|
|
324
|
+
chartsData: [{
|
|
325
|
+
color: 'rgba(31, 118, 119, 0.1)',
|
|
326
|
+
name: 'Lysoe',
|
|
327
|
+
value: 20
|
|
328
|
+
}, {
|
|
329
|
+
color: 'rgba(31, 118, 119, 0.2)',
|
|
330
|
+
name: 'Ensueno',
|
|
331
|
+
value: 21
|
|
332
|
+
}, {
|
|
333
|
+
color: 'rgba(31, 118, 119, 0.3)',
|
|
334
|
+
name: 'Starbucks Frappuccino',
|
|
335
|
+
value: 11
|
|
336
|
+
}, {
|
|
337
|
+
color: 'rgba(31, 118, 119, 0.4)',
|
|
338
|
+
name: 'Chunky Bowls',
|
|
339
|
+
value: 35
|
|
340
|
+
}, {
|
|
341
|
+
color: 'rgba(31, 118, 119, 0.5)',
|
|
342
|
+
name: 'Pringles',
|
|
343
|
+
value: 32
|
|
344
|
+
}],
|
|
345
|
+
noDataText: '',
|
|
346
|
+
currencySign: false,
|
|
347
|
+
dotCut: true
|
|
348
|
+
},
|
|
349
|
+
MarketShareDescriptionDetails: {
|
|
350
|
+
dotCut: false,
|
|
351
|
+
marketShareData: [{
|
|
352
|
+
fieldsArray: [{
|
|
353
|
+
label: 'Pre-event',
|
|
354
|
+
textAfter: '',
|
|
355
|
+
textBefore: '',
|
|
356
|
+
value: 2549
|
|
357
|
+
}, {
|
|
358
|
+
label: 'Event',
|
|
359
|
+
textAfter: '',
|
|
360
|
+
textBefore: '',
|
|
361
|
+
value: 9458
|
|
362
|
+
}, {
|
|
363
|
+
label: 'Post-event',
|
|
364
|
+
textAfter: '',
|
|
365
|
+
textBefore: '',
|
|
366
|
+
value: 730
|
|
367
|
+
}],
|
|
368
|
+
name: 'weeklyTriers',
|
|
369
|
+
rowFooter: ' \n <p1>The event drove </p1>\n <strong>320% </strong>\n <p1>new Pringles Harvest Brand Crisp triers</p1>\n ',
|
|
370
|
+
rowTitle: 'Weekly Triers',
|
|
371
|
+
showBanner: false
|
|
372
|
+
}, {
|
|
373
|
+
fieldsArray: [{
|
|
374
|
+
label: 'Pre-event',
|
|
375
|
+
textAfter: '',
|
|
376
|
+
textBefore: '',
|
|
377
|
+
value: 89
|
|
378
|
+
}, {
|
|
379
|
+
label: 'Event',
|
|
380
|
+
textAfter: '',
|
|
381
|
+
textBefore: '',
|
|
382
|
+
value: 1673
|
|
383
|
+
}, {
|
|
384
|
+
label: 'Post-event',
|
|
385
|
+
textAfter: '',
|
|
386
|
+
textBefore: '',
|
|
387
|
+
value: 2976
|
|
388
|
+
}],
|
|
389
|
+
name: 'weeklyRepeaters',
|
|
390
|
+
rowFooter: '',
|
|
391
|
+
rowTitle: 'Weekly Repeaters',
|
|
392
|
+
showBanner: false
|
|
393
|
+
}],
|
|
394
|
+
height: '630px',
|
|
395
|
+
width: '700px'
|
|
396
|
+
},
|
|
397
|
+
SalesAndROIDetails: {
|
|
398
|
+
title: '',
|
|
399
|
+
currencySign: true,
|
|
400
|
+
dotCut: true,
|
|
401
|
+
noDataText: 'No data to display.',
|
|
402
|
+
salesData: [{
|
|
403
|
+
name: 'Total Sales',
|
|
404
|
+
textAfter: '',
|
|
405
|
+
textBefore: '',
|
|
406
|
+
value: 90000
|
|
407
|
+
}, {
|
|
408
|
+
name: 'Incremental sales',
|
|
409
|
+
textAfter: '(43 Units)',
|
|
410
|
+
textBefore: '',
|
|
411
|
+
value: 420000
|
|
412
|
+
}, {
|
|
413
|
+
name: 'Package Cost',
|
|
414
|
+
textAfter: '',
|
|
415
|
+
textBefore: '',
|
|
416
|
+
value: 50000
|
|
417
|
+
}, {
|
|
418
|
+
name: 'ROI',
|
|
419
|
+
textAfter: '',
|
|
420
|
+
textBefore: 'x',
|
|
421
|
+
value: 9.2
|
|
422
|
+
}],
|
|
423
|
+
showBanner: false,
|
|
424
|
+
height: '300px',
|
|
425
|
+
width: '100%'
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
/// /////////////////////////////////////////////// Hannaford Details - END /////////////////////////////////////////////
|
|
429
|
+
|
|
430
|
+
/// /////////////////////////////////////////////// The Giant Company - START /////////////////////////////////////////////
|
|
431
|
+
|
|
432
|
+
const TheGiantCompanyDetails = {
|
|
433
|
+
TotalDoughnutChartDetails: {
|
|
434
|
+
title: 'Switchers Pattern',
|
|
435
|
+
value: 420000,
|
|
436
|
+
legendData: [{
|
|
437
|
+
color: '#066768',
|
|
438
|
+
name: 'None Switcher',
|
|
439
|
+
value: 40.5
|
|
440
|
+
}, {
|
|
441
|
+
color: '#82B3B4',
|
|
442
|
+
name: 'From Other Products',
|
|
443
|
+
value: 19.5
|
|
444
|
+
}, {
|
|
445
|
+
color: '#90CE9C',
|
|
446
|
+
name: 'From Other Supplier Brand',
|
|
447
|
+
value: 30.666
|
|
448
|
+
}, {
|
|
449
|
+
color: '#5FCC70',
|
|
450
|
+
name: 'From other Suppliers',
|
|
451
|
+
value: 9.444
|
|
452
|
+
}],
|
|
453
|
+
noDataText: ''
|
|
454
|
+
},
|
|
455
|
+
BarChartsByWeeksDetails: {
|
|
456
|
+
title: 'Total Product Line Triers',
|
|
457
|
+
headerValueTopTitle: '',
|
|
458
|
+
headerValue: 4842366,
|
|
459
|
+
headerValueBottomTitle: 'Product Line Triers VS. Repeaters',
|
|
460
|
+
barChartData: [{
|
|
461
|
+
title: '202320',
|
|
462
|
+
value: 542366,
|
|
463
|
+
secondValue: 555885
|
|
464
|
+
}, {
|
|
465
|
+
title: '202321',
|
|
466
|
+
value: 699511,
|
|
467
|
+
secondValue: 264875
|
|
468
|
+
}, {
|
|
469
|
+
title: '202322',
|
|
470
|
+
value: 403092,
|
|
471
|
+
secondValue: 125475
|
|
472
|
+
}, {
|
|
473
|
+
title: '202323',
|
|
474
|
+
value: 396184,
|
|
475
|
+
secondValue: 187542
|
|
476
|
+
}, {
|
|
477
|
+
title: '202324',
|
|
478
|
+
value: 415317,
|
|
479
|
+
secondValue: 658452
|
|
480
|
+
}, {
|
|
481
|
+
title: '202325',
|
|
482
|
+
value: 568376,
|
|
483
|
+
secondValue: 598746
|
|
484
|
+
}, {
|
|
485
|
+
title: '202326',
|
|
486
|
+
value: 1078121,
|
|
487
|
+
secondValue: 124578
|
|
488
|
+
}, {
|
|
489
|
+
title: '202327',
|
|
490
|
+
value: 947930,
|
|
491
|
+
secondValue: 548475
|
|
492
|
+
}, {
|
|
493
|
+
title: '202328',
|
|
494
|
+
value: 946258,
|
|
495
|
+
secondValue: 698745
|
|
496
|
+
}, {
|
|
497
|
+
title: '202329',
|
|
498
|
+
value: 850184,
|
|
499
|
+
secondValue: 698754
|
|
500
|
+
}, {
|
|
501
|
+
title: '202330',
|
|
502
|
+
value: 912790,
|
|
503
|
+
secondValue: 658742
|
|
504
|
+
}, {
|
|
505
|
+
title: '202331',
|
|
506
|
+
value: 835076,
|
|
507
|
+
secondValue: 9784587
|
|
508
|
+
}, {
|
|
509
|
+
title: '202332',
|
|
510
|
+
value: 911037,
|
|
511
|
+
secondValue: 963547
|
|
512
|
+
}],
|
|
513
|
+
barChartColor: '#1F7677',
|
|
514
|
+
barChartSecondColor: '#90CE9C',
|
|
515
|
+
startWeekRange: '202323',
|
|
516
|
+
endWeekRange: '202329',
|
|
517
|
+
tooltipTitle: 'New Shoppers: ',
|
|
518
|
+
tooltipSecondTitle: 'Repeaters: ',
|
|
519
|
+
xselectedColor: '#C7E7CD',
|
|
520
|
+
isPercentValue: false,
|
|
521
|
+
showLegend: true,
|
|
522
|
+
legendData: [{
|
|
523
|
+
title: 'New Shoppers',
|
|
524
|
+
iconType: 'Square',
|
|
525
|
+
iconColor: '#1F7677'
|
|
526
|
+
}, {
|
|
527
|
+
title: 'Repeaters',
|
|
528
|
+
iconType: 'Square',
|
|
529
|
+
iconColor: '#90CE9C'
|
|
530
|
+
}]
|
|
531
|
+
},
|
|
532
|
+
TotalHorizontalChartsDetails: {
|
|
533
|
+
title: 'Sales',
|
|
534
|
+
value: 24500,
|
|
535
|
+
chartsData: [{
|
|
536
|
+
color: 'rgba(31, 118, 119, 0.1)',
|
|
537
|
+
name: 'Lysoe',
|
|
538
|
+
value: 13
|
|
539
|
+
}, {
|
|
540
|
+
color: 'rgba(31, 118, 119, 0.2)',
|
|
541
|
+
name: 'Ensueno',
|
|
542
|
+
value: 21
|
|
543
|
+
}, {
|
|
544
|
+
color: 'rgba(31, 118, 119, 0.3)',
|
|
545
|
+
name: 'Starbucks Frappuccino',
|
|
546
|
+
value: 17
|
|
547
|
+
}, {
|
|
548
|
+
color: 'rgba(31, 118, 119, 0.4)',
|
|
549
|
+
name: 'Chunky Bowls',
|
|
550
|
+
value: 39
|
|
551
|
+
}, {
|
|
552
|
+
color: 'rgba(31, 118, 119, 0.5)',
|
|
553
|
+
name: 'Pringles',
|
|
554
|
+
value: 25
|
|
555
|
+
}],
|
|
556
|
+
noDataText: '',
|
|
557
|
+
currencySign: false,
|
|
558
|
+
dotCut: true
|
|
559
|
+
},
|
|
560
|
+
MarketShareDescriptionDetails: {
|
|
561
|
+
dotCut: false,
|
|
562
|
+
height: '630px',
|
|
563
|
+
marketShareData: [{
|
|
564
|
+
fieldsArray: [{
|
|
565
|
+
label: 'Pre-event',
|
|
566
|
+
textAfter: '',
|
|
567
|
+
textBefore: '',
|
|
568
|
+
value: 2040
|
|
569
|
+
}, {
|
|
570
|
+
label: 'Event',
|
|
571
|
+
textAfter: '',
|
|
572
|
+
textBefore: '',
|
|
573
|
+
value: 8250
|
|
574
|
+
}, {
|
|
575
|
+
label: 'Post-event',
|
|
576
|
+
textAfter: '',
|
|
577
|
+
textBefore: '',
|
|
578
|
+
value: 600
|
|
579
|
+
}],
|
|
580
|
+
name: 'weeklyTriers',
|
|
581
|
+
rowFooter: ' \n <p1>The event drove </p1>\n <strong>320% </strong>\n <p1>new Pringles Harvest Brand Crisp triers</p1>\n ',
|
|
582
|
+
rowTitle: 'Weekly Triers',
|
|
583
|
+
showBanner: false
|
|
584
|
+
}, {
|
|
585
|
+
fieldsArray: [{
|
|
586
|
+
label: 'Pre-event',
|
|
587
|
+
textAfter: '',
|
|
588
|
+
textBefore: '',
|
|
589
|
+
value: 100
|
|
590
|
+
}, {
|
|
591
|
+
label: 'Event',
|
|
592
|
+
textAfter: '',
|
|
593
|
+
textBefore: '',
|
|
594
|
+
value: 1500
|
|
595
|
+
}, {
|
|
596
|
+
label: 'Post-event',
|
|
597
|
+
textAfter: '',
|
|
598
|
+
textBefore: '',
|
|
599
|
+
value: 2400
|
|
600
|
+
}],
|
|
601
|
+
name: 'weeklyRepeaters',
|
|
602
|
+
rowFooter: '',
|
|
603
|
+
rowTitle: 'Weekly Repeaters',
|
|
604
|
+
showBanner: false
|
|
605
|
+
}],
|
|
606
|
+
width: '700px'
|
|
607
|
+
},
|
|
608
|
+
SalesAndROIDetails: {
|
|
609
|
+
title: '',
|
|
610
|
+
currencySign: true,
|
|
611
|
+
dotCut: true,
|
|
612
|
+
noDataText: 'No data to display.',
|
|
613
|
+
salesData: [{
|
|
614
|
+
name: 'Total Sales',
|
|
615
|
+
textAfter: '',
|
|
616
|
+
textBefore: '',
|
|
617
|
+
value: 90000
|
|
618
|
+
}, {
|
|
619
|
+
name: 'Incremental sales',
|
|
620
|
+
textAfter: '(43 Units)',
|
|
621
|
+
textBefore: '',
|
|
622
|
+
value: 420000
|
|
623
|
+
}, {
|
|
624
|
+
name: 'Package Cost',
|
|
625
|
+
textAfter: '',
|
|
626
|
+
textBefore: '',
|
|
627
|
+
value: 50000
|
|
628
|
+
}, {
|
|
629
|
+
name: 'ROI',
|
|
630
|
+
textAfter: '',
|
|
631
|
+
textBefore: 'x',
|
|
632
|
+
value: 9.2
|
|
633
|
+
}],
|
|
634
|
+
showBanner: false,
|
|
635
|
+
height: '300px',
|
|
636
|
+
width: '100%'
|
|
637
|
+
}
|
|
638
|
+
};
|
|
639
|
+
/// /////////////////////////////////////////////// The Giant Company - END /////////////////////////////////////////////
|
|
640
|
+
|
|
641
|
+
/// /////////////////////////////////////////////// Stop&Shop - START /////////////////////////////////////////////
|
|
642
|
+
|
|
643
|
+
const StopAndShopDetails = {
|
|
644
|
+
TotalDoughnutChartDetails: {
|
|
645
|
+
title: 'Switchers Pattern',
|
|
646
|
+
value: 350000,
|
|
647
|
+
legendData: [{
|
|
648
|
+
color: '#066768',
|
|
649
|
+
name: 'None Switcher',
|
|
650
|
+
value: 45.7
|
|
651
|
+
}, {
|
|
652
|
+
color: '#82B3B4',
|
|
653
|
+
name: 'From Other Products',
|
|
654
|
+
value: 24.3
|
|
655
|
+
}, {
|
|
656
|
+
color: '#90CE9C',
|
|
657
|
+
name: 'From Other Supplier Brand',
|
|
658
|
+
value: 10.9
|
|
659
|
+
}, {
|
|
660
|
+
color: '#5FCC70',
|
|
661
|
+
name: 'From other Suppliers',
|
|
662
|
+
value: 19.1
|
|
663
|
+
}],
|
|
664
|
+
noDataText: ''
|
|
665
|
+
},
|
|
666
|
+
BarChartsByWeeksDetails: {
|
|
667
|
+
title: 'Total Product Line Triers',
|
|
668
|
+
headerValueTopTitle: '',
|
|
669
|
+
headerValue: 4842366,
|
|
670
|
+
headerValueBottomTitle: 'Product Line Triers VS. Repeaters',
|
|
671
|
+
barChartData: [{
|
|
672
|
+
title: '202320',
|
|
673
|
+
value: 642366,
|
|
674
|
+
secondValue: 697458
|
|
675
|
+
}, {
|
|
676
|
+
title: '202321',
|
|
677
|
+
value: 699511,
|
|
678
|
+
secondValue: 154875
|
|
679
|
+
}, {
|
|
680
|
+
title: '202322',
|
|
681
|
+
value: 703092,
|
|
682
|
+
secondValue: 326581
|
|
683
|
+
}, {
|
|
684
|
+
title: '202323',
|
|
685
|
+
value: 696184,
|
|
686
|
+
secondValue: 697458
|
|
687
|
+
}, {
|
|
688
|
+
title: '202324',
|
|
689
|
+
value: 715317,
|
|
690
|
+
secondValue: 315487
|
|
691
|
+
}, {
|
|
692
|
+
title: '202325',
|
|
693
|
+
value: 668376,
|
|
694
|
+
secondValue: 397145
|
|
695
|
+
}, {
|
|
696
|
+
title: '202326',
|
|
697
|
+
value: 1078121,
|
|
698
|
+
secondValue: 381975
|
|
699
|
+
}, {
|
|
700
|
+
title: '202327',
|
|
701
|
+
value: 747930,
|
|
702
|
+
secondValue: 986574
|
|
703
|
+
}, {
|
|
704
|
+
title: '202328',
|
|
705
|
+
value: 646258,
|
|
706
|
+
secondValue: 184875
|
|
707
|
+
}, {
|
|
708
|
+
title: '202329',
|
|
709
|
+
value: 750184,
|
|
710
|
+
secondValue: 369542
|
|
711
|
+
}, {
|
|
712
|
+
title: '202330',
|
|
713
|
+
value: 512790,
|
|
714
|
+
secondValue: 365845
|
|
715
|
+
}, {
|
|
716
|
+
title: '202331',
|
|
717
|
+
value: 435076,
|
|
718
|
+
secondValue: 659875
|
|
719
|
+
}, {
|
|
720
|
+
title: '202332',
|
|
721
|
+
value: 311037,
|
|
722
|
+
secondValue: 369852
|
|
723
|
+
}],
|
|
724
|
+
barChartColor: '#1F7677',
|
|
725
|
+
barChartSecondColor: '#90CE9C',
|
|
726
|
+
startWeekRange: '202323',
|
|
727
|
+
endWeekRange: '202329',
|
|
728
|
+
tooltipTitle: 'New Shoppers: ',
|
|
729
|
+
tooltipSecondTitle: 'Repeaters: ',
|
|
730
|
+
xselectedColor: '#C7E7CD',
|
|
731
|
+
isPercentValue: false,
|
|
732
|
+
showLegend: true,
|
|
733
|
+
legendData: [{
|
|
734
|
+
title: 'New Shoppers',
|
|
735
|
+
iconType: 'Square',
|
|
736
|
+
iconColor: '#1F7677'
|
|
737
|
+
}, {
|
|
738
|
+
title: 'Repeaters',
|
|
739
|
+
iconType: 'Square',
|
|
740
|
+
iconColor: '#90CE9C'
|
|
741
|
+
}]
|
|
742
|
+
},
|
|
743
|
+
TotalHorizontalChartsDetails: {
|
|
744
|
+
title: 'Sales',
|
|
745
|
+
value: 66300,
|
|
746
|
+
chartsData: [{
|
|
747
|
+
color: 'rgba(31, 118, 119, 0.1)',
|
|
748
|
+
name: 'Lysoe',
|
|
749
|
+
value: 14
|
|
750
|
+
}, {
|
|
751
|
+
color: 'rgba(31, 118, 119, 0.2)',
|
|
752
|
+
name: 'Ensueno',
|
|
753
|
+
value: 12
|
|
754
|
+
}, {
|
|
755
|
+
color: 'rgba(31, 118, 119, 0.3)',
|
|
756
|
+
name: 'Starbucks Frappuccino',
|
|
757
|
+
value: 15
|
|
758
|
+
}, {
|
|
759
|
+
color: 'rgba(31, 118, 119, 0.4)',
|
|
760
|
+
name: 'Chunky Bowls',
|
|
761
|
+
value: 19
|
|
762
|
+
}, {
|
|
763
|
+
color: 'rgba(31, 118, 119, 0.5)',
|
|
764
|
+
name: 'Pringles',
|
|
765
|
+
value: 55
|
|
766
|
+
}],
|
|
767
|
+
noDataText: '',
|
|
768
|
+
currencySign: false,
|
|
769
|
+
dotCut: true
|
|
770
|
+
},
|
|
771
|
+
MarketShareDescriptionDetails: {
|
|
772
|
+
dotCut: false,
|
|
773
|
+
marketShareData: [{
|
|
774
|
+
fieldsArray: [{
|
|
775
|
+
label: 'Pre-event',
|
|
776
|
+
textAfter: '',
|
|
777
|
+
textBefore: '',
|
|
778
|
+
value: 2845
|
|
779
|
+
}, {
|
|
780
|
+
label: 'Event',
|
|
781
|
+
textAfter: '',
|
|
782
|
+
textBefore: '',
|
|
783
|
+
value: 6877
|
|
784
|
+
}, {
|
|
785
|
+
label: 'Post-event',
|
|
786
|
+
textAfter: '',
|
|
787
|
+
textBefore: '',
|
|
788
|
+
value: 532
|
|
789
|
+
}],
|
|
790
|
+
name: 'weeklyTriers',
|
|
791
|
+
rowFooter: ' \n <p1>The event drove </p1>\n <strong>320% </strong>\n <p1>new Pringles Harvest Brand Crisp triers</p1>\n ',
|
|
792
|
+
rowTitle: 'Weekly Triers',
|
|
793
|
+
showBanner: false
|
|
794
|
+
}, {
|
|
795
|
+
fieldsArray: [{
|
|
796
|
+
label: 'Pre-event',
|
|
797
|
+
textAfter: '',
|
|
798
|
+
textBefore: '',
|
|
799
|
+
value: 69
|
|
800
|
+
}, {
|
|
801
|
+
label: 'Event',
|
|
802
|
+
textAfter: '',
|
|
803
|
+
textBefore: '',
|
|
804
|
+
value: 1685
|
|
805
|
+
}, {
|
|
806
|
+
label: 'Post-event',
|
|
807
|
+
textAfter: '',
|
|
808
|
+
textBefore: '',
|
|
809
|
+
value: 2781
|
|
810
|
+
}],
|
|
811
|
+
name: 'weeklyRepeaters',
|
|
812
|
+
rowFooter: '',
|
|
813
|
+
rowTitle: 'Weekly Repeaters',
|
|
814
|
+
showBanner: false
|
|
815
|
+
}],
|
|
816
|
+
height: '630px',
|
|
817
|
+
width: '700px'
|
|
818
|
+
},
|
|
819
|
+
SalesAndROIDetails: {
|
|
820
|
+
title: '',
|
|
821
|
+
currencySign: true,
|
|
822
|
+
dotCut: true,
|
|
823
|
+
noDataText: 'No data to display.',
|
|
824
|
+
salesData: [{
|
|
825
|
+
name: 'Total Sales',
|
|
826
|
+
textAfter: '',
|
|
827
|
+
textBefore: '',
|
|
828
|
+
value: 90000
|
|
829
|
+
}, {
|
|
830
|
+
name: 'Incremental sales',
|
|
831
|
+
textAfter: '(43 Units)',
|
|
832
|
+
textBefore: '',
|
|
833
|
+
value: 420000
|
|
834
|
+
}, {
|
|
835
|
+
name: 'Package Cost',
|
|
836
|
+
textAfter: '',
|
|
837
|
+
textBefore: '',
|
|
838
|
+
value: 50000
|
|
839
|
+
}, {
|
|
840
|
+
name: 'ROI',
|
|
841
|
+
textAfter: '',
|
|
842
|
+
textBefore: 'x',
|
|
843
|
+
value: 9.2
|
|
844
|
+
}],
|
|
845
|
+
showBanner: false,
|
|
846
|
+
height: '300px',
|
|
847
|
+
width: '100%'
|
|
848
|
+
}
|
|
849
|
+
};
|
|
850
|
+
const GiantFoodDetails = {
|
|
851
|
+
TotalDoughnutChartDetails: {
|
|
852
|
+
title: 'Switchers Pattern',
|
|
853
|
+
value: 580000,
|
|
854
|
+
legendData: [{
|
|
855
|
+
color: '#066768',
|
|
856
|
+
name: 'None Switcher',
|
|
857
|
+
value: 60
|
|
858
|
+
}, {
|
|
859
|
+
color: '#82B3B4',
|
|
860
|
+
name: 'From Other Products',
|
|
861
|
+
value: 20
|
|
862
|
+
}, {
|
|
863
|
+
color: '#90CE9C',
|
|
864
|
+
name: 'From Other Supplier Brand',
|
|
865
|
+
value: 12
|
|
866
|
+
}, {
|
|
867
|
+
color: '#5FCC70',
|
|
868
|
+
name: 'From other Suppliers',
|
|
869
|
+
value: 8
|
|
870
|
+
}],
|
|
871
|
+
noDataText: ''
|
|
872
|
+
},
|
|
873
|
+
BarChartsByWeeksDetails: {
|
|
874
|
+
title: 'Total Product Line Triers',
|
|
875
|
+
headerValueTopTitle: '',
|
|
876
|
+
headerValue: 4842366,
|
|
877
|
+
headerValueBottomTitle: 'Product Line Triers VS. Repeaters',
|
|
878
|
+
barChartData: [{
|
|
879
|
+
title: '202320',
|
|
880
|
+
value: 542366,
|
|
881
|
+
secondValue: 555885
|
|
882
|
+
}, {
|
|
883
|
+
title: '202321',
|
|
884
|
+
value: 699511,
|
|
885
|
+
secondValue: 648752
|
|
886
|
+
}, {
|
|
887
|
+
title: '202322',
|
|
888
|
+
value: 403092,
|
|
889
|
+
secondValue: 365824
|
|
890
|
+
}, {
|
|
891
|
+
title: '202323',
|
|
892
|
+
value: 396184,
|
|
893
|
+
secondValue: 917458
|
|
894
|
+
}, {
|
|
895
|
+
title: '202324',
|
|
896
|
+
value: 415317,
|
|
897
|
+
secondValue: 356985
|
|
898
|
+
}, {
|
|
899
|
+
title: '202325',
|
|
900
|
+
value: 568376,
|
|
901
|
+
secondValue: 284865
|
|
902
|
+
}, {
|
|
903
|
+
title: '202326',
|
|
904
|
+
value: 1078121,
|
|
905
|
+
secondValue: 346857
|
|
906
|
+
}, {
|
|
907
|
+
title: '202327',
|
|
908
|
+
value: 347930,
|
|
909
|
+
secondValue: 187546
|
|
910
|
+
}, {
|
|
911
|
+
title: '202328',
|
|
912
|
+
value: 346258,
|
|
913
|
+
secondValue: 159753
|
|
914
|
+
}, {
|
|
915
|
+
title: '202329',
|
|
916
|
+
value: 350184,
|
|
917
|
+
secondValue: 186542
|
|
918
|
+
}, {
|
|
919
|
+
title: '202330',
|
|
920
|
+
value: 312790,
|
|
921
|
+
secondValue: 968547
|
|
922
|
+
}, {
|
|
923
|
+
title: '202331',
|
|
924
|
+
value: 335076,
|
|
925
|
+
secondValue: 157452
|
|
926
|
+
}, {
|
|
927
|
+
title: '202332',
|
|
928
|
+
value: 311037,
|
|
929
|
+
secondValue: 154258
|
|
930
|
+
}],
|
|
931
|
+
barChartColor: '#1F7677',
|
|
932
|
+
barChartSecondColor: '#90CE9C',
|
|
933
|
+
startWeekRange: '202323',
|
|
934
|
+
endWeekRange: '202329',
|
|
935
|
+
tooltipTitle: 'New Shoppers: ',
|
|
936
|
+
tooltipSecondTitle: 'Repeaters: ',
|
|
937
|
+
xselectedColor: '#C7E7CD',
|
|
938
|
+
isPercentValue: false,
|
|
939
|
+
showLegend: true,
|
|
940
|
+
legendData: [{
|
|
941
|
+
title: 'New Shoppers',
|
|
942
|
+
iconType: 'Square',
|
|
943
|
+
iconColor: '#1F7677'
|
|
944
|
+
}, {
|
|
945
|
+
title: 'Repeaters',
|
|
946
|
+
iconType: 'Square',
|
|
947
|
+
iconColor: '#90CE9C'
|
|
948
|
+
}]
|
|
949
|
+
},
|
|
950
|
+
TotalHorizontalChartsDetails: {
|
|
951
|
+
title: 'Sales',
|
|
952
|
+
value: 56500,
|
|
953
|
+
chartsData: [{
|
|
954
|
+
color: 'rgba(31, 118, 119, 0.1)',
|
|
955
|
+
name: 'Lysoe',
|
|
956
|
+
value: 10
|
|
957
|
+
}, {
|
|
958
|
+
color: 'rgba(31, 118, 119, 0.2)',
|
|
959
|
+
name: 'Ensueno',
|
|
960
|
+
value: 11
|
|
961
|
+
}, {
|
|
962
|
+
color: 'rgba(31, 118, 119, 0.3)',
|
|
963
|
+
name: 'Starbucks Frappuccino',
|
|
964
|
+
value: 15
|
|
965
|
+
}, {
|
|
966
|
+
color: 'rgba(31, 118, 119, 0.4)',
|
|
967
|
+
name: 'Chunky Bowls',
|
|
968
|
+
value: 29
|
|
969
|
+
}, {
|
|
970
|
+
color: 'rgba(31, 118, 119, 0.5)',
|
|
971
|
+
name: 'Pringles',
|
|
972
|
+
value: 35
|
|
973
|
+
}],
|
|
974
|
+
noDataText: '',
|
|
975
|
+
currencySign: false,
|
|
976
|
+
dotCut: true
|
|
977
|
+
},
|
|
978
|
+
MarketShareDescriptionDetails: {
|
|
979
|
+
dotCut: false,
|
|
980
|
+
marketShareData: [{
|
|
981
|
+
fieldsArray: [{
|
|
982
|
+
label: 'Pre-event',
|
|
983
|
+
textAfter: '',
|
|
984
|
+
textBefore: '',
|
|
985
|
+
value: 3844
|
|
986
|
+
}, {
|
|
987
|
+
label: 'Event',
|
|
988
|
+
textAfter: '',
|
|
989
|
+
textBefore: '',
|
|
990
|
+
value: 8655
|
|
991
|
+
}, {
|
|
992
|
+
label: 'Post-event',
|
|
993
|
+
textAfter: '',
|
|
994
|
+
textBefore: '',
|
|
995
|
+
value: 389
|
|
996
|
+
}],
|
|
997
|
+
name: 'weeklyTriers',
|
|
998
|
+
rowFooter: ' \n <p1>The event drove </p1>\n <strong>320% </strong>\n <p1>new Pringles Harvest Brand Crisp triers</p1>\n ',
|
|
999
|
+
rowTitle: 'Weekly Triers',
|
|
1000
|
+
showBanner: false
|
|
1001
|
+
}, {
|
|
1002
|
+
fieldsArray: [{
|
|
1003
|
+
label: 'Pre-event',
|
|
1004
|
+
textAfter: '',
|
|
1005
|
+
textBefore: '',
|
|
1006
|
+
value: 255
|
|
1007
|
+
}, {
|
|
1008
|
+
label: 'Event',
|
|
1009
|
+
textAfter: '',
|
|
1010
|
+
textBefore: '',
|
|
1011
|
+
value: 2036
|
|
1012
|
+
}, {
|
|
1013
|
+
label: 'Post-event',
|
|
1014
|
+
textAfter: '',
|
|
1015
|
+
textBefore: '',
|
|
1016
|
+
value: 3541
|
|
1017
|
+
}],
|
|
1018
|
+
name: 'weeklyRepeaters',
|
|
1019
|
+
rowFooter: '',
|
|
1020
|
+
rowTitle: 'Weekly Repeaters',
|
|
1021
|
+
showBanner: false
|
|
1022
|
+
}],
|
|
1023
|
+
height: '630px',
|
|
1024
|
+
width: '700px'
|
|
1025
|
+
},
|
|
1026
|
+
SalesAndROIDetails: {
|
|
1027
|
+
title: '',
|
|
1028
|
+
currencySign: true,
|
|
1029
|
+
dotCut: true,
|
|
1030
|
+
noDataText: 'No data to display.',
|
|
1031
|
+
salesData: [{
|
|
1032
|
+
name: 'Total Sales',
|
|
1033
|
+
textAfter: '',
|
|
1034
|
+
textBefore: '',
|
|
1035
|
+
value: 90000
|
|
1036
|
+
}, {
|
|
1037
|
+
name: 'Incremental sales',
|
|
1038
|
+
textAfter: '(43 Units)',
|
|
1039
|
+
textBefore: '',
|
|
1040
|
+
value: 420000
|
|
1041
|
+
}, {
|
|
1042
|
+
name: 'Package Cost',
|
|
1043
|
+
textAfter: '',
|
|
1044
|
+
textBefore: '',
|
|
1045
|
+
value: 50000
|
|
1046
|
+
}, {
|
|
1047
|
+
name: 'ROI',
|
|
1048
|
+
textAfter: '',
|
|
1049
|
+
textBefore: 'x',
|
|
1050
|
+
value: 9.2
|
|
1051
|
+
}],
|
|
1052
|
+
showBanner: false,
|
|
1053
|
+
height: '300px',
|
|
1054
|
+
width: '100%'
|
|
1055
|
+
}
|
|
1056
|
+
};
|
|
1057
|
+
const popupChartsItemsData1 = [{
|
|
1058
|
+
title: 'Food Lion',
|
|
1059
|
+
rowsData: FoodLionDetails
|
|
1060
|
+
}, {
|
|
1061
|
+
title: 'Hannaford',
|
|
1062
|
+
rowsData: HannafordDetails
|
|
1063
|
+
}, {
|
|
1064
|
+
title: 'Stop&Shop',
|
|
1065
|
+
rowsData: StopAndShopDetails
|
|
1066
|
+
}, {
|
|
1067
|
+
title: 'The Giant Company',
|
|
1068
|
+
rowsData: TheGiantCompanyDetails
|
|
1069
|
+
}, {
|
|
1070
|
+
title: 'Giant Food',
|
|
1071
|
+
rowsData: GiantFoodDetails
|
|
1072
|
+
}];
|
|
1073
|
+
var _default = exports.default = {
|
|
1074
|
+
title: 'SAG BI/PopupCharts',
|
|
1075
|
+
component: _PopupCharts.default,
|
|
1076
|
+
tags: ['autodocs'],
|
|
1077
|
+
argTypes: {
|
|
1078
|
+
title: {
|
|
1079
|
+
name: 'title',
|
|
1080
|
+
control: {
|
|
1081
|
+
type: 'text'
|
|
1082
|
+
},
|
|
1083
|
+
description: 'title'
|
|
1084
|
+
},
|
|
1085
|
+
chartType: {
|
|
1086
|
+
name: 'chartType',
|
|
1087
|
+
control: {
|
|
1088
|
+
type: 'radio'
|
|
1089
|
+
},
|
|
1090
|
+
options: ['TotalDoughnutChart', 'TotalHorizontalCharts', 'BarChartsByWeeks', 'BarChartsByWeeksTwoBars', 'MarketShareDescription'],
|
|
1091
|
+
description: 'chart type, for example: TotalDoughnutChart, TotalHorizontalCharts, BarChartsByWeeks, BarChartsByWeeksTwoBars'
|
|
1092
|
+
},
|
|
1093
|
+
isPopupChartsOpen: {
|
|
1094
|
+
name: 'isPopupChartsOpen',
|
|
1095
|
+
control: {
|
|
1096
|
+
type: 'boolean'
|
|
1097
|
+
},
|
|
1098
|
+
description: 'true/false - open or close PopupCharts'
|
|
1099
|
+
},
|
|
1100
|
+
width: {
|
|
1101
|
+
name: 'width',
|
|
1102
|
+
control: {
|
|
1103
|
+
type: 'text'
|
|
1104
|
+
},
|
|
1105
|
+
description: 'width of the form'
|
|
1106
|
+
},
|
|
1107
|
+
height: {
|
|
1108
|
+
name: 'height',
|
|
1109
|
+
control: {
|
|
1110
|
+
type: 'text'
|
|
1111
|
+
},
|
|
1112
|
+
description: 'height of the form'
|
|
1113
|
+
},
|
|
1114
|
+
subtitleTextColor: {
|
|
1115
|
+
name: 'subtitleTextColor',
|
|
1116
|
+
description: 'Sets the subtitle Text Color',
|
|
1117
|
+
control: {
|
|
1118
|
+
type: 'color',
|
|
1119
|
+
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff']
|
|
1120
|
+
}
|
|
1121
|
+
},
|
|
1122
|
+
popupChartsItemsData: {
|
|
1123
|
+
description: 'array [] of objects: {title: string, content } to fill the Chart items. '
|
|
1124
|
+
},
|
|
1125
|
+
onCloseClick: {
|
|
1126
|
+
action: 'onCloseClick',
|
|
1127
|
+
description: 'returns an event onCloseClick object when user closes the popup'
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
};
|
|
1131
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_PopupCharts.default, args, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("div", null, "table1"), /*#__PURE__*/_react.default.createElement("div", null, "table2")));
|
|
1132
|
+
const TotalDoughnutChart = exports.TotalDoughnutChart = Template.bind({});
|
|
1133
|
+
TotalDoughnutChart.args = {
|
|
1134
|
+
title: 'Switching Pattern',
|
|
1135
|
+
chartType: 'TotalDoughnutChart',
|
|
1136
|
+
isPopupChartsOpen: true,
|
|
1137
|
+
popupChartsItemsData: popupChartsItemsData1,
|
|
1138
|
+
width: '1600px',
|
|
1139
|
+
height: '820px',
|
|
1140
|
+
subtitleTextColor: '#7E7E7E'
|
|
1141
|
+
};
|
|
1142
|
+
const BarChartsByWeeks = exports.BarChartsByWeeks = Template.bind({});
|
|
1143
|
+
BarChartsByWeeks.args = {
|
|
1144
|
+
title: 'Sales over time',
|
|
1145
|
+
chartType: 'BarChartsByWeeks',
|
|
1146
|
+
isPopupChartsOpen: true,
|
|
1147
|
+
popupChartsItemsData: popupChartsItemsData1,
|
|
1148
|
+
width: '1600px',
|
|
1149
|
+
height: '820px',
|
|
1150
|
+
subtitleTextColor: '#7E7E7E'
|
|
1151
|
+
};
|
|
1152
|
+
const BarChartsByWeeksTwoBars = exports.BarChartsByWeeksTwoBars = Template.bind({});
|
|
1153
|
+
BarChartsByWeeksTwoBars.args = {
|
|
1154
|
+
title: 'Sales over time',
|
|
1155
|
+
chartType: 'BarChartsByWeeksTwoBars',
|
|
1156
|
+
isPopupChartsOpen: true,
|
|
1157
|
+
popupChartsItemsData: popupChartsItemsData1,
|
|
1158
|
+
width: '1600px',
|
|
1159
|
+
height: '820px',
|
|
1160
|
+
subtitleTextColor: '#7E7E7E'
|
|
1161
|
+
};
|
|
1162
|
+
const TotalHorizontalCharts = exports.TotalHorizontalCharts = Template.bind({});
|
|
1163
|
+
TotalHorizontalCharts.args = {
|
|
1164
|
+
title: 'Sales',
|
|
1165
|
+
chartType: 'TotalHorizontalCharts',
|
|
1166
|
+
isPopupChartsOpen: true,
|
|
1167
|
+
popupChartsItemsData: popupChartsItemsData1,
|
|
1168
|
+
width: '1600px',
|
|
1169
|
+
height: '820px',
|
|
1170
|
+
subtitleTextColor: '#7E7E7E'
|
|
1171
|
+
};
|
|
1172
|
+
const MarketShareWeeklyTriers = exports.MarketShareWeeklyTriers = Template.bind({});
|
|
1173
|
+
MarketShareWeeklyTriers.args = {
|
|
1174
|
+
title: 'Weekly Triers And Repeaters',
|
|
1175
|
+
chartType: 'MarketShareDescription',
|
|
1176
|
+
isPopupChartsOpen: true,
|
|
1177
|
+
popupChartsItemsData: popupChartsItemsData1,
|
|
1178
|
+
width: '1600px',
|
|
1179
|
+
height: '820px',
|
|
1180
|
+
subtitleTextColor: '#7E7E7E'
|
|
1181
|
+
};
|
|
1182
|
+
const SalesAndROI = exports.SalesAndROI = Template.bind({});
|
|
1183
|
+
SalesAndROI.args = {
|
|
1184
|
+
title: 'Sales & ROI',
|
|
1185
|
+
chartType: 'SalesAndROI',
|
|
1186
|
+
isPopupChartsOpen: true,
|
|
1187
|
+
popupChartsItemsData: popupChartsItemsData1,
|
|
1188
|
+
width: '1600px',
|
|
1189
|
+
height: '820px',
|
|
1190
|
+
subtitleTextColor: '#7E7E7E'
|
|
1191
|
+
};
|