sag_components 1.0.976 → 1.0.978
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/Button.test.js +10 -10
- package/dist/LinkButton.test.js +10 -10
- package/dist/SingleBar.test.js +2 -2
- package/dist/index.js +1 -1
- package/dist/stories/CampaignTool/PopupContent.stories.js +284 -0
- package/dist/stories/components/BannerEventBoxTest.js +42 -0
- package/dist/stories/components/BannerEventBoxTest.style.js +11 -0
- package/dist/stories/components/BarChartsByWeeks.js +3 -0
- package/dist/stories/components/CommonFunctions.js +1 -2
- package/dist/stories/components/FilterButton.js +53 -0
- package/dist/stories/components/FilterButton.style.js +12 -0
- package/dist/stories/components/FormattedValue.js +3 -2
- package/dist/stories/components/NewInput.js +33 -0
- package/dist/stories/components/NewInput.style.js +13 -0
- package/dist/stories/components/QuickFilterDropdownMultiSelection.js +1 -1
- package/dist/stories/components/QuickFilterDropdownSingle.js +1 -1
- package/dist/stories/components/icons/TheGiantCompanyIcon_old.js +1831 -0
- package/package.json +1 -1
- package/dist/stories/components/AttachedFile/AttachedFile.js +0 -62
- package/dist/stories/components/AttachedFile/AttachedFile.stories.js +0 -36
- package/dist/stories/components/AttachedFile/AttachedFile.style.js +0 -48
- package/dist/stories/components/BannerEventBox/BannerEventBox.js +0 -97
- package/dist/stories/components/BannerEventBox/BannerEventBox.stories.js +0 -58
- package/dist/stories/components/BannerEventBox/BannerEventBox.style.js +0 -78
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.js +0 -153
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.stories.js +0 -59
- package/dist/stories/components/BannerEventBoxList/BannerEventBoxList.style.js +0 -189
- package/dist/stories/components/BannersDropdown/BannersDropdown.js +0 -115
- package/dist/stories/components/BannersDropdown/BannersDropdown.stories.js +0 -64
- package/dist/stories/components/BannersDropdown/BannersDropdown.style.js +0 -99
- package/dist/stories/components/BarChart/BarChart.js +0 -191
- package/dist/stories/components/BarChart/BarChart.stories.js +0 -153
- package/dist/stories/components/BarChart/BarChart.style.js +0 -60
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.js +0 -213
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.stories.js +0 -259
- package/dist/stories/components/BarChartTwoRows/BarChartTwoRows.style.js +0 -79
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.js +0 -299
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.stories.js +0 -442
- package/dist/stories/components/BarChartsByWeeks/BarChartsByWeeks.style.js +0 -96
- package/dist/stories/components/Benchmark/Benchmark.js +0 -130
- package/dist/stories/components/Benchmark/Benchmark.stories.js +0 -148
- package/dist/stories/components/Benchmark/Benchmark.style.js +0 -61
- package/dist/stories/components/Button/Button.js +0 -217
- package/dist/stories/components/Button/Button.stories.js +0 -269
- package/dist/stories/components/Button/Button.style.js +0 -90
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.js +0 -48
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.stories.js +0 -65
- package/dist/stories/components/CampaignDemoReport/CampaignDemoReport.style.js +0 -48
- package/dist/stories/components/Card/Card.js +0 -72
- package/dist/stories/components/Card/Card.stories.js +0 -92
- package/dist/stories/components/Card/Card.style.js +0 -65
- package/dist/stories/components/CheckBox/CheckBox.js +0 -76
- package/dist/stories/components/CheckBox/CheckBox.stories.js +0 -107
- package/dist/stories/components/CheckBox/CheckBox.style.js +0 -36
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.js +0 -69
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.stories.js +0 -150
- package/dist/stories/components/CheckBoxButton/CheckBoxButton.style.js +0 -39
- package/dist/stories/components/CodeEditor/CodeEditor.js +0 -43
- package/dist/stories/components/CodeEditor/CodeEditor.style.js +0 -13
- package/dist/stories/components/CollapseData/CollapseData.js +0 -66
- package/dist/stories/components/CollapseData/CollapseData.stories.js +0 -125
- package/dist/stories/components/CollapseData/CollapseData.style.js +0 -127
- package/dist/stories/components/CollapseHeader/CollapseHeader.js +0 -249
- package/dist/stories/components/CollapseHeader/CollapseHeader.stories.js +0 -116
- package/dist/stories/components/CollapseHeader/CollapseHeader.style.js +0 -200
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.js +0 -61
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.stories.js +0 -161
- package/dist/stories/components/CollapseMenuItem/CollapseMenuItem.style.js +0 -61
- package/dist/stories/components/Datepicker/Datepicker.js +0 -148
- package/dist/stories/components/Datepicker/Datepicker.stories.js +0 -86
- package/dist/stories/components/Datepicker/Datepicker.style.js +0 -19
- package/dist/stories/components/DownloadProgress/DownloadProgress.js +0 -97
- package/dist/stories/components/DownloadProgress/DownloadProgress.stories.js +0 -111
- package/dist/stories/components/DownloadProgress/DownloadProgress.style.js +0 -51
- package/dist/stories/components/Dropdown/Dropdown.js +0 -231
- package/dist/stories/components/Dropdown/Dropdown.stories.js +0 -323
- package/dist/stories/components/Dropdown/Dropdown.style.js +0 -17
- package/dist/stories/components/DropdownMulti/DropdownMulti.js +0 -290
- package/dist/stories/components/DropdownMulti/DropdownMulti.stories.js +0 -220
- package/dist/stories/components/DropdownMulti/DropdownMulti.style.js +0 -11
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.js +0 -292
- package/dist/stories/components/DropdownMultiNew/DropdownMultiNew.style.js +0 -216
- package/dist/stories/components/DropdownNew/DropdownNew.js +0 -98
- package/dist/stories/components/DropdownNew/DropdownNew.stories.js +0 -416
- package/dist/stories/components/DropdownNew/DropdownNew.style.js +0 -21
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.js +0 -254
- package/dist/stories/components/DropdownSingleNew/DropdownSingleNew.style.js +0 -187
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.js +0 -144
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.stories.js +0 -57
- package/dist/stories/components/EventDetailsCard/EventDetailsCard.style.js +0 -94
- package/dist/stories/components/EventList/EventList.js +0 -61
- package/dist/stories/components/EventList/EventList.stories.js +0 -84
- package/dist/stories/components/EventList/EventList.style.js +0 -38
- package/dist/stories/components/EventListItem/EventListItem.js +0 -50
- package/dist/stories/components/EventListItem/EventListItem.stories.js +0 -65
- package/dist/stories/components/EventListItem/EventListItem.style.js +0 -47
- package/dist/stories/components/FilterContainer/FilterContainer.js +0 -29
- package/dist/stories/components/FilterContainer/FilterContainer.stories.js +0 -23
- package/dist/stories/components/FilterContainer/FilterContainer.style.js +0 -30
- package/dist/stories/components/FilterPanel/FilterPanel.js +0 -571
- package/dist/stories/components/FilterPanel/FilterPanel.stories.js +0 -967
- package/dist/stories/components/FilterPanel/FilterPanel.style.js +0 -89
- package/dist/stories/components/FormInput/FormInput.js +0 -41
- package/dist/stories/components/FormSelect/FormSelect.js +0 -42
- package/dist/stories/components/FormattedValue/FormattedValue.js +0 -68
- package/dist/stories/components/FormattedValue/FormattedValue.stories.js +0 -189
- package/dist/stories/components/FormattedValue/FormattedValue.style.js +0 -91
- package/dist/stories/components/IconButton/IconButton.js +0 -147
- package/dist/stories/components/IconButton/IconButton.stories.js +0 -131
- package/dist/stories/components/IconButton/IconButton.style.js +0 -64
- package/dist/stories/components/Input/Input.js +0 -183
- package/dist/stories/components/Input/Input.stories.js +0 -434
- package/dist/stories/components/Input/Input.style.js +0 -130
- package/dist/stories/components/InputOld/InputOld.js +0 -90
- package/dist/stories/components/InputOld/InputOld.stories.js +0 -100
- package/dist/stories/components/InputOld/InputOld.style.js +0 -69
- package/dist/stories/components/KpiFilter/KpiFilter.js +0 -330
- package/dist/stories/components/KpiFilter/KpiFilter.stories.js +0 -380
- package/dist/stories/components/KpiFilter/KpiFilter.style.js +0 -132
- package/dist/stories/components/LinkButton/LinkButton.js +0 -207
- package/dist/stories/components/LinkButton/LinkButton.stories.js +0 -180
- package/dist/stories/components/LinkButton/LinkButton.style.js +0 -53
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.js +0 -46
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.stories.js +0 -78
- package/dist/stories/components/LinnerDataBox/LinnerDataBox.style.js +0 -68
- package/dist/stories/components/ListBox/ListBox.js +0 -82
- package/dist/stories/components/ListBox/ListBox.stories.js +0 -132
- package/dist/stories/components/ListBox/ListBox.style.js +0 -48
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.js +0 -109
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.stories.js +0 -198
- package/dist/stories/components/MarketShareDescription/MarketShareDescription.style.js +0 -215
- package/dist/stories/components/Modal/Modal.js +0 -21
- package/dist/stories/components/Modal/Modal.style.js +0 -65
- package/dist/stories/components/Modal/ModalTotalBenchmark.js +0 -224
- package/dist/stories/components/Modal/ModalTotalCost.js +0 -139
- package/dist/stories/components/MonthPicker/MonthPicker.js +0 -166
- package/dist/stories/components/MonthPicker/MonthPicker.stories.js +0 -140
- package/dist/stories/components/MonthPicker/MonthPicker.style.js +0 -103
- package/dist/stories/components/MonthPicker/MonthPopupPicker.js +0 -200
- package/dist/stories/components/MultipleCard/MultipleCard.js +0 -26
- package/dist/stories/components/MultipleCard/MultipleCard.stories.js +0 -33
- package/dist/stories/components/MultipleCard/MultipleCard.style.js +0 -13
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.js +0 -30
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.stories.js +0 -66
- package/dist/stories/components/NoDataFoundMessage/NoDataFoundMessage.style.js +0 -39
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.js +0 -121
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.stories.js +0 -119
- package/dist/stories/components/OneColumnContainer/OneColumnContainer.style.js +0 -107
- package/dist/stories/components/PageFilterBar/PageFilterBar.js +0 -23
- package/dist/stories/components/PageFilterBar/PageFilterBar.stories.js +0 -28
- package/dist/stories/components/PageFilterBar/PageFilterBar.style.js +0 -22
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.js +0 -447
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.stories.js +0 -258
- package/dist/stories/components/PerformanceAnalytics/PerformanceAnalytics.style.js +0 -144
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.js +0 -59
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.stories.js +0 -86
- package/dist/stories/components/PerformanceAnalyticsLegend/PerformanceAnalyticsLegend.style.js +0 -63
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.js +0 -327
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.stories.js +0 -231
- package/dist/stories/components/PerformanceAnalyticsOneColumn/PerformanceAnalyticsOneColumn.style.js +0 -116
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.js +0 -70
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.stories.js +0 -100
- package/dist/stories/components/PerformanceAnalyticsTotals/PerformanceAnalyticsTotals.style.js +0 -89
- package/dist/stories/components/Popup/Popup.js +0 -172
- package/dist/stories/components/Popup/Popup.stories.js +0 -704
- package/dist/stories/components/Popup/Popup.style.js +0 -122
- package/dist/stories/components/PopupCharts/PopupCharts.js +0 -244
- package/dist/stories/components/PopupCharts/PopupCharts.stories.js +0 -1203
- package/dist/stories/components/PopupCharts/PopupCharts.style.js +0 -108
- package/dist/stories/components/PopupContent/PopupContent.js +0 -111
- package/dist/stories/components/PopupContent/PopupContent.style.js +0 -74
- package/dist/stories/components/PopupContent/PopupFieldsRules.js +0 -168
- package/dist/stories/components/ProductsVariety/ProductsVariety.js +0 -94
- package/dist/stories/components/ProductsVariety/ProductsVariety.stories.js +0 -91
- package/dist/stories/components/ProductsVariety/ProductsVariety.style.js +0 -86
- package/dist/stories/components/ProgressBar/ProgressBar.js +0 -52
- package/dist/stories/components/ProgressBar/ProgressBar.stories.js +0 -72
- package/dist/stories/components/ProgressBar/ProgressBar.style.js +0 -24
- package/dist/stories/components/QuarterPicker/QuarterPicker.js +0 -165
- package/dist/stories/components/QuarterPicker/QuarterPicker.stories.js +0 -140
- package/dist/stories/components/QuarterPicker/QuarterPicker.style.js +0 -102
- package/dist/stories/components/QuarterPicker/QuarterPopupPicker.js +0 -182
- package/dist/stories/components/QuickFilter/QuickFilter.js +0 -78
- package/dist/stories/components/QuickFilter/QuickFilter.stories.js +0 -281
- package/dist/stories/components/QuickFilter/QuickFilter.style.js +0 -21
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.js +0 -299
- package/dist/stories/components/QuickFilter/QuickFilterDropdownMultiSelection.style.js +0 -194
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.js +0 -229
- package/dist/stories/components/QuickFilter/QuickFilterDropdownSingle.style.js +0 -139
- package/dist/stories/components/RangePicker/RangeDatePicker.js +0 -229
- package/dist/stories/components/RangePicker/RangePicker.js +0 -176
- package/dist/stories/components/RangePicker/RangePicker.stories.js +0 -138
- package/dist/stories/components/RangePicker/RangePicker.style.js +0 -107
- package/dist/stories/components/ReportTable/ReportTable.js +0 -262
- package/dist/stories/components/ReportTable/ReportTable.stories.js +0 -151
- package/dist/stories/components/ReportTable/ReportTable.style.js +0 -131
- package/dist/stories/components/SagButton/SagButton.js +0 -68
- package/dist/stories/components/SagButton/SagButton.stories.js +0 -118
- package/dist/stories/components/SagButton/SagButton.style.js +0 -47
- package/dist/stories/components/SagIconButton/SagIconButton.js +0 -130
- package/dist/stories/components/SagIconButton/SagIconButton.stories.js +0 -123
- package/dist/stories/components/SagIconButton/SagIconButton.style.js +0 -30
- package/dist/stories/components/SagInput/SagInput.js +0 -53
- package/dist/stories/components/SagInput/SagInput.stories.js +0 -69
- package/dist/stories/components/SagInput/SagInput.style.js +0 -41
- package/dist/stories/components/SalesAndROI/SalesAndROI.js +0 -89
- package/dist/stories/components/SalesAndROI/SalesAndROI.stories.js +0 -168
- package/dist/stories/components/SalesAndROI/SalesAndROI.style.js +0 -111
- package/dist/stories/components/SearchInput/SearchInput.js +0 -39
- package/dist/stories/components/SearchInput/SearchInput.stories.js +0 -44
- package/dist/stories/components/SearchInput/SearchInput.style.js +0 -37
- package/dist/stories/components/SegmentedButton/SegmentedButton.js +0 -122
- package/dist/stories/components/SegmentedButton/SegmentedButton.stories.js +0 -183
- package/dist/stories/components/SegmentedButton/SegmentedButton.style.js +0 -100
- package/dist/stories/components/Select/Select.js +0 -135
- package/dist/stories/components/Select/Select.stories.js +0 -200
- package/dist/stories/components/Select/Select.style.js +0 -102
- package/dist/stories/components/TabMenu/TabMenu.js +0 -214
- package/dist/stories/components/TabMenu/TabMenu.stories.js +0 -76
- package/dist/stories/components/TabMenu/TabMenu.style.js +0 -115
- package/dist/stories/components/Table/Table.js +0 -195
- package/dist/stories/components/Table/Table.stories.js +0 -104
- package/dist/stories/components/Table/Table.style.js +0 -86
- package/dist/stories/components/TextField/TextField.js +0 -209
- package/dist/stories/components/TextField/TextField.stories.js +0 -162
- package/dist/stories/components/TextField/TextField.style.js +0 -18
- package/dist/stories/components/TitleDescription/TitleDescription.js +0 -272
- package/dist/stories/components/TitleDescription/TitleDescription.stories.js +0 -117
- package/dist/stories/components/TitleDescription/TitleDescription.style.js +0 -222
- package/dist/stories/components/Tooltip/Tooltip.js +0 -31
- package/dist/stories/components/Tooltip/Tooltip.style.js +0 -103
- package/dist/stories/components/TopToggleList/TopToggleList.js +0 -46
- package/dist/stories/components/TopToggleList/TopToggleList.stories.js +0 -52
- package/dist/stories/components/TopToggleList/TopToggleList.style.js +0 -51
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.js +0 -97
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.stories.js +0 -138
- package/dist/stories/components/TotalBenchmark/TotalBenchmark.style.js +0 -81
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.js +0 -342
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.stories.js +0 -343
- package/dist/stories/components/TotalBenchmarkAreachart/TotalBenchmarkAreachart.style.js +0 -171
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.js +0 -149
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.stories.js +0 -172
- package/dist/stories/components/TotalBenchmarkArrows/TotalBenchmarkArrows.style.js +0 -108
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.js +0 -165
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.stories.js +0 -185
- package/dist/stories/components/TotalBenchmarkBarchart/TotalBenchmarkBarchart.style.js +0 -77
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.js +0 -186
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.stories.js +0 -291
- package/dist/stories/components/TotalDoughnutChart/TotalDoughnutChart.style.js +0 -178
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.js +0 -229
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.stories.js +0 -228
- package/dist/stories/components/TotalHorizontalCharts/TotalHorizontalCharts.style.js +0 -58
- package/dist/stories/components/TspanTooltip/TspanTooltip.js +0 -33
- package/dist/stories/components/TspanTooltip/TspanTooltip.style.js +0 -105
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.js +0 -204
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.stories.js +0 -185
- package/dist/stories/components/TwoBarCharts/TwoBarCharts.style.js +0 -60
- package/dist/stories/icons/ArrowDownIcon.js +0 -27
- package/dist/stories/icons/ArrowDropDownIcon.js +0 -27
- package/dist/stories/icons/ArrowSelectIcon.js +0 -27
- package/dist/stories/icons/ArrowUpIcon.js +0 -27
- package/dist/stories/icons/AttachedIcon.js +0 -27
- package/dist/stories/icons/BellIcon.js +0 -27
- package/dist/stories/icons/Calendar.js +0 -20
- package/dist/stories/icons/CalendarIcon.js +0 -27
- package/dist/stories/icons/CalendarInOpen.js +0 -26
- package/dist/stories/icons/CheckBoxButtonCheckedIcon.js +0 -28
- package/dist/stories/icons/CheckBoxCheckedIcon.js +0 -28
- package/dist/stories/icons/CheckBoxNotCheckedIcon.js +0 -28
- package/dist/stories/icons/ChervronLeftIcon.js +0 -20
- package/dist/stories/icons/ChervronRightIcon.js +0 -20
- package/dist/stories/icons/ClockIcon.js +0 -27
- package/dist/stories/icons/CloseIcon.js +0 -27
- package/dist/stories/icons/CloseXIcon.js +0 -27
- package/dist/stories/icons/ComboBoxArrowDownIcon.js +0 -28
- package/dist/stories/icons/ComboBoxArrowUpIcon.js +0 -28
- package/dist/stories/icons/DocumentIcon.js +0 -48
- package/dist/stories/icons/DownloadIcon.js +0 -27
- package/dist/stories/icons/Duplicate.js +0 -28
- package/dist/stories/icons/ErrorIcon.js +0 -27
- package/dist/stories/icons/ExitIcon.js +0 -28
- package/dist/stories/icons/ExportIcon.js +0 -28
- package/dist/stories/icons/EyeIcon.js +0 -28
- package/dist/stories/icons/FileIcon.js +0 -27
- package/dist/stories/icons/FilterIcon.js +0 -36
- package/dist/stories/icons/FlyIcon.js +0 -28
- package/dist/stories/icons/FoodLionChartIcon.js +0 -42
- package/dist/stories/icons/FoodLionIcon.js +0 -3076
- package/dist/stories/icons/FoodLionNewIcon.js +0 -39
- package/dist/stories/icons/GiantFoodChartIcon.js +0 -40
- package/dist/stories/icons/GiantFoodIcon.js +0 -1976
- package/dist/stories/icons/GiantFoodIcon_new.js +0 -42
- package/dist/stories/icons/HannafordChartIcon.js +0 -40
- package/dist/stories/icons/HannafordIcon.js +0 -5017
- package/dist/stories/icons/HannafordIcon_new.js +0 -41
- package/dist/stories/icons/HannafordNewIcon.js +0 -213
- package/dist/stories/icons/InfoIcon.js +0 -28
- package/dist/stories/icons/LampIcon.js +0 -27
- package/dist/stories/icons/LegendLineIcon.js +0 -29
- package/dist/stories/icons/LegendUnionIcon.js +0 -29
- package/dist/stories/icons/MaintenanceIcon.js +0 -28
- package/dist/stories/icons/MenuItemClosedIcon.js +0 -28
- package/dist/stories/icons/MenuItemOpenIcon.js +0 -28
- package/dist/stories/icons/MenuItemRightIcon.js +0 -28
- package/dist/stories/icons/MenuItemUpIcon.js +0 -28
- package/dist/stories/icons/NoDataFoundIcon.js +0 -86
- package/dist/stories/icons/OptionsIcon.js +0 -27
- package/dist/stories/icons/SearchIcon.js +0 -27
- package/dist/stories/icons/ShoppingCartIcon.js +0 -45
- package/dist/stories/icons/ShoutIcon.js +0 -27
- package/dist/stories/icons/SpotlightProductIcon.js +0 -28
- package/dist/stories/icons/StopAndShopChartIcon.js +0 -42
- package/dist/stories/icons/StopAndShopIcon.js +0 -134
- package/dist/stories/icons/StopAndShopNewIcon.js +0 -41
- package/dist/stories/icons/SucceededIcon.js +0 -27
- package/dist/stories/icons/TheGiantCompanyChartIcon.js +0 -40
- package/dist/stories/icons/TheGiantCompanyIcon.js +0 -40
- package/dist/stories/icons/TheGiantCompanyNewIcon.js +0 -39
- package/dist/stories/utils/CommonFunctions.js +0 -83
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = exports.TotalDoughnutChart = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _recharts = require("recharts");
|
|
10
|
-
var _CommonFunctions = require("../../utils/CommonFunctions");
|
|
11
|
-
var _NoDataFoundMessage = require("../NoDataFoundMessage/NoDataFoundMessage");
|
|
12
|
-
var _TotalDoughnutChart = require("./TotalDoughnutChart.style");
|
|
13
|
-
var _Benchmark = require("../Benchmark/Benchmark");
|
|
14
|
-
const TotalDoughnutChart = props => {
|
|
15
|
-
var _DoughnutChartContain, _DoughnutChartContain2;
|
|
16
|
-
const {
|
|
17
|
-
className,
|
|
18
|
-
title,
|
|
19
|
-
value,
|
|
20
|
-
addingBenchmark,
|
|
21
|
-
dotCut,
|
|
22
|
-
currencySign,
|
|
23
|
-
currencyType,
|
|
24
|
-
legendData,
|
|
25
|
-
itemsPercentagesValueAside,
|
|
26
|
-
itemsBoldedValues,
|
|
27
|
-
itemsValuesSeparateLine,
|
|
28
|
-
width,
|
|
29
|
-
height,
|
|
30
|
-
textcolor,
|
|
31
|
-
isPercent,
|
|
32
|
-
hideTitleAndValue,
|
|
33
|
-
noDataText,
|
|
34
|
-
textAfterValue
|
|
35
|
-
} = props;
|
|
36
|
-
const [DoughnutChartRadius, setDoughnutChartRadius] = (0, _react.useState)(0);
|
|
37
|
-
const [zoomResolution, setZoomResolution] = (0, _react.useState)(1);
|
|
38
|
-
const DoughnutChartContainerRef = (0, _react.useRef)();
|
|
39
|
-
const dotCutTrenty = row => {
|
|
40
|
-
if (!row || !row.value) return null;
|
|
41
|
-
let valueNew = 0;
|
|
42
|
-
if (row !== null && row !== void 0 && row.value && Math.abs(row.value) > 0 && row.value % 1 !== 0) {
|
|
43
|
-
var _row$value;
|
|
44
|
-
valueNew = row === null || row === void 0 ? void 0 : (_row$value = row.value) === null || _row$value === void 0 ? void 0 : _row$value.toFixed(2);
|
|
45
|
-
} else {
|
|
46
|
-
valueNew = row === null || row === void 0 ? void 0 : row.value;
|
|
47
|
-
}
|
|
48
|
-
return dotCut ? (0, _CommonFunctions.getFormattedValue)(valueNew) : (0, _CommonFunctions.getNumberWithCommas)(valueNew);
|
|
49
|
-
};
|
|
50
|
-
(0, _react.useEffect)(() => {
|
|
51
|
-
const handleResize = () => {
|
|
52
|
-
setZoomResolution(window.devicePixelRatio);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
// Add event listener for window resize to update zoom resolution
|
|
56
|
-
window.addEventListener('resize', handleResize);
|
|
57
|
-
|
|
58
|
-
// Initial update of zoom resolution
|
|
59
|
-
setZoomResolution(window.devicePixelRatio);
|
|
60
|
-
|
|
61
|
-
// Clean up the event listener when component unmounts
|
|
62
|
-
return () => {
|
|
63
|
-
window.removeEventListener('resize', handleResize);
|
|
64
|
-
};
|
|
65
|
-
}, []);
|
|
66
|
-
(0, _react.useEffect)(() => {
|
|
67
|
-
const MIN_RADIUS = 45;
|
|
68
|
-
if (!DoughnutChartContainerRef) return;
|
|
69
|
-
const {
|
|
70
|
-
current
|
|
71
|
-
} = DoughnutChartContainerRef;
|
|
72
|
-
if (!current) return;
|
|
73
|
-
const DoughnutChartContainerWidth = current === null || current === void 0 ? void 0 : current.clientWidth;
|
|
74
|
-
const DoughnutChartContainerHeight = current === null || current === void 0 ? void 0 : current.clientHeight;
|
|
75
|
-
const resolutionFactor = zoomResolution && zoomResolution >= 1 ? zoomResolution : 1;
|
|
76
|
-
let radius = DoughnutChartContainerWidth > DoughnutChartContainerHeight ? DoughnutChartContainerHeight / 2 / resolutionFactor : DoughnutChartContainerWidth / 2 / resolutionFactor;
|
|
77
|
-
if (radius < MIN_RADIUS) {
|
|
78
|
-
radius = MIN_RADIUS;
|
|
79
|
-
}
|
|
80
|
-
setDoughnutChartRadius(radius);
|
|
81
|
-
}, [height, width, DoughnutChartContainerRef === null || DoughnutChartContainerRef === void 0 ? void 0 : (_DoughnutChartContain = DoughnutChartContainerRef.current) === null || _DoughnutChartContain === void 0 ? void 0 : _DoughnutChartContain.clientWidth, DoughnutChartContainerRef === null || DoughnutChartContainerRef === void 0 ? void 0 : (_DoughnutChartContain2 = DoughnutChartContainerRef.current) === null || _DoughnutChartContain2 === void 0 ? void 0 : _DoughnutChartContain2.clientHeight, zoomResolution]);
|
|
82
|
-
const displayLegendValue = row => /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.LegendFormattedValue, {
|
|
83
|
-
style: {
|
|
84
|
-
fontWeight: itemsBoldedValues ? '700' : '500'
|
|
85
|
-
}
|
|
86
|
-
}, !isPercent && row.value && currencySign ? (0, _CommonFunctions.getCurrencySign)(currencyType, row.value) : '', !isPercent && row.value !== undefined && row.value !== null ? dotCutTrenty(row) : !isPercent && 'No Data', !isPercent && row.value && dotCut ? (0, _CommonFunctions.getFormattedUnits)(row.value) : '', !isPercent && row.value && itemsPercentagesValueAside && /*#__PURE__*/_react.default.createElement("span", {
|
|
87
|
-
style: {
|
|
88
|
-
fontWeight: itemsBoldedValues ? '700' : '400'
|
|
89
|
-
}
|
|
90
|
-
}, ' (', `${Math.round(row.value / value * 100)}%)`), isPercent && row.value && `${row.value.toFixed(1)}%`);
|
|
91
|
-
return /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.ControlsContainer, {
|
|
92
|
-
className: className,
|
|
93
|
-
height: height,
|
|
94
|
-
width: width,
|
|
95
|
-
textcolor: textcolor
|
|
96
|
-
}, legendData.length === 0 || legendData.every(item => item.value === undefined || item.value === null) ? /*#__PURE__*/_react.default.createElement(_NoDataFoundMessage.NoDataFoundMessage, {
|
|
97
|
-
className: "NoDataFoundMessage",
|
|
98
|
-
noDataText: noDataText
|
|
99
|
-
}) : /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.Controls, {
|
|
100
|
-
className: "Controls",
|
|
101
|
-
height: height,
|
|
102
|
-
width: width
|
|
103
|
-
}, !hideTitleAndValue && /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.TitleAndValueContainer, {
|
|
104
|
-
className: "TitleAndValueContainer"
|
|
105
|
-
}, /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.Title, {
|
|
106
|
-
className: "Title"
|
|
107
|
-
}, title), /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.CurrencySignAndFormattedValueContainer, {
|
|
108
|
-
className: "CurrencySignAndFormattedValueContainer"
|
|
109
|
-
}, /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.FormattedValue, {
|
|
110
|
-
className: "FormattedValue",
|
|
111
|
-
width: width
|
|
112
|
-
}, /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.CurrencySign, {
|
|
113
|
-
className: "CurrencySign"
|
|
114
|
-
}, currencySign ? (0, _CommonFunctions.getCurrencySign)(currencyType, value) : ''), dotCut ? (0, _CommonFunctions.getFormattedValue)(value && Math.abs(value) > 0 && value % 1 !== 0 ? value === null || value === void 0 ? void 0 : value.toFixed(2) : value) : (0, _CommonFunctions.getNumberWithCommas)(value), dotCut ? (0, _CommonFunctions.getFormattedUnits)(value) : ''), textAfterValue ? /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.TextAfterValue, {
|
|
115
|
-
className: "TextAfterValue"
|
|
116
|
-
}, textAfterValue) : '', addingBenchmark && /*#__PURE__*/_react.default.createElement(_Benchmark.Benchmark, null))), /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.DoughnutChartAndLegendContainer, null, /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.DoughnutChartContainer, {
|
|
117
|
-
width: width,
|
|
118
|
-
height: height,
|
|
119
|
-
ref: DoughnutChartContainerRef
|
|
120
|
-
}, /*#__PURE__*/_react.default.createElement(_recharts.ResponsiveContainer, null, /*#__PURE__*/_react.default.createElement(_recharts.PieChart, null, /*#__PURE__*/_react.default.createElement(_recharts.Pie, {
|
|
121
|
-
fill: "#8884d8",
|
|
122
|
-
dataKey: "value",
|
|
123
|
-
blendStroke: true,
|
|
124
|
-
startAngle: -270,
|
|
125
|
-
data: legendData,
|
|
126
|
-
outerRadius: DoughnutChartRadius - 4,
|
|
127
|
-
innerRadius: DoughnutChartRadius - DoughnutChartRadius / 3
|
|
128
|
-
}, legendData.map(row => /*#__PURE__*/_react.default.createElement(_recharts.Cell, {
|
|
129
|
-
key: `cell-${row.name}`,
|
|
130
|
-
fill: row.color
|
|
131
|
-
}))), /*#__PURE__*/_react.default.createElement(_recharts.Tooltip, {
|
|
132
|
-
content: /*#__PURE__*/_react.default.createElement(CustomTooltip, {
|
|
133
|
-
value: value,
|
|
134
|
-
isPercent: isPercent
|
|
135
|
-
})
|
|
136
|
-
}), /*#__PURE__*/_react.default.createElement(_recharts.Tooltip, null)))), /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.LegendContainer, null, legendData.map(row => /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.LegendControlsContainer, {
|
|
137
|
-
key: row.name
|
|
138
|
-
}, /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.LegendColorRectangle, {
|
|
139
|
-
color: row.color
|
|
140
|
-
}), /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.LegendTitleAndFormatedValueContainer, null, /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.LegendTitle, {
|
|
141
|
-
style: {
|
|
142
|
-
flexDirection: itemsValuesSeparateLine ? 'column' : 'row',
|
|
143
|
-
alignItems: itemsValuesSeparateLine ? 'baseline' : 'center'
|
|
144
|
-
}
|
|
145
|
-
}, row.name, displayLegendValue(row)))))))));
|
|
146
|
-
};
|
|
147
|
-
exports.TotalDoughnutChart = TotalDoughnutChart;
|
|
148
|
-
var _default = exports.default = TotalDoughnutChart;
|
|
149
|
-
TotalDoughnutChart.defaultProps = {
|
|
150
|
-
className: '',
|
|
151
|
-
title: '',
|
|
152
|
-
value: 0,
|
|
153
|
-
addingBenchmark: false,
|
|
154
|
-
dotCut: false,
|
|
155
|
-
currencySign: false,
|
|
156
|
-
currencyType: 'USD',
|
|
157
|
-
legendData: [],
|
|
158
|
-
itemsPercentagesValueAside: true,
|
|
159
|
-
itemsBoldedValues: true,
|
|
160
|
-
itemsValuesSeparateLine: true,
|
|
161
|
-
width: '100%',
|
|
162
|
-
height: '100%',
|
|
163
|
-
textcolor: '#212121',
|
|
164
|
-
isPercent: false,
|
|
165
|
-
hideTitleAndValue: false,
|
|
166
|
-
noDataText: 'No Data',
|
|
167
|
-
textAfterValue: ''
|
|
168
|
-
};
|
|
169
|
-
function CustomTooltip(_ref) {
|
|
170
|
-
let {
|
|
171
|
-
active,
|
|
172
|
-
payload,
|
|
173
|
-
value,
|
|
174
|
-
isPercent = false
|
|
175
|
-
} = _ref;
|
|
176
|
-
if (active && payload && payload.length) {
|
|
177
|
-
const percent = value && value !== 0 && !isPercent ? (payload[0].value / value * 100).toFixed(1) : value && isPercent ? payload[0].value.toFixed(1) : 0;
|
|
178
|
-
return /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.TooltipDiv, null, /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.TooltipLabel, null, `${payload[0].name} ${percent}%`));
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
CustomTooltip.defaultProps = {
|
|
182
|
-
active: '',
|
|
183
|
-
payload: '',
|
|
184
|
-
value: '',
|
|
185
|
-
isPercent: false
|
|
186
|
-
};
|
|
@@ -1,291 +0,0 @@
|
|
|
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("./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
|
-
id: 'TotalDoughnutChart',
|
|
70
|
-
parameters: {
|
|
71
|
-
design: {
|
|
72
|
-
type: 'figspec',
|
|
73
|
-
accessToken: 'figd_vlq2HLcwzTQLvrhLrFWY_Be8CqbuyKcltE9oyHnR'
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
argTypes: {
|
|
77
|
-
title: {
|
|
78
|
-
name: 'Title',
|
|
79
|
-
control: {
|
|
80
|
-
type: 'text'
|
|
81
|
-
},
|
|
82
|
-
description: 'title on top of the component'
|
|
83
|
-
},
|
|
84
|
-
value: {
|
|
85
|
-
name: 'Value',
|
|
86
|
-
control: {
|
|
87
|
-
type: 'number',
|
|
88
|
-
min: 0,
|
|
89
|
-
max: 100000000000000
|
|
90
|
-
},
|
|
91
|
-
description: 'value (total) '
|
|
92
|
-
},
|
|
93
|
-
addingBenchmark: {
|
|
94
|
-
name: 'Add Benchmark',
|
|
95
|
-
control: {
|
|
96
|
-
type: 'boolean'
|
|
97
|
-
},
|
|
98
|
-
description: 'true/false - Adding Benchmark'
|
|
99
|
-
},
|
|
100
|
-
dotCut: {
|
|
101
|
-
name: 'Dot Cut',
|
|
102
|
-
control: {
|
|
103
|
-
type: 'boolean'
|
|
104
|
-
},
|
|
105
|
-
description: 'true/false - format total value with dot cut'
|
|
106
|
-
},
|
|
107
|
-
currencySign: {
|
|
108
|
-
name: 'Currency',
|
|
109
|
-
control: {
|
|
110
|
-
type: 'boolean'
|
|
111
|
-
},
|
|
112
|
-
description: 'true/false - show/hide currency sign before total value'
|
|
113
|
-
},
|
|
114
|
-
currencyType: {
|
|
115
|
-
name: 'Currency Type',
|
|
116
|
-
options: ['USD', 'EUR', 'ILS', 'GBP', 'JPY'],
|
|
117
|
-
control: {
|
|
118
|
-
type: 'select'
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
width: {
|
|
122
|
-
name: 'width',
|
|
123
|
-
control: {
|
|
124
|
-
type: 'text'
|
|
125
|
-
},
|
|
126
|
-
description: 'width of the control (in px / %)'
|
|
127
|
-
},
|
|
128
|
-
height: {
|
|
129
|
-
name: 'height',
|
|
130
|
-
control: {
|
|
131
|
-
type: 'text'
|
|
132
|
-
},
|
|
133
|
-
description: 'height of the control (in px / %)'
|
|
134
|
-
},
|
|
135
|
-
textcolor: {
|
|
136
|
-
name: 'Text Color',
|
|
137
|
-
description: 'Sets the text color',
|
|
138
|
-
control: {
|
|
139
|
-
type: 'color',
|
|
140
|
-
presetColors: ['#ffffff', '#ff0000', '#00ff00', '#0000ff']
|
|
141
|
-
}
|
|
142
|
-
},
|
|
143
|
-
legendData: {
|
|
144
|
-
name: 'Legend Data',
|
|
145
|
-
description: 'array [] of objects: {displayName: string, value:number} to fill the pie chart, Please NOTE: the name have to be uniq '
|
|
146
|
-
},
|
|
147
|
-
itemsPercentagesValueAside: {
|
|
148
|
-
default: false,
|
|
149
|
-
name: 'Show Percentages value aside',
|
|
150
|
-
control: {
|
|
151
|
-
type: 'boolean'
|
|
152
|
-
},
|
|
153
|
-
description: 'true/false - Show Percentages value aside the item value'
|
|
154
|
-
},
|
|
155
|
-
itemsBoldedValues: {
|
|
156
|
-
default: true,
|
|
157
|
-
name: 'Items bolded values',
|
|
158
|
-
control: {
|
|
159
|
-
type: 'boolean'
|
|
160
|
-
},
|
|
161
|
-
description: 'true/false - Make the value text bolded'
|
|
162
|
-
},
|
|
163
|
-
itemsValuesSeparateLine: {
|
|
164
|
-
default: false,
|
|
165
|
-
name: 'Items values in a new line',
|
|
166
|
-
control: {
|
|
167
|
-
type: 'boolean'
|
|
168
|
-
},
|
|
169
|
-
description: 'true/false - Locate the value to a new line'
|
|
170
|
-
},
|
|
171
|
-
noDataText: {
|
|
172
|
-
name: 'No Data text',
|
|
173
|
-
control: {
|
|
174
|
-
type: 'text'
|
|
175
|
-
},
|
|
176
|
-
description: 'text to display when no data found'
|
|
177
|
-
},
|
|
178
|
-
isPercent: {
|
|
179
|
-
default: false,
|
|
180
|
-
name: 'isPercent',
|
|
181
|
-
control: {
|
|
182
|
-
type: 'boolean'
|
|
183
|
-
},
|
|
184
|
-
description: 'true/false - isPercent'
|
|
185
|
-
},
|
|
186
|
-
hideTitleAndValue: {
|
|
187
|
-
default: false,
|
|
188
|
-
name: 'hideTitleAndValue',
|
|
189
|
-
control: {
|
|
190
|
-
type: 'boolean'
|
|
191
|
-
},
|
|
192
|
-
description: 'true/false - isPercent'
|
|
193
|
-
},
|
|
194
|
-
textAfterValue: {
|
|
195
|
-
name: 'textAfterValue',
|
|
196
|
-
control: {
|
|
197
|
-
type: 'text'
|
|
198
|
-
},
|
|
199
|
-
description: 'text After Value'
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
const TotalCost = exports.TotalCost = {
|
|
204
|
-
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
|
-
};
|
|
221
|
-
const TotalCost3rows = exports.TotalCost3rows = {
|
|
222
|
-
args: {
|
|
223
|
-
title: 'Total Cost',
|
|
224
|
-
value: 56500,
|
|
225
|
-
addingBenchmark: false,
|
|
226
|
-
dotCut: true,
|
|
227
|
-
currencySign: true,
|
|
228
|
-
currencyType: 'USD',
|
|
229
|
-
legendData: arrLegendDat3rows,
|
|
230
|
-
textcolor: '#212121',
|
|
231
|
-
noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.',
|
|
232
|
-
hideTitleAndValue: false,
|
|
233
|
-
itemsBoldedValues: false,
|
|
234
|
-
textAfterValue: ''
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
const TotalCost5rows = exports.TotalCost5rows = {
|
|
238
|
-
args: {
|
|
239
|
-
title: 'Total Cost',
|
|
240
|
-
value: 565.25487,
|
|
241
|
-
addingBenchmark: false,
|
|
242
|
-
dotCut: true,
|
|
243
|
-
currencySign: true,
|
|
244
|
-
currencyType: 'USD',
|
|
245
|
-
legendData: arrLegendDat5rows,
|
|
246
|
-
width: '360px',
|
|
247
|
-
height: '410px',
|
|
248
|
-
textcolor: '#212121',
|
|
249
|
-
noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.',
|
|
250
|
-
hideTitleAndValue: false,
|
|
251
|
-
textAfterValue: ''
|
|
252
|
-
}
|
|
253
|
-
};
|
|
254
|
-
const SwitchersPatternPercent = exports.SwitchersPatternPercent = {
|
|
255
|
-
args: {
|
|
256
|
-
title: 'Switchers Pattern',
|
|
257
|
-
value: 565000,
|
|
258
|
-
addingBenchmark: false,
|
|
259
|
-
dotCut: true,
|
|
260
|
-
currencySign: true,
|
|
261
|
-
currencyType: 'USD',
|
|
262
|
-
legendData: arrLegendPercent,
|
|
263
|
-
width: '360px',
|
|
264
|
-
height: '410px',
|
|
265
|
-
textcolor: '#212121',
|
|
266
|
-
noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.',
|
|
267
|
-
isPercent: true,
|
|
268
|
-
itemsValuesSeparateLine: true,
|
|
269
|
-
hideTitleAndValue: false,
|
|
270
|
-
textAfterValue: '30% out of $400K actual sales'
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
|
-
const HideTitleAndValue = exports.HideTitleAndValue = {
|
|
274
|
-
args: {
|
|
275
|
-
title: 'Switchers Pattern',
|
|
276
|
-
value: 565000,
|
|
277
|
-
addingBenchmark: false,
|
|
278
|
-
dotCut: true,
|
|
279
|
-
currencySign: true,
|
|
280
|
-
currencyType: 'USD',
|
|
281
|
-
legendData: arrLegendPercent,
|
|
282
|
-
width: '360px',
|
|
283
|
-
height: '210px',
|
|
284
|
-
textcolor: '#212121',
|
|
285
|
-
noDataText: 'The selected event is a TPR or has no offer, therefore there is no redeemers data to display.',
|
|
286
|
-
isPercent: true,
|
|
287
|
-
itemsValuesSeparateLine: true,
|
|
288
|
-
hideTitleAndValue: true,
|
|
289
|
-
textAfterValue: ''
|
|
290
|
-
}
|
|
291
|
-
};
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.TooltipLabel = exports.TooltipDiv = exports.TitleAndValueContainer = exports.Title = exports.TextAfterValue = exports.LegendTitleAndFormatedValueContainer = exports.LegendTitle = exports.LegendFormattedValue = exports.LegendFormatedValueContainer = exports.LegendControlsContainer = exports.LegendContainer = exports.LegendColorRectangle = exports.FormattedValue = exports.DoughnutChartContainer = exports.DoughnutChartAndLegendContainer = exports.CurrencySignAndFormattedValueContainer = exports.CurrencySign = exports.ControlsContainer = exports.Controls = void 0;
|
|
8
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
const scrollableStyles = `
|
|
10
|
-
overflow-y: auto;
|
|
11
|
-
|
|
12
|
-
&::-webkit-scrollbar {
|
|
13
|
-
width: 8px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&::-webkit-scrollbar-track {
|
|
17
|
-
background: #E8E8E8;
|
|
18
|
-
border-radius: 5px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&::-webkit-scrollbar-thumb {
|
|
22
|
-
background: #D0D0D0;
|
|
23
|
-
border-radius: 5px;
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
26
|
-
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
|
|
27
|
-
position: relative;
|
|
28
|
-
font-family: "Poppins", sans-serif;
|
|
29
|
-
font-style: normal;
|
|
30
|
-
font-size: ${props => props.rootFont};
|
|
31
|
-
color: ${props => props.textColor};
|
|
32
|
-
width: ${props => props.width};
|
|
33
|
-
height: ${props => props.height};
|
|
34
|
-
border-radius: 12px;
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
@media (max-width: 1536px) {
|
|
38
|
-
${scrollableStyles}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
> * {
|
|
42
|
-
box-sizing: border-box;
|
|
43
|
-
}
|
|
44
|
-
`;
|
|
45
|
-
const Controls = exports.Controls = _styledComponents.default.div`
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: column;
|
|
48
|
-
width: 100%;
|
|
49
|
-
height: 100%;
|
|
50
|
-
background: white;
|
|
51
|
-
border-radius: 12px;
|
|
52
|
-
`;
|
|
53
|
-
const TooltipDiv = exports.TooltipDiv = _styledComponents.default.div`
|
|
54
|
-
display: flex;
|
|
55
|
-
background: white;
|
|
56
|
-
box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.2);
|
|
57
|
-
border-radius: 5px;
|
|
58
|
-
padding: 6px 10px;
|
|
59
|
-
margin: 0;
|
|
60
|
-
`;
|
|
61
|
-
const TooltipLabel = exports.TooltipLabel = _styledComponents.default.p`
|
|
62
|
-
color: #212121;
|
|
63
|
-
font-family: "Poppins", sans-serif;
|
|
64
|
-
font-size: 12px;
|
|
65
|
-
font-weight: 400;
|
|
66
|
-
font-style: normal;
|
|
67
|
-
width: max-content; // fit-content;
|
|
68
|
-
line-height: normal;
|
|
69
|
-
margin: 0;
|
|
70
|
-
`;
|
|
71
|
-
const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div`
|
|
72
|
-
display: flex;
|
|
73
|
-
flex-direction: column;
|
|
74
|
-
padding: 0 20px;
|
|
75
|
-
`;
|
|
76
|
-
const Title = exports.Title = _styledComponents.default.h4`
|
|
77
|
-
font-weight: 500;
|
|
78
|
-
font-size: 1rem;
|
|
79
|
-
margin: 0;
|
|
80
|
-
@media (max-width: 1536px) {
|
|
81
|
-
font-size: 14px;
|
|
82
|
-
}
|
|
83
|
-
@media (max-width: 1366px) {
|
|
84
|
-
font-size: 12px;
|
|
85
|
-
}
|
|
86
|
-
`;
|
|
87
|
-
const CurrencySignAndFormattedValueContainer = exports.CurrencySignAndFormattedValueContainer = _styledComponents.default.div`
|
|
88
|
-
display: flex;
|
|
89
|
-
align-items: center;
|
|
90
|
-
gap: 5px;
|
|
91
|
-
align-items: baseline;
|
|
92
|
-
`;
|
|
93
|
-
const CurrencySign = exports.CurrencySign = _styledComponents.default.span`
|
|
94
|
-
font-weight: 500;
|
|
95
|
-
font-size: 16px;
|
|
96
|
-
@media (max-width: 1536px) {
|
|
97
|
-
font-size: 14px;
|
|
98
|
-
}
|
|
99
|
-
@media (max-width: 1366px) {
|
|
100
|
-
font-size: 11px;
|
|
101
|
-
}
|
|
102
|
-
`;
|
|
103
|
-
const FormattedValue = exports.FormattedValue = _styledComponents.default.div`
|
|
104
|
-
font-weight: 500;
|
|
105
|
-
font-size: 40px;
|
|
106
|
-
@media (max-width: 1536px) {
|
|
107
|
-
font-size: 24px;
|
|
108
|
-
}
|
|
109
|
-
@media (max-width: 1366px) {
|
|
110
|
-
font-size: 20px;
|
|
111
|
-
}
|
|
112
|
-
`;
|
|
113
|
-
const TextAfterValue = exports.TextAfterValue = _styledComponents.default.div`
|
|
114
|
-
font-weight: 400;
|
|
115
|
-
font-size: 12px;
|
|
116
|
-
@media (max-width: 1536px) {
|
|
117
|
-
font-size: 11px;
|
|
118
|
-
}
|
|
119
|
-
@media (max-width: 1366px) {
|
|
120
|
-
font-size: 10px;
|
|
121
|
-
}
|
|
122
|
-
`;
|
|
123
|
-
const DoughnutChartAndLegendContainer = exports.DoughnutChartAndLegendContainer = _styledComponents.default.div`
|
|
124
|
-
display: flex;
|
|
125
|
-
justify-content: space-between;
|
|
126
|
-
margin-top: auto;
|
|
127
|
-
padding: 0 20px ;
|
|
128
|
-
margin-bottom: 20px;
|
|
129
|
-
`;
|
|
130
|
-
const DoughnutChartContainer = exports.DoughnutChartContainer = _styledComponents.default.div`
|
|
131
|
-
display: flex;
|
|
132
|
-
align-items: center;
|
|
133
|
-
min-width: 90px;
|
|
134
|
-
min-height: 90px;
|
|
135
|
-
`;
|
|
136
|
-
const LegendContainer = exports.LegendContainer = _styledComponents.default.div`
|
|
137
|
-
padding-left: 10px;
|
|
138
|
-
display: flex;
|
|
139
|
-
flex-direction: column;
|
|
140
|
-
justify-content: space-evenly;
|
|
141
|
-
`;
|
|
142
|
-
const LegendControlsContainer = exports.LegendControlsContainer = _styledComponents.default.div`
|
|
143
|
-
display: flex;
|
|
144
|
-
gap: 0.5rem;
|
|
145
|
-
align-items: center;
|
|
146
|
-
margin-bottom: 0.375rem;
|
|
147
|
-
`;
|
|
148
|
-
const LegendTitleAndFormatedValueContainer = exports.LegendTitleAndFormatedValueContainer = _styledComponents.default.div`
|
|
149
|
-
flex-grow: 1;
|
|
150
|
-
`;
|
|
151
|
-
const LegendFormatedValueContainer = exports.LegendFormatedValueContainer = _styledComponents.default.div`
|
|
152
|
-
font-size: 0.875rem;
|
|
153
|
-
`;
|
|
154
|
-
const LegendColorRectangle = exports.LegendColorRectangle = _styledComponents.default.div`
|
|
155
|
-
width: 0.875rem;
|
|
156
|
-
min-width: 0.875rem;
|
|
157
|
-
height: 0.875rem;
|
|
158
|
-
border-radius: 2px;
|
|
159
|
-
background: ${props => props.color};
|
|
160
|
-
`;
|
|
161
|
-
const LegendTitle = exports.LegendTitle = _styledComponents.default.h5`
|
|
162
|
-
font-weight: 400;
|
|
163
|
-
font-size: 16px;
|
|
164
|
-
gap: 5px;
|
|
165
|
-
margin: 0;
|
|
166
|
-
display: flex;
|
|
167
|
-
justify-content: space-between;
|
|
168
|
-
@media (max-width: 1536px) {
|
|
169
|
-
font-size: 11px;
|
|
170
|
-
}
|
|
171
|
-
@media (max-width: 1366px) {
|
|
172
|
-
font-size: 10px;
|
|
173
|
-
}
|
|
174
|
-
`;
|
|
175
|
-
const LegendFormattedValue = exports.LegendFormattedValue = _styledComponents.default.span`
|
|
176
|
-
font-weight: 500;
|
|
177
|
-
white-space: nowrap;
|
|
178
|
-
`;
|