@kando-env/kando-ui 1.2.383 → 1.2.384

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.
Files changed (584) hide show
  1. package/lib/Router.js +73 -36
  2. package/lib/Widgets/EventsCarousel/EventsCarousel.js +35 -25
  3. package/lib/Widgets/EventsRow/EventsRow.js +39 -27
  4. package/lib/Widgets/Map/GraphUtils.js +3 -3
  5. package/lib/Widgets/Map/Map.js +122 -86
  6. package/lib/Widgets/Map/MapUtils.js +95 -81
  7. package/lib/Widgets/Map/areas/AreaPolygon.js +77 -53
  8. package/lib/Widgets/Map/areas/AreaPolygons.js +24 -23
  9. package/lib/Widgets/Map/areas/AreaUtils.js +46 -47
  10. package/lib/Widgets/Map/areas/Patterns.js +4 -4
  11. package/lib/Widgets/Map/edges/Edge.js +37 -33
  12. package/lib/Widgets/Map/edges/Edges.js +26 -21
  13. package/lib/Widgets/Map/edges/arrows/Arrows.js +44 -23
  14. package/lib/Widgets/Map/events/Event.js +17 -17
  15. package/lib/Widgets/Map/events/EventIndicator.js +60 -65
  16. package/lib/Widgets/Map/events/EventPath.js +23 -25
  17. package/lib/Widgets/Map/events/EventUtils.js +80 -60
  18. package/lib/Widgets/Map/events/NetworkForSpecificEvent.js +18 -17
  19. package/lib/Widgets/Map/events/PointOfEvent.js +34 -29
  20. package/lib/Widgets/Map/events/PointsForSpecificEvent.js +37 -30
  21. package/lib/Widgets/Map/events/Snail.js +20 -19
  22. package/lib/Widgets/Map/graphDNDArea/GraphDNDArea.js +86 -93
  23. package/lib/Widgets/Map/map/FloatingGraph.js +18 -22
  24. package/lib/Widgets/Map/map/GraphDateButton.js +17 -25
  25. package/lib/Widgets/Map/matchGraph/MatchGraph.js +12 -13
  26. package/lib/Widgets/Map/matchGraph/createFloatingGraph.js +15 -16
  27. package/lib/Widgets/Map/points/PointIcon.js +15 -22
  28. package/lib/Widgets/Map/points/PointMarker.js +87 -71
  29. package/lib/Widgets/Map/points/PointMarkers.js +66 -45
  30. package/lib/Widgets/Map/points/PointUtils.js +83 -145
  31. package/lib/Widgets/MostPolluting/Areas/AreaBox/AreaBox.js +47 -30
  32. package/lib/Widgets/MostPolluting/Areas/AreaBox/Map/Map.js +10 -11
  33. package/lib/Widgets/MostPolluting/Areas/AreaBox/PieChart/PieChart.js +12 -11
  34. package/lib/Widgets/MostPolluting/Areas/AreaBox/styles.js +3 -3
  35. package/lib/Widgets/MostPolluting/Areas/Areas.js +60 -31
  36. package/lib/Widgets/MostPolluting/Areas/areas.mock.js +3 -3
  37. package/lib/Widgets/MostPolluting/Areas/styles.js +3 -3
  38. package/lib/Widgets/MostPolluting/EmptyState/EmptyState.js +8 -11
  39. package/lib/Widgets/MostPolluting/Factories/Factories.js +70 -39
  40. package/lib/Widgets/MostPolluting/Factories/FactoryBox/FactoryBox.js +18 -15
  41. package/lib/Widgets/MostPolluting/Factories/FactoryBox/PieChart/PieChart.js +8 -8
  42. package/lib/Widgets/MostPolluting/Factories/FactoryBox/PollutionScore.js +10 -12
  43. package/lib/Widgets/MostPolluting/Factories/FactoryBox/styles.js +3 -3
  44. package/lib/Widgets/MostPolluting/Factories/factories.mock.js +2 -2
  45. package/lib/Widgets/MostPolluting/Factories/styles.js +3 -3
  46. package/lib/Widgets/MostPolluting/MostPolluting.js +35 -25
  47. package/lib/Widgets/MostPolluting/MostPolluting.stories.js +22 -18
  48. package/lib/Widgets/MostPolluting/ShowMore/ShowMore.js +4 -6
  49. package/lib/Widgets/MostPolluting/ShowMore/styles.js +4 -6
  50. package/lib/Widgets/MostPolluting/assets/index.js +10 -10
  51. package/lib/Widgets/MostPolluting/components/ChangePercent.js +13 -19
  52. package/lib/Widgets/MostPolluting/components/ChangePercent.test.js +30 -35
  53. package/lib/Widgets/MostPolluting/components/PollutionScorePercent.js +35 -45
  54. package/lib/Widgets/MostPolluting/components/PollutionScorePercent.test.js +35 -39
  55. package/lib/Widgets/MostPolluting/components/PotentialImpact.js +27 -28
  56. package/lib/Widgets/MostPolluting/components/PotentialImpact.test.js +50 -54
  57. package/lib/Widgets/MostPolluting/styles.js +3 -3
  58. package/lib/Widgets/PotentialImpactSummary/Back/Back.js +5 -7
  59. package/lib/Widgets/PotentialImpactSummary/Icon.js +6 -8
  60. package/lib/Widgets/PotentialImpactSummary/index.js +27 -19
  61. package/lib/Widgets/PotentialImpactSummary/index.test.js +52 -47
  62. package/lib/Widgets/PotentialImpactSummary/styles.js +7 -7
  63. package/lib/Widgets/QualitySummary/PieChart/LegendMenu/LegendMenu.js +7 -9
  64. package/lib/Widgets/QualitySummary/PieChart/PieChart.js +17 -22
  65. package/lib/Widgets/QualitySummary/PieChart/PieChart.test.js +32 -35
  66. package/lib/Widgets/QualitySummary/PollutedLine/PollutedLine.js +24 -26
  67. package/lib/Widgets/QualitySummary/PollutedLine/PollutedLine.test.js +37 -35
  68. package/lib/Widgets/QualitySummary/QualitySummary.js +13 -9
  69. package/lib/Widgets/QualitySummary/qualitySummary.mock.js +4 -4
  70. package/lib/Widgets/QualitySummary/styles.js +15 -23
  71. package/lib/Widgets/UtilityInformation/MapModal/MapModal.js +13 -12
  72. package/lib/Widgets/UtilityInformation/PopupWithMap/Map/Map.js +26 -27
  73. package/lib/Widgets/UtilityInformation/PopupWithMap/PopupWithMap.js +24 -29
  74. package/lib/Widgets/UtilityInformation/UtilityInformation.js +37 -23
  75. package/lib/Widgets/UtilityInformation/styles.js +25 -34
  76. package/lib/Widgets/UtilityInformation/utilityInformation.mock.js +3 -3
  77. package/lib/assets/icons/TopNavbar/index.js +6 -6
  78. package/lib/assets/icons/TrendSvg.js +6 -6
  79. package/lib/assets/icons/index.js +15 -15
  80. package/lib/assets/icons/kandoStepper/index.js +5 -5
  81. package/lib/assets/icons/siteTypes/index.js +1 -1
  82. package/lib/components/ApplyButton/ApplyButton.js +9 -9
  83. package/lib/components/Backdrop/Backdrop.js +4 -6
  84. package/lib/components/ContentLoader/ContentLoader.js +9 -11
  85. package/lib/components/ContentLoader/index.js +1 -1
  86. package/lib/components/CustomInputs/DoubleTabs/DoubleTabs.js +12 -13
  87. package/lib/components/CustomInputs/DoubleTabs/DoubleTabs.stories.js +5 -3
  88. package/lib/components/CustomInputs/DoubleTabs/styles.js +12 -20
  89. package/lib/components/CustomInputs/PasswordInput/PasswordInput.js +20 -13
  90. package/lib/components/CustomInputs/PrimaryButton/PrimaryButton.js +4 -6
  91. package/lib/components/CustomInputs/Search/Search.js +63 -42
  92. package/lib/components/CustomInputs/Select/Select.js +58 -45
  93. package/lib/components/CustomInputs/Select/Select.stories.js +6 -4
  94. package/lib/components/DamageType/DamageType.js +57 -35
  95. package/lib/components/DataLoaderError/DataLoaderError.js +6 -8
  96. package/lib/components/DischargeHeatmap/DischargeHeatmap.js +10 -9
  97. package/lib/components/DischargeHeatmap/DischargeHeatmap.test.js +71 -70
  98. package/lib/components/DischargeHeatmap/DischargeHeatmapContainer.js +37 -27
  99. package/lib/components/DischargeHeatmap/HighchartsOptions.js +12 -10
  100. package/lib/components/DischargeHeatmap/mocks/handlers.js +3 -3
  101. package/lib/components/DischargeHeatmap/popupText.js +10 -10
  102. package/lib/components/DischargeHeatmap/titles.js +3 -3
  103. package/lib/components/ErrorBoundary.js +41 -27
  104. package/lib/components/Events/Events.js +58 -41
  105. package/lib/components/Graph/Graph.js +96 -77
  106. package/lib/components/Header/Breadcrumbs/Breadcrumbs.js +21 -17
  107. package/lib/components/Header/DoubleTabs/DoubleTabs.js +33 -25
  108. package/lib/components/Header/DoubleTabs/DoubleTabs.stories.js +5 -3
  109. package/lib/components/Header/DoubleTabs/styles.js +4 -4
  110. package/lib/components/Header/Header.js +2 -2
  111. package/lib/components/Header/Header.stories.js +5 -3
  112. package/lib/components/Header/InfoBar/Breadcrumbs/Breadcrumbs.js +34 -22
  113. package/lib/components/Header/InfoBar/InfoBar.js +103 -74
  114. package/lib/components/Header/InfoBar/Search/Control.js +9 -9
  115. package/lib/components/Header/InfoBar/Search/GroupLabel.js +5 -7
  116. package/lib/components/Header/InfoBar/Search/Search.js +21 -16
  117. package/lib/components/Header/InfoBar/Search/SearchContainer.js +33 -21
  118. package/lib/components/Header/InfoBar/Search/searchStyle.js +49 -41
  119. package/lib/components/Header/InfoBar/TimeFilter.js +14 -11
  120. package/lib/components/Header/KandoNavbar/KandoNavbar.js +89 -64
  121. package/lib/components/Header/Slideshow/Slideshow.js +90 -68
  122. package/lib/components/Header/Toolbar/ClientImg/ClientImg.js +4 -6
  123. package/lib/components/Header/Toolbar/CustomerMenu/CustomerMenu.js +23 -21
  124. package/lib/components/Header/Toolbar/MenuCreator/MenuCreator.js +18 -18
  125. package/lib/components/Header/Toolbar/SearchDropdown/SearchDropdown.js +43 -37
  126. package/lib/components/Header/Toolbar/Toolbar.js +74 -55
  127. package/lib/components/InfoBar/InfoBar.js +23 -10
  128. package/lib/components/InfoBar/InfoBar.stories.js +5 -3
  129. package/lib/components/KandoModal/KandoModal.js +41 -27
  130. package/lib/components/Link.js +7 -8
  131. package/lib/components/Links/CustomRedirect/CustomRedirect.js +8 -9
  132. package/lib/components/Links/StyledLink/StyledLink.js +12 -12
  133. package/lib/components/Links/StyledNavLink/StyledNavLink.js +10 -11
  134. package/lib/components/LiveEvents/CarouselSlide.js +7 -9
  135. package/lib/components/LiveEvents/LiveEvents.js +3 -5
  136. package/lib/components/LoaderByPercent/LoaderByPercent.js +29 -37
  137. package/lib/components/Map/Map.js +23 -20
  138. package/lib/components/Modal/Modal.js +9 -9
  139. package/lib/components/NarrowHeader.js +31 -17
  140. package/lib/components/PointInfo/PointInfo.js +17 -19
  141. package/lib/components/PopupModal/PopupModal.js +16 -12
  142. package/lib/components/PopupModal/PopupModal.stories.js +19 -15
  143. package/lib/components/Sector/Sector.js +6 -8
  144. package/lib/components/Sector/Sector.test.js +20 -19
  145. package/lib/components/Sector/sectorIcons.js +2 -2
  146. package/lib/components/SevereEvent/Eta/Eta.js +52 -49
  147. package/lib/components/SevereEvent/Eta/styles.js +6 -10
  148. package/lib/components/SevereEvent/SevereEvent.js +37 -30
  149. package/lib/components/Spinner/Spinner.js +8 -8
  150. package/lib/components/Spinner/Spinner.stories.js +6 -4
  151. package/lib/components/Spinner/styles.js +14 -22
  152. package/lib/components/Tabs/Tabs.js +29 -21
  153. package/lib/components/Tabs/Tabs.stories.js +6 -4
  154. package/lib/components/Tabs/assets/index.js +5 -5
  155. package/lib/components/TimeRangeSelector/KandoRangePicker/ComparisonSelect.js +15 -12
  156. package/lib/components/TimeRangeSelector/KandoRangePicker/KandoRangePicker.js +51 -40
  157. package/lib/components/TimeRangeSelector/KandoRangePicker/KandoRangePickerContainer.js +31 -19
  158. package/lib/components/TimeRangeSelector/TimeRangeHelper.js +25 -20
  159. package/lib/components/TimeRangeSelector/TimeRangeItem/TimeRangeItem.js +13 -13
  160. package/lib/components/TimeRangeSelector/TimeRangeList.js +24 -23
  161. package/lib/components/TimeRangeSelector/TimeRangeOptions.js +25 -17
  162. package/lib/components/TimeRangeSelector/TimeRangeSelector.js +32 -31
  163. package/lib/components/TimeRangeSelector/TimeRangeSelector.stories.js +6 -4
  164. package/lib/components/TimeRangeSelector/constants.js +3 -3
  165. package/lib/components/Toggle/Toggle.js +17 -12
  166. package/lib/components/TrendGraph/TrendGraph.js +39 -23
  167. package/lib/components/TrendGraphNVL/TrendGraphNVL.js +33 -27
  168. package/lib/development-environment/index.js +12 -8
  169. package/lib/development-environment/mock/browser.js +4 -2
  170. package/lib/development-environment/mock/get.js +10 -8
  171. package/lib/development-environment/mock/handlers.js +2 -2
  172. package/lib/development-environment/mock/mockBus.js +4 -4
  173. package/lib/development-environment/mock/mockObjects/area-trends-graph.js +2 -2
  174. package/lib/development-environment/mock/mockObjects/areaInformation.js +2 -2
  175. package/lib/development-environment/mock/mockObjects/areaQualitySummary.js +2 -2
  176. package/lib/development-environment/mock/mockObjects/areaSitesData.js +2 -2
  177. package/lib/development-environment/mock/mockObjects/areasJson.js +2 -2
  178. package/lib/development-environment/mock/mockObjects/controlRoomNetworkEdges.js +2 -2
  179. package/lib/development-environment/mock/mockObjects/covidView-areasData-24.js +2 -2
  180. package/lib/development-environment/mock/mockObjects/data-menuData.js +2 -2
  181. package/lib/development-environment/mock/mockObjects/data-search.js +2 -2
  182. package/lib/development-environment/mock/mockObjects/discharge_effluent_quality.js +2 -2
  183. package/lib/development-environment/mock/mockObjects/discharge_pattern_overtime.js +2 -2
  184. package/lib/development-environment/mock/mockObjects/eventFiltersJson.js +2 -2
  185. package/lib/development-environment/mock/mockObjects/eventsJson.js +2 -2
  186. package/lib/development-environment/mock/mockObjects/metascore.js +2 -2
  187. package/lib/development-environment/mock/mockObjects/permissionsJson.js +2 -2
  188. package/lib/development-environment/mock/mockObjects/pointsJson.js +2 -2
  189. package/lib/development-environment/mock/mockObjects/site-info.js +2 -2
  190. package/lib/development-environment/mock/mockObjects/trend-graph-component-data-907.js +2 -2
  191. package/lib/development-environment/togly/ToglyDashboard.js +22 -13
  192. package/lib/development-environment/togly/ToglyItem.js +31 -36
  193. package/lib/development-environment/togly/init.js +2 -2
  194. package/lib/development-environment/togly/macro.js +10 -14
  195. package/lib/development-environment/togly/useDoubleKeyDown.js +9 -7
  196. package/lib/development-environment/togly/useLocalStorage.js +18 -13
  197. package/lib/hooks/useApi.js +55 -19
  198. package/lib/hooks/useApiWithDashboardQuery.js +49 -30
  199. package/lib/hooks/useClickOutside.js +3 -3
  200. package/lib/hooks/useInitializeHeaders.js +5 -5
  201. package/lib/hooks/useKandoFetch.js +29 -16
  202. package/lib/hooks/useMap.js +34 -22
  203. package/lib/hooks/useNavContext.js +26 -22
  204. package/lib/hooks/useRemoveExistingLayers.js +6 -6
  205. package/lib/hooks/useUpdateEventBodyTail.js +17 -13
  206. package/lib/hooks/useUserTimeZone.js +30 -33
  207. package/lib/hooks/useUserTimeZone.test.js +22 -19
  208. package/lib/hooks/useWindowSize.js +14 -7
  209. package/lib/index.js +12 -11
  210. package/lib/macros/getVersion.js +3 -3
  211. package/lib/pages/AreaPage/AreaPage.js +67 -34
  212. package/lib/pages/AreaPage/Dashboard/AreaMapContainer/AreaMapContainer.js +17 -16
  213. package/lib/pages/AreaPage/Dashboard/Dashboard.js +31 -30
  214. package/lib/pages/AreaPage/Dashboard/LineChart/LineChart.js +25 -17
  215. package/lib/pages/AreaPage/Dashboard/LineChart/options/options.js +4 -4
  216. package/lib/pages/AreaPage/Dashboard/Sites/SitesBox/PieChart/PieChart.js +8 -8
  217. package/lib/pages/AreaPage/Dashboard/Sites/SitesBox/SiteBox.js +11 -11
  218. package/lib/pages/AreaPage/Dashboard/Sites/SitesBox/styles.js +3 -3
  219. package/lib/pages/AreaPage/Dashboard/Sites/factories.mock.js +2 -2
  220. package/lib/pages/AreaPage/Dashboard/Sites/styles.js +4 -4
  221. package/lib/pages/AssessmentPage/AssessmentPage.js +46 -40
  222. package/lib/pages/CannyWidget/Feedback.js +13 -13
  223. package/lib/pages/CovidPage/CovidPage.js +13 -8
  224. package/lib/pages/CovidPage/components/Body.js +27 -25
  225. package/lib/pages/CovidPage/components/Map.js +39 -29
  226. package/lib/pages/CovidPage/components/Sidebar.js +15 -16
  227. package/lib/pages/CovidPage/components/Summary.js +27 -20
  228. package/lib/pages/CovidPage/components/TrendGraphNVL/TrendGraphNVL.js +33 -27
  229. package/lib/pages/CovidPage/components/TrendPopupContent/TrendPopupContent.js +73 -51
  230. package/lib/pages/CovidPage/components/areas/Area.js +40 -29
  231. package/lib/pages/CovidPage/components/areas/AreaPolygonWBE.js +46 -55
  232. package/lib/pages/CovidPage/components/areas/AreaPolygonsWBE.js +35 -32
  233. package/lib/pages/CovidPage/components/areas/AreasList.js +46 -34
  234. package/lib/pages/CovidPage/components/areas/Sort.js +14 -11
  235. package/lib/pages/CovidPage/components/nvlStatusHelper.js +11 -11
  236. package/lib/pages/DashboardMap/AreaCard.js +28 -28
  237. package/lib/pages/DashboardMap/AssessmentIcon.js +7 -8
  238. package/lib/pages/DashboardMap/Capacity.js +80 -31
  239. package/lib/pages/DashboardMap/FactoryCard.js +26 -31
  240. package/lib/pages/DashboardMap/HighchartsOptions.js +4 -5
  241. package/lib/pages/DashboardMap/List.js +105 -74
  242. package/lib/pages/DashboardMap/ListContext.js +19 -15
  243. package/lib/pages/DashboardMap/Loader.js +2 -2
  244. package/lib/pages/DashboardMap/SeverityBadge.js +18 -10
  245. package/lib/pages/DashboardMap/WWTPMap.js +60 -48
  246. package/lib/pages/DashboardMap/WaterDischarge.js +8 -8
  247. package/lib/pages/DashboardMap/Widget.js +71 -54
  248. package/lib/pages/DashboardMap/utils.js +65 -48
  249. package/lib/pages/EventsPage/Body/Body.js +15 -20
  250. package/lib/pages/EventsPage/DragAndDropArea/DragAndDropContainer.js +19 -17
  251. package/lib/pages/EventsPage/DragAndDropArea/DragAndDropUtils.js +35 -27
  252. package/lib/pages/EventsPage/DragAndDropArea/DragAndDropWrapper.js +6 -8
  253. package/lib/pages/EventsPage/DragAndDropArea/DraggableItem.js +7 -11
  254. package/lib/pages/EventsPage/DragAndDropArea/DraggableList.js +30 -21
  255. package/lib/pages/EventsPage/EventsMapContainer/EventsMapContainer.js +64 -53
  256. package/lib/pages/EventsPage/EventsMapContainer/EventsMapContainerHelpers.js +31 -19
  257. package/lib/pages/EventsPage/EventsPage.js +10 -7
  258. package/lib/pages/EventsPage/FloatingGraph/FloatingGraph.js +38 -26
  259. package/lib/pages/EventsPage/events/MoreInfo.js +16 -17
  260. package/lib/pages/EventsPage/events/Sidebar.js +18 -22
  261. package/lib/pages/EventsPage/events/event_info/Contaminants/Contaminants.js +7 -7
  262. package/lib/pages/EventsPage/events/event_info/Contaminants/ContaminantsList.js +20 -17
  263. package/lib/pages/EventsPage/events/event_info/EarlyWarnings.js +35 -30
  264. package/lib/pages/EventsPage/events/event_info/EventDetails.js +37 -40
  265. package/lib/pages/EventsPage/events/event_info/EventInfo.js +42 -43
  266. package/lib/pages/EventsPage/events/event_info/EventPath/EventPath.js +4 -4
  267. package/lib/pages/EventsPage/events/event_info/EventSection.js +19 -17
  268. package/lib/pages/EventsPage/events/event_info/EventSection.test.js +38 -43
  269. package/lib/pages/EventsPage/events/event_info/EventTimeRange.js +47 -39
  270. package/lib/pages/EventsPage/events/event_info/Header/Header.js +4 -6
  271. package/lib/pages/EventsPage/events/event_info/Header/HeaderContainer.js +33 -30
  272. package/lib/pages/EventsPage/events/event_info/HistoricalInformation.js +6 -6
  273. package/lib/pages/EventsPage/events/event_info/MiniEventTree.js +36 -29
  274. package/lib/pages/EventsPage/events/event_info/MobileEventPath.js +6 -4
  275. package/lib/pages/EventsPage/events/event_info/PollutionAssessment /PollutionAssessment.js +10 -10
  276. package/lib/pages/EventsPage/events/event_info/PollutionAssessment /PollutionTypesList.js +9 -7
  277. package/lib/pages/EventsPage/events/event_info/PollutionDischarge.js +21 -22
  278. package/lib/pages/EventsPage/events/event_info/SamplingList/LabResult/LabResult.js +19 -12
  279. package/lib/pages/EventsPage/events/event_info/SamplingList/LabResult/LabResultButton.js +3 -5
  280. package/lib/pages/EventsPage/events/event_info/SamplingList/SamplingDetails.js +9 -11
  281. package/lib/pages/EventsPage/events/event_info/SamplingList/Samplings.js +26 -22
  282. package/lib/pages/EventsPage/events/event_info/SeverityScore/ScoreExplanation.js +8 -12
  283. package/lib/pages/EventsPage/events/event_info/SeverityScore/SeverityScore.js +7 -7
  284. package/lib/pages/EventsPage/events/event_info/SourceDetails/Confidence.js +4 -6
  285. package/lib/pages/EventsPage/events/event_info/SourceDetails/Discharging.js +2 -2
  286. package/lib/pages/EventsPage/events/event_info/SourceDetails/Discharging.test.js +10 -12
  287. package/lib/pages/EventsPage/events/event_info/SourceDetails/IconAndTitles.js +8 -10
  288. package/lib/pages/EventsPage/events/event_info/SourceDetails/MoreInfoButton.js +12 -10
  289. package/lib/pages/EventsPage/events/event_info/SourceDetails/OtherSources.js +3 -5
  290. package/lib/pages/EventsPage/events/event_info/SourceDetails/PotentialSources.js +5 -7
  291. package/lib/pages/EventsPage/events/event_info/SourceDetails/SingleSource.js +5 -7
  292. package/lib/pages/EventsPage/events/event_info/SourceDetails/SourceCardBody.js +4 -6
  293. package/lib/pages/EventsPage/events/event_info/SourceDetails/SourceDetails.js +9 -11
  294. package/lib/pages/EventsPage/events/event_info/SourceDetails/SourceDetails.test.js +15 -15
  295. package/lib/pages/EventsPage/events/event_info/SourceDetails/WaterDischarge.js +6 -6
  296. package/lib/pages/EventsPage/events/event_info/Timelines/DischargeBox.js +5 -7
  297. package/lib/pages/EventsPage/events/event_info/Timelines/EarlyWarning.js +15 -17
  298. package/lib/pages/EventsPage/events/event_info/Timelines/LiveStatusBadge.js +4 -4
  299. package/lib/pages/EventsPage/events/event_info/Timelines/SeenBox.js +8 -10
  300. package/lib/pages/EventsPage/events/event_info/Timelines/Timelines.js +11 -16
  301. package/lib/pages/EventsPage/events/event_info/Timelines/Timelines.test.js +8 -9
  302. package/lib/pages/EventsPage/events/event_info/Timelines/Titles.js +2 -2
  303. package/lib/pages/EventsPage/events/event_info/Timelines/style.js +3 -3
  304. package/lib/pages/EventsPage/events/event_info/charts/EventDetailsPieChart.js +38 -25
  305. package/lib/pages/EventsPage/events/event_info/damage_type/DamageType.js +36 -29
  306. package/lib/pages/EventsPage/events/event_info/samplingsOld/Sampling.js +9 -11
  307. package/lib/pages/EventsPage/events/event_info/samplingsOld/Samplings.js +17 -15
  308. package/lib/pages/EventsPage/events/event_info/sources/Source.js +30 -27
  309. package/lib/pages/EventsPage/events/event_info/sources/Sources.js +26 -23
  310. package/lib/pages/EventsPage/events/event_info/styles.js +12 -20
  311. package/lib/pages/EventsPage/events/events_list/EventItem.js +19 -18
  312. package/lib/pages/EventsPage/events/events_list/EventUtils.js +10 -10
  313. package/lib/pages/EventsPage/events/events_list/EventsList.js +145 -124
  314. package/lib/pages/EventsPage/events/events_list/Filter/Filter.js +55 -40
  315. package/lib/pages/EventsPage/events/events_list/Filter/FilterContainer.js +115 -79
  316. package/lib/pages/EventsPage/events/events_list/Filter/FilterItem.js +77 -60
  317. package/lib/pages/EventsPage/events/events_list/Filter/FiltersDropDown.js +41 -38
  318. package/lib/pages/EventsPage/events/events_list/Filter/OptionsDropDown.js +36 -29
  319. package/lib/pages/EventsPage/events/events_list/Sort.js +16 -13
  320. package/lib/pages/ImportFileWizard/FileUploadRespones.js +20 -13
  321. package/lib/pages/ImportFileWizard/ImportButtomButtons.js +4 -6
  322. package/lib/pages/ImportFileWizard/ImportFile.js +22 -20
  323. package/lib/pages/ImportFileWizard/ResponseBody.js +33 -24
  324. package/lib/pages/ImportFileWizard/ValidationForm.js +22 -23
  325. package/lib/pages/ImportFileWizard/ValidationResponse.js +21 -21
  326. package/lib/pages/ImportFileWizard/importFileUtils.js +1 -1
  327. package/lib/pages/ImportGisPage/ImportGisContainer.js +24 -21
  328. package/lib/pages/ImportGisPage/ImportedGisFilesPage.js +23 -21
  329. package/lib/pages/ImportGisPage/importGisUtils.js +21 -13
  330. package/lib/pages/ImportGisProcess/index.js +15 -12
  331. package/lib/pages/NotificationsPage/EditNotificationModal/Buttons/MultiChoiceTabs.js +12 -7
  332. package/lib/pages/NotificationsPage/EditNotificationModal/Buttons/RadioTabs.js +19 -17
  333. package/lib/pages/NotificationsPage/EditNotificationModal/Buttons/SeverityButtons.js +3 -3
  334. package/lib/pages/NotificationsPage/EditNotificationModal/EditNotificationModal.js +65 -56
  335. package/lib/pages/NotificationsPage/EditNotificationModal/EditNotificationModal.stories.js +8 -6
  336. package/lib/pages/NotificationsPage/Notification/Notification.js +12 -16
  337. package/lib/pages/NotificationsPage/Notifications.mock.js +2 -2
  338. package/lib/pages/NotificationsPage/Notifications.stories.js +6 -4
  339. package/lib/pages/NotificationsPage/NotificationsPage.js +36 -18
  340. package/lib/pages/NotificationsPage/assets/index.js +9 -9
  341. package/lib/pages/NotificationsPageV2/NotificationsPage.js +97 -71
  342. package/lib/pages/NotificationsPageV2/components/NotificationsCard.js +63 -94
  343. package/lib/pages/NotificationsPageV2/components/NotificationsForm/EventType.js +16 -14
  344. package/lib/pages/NotificationsPageV2/components/NotificationsForm/NotificationSendVia.js +16 -18
  345. package/lib/pages/NotificationsPageV2/components/NotificationsForm/NotificationSensors.js +21 -17
  346. package/lib/pages/NotificationsPageV2/components/NotificationsForm/NotificationSources.js +21 -17
  347. package/lib/pages/NotificationsPageV2/components/NotificationsForm/NotificationTags.js +22 -18
  348. package/lib/pages/NotificationsPageV2/components/NotificationsForm/NotificationsFormContent.js +69 -83
  349. package/lib/pages/NotificationsPageV2/components/NotificationsForm/WaterAuthoritySelection.js +22 -18
  350. package/lib/pages/NotificationsPageV2/components/NotificationsSidebar.js +74 -74
  351. package/lib/pages/NotificationsPageV2/components/NotificationsUtils.js +95 -97
  352. package/lib/pages/NotificationsPageV2/notificationUtils.js +48 -54
  353. package/lib/pages/OldSitePage/OldSitePage.js +132 -57
  354. package/lib/pages/OldSitePage/SamplingParameters/NoResults/NoResults.js +5 -5
  355. package/lib/pages/OldSitePage/SamplingParameters/NoResults/NoResults.stories.js +5 -3
  356. package/lib/pages/OldSitePage/SamplingParameters/ParametersContainer/ParametersButtons/ParameterButton/ParameterButton.js +6 -8
  357. package/lib/pages/OldSitePage/SamplingParameters/ParametersContainer/ParametersButtons/ParametersButtons.js +20 -18
  358. package/lib/pages/OldSitePage/SamplingParameters/ParametersContainer/ParametersButtons/styles.js +7 -9
  359. package/lib/pages/OldSitePage/SamplingParameters/ParametersContainer/ParametersContainer.js +18 -12
  360. package/lib/pages/OldSitePage/SamplingParameters/SamplingContainer/ExceptionBar/ExceptionBar.js +12 -16
  361. package/lib/pages/OldSitePage/SamplingParameters/SamplingContainer/ExceptionBar/ExceptionBar.stories.js +5 -3
  362. package/lib/pages/OldSitePage/SamplingParameters/SamplingContainer/ExceptionBar/styles.js +12 -18
  363. package/lib/pages/OldSitePage/SamplingParameters/SamplingContainer/ExpandableSamplingTable/ExpandableSamplingTable.js +63 -51
  364. package/lib/pages/OldSitePage/SamplingParameters/SamplingContainer/SamplingContainer.js +7 -9
  365. package/lib/pages/OldSitePage/SamplingParameters/SamplingParameters.js +53 -29
  366. package/lib/pages/OldSitePage/SamplingParameters/SamplingParameters.mock.js +4 -4
  367. package/lib/pages/OldSitePage/SamplingParameters/SamplingParameters.stories.js +12 -10
  368. package/lib/pages/OldSitePage/SamplingParameters/charts/ParametersChart.js +10 -11
  369. package/lib/pages/OldSitePage/SamplingParameters/charts/SamplingChart.js +11 -10
  370. package/lib/pages/OldSitePage/SamplingParameters/charts/options/options.js +28 -32
  371. package/lib/pages/OldSitePage/SamplingParameters/dataParser.js +29 -27
  372. package/lib/pages/OldSitePage/SamplingParameters/styles/samplingParameters.js +4 -4
  373. package/lib/pages/OldSitePage/SamplingParameters/styles/styles.js +12 -18
  374. package/lib/pages/ProfilePage/Container.js +2 -2
  375. package/lib/pages/ProfilePage/PasswordModal/PasswordModal.js +44 -28
  376. package/lib/pages/ProfilePage/ProfilePage.js +214 -121
  377. package/lib/pages/ProfilePage/TelegramModal/TelegramModal.js +33 -25
  378. package/lib/pages/SamplingsPage/ActionsDropDown/LabResultValue.js +16 -19
  379. package/lib/pages/SamplingsPage/ActionsDropDown/LabResultValue.test.js +30 -28
  380. package/lib/pages/SamplingsPage/ActionsDropDown/SamplingActionContainer.js +117 -57
  381. package/lib/pages/SamplingsPage/ActionsDropDown/SamplingActionDropdown.js +20 -17
  382. package/lib/pages/SamplingsPage/ActionsDropDown/SamplingActions.js +10 -12
  383. package/lib/pages/SamplingsPage/ActionsDropDown/ViewLabResult.js +41 -39
  384. package/lib/pages/SamplingsPage/DesktopActions/DesktopActions.js +26 -25
  385. package/lib/pages/SamplingsPage/DesktopActions/DownloadCSV.js +16 -16
  386. package/lib/pages/SamplingsPage/DesktopActions/UploadLabResult.js +15 -13
  387. package/lib/pages/SamplingsPage/NavigationDropdown.js +32 -45
  388. package/lib/pages/SamplingsPage/NewSamplingAction.js +100 -76
  389. package/lib/pages/SamplingsPage/SamplingMobileModal.js +101 -129
  390. package/lib/pages/SamplingsPage/SamplingProperties/ImageDeleteModal.js +22 -21
  391. package/lib/pages/SamplingsPage/SamplingProperties/ImagePreviewModal.js +22 -34
  392. package/lib/pages/SamplingsPage/SamplingProperties/ImageUpload.js +59 -36
  393. package/lib/pages/SamplingsPage/SamplingProperties/ManholeImageMobile.js +18 -15
  394. package/lib/pages/SamplingsPage/SamplingProperties/SamplerInProcess.js +7 -9
  395. package/lib/pages/SamplingsPage/SamplingProperties/SamplingProperties.js +194 -110
  396. package/lib/pages/SamplingsPage/SamplingProperties/SamplingPropertiesForm.js +55 -49
  397. package/lib/pages/SamplingsPage/SamplingProperties/SamplingPropertiesHead.js +43 -47
  398. package/lib/pages/SamplingsPage/SamplingProperties/SamplingPropertiesHeadMobile.js +45 -49
  399. package/lib/pages/SamplingsPage/SamplingProperties/samplingPropertiesUtils.js +20 -19
  400. package/lib/pages/SamplingsPage/SamplingProperties/styles.js +3 -3
  401. package/lib/pages/SamplingsPage/SamplingSiteTableCell.js +6 -10
  402. package/lib/pages/SamplingsPage/SamplingsMobileItem.js +54 -58
  403. package/lib/pages/SamplingsPage/SamplingsMobileList.js +28 -21
  404. package/lib/pages/SamplingsPage/SamplingsPage.js +33 -27
  405. package/lib/pages/SamplingsPage/SamplingsPageContainer.js +58 -50
  406. package/lib/pages/SamplingsPage/samplingsPageUtils.js +76 -68
  407. package/lib/pages/SitePage/DischargePattern/DischargePattern.js +4 -6
  408. package/lib/pages/SitePage/PollutionContributor/PollutionContributor.js +13 -14
  409. package/lib/pages/SitePage/PollutionContributor/PollutionContributorContainer.js +13 -10
  410. package/lib/pages/SitePage/PollutionContributor/contributorUtils.js +16 -16
  411. package/lib/pages/SitePage/SamplingParameters/NoResults/NoResults.stories.js +5 -3
  412. package/lib/pages/SitePage/SamplingParameters/NoResults/index.js +10 -14
  413. package/lib/pages/SitePage/SamplingParameters/ParametersContainer/ParametersButtons/ParameterButton/ParameterButton.js +8 -9
  414. package/lib/pages/SitePage/SamplingParameters/ParametersContainer/ParametersButtons/ParameterButton/ParameterButton.test.js +23 -26
  415. package/lib/pages/SitePage/SamplingParameters/ParametersContainer/ParametersButtons/ParametersButtons.js +17 -14
  416. package/lib/pages/SitePage/SamplingParameters/ParametersContainer/ParametersButtons/ParametersButtons.test.js +32 -36
  417. package/lib/pages/SitePage/SamplingParameters/ParametersContainer/ParametersButtons/styles.js +7 -9
  418. package/lib/pages/SitePage/SamplingParameters/ParametersContainer/ParametersContainer.js +24 -15
  419. package/lib/pages/SitePage/SamplingParameters/SamplingContainer/ExceptionBar/ExceptionBar.js +12 -16
  420. package/lib/pages/SitePage/SamplingParameters/SamplingContainer/ExceptionBar/ExceptionBar.stories.js +5 -3
  421. package/lib/pages/SitePage/SamplingParameters/SamplingContainer/ExceptionBar/styles.js +12 -18
  422. package/lib/pages/SitePage/SamplingParameters/SamplingContainer/ExpandableSamplingTable/ExpandableSamplingTable.js +70 -58
  423. package/lib/pages/SitePage/SamplingParameters/SamplingContainer/SamplingContainer.js +7 -9
  424. package/lib/pages/SitePage/SamplingParameters/SamplingParameters.js +26 -15
  425. package/lib/pages/SitePage/SamplingParameters/SamplingParameters.mock.js +5 -5
  426. package/lib/pages/SitePage/SamplingParameters/SamplingParameters.stories.js +12 -10
  427. package/lib/pages/SitePage/SamplingParameters/body/Body.js +9 -9
  428. package/lib/pages/SitePage/SamplingParameters/body/BodyContainer.js +37 -29
  429. package/lib/pages/SitePage/SamplingParameters/charts/ParametersChart.js +11 -11
  430. package/lib/pages/SitePage/SamplingParameters/charts/SamplingChart.js +11 -10
  431. package/lib/pages/SitePage/SamplingParameters/charts/options/options.js +59 -60
  432. package/lib/pages/SitePage/SamplingParameters/dataParser.js +39 -30
  433. package/lib/pages/SitePage/SamplingParameters/dataParser.test.js +9 -11
  434. package/lib/pages/SitePage/SamplingParameters/styles/samplingParameters.js +4 -4
  435. package/lib/pages/SitePage/SamplingParameters/styles/styles.js +12 -18
  436. package/lib/pages/SitePage/SiteInformation/EmptyState.js +7 -11
  437. package/lib/pages/SitePage/SiteInformation/SiteInformation.js +30 -31
  438. package/lib/pages/SitePage/SitePage.js +81 -42
  439. package/lib/pages/UploadLabResult/index.js +13 -13
  440. package/lib/pages/UtilityDashboardPage/MostSevereEvents/MostSevereEvents.js +35 -26
  441. package/lib/pages/UtilityDashboardPage/MostSevereEvents/MostSevereEvents.stories.js +8 -6
  442. package/lib/pages/UtilityDashboardPage/MostSevereEvents/NoEvents/NoEvents.js +8 -9
  443. package/lib/pages/UtilityDashboardPage/MostSevereEvents/NoEvents/NoEvents.stories.js +5 -3
  444. package/lib/pages/UtilityDashboardPage/MostSevereEvents/SevereEvent/Eta/Eta.js +48 -47
  445. package/lib/pages/UtilityDashboardPage/MostSevereEvents/SevereEvent/Eta/styles.js +6 -10
  446. package/lib/pages/UtilityDashboardPage/MostSevereEvents/SevereEvent/LinkedSevereEvent.js +4 -4
  447. package/lib/pages/UtilityDashboardPage/MostSevereEvents/SevereEvent/OptionalLinkedSevereEvent.js +6 -4
  448. package/lib/pages/UtilityDashboardPage/MostSevereEvents/SevereEvent/SevereEvent.js +12 -13
  449. package/lib/pages/UtilityDashboardPage/TopBar/TopBar.js +12 -15
  450. package/lib/pages/UtilityDashboardPage/TopBar/constants.js +7 -7
  451. package/lib/pages/UtilityDashboardPage/TopBar/styles.js +2 -2
  452. package/lib/pages/UtilityDashboardPage/UtilityDashboard.js +29 -21
  453. package/lib/pages/UtilityDashboardPage/UtilityDashboard.stories.js +30 -26
  454. package/lib/pages/UtilityDashboardPage/UtilityDashboardMapContainer/UtilityDashboardMapContainer.js +17 -16
  455. package/lib/pages/UtilityDashboardPage/UtilityDashboardPage.js +13 -7
  456. package/lib/pages/UtilityDashboardPage/VirtualAreaDashboardPage.js +31 -27
  457. package/lib/pages/WbeDashboard/ExpandableComponent.js +8 -9
  458. package/lib/pages/WbeDashboard/GraphWrapper.js +36 -30
  459. package/lib/pages/WbeDashboard/IndividualTinyGraph.js +19 -17
  460. package/lib/pages/WbeDashboard/SearchInput.js +20 -15
  461. package/lib/pages/WbeDashboard/SummaryGraph.js +76 -50
  462. package/lib/pages/WbeDashboard/SummaryGraphModal.js +17 -19
  463. package/lib/pages/WbeDashboard/Tabs.js +11 -11
  464. package/lib/pages/WbeDashboard/WbeDashboardPage.js +213 -151
  465. package/lib/pages/WbeDashboard/WbeSummaryBar.js +48 -40
  466. package/lib/pages/WwtpPage/DashboardCard.js +23 -26
  467. package/lib/pages/WwtpPage/DischargePatternCard.js +23 -14
  468. package/lib/pages/WwtpPage/InletsCard/InletsBar.js +22 -26
  469. package/lib/pages/WwtpPage/InletsCard/InletsCard.js +18 -19
  470. package/lib/pages/WwtpPage/Map.js +3 -5
  471. package/lib/pages/WwtpPage/OrganicCard.js +2 -2
  472. package/lib/pages/WwtpPage/PotentialSaving/ImpactCard.js +2 -2
  473. package/lib/pages/WwtpPage/PotentialSaving/PotentialItem.js +6 -8
  474. package/lib/pages/WwtpPage/PotentialSaving/PotentialSaving.js +8 -9
  475. package/lib/pages/WwtpPage/PotentialSaving/PotentialSavingContainer.js +14 -18
  476. package/lib/pages/WwtpPage/PredictionCard.js +2 -2
  477. package/lib/pages/WwtpPage/TrendCard.js +19 -18
  478. package/lib/pages/WwtpPage/UpgradeBox.js +3 -3
  479. package/lib/pages/WwtpPage/WwtpPage.js +8 -8
  480. package/lib/pages/WwtpPage/WwtpPageContainer.js +16 -21
  481. package/lib/providers/Slideshow/SlideshowContext.js +9 -11
  482. package/lib/providers/Slideshow/SlideshowProvider.js +38 -22
  483. package/lib/providers/Slideshow/SlideshowRunner.js +19 -17
  484. package/lib/providers/UrlHistory/UrlHistoryContext.js +4 -6
  485. package/lib/providers/UrlHistory/UrlHistoryProvider.js +11 -12
  486. package/lib/providers/UrlHistory/index.js +2 -2
  487. package/lib/providers/UrlHistory/useLastVisited.js +5 -5
  488. package/lib/store/ImportGis/actionTypes.js +1 -1
  489. package/lib/store/ImportGis/actionsCreator.js +5 -7
  490. package/lib/store/ImportGis/reducer.js +29 -40
  491. package/lib/store/WBE/actionTypes.js +2 -2
  492. package/lib/store/WBE/reducer.js +9 -13
  493. package/lib/store/WWTPDashboard/WWTPDashboardSlice.js +14 -24
  494. package/lib/store/areas/actionTypes.js +4 -4
  495. package/lib/store/areas/actions.js +13 -7
  496. package/lib/store/areas/reducer.js +6 -8
  497. package/lib/store/context/actionTypes.js +3 -3
  498. package/lib/store/context/actions.js +3 -3
  499. package/lib/store/context/contextMiddlewares.js +16 -14
  500. package/lib/store/context/reducer.js +9 -13
  501. package/lib/store/dashboard/dashboardSlice.js +10 -18
  502. package/lib/store/edges/actionTypes.js +5 -5
  503. package/lib/store/edges/actions.js +8 -4
  504. package/lib/store/edges/reducer.js +17 -13
  505. package/lib/store/events/actionTypes.js +17 -17
  506. package/lib/store/events/actions.js +7 -3
  507. package/lib/store/events/reducer.js +49 -42
  508. package/lib/store/global/actionTypes.js +11 -11
  509. package/lib/store/global/actions.js +6 -8
  510. package/lib/store/global/reducer.js +10 -11
  511. package/lib/store/permissions/permissionsSlice.js +8 -12
  512. package/lib/store/points/actionTypes.js +3 -3
  513. package/lib/store/points/actions.js +8 -4
  514. package/lib/store/points/reducer.js +5 -7
  515. package/lib/store/rootActionTypes.js +2 -2
  516. package/lib/store/rootReducer.js +12 -17
  517. package/lib/store/rootStore.js +5 -5
  518. package/lib/store/samplings/actionTypes.js +1 -1
  519. package/lib/store/samplings/reducer.js +14 -16
  520. package/lib/styles/StylesLayout.js +3 -5
  521. package/lib/styles/theme/theme.js +27 -26
  522. package/lib/test/mocks/browser.js +4 -2
  523. package/lib/test/test-utils.js +15 -17
  524. package/lib/ui-kit/Button/Button.js +80 -128
  525. package/lib/ui-kit/Button/Button.test.js +29 -24
  526. package/lib/ui-kit/Checkbox/Checkbox.js +20 -30
  527. package/lib/ui-kit/ContentCard/ContentCard.js +18 -15
  528. package/lib/ui-kit/Dashboard/Dashboard.js +22 -25
  529. package/lib/ui-kit/DropDown/DropDown.js +24 -23
  530. package/lib/ui-kit/DropDown/DropDown.test.js +12 -12
  531. package/lib/ui-kit/DropDown/DropDownItem.js +21 -24
  532. package/lib/ui-kit/DropDown/DropdownToggle.js +8 -12
  533. package/lib/ui-kit/EmptyState/EmptyState.js +4 -6
  534. package/lib/ui-kit/IconAction/IconAction.js +5 -7
  535. package/lib/ui-kit/ImageUploadButton/ImageUploadButton.js +64 -48
  536. package/lib/ui-kit/InfoTooltip/InfoTooltip.js +52 -69
  537. package/lib/ui-kit/InletsPie/InletsPie.js +13 -15
  538. package/lib/ui-kit/InletsPie/options.js +6 -6
  539. package/lib/ui-kit/KandoList/KandoList.js +12 -14
  540. package/lib/ui-kit/KandoTable/KandoTable.js +40 -48
  541. package/lib/ui-kit/KandoTable/KandoTable.test.js +22 -16
  542. package/lib/ui-kit/Layout/Layout.js +4 -6
  543. package/lib/ui-kit/MobileInput/MobileInput.js +50 -60
  544. package/lib/ui-kit/ModalConfirmation/ModalConfirmation.js +16 -13
  545. package/lib/ui-kit/OrganicEvents/GaugeChart.js +6 -8
  546. package/lib/ui-kit/OrganicEvents/OrganicEvents.js +6 -6
  547. package/lib/ui-kit/OrganicEvents/OrganicEventsContainer.js +20 -27
  548. package/lib/ui-kit/OrganicEvents/TextInfo.js +10 -15
  549. package/lib/ui-kit/RadioButtons/RadioButtonGroup.js +8 -10
  550. package/lib/ui-kit/SamplingStatus/SamplingStatus.js +17 -14
  551. package/lib/ui-kit/SamplingStatus/SamplingStatusHelper.js +3 -3
  552. package/lib/ui-kit/ScoreGauge/ScoreGauge.js +20 -20
  553. package/lib/ui-kit/ScoreGauge/constant.js +3 -3
  554. package/lib/ui-kit/TimeLineChart/TrendChart.js +42 -54
  555. package/lib/ui-kit/TitleAndCloseHeader/TitleAndCloseHeader.js +7 -8
  556. package/lib/ui-kit/Tooltip/Tooltip.js +8 -14
  557. package/lib/ui-kit/index.js +8 -8
  558. package/lib/ui-kit/kandoStepper/KandoStepper.js +12 -12
  559. package/lib/ui-kit/siteName/SiteName.js +8 -11
  560. package/lib/utilities/ActionUtility.js +7 -7
  561. package/lib/utilities/Alert.js +17 -21
  562. package/lib/utilities/Analytics.js +11 -11
  563. package/lib/utilities/Array.js +5 -4
  564. package/lib/utilities/Enum.js +51 -15
  565. package/lib/utilities/ErrorBoundary.js +41 -27
  566. package/lib/utilities/File.js +69 -40
  567. package/lib/utilities/GetDir.js +7 -8
  568. package/lib/utilities/KandoDate.js +15 -7
  569. package/lib/utilities/KandoModal.js +26 -16
  570. package/lib/utilities/LocalStorage.js +10 -8
  571. package/lib/utilities/ThousandsToK.js +3 -3
  572. package/lib/utilities/TimeFormat.js +20 -21
  573. package/lib/utilities/Truncate.js +25 -17
  574. package/lib/utilities/edgesMath.js +15 -14
  575. package/lib/utilities/i18n.js +3 -3
  576. package/lib/utilities/kql.js +14 -12
  577. package/lib/utilities/map/icons.js +3 -3
  578. package/lib/utilities/polylinedecorator.js +112 -87
  579. package/lib/utilities/scoreToData.js +17 -17
  580. package/lib/utilities/scoreToData.test.js +5 -5
  581. package/lib/utilities/time.js +8 -8
  582. package/lib/utilities/uploadToS3.js +11 -11
  583. package/lib/utilities/urls.js +59 -61
  584. package/package.json +1 -1
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.metascore = void 0;
7
- const metascore = {
7
+ var metascore = {
8
8
  data: {
9
9
  '2020-09': 56.1766666666667,
10
10
  '2020-10': 56.708064516129,
@@ -16,4 +16,4 @@ const metascore = {
16
16
  }
17
17
  };
18
18
  exports.metascore = metascore;
19
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJtZXRhc2NvcmUiLCJkYXRhIiwiZXhwb3J0cyJdLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9kZXZlbG9wbWVudC1lbnZpcm9ubWVudC9tb2NrL21vY2tPYmplY3RzL21ldGFzY29yZS5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgbWV0YXNjb3JlID0ge1xuICBkYXRhOiB7XG4gICAgJzIwMjAtMDknOiA1Ni4x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zMzMzMzMzMyxcbiAgICAnMjAyMC0xMic6IDYyLjExNDE5MzU0ODM4NzEsXG4gICAgJzIwMjEtMDEnOiA2NC4wMjYzMzMzMzMzMzMzLFxuICAgICcyMDIxLTAyJzogNjMuNTIxNzg1NzE0Mjg1NyxcbiAgICAnMjAyMS0wMyc6IDU4LjUwNjQyODU3MTQyODYsXG4gIH0sXG59O1xuIl0sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBTyxJQUFNQSxTQUFTLEdBQUc7RUFDdkJDLElBQUksRUFBRTtJQUNKLFNBQVMsRUFBRSxnQkFBZ0I7SUFDM0IsU0FBUyxFQUFFLGVBQWU7SUFDMUIsU0FBUyxFQUFFLGdCQUFnQjtJQUMzQixTQUFTLEVBQUUsZ0JBQWdCO0lBQzNCLFNBQVMsRUFBRSxnQkFBZ0I7SUFDM0IsU0FBUyxFQUFFLGdCQUFnQjtJQUMzQixTQUFTLEVBQUU7RUFDYjtBQUNGLENBQUM7QUFBQ0MsT0FBQSxDQUFBRixTQUFBLEdBQUFBLFNBQUEifQ==
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.permissionsJson = void 0;
7
- const permissionsJson = {
7
+ var permissionsJson = {
8
8
  data: {
9
9
  area_dashboard: {
10
10
  enable_site_links: false
@@ -16,4 +16,4 @@ const permissionsJson = {
16
16
  }
17
17
  };
18
18
  exports.permissionsJson = permissionsJson;
19
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJwZXJtaXNzaW9uc0pzb24iLCJkYXRhIiwiYXJlYV9kYXNoYm9hcmQiLCJlbmFibGVfc2l0ZV9saW5rcyIsInV0aWxpdGllc19kYXNoYm9hcmQiLCJlbmFibGVfYXJlYV9saW5rcyIsImV4cG9ydHMiXSwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZGV2ZWxvcG1lbnQtZW52aXJvbm1lbnQvbW9jay9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