sag_components 1.0.1021 → 1.0.1022
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/TotalHorizontalCharts.js +17 -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
|
@@ -1,215 +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.TextBeforeAndAfterValue = exports.RowTitle = exports.OutBanner = exports.OneRowContainer = exports.OneFieldsContainer = exports.MainContainer = exports.InfoTextLabel = exports.InfoTextContainer = exports.IconContainer = exports.FormattedValue = exports.FieldsContainer = exports.FieldTitleAndValueSubContainer = exports.FieldTitle = exports.ColumnLineSeporatorContainer = exports.ColumnLineSeporator = exports.AllRowsContainer = 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 MainContainer = exports.MainContainer = _styledComponents.default.div`
|
|
27
|
-
display: flex;
|
|
28
|
-
flex-direction: row;
|
|
29
|
-
position: relative;
|
|
30
|
-
font-family: "Poppins", sans-serif;
|
|
31
|
-
font-style: normal;
|
|
32
|
-
font-size: 1rem;
|
|
33
|
-
border-radius: 12px;
|
|
34
|
-
padding: 10px;
|
|
35
|
-
width: ${props => props.width};
|
|
36
|
-
height: ${props => props.height};
|
|
37
|
-
overflow: auto;
|
|
38
|
-
${scrollableStyles}
|
|
39
|
-
`;
|
|
40
|
-
const RowTitle = exports.RowTitle = _styledComponents.default.h4`
|
|
41
|
-
display: flex;
|
|
42
|
-
justify-content: space-between;
|
|
43
|
-
font-weight: 500;
|
|
44
|
-
font-size: 18px;
|
|
45
|
-
margin: 5px 5px 5px 0;
|
|
46
|
-
@media (max-width: 1536px) {
|
|
47
|
-
font-size: 15px;
|
|
48
|
-
}
|
|
49
|
-
@media (max-width: 1366px) {
|
|
50
|
-
font-size: 12px;
|
|
51
|
-
}
|
|
52
|
-
`;
|
|
53
|
-
const AllRowsContainer = exports.AllRowsContainer = _styledComponents.default.div`
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: column;
|
|
56
|
-
justify-content: space-between;
|
|
57
|
-
align-items: flex-start;
|
|
58
|
-
width: 100%;
|
|
59
|
-
height: 100%;
|
|
60
|
-
`;
|
|
61
|
-
const OneRowContainer = exports.OneRowContainer = _styledComponents.default.div`
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
width: 100%;
|
|
65
|
-
height: 100%;
|
|
66
|
-
`;
|
|
67
|
-
const ColumnLineSeporatorContainer = exports.ColumnLineSeporatorContainer = _styledComponents.default.div`
|
|
68
|
-
display: flex;
|
|
69
|
-
flex-direction: column;
|
|
70
|
-
background-color: #b1b1b1;
|
|
71
|
-
align-items: center;
|
|
72
|
-
height: 1px;
|
|
73
|
-
width: 100%;
|
|
74
|
-
&.ColumnLineSeporatorContainer_vertical {
|
|
75
|
-
margin: 0 30px;
|
|
76
|
-
height: 100%;
|
|
77
|
-
width: 1px;
|
|
78
|
-
}
|
|
79
|
-
&.ColumnLineSeporatorContainer_horizontal {
|
|
80
|
-
margin: 30px 0;
|
|
81
|
-
min-height: 1px;
|
|
82
|
-
height: 1px;
|
|
83
|
-
width: 100%;
|
|
84
|
-
}
|
|
85
|
-
`;
|
|
86
|
-
const ColumnLineSeporator = exports.ColumnLineSeporator = _styledComponents.default.div`
|
|
87
|
-
min-width: 0.5px;
|
|
88
|
-
width: 0.5px;
|
|
89
|
-
`;
|
|
90
|
-
const FieldsContainer = exports.FieldsContainer = _styledComponents.default.div`
|
|
91
|
-
display: flex;
|
|
92
|
-
flex-direction: row;
|
|
93
|
-
justify-content: space-between;
|
|
94
|
-
white-space: nowrap;
|
|
95
|
-
height: 100%;
|
|
96
|
-
padding: 30px 0px;
|
|
97
|
-
`;
|
|
98
|
-
const OneFieldsContainer = exports.OneFieldsContainer = _styledComponents.default.div`
|
|
99
|
-
display: flex;
|
|
100
|
-
padding: 4px;
|
|
101
|
-
gap: 10px;
|
|
102
|
-
width: 100%;
|
|
103
|
-
justify-content: flex-start;
|
|
104
|
-
// padding: ${props => props.padding}; //0 0 0 40px;
|
|
105
|
-
`;
|
|
106
|
-
const FieldTitle = exports.FieldTitle = _styledComponents.default.h4`
|
|
107
|
-
font-size: 18px;
|
|
108
|
-
font-weight: 400;
|
|
109
|
-
margin: 0;
|
|
110
|
-
@media (max-width: 1536px) {
|
|
111
|
-
font-size: 14px;
|
|
112
|
-
}
|
|
113
|
-
@media (max-width: 1366px) {
|
|
114
|
-
font-size: 12px;
|
|
115
|
-
}
|
|
116
|
-
`;
|
|
117
|
-
const FormattedValue = exports.FormattedValue = _styledComponents.default.div`
|
|
118
|
-
font-weight: 400;
|
|
119
|
-
font-size: 40px;
|
|
120
|
-
display: flex;
|
|
121
|
-
align-items: baseline;
|
|
122
|
-
min-height: 40px;
|
|
123
|
-
gap: 2px;
|
|
124
|
-
@media (max-width: 1536px) {
|
|
125
|
-
font-size: 24px;
|
|
126
|
-
}
|
|
127
|
-
@media (max-width: 1366px) {
|
|
128
|
-
font-size: 20px;
|
|
129
|
-
}
|
|
130
|
-
`;
|
|
131
|
-
const TextBeforeAndAfterValue = exports.TextBeforeAndAfterValue = _styledComponents.default.span`
|
|
132
|
-
font-weight: 400;
|
|
133
|
-
font-size: 16px;
|
|
134
|
-
@media (max-width: 1536px) {
|
|
135
|
-
font-size: 14px;
|
|
136
|
-
}
|
|
137
|
-
@media (max-width: 1366px) {
|
|
138
|
-
font-size: 11px;
|
|
139
|
-
}
|
|
140
|
-
`;
|
|
141
|
-
const FieldTitleAndValueSubContainer = exports.FieldTitleAndValueSubContainer = _styledComponents.default.div`
|
|
142
|
-
display: flex;
|
|
143
|
-
justify-content: space-around;
|
|
144
|
-
flex-direction: column;
|
|
145
|
-
flex-wrap: wrap;
|
|
146
|
-
width: 100%;
|
|
147
|
-
`;
|
|
148
|
-
const InfoTextContainer = exports.InfoTextContainer = _styledComponents.default.div`
|
|
149
|
-
display: flex;
|
|
150
|
-
flex-direction: row;
|
|
151
|
-
width: 100%;
|
|
152
|
-
height: 100%;
|
|
153
|
-
overflow:auto;
|
|
154
|
-
`;
|
|
155
|
-
const IconContainer = exports.IconContainer = _styledComponents.default.div`
|
|
156
|
-
display: flex;
|
|
157
|
-
padding: 5px 10px 0 0;
|
|
158
|
-
cursor: pointer;
|
|
159
|
-
`;
|
|
160
|
-
const InfoTextLabel = exports.InfoTextLabel = _styledComponents.default.div`
|
|
161
|
-
color: black;
|
|
162
|
-
font-size: 18px;
|
|
163
|
-
line-height: 24px;
|
|
164
|
-
font-weight: 400;
|
|
165
|
-
width: 100%;
|
|
166
|
-
overflow: auto;
|
|
167
|
-
${scrollableStyles}
|
|
168
|
-
strong {
|
|
169
|
-
font-weight: 500;
|
|
170
|
-
color: #212121;
|
|
171
|
-
@media (max-width: 1536px) {
|
|
172
|
-
font-size: 14px;
|
|
173
|
-
}
|
|
174
|
-
@media (max-width: 1366px) {
|
|
175
|
-
font-size: 12px;
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
p1 {
|
|
179
|
-
font-weight: 400;
|
|
180
|
-
color: #726F6F;
|
|
181
|
-
@media (max-width: 1536px) {
|
|
182
|
-
font-size: 14px;
|
|
183
|
-
}
|
|
184
|
-
@media (max-width: 1366px) {
|
|
185
|
-
font-size: 12px;
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
`;
|
|
189
|
-
const OutBanner = exports.OutBanner = _styledComponents.default.div`
|
|
190
|
-
display: flex;
|
|
191
|
-
gap: 8px;
|
|
192
|
-
align-items: center;
|
|
193
|
-
font-size: 14px;
|
|
194
|
-
font-weight: 400;
|
|
195
|
-
color: ${props => props.textColor};
|
|
196
|
-
cursor: pointer;
|
|
197
|
-
@media (max-width: 1536px) {
|
|
198
|
-
font-size: 13px;
|
|
199
|
-
}
|
|
200
|
-
@media (max-width: 1366px) {
|
|
201
|
-
font-size: 12px;
|
|
202
|
-
}
|
|
203
|
-
> svg {
|
|
204
|
-
width: 14px;
|
|
205
|
-
height: 14px;
|
|
206
|
-
@media (max-width: 1536px) {
|
|
207
|
-
width: 13px;
|
|
208
|
-
height: 13px;
|
|
209
|
-
}
|
|
210
|
-
@media (max-width: 1366px) {
|
|
211
|
-
width: 12px;
|
|
212
|
-
height: 12px;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
`;
|
|
@@ -1,21 +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 = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _Modal = require("./Modal.style");
|
|
10
|
-
const Modal = _ref => {
|
|
11
|
-
let {
|
|
12
|
-
isOpen,
|
|
13
|
-
onClose,
|
|
14
|
-
children
|
|
15
|
-
} = _ref;
|
|
16
|
-
if (!isOpen) return null;
|
|
17
|
-
return /*#__PURE__*/_react.default.createElement(_Modal.ModalOverlay, null, /*#__PURE__*/_react.default.createElement(_Modal.ModalContent, null, children, /*#__PURE__*/_react.default.createElement(_Modal.CloseButton, {
|
|
18
|
-
onClick: onClose
|
|
19
|
-
}, "Close")));
|
|
20
|
-
};
|
|
21
|
-
var _default = exports.default = Modal;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.SubmitButton = exports.ModalOverlay = exports.ModalContent = exports.CloseButton = void 0;
|
|
9
|
-
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
11
|
-
const fadeIn = (0, _styledComponents.keyframes)`
|
|
12
|
-
from {
|
|
13
|
-
opacity: 0;
|
|
14
|
-
}
|
|
15
|
-
to {
|
|
16
|
-
opacity: 1;
|
|
17
|
-
}
|
|
18
|
-
`;
|
|
19
|
-
const ModalOverlay = exports.ModalOverlay = _styledComponents.default.div`
|
|
20
|
-
position: fixed;
|
|
21
|
-
top: 0;
|
|
22
|
-
left: 0;
|
|
23
|
-
width: 100%;
|
|
24
|
-
height: 100%;
|
|
25
|
-
z-index:999999;
|
|
26
|
-
background-color: rgba(0, 0, 0, 0.7);
|
|
27
|
-
display: flex;
|
|
28
|
-
justify-content: center;
|
|
29
|
-
align-items: center;
|
|
30
|
-
animation: ${fadeIn} 0.3s ease-in-out;
|
|
31
|
-
`;
|
|
32
|
-
const ModalContent = exports.ModalContent = _styledComponents.default.div`
|
|
33
|
-
background-color: #fff;
|
|
34
|
-
overflow: scroll;
|
|
35
|
-
padding: 20px;
|
|
36
|
-
border-radius: 8px;
|
|
37
|
-
width: 80%;
|
|
38
|
-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
39
|
-
animation: ${fadeIn} 0.5s ease-in-out;
|
|
40
|
-
`;
|
|
41
|
-
const CloseButton = exports.CloseButton = _styledComponents.default.button`
|
|
42
|
-
margin-top: 10px;
|
|
43
|
-
padding: 5px 15px;
|
|
44
|
-
border: none;
|
|
45
|
-
background-color: #333;
|
|
46
|
-
color: #fff;
|
|
47
|
-
cursor: pointer;
|
|
48
|
-
border-radius: 4px;
|
|
49
|
-
&:hover {
|
|
50
|
-
background-color: #555;
|
|
51
|
-
}
|
|
52
|
-
`;
|
|
53
|
-
const SubmitButton = exports.SubmitButton = _styledComponents.default.input`
|
|
54
|
-
margin-top: 10px;
|
|
55
|
-
margin-right: 10px;
|
|
56
|
-
padding: 5px 15px;
|
|
57
|
-
border: none;
|
|
58
|
-
background-color: #333;
|
|
59
|
-
color: #fff;
|
|
60
|
-
cursor: pointer;
|
|
61
|
-
border-radius: 4px;
|
|
62
|
-
&:hover {
|
|
63
|
-
background-color: #555;
|
|
64
|
-
}
|
|
65
|
-
`;
|
|
@@ -1,224 +0,0 @@
|
|
|
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 _reactHookForm = require("react-hook-form");
|
|
11
|
-
var _propTypes = _interopRequireWildcard(require("prop-types"));
|
|
12
|
-
var _Modal = _interopRequireDefault(require("./Modal"));
|
|
13
|
-
var _CodeEditor = _interopRequireDefault(require("./CodeEditor"));
|
|
14
|
-
var _TextField = _interopRequireDefault(require("../TextField"));
|
|
15
|
-
var _Dropdown = _interopRequireDefault(require("./Dropdown"));
|
|
16
|
-
var _Modal2 = require("./Modal.style");
|
|
17
|
-
var _TotalDoughnutChart = _interopRequireDefault(require("../TotalDoughnutChart"));
|
|
18
|
-
var _ComponentFactory = _interopRequireDefault(require("../../utils/ComponentFactory"));
|
|
19
|
-
const ModalTotalBenchmark = _ref => {
|
|
20
|
-
let {
|
|
21
|
-
componentName,
|
|
22
|
-
title,
|
|
23
|
-
isModalOpen,
|
|
24
|
-
setModalOpen,
|
|
25
|
-
setResult
|
|
26
|
-
} = _ref;
|
|
27
|
-
const [params, setParams] = (0, _react.useState)([]);
|
|
28
|
-
const [code, setCode] = (0, _react.useState)('Select PACKAGE_COST,REDEMPTION_COST,(PACKAGE_COST+REDEMPTION_COST) AS TOTAL_COST,from FACT_EVENT_MEASURES A INNER JOIN DIM_EVENTS B ON A.EVENT_CODE = B.EVENT_CODE');
|
|
29
|
-
function getTypeName(type) {
|
|
30
|
-
if (type === _propTypes.default.string) {
|
|
31
|
-
return 'string';
|
|
32
|
-
}
|
|
33
|
-
if (type === _propTypes.default.number) {
|
|
34
|
-
return 'number';
|
|
35
|
-
}
|
|
36
|
-
if (type === _propTypes.default.bool) {
|
|
37
|
-
return 'bool';
|
|
38
|
-
}
|
|
39
|
-
if (type === _propTypes.default.array) {
|
|
40
|
-
return 'array';
|
|
41
|
-
}
|
|
42
|
-
if (type === _propTypes.default.object || type === _propTypes.default.arrayOf) {
|
|
43
|
-
return 'object';
|
|
44
|
-
}
|
|
45
|
-
if (type === _propTypes.default.func) {
|
|
46
|
-
return 'function';
|
|
47
|
-
}
|
|
48
|
-
if (type === _propTypes.default.symbol) {
|
|
49
|
-
return 'symbol';
|
|
50
|
-
}
|
|
51
|
-
if (type === _propTypes.default.any) {
|
|
52
|
-
return 'any';
|
|
53
|
-
}
|
|
54
|
-
return 'other';
|
|
55
|
-
}
|
|
56
|
-
function withPropTypeChecks(Component) {
|
|
57
|
-
const tempParams = [];
|
|
58
|
-
if (Component.propTypes) {
|
|
59
|
-
Object.keys(Component.propTypes).forEach(key => {
|
|
60
|
-
tempParams.push({
|
|
61
|
-
id: key,
|
|
62
|
-
label: key.replace(/([A-Z])/g, ' $1').replace(/^./, str => str.toUpperCase()),
|
|
63
|
-
type: getTypeName(Component.propTypes[key])
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
return tempParams;
|
|
68
|
-
}
|
|
69
|
-
(0, _react.useEffect)(() => {
|
|
70
|
-
const newParams = withPropTypeChecks((0, _ComponentFactory.default)(componentName));
|
|
71
|
-
setParams(newParams);
|
|
72
|
-
}, []);
|
|
73
|
-
const {
|
|
74
|
-
handleSubmit,
|
|
75
|
-
control,
|
|
76
|
-
formState: {
|
|
77
|
-
errors
|
|
78
|
-
}
|
|
79
|
-
} = (0, _reactHookForm.useForm)();
|
|
80
|
-
const onSubmit = data => setResult(data);
|
|
81
|
-
return /*#__PURE__*/_react.default.createElement("form", {
|
|
82
|
-
onSubmit: handleSubmit(onSubmit)
|
|
83
|
-
}, /*#__PURE__*/_react.default.createElement(_Modal.default, {
|
|
84
|
-
isOpen: isModalOpen,
|
|
85
|
-
onClose: () => setModalOpen(false)
|
|
86
|
-
}, /*#__PURE__*/_react.default.createElement("h2", null, title), /*#__PURE__*/_react.default.createElement("div", {
|
|
87
|
-
style: {
|
|
88
|
-
gap: '10px',
|
|
89
|
-
display: 'grid'
|
|
90
|
-
}
|
|
91
|
-
}, /*#__PURE__*/_react.default.createElement(_CodeEditor.default, {
|
|
92
|
-
value: code,
|
|
93
|
-
onChange: setCode
|
|
94
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
95
|
-
style: {
|
|
96
|
-
gap: '10px',
|
|
97
|
-
display: 'grid',
|
|
98
|
-
gridTemplateColumns: 'auto auto auto'
|
|
99
|
-
}
|
|
100
|
-
}, params.map(item => {
|
|
101
|
-
if (item.type === 'string' || item.type === 'number') {
|
|
102
|
-
return /*#__PURE__*/_react.default.createElement(_reactHookForm.Controller, {
|
|
103
|
-
key: item.id,
|
|
104
|
-
control: control,
|
|
105
|
-
name: item.id,
|
|
106
|
-
render: _ref2 => {
|
|
107
|
-
let {
|
|
108
|
-
field
|
|
109
|
-
} = _ref2;
|
|
110
|
-
return /*#__PURE__*/_react.default.createElement(_TextField.default, Object.assign({}, field, {
|
|
111
|
-
allowedInput: "all",
|
|
112
|
-
height: "100%",
|
|
113
|
-
label: item.label,
|
|
114
|
-
multiline: true,
|
|
115
|
-
placeHolder: "Type...",
|
|
116
|
-
shape: "round",
|
|
117
|
-
size: "small",
|
|
118
|
-
width: "300px"
|
|
119
|
-
}));
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
if (item.type === 'bool') {
|
|
124
|
-
return /*#__PURE__*/_react.default.createElement(_reactHookForm.Controller, {
|
|
125
|
-
key: item.id,
|
|
126
|
-
control: control,
|
|
127
|
-
name: item.id,
|
|
128
|
-
render: _ref3 => {
|
|
129
|
-
let {
|
|
130
|
-
field
|
|
131
|
-
} = _ref3;
|
|
132
|
-
return /*#__PURE__*/_react.default.createElement(_Dropdown.default, Object.assign({}, field, {
|
|
133
|
-
allowedInput: "all",
|
|
134
|
-
labelColor: "#1B30AA",
|
|
135
|
-
limitTagsOnMultiSelect: 0,
|
|
136
|
-
onInputChange: e => {
|
|
137
|
-
var _e$inputValue;
|
|
138
|
-
field.onChange((_e$inputValue = e === null || e === void 0 ? void 0 : e.inputValue) !== null && _e$inputValue !== void 0 ? _e$inputValue : '');
|
|
139
|
-
},
|
|
140
|
-
options: ['true', 'false'],
|
|
141
|
-
placeHolder: "Type...",
|
|
142
|
-
shape: "round",
|
|
143
|
-
size: "small",
|
|
144
|
-
text: item.label,
|
|
145
|
-
width: "300px"
|
|
146
|
-
}));
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
if (item.type === 'other') {
|
|
151
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactHookForm.Controller, {
|
|
152
|
-
key: item.id,
|
|
153
|
-
control: control,
|
|
154
|
-
name: `${item.id}Key`,
|
|
155
|
-
render: _ref4 => {
|
|
156
|
-
let {
|
|
157
|
-
field
|
|
158
|
-
} = _ref4;
|
|
159
|
-
return /*#__PURE__*/_react.default.createElement(_TextField.default, Object.assign({}, field, {
|
|
160
|
-
label: `${item.label}Key`,
|
|
161
|
-
text: `${item.label}Key`,
|
|
162
|
-
allowedInput: "all",
|
|
163
|
-
labelColor: "#1B30AA",
|
|
164
|
-
width: "300px",
|
|
165
|
-
height: "100%",
|
|
166
|
-
multiline: true,
|
|
167
|
-
placeHolder: "The Key",
|
|
168
|
-
shape: "round",
|
|
169
|
-
size: "small"
|
|
170
|
-
}));
|
|
171
|
-
}
|
|
172
|
-
}), /*#__PURE__*/_react.default.createElement(_reactHookForm.Controller, {
|
|
173
|
-
key: item.id,
|
|
174
|
-
control: control,
|
|
175
|
-
name: `${item.id}Args`,
|
|
176
|
-
render: _ref5 => {
|
|
177
|
-
let {
|
|
178
|
-
field
|
|
179
|
-
} = _ref5;
|
|
180
|
-
return /*#__PURE__*/_react.default.createElement(_TextField.default, Object.assign({}, field, {
|
|
181
|
-
label: `${item.label}Args`,
|
|
182
|
-
text: `${item.label}Args`,
|
|
183
|
-
allowedInput: "all",
|
|
184
|
-
labelColor: "#1B30AA",
|
|
185
|
-
width: "300px",
|
|
186
|
-
height: "100%",
|
|
187
|
-
multiline: true,
|
|
188
|
-
placeHolder: "The args",
|
|
189
|
-
shape: "round",
|
|
190
|
-
size: "small"
|
|
191
|
-
}));
|
|
192
|
-
}
|
|
193
|
-
}));
|
|
194
|
-
}
|
|
195
|
-
return /*#__PURE__*/_react.default.createElement(_reactHookForm.Controller, {
|
|
196
|
-
key: item.id,
|
|
197
|
-
control: control,
|
|
198
|
-
name: item.id,
|
|
199
|
-
render: _ref6 => {
|
|
200
|
-
let {
|
|
201
|
-
field
|
|
202
|
-
} = _ref6;
|
|
203
|
-
return /*#__PURE__*/_react.default.createElement(_Dropdown.default, Object.assign({}, field, {
|
|
204
|
-
allowedInput: "all",
|
|
205
|
-
labelColor: "#1B30AA",
|
|
206
|
-
limitTagsOnMultiSelect: 0,
|
|
207
|
-
onInputChange: e => {
|
|
208
|
-
var _e$inputValue2;
|
|
209
|
-
field.onChange((_e$inputValue2 = e === null || e === void 0 ? void 0 : e.inputValue) !== null && _e$inputValue2 !== void 0 ? _e$inputValue2 : '');
|
|
210
|
-
},
|
|
211
|
-
options: item.options,
|
|
212
|
-
placeHolder: "Type...",
|
|
213
|
-
shape: "round",
|
|
214
|
-
size: "small",
|
|
215
|
-
text: item.label,
|
|
216
|
-
width: "300px"
|
|
217
|
-
}));
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
}))), /*#__PURE__*/_react.default.createElement(_Modal2.SubmitButton, {
|
|
221
|
-
type: "submit"
|
|
222
|
-
})));
|
|
223
|
-
};
|
|
224
|
-
var _default = exports.default = ModalTotalBenchmark;
|
|
@@ -1,139 +0,0 @@
|
|
|
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 _reactHookForm = require("react-hook-form");
|
|
11
|
-
var _Modal = _interopRequireDefault(require("./Modal"));
|
|
12
|
-
var _CodeEditor = _interopRequireDefault(require("./CodeEditor"));
|
|
13
|
-
var _TextField = _interopRequireDefault(require("../TextField"));
|
|
14
|
-
var _Dropdown = _interopRequireDefault(require("./Dropdown"));
|
|
15
|
-
var _Modal2 = require("./Modal.style");
|
|
16
|
-
const ModalTotalCost = _ref => {
|
|
17
|
-
let {
|
|
18
|
-
title,
|
|
19
|
-
isModalOpen,
|
|
20
|
-
setModalOpen,
|
|
21
|
-
setResult
|
|
22
|
-
} = _ref;
|
|
23
|
-
const [params, setParams] = (0, _react.useState)([{
|
|
24
|
-
id: 'title',
|
|
25
|
-
label: 'Title',
|
|
26
|
-
type: 'text'
|
|
27
|
-
}, {
|
|
28
|
-
id: 'dotCut',
|
|
29
|
-
label: 'Do Cut',
|
|
30
|
-
type: 'select',
|
|
31
|
-
options: ['true', 'false']
|
|
32
|
-
}, {
|
|
33
|
-
id: 'currency',
|
|
34
|
-
label: 'Currency',
|
|
35
|
-
type: 'select',
|
|
36
|
-
options: ['true', 'false']
|
|
37
|
-
}, {
|
|
38
|
-
id: 'currencyType',
|
|
39
|
-
label: 'Currency Type',
|
|
40
|
-
type: 'select',
|
|
41
|
-
options: ['USD', 'EUR', 'ILS', 'GBP', 'JPY']
|
|
42
|
-
}, {
|
|
43
|
-
id: 'width',
|
|
44
|
-
label: 'Width',
|
|
45
|
-
type: 'text'
|
|
46
|
-
}, {
|
|
47
|
-
id: 'height',
|
|
48
|
-
label: 'Height',
|
|
49
|
-
type: 'text'
|
|
50
|
-
}, {
|
|
51
|
-
id: 'textColor',
|
|
52
|
-
label: 'Text Color',
|
|
53
|
-
type: 'text'
|
|
54
|
-
}, {
|
|
55
|
-
id: 'noDataText',
|
|
56
|
-
label: 'No Data Text',
|
|
57
|
-
type: 'text'
|
|
58
|
-
}]);
|
|
59
|
-
const [code, setCode] = (0, _react.useState)('Select PACKAGE_COST,REDEMPTION_COST,(PACKAGE_COST+REDEMPTION_COST) AS TOTAL_COST,from FACT_EVENT_MEASURES A INNER JOIN DIM_EVENTS B ON A.EVENT_CODE = B.EVENT_CODE');
|
|
60
|
-
const {
|
|
61
|
-
register,
|
|
62
|
-
handleSubmit,
|
|
63
|
-
watch,
|
|
64
|
-
control,
|
|
65
|
-
formState: {
|
|
66
|
-
errors
|
|
67
|
-
}
|
|
68
|
-
} = (0, _reactHookForm.useForm)();
|
|
69
|
-
const onSubmit = data => setResult(data);
|
|
70
|
-
return /*#__PURE__*/_react.default.createElement("form", {
|
|
71
|
-
onSubmit: handleSubmit(onSubmit)
|
|
72
|
-
}, /*#__PURE__*/_react.default.createElement(_Modal.default, {
|
|
73
|
-
isOpen: isModalOpen,
|
|
74
|
-
onClose: () => setModalOpen(false)
|
|
75
|
-
}, /*#__PURE__*/_react.default.createElement("h2", null, title), /*#__PURE__*/_react.default.createElement("div", {
|
|
76
|
-
style: {
|
|
77
|
-
gap: '10px',
|
|
78
|
-
display: 'grid'
|
|
79
|
-
}
|
|
80
|
-
}, /*#__PURE__*/_react.default.createElement(_CodeEditor.default, {
|
|
81
|
-
value: code,
|
|
82
|
-
onChange: setCode
|
|
83
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
84
|
-
style: {
|
|
85
|
-
gap: '10px',
|
|
86
|
-
display: 'grid',
|
|
87
|
-
gridTemplateColumns: 'auto auto auto'
|
|
88
|
-
}
|
|
89
|
-
}, params.map(item => {
|
|
90
|
-
if (item.type === 'text') {
|
|
91
|
-
return /*#__PURE__*/_react.default.createElement(_reactHookForm.Controller, {
|
|
92
|
-
control: control,
|
|
93
|
-
name: item.id,
|
|
94
|
-
render: _ref2 => {
|
|
95
|
-
let {
|
|
96
|
-
field
|
|
97
|
-
} = _ref2;
|
|
98
|
-
return /*#__PURE__*/_react.default.createElement(_TextField.default, Object.assign({}, field, {
|
|
99
|
-
allowedInput: "all",
|
|
100
|
-
height: "100%",
|
|
101
|
-
label: item.label,
|
|
102
|
-
multiline: true,
|
|
103
|
-
placeHolder: "Type...",
|
|
104
|
-
shape: "round",
|
|
105
|
-
size: "small",
|
|
106
|
-
width: "300px"
|
|
107
|
-
}));
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
return /*#__PURE__*/_react.default.createElement(_reactHookForm.Controller, {
|
|
112
|
-
control: control,
|
|
113
|
-
name: item.id,
|
|
114
|
-
render: _ref3 => {
|
|
115
|
-
let {
|
|
116
|
-
field
|
|
117
|
-
} = _ref3;
|
|
118
|
-
return /*#__PURE__*/_react.default.createElement(_Dropdown.default, Object.assign({}, field, {
|
|
119
|
-
allowedInput: "all",
|
|
120
|
-
labelColor: "#1B30AA",
|
|
121
|
-
limitTagsOnMultiSelect: 0,
|
|
122
|
-
onInputChange: e => {
|
|
123
|
-
var _e$inputValue;
|
|
124
|
-
field.onChange((_e$inputValue = e === null || e === void 0 ? void 0 : e.inputValue) !== null && _e$inputValue !== void 0 ? _e$inputValue : '');
|
|
125
|
-
},
|
|
126
|
-
options: item.options,
|
|
127
|
-
placeHolder: "Type...",
|
|
128
|
-
shape: "round",
|
|
129
|
-
size: "small",
|
|
130
|
-
text: item.label,
|
|
131
|
-
width: "300px"
|
|
132
|
-
}));
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
}))), /*#__PURE__*/_react.default.createElement(_Modal2.SubmitButton, {
|
|
136
|
-
type: "submit"
|
|
137
|
-
})));
|
|
138
|
-
};
|
|
139
|
-
var _default = exports.default = ModalTotalCost;
|