sag_components 2.0.0-beta26 → 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 +4257 -4248
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +323 -314
- 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 +3 -3
|
@@ -0,0 +1,170 @@
|
|
|
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.LessAvarage = exports.GreaterAvarage = exports.DataWithNulls = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _TotalBenchmarkArrows = require("./components/TotalBenchmarkArrows");
|
|
10
|
+
const arrDetailsData = [{
|
|
11
|
+
title: 'Basket Change',
|
|
12
|
+
value: 16
|
|
13
|
+
}, {
|
|
14
|
+
title: 'Visits Change',
|
|
15
|
+
value: -5
|
|
16
|
+
}];
|
|
17
|
+
const arrDetailsDataUp = [{
|
|
18
|
+
title: 'Basket Change',
|
|
19
|
+
value: 50
|
|
20
|
+
}, {
|
|
21
|
+
title: 'Visits Change',
|
|
22
|
+
value: 30
|
|
23
|
+
}];
|
|
24
|
+
const arrDetailsDataWithNulls = [{
|
|
25
|
+
title: 'Basket (Units) Change',
|
|
26
|
+
value: null
|
|
27
|
+
}, {
|
|
28
|
+
title: 'Basket ($) Change',
|
|
29
|
+
value: 30
|
|
30
|
+
}, {
|
|
31
|
+
title: 'Visits Change',
|
|
32
|
+
value: 30
|
|
33
|
+
}];
|
|
34
|
+
var _default = exports.default = {
|
|
35
|
+
title: 'SAG BI/TotalBenchmarkArrows',
|
|
36
|
+
component: _TotalBenchmarkArrows.TotalBenchmarkArrows,
|
|
37
|
+
tags: ['autodocs'],
|
|
38
|
+
argTypes: {
|
|
39
|
+
dotCut: {
|
|
40
|
+
name: 'dotCut',
|
|
41
|
+
control: {
|
|
42
|
+
type: 'boolean'
|
|
43
|
+
},
|
|
44
|
+
description: 'true/false - format total value with dot cut'
|
|
45
|
+
},
|
|
46
|
+
title: {
|
|
47
|
+
name: 'title',
|
|
48
|
+
control: {
|
|
49
|
+
type: 'text'
|
|
50
|
+
},
|
|
51
|
+
description: 'title on top of the component'
|
|
52
|
+
},
|
|
53
|
+
value: {
|
|
54
|
+
name: 'value',
|
|
55
|
+
control: {
|
|
56
|
+
type: 'number',
|
|
57
|
+
min: 0,
|
|
58
|
+
max: 100000000000000
|
|
59
|
+
},
|
|
60
|
+
description: 'value (title) '
|
|
61
|
+
},
|
|
62
|
+
addingBenchmark: {
|
|
63
|
+
name: 'Add Benchmark',
|
|
64
|
+
control: {
|
|
65
|
+
type: 'boolean'
|
|
66
|
+
},
|
|
67
|
+
description: 'true/false - Adding Benchmark'
|
|
68
|
+
},
|
|
69
|
+
benchmarkTotalValue: {
|
|
70
|
+
name: 'benchmarkTotalValue',
|
|
71
|
+
control: {
|
|
72
|
+
type: 'number',
|
|
73
|
+
min: 0,
|
|
74
|
+
max: 100000000000000
|
|
75
|
+
},
|
|
76
|
+
description: 'benchmarkTotalValue - set total value of the benchmark'
|
|
77
|
+
},
|
|
78
|
+
benchmarkValue: {
|
|
79
|
+
name: 'benchmarkValue',
|
|
80
|
+
control: {
|
|
81
|
+
type: 'number',
|
|
82
|
+
min: 0,
|
|
83
|
+
max: 100000000000000
|
|
84
|
+
},
|
|
85
|
+
description: 'benchmarkValue - set total value of the benchmark delimeter line'
|
|
86
|
+
},
|
|
87
|
+
detailsTitle: {
|
|
88
|
+
name: 'detailsTitle',
|
|
89
|
+
control: {
|
|
90
|
+
type: 'text'
|
|
91
|
+
},
|
|
92
|
+
description: 'title on top of the details'
|
|
93
|
+
},
|
|
94
|
+
width: {
|
|
95
|
+
name: 'width',
|
|
96
|
+
control: {
|
|
97
|
+
type: 'text'
|
|
98
|
+
},
|
|
99
|
+
description: 'width of the control (in px)'
|
|
100
|
+
},
|
|
101
|
+
height: {
|
|
102
|
+
name: 'height',
|
|
103
|
+
control: {
|
|
104
|
+
type: 'text'
|
|
105
|
+
},
|
|
106
|
+
description: 'height of the control (in px)'
|
|
107
|
+
},
|
|
108
|
+
textcolor: {
|
|
109
|
+
name: 'textcolor',
|
|
110
|
+
description: 'Sets the text color',
|
|
111
|
+
control: {
|
|
112
|
+
type: 'color',
|
|
113
|
+
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff']
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
detailsData: {
|
|
117
|
+
description: 'array [] of objects: {title: string, value:number } to fill the details data. value can be negative '
|
|
118
|
+
},
|
|
119
|
+
noDataText: {
|
|
120
|
+
name: 'noDataText',
|
|
121
|
+
control: {
|
|
122
|
+
type: 'text'
|
|
123
|
+
},
|
|
124
|
+
description: 'text to display when no data found'
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_TotalBenchmarkArrows.TotalBenchmarkArrows, args);
|
|
129
|
+
const LessAvarage = exports.LessAvarage = Template.bind({});
|
|
130
|
+
LessAvarage.args = {
|
|
131
|
+
title: 'New Repeaters',
|
|
132
|
+
value: 21500,
|
|
133
|
+
benchmarkTotalValue: 60000,
|
|
134
|
+
benchmarkValue: 30000,
|
|
135
|
+
detailsTitle: 'Existing Repeaters',
|
|
136
|
+
detailsData: arrDetailsData,
|
|
137
|
+
dotCut: true,
|
|
138
|
+
width: '310px',
|
|
139
|
+
height: '280px',
|
|
140
|
+
textcolor: '#212121',
|
|
141
|
+
noDataText: 'The selected event is a TPR or has no offer, therefore there are no redemptions or redemption units to display.'
|
|
142
|
+
};
|
|
143
|
+
const GreaterAvarage = exports.GreaterAvarage = Template.bind({});
|
|
144
|
+
GreaterAvarage.args = {
|
|
145
|
+
title: 'New Repeaters',
|
|
146
|
+
value: 50500,
|
|
147
|
+
benchmarkTotalValue: 60000,
|
|
148
|
+
benchmarkValue: 30000,
|
|
149
|
+
detailsTitle: 'Existing Repeaters',
|
|
150
|
+
detailsData: arrDetailsDataUp,
|
|
151
|
+
dotCut: true,
|
|
152
|
+
width: '310px',
|
|
153
|
+
height: '280px',
|
|
154
|
+
textcolor: '#212121',
|
|
155
|
+
noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.'
|
|
156
|
+
};
|
|
157
|
+
const DataWithNulls = exports.DataWithNulls = Template.bind({});
|
|
158
|
+
DataWithNulls.args = {
|
|
159
|
+
title: 'New Repeaters',
|
|
160
|
+
value: 50500,
|
|
161
|
+
benchmarkTotalValue: 60000,
|
|
162
|
+
benchmarkValue: 30000,
|
|
163
|
+
detailsTitle: 'Existing Repeaters',
|
|
164
|
+
detailsData: arrDetailsDataWithNulls,
|
|
165
|
+
dotCut: true,
|
|
166
|
+
width: '310px',
|
|
167
|
+
height: '280px',
|
|
168
|
+
textcolor: '#212121',
|
|
169
|
+
noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.'
|
|
170
|
+
};
|
|
@@ -0,0 +1,183 @@
|
|
|
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.Redeemers = exports.IncrementalSales = exports.DataWithNulls = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _TotalBenchmarkBarchart = require("./components/TotalBenchmarkBarchart");
|
|
10
|
+
const arrData = [{
|
|
11
|
+
title: 'Actual',
|
|
12
|
+
value: 175100,
|
|
13
|
+
color: '#066768'
|
|
14
|
+
}, {
|
|
15
|
+
title: 'Base Line',
|
|
16
|
+
value: 100000,
|
|
17
|
+
color: '#90CE9C'
|
|
18
|
+
}];
|
|
19
|
+
const arrDataRedeemers = [{
|
|
20
|
+
title: 'New Redeemers',
|
|
21
|
+
value: 256200,
|
|
22
|
+
color: '#85A1D2'
|
|
23
|
+
}, {
|
|
24
|
+
title: 'Existing Redeemers',
|
|
25
|
+
value: 700000,
|
|
26
|
+
color: '#9AE6FF'
|
|
27
|
+
}];
|
|
28
|
+
const arrDataWithnulls = [{
|
|
29
|
+
title: 'New Redeemers',
|
|
30
|
+
value: null,
|
|
31
|
+
color: '#85A1D2'
|
|
32
|
+
}, {
|
|
33
|
+
title: 'Existing Redeemers',
|
|
34
|
+
value: 700000,
|
|
35
|
+
color: '#9AE6FF'
|
|
36
|
+
}];
|
|
37
|
+
var _default = exports.default = {
|
|
38
|
+
title: 'SAG BI/TotalBenchmarkBarchart',
|
|
39
|
+
component: _TotalBenchmarkBarchart.TotalBenchmarkBarchart,
|
|
40
|
+
tags: ['autodocs'],
|
|
41
|
+
argTypes: {
|
|
42
|
+
dotCut: {
|
|
43
|
+
name: 'dotCut',
|
|
44
|
+
control: {
|
|
45
|
+
type: 'boolean'
|
|
46
|
+
},
|
|
47
|
+
description: 'true/false - format total value with dot cut'
|
|
48
|
+
},
|
|
49
|
+
title: {
|
|
50
|
+
name: 'title',
|
|
51
|
+
control: {
|
|
52
|
+
type: 'text'
|
|
53
|
+
},
|
|
54
|
+
description: 'title on top of the component'
|
|
55
|
+
},
|
|
56
|
+
value: {
|
|
57
|
+
name: 'value',
|
|
58
|
+
control: {
|
|
59
|
+
type: 'number',
|
|
60
|
+
min: 0,
|
|
61
|
+
max: 100000000000000
|
|
62
|
+
},
|
|
63
|
+
description: 'value (title) '
|
|
64
|
+
},
|
|
65
|
+
addingBenchmark: {
|
|
66
|
+
name: 'Add Benchmark',
|
|
67
|
+
control: {
|
|
68
|
+
type: 'boolean'
|
|
69
|
+
},
|
|
70
|
+
description: 'true/false - Adding Benchmark'
|
|
71
|
+
},
|
|
72
|
+
benchmarkTotalValue: {
|
|
73
|
+
name: 'benchmarkTotalValue',
|
|
74
|
+
control: {
|
|
75
|
+
type: 'number',
|
|
76
|
+
min: 0,
|
|
77
|
+
max: 100000000000000
|
|
78
|
+
},
|
|
79
|
+
description: 'benchmarkTotalValue - set total value of the benchmark'
|
|
80
|
+
},
|
|
81
|
+
benchmarkValue: {
|
|
82
|
+
name: 'benchmarkValue',
|
|
83
|
+
control: {
|
|
84
|
+
type: 'number',
|
|
85
|
+
min: 0,
|
|
86
|
+
max: 100000000000000
|
|
87
|
+
},
|
|
88
|
+
description: 'benchmarkValue - set total value of the benchmark delimeter line'
|
|
89
|
+
},
|
|
90
|
+
currency: {
|
|
91
|
+
name: 'currency',
|
|
92
|
+
control: {
|
|
93
|
+
type: 'boolean'
|
|
94
|
+
},
|
|
95
|
+
description: 'true/false - show/hide currency before total value'
|
|
96
|
+
},
|
|
97
|
+
currencyType: {
|
|
98
|
+
name: 'currencyType',
|
|
99
|
+
options: ['USD', 'EUR', 'ILS', 'GBP', 'JPY'],
|
|
100
|
+
control: {
|
|
101
|
+
type: 'select'
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
width: {
|
|
105
|
+
name: 'width',
|
|
106
|
+
control: {
|
|
107
|
+
type: 'text'
|
|
108
|
+
},
|
|
109
|
+
description: 'width of the control (in px)'
|
|
110
|
+
},
|
|
111
|
+
height: {
|
|
112
|
+
name: 'height',
|
|
113
|
+
control: {
|
|
114
|
+
type: 'text'
|
|
115
|
+
},
|
|
116
|
+
description: 'height of the control (in px)'
|
|
117
|
+
},
|
|
118
|
+
textcolor: {
|
|
119
|
+
name: 'textcolor',
|
|
120
|
+
description: 'Sets the text color',
|
|
121
|
+
control: {
|
|
122
|
+
type: 'color',
|
|
123
|
+
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff']
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
barChartData: {
|
|
127
|
+
description: 'array [] of objects: {title: string, value:number } to fill the details data. only 2 elements supported right now '
|
|
128
|
+
},
|
|
129
|
+
noDataText: {
|
|
130
|
+
name: 'noDataText',
|
|
131
|
+
control: {
|
|
132
|
+
type: 'text'
|
|
133
|
+
},
|
|
134
|
+
description: 'text to display when no data found'
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_TotalBenchmarkBarchart.TotalBenchmarkBarchart, args);
|
|
139
|
+
const IncrementalSales = exports.IncrementalSales = Template.bind({});
|
|
140
|
+
IncrementalSales.args = {
|
|
141
|
+
title: 'Incremental Sales',
|
|
142
|
+
value: 75100,
|
|
143
|
+
benchmarkTotalValue: 100000,
|
|
144
|
+
benchmarkValue: 50000,
|
|
145
|
+
barChartData: arrData,
|
|
146
|
+
currency: true,
|
|
147
|
+
currencyType: 'USD',
|
|
148
|
+
dotCut: true,
|
|
149
|
+
width: '250px',
|
|
150
|
+
height: '280px',
|
|
151
|
+
textcolor: '#000',
|
|
152
|
+
noDataText: 'The selected event is a TPR or has no offer, therefore there are no redemptions or redemption units to display.'
|
|
153
|
+
};
|
|
154
|
+
const Redeemers = exports.Redeemers = Template.bind({});
|
|
155
|
+
Redeemers.args = {
|
|
156
|
+
title: 'Redeemers',
|
|
157
|
+
value: 956200,
|
|
158
|
+
benchmarkTotalValue: 2000000,
|
|
159
|
+
benchmarkValue: 1000000,
|
|
160
|
+
barChartData: arrDataRedeemers,
|
|
161
|
+
currency: true,
|
|
162
|
+
currencyType: 'USD',
|
|
163
|
+
dotCut: true,
|
|
164
|
+
width: '300px',
|
|
165
|
+
height: '280px',
|
|
166
|
+
textcolor: '#000',
|
|
167
|
+
noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.'
|
|
168
|
+
};
|
|
169
|
+
const DataWithNulls = exports.DataWithNulls = Template.bind({});
|
|
170
|
+
DataWithNulls.args = {
|
|
171
|
+
title: 'Redeemers',
|
|
172
|
+
value: null,
|
|
173
|
+
benchmarkTotalValue: 2000000,
|
|
174
|
+
benchmarkValue: 1000000,
|
|
175
|
+
barChartData: arrDataWithnulls,
|
|
176
|
+
currency: true,
|
|
177
|
+
currencyType: 'USD',
|
|
178
|
+
dotCut: true,
|
|
179
|
+
width: '300px',
|
|
180
|
+
height: '280px',
|
|
181
|
+
textcolor: '#000',
|
|
182
|
+
noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.'
|
|
183
|
+
};
|
|
@@ -0,0 +1,301 @@
|
|
|
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.TotalCost5rows = exports.TotalCost3rows = exports.TotalCost = exports.SwitchersPatternPercent = exports.HideTitleAndValue = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _TotalDoughnutChart = require("./components/TotalDoughnutChart");
|
|
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
|
+
const arrLegendDat5rows = [{
|
|
33
|
+
name: 'Food Lion',
|
|
34
|
+
value: null,
|
|
35
|
+
color: '#066768'
|
|
36
|
+
}, {
|
|
37
|
+
name: 'Hannaford',
|
|
38
|
+
value: null,
|
|
39
|
+
color: '#82B3B4'
|
|
40
|
+
}, {
|
|
41
|
+
name: 'The Giant Company',
|
|
42
|
+
value: undefined,
|
|
43
|
+
color: '#90CE9C'
|
|
44
|
+
}
|
|
45
|
+
// { name: 'Giant Food', value: 200.68474, color: '#5FCC70' },
|
|
46
|
+
// { name: 'Stop&Shop', value: 250.9687458, color: '#229E38' },
|
|
47
|
+
];
|
|
48
|
+
const arrLegendPercent = [{
|
|
49
|
+
color: '#066768',
|
|
50
|
+
name: 'None Switcher',
|
|
51
|
+
value: 40.3
|
|
52
|
+
}, {
|
|
53
|
+
color: '#82B3B4',
|
|
54
|
+
name: 'From Other Products',
|
|
55
|
+
value: 19.7
|
|
56
|
+
}, {
|
|
57
|
+
color: '#90CE9C',
|
|
58
|
+
name: 'From Other Supplier Brand',
|
|
59
|
+
value: 25.31111
|
|
60
|
+
}, {
|
|
61
|
+
color: '#5FCC70',
|
|
62
|
+
name: 'From other Suppliers',
|
|
63
|
+
value: 14.59999
|
|
64
|
+
}];
|
|
65
|
+
var _default = exports.default = {
|
|
66
|
+
title: 'SAG BI/TotalDoughnutChart',
|
|
67
|
+
component: _TotalDoughnutChart.TotalDoughnutChart,
|
|
68
|
+
tags: ['autodocs'],
|
|
69
|
+
parameters: {
|
|
70
|
+
design: {
|
|
71
|
+
type: 'figspec',
|
|
72
|
+
accessToken: 'figd_vlq2HLcwzTQLvrhLrFWY_Be8CqbuyKcltE9oyHnR'
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
argTypes: {
|
|
76
|
+
title: {
|
|
77
|
+
name: 'Title',
|
|
78
|
+
control: {
|
|
79
|
+
type: 'text'
|
|
80
|
+
},
|
|
81
|
+
description: 'title on top of the component'
|
|
82
|
+
},
|
|
83
|
+
value: {
|
|
84
|
+
name: 'Value',
|
|
85
|
+
control: {
|
|
86
|
+
type: 'number',
|
|
87
|
+
min: 0,
|
|
88
|
+
max: 100000000000000
|
|
89
|
+
},
|
|
90
|
+
description: 'value (total) '
|
|
91
|
+
},
|
|
92
|
+
addingBenchmark: {
|
|
93
|
+
name: 'Add Benchmark',
|
|
94
|
+
control: {
|
|
95
|
+
type: 'boolean'
|
|
96
|
+
},
|
|
97
|
+
description: 'true/false - Adding Benchmark'
|
|
98
|
+
},
|
|
99
|
+
dotCut: {
|
|
100
|
+
name: 'Dot Cut',
|
|
101
|
+
control: {
|
|
102
|
+
type: 'boolean'
|
|
103
|
+
},
|
|
104
|
+
description: 'true/false - format total value with dot cut'
|
|
105
|
+
},
|
|
106
|
+
currencySign: {
|
|
107
|
+
name: 'Currency',
|
|
108
|
+
control: {
|
|
109
|
+
type: 'boolean'
|
|
110
|
+
},
|
|
111
|
+
description: 'true/false - show/hide currency sign before total value'
|
|
112
|
+
},
|
|
113
|
+
currencyType: {
|
|
114
|
+
name: 'Currency Type',
|
|
115
|
+
options: ['USD', 'EUR', 'ILS', 'GBP', 'JPY'],
|
|
116
|
+
control: {
|
|
117
|
+
type: 'select'
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
width: {
|
|
121
|
+
name: 'width',
|
|
122
|
+
control: {
|
|
123
|
+
type: 'text'
|
|
124
|
+
},
|
|
125
|
+
description: 'width of the control (in px / %)'
|
|
126
|
+
},
|
|
127
|
+
height: {
|
|
128
|
+
name: 'height',
|
|
129
|
+
control: {
|
|
130
|
+
type: 'text'
|
|
131
|
+
},
|
|
132
|
+
description: 'height of the control (in px / %)'
|
|
133
|
+
},
|
|
134
|
+
textcolor: {
|
|
135
|
+
name: 'Text Color',
|
|
136
|
+
description: 'Sets the text color',
|
|
137
|
+
control: {
|
|
138
|
+
type: 'color',
|
|
139
|
+
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff']
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
legendData: {
|
|
143
|
+
name: 'Legend Data',
|
|
144
|
+
description: 'array [] of objects: {displayName: string, value:number} to fill the pie chart, Please NOTE: the name have to be uniq '
|
|
145
|
+
},
|
|
146
|
+
itemsPercentagesValueAside: {
|
|
147
|
+
default: false,
|
|
148
|
+
name: 'Show Percentages value aside',
|
|
149
|
+
control: {
|
|
150
|
+
type: 'boolean'
|
|
151
|
+
},
|
|
152
|
+
description: 'true/false - Show Percentages value aside the item value'
|
|
153
|
+
},
|
|
154
|
+
itemsBoldedValues: {
|
|
155
|
+
default: true,
|
|
156
|
+
name: 'Items bolded values',
|
|
157
|
+
control: {
|
|
158
|
+
type: 'boolean'
|
|
159
|
+
},
|
|
160
|
+
description: 'true/false - Make the value text bolded'
|
|
161
|
+
},
|
|
162
|
+
itemsValuesSeparateLine: {
|
|
163
|
+
default: false,
|
|
164
|
+
name: 'Items values in a new line',
|
|
165
|
+
control: {
|
|
166
|
+
type: 'boolean'
|
|
167
|
+
},
|
|
168
|
+
description: 'true/false - Locate the value to a new line'
|
|
169
|
+
},
|
|
170
|
+
noDataText: {
|
|
171
|
+
name: 'No Data text',
|
|
172
|
+
control: {
|
|
173
|
+
type: 'text'
|
|
174
|
+
},
|
|
175
|
+
description: 'text to display when no data found'
|
|
176
|
+
},
|
|
177
|
+
isPercent: {
|
|
178
|
+
default: false,
|
|
179
|
+
name: 'isPercent',
|
|
180
|
+
control: {
|
|
181
|
+
type: 'boolean'
|
|
182
|
+
},
|
|
183
|
+
description: 'true/false - isPercent'
|
|
184
|
+
},
|
|
185
|
+
hideTitleAndValue: {
|
|
186
|
+
default: false,
|
|
187
|
+
name: 'hideTitleAndValue',
|
|
188
|
+
control: {
|
|
189
|
+
type: 'boolean'
|
|
190
|
+
},
|
|
191
|
+
description: 'true/false - isPercent'
|
|
192
|
+
},
|
|
193
|
+
textAfterValue: {
|
|
194
|
+
name: 'textAfterValue',
|
|
195
|
+
control: {
|
|
196
|
+
type: 'text'
|
|
197
|
+
},
|
|
198
|
+
description: 'text After Value'
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.TotalDoughnutChart, args);
|
|
203
|
+
const TotalCost = exports.TotalCost = Template.bind({});
|
|
204
|
+
TotalCost.args = {
|
|
205
|
+
title: 'Total Cost',
|
|
206
|
+
value: 36500,
|
|
207
|
+
addingBenchmark: false,
|
|
208
|
+
dotCut: true,
|
|
209
|
+
currencySign: true,
|
|
210
|
+
currencyType: 'USD',
|
|
211
|
+
legendData: arrLegendData,
|
|
212
|
+
textcolor: '#212121',
|
|
213
|
+
noDataText: 'The selected event is a TPR or has no offer, therefore there are no redemptions or redemption units to display.',
|
|
214
|
+
height: '100%',
|
|
215
|
+
width: '100%',
|
|
216
|
+
isPercent: false,
|
|
217
|
+
hideTitleAndValue: false,
|
|
218
|
+
textAfterValue: ''
|
|
219
|
+
};
|
|
220
|
+
TotalCost.parameters = {
|
|
221
|
+
design: {
|
|
222
|
+
url: 'https://www.figma.com/file/kZyP3iKy3nO6sz1Ji7Axul/Sagarmatha---Dashboard?type=design&node-id=5666-2429&mode=dev'
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
const TotalCost3rows = exports.TotalCost3rows = Template.bind({});
|
|
226
|
+
TotalCost3rows.args = {
|
|
227
|
+
title: 'Total Cost',
|
|
228
|
+
value: 56500,
|
|
229
|
+
addingBenchmark: false,
|
|
230
|
+
dotCut: true,
|
|
231
|
+
currencySign: true,
|
|
232
|
+
currencyType: 'USD',
|
|
233
|
+
legendData: arrLegendDat3rows,
|
|
234
|
+
textcolor: '#212121',
|
|
235
|
+
noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.',
|
|
236
|
+
hideTitleAndValue: false,
|
|
237
|
+
itemsBoldedValues: false,
|
|
238
|
+
textAfterValue: ''
|
|
239
|
+
};
|
|
240
|
+
TotalCost3rows.parameters = {
|
|
241
|
+
design: {
|
|
242
|
+
url: 'https://www.figma.com/file/kZyP3iKy3nO6sz1Ji7Axul/Sagarmatha---Dashboard?type=design&node-id=5813-8191&mode=dev'
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
const TotalCost5rows = exports.TotalCost5rows = Template.bind({});
|
|
246
|
+
TotalCost5rows.args = {
|
|
247
|
+
title: 'Total Cost',
|
|
248
|
+
value: 565.25487,
|
|
249
|
+
addingBenchmark: false,
|
|
250
|
+
dotCut: true,
|
|
251
|
+
currencySign: true,
|
|
252
|
+
currencyType: 'USD',
|
|
253
|
+
legendData: arrLegendDat5rows,
|
|
254
|
+
width: '360px',
|
|
255
|
+
height: '410px',
|
|
256
|
+
textcolor: '#212121',
|
|
257
|
+
noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.',
|
|
258
|
+
hideTitleAndValue: false,
|
|
259
|
+
textAfterValue: ''
|
|
260
|
+
};
|
|
261
|
+
const SwitchersPatternPercent = exports.SwitchersPatternPercent = Template.bind({});
|
|
262
|
+
SwitchersPatternPercent.args = {
|
|
263
|
+
title: 'Switchers Pattern',
|
|
264
|
+
value: 565000,
|
|
265
|
+
addingBenchmark: false,
|
|
266
|
+
dotCut: true,
|
|
267
|
+
currencySign: true,
|
|
268
|
+
currencyType: 'USD',
|
|
269
|
+
legendData: arrLegendPercent,
|
|
270
|
+
width: '360px',
|
|
271
|
+
height: '410px',
|
|
272
|
+
textcolor: '#212121',
|
|
273
|
+
noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.',
|
|
274
|
+
isPercent: true,
|
|
275
|
+
itemsValuesSeparateLine: true,
|
|
276
|
+
hideTitleAndValue: false,
|
|
277
|
+
textAfterValue: '30% out of $400K actual sales'
|
|
278
|
+
};
|
|
279
|
+
const HideTitleAndValue = exports.HideTitleAndValue = Template.bind({});
|
|
280
|
+
HideTitleAndValue.args = {
|
|
281
|
+
title: 'Switchers Pattern',
|
|
282
|
+
value: 565000,
|
|
283
|
+
addingBenchmark: false,
|
|
284
|
+
dotCut: true,
|
|
285
|
+
currencySign: true,
|
|
286
|
+
currencyType: 'USD',
|
|
287
|
+
legendData: arrLegendPercent,
|
|
288
|
+
width: '360px',
|
|
289
|
+
height: '210px',
|
|
290
|
+
textcolor: '#212121',
|
|
291
|
+
noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.',
|
|
292
|
+
isPercent: true,
|
|
293
|
+
itemsValuesSeparateLine: true,
|
|
294
|
+
hideTitleAndValue: true,
|
|
295
|
+
textAfterValue: ''
|
|
296
|
+
};
|
|
297
|
+
TotalCost5rows.parameters = {
|
|
298
|
+
design: {
|
|
299
|
+
url: 'https://www.figma.com/file/kZyP3iKy3nO6sz1Ji7Axul/Sagarmatha---Dashboard?type=design&node-id=5740-22422&mode=dev'
|
|
300
|
+
}
|
|
301
|
+
};
|