sag_components 2.0.0-beta27 → 2.0.0-beta28
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 +6300 -4636
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2365 -702
- 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,263 @@
|
|
|
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("./components/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 Template = args => /*#__PURE__*/_react.default.createElement(_PerformanceAnalytics.PerformanceAnalytics, args);
|
|
237
|
+
const IndividualPerformance = exports.IndividualPerformance = Template.bind({});
|
|
238
|
+
IndividualPerformance.args = {
|
|
239
|
+
totalsData: totalsData1,
|
|
240
|
+
data: data1,
|
|
241
|
+
legendData: legendData1,
|
|
242
|
+
colorBarchart1: "#1F7677",
|
|
243
|
+
colorBarchart2: "#90CE9C",
|
|
244
|
+
colorGraphROI: "#FF7144",
|
|
245
|
+
currencyType: "USD",
|
|
246
|
+
dotCut: true,
|
|
247
|
+
width: "100%",
|
|
248
|
+
height: "100%",
|
|
249
|
+
barChartHeight: 250,
|
|
250
|
+
lineChartHeight: 100,
|
|
251
|
+
noDataText: "The selected event is a TPR or has no offer, therefore there are no redemptions or redemption units to display.",
|
|
252
|
+
tooltipBarchartLabel_ROI: "Incremental Sales ROI:",
|
|
253
|
+
tooltipBarchartLabel_IndividualPerformance1: "Package Cost:",
|
|
254
|
+
tooltipBarchartLabel_IndividualPerformance2: "Redemption Cost:",
|
|
255
|
+
tooltipBarchartLabel_IndividualPerformance3: "Incremental Sales:",
|
|
256
|
+
tooltipBarchartLabel_ContributionOfTotal1: "% Contribution to the Total Cost:",
|
|
257
|
+
tooltipBarchartLabel_ContributionOfTotal2: "% Contribution to the Inc. Sales:"
|
|
258
|
+
};
|
|
259
|
+
IndividualPerformance.parameters = {
|
|
260
|
+
design: {
|
|
261
|
+
url: "https://www.figma.com/file/kZyP3iKy3nO6sz1Ji7Axul/Sagarmatha---Dashboard?type=design&node-id=5740-22290&mode=dev"
|
|
262
|
+
}
|
|
263
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
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.PercentIncrementalGrowth = exports.PercentContributionOfTotal = exports.IndividualPerformance = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _PerformanceAnalyticsLegend = require("./components/PerformanceAnalyticsLegend");
|
|
10
|
+
const legendDataIndividualPerformance = [{
|
|
11
|
+
title: 'Total Cost',
|
|
12
|
+
iconType: 'Square',
|
|
13
|
+
iconColor: '#1F7677'
|
|
14
|
+
}, {
|
|
15
|
+
title: 'Incremental Sales',
|
|
16
|
+
iconType: 'Square',
|
|
17
|
+
iconColor: '#90CE9C'
|
|
18
|
+
}, {
|
|
19
|
+
title: 'Incremental Sales ROI',
|
|
20
|
+
iconType: 'LegendUnionIcon',
|
|
21
|
+
iconColor: '#9CCB3B'
|
|
22
|
+
}];
|
|
23
|
+
const legendDataPercentIncrementalGrowth = [{
|
|
24
|
+
title: '% Incremental Growth',
|
|
25
|
+
iconType: 'Square',
|
|
26
|
+
iconColor: '#90CE9C'
|
|
27
|
+
}, {
|
|
28
|
+
title: 'Incremental Sales ROI',
|
|
29
|
+
iconType: 'LegendUnionIcon',
|
|
30
|
+
iconColor: '#9CCB3B'
|
|
31
|
+
}];
|
|
32
|
+
const legendDataPercentContributionOfTotal = [{
|
|
33
|
+
title: '% Contribution to the Total Cost',
|
|
34
|
+
iconType: 'Square',
|
|
35
|
+
iconColor: '#1F7677'
|
|
36
|
+
}, {
|
|
37
|
+
title: '% Contribution to the Inc. Sales',
|
|
38
|
+
iconType: 'Square',
|
|
39
|
+
iconColor: '#90CE9C'
|
|
40
|
+
}];
|
|
41
|
+
var _default = exports.default = {
|
|
42
|
+
title: 'SAG BI/PerformanceAnalyticsLegend',
|
|
43
|
+
component: _PerformanceAnalyticsLegend.PerformanceAnalyticsLegend,
|
|
44
|
+
tags: ['autodocs'],
|
|
45
|
+
parameters: {
|
|
46
|
+
design: {
|
|
47
|
+
type: 'figspec',
|
|
48
|
+
accessToken: 'figd_vSza21Sk6g-JWb5K_GAQhRJhmuRhS6k1Ju1KNGpC'
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
argTypes: {
|
|
52
|
+
legendData: {
|
|
53
|
+
name: 'legendData',
|
|
54
|
+
description: 'array [] of objects representing data to display in component '
|
|
55
|
+
},
|
|
56
|
+
width: {
|
|
57
|
+
name: 'Width',
|
|
58
|
+
control: {
|
|
59
|
+
type: 'text'
|
|
60
|
+
},
|
|
61
|
+
description: 'width of the control (in px / %)'
|
|
62
|
+
},
|
|
63
|
+
height: {
|
|
64
|
+
name: 'Height',
|
|
65
|
+
control: {
|
|
66
|
+
type: 'text'
|
|
67
|
+
},
|
|
68
|
+
description: 'height of the control (in px / %)'
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsLegend.PerformanceAnalyticsLegend, args);
|
|
73
|
+
const IndividualPerformance = exports.IndividualPerformance = Template.bind({});
|
|
74
|
+
IndividualPerformance.args = {
|
|
75
|
+
legendData: legendDataIndividualPerformance
|
|
76
|
+
};
|
|
77
|
+
IndividualPerformance.parameters = {
|
|
78
|
+
design: {
|
|
79
|
+
url: 'https://www.figma.com/file/kZyP3iKy3nO6sz1Ji7Axul/Sagarmatha---Dashboard?type=design&node-id=5740-22290&mode=dev'
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
const PercentIncrementalGrowth = exports.PercentIncrementalGrowth = Template.bind({});
|
|
83
|
+
PercentIncrementalGrowth.args = {
|
|
84
|
+
legendData: legendDataPercentIncrementalGrowth
|
|
85
|
+
};
|
|
86
|
+
PercentIncrementalGrowth.parameters = {
|
|
87
|
+
design: {
|
|
88
|
+
url: 'https://www.figma.com/file/kZyP3iKy3nO6sz1Ji7Axul/Sagarmatha---Dashboard?type=design&node-id=6337-31986&mode=dev'
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
const PercentContributionOfTotal = exports.PercentContributionOfTotal = Template.bind({});
|
|
92
|
+
PercentContributionOfTotal.args = {
|
|
93
|
+
legendData: legendDataPercentContributionOfTotal
|
|
94
|
+
};
|
|
95
|
+
PercentContributionOfTotal.parameters = {
|
|
96
|
+
design: {
|
|
97
|
+
url: 'https://www.figma.com/file/kZyP3iKy3nO6sz1Ji7Axul/Sagarmatha---Dashboard?type=design&node-id=6337-33467&mode=dev'
|
|
98
|
+
}
|
|
99
|
+
};
|
|
@@ -0,0 +1,236 @@
|
|
|
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.TotalCostSales = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _PerformanceAnalyticsOneColumn = require("./components/PerformanceAnalyticsOneColumn");
|
|
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
|
+
// New / existing Shoppers
|
|
41
|
+
newShoppersValue: 16,
|
|
42
|
+
newShoppersPercentValue: 15.6,
|
|
43
|
+
existingShoppersValue: 66,
|
|
44
|
+
existingShoppersPercentValue: 84.4,
|
|
45
|
+
totalShoppers: 82
|
|
46
|
+
}, {
|
|
47
|
+
retailer: 'Hannaford',
|
|
48
|
+
offerType: 'B2G3',
|
|
49
|
+
period: '02.01.24-15.01.24',
|
|
50
|
+
roiValue: 3.6,
|
|
51
|
+
// New / existing Shoppers
|
|
52
|
+
newShoppersValue: 14,
|
|
53
|
+
newShoppersPercentValue: 25.5,
|
|
54
|
+
existingShoppersValue: 35,
|
|
55
|
+
existingShoppersPercentValue: 75.5,
|
|
56
|
+
totalShoppers: 49
|
|
57
|
+
}, {
|
|
58
|
+
retailer: 'The Giant Company',
|
|
59
|
+
offerType: '20% Off',
|
|
60
|
+
period: '15.01.24-31.01.24',
|
|
61
|
+
roiValue: 2.0,
|
|
62
|
+
// New / existing Shoppers
|
|
63
|
+
newShoppersValue: 44,
|
|
64
|
+
newShoppersPercentValue: 10.5,
|
|
65
|
+
existingShoppersValue: 33,
|
|
66
|
+
existingShoppersPercentValue: 88,
|
|
67
|
+
contributionIncrementalSalesValue: 89.5,
|
|
68
|
+
totalShoppers: 77
|
|
69
|
+
}, {
|
|
70
|
+
retailer: 'Giant Food',
|
|
71
|
+
offerType: '20% Off',
|
|
72
|
+
period: '02.01.24-15.01.24',
|
|
73
|
+
roiValue: 2.5,
|
|
74
|
+
// New / existing Shoppers
|
|
75
|
+
newShoppersValue: 77,
|
|
76
|
+
newShoppersPercentValue: 8.6,
|
|
77
|
+
existingShoppersValue: 55,
|
|
78
|
+
existingShoppersPercentValue: 91.4,
|
|
79
|
+
totalShoppers: 122
|
|
80
|
+
}, {
|
|
81
|
+
retailer: 'Stop&Shop',
|
|
82
|
+
offerType: '20% Off',
|
|
83
|
+
period: '02.01.24-15.01.24',
|
|
84
|
+
roiValue: 3.3,
|
|
85
|
+
// New / existing Shoppers
|
|
86
|
+
newShoppersValue: 11,
|
|
87
|
+
newShoppersPercentValue: 25.4,
|
|
88
|
+
existingShoppersValue: 33,
|
|
89
|
+
existingShoppersPercentValue: 74.6,
|
|
90
|
+
totalShoppers: 44
|
|
91
|
+
}];
|
|
92
|
+
const legendData1 = [{
|
|
93
|
+
iconColor: '#1F7677',
|
|
94
|
+
iconType: 'Square',
|
|
95
|
+
title: '% New Shoppers'
|
|
96
|
+
}, {
|
|
97
|
+
iconColor: '#1F7677',
|
|
98
|
+
iconType: 'LegendUnionIcon',
|
|
99
|
+
title: '% New Shoppers'
|
|
100
|
+
}, {
|
|
101
|
+
iconColor: '#90CE9C',
|
|
102
|
+
iconType: 'Square',
|
|
103
|
+
title: '# Existing Shoppers'
|
|
104
|
+
}, {
|
|
105
|
+
iconColor: '#9CCB3B',
|
|
106
|
+
iconType: 'LegendUnionIcon',
|
|
107
|
+
title: '# Existing Shoppers'
|
|
108
|
+
}];
|
|
109
|
+
var _default = exports.default = {
|
|
110
|
+
title: 'SAG BI/PerformanceAnalyticsOneColumn',
|
|
111
|
+
component: _PerformanceAnalyticsOneColumn.PerformanceAnalyticsOneColumn,
|
|
112
|
+
tags: ['autodocs'],
|
|
113
|
+
parameters: {
|
|
114
|
+
design: {
|
|
115
|
+
type: 'figspec',
|
|
116
|
+
accessToken: 'figd_vSza21Sk6g-JWb5K_GAQhRJhmuRhS6k1Ju1KNGpC'
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
argTypes: {
|
|
120
|
+
totalsData: {
|
|
121
|
+
name: 'totalsData',
|
|
122
|
+
description: 'array [] of objects: to fill the totals on top of the component '
|
|
123
|
+
},
|
|
124
|
+
data: {
|
|
125
|
+
name: 'data',
|
|
126
|
+
description: 'array [] of objects: to fill the barcharts '
|
|
127
|
+
},
|
|
128
|
+
legendData: {
|
|
129
|
+
name: 'legendData',
|
|
130
|
+
description: 'array [] of objects: to fill the legend on bottom of the component '
|
|
131
|
+
},
|
|
132
|
+
currencyType: {
|
|
133
|
+
name: 'currencyType',
|
|
134
|
+
options: ['USD', 'EUR', 'ILS', 'GBP', 'JPY', ''],
|
|
135
|
+
control: {
|
|
136
|
+
type: 'select'
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
width: {
|
|
140
|
+
name: 'Width',
|
|
141
|
+
control: {
|
|
142
|
+
type: 'text'
|
|
143
|
+
},
|
|
144
|
+
description: 'width of the control (in px / %)'
|
|
145
|
+
},
|
|
146
|
+
height: {
|
|
147
|
+
name: 'Height',
|
|
148
|
+
control: {
|
|
149
|
+
type: 'text'
|
|
150
|
+
},
|
|
151
|
+
description: 'height of the control (in px / %)'
|
|
152
|
+
},
|
|
153
|
+
lineChartHeight: {
|
|
154
|
+
name: 'lineChartHeight',
|
|
155
|
+
control: {
|
|
156
|
+
type: 'number'
|
|
157
|
+
},
|
|
158
|
+
description: 'height of the control (in px)'
|
|
159
|
+
},
|
|
160
|
+
lineChartValueType: {
|
|
161
|
+
name: 'lineChartValueType',
|
|
162
|
+
control: {
|
|
163
|
+
type: 'boolean'
|
|
164
|
+
},
|
|
165
|
+
description: 'true/false - show/hide percent sign before value'
|
|
166
|
+
},
|
|
167
|
+
lineChartValueBold: {
|
|
168
|
+
name: 'lineChartValueBold',
|
|
169
|
+
control: {
|
|
170
|
+
type: 'boolean'
|
|
171
|
+
},
|
|
172
|
+
description: 'true/false - value bolded'
|
|
173
|
+
},
|
|
174
|
+
topBarSigning: {
|
|
175
|
+
name: 'topBarSigning',
|
|
176
|
+
control: {
|
|
177
|
+
type: 'inline-radio'
|
|
178
|
+
},
|
|
179
|
+
options: ['None', 'Dollar sign ($)', 'Euro sign (€)'],
|
|
180
|
+
description: 'What a value sign to add to the top bar value string'
|
|
181
|
+
},
|
|
182
|
+
topBarPercentSigning: {
|
|
183
|
+
name: 'topBarPercentSigning',
|
|
184
|
+
control: {
|
|
185
|
+
type: 'boolean'
|
|
186
|
+
},
|
|
187
|
+
description: 'Add Percent sign aside top bars value'
|
|
188
|
+
},
|
|
189
|
+
noDataText: {
|
|
190
|
+
name: 'No Data text',
|
|
191
|
+
control: {
|
|
192
|
+
type: 'text'
|
|
193
|
+
},
|
|
194
|
+
description: 'text to display when no data found'
|
|
195
|
+
},
|
|
196
|
+
tooltipBarchartLabel1: {
|
|
197
|
+
name: 'tooltipBarchartLabel1',
|
|
198
|
+
control: {
|
|
199
|
+
type: 'text'
|
|
200
|
+
},
|
|
201
|
+
description: 'text in barchart tooltip - top'
|
|
202
|
+
},
|
|
203
|
+
tooltipBarchartLabel2: {
|
|
204
|
+
name: 'tooltipBarchartLabel2',
|
|
205
|
+
control: {
|
|
206
|
+
type: 'text'
|
|
207
|
+
},
|
|
208
|
+
description: 'text in barchart tooltip - bottom'
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsOneColumn.PerformanceAnalyticsOneColumn, args);
|
|
213
|
+
const TotalCostSales = exports.TotalCostSales = Template.bind({});
|
|
214
|
+
TotalCostSales.args = {
|
|
215
|
+
totalsData: totalsData1,
|
|
216
|
+
data: data1,
|
|
217
|
+
legendData: legendData1,
|
|
218
|
+
width: '100%',
|
|
219
|
+
height: '100%',
|
|
220
|
+
lineChartHeight: 50,
|
|
221
|
+
lineChartValueType: true,
|
|
222
|
+
lineChartValueBold: true,
|
|
223
|
+
colorBarchart1: '#90CE9C',
|
|
224
|
+
colorBarchart2: '#1F7677',
|
|
225
|
+
topBarPercentSigning: false,
|
|
226
|
+
topBarSigning: 'None',
|
|
227
|
+
currencyType: 'USD',
|
|
228
|
+
noDataText: 'The selected event is a TPR or has no offer, therefore there are no redemptions or redemption units to display.',
|
|
229
|
+
tooltipBarchartLabel1: 'New Shoppers',
|
|
230
|
+
tooltipBarchartLabel2: 'Existing Shoppers'
|
|
231
|
+
};
|
|
232
|
+
TotalCostSales.parameters = {
|
|
233
|
+
design: {
|
|
234
|
+
url: 'https://www.figma.com/file/kZyP3iKy3nO6sz1Ji7Axul/Sagarmatha---Dashboard?type=design&node-id=5740-24156&mode=dev'
|
|
235
|
+
}
|
|
236
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
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.TotalCostSales = exports.NewExistingShoppers = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _PerformanceAnalyticsTotals = require("./components/PerformanceAnalyticsTotals");
|
|
10
|
+
const totalsDataCostSales = [{
|
|
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 totalsDataShoppers = [{
|
|
36
|
+
title: 'Total Shoppers',
|
|
37
|
+
value: 3500000,
|
|
38
|
+
dotCut: true,
|
|
39
|
+
currency: false,
|
|
40
|
+
currencyType: null,
|
|
41
|
+
growthPercent: null,
|
|
42
|
+
showGrowthPercentSign: false
|
|
43
|
+
}, {
|
|
44
|
+
title: 'New Shoppers',
|
|
45
|
+
value: 500500,
|
|
46
|
+
dotCut: true,
|
|
47
|
+
currency: false,
|
|
48
|
+
currencyType: null,
|
|
49
|
+
growthPercent: 14.3,
|
|
50
|
+
showGrowthPercentSign: false
|
|
51
|
+
}, {
|
|
52
|
+
title: 'Existing Shoppers',
|
|
53
|
+
value: 2900000,
|
|
54
|
+
dotCut: true,
|
|
55
|
+
currency: false,
|
|
56
|
+
currencyType: null,
|
|
57
|
+
growthPercent: 85.7,
|
|
58
|
+
showGrowthPercentSign: false
|
|
59
|
+
}];
|
|
60
|
+
var _default = exports.default = {
|
|
61
|
+
title: 'SAG BI/PerformanceAnalyticsTotals',
|
|
62
|
+
component: _PerformanceAnalyticsTotals.PerformanceAnalyticsTotals,
|
|
63
|
+
tags: ['autodocs'],
|
|
64
|
+
parameters: {
|
|
65
|
+
design: {
|
|
66
|
+
type: 'figspec',
|
|
67
|
+
accessToken: 'figd_vSza21Sk6g-JWb5K_GAQhRJhmuRhS6k1Ju1KNGpC'
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
argTypes: {
|
|
71
|
+
totalsData: {
|
|
72
|
+
name: 'totalsData',
|
|
73
|
+
description: 'array [] of objects representing totals data to display in component '
|
|
74
|
+
},
|
|
75
|
+
width: {
|
|
76
|
+
name: 'Width',
|
|
77
|
+
control: {
|
|
78
|
+
type: 'text'
|
|
79
|
+
},
|
|
80
|
+
description: 'width of the control (in px / %)'
|
|
81
|
+
},
|
|
82
|
+
height: {
|
|
83
|
+
name: 'Height',
|
|
84
|
+
control: {
|
|
85
|
+
type: 'text'
|
|
86
|
+
},
|
|
87
|
+
description: 'height of the control (in px / %)'
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_PerformanceAnalyticsTotals.PerformanceAnalyticsTotals, args);
|
|
92
|
+
const TotalCostSales = exports.TotalCostSales = Template.bind({});
|
|
93
|
+
TotalCostSales.args = {
|
|
94
|
+
totalsData: totalsDataCostSales
|
|
95
|
+
};
|
|
96
|
+
TotalCostSales.parameters = {
|
|
97
|
+
design: {
|
|
98
|
+
url: 'https://www.figma.com/file/kZyP3iKy3nO6sz1Ji7Axul/Sagarmatha---Dashboard?type=design&node-id=5740-22290&mode=dev'
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
const NewExistingShoppers = exports.NewExistingShoppers = Template.bind({});
|
|
102
|
+
NewExistingShoppers.args = {
|
|
103
|
+
totalsData: totalsDataShoppers
|
|
104
|
+
};
|
|
105
|
+
NewExistingShoppers.parameters = {
|
|
106
|
+
design: {
|
|
107
|
+
url: 'https://www.figma.com/file/kZyP3iKy3nO6sz1Ji7Axul/Sagarmatha---Dashboard?type=design&node-id=5740-24156&mode=dev'
|
|
108
|
+
}
|
|
109
|
+
};
|