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,132 @@
|
|
|
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.Retailers = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _ListBox = require("./components/ListBox");
|
|
10
|
+
const viewCreativeRetailersData1 = [{
|
|
11
|
+
label: 'Food Lion',
|
|
12
|
+
checked: true,
|
|
13
|
+
disabled: false
|
|
14
|
+
}, {
|
|
15
|
+
label: 'Stop&Shop',
|
|
16
|
+
checked: true,
|
|
17
|
+
disabled: false
|
|
18
|
+
}, {
|
|
19
|
+
label: 'Giant Food',
|
|
20
|
+
checked: true,
|
|
21
|
+
disabled: false
|
|
22
|
+
}, {
|
|
23
|
+
label: 'The Giant Company',
|
|
24
|
+
checked: true,
|
|
25
|
+
disabled: false
|
|
26
|
+
}, {
|
|
27
|
+
label: 'Hannaford',
|
|
28
|
+
checked: true,
|
|
29
|
+
disabled: false
|
|
30
|
+
}];
|
|
31
|
+
var _default = exports.default = {
|
|
32
|
+
title: 'SAG/ListBox',
|
|
33
|
+
component: _ListBox.ListBox,
|
|
34
|
+
tags: ['autodocs'],
|
|
35
|
+
argTypes: {
|
|
36
|
+
data: {
|
|
37
|
+
name: 'data',
|
|
38
|
+
control: {
|
|
39
|
+
type: 'object'
|
|
40
|
+
},
|
|
41
|
+
description: ' object: to fill event Attributes buttons '
|
|
42
|
+
},
|
|
43
|
+
width: {
|
|
44
|
+
name: 'width',
|
|
45
|
+
control: {
|
|
46
|
+
type: 'text'
|
|
47
|
+
},
|
|
48
|
+
description: 'width of the control (in px / %)'
|
|
49
|
+
},
|
|
50
|
+
height: {
|
|
51
|
+
name: 'height',
|
|
52
|
+
control: {
|
|
53
|
+
type: 'text'
|
|
54
|
+
},
|
|
55
|
+
description: 'height of the control (in px / % )'
|
|
56
|
+
},
|
|
57
|
+
onClick: {
|
|
58
|
+
action: 'onClick',
|
|
59
|
+
description: 'onClick event - returns an object of check box {true/false} '
|
|
60
|
+
},
|
|
61
|
+
borderColor: {
|
|
62
|
+
name: 'borderColor',
|
|
63
|
+
control: {
|
|
64
|
+
type: 'color',
|
|
65
|
+
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
66
|
+
description: 'Sets borderColor Color '
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
buttonsIconColor: {
|
|
70
|
+
name: 'buttonsIconColor',
|
|
71
|
+
control: {
|
|
72
|
+
type: 'color',
|
|
73
|
+
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
74
|
+
description: 'Sets icons Color '
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
buttonsBorderColor: {
|
|
78
|
+
name: 'buttonsBorderColor',
|
|
79
|
+
control: {
|
|
80
|
+
type: 'color',
|
|
81
|
+
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
82
|
+
description: 'Sets buttons border Color '
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
buttonsTextColorChecked: {
|
|
86
|
+
name: 'buttonsTextColorChecked',
|
|
87
|
+
control: {
|
|
88
|
+
type: 'color',
|
|
89
|
+
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
90
|
+
description: 'Sets text Checked Color '
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
buttonsTextColorUnchecked: {
|
|
94
|
+
name: 'buttonsTextColorUnchecked',
|
|
95
|
+
control: {
|
|
96
|
+
type: 'color',
|
|
97
|
+
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
98
|
+
description: 'Sets text Unchecked Color '
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
buttonsBackgroundColorChecked: {
|
|
102
|
+
name: 'buttonsBackgroundColorChecked',
|
|
103
|
+
control: {
|
|
104
|
+
type: 'color',
|
|
105
|
+
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
106
|
+
description: 'Sets text background Checked Color '
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
buttonsBackgroundColorUnchecked: {
|
|
110
|
+
name: 'buttonsBackgroundColorUnchecked',
|
|
111
|
+
control: {
|
|
112
|
+
type: 'color',
|
|
113
|
+
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
114
|
+
description: 'Sets text background Unchecked Color '
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_ListBox.ListBox, args);
|
|
120
|
+
const Retailers = exports.Retailers = Template.bind({});
|
|
121
|
+
Retailers.args = {
|
|
122
|
+
data: viewCreativeRetailersData1,
|
|
123
|
+
width: '180px',
|
|
124
|
+
height: '100%',
|
|
125
|
+
borderColor: '#B1B1B1',
|
|
126
|
+
buttonsIconColor: "#90CE9C",
|
|
127
|
+
buttonsBorderColor: "#90CE9C",
|
|
128
|
+
buttonsTextColorChecked: "#212121",
|
|
129
|
+
buttonsTextColorUnchecked: "#212121",
|
|
130
|
+
buttonsBackgroundColorChecked: "#E9F5EB",
|
|
131
|
+
buttonsBackgroundColorUnchecked: "#F2F2F2"
|
|
132
|
+
};
|
|
@@ -0,0 +1,196 @@
|
|
|
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.WeeklyTriers = exports.PercentHeightWidth = exports.MarketShare = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _MarketShareDescription = require("./components/MarketShareDescription");
|
|
10
|
+
// --------------------------------- market share ----------------------------------------------
|
|
11
|
+
|
|
12
|
+
const marketShareInfoText1 = `
|
|
13
|
+
<strong>Pringles Harvest Blend </strong>
|
|
14
|
+
<p1>market share </p1>
|
|
15
|
+
<strong>increased by 98% </strong>
|
|
16
|
+
<p1>following the event</p1>
|
|
17
|
+
`;
|
|
18
|
+
const marketShareInfoText2 = `
|
|
19
|
+
<strong>Pringles </strong>
|
|
20
|
+
<p1>market share </p1>
|
|
21
|
+
<strong>increased by 8% </strong>
|
|
22
|
+
<p1>following the event</p1>
|
|
23
|
+
`;
|
|
24
|
+
const marketShareDataColumn1 = [{
|
|
25
|
+
label: 'Pre-event',
|
|
26
|
+
value: 1.2,
|
|
27
|
+
textBefore: '',
|
|
28
|
+
textAfter: '%'
|
|
29
|
+
}, {
|
|
30
|
+
label: 'Event',
|
|
31
|
+
value: 2,
|
|
32
|
+
textBefore: '',
|
|
33
|
+
textAfter: '%'
|
|
34
|
+
}, {
|
|
35
|
+
label: 'Post-event',
|
|
36
|
+
value: 2.3,
|
|
37
|
+
textBefore: '',
|
|
38
|
+
textAfter: '%'
|
|
39
|
+
}];
|
|
40
|
+
const marketShareDataColumn2 = [{
|
|
41
|
+
label: 'Pre-event',
|
|
42
|
+
value: 2.8,
|
|
43
|
+
textBefore: '',
|
|
44
|
+
textAfter: '%'
|
|
45
|
+
}, {
|
|
46
|
+
label: 'Event',
|
|
47
|
+
value: 3.5,
|
|
48
|
+
textBefore: '',
|
|
49
|
+
textAfter: '%'
|
|
50
|
+
}, {
|
|
51
|
+
label: 'Post-event',
|
|
52
|
+
value: 3.05,
|
|
53
|
+
textBefore: '',
|
|
54
|
+
textAfter: '%'
|
|
55
|
+
}];
|
|
56
|
+
const marketShareData1 = [{
|
|
57
|
+
name: 'pringlesHarvestBlend',
|
|
58
|
+
rowTitle: 'Pringles Harvest Blend',
|
|
59
|
+
fieldsArray: marketShareDataColumn1,
|
|
60
|
+
rowFooter: marketShareInfoText1,
|
|
61
|
+
showBanner: false
|
|
62
|
+
}, {
|
|
63
|
+
name: 'pringles',
|
|
64
|
+
rowTitle: 'Pringles',
|
|
65
|
+
fieldsArray: marketShareDataColumn2,
|
|
66
|
+
rowFooter: marketShareInfoText2,
|
|
67
|
+
showBanner: false
|
|
68
|
+
}];
|
|
69
|
+
|
|
70
|
+
// --------------------------------- weekly tiers ----------------------------------------------
|
|
71
|
+
|
|
72
|
+
// The event drove 320% new Pringles Harvest Brand Crisp triers
|
|
73
|
+
const weeklyTiersInfoText1 = `
|
|
74
|
+
<p1>The event drove </p1>
|
|
75
|
+
<strong>320% </strong>
|
|
76
|
+
<p1>new Pringles Harvest Brand Crisp triers</p1>
|
|
77
|
+
`;
|
|
78
|
+
const weeklyTiersInfoText2 = '';
|
|
79
|
+
const weeklyTiersDataColumn1 = [{
|
|
80
|
+
label: 'Pre-event',
|
|
81
|
+
value: 2040,
|
|
82
|
+
textBefore: '',
|
|
83
|
+
textAfter: ''
|
|
84
|
+
}, {
|
|
85
|
+
label: 'Event',
|
|
86
|
+
value: 8250,
|
|
87
|
+
textBefore: '',
|
|
88
|
+
textAfter: ''
|
|
89
|
+
}, {
|
|
90
|
+
label: 'Post-event',
|
|
91
|
+
value: 600,
|
|
92
|
+
textBefore: '',
|
|
93
|
+
textAfter: ''
|
|
94
|
+
}];
|
|
95
|
+
const weeklyTiersDataColumn2 = [{
|
|
96
|
+
label: 'Pre-event',
|
|
97
|
+
value: 100,
|
|
98
|
+
textBefore: '',
|
|
99
|
+
textAfter: ''
|
|
100
|
+
}, {
|
|
101
|
+
label: 'Event',
|
|
102
|
+
value: 1500,
|
|
103
|
+
textBefore: '',
|
|
104
|
+
textAfter: ''
|
|
105
|
+
}, {
|
|
106
|
+
label: 'Post-event',
|
|
107
|
+
value: 2400,
|
|
108
|
+
textBefore: '',
|
|
109
|
+
textAfter: ''
|
|
110
|
+
}];
|
|
111
|
+
const weeklyTiersData1 = [{
|
|
112
|
+
name: 'weeklyTriers',
|
|
113
|
+
rowTitle: 'Weekly Triers',
|
|
114
|
+
fieldsArray: weeklyTiersDataColumn1,
|
|
115
|
+
rowFooter: weeklyTiersInfoText1,
|
|
116
|
+
showBanner: true
|
|
117
|
+
}, {
|
|
118
|
+
name: 'weeklyRepeaters',
|
|
119
|
+
rowTitle: 'Weekly Repeaters',
|
|
120
|
+
fieldsArray: weeklyTiersDataColumn2,
|
|
121
|
+
rowFooter: weeklyTiersInfoText2,
|
|
122
|
+
showBanner: true
|
|
123
|
+
}];
|
|
124
|
+
var _default = exports.default = {
|
|
125
|
+
title: 'SAG BI/MarketShareDescription',
|
|
126
|
+
component: _MarketShareDescription.MarketShareDescription,
|
|
127
|
+
tags: ['autodocs'],
|
|
128
|
+
argTypes: {
|
|
129
|
+
marketShareData: {
|
|
130
|
+
label: 'marketShareData',
|
|
131
|
+
control: {
|
|
132
|
+
type: 'object'
|
|
133
|
+
},
|
|
134
|
+
description: ' object: to fill kpi columns and buttons '
|
|
135
|
+
},
|
|
136
|
+
width: {
|
|
137
|
+
label: 'width',
|
|
138
|
+
control: {
|
|
139
|
+
type: 'text'
|
|
140
|
+
},
|
|
141
|
+
description: 'width of the control (in px / %)'
|
|
142
|
+
},
|
|
143
|
+
height: {
|
|
144
|
+
label: 'height',
|
|
145
|
+
control: {
|
|
146
|
+
type: 'text'
|
|
147
|
+
},
|
|
148
|
+
description: 'height of the control (in px / % )'
|
|
149
|
+
},
|
|
150
|
+
iconColor: {
|
|
151
|
+
label: 'iconColor',
|
|
152
|
+
control: {
|
|
153
|
+
type: 'color',
|
|
154
|
+
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff'],
|
|
155
|
+
description: 'Sets icons Color '
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
onBannerClick: {
|
|
159
|
+
name: 'onBannerClick',
|
|
160
|
+
action: 'onClick',
|
|
161
|
+
description: 'Click onBannerClick event'
|
|
162
|
+
},
|
|
163
|
+
dotCut: {
|
|
164
|
+
name: 'dotCut',
|
|
165
|
+
control: {
|
|
166
|
+
type: 'boolean'
|
|
167
|
+
},
|
|
168
|
+
description: 'true/false - format total value with dot cut'
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_MarketShareDescription.MarketShareDescription, args);
|
|
173
|
+
const MarketShare = exports.MarketShare = Template.bind({});
|
|
174
|
+
MarketShare.args = {
|
|
175
|
+
marketShareData: marketShareData1,
|
|
176
|
+
width: '700px',
|
|
177
|
+
height: '630px',
|
|
178
|
+
iconColor: '#229E38',
|
|
179
|
+
dotCut: false
|
|
180
|
+
};
|
|
181
|
+
const WeeklyTriers = exports.WeeklyTriers = Template.bind({});
|
|
182
|
+
WeeklyTriers.args = {
|
|
183
|
+
marketShareData: weeklyTiersData1,
|
|
184
|
+
width: '700px',
|
|
185
|
+
height: '630px',
|
|
186
|
+
iconColor: '#1B30AA',
|
|
187
|
+
dotCut: true
|
|
188
|
+
};
|
|
189
|
+
const PercentHeightWidth = exports.PercentHeightWidth = Template.bind({});
|
|
190
|
+
PercentHeightWidth.args = {
|
|
191
|
+
marketShareData: marketShareData1,
|
|
192
|
+
width: '100%',
|
|
193
|
+
height: '100%',
|
|
194
|
+
iconColor: '#229E38',
|
|
195
|
+
dotCut: false
|
|
196
|
+
};
|
|
@@ -0,0 +1,142 @@
|
|
|
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.InitialValue = exports.Default = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _MonthPicker = _interopRequireDefault(require("./components/MonthPicker"));
|
|
10
|
+
/* eslint-disable import/no-extraneous-dependencies */
|
|
11
|
+
// Input.stories.js
|
|
12
|
+
// Update the path based on your actual file structure
|
|
13
|
+
var _default = exports.default = {
|
|
14
|
+
title: 'SAG/MonthPicker',
|
|
15
|
+
component: _MonthPicker.default,
|
|
16
|
+
tags: ['autodocs'],
|
|
17
|
+
argTypes: {
|
|
18
|
+
label: {
|
|
19
|
+
name: 'label',
|
|
20
|
+
type: {
|
|
21
|
+
name: 'string'
|
|
22
|
+
},
|
|
23
|
+
description: 'Label for the input',
|
|
24
|
+
defaultValue: {
|
|
25
|
+
summary: 'Input Label'
|
|
26
|
+
},
|
|
27
|
+
control: {
|
|
28
|
+
type: 'text'
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
value: {
|
|
32
|
+
name: 'value',
|
|
33
|
+
type: {
|
|
34
|
+
name: 'string'
|
|
35
|
+
},
|
|
36
|
+
description: 'Value of the input',
|
|
37
|
+
defaultValue: {
|
|
38
|
+
summary: ''
|
|
39
|
+
},
|
|
40
|
+
control: {
|
|
41
|
+
type: 'text'
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
onChange: {
|
|
45
|
+
name: 'onChange',
|
|
46
|
+
type: {
|
|
47
|
+
name: 'function'
|
|
48
|
+
},
|
|
49
|
+
description: 'Callback function for input change',
|
|
50
|
+
defaultValue: {
|
|
51
|
+
summary: '() => {}'
|
|
52
|
+
},
|
|
53
|
+
control: {
|
|
54
|
+
type: null
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
borderRadius: {
|
|
58
|
+
name: 'borderRadius',
|
|
59
|
+
type: {
|
|
60
|
+
name: 'string'
|
|
61
|
+
},
|
|
62
|
+
description: 'Border radius of the input',
|
|
63
|
+
defaultValue: {
|
|
64
|
+
summary: ''
|
|
65
|
+
},
|
|
66
|
+
control: {
|
|
67
|
+
type: 'text'
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
required: {
|
|
71
|
+
name: 'required',
|
|
72
|
+
type: {
|
|
73
|
+
name: 'boolean'
|
|
74
|
+
},
|
|
75
|
+
description: 'Indicates if the input is required',
|
|
76
|
+
defaultValue: {
|
|
77
|
+
summary: false
|
|
78
|
+
},
|
|
79
|
+
control: {
|
|
80
|
+
type: 'boolean'
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
textColor: {
|
|
84
|
+
name: 'textColor',
|
|
85
|
+
description: 'Sets the text Color ',
|
|
86
|
+
control: {
|
|
87
|
+
type: 'color',
|
|
88
|
+
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff']
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
borderColor: {
|
|
92
|
+
name: 'borderColor',
|
|
93
|
+
description: 'Sets the border Color ',
|
|
94
|
+
control: {
|
|
95
|
+
type: 'color',
|
|
96
|
+
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff']
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
borderColorFocus: {
|
|
100
|
+
name: 'borderColorFocus',
|
|
101
|
+
description: 'Sets the border Color Focus ',
|
|
102
|
+
control: {
|
|
103
|
+
type: 'color',
|
|
104
|
+
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff']
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}; // Create a group of stories for Input component
|
|
109
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_MonthPicker.default, args);
|
|
110
|
+
|
|
111
|
+
// Story for the default state
|
|
112
|
+
const Default = exports.Default = Template.bind({});
|
|
113
|
+
Default.args = {
|
|
114
|
+
availableMonths: ['Jan 2024', 'Feb 2024', 'Mar 2024'],
|
|
115
|
+
label: 'Period',
|
|
116
|
+
borderRadius: '12px',
|
|
117
|
+
required: true,
|
|
118
|
+
width: '250px',
|
|
119
|
+
height: '60px',
|
|
120
|
+
placeholder: 'Select Period',
|
|
121
|
+
disabled: false,
|
|
122
|
+
borderColor: '#E7E7E7',
|
|
123
|
+
borderColorFocus: '#066768',
|
|
124
|
+
textColor: '#212121'
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
// Story for the InitialValue state
|
|
128
|
+
const InitialValue = exports.InitialValue = Template.bind({});
|
|
129
|
+
InitialValue.args = {
|
|
130
|
+
availableMonths: ['Jan 2024', 'Feb 2024', 'Mar 2024'],
|
|
131
|
+
label: 'Period',
|
|
132
|
+
borderRadius: '12px',
|
|
133
|
+
required: true,
|
|
134
|
+
width: '250px',
|
|
135
|
+
height: '60px',
|
|
136
|
+
placeholder: 'Select Period',
|
|
137
|
+
disabled: false,
|
|
138
|
+
borderColor: '#E7E7E7',
|
|
139
|
+
borderColorFocus: '#066768',
|
|
140
|
+
textColor: '#212121',
|
|
141
|
+
selectedValue: 'February | 2024'
|
|
142
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
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.Default = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _NewInput = _interopRequireDefault(require("./components/NewInput"));
|
|
10
|
+
var _default = exports.default = {
|
|
11
|
+
title: 'SAG/NewInput',
|
|
12
|
+
component: _NewInput.default,
|
|
13
|
+
argTypes: {
|
|
14
|
+
labelText: {
|
|
15
|
+
name: 'Label Text',
|
|
16
|
+
control: {
|
|
17
|
+
type: 'text'
|
|
18
|
+
},
|
|
19
|
+
description: 'The Label text',
|
|
20
|
+
defaultValue: ''
|
|
21
|
+
},
|
|
22
|
+
inputType: {
|
|
23
|
+
name: 'inputType',
|
|
24
|
+
control: {
|
|
25
|
+
type: 'text'
|
|
26
|
+
},
|
|
27
|
+
description: 'inputType',
|
|
28
|
+
defaultValue: ''
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_NewInput.default, args);
|
|
33
|
+
const Default = exports.Default = Template.bind({});
|
|
34
|
+
Default.args = {
|
|
35
|
+
labelText: 'Enter Value',
|
|
36
|
+
inputType: 'search'
|
|
37
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
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.NoDataFound = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _NoDataFoundMessage = require("./components/NoDataFoundMessage");
|
|
10
|
+
const arrLegendData = [{
|
|
11
|
+
name: "Package Cost",
|
|
12
|
+
value: 30000,
|
|
13
|
+
color: "#85A1D2"
|
|
14
|
+
}, {
|
|
15
|
+
name: "Redemption Cost",
|
|
16
|
+
value: 6500,
|
|
17
|
+
color: "#9AE6FF"
|
|
18
|
+
}];
|
|
19
|
+
const arrLegendDat3rows = [{
|
|
20
|
+
name: "Package Cost",
|
|
21
|
+
value: 30000,
|
|
22
|
+
color: "#85A1D2"
|
|
23
|
+
}, {
|
|
24
|
+
name: "Existing Redeemers",
|
|
25
|
+
value: 6500,
|
|
26
|
+
color: "#9AE6FF"
|
|
27
|
+
}, {
|
|
28
|
+
name: "Others",
|
|
29
|
+
value: 20000,
|
|
30
|
+
color: "#FD5959"
|
|
31
|
+
}
|
|
32
|
+
// { name: "My test 2", value: 35000, color: "#79DB95"},
|
|
33
|
+
];
|
|
34
|
+
var _default = exports.default = {
|
|
35
|
+
title: "SAG BI/NoDataFoundMessage",
|
|
36
|
+
component: _NoDataFoundMessage.NoDataFoundMessage,
|
|
37
|
+
tags: ["autodocs"],
|
|
38
|
+
argTypes: {
|
|
39
|
+
width: {
|
|
40
|
+
name: "width",
|
|
41
|
+
control: {
|
|
42
|
+
type: "text"
|
|
43
|
+
},
|
|
44
|
+
description: "width of the control (in px / %)"
|
|
45
|
+
},
|
|
46
|
+
height: {
|
|
47
|
+
name: "height",
|
|
48
|
+
control: {
|
|
49
|
+
type: "text"
|
|
50
|
+
},
|
|
51
|
+
description: "height of the control (in px / %)"
|
|
52
|
+
},
|
|
53
|
+
noDataText: {
|
|
54
|
+
name: "noDataText",
|
|
55
|
+
control: {
|
|
56
|
+
type: "text"
|
|
57
|
+
},
|
|
58
|
+
description: "text to display when no data found"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_NoDataFoundMessage.NoDataFoundMessage, args);
|
|
63
|
+
const NoDataFound = exports.NoDataFound = Template.bind({});
|
|
64
|
+
NoDataFound.args = {
|
|
65
|
+
noDataText: "The selected event is a TPR or has no offer, therefore there are no redemptions or redemption units to display."
|
|
66
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = exports.WithBarComponent = exports.Skeleton = exports.ShowViewByBannerAndInfo = exports.ShowViewByBanner = exports.ShowOnlyInfo = exports.ShowColumnTitleAndInfo = exports.DisableInfo = void 0;
|
|
7
|
+
var _OneColumnContainer = require("./components/OneColumnContainer");
|
|
8
|
+
var _TotalHorizontalCharts = require("./components/TotalHorizontalCharts");
|
|
9
|
+
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
|
|
10
|
+
var _default = exports.default = {
|
|
11
|
+
title: 'Sag BI/OneColumnContainer',
|
|
12
|
+
component: _OneColumnContainer.OneColumnContainer,
|
|
13
|
+
tags: ['autodocs']
|
|
14
|
+
}; // More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
15
|
+
const Skeleton = exports.Skeleton = {
|
|
16
|
+
args: {
|
|
17
|
+
isLoading: true,
|
|
18
|
+
infoTitle: '<i>Total Cost</i>',
|
|
19
|
+
infoText: '<i><strong>Total Cost </strong><p1>is calculated by adding Redemption Cost and Package Costs/Participation Fees only.</p1> <br> <br> <strong>Please note!</strong> <p1>When selecting either “Ecomm” or “In-store” from the “Store Type” filter, the “Total Cost” will not change. The Total Cost listed and shown in the pie chart, will be for the whole event, regardless of filtering to Ecomm or In-store.</p1></i> ',
|
|
20
|
+
width: '300px',
|
|
21
|
+
height: '300px',
|
|
22
|
+
disableInfo: true,
|
|
23
|
+
showViewByBannerButton: false,
|
|
24
|
+
overflow: 'hidden'
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const DisableInfo = exports.DisableInfo = {
|
|
28
|
+
args: {
|
|
29
|
+
isLoading: false,
|
|
30
|
+
infoTitle: 'Total Cost',
|
|
31
|
+
infoText: '<i><strong>Total Cost </strong><p1>is calculated by adding Redemption Cost and Package Costs/Participation Fees only.</p1> <br> <br> <strong>Please note!</strong> <p1>When selecting either “Ecomm” or “In-store” from the “Store Type” filter, the “Total Cost” will not change. The Total Cost listed and shown in the pie chart, will be for the whole event, regardless of filtering to Ecomm or In-store.</p1></i> ',
|
|
32
|
+
width: '300px',
|
|
33
|
+
height: '300px',
|
|
34
|
+
disableInfo: true,
|
|
35
|
+
showViewByBannerButton: false,
|
|
36
|
+
overflow: 'hidden'
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const ShowViewByBanner = exports.ShowViewByBanner = {
|
|
40
|
+
args: {
|
|
41
|
+
isLoading: false,
|
|
42
|
+
infoTitle: 'Total Cost',
|
|
43
|
+
infoText: '<i><strong>Total Cost </strong><p1>is calculated by adding Redemption Cost and Package Costs/Participation Fees only.</p1> <br> <br> <strong>Please note!</strong> <p1>When selecting either “Ecomm” or “In-store” from the “Store Type” filter, the “Total Cost” will not change. The Total Cost listed and shown in the pie chart, will be for the whole event, regardless of filtering to Ecomm or In-store.</p1></i> ',
|
|
44
|
+
width: '300px',
|
|
45
|
+
height: '300px',
|
|
46
|
+
disableInfo: true,
|
|
47
|
+
showViewByBannerButton: true,
|
|
48
|
+
overflow: 'hidden'
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
const ShowViewByBannerAndInfo = exports.ShowViewByBannerAndInfo = {
|
|
52
|
+
args: {
|
|
53
|
+
isLoading: false,
|
|
54
|
+
infoTitle: 'Total Cost',
|
|
55
|
+
infoText: '<i><strong>Total Cost </strong><p1>is calculated by adding Redemption Cost and Package Costs/Participation Fees only.</p1> <br> <br> <strong>Please note!</strong> <p1>When selecting either “Ecomm” or “In-store” from the “Store Type” filter, the “Total Cost” will not change. The Total Cost listed and shown in the pie chart, will be for the whole event, regardless of filtering to Ecomm or In-store.</p1></i> ',
|
|
56
|
+
width: '300px',
|
|
57
|
+
height: '300px',
|
|
58
|
+
disableInfo: false,
|
|
59
|
+
showViewByBannerButton: true,
|
|
60
|
+
overflow: 'hidden'
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
const ShowOnlyInfo = exports.ShowOnlyInfo = {
|
|
64
|
+
args: {
|
|
65
|
+
isLoading: false,
|
|
66
|
+
infoTitle: 'Total Cost',
|
|
67
|
+
infoText: '<i><strong>Total Cost </strong><p1>is calculated by adding Redemption Cost and Package Costs/Participation Fees only.</p1> <br> <br> <strong>Please note!</strong> <p1>When selecting either “Ecomm” or “In-store” from the “Store Type” filter, the “Total Cost” will not change. The Total Cost listed and shown in the pie chart, will be for the whole event, regardless of filtering to Ecomm or In-store.</p1></i> ',
|
|
68
|
+
width: '300px',
|
|
69
|
+
height: '300px',
|
|
70
|
+
disableInfo: false,
|
|
71
|
+
showViewByBannerButton: false,
|
|
72
|
+
overflow: 'hidden'
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
const ShowColumnTitleAndInfo = exports.ShowColumnTitleAndInfo = {
|
|
76
|
+
args: {
|
|
77
|
+
isLoading: false,
|
|
78
|
+
infoTitle: 'Total Cost',
|
|
79
|
+
infoText: '<i><strong>Total Cost </strong><p1>is calculated by adding Redemption Cost and Package Costs/Participation Fees only.</p1> <br> <br> <strong>Please note!</strong> <p1>When selecting either “Ecomm” or “In-store” from the “Store Type” filter, the “Total Cost” will not change. The Total Cost listed and shown in the pie chart, will be for the whole event, regardless of filtering to Ecomm or In-store.The Total Cost listed and shown in the pie chart, will be for the whole event, regardless of filtering to Ecomm or In-store. </p1></i> ',
|
|
80
|
+
width: '500px',
|
|
81
|
+
height: '300px',
|
|
82
|
+
disableInfo: false,
|
|
83
|
+
showViewByBannerButton: false,
|
|
84
|
+
overflow: 'hidden',
|
|
85
|
+
columnTitle: 'Avg. Products Category Penetration'
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
const WithBarComponent = exports.WithBarComponent = {
|
|
89
|
+
args: {
|
|
90
|
+
isLoading: false,
|
|
91
|
+
infoTitle: 'Total Cost',
|
|
92
|
+
infoText: '<i><strong>Total Cost </strong><p1>is calculated by adding Redemption Cost and Package Costs/Participation Fees only.</p1> <br> <br> <strong>Please note!</strong> <p1>When selecting either “Ecomm” or “In-store” from the “Store Type” filter, the “Total Cost” will not change. The Total Cost listed and shown in the pie chart, will be for the whole event, regardless of filtering to Ecomm or In-store.The Total Cost listed and shown in the pie chart, will be for the whole event, regardless of filtering to Ecomm or In-store. </p1></i> ',
|
|
93
|
+
width: '500px',
|
|
94
|
+
height: '300px',
|
|
95
|
+
disableInfo: false,
|
|
96
|
+
showViewByBannerButton: false,
|
|
97
|
+
overflow: 'hidden',
|
|
98
|
+
children: /*#__PURE__*/React.createElement(_TotalHorizontalCharts.TotalHorizontalCharts, {
|
|
99
|
+
chartsData: [{
|
|
100
|
+
name: 'MTN DEW GE-SODA',
|
|
101
|
+
value: 166898.22,
|
|
102
|
+
color: 'rgba(31, 118, 119, 0.6)'
|
|
103
|
+
}, {
|
|
104
|
+
name: 'CHEETOS GE-CHIPS, SNACKS',
|
|
105
|
+
value: 33380.98,
|
|
106
|
+
color: 'rgba(31, 118, 119, 0.9)'
|
|
107
|
+
}, {
|
|
108
|
+
name: 'CHEETOS SNACKING',
|
|
109
|
+
value: 12940.18,
|
|
110
|
+
color: 'rgba(31, 118, 119, 0.8)'
|
|
111
|
+
}, {
|
|
112
|
+
name: 'LAMB WESTON FF-POTATOES ONIONS',
|
|
113
|
+
value: -666828.24,
|
|
114
|
+
color: 'rgba(31, 118, 119, 0.7)'
|
|
115
|
+
}]
|
|
116
|
+
}),
|
|
117
|
+
columnTitle: 'Avg. Products Category Penetration'
|
|
118
|
+
}
|
|
119
|
+
};
|