@kando-env/kando-ui 1.0.9 → 1.0.11-alpha.1

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 (289) hide show
  1. package/lib/CovidView/views/components/Body.js +3 -2
  2. package/lib/CovidView/views/components/Map.js +4 -3
  3. package/lib/CovidView/views/components/MapStyle.scss +4 -0
  4. package/lib/CovidView/views/components/Sidebar.js +2 -1
  5. package/lib/CovidView/views/components/Summary.js +3 -2
  6. package/lib/CovidView/views/components/TrendGraphNVL/TrendGraphNVL.js +4 -3
  7. package/lib/CovidView/views/components/TrendGraphNVL/index.js +2 -1
  8. package/lib/CovidView/views/components/TrendPopupContent/TrendPopupContent.js +6 -9
  9. package/lib/CovidView/views/components/TrendPopupContent/index.js +2 -1
  10. package/lib/CovidView/views/components/areas/Area.js +3 -2
  11. package/lib/CovidView/views/components/areas/AreaPolygonWBE.js +2 -1
  12. package/lib/CovidView/views/components/areas/AreaPolygonsWBE.js +2 -1
  13. package/lib/CovidView/views/components/areas/AreasList.js +3 -2
  14. package/lib/CovidView/views/components/areas/Sort.js +3 -2
  15. package/lib/CovidView/views/covidView.js +2 -1
  16. package/lib/DashboardV2/AreaDashboard.js +4 -3
  17. package/lib/DashboardV2/Header/DoubleTabs/DoubleTabs.js +96 -0
  18. package/lib/DashboardV2/Header/DoubleTabs/DoubleTabs.stories.js +31 -0
  19. package/lib/DashboardV2/Header/DoubleTabs/styles.js +32 -0
  20. package/lib/DashboardV2/Header/Header.js +21 -0
  21. package/lib/DashboardV2/Header/Header.stories.js +29 -0
  22. package/lib/DashboardV2/Header/InfoBar/Breadcrumbs/Breadcrumbs.js +42 -0
  23. package/lib/DashboardV2/Header/InfoBar/Breadcrumbs/right-arrow-bold.svg +44 -0
  24. package/lib/DashboardV2/Header/InfoBar/Breadcrumbs/right-arrow-light.svg +44 -0
  25. package/lib/DashboardV2/Header/InfoBar/InfoBar.js +68 -0
  26. package/lib/DashboardV2/Header/Toolbar/Toolbar.js +116 -0
  27. package/lib/DashboardV2/Header/Toolbar/arrow.svg +44 -0
  28. package/lib/DashboardV2/Header/Toolbar/user.svg +3 -0
  29. package/lib/DashboardV2/SamplingParameters/NoResults/NoResults.js +21 -10
  30. package/lib/DashboardV2/SamplingParameters/NoResults/NoResults.stories.js +2 -1
  31. package/lib/DashboardV2/SamplingParameters/ParametersContainer/ParametersButtons/ParameterButton/ParameterButton.js +2 -1
  32. package/lib/DashboardV2/SamplingParameters/ParametersContainer/ParametersButtons/ParametersButtons.js +4 -7
  33. package/lib/DashboardV2/SamplingParameters/ParametersContainer/ParametersButtons/styles.js +3 -2
  34. package/lib/DashboardV2/SamplingParameters/ParametersContainer/ParametersContainer.js +3 -2
  35. package/lib/DashboardV2/SamplingParameters/SamplingContainer/ExceptionBar/ExceptionBar.js +9 -10
  36. package/lib/DashboardV2/SamplingParameters/SamplingContainer/ExceptionBar/ExceptionBar.stories.js +2 -1
  37. package/lib/DashboardV2/SamplingParameters/SamplingContainer/ExceptionBar/styles.js +3 -2
  38. package/lib/DashboardV2/SamplingParameters/SamplingContainer/ExpandableSamplingTable/ExpandableSamplingTable.js +25 -14
  39. package/lib/DashboardV2/SamplingParameters/SamplingContainer/ExpandableSamplingTable/ExpandableSamplingTable.scss +40 -19
  40. package/lib/DashboardV2/SamplingParameters/SamplingContainer/SamplingContainer.js +2 -1
  41. package/lib/DashboardV2/SamplingParameters/SamplingParameters.js +12 -10
  42. package/lib/DashboardV2/SamplingParameters/SamplingParameters.mock.js +2 -1
  43. package/lib/DashboardV2/SamplingParameters/SamplingParameters.stories.js +3 -3
  44. package/lib/DashboardV2/SamplingParameters/charts/ParametersChart.js +11 -3
  45. package/lib/DashboardV2/SamplingParameters/charts/SamplingChart.js +2 -1
  46. package/lib/DashboardV2/SamplingParameters/charts/options/options.js +15 -8
  47. package/lib/DashboardV2/SamplingParameters/dataParser.js +12 -3
  48. package/lib/DashboardV2/SamplingParameters/models.js +2 -1
  49. package/lib/DashboardV2/SamplingParameters/styles/samplingParameters.js +14 -8
  50. package/lib/DashboardV2/SamplingParameters/styles/styles.js +6 -6
  51. package/lib/DashboardV2/SiteDashboard.js +14 -12
  52. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/AreaBox/AreaBox.js +34 -35
  53. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/AreaBox/Map/Map.js +41 -0
  54. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/AreaBox/Map/Map.scss +18 -0
  55. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/AreaBox/PieChart/PieChart.js +11 -5
  56. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/AreaBox/styles.js +3 -2
  57. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/Areas.js +30 -30
  58. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/areas.mock.js +242 -0
  59. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/areasResponse.interface.js +6 -0
  60. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/styles.js +2 -1
  61. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Factories/Factories.js +49 -38
  62. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Factories/FactoryBox/FactoryBox.js +20 -55
  63. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Factories/FactoryBox/PieChart/PieChart.js +11 -5
  64. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Factories/FactoryBox/styles.js +3 -8
  65. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Factories/factories.mock.js +4297 -0
  66. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Factories/factoriesResponse.interface.js +6 -0
  67. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Factories/styles.js +3 -2
  68. package/lib/DashboardV2/UtilityDashboard/MostPolluting/MostPolluting.js +21 -17
  69. package/lib/DashboardV2/UtilityDashboard/MostPolluting/MostPolluting.stories.js +80 -111
  70. package/lib/DashboardV2/UtilityDashboard/MostPolluting/ShowMore/ShowMore.js +5 -2
  71. package/lib/DashboardV2/UtilityDashboard/MostPolluting/ShowMore/styles.js +2 -1
  72. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Tabs/Tabs.js +17 -30
  73. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Tabs/Tabs.stories.js +2 -1
  74. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Tabs/assets/index.js +6 -5
  75. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Tabs/assets/shape.svg +3 -3
  76. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Tabs/assets/water.svg +2 -3
  77. package/lib/DashboardV2/UtilityDashboard/MostPolluting/assets/index.js +7 -6
  78. package/lib/DashboardV2/UtilityDashboard/MostPolluting/components/ChangePercent.js +52 -0
  79. package/lib/DashboardV2/UtilityDashboard/MostPolluting/models.js +1 -1
  80. package/lib/DashboardV2/UtilityDashboard/MostPolluting/styles.js +4 -3
  81. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/MostSevereEvents.js +51 -25
  82. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/MostSevereEvents.scss +16 -7
  83. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/MostSevereEvents.stories.js +2 -1
  84. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/NoEvents/NoEvents.js +18 -9
  85. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/NoEvents/NoEvents.stories.js +2 -1
  86. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/SevereEvent/SevereEvent.js +63 -42
  87. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/SevereEvent/SevereEvent.scss +54 -23
  88. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/models.js +2 -1
  89. package/lib/DashboardV2/UtilityDashboard/TopBar/MostCommon/Back/Back.js +6 -6
  90. package/lib/DashboardV2/UtilityDashboard/TopBar/MostCommon/MostCommon.js +16 -18
  91. package/lib/DashboardV2/UtilityDashboard/TopBar/MostCommon/styles.js +3 -2
  92. package/lib/DashboardV2/UtilityDashboard/TopBar/QualitySummary/PieChart/LegendMenu/LegendMenu.js +34 -0
  93. package/lib/DashboardV2/UtilityDashboard/TopBar/QualitySummary/PieChart/PieChart.js +57 -32
  94. package/lib/DashboardV2/UtilityDashboard/TopBar/QualitySummary/PollutedLine/PollutedLine.js +4 -3
  95. package/lib/DashboardV2/UtilityDashboard/TopBar/QualitySummary/QualitySummary.js +48 -28
  96. package/lib/DashboardV2/UtilityDashboard/TopBar/QualitySummary/qualitySummary.mock.js +30 -0
  97. package/lib/DashboardV2/UtilityDashboard/TopBar/QualitySummary/qualitySummaryResponse.interface.js +6 -0
  98. package/lib/DashboardV2/UtilityDashboard/TopBar/QualitySummary/styles.js +5 -4
  99. package/lib/DashboardV2/UtilityDashboard/TopBar/TopBar.js +3 -22
  100. package/lib/DashboardV2/UtilityDashboard/TopBar/UtilityInformation/UtilityInformation.js +61 -19
  101. package/lib/DashboardV2/UtilityDashboard/TopBar/UtilityInformation/UtilityInformationResponse.interface.js +6 -0
  102. package/lib/DashboardV2/UtilityDashboard/TopBar/UtilityInformation/styles.js +7 -6
  103. package/lib/DashboardV2/UtilityDashboard/TopBar/UtilityInformation/utilityInformation.mock.js +15 -0
  104. package/lib/DashboardV2/UtilityDashboard/TopBar/styles.js +3 -2
  105. package/lib/DashboardV2/UtilityDashboard/UtilityDashboard.js +19 -7
  106. package/lib/DashboardV2/UtilityDashboard/UtilityDashboard.stories.js +107 -122
  107. package/lib/DashboardV2/UtilityDashboard/initMsw.js +17 -0
  108. package/lib/DashboardV2/WaterAuthorityDashboard.js +12 -8
  109. package/lib/DashboardV2/index.js +2 -1
  110. package/lib/DashboardV2/styles.scss +5 -3
  111. package/lib/DashboardV2/types/IDashboardData.js +2 -1
  112. package/lib/DashboardV2/useApiWithDashboardQuery.js +66 -0
  113. package/lib/EventsView/views/components/Body.js +29 -49
  114. package/lib/EventsView/views/components/areas/AreaPolygon.js +2 -1
  115. package/lib/EventsView/views/components/areas/AreaPolygons.js +3 -2
  116. package/lib/EventsView/views/components/edges/Edge.js +2 -1
  117. package/lib/EventsView/views/components/edges/Edges.js +2 -1
  118. package/lib/EventsView/views/components/events/EventIndicator.js +2 -1
  119. package/lib/EventsView/views/components/events/EventPath.js +2 -1
  120. package/lib/EventsView/views/components/events/MoreInfo.js +2 -1
  121. package/lib/EventsView/views/components/events/Sidebar.js +2 -1
  122. package/lib/EventsView/views/components/events/event_info/EarlyWarnings.js +2 -1
  123. package/lib/EventsView/views/components/events/event_info/EventDetails.js +2 -1
  124. package/lib/EventsView/views/components/events/event_info/EventInfo.js +3 -2
  125. package/lib/EventsView/views/components/events/event_info/EventTimeRange.js +3 -2
  126. package/lib/EventsView/views/components/events/event_info/HistoricalInformation.js +2 -1
  127. package/lib/EventsView/views/components/events/event_info/MiniEventTree.js +3 -2
  128. package/lib/EventsView/views/components/events/event_info/MobileEventPath.js +2 -1
  129. package/lib/EventsView/views/components/events/event_info/PollutionDischarge.js +2 -1
  130. package/lib/EventsView/views/components/events/event_info/charts/EventDetailsLineChart.js +3 -2
  131. package/lib/EventsView/views/components/events/event_info/charts/EventDetailsPieChart.js +3 -2
  132. package/lib/EventsView/views/components/events/event_info/damage_type/DamageType.js +3 -2
  133. package/lib/EventsView/views/components/events/event_info/samplings/Sampling.js +2 -1
  134. package/lib/EventsView/views/components/events/event_info/samplings/Samplings.js +2 -1
  135. package/lib/EventsView/views/components/events/event_info/sources/Source.js +2 -1
  136. package/lib/EventsView/views/components/events/event_info/sources/Sources.js +2 -1
  137. package/lib/EventsView/views/components/events/events_list/EventItem.js +2 -1
  138. package/lib/EventsView/views/components/events/events_list/EventsList.js +3 -2
  139. package/lib/EventsView/views/components/events/events_list/Filter/Filter.js +3 -2
  140. package/lib/EventsView/views/components/events/events_list/Filter/FilterContainer.js +4 -3
  141. package/lib/EventsView/views/components/events/events_list/Filter/FilterItem.js +2 -1
  142. package/lib/EventsView/views/components/events/events_list/Filter/FiltersDropDown.js +2 -1
  143. package/lib/EventsView/views/components/events/events_list/Filter/OptionsDropDown.js +4 -3
  144. package/lib/EventsView/views/components/events/events_list/Sort.js +3 -2
  145. package/lib/EventsView/views/components/map/FloatingGraph.js +2 -1
  146. package/lib/EventsView/views/components/map/Map.js +13 -5
  147. package/lib/EventsView/views/components/map/Map.stories.js +33 -0
  148. package/lib/EventsView/views/components/map/mapStyle.scss +6 -0
  149. package/lib/EventsView/views/components/points/PointMarker.js +2 -1
  150. package/lib/EventsView/views/components/points/PointMarkers.js +2 -1
  151. package/lib/EventsView/views/eventsView.js +2 -1
  152. package/lib/Router.js +11 -6
  153. package/lib/fonts/Gilroy-ExtraBold.otf +0 -0
  154. package/lib/fonts/Gilroy-Light.otf +0 -0
  155. package/lib/fonts/Gilroy-Regular.otf +0 -0
  156. package/lib/fonts/Gilroy-SemiBold.otf +0 -0
  157. package/lib/index.js +2 -1
  158. package/lib/macros/getVersion.js +10 -0
  159. package/lib/shared/TimeRangeSelector/TimeRangeSelector.js +16 -15
  160. package/lib/shared/TimeRangeSelector/TimeRangeSelector.stories.js +36 -0
  161. package/lib/shared/TimeRangeSelector/constants.js +2 -1
  162. package/lib/shared/TimeRangeSelector/index.js +2 -1
  163. package/lib/shared/TimeRangeSelector/styles.scss +8 -6
  164. package/lib/shared/components/Breadcrumbs/Breadcrumbs.js +2 -1
  165. package/lib/shared/components/Breadcrumbs/index.js +2 -1
  166. package/lib/shared/components/ContentLoader/ContentLoader.js +2 -1
  167. package/lib/shared/components/ContentLoader/index.js +2 -1
  168. package/lib/shared/components/DamageType/DamageType.js +3 -2
  169. package/lib/shared/components/DamageType/index.js +2 -1
  170. package/lib/shared/components/DataLoaderError/DataLoaderError.js +30 -0
  171. package/lib/shared/components/DischargeHeatmap/DischargeHeatmap.js +3 -2
  172. package/lib/shared/components/DischargeHeatmap/index.js +2 -1
  173. package/lib/shared/components/DoubleTabs/DoubleTabs.js +2 -1
  174. package/lib/shared/components/DoubleTabs/DoubleTabs.stories.js +2 -1
  175. package/lib/shared/components/DoubleTabs/styles.js +14 -8
  176. package/lib/shared/components/ErrorBoundary.js +7 -12
  177. package/lib/shared/components/Events/Events.js +11 -14
  178. package/lib/shared/components/Events/index.js +2 -1
  179. package/lib/shared/components/Graph/Graph.js +7 -10
  180. package/lib/shared/components/Graph/index.js +2 -1
  181. package/lib/shared/components/InfoBar/InfoBar.js +76 -0
  182. package/lib/shared/components/InfoBar/InfoBar.stories.js +32 -0
  183. package/lib/shared/components/KandoModal/KandoModal.js +3 -2
  184. package/lib/shared/components/KandoModal/index.js +2 -1
  185. package/lib/shared/components/KandoNavbar/KandoNavbar.js +13 -6
  186. package/lib/shared/components/KandoNavbar/index.js +2 -1
  187. package/lib/shared/components/LiveEvents/CarouselSlide.js +2 -1
  188. package/lib/shared/components/LiveEvents/LiveEvents.js +2 -1
  189. package/lib/shared/components/LiveEvents/index.js +2 -1
  190. package/lib/shared/components/LoaderByPercent/LoaderByPercent.js +2 -1
  191. package/lib/shared/components/Map/Map.js +3 -2
  192. package/lib/shared/components/Map/index.js +2 -1
  193. package/lib/shared/components/NarrowHeader.js +7 -12
  194. package/lib/shared/components/PointInfo/PointInfo.js +2 -1
  195. package/lib/shared/components/PointInfo/index.js +2 -1
  196. package/lib/shared/components/PopupModal/PopupModal.js +45 -0
  197. package/lib/shared/components/PopupModal/PopupModal.stories.js +53 -0
  198. package/lib/shared/components/Search/Search.js +8 -15
  199. package/lib/shared/components/Search/index.js +2 -1
  200. package/lib/shared/components/Sector/Sector.js +56 -34
  201. package/lib/shared/components/Sector/index.js +2 -1
  202. package/lib/shared/components/Sector/styles.scss +5 -3
  203. package/lib/shared/components/Select/Select.js +6 -9
  204. package/lib/shared/components/Select/Select.scss +1 -1
  205. package/lib/shared/components/Select/Select.stories.js +2 -1
  206. package/lib/shared/components/Spinner/Spinner.js +12 -7
  207. package/lib/shared/components/Spinner/Spinner.stories.js +2 -1
  208. package/lib/shared/components/Spinner/index.js +2 -1
  209. package/lib/shared/components/Spinner/styles.js +44 -0
  210. package/lib/shared/components/Toggle/Toggle.js +3 -2
  211. package/lib/shared/components/Toggle/index.js +2 -1
  212. package/lib/shared/components/TrendGraph/TrendGraph.js +8 -10
  213. package/lib/shared/components/TrendGraph/index.js +2 -1
  214. package/lib/shared/components/TrendGraphNVL/TrendGraphNVL.js +3 -2
  215. package/lib/shared/components/TrendGraphNVL/index.js +2 -1
  216. package/lib/shared/helpers/kql.js +2 -1
  217. package/lib/shared/helpers/time.js +2 -1
  218. package/lib/shared/models/IAction.js +2 -1
  219. package/lib/shared/models/IAppState.js +2 -1
  220. package/lib/shared/redux/WBE/actionTypes.js +2 -1
  221. package/lib/shared/redux/WBE/actions.js +2 -1
  222. package/lib/shared/redux/WBE/models/IAreaWBE.js +2 -1
  223. package/lib/shared/redux/WBE/models/IWBE.js +2 -1
  224. package/lib/shared/redux/WBE/models/IWBEState.js +2 -1
  225. package/lib/shared/redux/WBE/reducer.js +4 -7
  226. package/lib/shared/redux/areas/actionTypes.js +2 -1
  227. package/lib/shared/redux/areas/actions.js +2 -1
  228. package/lib/shared/redux/areas/models/IArea.js +2 -1
  229. package/lib/shared/redux/areas/models/IAreasState.js +2 -1
  230. package/lib/shared/redux/areas/reducer.js +2 -1
  231. package/lib/shared/redux/context/actionTypes.js +2 -1
  232. package/lib/shared/redux/context/actions.js +2 -1
  233. package/lib/shared/redux/context/models/INavContext.js +2 -1
  234. package/lib/shared/redux/context/models/INavContextState.js +2 -1
  235. package/lib/shared/redux/context/reducer.js +4 -7
  236. package/lib/shared/redux/dashboard/dashboardSlice.js +24 -0
  237. package/lib/shared/redux/edges/actionTypes.js +2 -1
  238. package/lib/shared/redux/edges/actions.js +2 -1
  239. package/lib/shared/redux/edges/models/IEdge.js +2 -1
  240. package/lib/shared/redux/edges/models/IEdgesState.js +2 -1
  241. package/lib/shared/redux/edges/reducer.js +3 -2
  242. package/lib/shared/redux/events/actionTypes.js +2 -1
  243. package/lib/shared/redux/events/actions.js +2 -1
  244. package/lib/shared/redux/events/models/IEvent.js +2 -1
  245. package/lib/shared/redux/events/models/IEventsState.js +2 -1
  246. package/lib/shared/redux/events/models/ISource.js +2 -1
  247. package/lib/shared/redux/events/reducer.js +8 -11
  248. package/lib/shared/redux/filters/IFilter.js +2 -1
  249. package/lib/shared/redux/filters/IFilterItem.js +2 -1
  250. package/lib/shared/redux/global/actionTypes.js +2 -1
  251. package/lib/shared/redux/global/actions.js +3 -2
  252. package/lib/shared/redux/global/models/IGlobalState.js +2 -1
  253. package/lib/shared/redux/global/reducer.js +2 -1
  254. package/lib/shared/redux/points/actionTypes.js +2 -1
  255. package/lib/shared/redux/points/actions.js +2 -1
  256. package/lib/shared/redux/points/models/IGroup.js +2 -1
  257. package/lib/shared/redux/points/models/IPoint.js +2 -1
  258. package/lib/shared/redux/points/models/IPointsState.js +2 -1
  259. package/lib/shared/redux/points/reducer.js +2 -1
  260. package/lib/shared/redux/rootActionTypes.js +2 -1
  261. package/lib/shared/redux/rootActions.js +2 -1
  262. package/lib/shared/redux/rootReducer.js +6 -2
  263. package/lib/shared/redux/rootStore.js +16 -5
  264. package/lib/shared/utilities/ActionUtility.js +2 -1
  265. package/lib/shared/utilities/ErrorBoundary.js +7 -12
  266. package/lib/shared/utilities/KandoDate.js +5 -3
  267. package/lib/shared/utilities/KandoModal.js +3 -2
  268. package/lib/shared/utilities/LocalStorage.js +2 -1
  269. package/lib/shared/utilities/TimeFormat.js +2 -1
  270. package/lib/shared/utilities/Truncate.js +3 -2
  271. package/lib/shared/utilities/custom_hooks/map/pin-water.svg +22 -0
  272. package/lib/shared/utilities/custom_hooks/useApi.js +17 -6
  273. package/lib/shared/utilities/custom_hooks/useClickOutside.js +2 -1
  274. package/lib/shared/utilities/custom_hooks/useKandoFetch.js +3 -2
  275. package/lib/shared/utilities/custom_hooks/useMap.js +94 -0
  276. package/lib/shared/utilities/custom_hooks/useQueryURL.js +2 -1
  277. package/lib/shared/utilities/custom_hooks/useRemoveExistingLayers.js +2 -1
  278. package/lib/shared/utilities/custom_hooks/useUpdateEventBodyTail.js +2 -1
  279. package/lib/shared/utilities/custom_hooks/useWindowSize.js +3 -2
  280. package/lib/shared/utilities/i18n.js +4 -3
  281. package/lib/styles.scss +38 -0
  282. package/package.json +54 -45
  283. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/AreaBox/AreaMap/AreaMap.js +0 -66
  284. package/lib/DashboardV2/UtilityDashboard/TopBar/models.js +0 -5
  285. package/lib/DashboardV2/UtilityDashboard/mocks/areas.mock.js +0 -320
  286. package/lib/DashboardV2/UtilityDashboard/mocks/events.mock.js +0 -345
  287. package/lib/DashboardV2/UtilityDashboard/mocks/factories.mock.js +0 -140
  288. package/lib/DashboardV2/UtilityDashboard/mocks/index.js +0 -29
  289. package/lib/shared/components/Spinner/style/spinner.js +0 -25
@@ -1,140 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.factoriesArr = void 0;
7
- var factoriesArr = [{
8
- title: 'Factory 1',
9
- percent: 0.3,
10
- area: 'Vallese - indsutrial zon.',
11
- quality: {
12
- extreme: 20,
13
- high: 5,
14
- medium: 50,
15
- rest: 25
16
- },
17
- sector: 'shop'
18
- }, {
19
- title: 'Factory 2',
20
- percent: 0.4,
21
- area: 'North Industrial',
22
- quality: {
23
- extreme: 15,
24
- high: 10,
25
- medium: 50,
26
- rest: 25
27
- },
28
- sector: 'metal'
29
- }, {
30
- title: 'Factory 3',
31
- percent: -0.1,
32
- area: 'South Industrial',
33
- quality: {
34
- extreme: 15,
35
- high: 0,
36
- medium: 0,
37
- rest: 85
38
- },
39
- sector: 'leather'
40
- }, {
41
- title: 'Factory 4',
42
- percent: 0.5,
43
- area: 'Co Degli Oppin',
44
- quality: {
45
- extreme: 14,
46
- high: 10,
47
- medium: 30,
48
- rest: 46
49
- },
50
- sector: 'gas'
51
- }, {
52
- title: 'Factory 1',
53
- percent: 0.3,
54
- area: 'Vallese - indsutrial zon.',
55
- quality: {
56
- extreme: 20,
57
- high: 5,
58
- medium: 50,
59
- rest: 25
60
- },
61
- sector: 'shop'
62
- }, {
63
- title: 'Factory 2',
64
- percent: -0.4,
65
- area: 'North Industrial',
66
- quality: {
67
- extreme: 15,
68
- high: 10,
69
- medium: 50,
70
- rest: 25
71
- },
72
- sector: 'metal'
73
- }, {
74
- title: 'Factory 3',
75
- percent: 0.1,
76
- area: 'South Industrial',
77
- quality: {
78
- extreme: 15,
79
- high: 0,
80
- medium: 0,
81
- rest: 85
82
- },
83
- sector: 'leather'
84
- }, {
85
- title: 'Factory 4',
86
- percent: 0.5,
87
- area: 'Co Degli Oppin',
88
- quality: {
89
- extreme: 14,
90
- high: 10,
91
- medium: 30,
92
- rest: 46
93
- },
94
- sector: 'gas'
95
- }, {
96
- title: 'Factory 1',
97
- percent: -0.3,
98
- area: 'Vallese - indsutrial zon.',
99
- quality: {
100
- extreme: 20,
101
- high: 5,
102
- medium: 50,
103
- rest: 25
104
- },
105
- sector: 'shop'
106
- }, {
107
- title: 'Factory 2',
108
- percent: 0.4,
109
- area: 'North Industrial',
110
- quality: {
111
- extreme: 15,
112
- high: 10,
113
- medium: 50,
114
- rest: 25
115
- },
116
- sector: 'metal'
117
- }, {
118
- title: 'Factory 3',
119
- percent: 0.1,
120
- area: 'South Industrial',
121
- quality: {
122
- extreme: 15,
123
- high: 0,
124
- medium: 0,
125
- rest: 85
126
- },
127
- sector: 'leather'
128
- }, {
129
- title: 'Factory 4',
130
- percent: -0.5,
131
- area: 'Co Degli Oppin',
132
- quality: {
133
- extreme: 14,
134
- high: 10,
135
- medium: 30,
136
- rest: 46
137
- },
138
- sector: 'gas'
139
- }];
140
- exports.factoriesArr = factoriesArr;
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "areasArr", {
7
- enumerable: true,
8
- get: function get() {
9
- return _areas.areasArr;
10
- }
11
- });
12
- Object.defineProperty(exports, "eventsArr", {
13
- enumerable: true,
14
- get: function get() {
15
- return _events.eventsArr;
16
- }
17
- });
18
- Object.defineProperty(exports, "factoriesArr", {
19
- enumerable: true,
20
- get: function get() {
21
- return _factories.factoriesArr;
22
- }
23
- });
24
-
25
- var _areas = require("./areas.mock");
26
-
27
- var _events = require("./events.mock");
28
-
29
- var _factories = require("./factories.mock");
@@ -1,25 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.Spinner = exports.Container = void 0;
9
-
10
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
11
-
12
- var _styledComponents = _interopRequireDefault(require("styled-components"));
13
-
14
- var _templateObject, _templateObject2;
15
-
16
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex; \n justify-content: center;\n align-items: center;\n"])));
17
-
18
- exports.Container = Container;
19
-
20
- var Spinner = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n width: 6rem;\n\theight: 6rem;\n\tborder-top: ", ";\n\t border-right: 3px solid transparent;\n\t border-radius: 50%;\n\t animation: rotation 0.8s linear infinite;\n \n @keyframes rotation {\n\t from {\n\t\t transform: rotate(0deg);\n\t}\n\t to {\n\t\t transform: rotate(360deg);\n\t}\n}\n @keyframes flip {\n\t 0% {\n\t\t transform: perspective(120px) rotateX(0deg) rotateY(0deg);\n\t}\n\t 50% {\n\t\t transform: perspective(120px) rotateX(-180deg) rotateY(0deg);\n\t}\n\t 100% {\n\t\t transform: perspective(120px) rotateX(-180deg) rotateY(-180deg);\n\t}\n}\n @keyframes progress {\n\t 0% {\n\t\t left: -130%;\n\t\t background: rgba(0, 0, 0, .5);\n\t}\n\t 50% {\n\t\t left: 130%;\n\t\t background: rgba(0, 0, 0, .5);\n\t}\n\t 51% {\n\t\t background: rgba(255, 255, 255, .5);\n\t}\n\t 100% {\n\t\t background: rgba(255, 255, 255, .5);\n\t}\n}\n @keyframes pulse {\n\t 0% {\n\t\t transform: translate(-50%, -50%) scale(0);\n\t\t opacity: 1;\n\t}\n\t 100% {\n\t\t transform: translate(-50%, -50%) scale(1);\n\t\t opacity: 0;\n\t}\n}\n @keyframes pulse2 {\n\t 0%, 100% {\n\t\t transform: translate(-50%, -50%) scale(0);\n\t\t opacity: 1;\n\t}\n\t 50% {\n\t\t transform: translate(-50%, -50%) scale(1);\n\t\t opacity: 0;\n\t}\n}\n @keyframes flipWalker {\n\t 0% {\n\t\t transform: translate(0, 0) rotateX(0) rotateY(0);\n\t}\n\t 25% {\n\t\t transform: translate(100%, 0) rotateX(0) rotateY(180deg);\n\t}\n\t 50% {\n\t\t transform: translate(100%, 100%) rotateX(-180deg) rotateY(180deg);\n\t}\n\t 75% {\n\t\t transform: translate(0, 100%) rotateX(-180deg) rotateY(360deg);\n\t}\n\t 100% {\n\t\t transform: translate(0, 0) rotateX(0) rotateY(360deg);\n\t}\n}\n \n"])), function (_ref) {
21
- var color = _ref.color;
22
- return "3px solid ".concat(color);
23
- });
24
-
25
- exports.Spinner = Spinner;