sag_components 2.0.0-beta26 → 2.0.0-beta28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.js +56 -0
- package/dist/App.test.js +10 -0
- package/dist/Button.test.js +162 -0
- package/dist/LinkButton.test.js +150 -0
- package/dist/SingleBar.test.js +120 -0
- package/dist/index.esm.js +4257 -4248
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +323 -314
- package/dist/index.js.map +1 -1
- package/dist/setupTests.js +15 -0
- package/dist/stories/AttachedFile.stories.js +37 -0
- package/dist/stories/AutocompleteField.stories.js +25 -0
- package/dist/stories/BannerEventBox.stories.js +59 -0
- package/dist/stories/BannerEventBoxList.stories.js +39 -0
- package/dist/stories/BannerEventBoxTest.stories.js +27 -0
- package/dist/stories/BannersDropdown.stories.js +64 -0
- package/dist/stories/BarChart.stories.js +306 -0
- package/dist/stories/BarChartTwoRows.stories.js +259 -0
- package/dist/stories/BarChartWithAreaChart.stories.js +134 -0
- package/dist/stories/BarChartsByWeeks.stories.js +445 -0
- package/dist/stories/Benchmark.stories.js +147 -0
- package/dist/stories/Button.stories.js +255 -0
- package/dist/stories/CampaignDemoReport.stories.js +65 -0
- package/dist/stories/CampaignTool/Card.stories.js +92 -0
- package/dist/stories/CampaignTool/MultipleCard.stories.js +33 -0
- package/dist/stories/CampaignTool/PageFilterBar.stories.js +28 -0
- package/dist/stories/CampaignTool/Popup.stories.js +697 -0
- package/dist/stories/CampaignTool/PopupContent.stories.js +284 -0
- package/dist/stories/CampaignTool/Table.stories.js +104 -0
- package/dist/stories/CheckBox.stories.js +107 -0
- package/dist/stories/CheckBoxButton.stories.js +150 -0
- package/dist/stories/CollapseData.stories.js +125 -0
- package/dist/stories/CollapseHeader.stories.js +123 -0
- package/dist/stories/CollapseMenuItem.stories.js +134 -0
- package/dist/stories/Datepicker.stories.js +85 -0
- package/dist/stories/DialogOverlay.stories.js +39 -0
- package/dist/stories/DoublePanelDataRow.stories.js +116 -0
- package/dist/stories/DownloadProgress.stories.js +109 -0
- package/dist/stories/Dropdown.stories.js +318 -0
- package/dist/stories/DropdownMulti.stories.js +220 -0
- package/dist/stories/DropdownNew.stories.js +407 -0
- package/dist/stories/EventDetailsCard.stories.js +122 -0
- package/dist/stories/EventList.stories.js +84 -0
- package/dist/stories/EventListItem.stories.js +65 -0
- package/dist/stories/FilterButton.stories.js +90 -0
- package/dist/stories/FilterContainer.stories.js +22 -0
- package/dist/stories/FilterPanel.stories.js +967 -0
- package/dist/stories/FormattedValue.stories.js +183 -0
- package/dist/stories/Heatmap.stories.js +118 -0
- package/dist/stories/IconButton.stories.js +126 -0
- package/dist/stories/Input.stories.js +422 -0
- package/dist/stories/InputOld.stories.js +103 -0
- package/dist/stories/KpiFilter.stories.js +401 -0
- package/dist/stories/LinkButton.stories.js +171 -0
- package/dist/stories/LinnerDataBox.stories.js +79 -0
- package/dist/stories/ListBox.stories.js +132 -0
- package/dist/stories/MarketShareDescription.stories.js +196 -0
- package/dist/stories/MonthPicker.stories.js +142 -0
- package/dist/stories/NewInput.stories.js +37 -0
- package/dist/stories/NoDataFoundMessage.stories.js +66 -0
- package/dist/stories/OneColumnContainer.stories.js +119 -0
- package/dist/stories/PerformanceAnalytics.stories.js +263 -0
- package/dist/stories/PerformanceAnalyticsLegend.stories.js +99 -0
- package/dist/stories/PerformanceAnalyticsOneColumn.stories.js +236 -0
- package/dist/stories/PerformanceAnalyticsTotals.stories.js +109 -0
- package/dist/stories/PieChart.stories.js +215 -0
- package/dist/stories/PopupCharts.stories.js +1191 -0
- package/dist/stories/ProductsVariety.stories.js +90 -0
- package/dist/stories/ProgressBar.stories.js +71 -0
- package/dist/stories/QuarterPicker.stories.js +142 -0
- package/dist/stories/QuickFilter.stories.js +275 -0
- package/dist/stories/RangePicker.stories.js +140 -0
- package/dist/stories/ReportTable.stories.js +255 -0
- package/dist/stories/SagButton.stories.js +118 -0
- package/dist/stories/SagIconButton.stories.js +122 -0
- package/dist/stories/SagInput.stories.js +69 -0
- package/dist/stories/SalesAndROI.stories.js +166 -0
- package/dist/stories/SalesSplit.stories.js +122 -0
- package/dist/stories/SearchInput.stories.js +44 -0
- package/dist/stories/SegmentedButton.stories.js +181 -0
- package/dist/stories/Select.stories.js +201 -0
- package/dist/stories/SingleBarLineCharts.stories.js +310 -0
- package/dist/stories/TabMenu.stories.js +224 -0
- package/dist/stories/TextField.stories.js +160 -0
- package/dist/stories/TitleDescription.stories.js +116 -0
- package/dist/stories/TopToggleList.stories.js +52 -0
- package/dist/stories/TotalBenchmark.stories.js +135 -0
- package/dist/stories/TotalBenchmarkAreachart.stories.js +341 -0
- package/dist/stories/TotalBenchmarkArrows.stories.js +170 -0
- package/dist/stories/TotalBenchmarkBarchart.stories.js +183 -0
- package/dist/stories/TotalDoughnutChart.stories.js +301 -0
- package/dist/stories/TotalHorizontalCharts.stories.js +291 -0
- package/dist/stories/TwoBarCharts.stories.js +185 -0
- package/dist/stories/components/AttachedFile.js +60 -0
- package/dist/stories/components/AttachedFile.style.js +48 -0
- package/dist/stories/components/AutocompleteField.js +40 -0
- package/dist/stories/components/AutocompleteField.style.js +55 -0
- package/dist/stories/components/BannerEventBox.js +97 -0
- package/dist/stories/components/BannerEventBox.style.js +78 -0
- package/dist/stories/components/BannerEventBoxList.js +153 -0
- package/dist/stories/components/BannerEventBoxList.style.js +189 -0
- package/dist/stories/components/BannerEventBoxTest.js +42 -0
- package/dist/stories/components/BannerEventBoxTest.style.js +11 -0
- package/dist/stories/components/BannersDropdown.js +119 -0
- package/dist/stories/components/BannersDropdown.style.js +99 -0
- package/dist/stories/components/BarChart.js +258 -0
- package/dist/stories/components/BarChart.style.js +60 -0
- package/dist/stories/components/BarChartTwoRows.js +220 -0
- package/dist/stories/components/BarChartTwoRows.style.js +79 -0
- package/dist/stories/components/BarChartWithAreaChart.js +268 -0
- package/dist/stories/components/BarChartWithAreaChart.style.js +67 -0
- package/dist/stories/components/BarChartsByWeeks.js +306 -0
- package/dist/stories/components/BarChartsByWeeks.style.js +96 -0
- package/dist/stories/components/Benchmark.js +130 -0
- package/dist/stories/components/Benchmark.style.js +61 -0
- package/dist/stories/components/Button.js +255 -0
- package/dist/stories/components/Button.style.js +90 -0
- package/dist/stories/components/CampaignTool/CampaignDemoReport.js +48 -0
- package/dist/stories/components/CampaignTool/CampaignDemoReport.style.js +48 -0
- package/dist/stories/components/CampaignTool/Card.js +72 -0
- package/dist/stories/components/CampaignTool/Card.style.js +65 -0
- package/dist/stories/components/CampaignTool/FormInput.js +41 -0
- package/dist/stories/components/CampaignTool/FormSelect.js +42 -0
- package/dist/stories/components/CampaignTool/MultipleCard.js +26 -0
- package/dist/stories/components/CampaignTool/MultipleCard.style.js +13 -0
- package/dist/stories/components/CampaignTool/PageFilterBar.js +23 -0
- package/dist/stories/components/CampaignTool/PageFilterBar.style.js +22 -0
- package/dist/stories/components/CampaignTool/Popup.js +172 -0
- package/dist/stories/components/CampaignTool/Popup.style.js +122 -0
- package/dist/stories/components/CampaignTool/PopupContent.js +111 -0
- package/dist/stories/components/CampaignTool/PopupContent.style.js +74 -0
- package/dist/stories/components/CampaignTool/PopupFieldsRules.js +168 -0
- package/dist/stories/components/CampaignTool/Table.js +195 -0
- package/dist/stories/components/CampaignTool/Table.style.js +86 -0
- package/dist/stories/components/CheckBox.js +76 -0
- package/dist/stories/components/CheckBox.style.js +36 -0
- package/dist/stories/components/CheckBoxButton.js +69 -0
- package/dist/stories/components/CheckBoxButton.style.js +39 -0
- package/dist/stories/components/CodeEditor.js +43 -0
- package/dist/stories/components/CodeEditor.style.js +13 -0
- package/dist/stories/components/CollapseData.js +66 -0
- package/dist/stories/components/CollapseData.style.js +127 -0
- package/dist/stories/components/CollapseHeader.js +255 -0
- package/dist/stories/components/CollapseHeader.style.js +200 -0
- package/dist/stories/components/CollapseMenuItem.js +61 -0
- package/dist/stories/components/CollapseMenuItem.style.js +61 -0
- package/dist/stories/components/CommonFunctions.js +99 -0
- package/dist/stories/components/Datepicker.js +148 -0
- package/dist/stories/components/Datepicker.style.js +19 -0
- package/dist/stories/components/DialogOverlay.js +44 -0
- package/dist/stories/components/DialogOverlay.style.js +70 -0
- package/dist/stories/components/DoublePanelDataRow.js +70 -0
- package/dist/stories/components/DoublePanelDataRow.style.js +66 -0
- package/dist/stories/components/DownloadProgress.js +97 -0
- package/dist/stories/components/DownloadProgress.style.js +51 -0
- package/dist/stories/components/Dropdown.js +231 -0
- package/dist/stories/components/Dropdown.style.js +17 -0
- package/dist/stories/components/DropdownMulti.js +290 -0
- package/dist/stories/components/DropdownMulti.style.js +17 -0
- package/dist/stories/components/DropdownMultiNew.js +292 -0
- package/dist/stories/components/DropdownMultiNew.style.js +218 -0
- package/dist/stories/components/DropdownNew.js +98 -0
- package/dist/stories/components/DropdownNew.style.js +21 -0
- package/dist/stories/components/DropdownSingleNew.js +256 -0
- package/dist/stories/components/DropdownSingleNew.style.js +189 -0
- package/dist/stories/components/EventDetailsCard.js +142 -0
- package/dist/stories/components/EventDetailsCard.style.js +62 -0
- package/dist/stories/components/EventList.js +61 -0
- package/dist/stories/components/EventList.style.js +38 -0
- package/dist/stories/components/EventListItem.js +50 -0
- package/dist/stories/components/EventListItem.style.js +47 -0
- package/dist/stories/components/FilterButton.js +53 -0
- package/dist/stories/components/FilterButton.style.js +12 -0
- package/dist/stories/components/FilterContainer.js +29 -0
- package/dist/stories/components/FilterContainer.style.js +30 -0
- package/dist/stories/components/FilterPanel.js +614 -0
- package/dist/stories/components/FilterPanel.style.js +89 -0
- package/dist/stories/components/FormattedValue.js +69 -0
- package/dist/stories/components/FormattedValue.style.js +91 -0
- package/dist/stories/components/Heatmap.js +184 -0
- package/dist/stories/components/Heatmap.style.js +151 -0
- package/dist/stories/components/IconButton.js +147 -0
- package/dist/stories/components/IconButton.style.js +64 -0
- package/dist/stories/components/Input.js +186 -0
- package/dist/stories/components/Input.style.js +132 -0
- package/dist/stories/components/InputOld.js +93 -0
- package/dist/stories/components/InputOld.style.js +71 -0
- package/dist/stories/components/KpiFilter.js +345 -0
- package/dist/stories/components/KpiFilter.style.js +132 -0
- package/dist/stories/components/LinkButton.js +225 -0
- package/dist/stories/components/LinkButton.style.js +53 -0
- package/dist/stories/components/LinnerDataBox.js +54 -0
- package/dist/stories/components/LinnerDataBox.style.js +68 -0
- package/dist/stories/components/ListBox.js +82 -0
- package/dist/stories/components/ListBox.style.js +48 -0
- package/dist/stories/components/MarketShareDescription.js +109 -0
- package/dist/stories/components/MarketShareDescription.style.js +215 -0
- package/dist/stories/components/Modal.js +21 -0
- package/dist/stories/components/Modal.style.js +63 -0
- package/dist/stories/components/ModalTotalBenchmark.js +224 -0
- package/dist/stories/components/ModalTotalCost.js +139 -0
- package/dist/stories/components/MonthPicker.js +169 -0
- package/dist/stories/components/MonthPicker.style.js +105 -0
- package/dist/stories/components/MonthPopupPicker.js +206 -0
- package/dist/stories/components/NewInput.js +33 -0
- package/dist/stories/components/NewInput.style.js +13 -0
- package/dist/stories/components/NoDataFoundMessage.js +30 -0
- package/dist/stories/components/NoDataFoundMessage.style.js +39 -0
- package/dist/stories/components/OneColumnContainer.js +121 -0
- package/dist/stories/components/OneColumnContainer.style.js +107 -0
- package/dist/stories/components/PerformanceAnalytics.js +447 -0
- package/dist/stories/components/PerformanceAnalytics.style.js +144 -0
- package/dist/stories/components/PerformanceAnalyticsLegend.js +59 -0
- package/dist/stories/components/PerformanceAnalyticsLegend.style.js +63 -0
- package/dist/stories/components/PerformanceAnalyticsOneColumn.js +327 -0
- package/dist/stories/components/PerformanceAnalyticsOneColumn.style.js +116 -0
- package/dist/stories/components/PerformanceAnalyticsTotals.js +70 -0
- package/dist/stories/components/PerformanceAnalyticsTotals.style.js +89 -0
- package/dist/stories/components/PieChart.js +154 -0
- package/dist/stories/components/PieChart.style.js +154 -0
- package/dist/stories/components/PopupCharts.js +244 -0
- package/dist/stories/components/PopupCharts.style.js +108 -0
- package/dist/stories/components/ProductsVariety.js +94 -0
- package/dist/stories/components/ProductsVariety.style.js +86 -0
- package/dist/stories/components/ProgressBar.js +52 -0
- package/dist/stories/components/ProgressBar.style.js +24 -0
- package/dist/stories/components/QuarterPicker.js +168 -0
- package/dist/stories/components/QuarterPicker.style.js +104 -0
- package/dist/stories/components/QuarterPopupPicker.js +186 -0
- package/dist/stories/components/QuickFilter.js +78 -0
- package/dist/stories/components/QuickFilter.style.js +21 -0
- package/dist/stories/components/QuickFilterDropdownMultiSelection.js +299 -0
- package/dist/stories/components/QuickFilterDropdownMultiSelection.style.js +194 -0
- package/dist/stories/components/QuickFilterDropdownSingle.js +229 -0
- package/dist/stories/components/QuickFilterDropdownSingle.style.js +139 -0
- package/dist/stories/components/RangeDatePicker.js +231 -0
- package/dist/stories/components/RangePicker.js +179 -0
- package/dist/stories/components/RangePicker.style.js +109 -0
- package/dist/stories/components/ReportTable.js +420 -0
- package/dist/stories/components/ReportTable.style.js +306 -0
- package/dist/stories/components/SagButton.js +68 -0
- package/dist/stories/components/SagButton.style.js +47 -0
- package/dist/stories/components/SagIconButton.js +130 -0
- package/dist/stories/components/SagIconButton.style.js +30 -0
- package/dist/stories/components/SagInput.js +53 -0
- package/dist/stories/components/SagInput.style.js +41 -0
- package/dist/stories/components/SalesAndROI.js +89 -0
- package/dist/stories/components/SalesAndROI.style.js +111 -0
- package/dist/stories/components/SalesSplit.js +153 -0
- package/dist/stories/components/SalesSplit.style.js +150 -0
- package/dist/stories/components/SearchInput.js +39 -0
- package/dist/stories/components/SearchInput.style.js +37 -0
- package/dist/stories/components/SegmentedButton.js +124 -0
- package/dist/stories/components/SegmentedButton.style.js +100 -0
- package/dist/stories/components/Select.js +137 -0
- package/dist/stories/components/Select.style.js +104 -0
- package/dist/stories/components/SingleBarLineCharts.js +415 -0
- package/dist/stories/components/SingleBarLineCharts.style.js +101 -0
- package/dist/stories/components/TabMenu.js +241 -0
- package/dist/stories/components/TabMenu.style.js +120 -0
- package/dist/stories/components/TextField.js +209 -0
- package/dist/stories/components/TextField.style.js +18 -0
- package/dist/stories/components/TitleDescription.js +272 -0
- package/dist/stories/components/TitleDescription.style.js +222 -0
- package/dist/stories/components/Tooltip.js +44 -0
- package/dist/stories/components/Tooltip.style.js +103 -0
- package/dist/stories/components/TopToggleList.js +46 -0
- package/dist/stories/components/TopToggleList.style.js +51 -0
- package/dist/stories/components/TotalBenchmark.js +97 -0
- package/dist/stories/components/TotalBenchmark.style.js +79 -0
- package/dist/stories/components/TotalBenchmarkAreachart.js +342 -0
- package/dist/stories/components/TotalBenchmarkAreachart.style.js +171 -0
- package/dist/stories/components/TotalBenchmarkArrows.js +149 -0
- package/dist/stories/components/TotalBenchmarkArrows.style.js +108 -0
- package/dist/stories/components/TotalBenchmarkBarchart.js +165 -0
- package/dist/stories/components/TotalBenchmarkBarchart.style.js +77 -0
- package/dist/stories/components/TotalDoughnutChart.js +187 -0
- package/dist/stories/components/TotalDoughnutChart.style.js +178 -0
- package/dist/stories/components/TotalHorizontalCharts.js +236 -0
- package/dist/stories/components/TotalHorizontalCharts.style.js +93 -0
- package/dist/stories/components/TspanTooltip.js +33 -0
- package/dist/stories/components/TspanTooltip.style.js +105 -0
- package/dist/stories/components/TwoBarCharts.js +211 -0
- package/dist/stories/components/TwoBarCharts.style.js +60 -0
- package/dist/stories/components/icons/ArrowDownIcon.js +27 -0
- package/dist/stories/components/icons/ArrowDropDownIcon.js +27 -0
- package/dist/stories/components/icons/ArrowSelectIcon.js +28 -0
- package/dist/stories/components/icons/ArrowUpIcon.js +27 -0
- package/dist/stories/components/icons/AttachedIcon.js +27 -0
- package/dist/stories/components/icons/BellIcon.js +27 -0
- package/dist/stories/components/icons/ButtonArrowRight.js +27 -0
- package/dist/stories/components/icons/Calendar.js +20 -0
- package/dist/stories/components/icons/CalendarIcon.js +27 -0
- package/dist/stories/components/icons/CalendarInOpen.js +26 -0
- package/dist/stories/components/icons/CheckBoxButtonCheckedIcon.js +28 -0
- package/dist/stories/components/icons/CheckBoxCheckedIcon.js +28 -0
- package/dist/stories/components/icons/CheckBoxNotCheckedIcon.js +28 -0
- package/dist/stories/components/icons/ChervronLeftIcon.js +20 -0
- package/dist/stories/components/icons/ChervronRightIcon.js +20 -0
- package/dist/stories/components/icons/ChevronLeftIcon.js +29 -0
- package/dist/stories/components/icons/ChevronRightIcon.js +29 -0
- package/dist/stories/components/icons/ClockIcon.js +27 -0
- package/dist/stories/components/icons/CloseIcon.js +27 -0
- package/dist/stories/components/icons/CloseXIcon.js +27 -0
- package/dist/stories/components/icons/ComboBoxArrowDownIcon.js +28 -0
- package/dist/stories/components/icons/ComboBoxArrowUpIcon.js +28 -0
- package/dist/stories/components/icons/DocumentIcon.js +48 -0
- package/dist/stories/components/icons/DownloadIcon.js +27 -0
- package/dist/stories/components/icons/Duplicate.js +28 -0
- package/dist/stories/components/icons/ErrorIcon.js +28 -0
- package/dist/stories/components/icons/ExitIcon.js +28 -0
- package/dist/stories/components/icons/ExportIcon.js +28 -0
- package/dist/stories/components/icons/EyeIcon.js +28 -0
- package/dist/stories/components/icons/FileIcon.js +27 -0
- package/dist/stories/components/icons/FilterIcon.js +36 -0
- package/dist/stories/components/icons/FlyIcon.js +28 -0
- package/dist/stories/components/icons/FoodLionChartIcon.js +42 -0
- package/dist/stories/components/icons/FoodLionIcon.js +3076 -0
- package/dist/stories/components/icons/FoodLionNewIcon.js +39 -0
- package/dist/stories/components/icons/GiantFoodChartIcon.js +40 -0
- package/dist/stories/components/icons/GiantFoodIcon.js +1976 -0
- package/dist/stories/components/icons/GiantFoodIcon_new.js +42 -0
- package/dist/stories/components/icons/HannafordChartIcon.js +40 -0
- package/dist/stories/components/icons/HannafordIcon.js +5017 -0
- package/dist/stories/components/icons/HannafordIcon_new.js +41 -0
- package/dist/stories/components/icons/HannafordNewIcon.js +213 -0
- package/dist/stories/components/icons/InfoIcon.js +28 -0
- package/dist/stories/components/icons/LampIcon.js +30 -0
- package/dist/stories/components/icons/LegendLineIcon.js +29 -0
- package/dist/stories/components/icons/LegendUnionIcon.js +29 -0
- package/dist/stories/components/icons/MaintenanceIcon.js +28 -0
- package/dist/stories/components/icons/MenuItemClosedIcon.js +28 -0
- package/dist/stories/components/icons/MenuItemOpenIcon.js +28 -0
- package/dist/stories/components/icons/MenuItemRightIcon.js +28 -0
- package/dist/stories/components/icons/MenuItemUpIcon.js +28 -0
- package/dist/stories/components/icons/NoDataFoundIcon.js +86 -0
- package/dist/stories/components/icons/OptionsIcon.js +27 -0
- package/dist/stories/components/icons/ReselectIcon.js +27 -0
- package/dist/stories/components/icons/SearchIcon.js +27 -0
- package/dist/stories/components/icons/ShoppingCartIcon.js +45 -0
- package/dist/stories/components/icons/ShoutIcon.js +27 -0
- package/dist/stories/components/icons/Sort.js +13 -0
- package/dist/stories/components/icons/SortIcon.js +35 -0
- package/dist/stories/components/icons/SpotlightProductIcon.js +28 -0
- package/dist/stories/components/icons/StopAndShopChartIcon.js +42 -0
- package/dist/stories/components/icons/StopAndShopIcon.js +134 -0
- package/dist/stories/components/icons/StopAndShopNewIcon.js +41 -0
- package/dist/stories/components/icons/SucceededIcon.js +28 -0
- package/dist/stories/components/icons/TheGiantCompanyChartIcon.js +40 -0
- package/dist/stories/components/icons/TheGiantCompanyIcon.js +40 -0
- package/dist/stories/components/icons/TheGiantCompanyIcon_old.js +1831 -0
- package/dist/stories/components/icons/TheGiantCompanyNewIcon.js +39 -0
- package/dist/stories/utils/ComponentFactory.js +65 -0
- package/dist/stories/utils/IconsHandler.js +150 -0
- package/dist/stories/utils/IconsHandler.style.js +16 -0
- package/dist/stories/utils/regex/Email.regex.js +7 -0
- package/dist/stories/utils/regex/LatinWithSpaces.regex.js +7 -0
- package/dist/stories/utils/regex/OnlyEnglishLetters.regex.js +7 -0
- package/dist/stories/utils/regex/Phone.regex.js +7 -0
- package/dist/types/components/LinnerDataBox/LinnerDataBox.data.d.ts +23 -0
- package/dist/vite.config.js +15 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var React = require('react');
|
|
5
|
+
var React$1 = require('react');
|
|
6
6
|
var recharts = require('recharts');
|
|
7
7
|
var Skeleton = require('react-loading-skeleton');
|
|
8
8
|
var framerMotion = require('framer-motion');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
11
|
|
|
12
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React$1);
|
|
13
13
|
var Skeleton__default = /*#__PURE__*/_interopDefaultLegacy(Skeleton);
|
|
14
14
|
|
|
15
15
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -2157,7 +2157,7 @@ var f = "undefined" != typeof process && void 0 !== process.env && (process.env.
|
|
|
2157
2157
|
console.error = function (t) {
|
|
2158
2158
|
for (var n = [], r = 1; r < arguments.length; r++) n[r - 1] = arguments[r];
|
|
2159
2159
|
E.test(t) ? (a = !1, N.delete(s)) : i.apply(void 0, __spreadArray([t], n, !1));
|
|
2160
|
-
}, React.useRef(), a && !N.has(s) && (console.warn(s), N.add(s));
|
|
2160
|
+
}, React$1.useRef(), a && !N.has(s) && (console.warn(s), N.add(s));
|
|
2161
2161
|
} catch (e) {
|
|
2162
2162
|
E.test(e.message) && N.delete(s);
|
|
2163
2163
|
} finally {
|
|
@@ -2577,7 +2577,7 @@ var Me = new ke(),
|
|
|
2577
2577
|
});
|
|
2578
2578
|
$e.Consumer;
|
|
2579
2579
|
function Ge() {
|
|
2580
|
-
return React.useContext($e);
|
|
2580
|
+
return React$1.useContext($e);
|
|
2581
2581
|
}
|
|
2582
2582
|
var qe = function () {
|
|
2583
2583
|
function e(e, t) {
|
|
@@ -2716,7 +2716,7 @@ function it(e, o, s) {
|
|
|
2716
2716
|
f = React__default["default"].useContext(et),
|
|
2717
2717
|
m = Ge(),
|
|
2718
2718
|
y = e.shouldForwardProp || m.shouldForwardProp;
|
|
2719
|
-
"production" !== process.env.NODE_ENV && React.useDebugValue(d);
|
|
2719
|
+
"production" !== process.env.NODE_ENV && React$1.useDebugValue(d);
|
|
2720
2720
|
var v = I(o, f, c) || C,
|
|
2721
2721
|
g = function (e, n, r) {
|
|
2722
2722
|
for (var o, s = __assign(__assign({}, n), {
|
|
@@ -2734,11 +2734,11 @@ function it(e, o, s) {
|
|
|
2734
2734
|
var E = function (e, t) {
|
|
2735
2735
|
var n = Ge(),
|
|
2736
2736
|
r = e.generateAndInjectStyles(t, n.styleSheet, n.stylis);
|
|
2737
|
-
return "production" !== process.env.NODE_ENV && React.useDebugValue(r), r;
|
|
2737
|
+
return "production" !== process.env.NODE_ENV && React$1.useDebugValue(r), r;
|
|
2738
2738
|
}(a, g);
|
|
2739
2739
|
"production" !== process.env.NODE_ENV && e.warnTooManyClasses && e.warnTooManyClasses(E);
|
|
2740
2740
|
var N = ie(p, d);
|
|
2741
|
-
return E && (N += " " + E), g.className && (N += " " + g.className), w[L(S) && !A.has(S) ? "class" : "className"] = N, s && (w.ref = s), /*#__PURE__*/React.createElement(S, w);
|
|
2741
|
+
return E && (N += " " + E), g.className && (N += " " + g.className), w[L(S) && !A.has(S) ? "class" : "className"] = N, s && (w.ref = s), /*#__PURE__*/React$1.createElement(S, w);
|
|
2742
2742
|
}(D, e, o);
|
|
2743
2743
|
}
|
|
2744
2744
|
O.displayName = y;
|
|
@@ -3159,8 +3159,8 @@ const Button = _ref => {
|
|
|
3159
3159
|
rightIcon = 'none',
|
|
3160
3160
|
isSubmitButton = false
|
|
3161
3161
|
} = _ref;
|
|
3162
|
-
const [clicked, setClicked] = React.useState(false);
|
|
3163
|
-
const [hover, setHover] = React.useState(false);
|
|
3162
|
+
const [clicked, setClicked] = React$1.useState(false);
|
|
3163
|
+
const [hover, setHover] = React$1.useState(false);
|
|
3164
3164
|
const handleSubmitButtonOnClick = () => {
|
|
3165
3165
|
setClicked(true);
|
|
3166
3166
|
onClick(`SubmitButtonOnClick: ${text}`);
|
|
@@ -3887,7 +3887,7 @@ const Tooltip$1 = props => {
|
|
|
3887
3887
|
topFactor
|
|
3888
3888
|
} = props;
|
|
3889
3889
|
let timeout;
|
|
3890
|
-
const [active, setActive] = React.useState(false);
|
|
3890
|
+
const [active, setActive] = React$1.useState(false);
|
|
3891
3891
|
const showTip = () => {
|
|
3892
3892
|
timeout = setTimeout(() => {
|
|
3893
3893
|
setActive(true);
|
|
@@ -4071,7 +4071,7 @@ const PieChart = props => {
|
|
|
4071
4071
|
textAfterValue,
|
|
4072
4072
|
noDataText
|
|
4073
4073
|
} = props;
|
|
4074
|
-
const DoughnutChartContainerRef = React.useRef();
|
|
4074
|
+
const DoughnutChartContainerRef = React$1.useRef();
|
|
4075
4075
|
const dotCutTrenty = row => {
|
|
4076
4076
|
if (!row || !row.value) return null;
|
|
4077
4077
|
let valueNew = 0;
|
|
@@ -4527,8 +4527,8 @@ const BannersDropdown = props => {
|
|
|
4527
4527
|
banners,
|
|
4528
4528
|
onClick
|
|
4529
4529
|
} = props;
|
|
4530
|
-
const [processedBanners, setProcessedBanners] = React.useState([]);
|
|
4531
|
-
React.useEffect(() => {
|
|
4530
|
+
const [processedBanners, setProcessedBanners] = React$1.useState([]);
|
|
4531
|
+
React$1.useEffect(() => {
|
|
4532
4532
|
const formatedBanners = banners?.map(banner => {
|
|
4533
4533
|
if (banner.name === 'StopAndShop') {
|
|
4534
4534
|
return {
|
|
@@ -4569,16 +4569,16 @@ const BannersDropdown = props => {
|
|
|
4569
4569
|
});
|
|
4570
4570
|
setProcessedBanners(formatedBanners);
|
|
4571
4571
|
}, []);
|
|
4572
|
-
const [toggled, setToggled] = React.useState(false);
|
|
4573
|
-
const [bannerButtonText, setBannerButtonText] = React.useState('All Banners');
|
|
4574
|
-
const [bannerButtonArrow, setBannerButtonArrow] = React.useState('#2D8DE7');
|
|
4572
|
+
const [toggled, setToggled] = React$1.useState(false);
|
|
4573
|
+
const [bannerButtonText, setBannerButtonText] = React$1.useState('All Banners');
|
|
4574
|
+
const [bannerButtonArrow, setBannerButtonArrow] = React$1.useState('#2D8DE7');
|
|
4575
4575
|
const choosenBanners = index => {
|
|
4576
4576
|
const updatedBanners = [...processedBanners];
|
|
4577
4577
|
updatedBanners[index].checked = !updatedBanners[index].checked;
|
|
4578
4578
|
setProcessedBanners(updatedBanners);
|
|
4579
4579
|
onClick(updatedBanners);
|
|
4580
4580
|
};
|
|
4581
|
-
React.useEffect(() => {
|
|
4581
|
+
React$1.useEffect(() => {
|
|
4582
4582
|
const selectedBanners = processedBanners.filter(banner => !banner.checked);
|
|
4583
4583
|
if (selectedBanners.length < 1) {
|
|
4584
4584
|
setBannerButtonText('All Banners');
|
|
@@ -4742,18 +4742,19 @@ const InfoIcon = _ref => {
|
|
|
4742
4742
|
}));
|
|
4743
4743
|
};
|
|
4744
4744
|
|
|
4745
|
-
const LinkButton =
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4745
|
+
const LinkButton = _ref => {
|
|
4746
|
+
let {
|
|
4747
|
+
text = '',
|
|
4748
|
+
type = 'primary',
|
|
4749
|
+
size = 'small',
|
|
4750
|
+
height = '',
|
|
4751
|
+
width = '',
|
|
4752
|
+
disabled = false,
|
|
4753
|
+
textColor = '',
|
|
4754
|
+
onClick,
|
|
4755
|
+
leftIcon = 'none',
|
|
4756
|
+
rightIcon = 'none'
|
|
4757
|
+
} = _ref;
|
|
4757
4758
|
// const {
|
|
4758
4759
|
// text,
|
|
4759
4760
|
// type,
|
|
@@ -4768,7 +4769,7 @@ const LinkButton = ({
|
|
|
4768
4769
|
// className,
|
|
4769
4770
|
// } = props;
|
|
4770
4771
|
|
|
4771
|
-
const [clicked, setClicked] = React.useState(false);
|
|
4772
|
+
const [clicked, setClicked] = React$1.useState(false);
|
|
4772
4773
|
const handleLinkButtonClick = () => {
|
|
4773
4774
|
setClicked(true);
|
|
4774
4775
|
onClick(text);
|
|
@@ -4960,8 +4961,8 @@ const EventDetailsCard = props => {
|
|
|
4960
4961
|
onBannersDropdownClick,
|
|
4961
4962
|
disableViewDetailsButton
|
|
4962
4963
|
} = props;
|
|
4963
|
-
const [processedBanners, setProcessedBanners] = React.useState([]);
|
|
4964
|
-
React.useEffect(() => {
|
|
4964
|
+
const [processedBanners, setProcessedBanners] = React$1.useState([]);
|
|
4965
|
+
React$1.useEffect(() => {
|
|
4965
4966
|
const formatedBanners = banners.map(banner => {
|
|
4966
4967
|
if (banner === 'StopAndShop') {
|
|
4967
4968
|
return {
|
|
@@ -5154,20 +5155,20 @@ const LinnerDataBox = props => {
|
|
|
5154
5155
|
className,
|
|
5155
5156
|
customDataFormat
|
|
5156
5157
|
} = props;
|
|
5157
|
-
return /*#__PURE__*/
|
|
5158
|
+
return /*#__PURE__*/React.createElement(LinnerContainer$1, {
|
|
5158
5159
|
className: className,
|
|
5159
5160
|
backgroundColor: backgroundColor,
|
|
5160
5161
|
width: width || "100%",
|
|
5161
5162
|
height: height || "200px",
|
|
5162
5163
|
customDataFormat: customDataFormat
|
|
5163
|
-
}, data.map((item, index) => /*#__PURE__*/
|
|
5164
|
+
}, data.map((item, index) => /*#__PURE__*/React.createElement(DataBoxWrap, {
|
|
5164
5165
|
key: `${item.title}`,
|
|
5165
5166
|
width: `${100 / data.length}%`
|
|
5166
|
-
}, /*#__PURE__*/
|
|
5167
|
+
}, /*#__PURE__*/React.createElement(DataBox$1, null, item.title && /*#__PURE__*/React.createElement(DataBoxTitle$1, {
|
|
5167
5168
|
className: "DataBoxTitle"
|
|
5168
|
-
}, item.title), /*#__PURE__*/
|
|
5169
|
+
}, item.title), /*#__PURE__*/React.createElement(DataBoxContent, null, item.value !== null && item.value !== undefined && !isNaN(item.value) && item.value !== "null" && item.value !== "undefined" ? /*#__PURE__*/React.createElement(React.Fragment, null, item.sign && /*#__PURE__*/React.createElement(DataBoxContentSign, null, item.sign), customDataFormat ? /*#__PURE__*/React.createElement(DataBoxContentValue, {
|
|
5169
5170
|
className: "DataBoxValue"
|
|
5170
|
-
}, "".concat(formattedValue(item.value), getFormattedUnits(item.value))) : /*#__PURE__*/
|
|
5171
|
+
}, "".concat(formattedValue(item.value), getFormattedUnits(item.value))) : /*#__PURE__*/React.createElement(DataBoxContentValue, null, "".concat(getFormattedValue(item.value), getFormattedUnits(item.value)))) : /*#__PURE__*/React.createElement(DataBoxContentNoValue, null, "No Data")), item.extraInfo.map(extraInfoItem => /*#__PURE__*/React.createElement(DataBoxExtraInfoCell, null, extraInfoItem.value !== null && extraInfoItem.value !== undefined && /*#__PURE__*/React.createElement(DataBoxExtraInfoCellValue, null, "".concat("$", getFormattedValue(extraInfoItem.value), getFormattedUnits(extraInfoItem.value))), extraInfoItem.value !== null && extraInfoItem.value !== undefined && /*#__PURE__*/React.createElement(DataBoxExtraInfoCellTitle, null, extraInfoItem.title)))), index < data.length - 1 && /*#__PURE__*/React.createElement("div", {
|
|
5171
5172
|
className: "vertival-line",
|
|
5172
5173
|
style: {
|
|
5173
5174
|
width: "1px",
|
|
@@ -5195,7 +5196,7 @@ LinnerDataBox.propTypes = {
|
|
|
5195
5196
|
};
|
|
5196
5197
|
LinnerDataBox.defaultProps = {
|
|
5197
5198
|
className: "",
|
|
5198
|
-
width: "
|
|
5199
|
+
width: "auto",
|
|
5199
5200
|
height: "auto",
|
|
5200
5201
|
data: [],
|
|
5201
5202
|
backgroundColor: "#FFFFFF",
|
|
@@ -5592,7 +5593,7 @@ const SagIconButton = props => {
|
|
|
5592
5593
|
onButtonClick,
|
|
5593
5594
|
className
|
|
5594
5595
|
} = props;
|
|
5595
|
-
const [activeState, setActiveState] = React.useState(openState);
|
|
5596
|
+
const [activeState, setActiveState] = React$1.useState(openState);
|
|
5596
5597
|
const onClickHandler = event => {
|
|
5597
5598
|
onButtonClick(event);
|
|
5598
5599
|
setActiveState(prevState => !prevState);
|
|
@@ -5922,12 +5923,12 @@ const TabMenu = props => {
|
|
|
5922
5923
|
onTopButtonClick,
|
|
5923
5924
|
tabs
|
|
5924
5925
|
} = props;
|
|
5925
|
-
const [activeTab, setActiveTab] = React.useState(currentTab);
|
|
5926
|
+
const [activeTab, setActiveTab] = React$1.useState(currentTab);
|
|
5926
5927
|
const handleTabChange = index => {
|
|
5927
5928
|
onTabChange(index);
|
|
5928
5929
|
setActiveTab(index);
|
|
5929
5930
|
};
|
|
5930
|
-
React.useEffect(() => {
|
|
5931
|
+
React$1.useEffect(() => {
|
|
5931
5932
|
setActiveTab(currentTab);
|
|
5932
5933
|
}, [currentTab]);
|
|
5933
5934
|
return /*#__PURE__*/React__default["default"].createElement(TabMenuContainer, {
|
|
@@ -10914,14 +10915,14 @@ const DropdownSingleNew = ({
|
|
|
10914
10915
|
orderBy,
|
|
10915
10916
|
elementType
|
|
10916
10917
|
}) => {
|
|
10917
|
-
const [isFocused, setIsFocused] = React.useState(false);
|
|
10918
|
-
const [showOptions, setShowOptions] = React.useState(false);
|
|
10919
|
-
const [inputValue, setInputValue] = React.useState("");
|
|
10920
|
-
const [selectedOptions, setSelectedOptions] = React.useState([]);
|
|
10921
|
-
const [hoverInputContainer, setHoverInputContainer] = React.useState(false);
|
|
10922
|
-
const [hoverOptionsContainer, setHoverOptionsContainer] = React.useState(false);
|
|
10923
|
-
const inputRef = React.useRef(null);
|
|
10924
|
-
const containerRef = React.useRef(null);
|
|
10918
|
+
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
10919
|
+
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
10920
|
+
const [inputValue, setInputValue] = React$1.useState("");
|
|
10921
|
+
const [selectedOptions, setSelectedOptions] = React$1.useState([]);
|
|
10922
|
+
const [hoverInputContainer, setHoverInputContainer] = React$1.useState(false);
|
|
10923
|
+
const [hoverOptionsContainer, setHoverOptionsContainer] = React$1.useState(false);
|
|
10924
|
+
const inputRef = React$1.useRef(null);
|
|
10925
|
+
const containerRef = React$1.useRef(null);
|
|
10925
10926
|
let filteredOptions = options?.filter(option => option.label.toLowerCase().includes(inputValue.toLowerCase()));
|
|
10926
10927
|
switch (orderBy) {
|
|
10927
10928
|
case "asc":
|
|
@@ -10939,17 +10940,17 @@ const DropdownSingleNew = ({
|
|
|
10939
10940
|
}
|
|
10940
10941
|
break;
|
|
10941
10942
|
}
|
|
10942
|
-
React.useEffect(() => {
|
|
10943
|
+
React$1.useEffect(() => {
|
|
10943
10944
|
if (selectedValue) {
|
|
10944
10945
|
setSelectedOptions(selectedValue);
|
|
10945
10946
|
}
|
|
10946
10947
|
}, [selectedValue]);
|
|
10947
|
-
React.useEffect(() => {
|
|
10948
|
+
React$1.useEffect(() => {
|
|
10948
10949
|
if (isFocused && inputRef?.current) {
|
|
10949
10950
|
inputRef?.current?.focus();
|
|
10950
10951
|
}
|
|
10951
10952
|
}, [isFocused]);
|
|
10952
|
-
React.useEffect(() => {
|
|
10953
|
+
React$1.useEffect(() => {
|
|
10953
10954
|
if (!hoverInputContainer && !hoverOptionsContainer) {
|
|
10954
10955
|
setIsFocused(false);
|
|
10955
10956
|
setShowOptions(false);
|
|
@@ -11412,14 +11413,14 @@ const DropdownMultiNew = ({
|
|
|
11412
11413
|
orderBy,
|
|
11413
11414
|
elementType
|
|
11414
11415
|
}) => {
|
|
11415
|
-
const [isFocused, setIsFocused] = React.useState(false);
|
|
11416
|
-
const [showOptions, setShowOptions] = React.useState(false);
|
|
11417
|
-
const [inputValue, setInputValue] = React.useState("");
|
|
11418
|
-
const [selectedOptions, setSelectedOptions] = React.useState([]);
|
|
11419
|
-
const [hoverInputContainer, setHoverInputContainer] = React.useState(false);
|
|
11420
|
-
const [hoverOptionsContainer, setHoverOptionsContainer] = React.useState(false);
|
|
11421
|
-
const inputRef = React.useRef(null);
|
|
11422
|
-
const containerRef = React.useRef(null);
|
|
11416
|
+
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
11417
|
+
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
11418
|
+
const [inputValue, setInputValue] = React$1.useState("");
|
|
11419
|
+
const [selectedOptions, setSelectedOptions] = React$1.useState([]);
|
|
11420
|
+
const [hoverInputContainer, setHoverInputContainer] = React$1.useState(false);
|
|
11421
|
+
const [hoverOptionsContainer, setHoverOptionsContainer] = React$1.useState(false);
|
|
11422
|
+
const inputRef = React$1.useRef(null);
|
|
11423
|
+
const containerRef = React$1.useRef(null);
|
|
11423
11424
|
let filteredOptions = options?.filter(option => option.label.toLowerCase().includes(inputValue.toLowerCase()));
|
|
11424
11425
|
switch (orderBy) {
|
|
11425
11426
|
case "asc":
|
|
@@ -11437,17 +11438,17 @@ const DropdownMultiNew = ({
|
|
|
11437
11438
|
}
|
|
11438
11439
|
break;
|
|
11439
11440
|
}
|
|
11440
|
-
React.useEffect(() => {
|
|
11441
|
+
React$1.useEffect(() => {
|
|
11441
11442
|
if (selectedValue) {
|
|
11442
11443
|
setSelectedOptions(selectedValue);
|
|
11443
11444
|
}
|
|
11444
11445
|
}, [selectedValue]);
|
|
11445
|
-
React.useEffect(() => {
|
|
11446
|
+
React$1.useEffect(() => {
|
|
11446
11447
|
if (isFocused && inputRef?.current) {
|
|
11447
11448
|
inputRef?.current?.focus();
|
|
11448
11449
|
}
|
|
11449
11450
|
}, [isFocused]);
|
|
11450
|
-
React.useEffect(() => {
|
|
11451
|
+
React$1.useEffect(() => {
|
|
11451
11452
|
if (!hoverInputContainer && !hoverOptionsContainer) {
|
|
11452
11453
|
setIsFocused(false);
|
|
11453
11454
|
setShowOptions(false);
|
|
@@ -11700,67 +11701,70 @@ const DropdownMain = dt.div`
|
|
|
11700
11701
|
`;
|
|
11701
11702
|
|
|
11702
11703
|
/* eslint-disable react/prop-types */
|
|
11703
|
-
const DropdownNew =
|
|
11704
|
-
|
|
11705
|
-
|
|
11706
|
-
|
|
11707
|
-
|
|
11708
|
-
|
|
11709
|
-
|
|
11710
|
-
|
|
11711
|
-
|
|
11712
|
-
|
|
11713
|
-
|
|
11714
|
-
|
|
11715
|
-
|
|
11716
|
-
|
|
11717
|
-
|
|
11718
|
-
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
11723
|
-
|
|
11724
|
-
|
|
11725
|
-
|
|
11726
|
-
|
|
11727
|
-
|
|
11728
|
-
|
|
11729
|
-
|
|
11730
|
-
|
|
11731
|
-
|
|
11732
|
-
|
|
11733
|
-
|
|
11734
|
-
|
|
11735
|
-
|
|
11736
|
-
|
|
11737
|
-
|
|
11738
|
-
|
|
11739
|
-
|
|
11740
|
-
|
|
11741
|
-
|
|
11742
|
-
|
|
11743
|
-
|
|
11744
|
-
|
|
11745
|
-
|
|
11746
|
-
|
|
11747
|
-
|
|
11748
|
-
|
|
11749
|
-
|
|
11750
|
-
|
|
11751
|
-
|
|
11752
|
-
|
|
11753
|
-
|
|
11754
|
-
|
|
11755
|
-
|
|
11756
|
-
|
|
11757
|
-
|
|
11758
|
-
|
|
11759
|
-
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
|
|
11763
|
-
|
|
11704
|
+
const DropdownNew = _ref => {
|
|
11705
|
+
let {
|
|
11706
|
+
isMulti,
|
|
11707
|
+
label,
|
|
11708
|
+
labelEmptyValue,
|
|
11709
|
+
options,
|
|
11710
|
+
selectedValue,
|
|
11711
|
+
placeHolder,
|
|
11712
|
+
onChange,
|
|
11713
|
+
required,
|
|
11714
|
+
disabled,
|
|
11715
|
+
width,
|
|
11716
|
+
error,
|
|
11717
|
+
errorMessage,
|
|
11718
|
+
labelColor,
|
|
11719
|
+
checkBoxColor,
|
|
11720
|
+
xIconShow,
|
|
11721
|
+
showLabelOnTop,
|
|
11722
|
+
orderBy,
|
|
11723
|
+
elementType
|
|
11724
|
+
} = _ref;
|
|
11725
|
+
return /*#__PURE__*/React__default["default"].createElement(DropdownMain, {
|
|
11726
|
+
className: "DropdownMain",
|
|
11727
|
+
width: width
|
|
11728
|
+
}, isMulti ? /*#__PURE__*/React__default["default"].createElement(DropdownMultiNew, {
|
|
11729
|
+
className: "DropdownMultiNew",
|
|
11730
|
+
placeHolder: placeHolder,
|
|
11731
|
+
label: label,
|
|
11732
|
+
labelEmptyValue: labelEmptyValue,
|
|
11733
|
+
labelColor: labelColor,
|
|
11734
|
+
checkBoxColor: checkBoxColor,
|
|
11735
|
+
required: required,
|
|
11736
|
+
options: options,
|
|
11737
|
+
width: width,
|
|
11738
|
+
disabled: disabled,
|
|
11739
|
+
error: error,
|
|
11740
|
+
errorMessage: errorMessage,
|
|
11741
|
+
selectedValue: selectedValue,
|
|
11742
|
+
xIconShow: xIconShow,
|
|
11743
|
+
onChange: onChange,
|
|
11744
|
+
showLabelOnTop: showLabelOnTop,
|
|
11745
|
+
orderBy: orderBy,
|
|
11746
|
+
elementType: elementType
|
|
11747
|
+
}) : /*#__PURE__*/React__default["default"].createElement(DropdownSingleNew, {
|
|
11748
|
+
className: "DropdownSingleNew",
|
|
11749
|
+
placeHolder: placeHolder,
|
|
11750
|
+
label: label,
|
|
11751
|
+
labelEmptyValue: labelEmptyValue,
|
|
11752
|
+
labelColor: labelColor,
|
|
11753
|
+
checkBoxColor: checkBoxColor,
|
|
11754
|
+
required: required,
|
|
11755
|
+
options: options,
|
|
11756
|
+
width: width,
|
|
11757
|
+
disabled: disabled,
|
|
11758
|
+
error: error,
|
|
11759
|
+
errorMessage: errorMessage,
|
|
11760
|
+
selectedValue: selectedValue,
|
|
11761
|
+
xIconShow: xIconShow,
|
|
11762
|
+
onChange: onChange,
|
|
11763
|
+
showLabelOnTop: showLabelOnTop,
|
|
11764
|
+
orderBy: orderBy,
|
|
11765
|
+
elementType: elementType
|
|
11766
|
+
}));
|
|
11767
|
+
};
|
|
11764
11768
|
DropdownNew.propTypes = {
|
|
11765
11769
|
placeHolder: PropTypes.string,
|
|
11766
11770
|
label: PropTypes.string,
|
|
@@ -12062,10 +12066,10 @@ const DatePicker = ({
|
|
|
12062
12066
|
startDateValue,
|
|
12063
12067
|
endDateValue
|
|
12064
12068
|
}) => {
|
|
12065
|
-
const [startDate, setStartDate] = React.useState(null);
|
|
12066
|
-
const [endDate, setEndDate] = React.useState(null);
|
|
12067
|
-
const [currentStartDate, setCurrentStartDate] = React.useState(new Date());
|
|
12068
|
-
const [currentEndDate, setCurrentEndDate] = React.useState(null);
|
|
12069
|
+
const [startDate, setStartDate] = React$1.useState(null);
|
|
12070
|
+
const [endDate, setEndDate] = React$1.useState(null);
|
|
12071
|
+
const [currentStartDate, setCurrentStartDate] = React$1.useState(new Date());
|
|
12072
|
+
const [currentEndDate, setCurrentEndDate] = React$1.useState(null);
|
|
12069
12073
|
const handleDateSelect = date => {
|
|
12070
12074
|
if (!startDate) {
|
|
12071
12075
|
setStartDate(date);
|
|
@@ -12090,7 +12094,7 @@ const DatePicker = ({
|
|
|
12090
12094
|
setCurrentStartDate(nextDate);
|
|
12091
12095
|
setCurrentEndDate(null);
|
|
12092
12096
|
};
|
|
12093
|
-
React.useEffect(() => {
|
|
12097
|
+
React$1.useEffect(() => {
|
|
12094
12098
|
if (value === '' || value === undefined) {
|
|
12095
12099
|
setStartDate(null);
|
|
12096
12100
|
setEndDate(null);
|
|
@@ -12174,30 +12178,31 @@ const DatePicker = ({
|
|
|
12174
12178
|
};
|
|
12175
12179
|
|
|
12176
12180
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
12177
|
-
const RangePicker =
|
|
12178
|
-
|
|
12179
|
-
|
|
12180
|
-
|
|
12181
|
-
|
|
12182
|
-
|
|
12183
|
-
|
|
12184
|
-
|
|
12185
|
-
|
|
12186
|
-
|
|
12187
|
-
|
|
12188
|
-
|
|
12189
|
-
|
|
12190
|
-
|
|
12191
|
-
|
|
12192
|
-
const [
|
|
12193
|
-
const [
|
|
12194
|
-
const [
|
|
12195
|
-
const [
|
|
12196
|
-
|
|
12197
|
-
|
|
12198
|
-
const [
|
|
12199
|
-
const
|
|
12200
|
-
React.
|
|
12181
|
+
const RangePicker = _ref => {
|
|
12182
|
+
let {
|
|
12183
|
+
label,
|
|
12184
|
+
onChange,
|
|
12185
|
+
borderRadius,
|
|
12186
|
+
required,
|
|
12187
|
+
width,
|
|
12188
|
+
height,
|
|
12189
|
+
placeholder,
|
|
12190
|
+
disabled,
|
|
12191
|
+
borderColor,
|
|
12192
|
+
borderColorFocus,
|
|
12193
|
+
textColor,
|
|
12194
|
+
selectedValue
|
|
12195
|
+
} = _ref;
|
|
12196
|
+
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
12197
|
+
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
12198
|
+
const [value, setValue] = React$1.useState(''); // Added value state
|
|
12199
|
+
const [startDateValue, setStartDateValue] = React$1.useState(null); // Added value state
|
|
12200
|
+
const [endDateValue, setEndDateValue] = React$1.useState(null); // Added value state
|
|
12201
|
+
|
|
12202
|
+
const [hoverInputContainer, setHoverInputContainer] = React$1.useState(false);
|
|
12203
|
+
const [hoverOptionsContainer, setHoverOptionsContainer] = React$1.useState(false);
|
|
12204
|
+
const inputRef = React$1.useRef(null);
|
|
12205
|
+
React$1.useEffect(() => {
|
|
12201
12206
|
const handleClickOutside = event => {
|
|
12202
12207
|
if (inputRef.current && !inputRef.current.contains(event.target)) {
|
|
12203
12208
|
setIsFocused(false);
|
|
@@ -12212,7 +12217,7 @@ const RangePicker = ({
|
|
|
12212
12217
|
document.removeEventListener('mousedown', handleClickOutside);
|
|
12213
12218
|
};
|
|
12214
12219
|
}, []);
|
|
12215
|
-
React.useEffect(() => {
|
|
12220
|
+
React$1.useEffect(() => {
|
|
12216
12221
|
if (selectedValue && selectedValue.includes('-')) {
|
|
12217
12222
|
const dateArray = selectedValue.split('-');
|
|
12218
12223
|
const startDate = new Date(dateArray[0]);
|
|
@@ -12222,7 +12227,7 @@ const RangePicker = ({
|
|
|
12222
12227
|
setValue(selectedValue);
|
|
12223
12228
|
}
|
|
12224
12229
|
}, [selectedValue]);
|
|
12225
|
-
React.useEffect(() => {
|
|
12230
|
+
React$1.useEffect(() => {
|
|
12226
12231
|
if (!hoverInputContainer && !hoverOptionsContainer) {
|
|
12227
12232
|
setIsFocused(false);
|
|
12228
12233
|
setIsOpen(false);
|
|
@@ -12550,8 +12555,8 @@ const QuarterPopupPicker = ({
|
|
|
12550
12555
|
startDateValue,
|
|
12551
12556
|
availableQuarters
|
|
12552
12557
|
}) => {
|
|
12553
|
-
const [selectedQuarter, setSelectedQuarter] = React.useState(null);
|
|
12554
|
-
const [currentStartDate, setCurrentStartDate] = React.useState(new Date(new Date().getFullYear(), 0, 1));
|
|
12558
|
+
const [selectedQuarter, setSelectedQuarter] = React$1.useState(null);
|
|
12559
|
+
const [currentStartDate, setCurrentStartDate] = React$1.useState(new Date(new Date().getFullYear(), 0, 1));
|
|
12555
12560
|
const handleDateSelect = date => {
|
|
12556
12561
|
setSelectedQuarter(date);
|
|
12557
12562
|
onChangeDate(`${date}-${currentStartDate.getFullYear()}`);
|
|
@@ -12569,7 +12574,7 @@ const QuarterPopupPicker = ({
|
|
|
12569
12574
|
// setCurrentStartDate(nextDate);
|
|
12570
12575
|
// };
|
|
12571
12576
|
|
|
12572
|
-
React.useEffect(() => {
|
|
12577
|
+
React$1.useEffect(() => {
|
|
12573
12578
|
if (value === '' || value === undefined) {
|
|
12574
12579
|
setSelectedQuarter(null);
|
|
12575
12580
|
} else {
|
|
@@ -12619,30 +12624,31 @@ const QuarterPopupPicker = ({
|
|
|
12619
12624
|
};
|
|
12620
12625
|
|
|
12621
12626
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
12622
|
-
const QuarterPicker =
|
|
12623
|
-
|
|
12624
|
-
|
|
12625
|
-
|
|
12626
|
-
|
|
12627
|
-
|
|
12628
|
-
|
|
12629
|
-
|
|
12630
|
-
|
|
12631
|
-
|
|
12632
|
-
|
|
12633
|
-
|
|
12634
|
-
|
|
12635
|
-
|
|
12636
|
-
|
|
12637
|
-
|
|
12638
|
-
|
|
12639
|
-
const [
|
|
12640
|
-
const [
|
|
12641
|
-
const [
|
|
12642
|
-
const [
|
|
12643
|
-
const [
|
|
12644
|
-
const
|
|
12645
|
-
React.
|
|
12627
|
+
const QuarterPicker = _ref => {
|
|
12628
|
+
let {
|
|
12629
|
+
availableQuarters,
|
|
12630
|
+
// ["Q1-2024"]
|
|
12631
|
+
label,
|
|
12632
|
+
onChange,
|
|
12633
|
+
borderRadius,
|
|
12634
|
+
required,
|
|
12635
|
+
width,
|
|
12636
|
+
height,
|
|
12637
|
+
placeholder,
|
|
12638
|
+
disabled,
|
|
12639
|
+
borderColor,
|
|
12640
|
+
borderColorFocus,
|
|
12641
|
+
textColor,
|
|
12642
|
+
selectedValue
|
|
12643
|
+
} = _ref;
|
|
12644
|
+
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
12645
|
+
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
12646
|
+
const [value, setValue] = React$1.useState('');
|
|
12647
|
+
const [startDateValue, setStartDateValue] = React$1.useState(null);
|
|
12648
|
+
const [hoverInputContainer, setHoverInputContainer] = React$1.useState(false);
|
|
12649
|
+
const [hoverOptionsContainer, setHoverOptionsContainer] = React$1.useState(false);
|
|
12650
|
+
const inputRef = React$1.useRef(null);
|
|
12651
|
+
React$1.useEffect(() => {
|
|
12646
12652
|
const handleClickOutside = event => {
|
|
12647
12653
|
if (inputRef.current && !inputRef.current.contains(event.target)) {
|
|
12648
12654
|
setIsFocused(false);
|
|
@@ -12657,7 +12663,7 @@ const QuarterPicker = ({
|
|
|
12657
12663
|
document.removeEventListener('mousedown', handleClickOutside);
|
|
12658
12664
|
};
|
|
12659
12665
|
}, []);
|
|
12660
|
-
React.useEffect(() => {
|
|
12666
|
+
React$1.useEffect(() => {
|
|
12661
12667
|
if (selectedValue && selectedValue.includes('-')) {
|
|
12662
12668
|
const dateArray = selectedValue.split('-');
|
|
12663
12669
|
const startDate = new Date(dateArray[0]);
|
|
@@ -12665,7 +12671,7 @@ const QuarterPicker = ({
|
|
|
12665
12671
|
setValue(selectedValue);
|
|
12666
12672
|
}
|
|
12667
12673
|
}, [selectedValue]);
|
|
12668
|
-
React.useEffect(() => {
|
|
12674
|
+
React$1.useEffect(() => {
|
|
12669
12675
|
if (!hoverInputContainer && !hoverOptionsContainer) {
|
|
12670
12676
|
setIsFocused(false);
|
|
12671
12677
|
setIsOpen(false);
|
|
@@ -12978,13 +12984,13 @@ const MonthPopupPicker = ({
|
|
|
12978
12984
|
startDateValue,
|
|
12979
12985
|
availableMonths
|
|
12980
12986
|
}) => {
|
|
12981
|
-
const [selectedMonth, setSelectedMonth] = React.useState(null);
|
|
12982
|
-
const [currentStartDate, setCurrentStartDate] = React.useState(new Date(new Date().getFullYear(), 0, 1));
|
|
12987
|
+
const [selectedMonth, setSelectedMonth] = React$1.useState(null);
|
|
12988
|
+
const [currentStartDate, setCurrentStartDate] = React$1.useState(new Date(new Date().getFullYear(), 0, 1));
|
|
12983
12989
|
const handleDateSelect = date => {
|
|
12984
12990
|
setSelectedMonth(date);
|
|
12985
12991
|
onChangeDate(date);
|
|
12986
12992
|
};
|
|
12987
|
-
React.useEffect(() => {
|
|
12993
|
+
React$1.useEffect(() => {
|
|
12988
12994
|
if (value === '' || value === undefined) {
|
|
12989
12995
|
setSelectedMonth(null);
|
|
12990
12996
|
} else {
|
|
@@ -13073,29 +13079,30 @@ const MonthPopupPicker = ({
|
|
|
13073
13079
|
};
|
|
13074
13080
|
|
|
13075
13081
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
13076
|
-
const MonthPicker =
|
|
13077
|
-
|
|
13078
|
-
|
|
13079
|
-
|
|
13080
|
-
|
|
13081
|
-
|
|
13082
|
-
|
|
13083
|
-
|
|
13084
|
-
|
|
13085
|
-
|
|
13086
|
-
|
|
13087
|
-
|
|
13088
|
-
|
|
13089
|
-
|
|
13090
|
-
|
|
13091
|
-
|
|
13092
|
-
const [
|
|
13093
|
-
const [
|
|
13094
|
-
const [
|
|
13095
|
-
const [
|
|
13096
|
-
const [
|
|
13097
|
-
const
|
|
13098
|
-
React.
|
|
13082
|
+
const MonthPicker = _ref => {
|
|
13083
|
+
let {
|
|
13084
|
+
availableMonths,
|
|
13085
|
+
label,
|
|
13086
|
+
onChange,
|
|
13087
|
+
borderRadius,
|
|
13088
|
+
required,
|
|
13089
|
+
width,
|
|
13090
|
+
height,
|
|
13091
|
+
placeholder,
|
|
13092
|
+
disabled,
|
|
13093
|
+
borderColor,
|
|
13094
|
+
borderColorFocus,
|
|
13095
|
+
textColor,
|
|
13096
|
+
selectedValue
|
|
13097
|
+
} = _ref;
|
|
13098
|
+
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
13099
|
+
const [isOpen, setIsOpen] = React$1.useState(false);
|
|
13100
|
+
const [value, setValue] = React$1.useState('');
|
|
13101
|
+
const [startDateValue, setStartDateValue] = React$1.useState(null);
|
|
13102
|
+
const [hoverInputContainer, setHoverInputContainer] = React$1.useState(false);
|
|
13103
|
+
const [hoverOptionsContainer, setHoverOptionsContainer] = React$1.useState(false);
|
|
13104
|
+
const inputRef = React$1.useRef(null);
|
|
13105
|
+
React$1.useEffect(() => {
|
|
13099
13106
|
const handleClickOutside = event => {
|
|
13100
13107
|
if (inputRef.current && !inputRef.current.contains(event.target)) {
|
|
13101
13108
|
setIsFocused(false);
|
|
@@ -13110,14 +13117,14 @@ const MonthPicker = ({
|
|
|
13110
13117
|
document.removeEventListener('mousedown', handleClickOutside);
|
|
13111
13118
|
};
|
|
13112
13119
|
}, []);
|
|
13113
|
-
React.useEffect(() => {
|
|
13120
|
+
React$1.useEffect(() => {
|
|
13114
13121
|
if (selectedValue && selectedValue.includes(' | ')) {
|
|
13115
13122
|
setStartDateValue(selectedValue);
|
|
13116
13123
|
// setValue(`${moment(selectedValue).format('MMMM | YYYY')}`);
|
|
13117
13124
|
setValue(selectedValue);
|
|
13118
13125
|
}
|
|
13119
13126
|
}, [selectedValue]);
|
|
13120
|
-
React.useEffect(() => {
|
|
13127
|
+
React$1.useEffect(() => {
|
|
13121
13128
|
if (!hoverInputContainer && !hoverOptionsContainer) {
|
|
13122
13129
|
setIsFocused(false);
|
|
13123
13130
|
setIsOpen(false);
|
|
@@ -13343,17 +13350,17 @@ const FilterPanel = props => {
|
|
|
13343
13350
|
showShadow,
|
|
13344
13351
|
tooltipTextGoButton
|
|
13345
13352
|
} = props;
|
|
13346
|
-
const [FieldsDataState, setFieldsDataState] = React.useState(fieldsData);
|
|
13347
|
-
const [Reset, setReset] = React.useState(false);
|
|
13348
|
-
const [FieldsContainerWidth, setFieldsContainerWidth] = React.useState(0);
|
|
13349
|
-
const AllFieldsContainerRef = React.useRef();
|
|
13350
|
-
React.useEffect(() => {
|
|
13353
|
+
const [FieldsDataState, setFieldsDataState] = React$1.useState(fieldsData);
|
|
13354
|
+
const [Reset, setReset] = React$1.useState(false);
|
|
13355
|
+
const [FieldsContainerWidth, setFieldsContainerWidth] = React$1.useState(0);
|
|
13356
|
+
const AllFieldsContainerRef = React$1.useRef();
|
|
13357
|
+
React$1.useEffect(() => {
|
|
13351
13358
|
const {
|
|
13352
13359
|
offsetWidth
|
|
13353
13360
|
} = AllFieldsContainerRef.current;
|
|
13354
13361
|
setFieldsContainerWidth(offsetWidth - 2);
|
|
13355
13362
|
}, [width]);
|
|
13356
|
-
React.useEffect(() => {
|
|
13363
|
+
React$1.useEffect(() => {
|
|
13357
13364
|
if (useExternalFilterState) {
|
|
13358
13365
|
setFieldsDataState(fieldsData);
|
|
13359
13366
|
} else {
|
|
@@ -14350,8 +14357,8 @@ const ReportTable = props => {
|
|
|
14350
14357
|
onSortChangeCallback,
|
|
14351
14358
|
onSortReset
|
|
14352
14359
|
} = props;
|
|
14353
|
-
const [FormattedTableData, setFormattedTableData] = React.useState(tableData);
|
|
14354
|
-
React.useState(false);
|
|
14360
|
+
const [FormattedTableData, setFormattedTableData] = React$1.useState(tableData);
|
|
14361
|
+
React$1.useState(false);
|
|
14355
14362
|
const getPaginatedRows = () => {
|
|
14356
14363
|
return FormattedTableData.rowsValues;
|
|
14357
14364
|
};
|
|
@@ -14364,7 +14371,7 @@ const ReportTable = props => {
|
|
|
14364
14371
|
const totalRecords = totalTableResults;
|
|
14365
14372
|
return `Showing ${startRecord}-${endRecord} of ${totalRecords}`;
|
|
14366
14373
|
};
|
|
14367
|
-
React.useEffect(() => {
|
|
14374
|
+
React$1.useEffect(() => {
|
|
14368
14375
|
if (!tableData || !tableData.columnsHeadings || !tableData.rowsValues) {
|
|
14369
14376
|
return;
|
|
14370
14377
|
}
|
|
@@ -14500,8 +14507,8 @@ const ReportTable = props => {
|
|
|
14500
14507
|
}
|
|
14501
14508
|
return topFactor;
|
|
14502
14509
|
};
|
|
14503
|
-
const [activeSortState, setActiveSortState] = React.useState({});
|
|
14504
|
-
React.useEffect(() => {
|
|
14510
|
+
const [activeSortState, setActiveSortState] = React$1.useState({});
|
|
14511
|
+
React$1.useEffect(() => {
|
|
14505
14512
|
if (activeSortState) {
|
|
14506
14513
|
Object.entries(activeSortState).forEach(_ref => {
|
|
14507
14514
|
let [key, value] = _ref;
|
|
@@ -15265,7 +15272,7 @@ const BannerEventBoxList = props => {
|
|
|
15265
15272
|
bannerWidth,
|
|
15266
15273
|
showDraft
|
|
15267
15274
|
} = props;
|
|
15268
|
-
const [IsItemOpen, setIsItemOpen] = React.useState(false);
|
|
15275
|
+
const [IsItemOpen, setIsItemOpen] = React$1.useState(false);
|
|
15269
15276
|
const handleToggle = () => {
|
|
15270
15277
|
if (disableToggle) return;
|
|
15271
15278
|
setIsItemOpen(!IsItemOpen);
|
|
@@ -15466,7 +15473,7 @@ const DialogOverlay = props => {
|
|
|
15466
15473
|
onDialogClose,
|
|
15467
15474
|
className
|
|
15468
15475
|
} = props;
|
|
15469
|
-
React.useEffect(() => {
|
|
15476
|
+
React$1.useEffect(() => {
|
|
15470
15477
|
const modal = document.querySelector('dialog');
|
|
15471
15478
|
modal.showModal();
|
|
15472
15479
|
}, []);
|
|
@@ -25908,10 +25915,10 @@ const CollapseHeader = props => {
|
|
|
25908
25915
|
buttonText,
|
|
25909
25916
|
disabled
|
|
25910
25917
|
} = props;
|
|
25911
|
-
const [retailersDataState, setRetailersDataState] = React.useState(null);
|
|
25912
|
-
const [viewCreativeListBoxOpenedState, setViewCreativeListBoxOpenedState] = React.useState(false);
|
|
25913
|
-
const viewCreativeContainerRef = React.useRef(null);
|
|
25914
|
-
React.useEffect(() => {
|
|
25918
|
+
const [retailersDataState, setRetailersDataState] = React$1.useState(null);
|
|
25919
|
+
const [viewCreativeListBoxOpenedState, setViewCreativeListBoxOpenedState] = React$1.useState(false);
|
|
25920
|
+
const viewCreativeContainerRef = React$1.useRef(null);
|
|
25921
|
+
React$1.useEffect(() => {
|
|
25915
25922
|
let newData = [];
|
|
25916
25923
|
if (viewCreativeRetailersData && viewCreativeRetailersData.length > 0) {
|
|
25917
25924
|
newData = viewCreativeRetailersData?.map(item => ({
|
|
@@ -26273,29 +26280,30 @@ const DeleteIcon = dt.div`
|
|
|
26273
26280
|
position: absolute;
|
|
26274
26281
|
`;
|
|
26275
26282
|
|
|
26276
|
-
const QuickFilterDropdownSingle =
|
|
26277
|
-
|
|
26278
|
-
|
|
26279
|
-
|
|
26280
|
-
|
|
26281
|
-
|
|
26282
|
-
|
|
26283
|
-
|
|
26284
|
-
|
|
26285
|
-
|
|
26286
|
-
|
|
26287
|
-
|
|
26288
|
-
|
|
26289
|
-
|
|
26290
|
-
|
|
26291
|
-
|
|
26292
|
-
const [
|
|
26293
|
-
const [
|
|
26294
|
-
const [
|
|
26295
|
-
const [
|
|
26296
|
-
const [
|
|
26297
|
-
const
|
|
26298
|
-
const
|
|
26283
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
26284
|
+
let {
|
|
26285
|
+
label,
|
|
26286
|
+
hoverColor,
|
|
26287
|
+
options,
|
|
26288
|
+
selectedValue,
|
|
26289
|
+
placeHolder,
|
|
26290
|
+
onChange,
|
|
26291
|
+
disabled,
|
|
26292
|
+
width,
|
|
26293
|
+
error,
|
|
26294
|
+
errorMessage,
|
|
26295
|
+
xIconShow,
|
|
26296
|
+
labelColor,
|
|
26297
|
+
showLabelOnTop
|
|
26298
|
+
} = _ref;
|
|
26299
|
+
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
26300
|
+
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
26301
|
+
const [inputValue, setInputValue] = React$1.useState("");
|
|
26302
|
+
const [selectedOptions, setSelectedOptions] = React$1.useState([]);
|
|
26303
|
+
const [hoverInputContainer, setHoverInputContainer] = React$1.useState(false);
|
|
26304
|
+
const [hoverOptionsContainer, setHoverOptionsContainer] = React$1.useState(false);
|
|
26305
|
+
const inputRef = React$1.useRef(null);
|
|
26306
|
+
const containerRef = React$1.useRef(null);
|
|
26299
26307
|
const highlightText = (text, highlight) => {
|
|
26300
26308
|
if (!highlight) return text;
|
|
26301
26309
|
const lowerText = text.toLowerCase();
|
|
@@ -26320,17 +26328,17 @@ const QuickFilterDropdownSingle = ({
|
|
|
26320
26328
|
return parts;
|
|
26321
26329
|
};
|
|
26322
26330
|
const filteredoptions = options?.filter(option => option.label.toLowerCase().includes(inputValue.toLowerCase()));
|
|
26323
|
-
React.useEffect(() => {
|
|
26331
|
+
React$1.useEffect(() => {
|
|
26324
26332
|
if (selectedValue) {
|
|
26325
26333
|
setSelectedOptions(selectedValue);
|
|
26326
26334
|
}
|
|
26327
26335
|
}, [selectedValue]);
|
|
26328
|
-
React.useEffect(() => {
|
|
26336
|
+
React$1.useEffect(() => {
|
|
26329
26337
|
if (isFocused && inputRef?.current) {
|
|
26330
26338
|
inputRef?.current?.focus();
|
|
26331
26339
|
}
|
|
26332
26340
|
}, [isFocused]);
|
|
26333
|
-
React.useEffect(() => {
|
|
26341
|
+
React$1.useEffect(() => {
|
|
26334
26342
|
if (!hoverInputContainer && !hoverOptionsContainer) {
|
|
26335
26343
|
setIsFocused(false);
|
|
26336
26344
|
setShowOptions(false);
|
|
@@ -26685,43 +26693,44 @@ const IconContainer$1 = dt.div`
|
|
|
26685
26693
|
cursor: pointer;
|
|
26686
26694
|
`;
|
|
26687
26695
|
|
|
26688
|
-
const QuickFilterDropdownMultiSelection =
|
|
26689
|
-
|
|
26690
|
-
|
|
26691
|
-
|
|
26692
|
-
|
|
26693
|
-
|
|
26694
|
-
|
|
26695
|
-
|
|
26696
|
-
|
|
26697
|
-
|
|
26698
|
-
|
|
26699
|
-
|
|
26700
|
-
|
|
26701
|
-
|
|
26702
|
-
|
|
26703
|
-
|
|
26704
|
-
|
|
26705
|
-
|
|
26706
|
-
const [
|
|
26707
|
-
const [
|
|
26708
|
-
const [
|
|
26709
|
-
const [
|
|
26710
|
-
const [
|
|
26711
|
-
const
|
|
26712
|
-
const
|
|
26696
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
26697
|
+
let {
|
|
26698
|
+
label,
|
|
26699
|
+
labelEmptyValue,
|
|
26700
|
+
options,
|
|
26701
|
+
selectedValue,
|
|
26702
|
+
placeHolder,
|
|
26703
|
+
onChange,
|
|
26704
|
+
required,
|
|
26705
|
+
disabled,
|
|
26706
|
+
width,
|
|
26707
|
+
error,
|
|
26708
|
+
errorMessage,
|
|
26709
|
+
labelColor,
|
|
26710
|
+
xIconShow,
|
|
26711
|
+
checkBoxColor,
|
|
26712
|
+
showLabelOnTop
|
|
26713
|
+
} = _ref;
|
|
26714
|
+
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
26715
|
+
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
26716
|
+
const [inputValue, setInputValue] = React$1.useState('');
|
|
26717
|
+
const [selectedOptions, setSelectedOptions] = React$1.useState([]);
|
|
26718
|
+
const [hoverInputContainer, setHoverInputContainer] = React$1.useState(false);
|
|
26719
|
+
const [hoverOptionsContainer, setHoverOptionsContainer] = React$1.useState(false);
|
|
26720
|
+
const inputRef = React$1.useRef(null);
|
|
26721
|
+
const containerRef = React$1.useRef(null);
|
|
26713
26722
|
const filteredoptions = options?.filter(option => option.label.toLowerCase().includes(inputValue.toLowerCase()));
|
|
26714
|
-
React.useEffect(() => {
|
|
26723
|
+
React$1.useEffect(() => {
|
|
26715
26724
|
if (selectedValue) {
|
|
26716
26725
|
setSelectedOptions(selectedValue);
|
|
26717
26726
|
}
|
|
26718
26727
|
}, [selectedValue]);
|
|
26719
|
-
React.useEffect(() => {
|
|
26728
|
+
React$1.useEffect(() => {
|
|
26720
26729
|
if (isFocused && inputRef?.current) {
|
|
26721
26730
|
inputRef?.current?.focus();
|
|
26722
26731
|
}
|
|
26723
26732
|
}, [isFocused]);
|
|
26724
|
-
React.useEffect(() => {
|
|
26733
|
+
React$1.useEffect(() => {
|
|
26725
26734
|
if (!hoverInputContainer && !hoverOptionsContainer) {
|
|
26726
26735
|
setIsFocused(false);
|
|
26727
26736
|
setShowOptions(false);
|
|
@@ -27306,11 +27315,11 @@ const OneColumnContainer = props => {
|
|
|
27306
27315
|
onBannerClick,
|
|
27307
27316
|
columnTitle
|
|
27308
27317
|
} = props;
|
|
27309
|
-
const [hover, setHover] = React.useState(false);
|
|
27310
|
-
const [offsetWidth, setOffsetWidth] = React.useState(200);
|
|
27311
|
-
const nodeRef = React.useRef(null);
|
|
27312
|
-
const anotherRef = React.useRef(null);
|
|
27313
|
-
React.useEffect(() => {
|
|
27318
|
+
const [hover, setHover] = React$1.useState(false);
|
|
27319
|
+
const [offsetWidth, setOffsetWidth] = React$1.useState(200);
|
|
27320
|
+
const nodeRef = React$1.useRef(null);
|
|
27321
|
+
const anotherRef = React$1.useRef(null);
|
|
27322
|
+
React$1.useEffect(() => {
|
|
27314
27323
|
setOffsetWidth(anotherRef?.current?.offsetWidth);
|
|
27315
27324
|
}, [anotherRef]);
|
|
27316
27325
|
return /*#__PURE__*/React__default["default"].createElement(StyledContainer, {
|
|
@@ -27839,7 +27848,7 @@ const BarChartsByWeeks = props => {
|
|
|
27839
27848
|
// const [BarChartContainerWidth, setBarChartContainerWidth] = useState(0);
|
|
27840
27849
|
// const [BarChartContainerHeight, setBarChartContainerHeight] = useState(0);
|
|
27841
27850
|
|
|
27842
|
-
const controlsContainerRef = React.useRef();
|
|
27851
|
+
const controlsContainerRef = React$1.useRef();
|
|
27843
27852
|
|
|
27844
27853
|
// useEffect(() => {
|
|
27845
27854
|
// const { offsetWidth } = controlsContainerRef.current;
|
|
@@ -28312,9 +28321,9 @@ const TotalDoughnutChart = props => {
|
|
|
28312
28321
|
noDataText,
|
|
28313
28322
|
textAfterValue
|
|
28314
28323
|
} = props;
|
|
28315
|
-
const [DoughnutChartRadius, setDoughnutChartRadius] = React.useState(0);
|
|
28316
|
-
const [zoomResolution, setZoomResolution] = React.useState(1);
|
|
28317
|
-
const DoughnutChartContainerRef = React.useRef();
|
|
28324
|
+
const [DoughnutChartRadius, setDoughnutChartRadius] = React$1.useState(0);
|
|
28325
|
+
const [zoomResolution, setZoomResolution] = React$1.useState(1);
|
|
28326
|
+
const DoughnutChartContainerRef = React$1.useRef();
|
|
28318
28327
|
const dotCutTrenty = row => {
|
|
28319
28328
|
if (!row || !row.value) return null;
|
|
28320
28329
|
let valueNew = 0;
|
|
@@ -28325,7 +28334,7 @@ const TotalDoughnutChart = props => {
|
|
|
28325
28334
|
}
|
|
28326
28335
|
return dotCut ? getFormattedValue(valueNew) : getNumberWithCommas(valueNew);
|
|
28327
28336
|
};
|
|
28328
|
-
React.useEffect(() => {
|
|
28337
|
+
React$1.useEffect(() => {
|
|
28329
28338
|
const handleResize = () => {
|
|
28330
28339
|
setZoomResolution(window.devicePixelRatio);
|
|
28331
28340
|
};
|
|
@@ -28341,7 +28350,7 @@ const TotalDoughnutChart = props => {
|
|
|
28341
28350
|
window.removeEventListener('resize', handleResize);
|
|
28342
28351
|
};
|
|
28343
28352
|
}, []);
|
|
28344
|
-
React.useEffect(() => {
|
|
28353
|
+
React$1.useEffect(() => {
|
|
28345
28354
|
const MIN_RADIUS = 45;
|
|
28346
28355
|
if (!DoughnutChartContainerRef) return;
|
|
28347
28356
|
const {
|
|
@@ -28736,8 +28745,8 @@ const TotalHorizontalCharts = props => {
|
|
|
28736
28745
|
hideTitle
|
|
28737
28746
|
} = props;
|
|
28738
28747
|
const barBackgrounds = chartsData.map(bg => bg.color);
|
|
28739
|
-
const topHeader = React.useRef();
|
|
28740
|
-
const wrapper = React.useRef();
|
|
28748
|
+
const topHeader = React$1.useRef();
|
|
28749
|
+
const wrapper = React$1.useRef();
|
|
28741
28750
|
const BAR_HEIGHT = 40; // Height of each bar including padding
|
|
28742
28751
|
const CHART_PADDING = 40; // Total padding for chart (top + bottom)
|
|
28743
28752
|
|
|
@@ -28756,8 +28765,8 @@ const TotalHorizontalCharts = props => {
|
|
|
28756
28765
|
// 2. Height needed for specified number of bars
|
|
28757
28766
|
return Math.min(chartsData.length * BAR_HEIGHT + CHART_PADDING, visibleBarsHeight + CHART_PADDING);
|
|
28758
28767
|
};
|
|
28759
|
-
const [showLegendTooltip, setShowLegendTooltip] = React.useState(false);
|
|
28760
|
-
const [tooltipText, setTooltipText] = React.useState({
|
|
28768
|
+
const [showLegendTooltip, setShowLegendTooltip] = React$1.useState(false);
|
|
28769
|
+
const [tooltipText, setTooltipText] = React$1.useState({
|
|
28761
28770
|
content: '',
|
|
28762
28771
|
clientX: 0,
|
|
28763
28772
|
clientY: 0
|
|
@@ -29261,10 +29270,10 @@ const PopupCharts = props => {
|
|
|
29261
29270
|
subtitleTextColor,
|
|
29262
29271
|
onCloseClick
|
|
29263
29272
|
} = props;
|
|
29264
|
-
const [IsPopupChartsOpen, setIsPopupChartsOpen] = React.useState(isPopupChartsOpen);
|
|
29265
|
-
const divRef = React.useRef(null);
|
|
29266
|
-
const [divHeight, setDivHeight] = React.useState(0);
|
|
29267
|
-
React.useEffect(() => {
|
|
29273
|
+
const [IsPopupChartsOpen, setIsPopupChartsOpen] = React$1.useState(isPopupChartsOpen);
|
|
29274
|
+
const divRef = React$1.useRef(null);
|
|
29275
|
+
const [divHeight, setDivHeight] = React$1.useState(0);
|
|
29276
|
+
React$1.useEffect(() => {
|
|
29268
29277
|
if (divRef.current) {
|
|
29269
29278
|
const {
|
|
29270
29279
|
top,
|
|
@@ -29274,7 +29283,7 @@ const PopupCharts = props => {
|
|
|
29274
29283
|
setDivHeight(newHeight);
|
|
29275
29284
|
}
|
|
29276
29285
|
}, [height]);
|
|
29277
|
-
React.useEffect(() => {
|
|
29286
|
+
React$1.useEffect(() => {
|
|
29278
29287
|
setIsPopupChartsOpen(isPopupChartsOpen);
|
|
29279
29288
|
}, [isPopupChartsOpen]);
|
|
29280
29289
|
const closePopupCharts = e => {
|
|
@@ -29734,12 +29743,12 @@ const Heatmap = props => {
|
|
|
29734
29743
|
lowLimit,
|
|
29735
29744
|
barHeight
|
|
29736
29745
|
} = props;
|
|
29737
|
-
const [refreshRequired, setRefreshRequired] = React.useState(false);
|
|
29738
|
-
const [tooltip, setTooltip] = React.useState(null);
|
|
29739
|
-
const [barHeightState, setBarHeightState] = React.useState(barHeight);
|
|
29740
|
-
const barRefs = React.useRef([]); // Array to store refs for each bar
|
|
29741
|
-
const barsContainerRef = React.useRef(null);
|
|
29742
|
-
const [tooltipPosition, setTooltipPosition] = React.useState({
|
|
29746
|
+
const [refreshRequired, setRefreshRequired] = React$1.useState(false);
|
|
29747
|
+
const [tooltip, setTooltip] = React$1.useState(null);
|
|
29748
|
+
const [barHeightState, setBarHeightState] = React$1.useState(barHeight);
|
|
29749
|
+
const barRefs = React$1.useRef([]); // Array to store refs for each bar
|
|
29750
|
+
const barsContainerRef = React$1.useRef(null);
|
|
29751
|
+
const [tooltipPosition, setTooltipPosition] = React$1.useState({
|
|
29743
29752
|
x: 0,
|
|
29744
29753
|
y: 0
|
|
29745
29754
|
});
|
|
@@ -29749,12 +29758,12 @@ const Heatmap = props => {
|
|
|
29749
29758
|
|
|
29750
29759
|
// Calculate the total value of all bars
|
|
29751
29760
|
const totalValue = filteredData.reduce((sum, item) => sum + item.value, 0);
|
|
29752
|
-
React.useEffect(() => {
|
|
29761
|
+
React$1.useEffect(() => {
|
|
29753
29762
|
setRefreshRequired(!refreshRequired);
|
|
29754
29763
|
}, [data]);
|
|
29755
29764
|
|
|
29756
29765
|
// Reset tooltip when height changes
|
|
29757
|
-
React.useEffect(() => {
|
|
29766
|
+
React$1.useEffect(() => {
|
|
29758
29767
|
setBarHeightState(barHeight);
|
|
29759
29768
|
setTooltip(null);
|
|
29760
29769
|
}, [barHeight]);
|
|
@@ -29975,7 +29984,7 @@ const IconButton = props => {
|
|
|
29975
29984
|
onClick,
|
|
29976
29985
|
onCancelClick
|
|
29977
29986
|
} = props;
|
|
29978
|
-
const [progress, setProgress] = React.useState(0);
|
|
29987
|
+
const [progress, setProgress] = React$1.useState(0);
|
|
29979
29988
|
let interval;
|
|
29980
29989
|
const incrementProgress = () => {
|
|
29981
29990
|
if (showProcess && progress <= 90) {
|
|
@@ -29993,7 +30002,7 @@ const IconButton = props => {
|
|
|
29993
30002
|
clearInterval(interval);
|
|
29994
30003
|
}
|
|
29995
30004
|
};
|
|
29996
|
-
React.useEffect(() => {
|
|
30005
|
+
React$1.useEffect(() => {
|
|
29997
30006
|
incrementProgress();
|
|
29998
30007
|
}, [showProcess]);
|
|
29999
30008
|
const getIcon = icon => {
|
|
@@ -30351,7 +30360,7 @@ const BarChart = props => {
|
|
|
30351
30360
|
showCurrentCampaignStyle,
|
|
30352
30361
|
isPercent
|
|
30353
30362
|
} = props;
|
|
30354
|
-
const controlsContainerRef = React.useRef();
|
|
30363
|
+
const controlsContainerRef = React$1.useRef();
|
|
30355
30364
|
const areAllDatesEmpty = () => {
|
|
30356
30365
|
if (!barChartData || barChartData?.length === 0) return true;
|
|
30357
30366
|
return barChartData?.every(item => !item.date);
|