sag_components 1.0.1029 → 1.0.1031
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/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/FilterButton.js +53 -0
- package/dist/stories/components/FilterButton.style.js +12 -0
- package/dist/stories/components/NewInput.js +33 -0
- package/dist/stories/components/NewInput.style.js +13 -0
- package/dist/stories/components/ReportTable.js +19 -20
- package/dist/stories/components/TotalHorizontalCharts.js +20 -14
- package/dist/stories/components/TotalHorizontalCharts.style.js +37 -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/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 -566
- 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/HaiTooltip.js +0 -71
- package/dist/stories/components/HaiTooltip.style.js +0 -12
- 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/Rbackup.js +0 -453
- 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/TableTooltip.js +0 -71
- package/dist/stories/components/TableTooltip.style.js +0 -12
- 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
|
@@ -0,0 +1,284 @@
|
|
|
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.ExamplePopupContent = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _PopupContent = _interopRequireDefault(require("../components/CampaignTool/PopupContent"));
|
|
10
|
+
const FieldsDataRow1 = [{
|
|
11
|
+
name: "FundationSource",
|
|
12
|
+
label: "Fundation Source",
|
|
13
|
+
disabled: false,
|
|
14
|
+
required: false,
|
|
15
|
+
inputType: "dropdown",
|
|
16
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
17
|
+
showInfo: true,
|
|
18
|
+
infoText: "This is one of the Popup content's fields",
|
|
19
|
+
placeHolder: "Select Source",
|
|
20
|
+
dropdownOptions: [{
|
|
21
|
+
value: 1,
|
|
22
|
+
label: "Source 1"
|
|
23
|
+
}, {
|
|
24
|
+
value: 2,
|
|
25
|
+
label: "Source 2"
|
|
26
|
+
}, {
|
|
27
|
+
value: 3,
|
|
28
|
+
label: "Source 3"
|
|
29
|
+
}],
|
|
30
|
+
dropdownDefaultValue: null
|
|
31
|
+
}, {
|
|
32
|
+
name: "Category",
|
|
33
|
+
label: "Category",
|
|
34
|
+
disabled: false,
|
|
35
|
+
required: false,
|
|
36
|
+
inputType: "dropdown",
|
|
37
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
38
|
+
showInfo: true,
|
|
39
|
+
infoText: "This is one of the Popup content's fields",
|
|
40
|
+
placeHolder: "Select Category",
|
|
41
|
+
dropdownOptions: [{
|
|
42
|
+
value: 1,
|
|
43
|
+
label: "Category 1"
|
|
44
|
+
}, {
|
|
45
|
+
value: 2,
|
|
46
|
+
label: "Category 2"
|
|
47
|
+
}, {
|
|
48
|
+
value: 3,
|
|
49
|
+
label: "Category 3"
|
|
50
|
+
}],
|
|
51
|
+
dropdownDefaultValue: null
|
|
52
|
+
}, {
|
|
53
|
+
name: "Supplier",
|
|
54
|
+
label: "Supplier",
|
|
55
|
+
disabled: false,
|
|
56
|
+
required: false,
|
|
57
|
+
inputType: "dropdown",
|
|
58
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
59
|
+
showInfo: true,
|
|
60
|
+
infoText: "This is one of the Popup content's fields",
|
|
61
|
+
placeHolder: "Select Supplier",
|
|
62
|
+
dropdownOptions: [{
|
|
63
|
+
value: 1,
|
|
64
|
+
label: "Supplier 1"
|
|
65
|
+
}, {
|
|
66
|
+
value: 2,
|
|
67
|
+
label: "Supplier 2"
|
|
68
|
+
}, {
|
|
69
|
+
value: 3,
|
|
70
|
+
label: "Supplier 3"
|
|
71
|
+
}],
|
|
72
|
+
dropdownDefaultValue: null
|
|
73
|
+
}, {
|
|
74
|
+
name: "ContactName",
|
|
75
|
+
label: "Contact Name",
|
|
76
|
+
disabled: false,
|
|
77
|
+
required: false,
|
|
78
|
+
inputType: "textbox",
|
|
79
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
80
|
+
showInfo: true,
|
|
81
|
+
infoText: "This is one of the Popup content's fields",
|
|
82
|
+
placeHolder: "Enter Contact Name",
|
|
83
|
+
dropdownOptions: null,
|
|
84
|
+
dropdownDefaultValue: null
|
|
85
|
+
}];
|
|
86
|
+
const FieldsDataRow2 = [{
|
|
87
|
+
name: "BrandName",
|
|
88
|
+
label: "Brand Name",
|
|
89
|
+
disabled: false,
|
|
90
|
+
required: false,
|
|
91
|
+
inputType: "dropdown",
|
|
92
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
93
|
+
showInfo: true,
|
|
94
|
+
infoText: "This is one of the Popup content's fields",
|
|
95
|
+
placeHolder: "Select Brand",
|
|
96
|
+
dropdownOptions: [{
|
|
97
|
+
value: 1,
|
|
98
|
+
label: "Brand 1"
|
|
99
|
+
}, {
|
|
100
|
+
value: 2,
|
|
101
|
+
label: "Brand 2"
|
|
102
|
+
}, {
|
|
103
|
+
value: 3,
|
|
104
|
+
label: "Brand 3"
|
|
105
|
+
}],
|
|
106
|
+
dropdownDefaultValue: null
|
|
107
|
+
}, {
|
|
108
|
+
name: "Budget",
|
|
109
|
+
label: "Budget",
|
|
110
|
+
disabled: false,
|
|
111
|
+
required: false,
|
|
112
|
+
inputType: "dropdown",
|
|
113
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
114
|
+
showInfo: true,
|
|
115
|
+
infoText: "This is one of the Popup content's fields",
|
|
116
|
+
placeHolder: "Select Budget",
|
|
117
|
+
dropdownOptions: [{
|
|
118
|
+
value: 1,
|
|
119
|
+
label: "Budget 1"
|
|
120
|
+
}, {
|
|
121
|
+
value: 2,
|
|
122
|
+
label: "Budget 2"
|
|
123
|
+
}, {
|
|
124
|
+
value: 3,
|
|
125
|
+
label: "Budget 3"
|
|
126
|
+
}],
|
|
127
|
+
dropdownDefaultValue: {
|
|
128
|
+
value: 1,
|
|
129
|
+
label: "Budget 1"
|
|
130
|
+
}
|
|
131
|
+
}, {
|
|
132
|
+
name: "CategoryManager",
|
|
133
|
+
label: "Category Manager",
|
|
134
|
+
disabled: false,
|
|
135
|
+
required: false,
|
|
136
|
+
inputType: "dropdown",
|
|
137
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
138
|
+
showInfo: true,
|
|
139
|
+
infoText: "This is one of the Popup content's fields",
|
|
140
|
+
placeHolder: "Select Category Manager",
|
|
141
|
+
dropdownOptions: [{
|
|
142
|
+
value: 1,
|
|
143
|
+
label: "Category Manager 1"
|
|
144
|
+
}, {
|
|
145
|
+
value: 2,
|
|
146
|
+
label: "Category Manager 2"
|
|
147
|
+
}, {
|
|
148
|
+
value: 3,
|
|
149
|
+
label: "Category Manager 3"
|
|
150
|
+
}],
|
|
151
|
+
dropdownDefaultValue: {
|
|
152
|
+
value: 3,
|
|
153
|
+
label: "Category Manager 3"
|
|
154
|
+
}
|
|
155
|
+
}, {
|
|
156
|
+
name: "ContactEmail",
|
|
157
|
+
label: "Contact Email",
|
|
158
|
+
disabled: false,
|
|
159
|
+
required: false,
|
|
160
|
+
inputType: "textbox",
|
|
161
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
162
|
+
showInfo: true,
|
|
163
|
+
infoText: "This is one of the Popup content's fields",
|
|
164
|
+
placeHolder: "Enter Contact Email",
|
|
165
|
+
dropdownOptions: null,
|
|
166
|
+
dropdownDefaultValue: null
|
|
167
|
+
}];
|
|
168
|
+
const FieldsDataRow3 = [{
|
|
169
|
+
name: "Broker",
|
|
170
|
+
label: "Broker",
|
|
171
|
+
disabled: false,
|
|
172
|
+
required: false,
|
|
173
|
+
inputType: "dropdown",
|
|
174
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
175
|
+
showInfo: true,
|
|
176
|
+
infoText: "This is one of the Popup content's fields",
|
|
177
|
+
placeHolder: "Select Broker",
|
|
178
|
+
dropdownOptions: [{
|
|
179
|
+
value: 1,
|
|
180
|
+
label: "Broker 1"
|
|
181
|
+
}, {
|
|
182
|
+
value: 2,
|
|
183
|
+
label: "Broker 2"
|
|
184
|
+
}, {
|
|
185
|
+
value: 3,
|
|
186
|
+
label: "Broker 3"
|
|
187
|
+
}],
|
|
188
|
+
dropdownDefaultValue: null
|
|
189
|
+
}, {
|
|
190
|
+
name: "SupplierOfferID",
|
|
191
|
+
label: "Supplier Offer ID",
|
|
192
|
+
disabled: false,
|
|
193
|
+
required: false,
|
|
194
|
+
inputType: "textbox",
|
|
195
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
196
|
+
showInfo: true,
|
|
197
|
+
infoText: "This is one of the Popup content's fields",
|
|
198
|
+
placeHolder: "Enter Supplier Offer ID",
|
|
199
|
+
dropdownOptions: null,
|
|
200
|
+
dropdownDefaultValue: null
|
|
201
|
+
}, {
|
|
202
|
+
name: "VendorID",
|
|
203
|
+
label: "Vendor ID",
|
|
204
|
+
disabled: false,
|
|
205
|
+
required: false,
|
|
206
|
+
inputType: "textbox",
|
|
207
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
208
|
+
showInfo: true,
|
|
209
|
+
infoText: "This is one of the Popup content's fields",
|
|
210
|
+
placeHolder: "Enter Vendor ID",
|
|
211
|
+
dropdownOptions: null,
|
|
212
|
+
dropdownDefaultValue: null
|
|
213
|
+
}, {
|
|
214
|
+
name: "ContactPhone",
|
|
215
|
+
label: "Contact Phone",
|
|
216
|
+
disabled: false,
|
|
217
|
+
required: true,
|
|
218
|
+
inputType: "textbox",
|
|
219
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
220
|
+
showInfo: true,
|
|
221
|
+
infoText: "This is one of the Popup content's fields",
|
|
222
|
+
placeHolder: "Enter Contact Phone",
|
|
223
|
+
dropdownOptions: null,
|
|
224
|
+
dropdownDefaultValue: null
|
|
225
|
+
}];
|
|
226
|
+
const RowsData1 = [{
|
|
227
|
+
fieldsArray: FieldsDataRow1
|
|
228
|
+
}, {
|
|
229
|
+
fieldsArray: FieldsDataRow2
|
|
230
|
+
}, {
|
|
231
|
+
fieldsArray: FieldsDataRow3
|
|
232
|
+
}];
|
|
233
|
+
var _default = exports.default = {
|
|
234
|
+
title: "Campaign Tool/PopupContent",
|
|
235
|
+
component: _PopupContent.default,
|
|
236
|
+
tags: ["autodocs"],
|
|
237
|
+
argTypes: {
|
|
238
|
+
FieldsData: {
|
|
239
|
+
name: "FieldsData",
|
|
240
|
+
control: {
|
|
241
|
+
type: "object"
|
|
242
|
+
},
|
|
243
|
+
description: " object: to fill kpi columns and buttons "
|
|
244
|
+
},
|
|
245
|
+
width: {
|
|
246
|
+
name: "width",
|
|
247
|
+
control: {
|
|
248
|
+
type: "text"
|
|
249
|
+
},
|
|
250
|
+
description: "width of the control (in px / %)"
|
|
251
|
+
},
|
|
252
|
+
height: {
|
|
253
|
+
name: "height",
|
|
254
|
+
control: {
|
|
255
|
+
type: "text"
|
|
256
|
+
},
|
|
257
|
+
description: "height of the control (in px / % )"
|
|
258
|
+
},
|
|
259
|
+
onClick: {
|
|
260
|
+
action: "onClick",
|
|
261
|
+
description: "onClick event - returns an object of check box {true/false} "
|
|
262
|
+
},
|
|
263
|
+
onChange: {
|
|
264
|
+
action: "onChange",
|
|
265
|
+
description: "onChange event "
|
|
266
|
+
},
|
|
267
|
+
borderColor: {
|
|
268
|
+
name: "borderColor",
|
|
269
|
+
description: "Sets the border color",
|
|
270
|
+
control: {
|
|
271
|
+
type: "color",
|
|
272
|
+
presetColors: ["#ffffff", "#ff0000", "#00ff00", "#0000ff"]
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_PopupContent.default, args);
|
|
278
|
+
const ExamplePopupContent = exports.ExamplePopupContent = Template.bind({});
|
|
279
|
+
ExamplePopupContent.args = {
|
|
280
|
+
rowsData: RowsData1,
|
|
281
|
+
borderColor: "#066768",
|
|
282
|
+
width: "100%",
|
|
283
|
+
height: "100%"
|
|
284
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _BannerEventBoxTest = require("./BannerEventBoxTest.style");
|
|
11
|
+
var _BannerEventBox = _interopRequireDefault(require("./BannerEventBox"));
|
|
12
|
+
const BannerEventBoxTest = props => {
|
|
13
|
+
const {
|
|
14
|
+
width,
|
|
15
|
+
height
|
|
16
|
+
} = props;
|
|
17
|
+
return /*#__PURE__*/_react.default.createElement(_BannerEventBoxTest.MainContainer, {
|
|
18
|
+
width: width,
|
|
19
|
+
height: height
|
|
20
|
+
}, /*#__PURE__*/_react.default.createElement(_BannerEventBox.default, {
|
|
21
|
+
banner: "Stop&Shop"
|
|
22
|
+
}), /*#__PURE__*/_react.default.createElement(_BannerEventBox.default, {
|
|
23
|
+
banner: "Hannaford",
|
|
24
|
+
data: [{
|
|
25
|
+
name: 'asdf',
|
|
26
|
+
items: ['coca', 'haim']
|
|
27
|
+
}, {
|
|
28
|
+
name: 'Brazxcvnds',
|
|
29
|
+
items: ['coca', 'bola', 'spring', 'cola']
|
|
30
|
+
}, {
|
|
31
|
+
name: 'xcvb Lines',
|
|
32
|
+
items: ['spring']
|
|
33
|
+
}]
|
|
34
|
+
}), /*#__PURE__*/_react.default.createElement(_BannerEventBox.default, {
|
|
35
|
+
banner: "Giant Food"
|
|
36
|
+
}));
|
|
37
|
+
};
|
|
38
|
+
BannerEventBoxTest.defaultProps = {
|
|
39
|
+
width: 'auto',
|
|
40
|
+
height: 'auto'
|
|
41
|
+
};
|
|
42
|
+
var _default = exports.default = BannerEventBoxTest;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.MainContainer = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
+
var _templateObject;
|
|
11
|
+
const MainContainer = exports.MainContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: ", ";\n height: ", ";\n display: flex;\n gap: 20px;\n"])), props => props.width, props => props.height);
|
|
@@ -0,0 +1,53 @@
|
|
|
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.FilterButton = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _FilterButton = require("./FilterButton.style");
|
|
10
|
+
var _FilterIcon = require("./icons/FilterIcon");
|
|
11
|
+
const FilterButton = props => {
|
|
12
|
+
const {
|
|
13
|
+
color,
|
|
14
|
+
activeColor,
|
|
15
|
+
height,
|
|
16
|
+
buttonText,
|
|
17
|
+
iconWidth,
|
|
18
|
+
iconHeight,
|
|
19
|
+
disabled,
|
|
20
|
+
openState,
|
|
21
|
+
onButtonClick
|
|
22
|
+
} = props;
|
|
23
|
+
const [activeState, setActiveState] = (0, _react.useState)(openState);
|
|
24
|
+
const onClickHandler = event => {
|
|
25
|
+
onButtonClick(event);
|
|
26
|
+
setActiveState(!activeState);
|
|
27
|
+
};
|
|
28
|
+
return /*#__PURE__*/_react.default.createElement(_FilterButton.FilterButtonWrapper, {
|
|
29
|
+
height: height,
|
|
30
|
+
color: activeState ? activeColor : color,
|
|
31
|
+
disabled: disabled,
|
|
32
|
+
onClick: event => {
|
|
33
|
+
onClickHandler(event);
|
|
34
|
+
}
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement(_FilterIcon.FilterIcon, {
|
|
36
|
+
width: iconWidth,
|
|
37
|
+
height: iconHeight,
|
|
38
|
+
color: activeState ? activeColor : color
|
|
39
|
+
}), /*#__PURE__*/_react.default.createElement(_FilterButton.SpanText, null, buttonText));
|
|
40
|
+
};
|
|
41
|
+
exports.FilterButton = FilterButton;
|
|
42
|
+
var _default = exports.default = FilterButton;
|
|
43
|
+
FilterButton.defaultProps = {
|
|
44
|
+
buttonText: 'Filter',
|
|
45
|
+
height: '40px',
|
|
46
|
+
color: '#212121',
|
|
47
|
+
activeColor: '#229E38',
|
|
48
|
+
iconHeight: 12,
|
|
49
|
+
iconWidth: 12,
|
|
50
|
+
openState: false,
|
|
51
|
+
disabled: false,
|
|
52
|
+
onButtonClick: () => {}
|
|
53
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.SpanText = exports.FilterButtonWrapper = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
+
var _templateObject, _templateObject2;
|
|
11
|
+
const FilterButtonWrapper = exports.FilterButtonWrapper = _styledComponents.default.button(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: ", ";\n font-size: 14px;\n font-weight: 400;\n display: flex;\n gap: 8px;\n align-items: center;\n justify-content: center;\n padding: 8px 18px;\n color: ", ";\n border-radius: 8px;\n border: 1px solid ", ";\n background: transparent;\n transition: box-shadow 0.3s ease;\n &:hover, &:focus {\n cursor: pointer;\n box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.1);\n }\n"])), props => props.height, props => props.color, props => props.color);
|
|
12
|
+
const SpanText = exports.SpanText = _styledComponents.default.span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n"])));
|
|
@@ -0,0 +1,33 @@
|
|
|
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 = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _NewInput = require("./NewInput.style");
|
|
10
|
+
const NewInput = props => {
|
|
11
|
+
const {
|
|
12
|
+
labelText,
|
|
13
|
+
inputType,
|
|
14
|
+
onTyping
|
|
15
|
+
} = props;
|
|
16
|
+
const [inputValue, setInputValue] = (0, _react.useState)('');
|
|
17
|
+
const handleInputChange = e => {
|
|
18
|
+
setInputValue(e.target.value);
|
|
19
|
+
onTyping(e);
|
|
20
|
+
};
|
|
21
|
+
return /*#__PURE__*/_react.default.createElement(_NewInput.TextFieldContainer, null, /*#__PURE__*/_react.default.createElement(_NewInput.TextFieldInput, {
|
|
22
|
+
type: inputType,
|
|
23
|
+
value: inputValue,
|
|
24
|
+
onChange: handleInputChange
|
|
25
|
+
// placeholder={labelText}
|
|
26
|
+
}), /*#__PURE__*/_react.default.createElement(_NewInput.Label, null, labelText));
|
|
27
|
+
};
|
|
28
|
+
var _default = exports.default = NewInput;
|
|
29
|
+
NewInput.defaultProps = {
|
|
30
|
+
labelText: '',
|
|
31
|
+
inputType: 'text',
|
|
32
|
+
onTyping: () => {}
|
|
33
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.TextFieldInput = exports.TextFieldContainer = exports.Label = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
11
|
+
const TextFieldContainer = exports.TextFieldContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n"])));
|
|
12
|
+
const TextFieldInput = exports.TextFieldInput = _styledComponents.default.input(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n padding: 10px;\n font-size: 16px;\n border: 1px solid #ccc;\n border-radius: 4px;\n\n &:focus + label,\n &:not(:placeholder-shown) + label {\n top: -8px;\n font-size: 12px;\n color: #007bff;\n background-color: white;\n }\n"])));
|
|
13
|
+
const Label = exports.Label = _styledComponents.default.label(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n top: 12px;\n left: 10px;\n transition: all 0.3s ease;\n pointer-events: none;\n font-size: 16px;\n color: #555;\n"])));
|
|
@@ -42,33 +42,28 @@ const ReportTable = props => {
|
|
|
42
42
|
width,
|
|
43
43
|
height,
|
|
44
44
|
sortKey,
|
|
45
|
-
className
|
|
45
|
+
className,
|
|
46
|
+
limit,
|
|
47
|
+
page,
|
|
48
|
+
totalPages,
|
|
49
|
+
totalTableResults,
|
|
50
|
+
onPageChange,
|
|
51
|
+
isLoading
|
|
46
52
|
} = props;
|
|
47
53
|
const [FormattedTableData, setFormattedTableData] = (0, _react.useState)(tableData);
|
|
48
54
|
const [AllRowsChecked, setAllRowsChecked] = (0, _react.useState)(false);
|
|
49
55
|
const [activeSortColumn, setActiveSortColumn] = (0, _react.useState)();
|
|
50
|
-
const [currentPage, setCurrentPage] = (0, _react.useState)(
|
|
51
|
-
const rowsPerPage = 10;
|
|
56
|
+
const [currentPage, setCurrentPage] = (0, _react.useState)(page);
|
|
52
57
|
const getPaginatedRows = () => {
|
|
53
|
-
|
|
54
|
-
const endIndex = startIndex + rowsPerPage;
|
|
55
|
-
return FormattedTableData.rowsValues.slice(startIndex, endIndex);
|
|
58
|
+
return FormattedTableData.rowsValues;
|
|
56
59
|
};
|
|
57
|
-
const totalPages = Math.ceil(FormattedTableData.rowsValues.length / rowsPerPage);
|
|
58
|
-
const [isLoading, setIsLoading] = (0, _react.useState)(false);
|
|
59
60
|
const handlePageChange = newPage => {
|
|
60
|
-
|
|
61
|
-
setIsLoading(true);
|
|
62
|
-
setTimeout(() => {
|
|
63
|
-
setCurrentPage(newPage);
|
|
64
|
-
setIsLoading(false);
|
|
65
|
-
}, 500);
|
|
66
|
-
}
|
|
61
|
+
onPageChange(newPage);
|
|
67
62
|
};
|
|
68
63
|
const getRecordRangeDisplay = () => {
|
|
69
|
-
const startRecord = (
|
|
70
|
-
const endRecord =
|
|
71
|
-
const totalRecords =
|
|
64
|
+
const startRecord = (page - 1) * limit + 1;
|
|
65
|
+
const endRecord = page * limit;
|
|
66
|
+
const totalRecords = totalTableResults;
|
|
72
67
|
return `Showing ${startRecord}-${endRecord} of ${totalRecords}`;
|
|
73
68
|
};
|
|
74
69
|
(0, _react.useEffect)(() => {
|
|
@@ -297,7 +292,6 @@ const ReportTable = props => {
|
|
|
297
292
|
disabled: currentPage === 1
|
|
298
293
|
})), (() => {
|
|
299
294
|
const pages = [];
|
|
300
|
-
const maxVisiblePages = 7;
|
|
301
295
|
const range = 2;
|
|
302
296
|
pages.push( /*#__PURE__*/_react.default.createElement("span", {
|
|
303
297
|
key: 1,
|
|
@@ -417,5 +411,10 @@ ReportTable.defaultProps = {
|
|
|
417
411
|
onSelectRowClick: () => {},
|
|
418
412
|
onCheckRowClick: () => {},
|
|
419
413
|
onAllRowsCheckBoxClick: () => {},
|
|
420
|
-
useCheckBoxes: false
|
|
414
|
+
useCheckBoxes: false,
|
|
415
|
+
limit: 10,
|
|
416
|
+
page: 1,
|
|
417
|
+
totalPages: 25,
|
|
418
|
+
totalTableResults: 250,
|
|
419
|
+
isLoading: false
|
|
421
420
|
};
|
|
@@ -26,6 +26,7 @@ const TotalHorizontalCharts = props => {
|
|
|
26
26
|
currencySign,
|
|
27
27
|
currencyType,
|
|
28
28
|
chartsData,
|
|
29
|
+
showScrollerBarsCount,
|
|
29
30
|
labelFontSize,
|
|
30
31
|
labelLimitedLetters,
|
|
31
32
|
width,
|
|
@@ -45,7 +46,8 @@ const TotalHorizontalCharts = props => {
|
|
|
45
46
|
const barBackgrounds = chartsData.map(bg => bg.color);
|
|
46
47
|
const topHeader = (0, _react.useRef)();
|
|
47
48
|
const wrapper = (0, _react.useRef)();
|
|
48
|
-
const [chartHeight, setChartHeight] =
|
|
49
|
+
// const [chartHeight, setChartHeight] = useState('100%');
|
|
50
|
+
|
|
49
51
|
const calcHeight = () => {
|
|
50
52
|
if (wrapper.current && topHeader.current) {
|
|
51
53
|
const availableHeight = Math.max(wrapper.current.clientHeight - topHeader.current.clientHeight, 0);
|
|
@@ -53,16 +55,20 @@ const TotalHorizontalCharts = props => {
|
|
|
53
55
|
}
|
|
54
56
|
return 100;
|
|
55
57
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
|
|
59
|
+
// const updateChartHeight = () => {
|
|
60
|
+
// setChartHeight(`${calcHeight()}%`);
|
|
61
|
+
// };
|
|
62
|
+
|
|
63
|
+
// useEffect(() => {
|
|
64
|
+
// updateChartHeight();
|
|
65
|
+
// window.addEventListener('resize', updateChartHeight);
|
|
66
|
+
|
|
67
|
+
// return () => {
|
|
68
|
+
// window.removeEventListener('resize', updateChartHeight);
|
|
69
|
+
// };
|
|
70
|
+
// }, []);
|
|
71
|
+
|
|
66
72
|
const [showLegendTooltip, setShowLegendTooltip] = (0, _react.useState)(false);
|
|
67
73
|
const [tooltipText, setTooltipText] = (0, _react.useState)({
|
|
68
74
|
content: '',
|
|
@@ -146,6 +152,7 @@ const TotalHorizontalCharts = props => {
|
|
|
146
152
|
height: height,
|
|
147
153
|
width: width,
|
|
148
154
|
textColor: textColor,
|
|
155
|
+
scroller: chartsData.length > showScrollerBarsCount ? 'auto' : 'hidden',
|
|
149
156
|
className: className
|
|
150
157
|
}, (chartsData === null || chartsData === void 0 ? void 0 : chartsData.length) > 0 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !hideTitle || !hideTotalValue ? /*#__PURE__*/_react.default.createElement(_TotalHorizontalCharts.CardHeader, {
|
|
151
158
|
ref: topHeader,
|
|
@@ -154,9 +161,7 @@ const TotalHorizontalCharts = props => {
|
|
|
154
161
|
className: "TotalValue"
|
|
155
162
|
}, currencySign && /*#__PURE__*/_react.default.createElement(_TotalHorizontalCharts.CurrencySign, {
|
|
156
163
|
className: "CurrencySign"
|
|
157
|
-
}, (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) : '') : '') : '', /*#__PURE__*/_react.default.createElement(_recharts.ResponsiveContainer, {
|
|
158
|
-
height: chartHeight
|
|
159
|
-
}, /*#__PURE__*/_react.default.createElement(_recharts.ComposedChart, {
|
|
164
|
+
}, (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) : '') : '') : '', /*#__PURE__*/_react.default.createElement(_recharts.ResponsiveContainer, null, /*#__PURE__*/_react.default.createElement(_recharts.ComposedChart, {
|
|
160
165
|
layout: "vertical",
|
|
161
166
|
data: chartsData,
|
|
162
167
|
margin: {
|
|
@@ -216,6 +221,7 @@ TotalHorizontalCharts.defaultProps = {
|
|
|
216
221
|
currencySign: false,
|
|
217
222
|
currencyType: 'USD',
|
|
218
223
|
chartsData: [],
|
|
224
|
+
showScrollerBarsCount: 7,
|
|
219
225
|
showPercentAsideValue: false,
|
|
220
226
|
labelFontSize: 10,
|
|
221
227
|
labelLimitedLetters: 12,
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.TotalValue = exports.Title = exports.CurrencySign = exports.ControlsContainer = exports.CardHeader = void 0;
|
|
7
|
+
exports.TotalValue = exports.Title = exports.CurrencySign = exports.ControlsContainer = exports.ChartWrapper = exports.CardHeader = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div`
|
|
10
10
|
font-family: "Poppins", sans-serif;
|
|
@@ -13,6 +13,42 @@ const ControlsContainer = exports.ControlsContainer = _styledComponents.default.
|
|
|
13
13
|
color: ${props => props.textColor};
|
|
14
14
|
width: ${props => props.width};
|
|
15
15
|
height: ${props => props.height};
|
|
16
|
+
/* display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
overflow: hidden; */
|
|
19
|
+
overflow-y: ${props => props.scroller};
|
|
20
|
+
|
|
21
|
+
&::-webkit-scrollbar {
|
|
22
|
+
width: 8px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&::-webkit-scrollbar-track {
|
|
26
|
+
background: #E8E8E8;
|
|
27
|
+
border-radius: 5px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&::-webkit-scrollbar-thumb {
|
|
31
|
+
background: #D0D0D0;
|
|
32
|
+
border-radius: 5px;
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
const ChartWrapper = exports.ChartWrapper = _styledComponents.default.div`
|
|
36
|
+
overflow-y: auto;
|
|
37
|
+
height: 100%;
|
|
38
|
+
|
|
39
|
+
&::-webkit-scrollbar {
|
|
40
|
+
width: 8px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&::-webkit-scrollbar-track {
|
|
44
|
+
background: #E8E8E8;
|
|
45
|
+
border-radius: 5px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&::-webkit-scrollbar-thumb {
|
|
49
|
+
background: #D0D0D0;
|
|
50
|
+
border-radius: 5px;
|
|
51
|
+
}
|
|
16
52
|
`;
|
|
17
53
|
const CardHeader = exports.CardHeader = _styledComponents.default.div`
|
|
18
54
|
padding: 16px;
|