@kando-env/kando-ui 1.0.1 → 1.0.3
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/{lib-build → lib}/Router.js +2 -0
- package/package.json +6 -5
- package/.DS_Store +0 -0
- package/.babelrc +0 -10
- package/.eslintrc.json +0 -25
- package/.nvmrc +0 -1
- package/.prettierrc.json +0 -6
- package/.storybook/main.js +0 -11
- package/.storybook/preview-head.html +0 -43
- package/.storybook/preview.js +0 -15
- package/.storybook/webpack.config.js +0 -48
- package/babel.config.js +0 -15
- package/demo-server.js +0 -11
- package/index.html +0 -14
- package/javascript/.DS_Store +0 -0
- package/javascript/bundles/.DS_Store +0 -0
- package/javascript/bundles/overview/.DS_Store +0 -0
- package/javascript/bundles/overview/views/.DS_Store +0 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/src/bundles/CovidView/views/components/Body.tsx +0 -59
- package/src/bundles/CovidView/views/components/Map.tsx +0 -110
- package/src/bundles/CovidView/views/components/MapStyle.scss +0 -387
- package/src/bundles/CovidView/views/components/Sidebar.tsx +0 -32
- package/src/bundles/CovidView/views/components/SidebarStyle.scss +0 -11
- package/src/bundles/CovidView/views/components/Summary.tsx +0 -134
- package/src/bundles/CovidView/views/components/SummaryStyle.scss +0 -61
- package/src/bundles/CovidView/views/components/areas/Area.tsx +0 -130
- package/src/bundles/CovidView/views/components/areas/AreaPolygonWBE.tsx +0 -186
- package/src/bundles/CovidView/views/components/areas/AreaPolygonsWBE.tsx +0 -71
- package/src/bundles/CovidView/views/components/areas/AreasList.tsx +0 -84
- package/src/bundles/CovidView/views/components/areas/AreasStyle.scss +0 -237
- package/src/bundles/CovidView/views/components/areas/Sort.tsx +0 -40
- package/src/bundles/CovidView/views/components/areas/TrendPopupContent/TrendPopupContent.tsx +0 -112
- package/src/bundles/CovidView/views/components/areas/TrendPopupContent/index.ts +0 -3
- package/src/bundles/CovidView/views/components/areas/TrendPopupContent/styles.scss +0 -30
- package/src/bundles/CovidView/views/covidView.tsx +0 -30
- package/src/bundles/DashboardV2/AreaDashboard.tsx +0 -59
- package/src/bundles/DashboardV2/SiteDashboard.tsx +0 -218
- package/src/bundles/DashboardV2/WaterAuthorityDashboard.tsx +0 -33
- package/src/bundles/DashboardV2/index.ts +0 -5
- package/src/bundles/DashboardV2/styles.scss +0 -126
- package/src/bundles/DashboardV2/types/IDashboardData.ts +0 -28
- package/src/bundles/EventsView/views/_colors.scss +0 -1
- package/src/bundles/EventsView/views/components/Body.tsx +0 -73
- package/src/bundles/EventsView/views/components/areas/AreaPolygon.tsx +0 -42
- package/src/bundles/EventsView/views/components/areas/AreaPolygons.tsx +0 -43
- package/src/bundles/EventsView/views/components/edges/Edge.tsx +0 -60
- package/src/bundles/EventsView/views/components/edges/Edges.tsx +0 -41
- package/src/bundles/EventsView/views/components/events/EventIndicator.tsx +0 -241
- package/src/bundles/EventsView/views/components/events/EventPath.tsx +0 -88
- package/src/bundles/EventsView/views/components/events/EventsStyle.scss +0 -725
- package/src/bundles/EventsView/views/components/events/MoreInfo.tsx +0 -48
- package/src/bundles/EventsView/views/components/events/Sidebar.tsx +0 -49
- package/src/bundles/EventsView/views/components/events/event_info/EarlyWarnings.tsx +0 -146
- package/src/bundles/EventsView/views/components/events/event_info/EventDetails.tsx +0 -106
- package/src/bundles/EventsView/views/components/events/event_info/EventInfo.tsx +0 -102
- package/src/bundles/EventsView/views/components/events/event_info/EventInfoStyle.scss +0 -508
- package/src/bundles/EventsView/views/components/events/event_info/EventTimeRange.tsx +0 -109
- package/src/bundles/EventsView/views/components/events/event_info/HistoricalInformation.tsx +0 -37
- package/src/bundles/EventsView/views/components/events/event_info/MiniEventTree.tsx +0 -89
- package/src/bundles/EventsView/views/components/events/event_info/MobileEventPath.tsx +0 -29
- package/src/bundles/EventsView/views/components/events/event_info/PollutionDischarge.tsx +0 -57
- package/src/bundles/EventsView/views/components/events/event_info/charts/EventDetailsLineChart.tsx +0 -61
- package/src/bundles/EventsView/views/components/events/event_info/charts/EventDetailsPieChart.tsx +0 -107
- package/src/bundles/EventsView/views/components/events/event_info/damage_type/DamageType.tsx +0 -98
- package/src/bundles/EventsView/views/components/events/event_info/damage_type/svgs/agriculture.svg +0 -29
- package/src/bundles/EventsView/views/components/events/event_info/damage_type/svgs/bacteria-process.svg +0 -90
- package/src/bundles/EventsView/views/components/events/event_info/damage_type/svgs/effluent.svg +0 -55
- package/src/bundles/EventsView/views/components/events/event_info/damage_type/svgs/energy.svg +0 -42
- package/src/bundles/EventsView/views/components/events/event_info/damage_type/svgs/equipment.svg +0 -82
- package/src/bundles/EventsView/views/components/events/event_info/damage_type/svgs/extra-biological-sludge.svg +0 -40
- package/src/bundles/EventsView/views/components/events/event_info/damage_type/svgs/overflow.svg +0 -26
- package/src/bundles/EventsView/views/components/events/event_info/damage_type/svgs/pipes-bluckages.svg +0 -29
- package/src/bundles/EventsView/views/components/events/event_info/damage_type/svgs/pipes-infrastructure.svg +0 -31
- package/src/bundles/EventsView/views/components/events/event_info/damage_type/svgs/reuse.svg +0 -29
- package/src/bundles/EventsView/views/components/events/event_info/damage_type/svgs/sea-rivers.svg +0 -54
- package/src/bundles/EventsView/views/components/events/event_info/damage_type/svgs/sludge.svg +0 -37
- package/src/bundles/EventsView/views/components/events/event_info/samplings/Sampling.tsx +0 -26
- package/src/bundles/EventsView/views/components/events/event_info/samplings/Samplings.tsx +0 -32
- package/src/bundles/EventsView/views/components/events/event_info/sources/Source.tsx +0 -120
- package/src/bundles/EventsView/views/components/events/event_info/sources/Sources.tsx +0 -35
- package/src/bundles/EventsView/views/components/events/events_list/EventItem.tsx +0 -122
- package/src/bundles/EventsView/views/components/events/events_list/EventsList.tsx +0 -242
- package/src/bundles/EventsView/views/components/events/events_list/Filter/Filter.tsx +0 -91
- package/src/bundles/EventsView/views/components/events/events_list/Filter/FilterContainer.tsx +0 -302
- package/src/bundles/EventsView/views/components/events/events_list/Filter/FilterItem.tsx +0 -180
- package/src/bundles/EventsView/views/components/events/events_list/Filter/FiltersDropDown.tsx +0 -48
- package/src/bundles/EventsView/views/components/events/events_list/Filter/OptionsDropDown.tsx +0 -97
- package/src/bundles/EventsView/views/components/events/events_list/Sort.tsx +0 -70
- package/src/bundles/EventsView/views/components/map/FloatingGraph.tsx +0 -61
- package/src/bundles/EventsView/views/components/map/Map.tsx +0 -137
- package/src/bundles/EventsView/views/components/map/mapStyle.scss +0 -387
- package/src/bundles/EventsView/views/components/points/PointMarker.tsx +0 -447
- package/src/bundles/EventsView/views/components/points/PointMarkers.tsx +0 -23
- package/src/bundles/EventsView/views/eventsView.tsx +0 -32
- package/src/bundles/ProjectManagement/api/index.js +0 -10
- package/src/bundles/ProjectManagement/components/kpi-list-item.jsx +0 -57
- package/src/bundles/ProjectManagement/components/kpi-percentage-item.jsx +0 -69
- package/src/bundles/ProjectManagement/components/kpi.jsx +0 -23
- package/src/bundles/ProjectManagement/components/legend-icon.jsx +0 -14
- package/src/bundles/ProjectManagement/components/link-to-item.jsx +0 -16
- package/src/bundles/ProjectManagement/components/list-of-points.jsx +0 -76
- package/src/bundles/ProjectManagement/components/map-view.jsx +0 -95
- package/src/bundles/ProjectManagement/components/metrics.jsx +0 -42
- package/src/bundles/ProjectManagement/components/node-label.jsx +0 -23
- package/src/bundles/ProjectManagement/components/period-selector-button.jsx +0 -23
- package/src/bundles/ProjectManagement/components/period-selector.jsx +0 -25
- package/src/bundles/ProjectManagement/components/point-preview.jsx +0 -225
- package/src/bundles/ProjectManagement/components/project-management.jsx +0 -229
- package/src/bundles/ProjectManagement/components/tree-legend.jsx +0 -59
- package/src/bundles/ProjectManagement/components/tree-view.jsx +0 -215
- package/src/bundles/ProjectManagement/stores/project-management-store.js +0 -16
- package/src/bundles/ProjectManagement/util/constants.js +0 -2
- package/src/bundles/ProjectManagement/util/treeUtil.js +0 -32
- package/src/bundles/ProjectManagement/util/url.js +0 -10
- package/src/bundles/Router.tsx +0 -56
- package/src/bundles/assets/NVL_trends/down.png +0 -0
- package/src/bundles/assets/NVL_trends/same.png +0 -0
- package/src/bundles/assets/NVL_trends/up.png +0 -0
- package/src/bundles/assets/area_statuses/invalid-sampling.png +0 -0
- package/src/bundles/assets/area_statuses/missing-sampling.png +0 -0
- package/src/bundles/assets/area_statuses/pending-sampling.png +0 -0
- package/src/bundles/assets/area_statuses/valid-sampling.png +0 -0
- package/src/bundles/assets/factory-icon.png +0 -0
- package/src/bundles/assets/flask.svg +0 -7
- package/src/bundles/assets/kando_logo.png +0 -0
- package/src/bundles/assets/line-chart.svg +0 -56
- package/src/bundles/assets/missing/authority.png +0 -0
- package/src/bundles/assets/missing/group.png +0 -0
- package/src/bundles/assets/missing/point.png +0 -0
- package/src/bundles/assets/no_events.svg +0 -31
- package/src/bundles/assets/no_results.svg +0 -327
- package/src/bundles/assets/point_icons/WWTP-icon.svg +0 -26
- package/src/bundles/assets/point_icons/blue-circle.svg +0 -3
- package/src/bundles/assets/point_icons/bright-blue-circle.svg +0 -3
- package/src/bundles/assets/point_icons/factory-icon.svg +0 -23
- package/src/bundles/assets/point_icons/green-circle.png +0 -0
- package/src/bundles/assets/point_icons/green-circle.svg +0 -3
- package/src/bundles/assets/point_icons/observation-icon.svg +0 -12
- package/src/bundles/assets/point_icons/pink-circle.svg +0 -3
- package/src/bundles/assets/point_icons/pump-station-icon.svg +0 -15
- package/src/bundles/assets/point_icons/red-pin-red-shadow.png +0 -0
- package/src/bundles/assets/point_icons/sampling-icon.svg +0 -9
- package/src/bundles/assets/point_icons/white-pin-black-shadow.png +0 -0
- package/src/bundles/assets/point_icons/white-pin-red-shadow.png +0 -0
- package/src/bundles/assets/point_icons/yellow-circle.svg +0 -3
- package/src/bundles/assets/sewer.svg +0 -3
- package/src/bundles/assets/user.svg +0 -44
- package/src/bundles/assets/white-point.png +0 -0
- package/src/bundles/index.js +0 -26
- package/src/bundles/shared/TimeRangeSelector/TimeRangeSelector.tsx +0 -79
- package/src/bundles/shared/TimeRangeSelector/constants.ts +0 -1
- package/src/bundles/shared/TimeRangeSelector/index.ts +0 -3
- package/src/bundles/shared/TimeRangeSelector/styles.scss +0 -65
- package/src/bundles/shared/components/Breadcrumbs/Breadcrumbs.tsx +0 -34
- package/src/bundles/shared/components/Breadcrumbs/index.ts +0 -3
- package/src/bundles/shared/components/Breadcrumbs/styles.scss +0 -8
- package/src/bundles/shared/components/ContentLoader/ContentLoader.tsx +0 -39
- package/src/bundles/shared/components/ContentLoader/index.ts +0 -1
- package/src/bundles/shared/components/DamageType/DamageType.tsx +0 -234
- package/src/bundles/shared/components/DamageType/index.ts +0 -3
- package/src/bundles/shared/components/DamageType/styles.scss +0 -50
- package/src/bundles/shared/components/DischargeHeatmap/DischargeHeatmap.tsx +0 -205
- package/src/bundles/shared/components/DischargeHeatmap/index.ts +0 -3
- package/src/bundles/shared/components/DischargeHeatmap/styles.scss +0 -17
- package/src/bundles/shared/components/ErrorBoundary.jsx +0 -40
- package/src/bundles/shared/components/Events/Events.tsx +0 -205
- package/src/bundles/shared/components/Events/index.ts +0 -3
- package/src/bundles/shared/components/Events/styles.scss +0 -131
- package/src/bundles/shared/components/Graph/Graph.tsx +0 -156
- package/src/bundles/shared/components/Graph/index.ts +0 -3
- package/src/bundles/shared/components/KandoModal/KandoModal.tsx +0 -88
- package/src/bundles/shared/components/KandoModal/index.ts +0 -3
- package/src/bundles/shared/components/KandoModal/styles.scss +0 -19
- package/src/bundles/shared/components/KandoNavbar/KandoNavbar.tsx +0 -232
- package/src/bundles/shared/components/KandoNavbar/NavbarStyle.scss +0 -238
- package/src/bundles/shared/components/KandoNavbar/index.ts +0 -3
- package/src/bundles/shared/components/LiveEvents/CarouselSlide.tsx +0 -80
- package/src/bundles/shared/components/LiveEvents/LiveEvents.tsx +0 -38
- package/src/bundles/shared/components/LiveEvents/index.ts +0 -3
- package/src/bundles/shared/components/LiveEvents/styles.scss +0 -80
- package/src/bundles/shared/components/Map/Map.tsx +0 -79
- package/src/bundles/shared/components/Map/index.ts +0 -3
- package/src/bundles/shared/components/Map/styles.scss +0 -7
- package/src/bundles/shared/components/NarrowHeader.jsx +0 -18
- package/src/bundles/shared/components/PointInfo/PointInfo.tsx +0 -80
- package/src/bundles/shared/components/PointInfo/index.ts +0 -3
- package/src/bundles/shared/components/PointInfo/styles.scss +0 -48
- package/src/bundles/shared/components/Search/Search.tsx +0 -106
- package/src/bundles/shared/components/Search/index.ts +0 -3
- package/src/bundles/shared/components/Search/styles.scss +0 -27
- package/src/bundles/shared/components/Sector/Sector.tsx +0 -156
- package/src/bundles/shared/components/Sector/index.ts +0 -3
- package/src/bundles/shared/components/Sector/styles.scss +0 -14
- package/src/bundles/shared/components/Sector/svgs/Brewing.svg +0 -93
- package/src/bundles/shared/components/Sector/svgs/Cowshed.svg +0 -23
- package/src/bundles/shared/components/Sector/svgs/Garage.svg +0 -24
- package/src/bundles/shared/components/Sector/svgs/Missing.svg +0 -36
- package/src/bundles/shared/components/Sector/svgs/barrel.svg +0 -93
- package/src/bundles/shared/components/Sector/svgs/beer.svg +0 -13
- package/src/bundles/shared/components/Sector/svgs/beverage.svg +0 -13
- package/src/bundles/shared/components/Sector/svgs/car-repair.svg +0 -24
- package/src/bundles/shared/components/Sector/svgs/car-wash.svg +0 -36
- package/src/bundles/shared/components/Sector/svgs/chemistry.svg +0 -30
- package/src/bundles/shared/components/Sector/svgs/conductor-manufacturer.svg +0 -17
- package/src/bundles/shared/components/Sector/svgs/cosmetic-manufacturer.svg +0 -23
- package/src/bundles/shared/components/Sector/svgs/cow.svg +0 -23
- package/src/bundles/shared/components/Sector/svgs/cpu.svg +0 -17
- package/src/bundles/shared/components/Sector/svgs/dairy.svg +0 -18
- package/src/bundles/shared/components/Sector/svgs/dippel-oil.svg +0 -17
- package/src/bundles/shared/components/Sector/svgs/food-donation.svg +0 -29
- package/src/bundles/shared/components/Sector/svgs/food-factory.svg +0 -17
- package/src/bundles/shared/components/Sector/svgs/garbage-truck-1.svg +0 -34
- package/src/bundles/shared/components/Sector/svgs/gas-station.svg +0 -26
- package/src/bundles/shared/components/Sector/svgs/glass-manufacturer.svg +0 -21
- package/src/bundles/shared/components/Sector/svgs/glass.svg +0 -21
- package/src/bundles/shared/components/Sector/svgs/hand-washing.svg +0 -17
- package/src/bundles/shared/components/Sector/svgs/hospital.svg +0 -28
- package/src/bundles/shared/components/Sector/svgs/hotel.svg +0 -24
- package/src/bundles/shared/components/Sector/svgs/laundromat.svg +0 -26
- package/src/bundles/shared/components/Sector/svgs/leather-factory.svg +0 -23
- package/src/bundles/shared/components/Sector/svgs/leather.svg +0 -23
- package/src/bundles/shared/components/Sector/svgs/lipstick.svg +0 -23
- package/src/bundles/shared/components/Sector/svgs/meat.svg +0 -24
- package/src/bundles/shared/components/Sector/svgs/metal-coating-plant.svg +0 -21
- package/src/bundles/shared/components/Sector/svgs/metal-facbrication.svg +0 -20
- package/src/bundles/shared/components/Sector/svgs/milk.svg +0 -18
- package/src/bundles/shared/components/Sector/svgs/oil-rig.svg +0 -17
- package/src/bundles/shared/components/Sector/svgs/petrochemical.svg +0 -13
- package/src/bundles/shared/components/Sector/svgs/pie.svg +0 -17
- package/src/bundles/shared/components/Sector/svgs/pills.svg +0 -22
- package/src/bundles/shared/components/Sector/svgs/plant-unkown-3.svg +0 -36
- package/src/bundles/shared/components/Sector/svgs/plastic-rubber.svg +0 -43
- package/src/bundles/shared/components/Sector/svgs/printer.svg +0 -17
- package/src/bundles/shared/components/Sector/svgs/recycling.svg +0 -17
- package/src/bundles/shared/components/Sector/svgs/refinery.svg +0 -18
- package/src/bundles/shared/components/Sector/svgs/repair.svg +0 -13
- package/src/bundles/shared/components/Sector/svgs/sewing-machine.svg +0 -22
- package/src/bundles/shared/components/Sector/svgs/shop.svg +0 -24
- package/src/bundles/shared/components/Sector/svgs/soda.svg +0 -13
- package/src/bundles/shared/components/Sector/svgs/spray-gun.svg +0 -21
- package/src/bundles/shared/components/Sector/svgs/washing-machine.svg +0 -26
- package/src/bundles/shared/components/Sector/svgs/waste.svg +0 -43
- package/src/bundles/shared/components/Sector/svgs/welder-a.svg +0 -20
- package/src/bundles/shared/components/Sector/svgs/wine-glass.svg +0 -15
- package/src/bundles/shared/components/Toggle/Toggle.tsx +0 -51
- package/src/bundles/shared/components/Toggle/index.ts +0 -3
- package/src/bundles/shared/components/Toggle/styles.scss +0 -44
- package/src/bundles/shared/components/TrendGraph/TrendGraph.tsx +0 -166
- package/src/bundles/shared/components/TrendGraph/index.ts +0 -3
- package/src/bundles/shared/components/TrendGraph/styles.scss +0 -2
- package/src/bundles/shared/components/TrendGraphNVL/TrendGraphNVL.tsx +0 -134
- package/src/bundles/shared/components/TrendGraphNVL/index.ts +0 -3
- package/src/bundles/shared/components/TrendGraphNVL/styles.scss +0 -16
- package/src/bundles/shared/helpers/kql.ts +0 -39
- package/src/bundles/shared/helpers/time.ts +0 -12
- package/src/bundles/shared/models/IAction.ts +0 -9
- package/src/bundles/shared/models/IAppState.ts +0 -18
- package/src/bundles/shared/redux/WBE/actionTypes.ts +0 -1
- package/src/bundles/shared/redux/WBE/actions.ts +0 -8
- package/src/bundles/shared/redux/WBE/models/IAreaWBE.ts +0 -21
- package/src/bundles/shared/redux/WBE/models/IWBE.ts +0 -7
- package/src/bundles/shared/redux/WBE/models/IWBEState.ts +0 -5
- package/src/bundles/shared/redux/WBE/reducer.ts +0 -24
- package/src/bundles/shared/redux/areas/actionTypes.ts +0 -3
- package/src/bundles/shared/redux/areas/actions.ts +0 -31
- package/src/bundles/shared/redux/areas/models/IArea.ts +0 -6
- package/src/bundles/shared/redux/areas/models/IAreasState.ts +0 -6
- package/src/bundles/shared/redux/areas/reducer.ts +0 -44
- package/src/bundles/shared/redux/context/actionTypes.ts +0 -1
- package/src/bundles/shared/redux/context/actions.ts +0 -8
- package/src/bundles/shared/redux/context/models/INavContext.ts +0 -4
- package/src/bundles/shared/redux/context/models/INavContextState.ts +0 -5
- package/src/bundles/shared/redux/context/reducer.ts +0 -25
- package/src/bundles/shared/redux/edges/actionTypes.ts +0 -4
- package/src/bundles/shared/redux/edges/actions.ts +0 -37
- package/src/bundles/shared/redux/edges/models/IEdge.ts +0 -9
- package/src/bundles/shared/redux/edges/models/IEdgesState.ts +0 -6
- package/src/bundles/shared/redux/edges/reducer.ts +0 -59
- package/src/bundles/shared/redux/events/actionTypes.ts +0 -11
- package/src/bundles/shared/redux/events/actions.ts +0 -100
- package/src/bundles/shared/redux/events/models/IEvent.ts +0 -29
- package/src/bundles/shared/redux/events/models/IEventsState.ts +0 -9
- package/src/bundles/shared/redux/events/models/ISource.ts +0 -6
- package/src/bundles/shared/redux/events/reducer.ts +0 -167
- package/src/bundles/shared/redux/filters/IFilter.ts +0 -13
- package/src/bundles/shared/redux/filters/IFilterItem.ts +0 -9
- package/src/bundles/shared/redux/global/actionTypes.ts +0 -9
- package/src/bundles/shared/redux/global/actions.ts +0 -76
- package/src/bundles/shared/redux/global/models/IGlobalState.ts +0 -16
- package/src/bundles/shared/redux/global/reducer.ts +0 -81
- package/src/bundles/shared/redux/points/actionTypes.ts +0 -3
- package/src/bundles/shared/redux/points/actions.ts +0 -24
- package/src/bundles/shared/redux/points/models/IGroup.ts +0 -7
- package/src/bundles/shared/redux/points/models/IPoint.ts +0 -16
- package/src/bundles/shared/redux/points/models/IPointsState.ts +0 -6
- package/src/bundles/shared/redux/points/reducer.ts +0 -26
- package/src/bundles/shared/redux/rootActionTypes.ts +0 -1
- package/src/bundles/shared/redux/rootActions.ts +0 -7
- package/src/bundles/shared/redux/rootReducer.ts +0 -33
- package/src/bundles/shared/redux/rootStore.ts +0 -34
- package/src/bundles/shared/utilities/ActionUtility.ts +0 -9
- package/src/bundles/shared/utilities/ErrorBoundary.tsx +0 -40
- package/src/bundles/shared/utilities/KandoDate.ts +0 -11
- package/src/bundles/shared/utilities/KandoModal.tsx +0 -40
- package/src/bundles/shared/utilities/LocalStorage.tsx +0 -31
- package/src/bundles/shared/utilities/TimeFormat.tsx +0 -64
- package/src/bundles/shared/utilities/Truncate.tsx +0 -54
- package/src/bundles/shared/utilities/custom_hooks/useClickOutside.ts +0 -18
- package/src/bundles/shared/utilities/custom_hooks/useKandoFetch.ts +0 -45
- package/src/bundles/shared/utilities/custom_hooks/useQueryURL.ts +0 -7
- package/src/bundles/shared/utilities/custom_hooks/useRemoveExistingLayers.tsx +0 -24
- package/src/bundles/shared/utilities/custom_hooks/useUpdateEventBodyTail.tsx +0 -52
- package/src/bundles/shared/utilities/i18n.tsx +0 -9
- package/src/index.js +0 -21
- package/src/init-api-mock.js +0 -11
- package/src/locals.js +0 -12296
- package/src/react-app-env.d.ts +0 -1
- package/src/stories/examples/Button.stories.tsx +0 -37
- package/src/stories/examples/Button.tsx +0 -48
- package/src/stories/examples/Header.stories.tsx +0 -19
- package/src/stories/examples/Header.tsx +0 -47
- package/src/stories/examples/Introduction.stories.mdx +0 -211
- package/src/stories/examples/Page.stories.tsx +0 -22
- package/src/stories/examples/Page.tsx +0 -67
- package/src/stories/examples/assets/code-brackets.svg +0 -1
- package/src/stories/examples/assets/colors.svg +0 -1
- package/src/stories/examples/assets/comments.svg +0 -1
- package/src/stories/examples/assets/direction.svg +0 -1
- package/src/stories/examples/assets/flow.svg +0 -1
- package/src/stories/examples/assets/plugin.svg +0 -1
- package/src/stories/examples/assets/repo.svg +0 -1
- package/src/stories/examples/assets/stackalt.svg +0 -1
- package/src/stories/examples/button.css +0 -30
- package/src/stories/examples/header.css +0 -26
- package/src/stories/examples/page.css +0 -69
- package/static/fonts/Gilroy-ExtraBold.otf +0 -0
- package/static/fonts/Gilroy-Light.otf +0 -0
- package/static/fonts/Gilroy-Regular.otf +0 -0
- package/static/fonts/Gilroy-SemiBold.otf +0 -0
- package/static/fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/static/mockServiceWorker.js +0 -323
- package/temp-fix-paths/fix-paths.test.js +0 -143
- package/temp-fix-paths/lib.js +0 -97
- package/temp-fix-paths/run.js +0 -4
- package/temp-fix-paths/test-dir/a/a.ts +0 -0
- package/temp-fix-paths/test-dir/a/aa/aa.ts +0 -0
- package/temp-fix-paths/test-dir/a/aa/aaa/aaa.ts +0 -8
- package/temp-fix-paths/test-dir/b/b.ts +0 -0
- package/temp-fix-paths/test-dir/b/bb/bb.ts +0 -0
- package/temp-fix-paths/test-dir/b/bb/bbb/bbb.ts +0 -1
- package/tsconfig.json +0 -39
- package/types/global/index.d.ts +0 -28
- /package/{lib-build → lib}/CovidView/views/components/Body.js +0 -0
- /package/{lib-build → lib}/CovidView/views/components/Map.js +0 -0
- /package/{lib-build → lib}/CovidView/views/components/MapStyle.scss +0 -0
- /package/{lib-build → lib}/CovidView/views/components/Sidebar.js +0 -0
- /package/{lib-build → lib}/CovidView/views/components/SidebarStyle.scss +0 -0
- /package/{lib-build → lib}/CovidView/views/components/Summary.js +0 -0
- /package/{lib-build → lib}/CovidView/views/components/SummaryStyle.scss +0 -0
- /package/{lib-build → lib}/CovidView/views/components/areas/Area.js +0 -0
- /package/{lib-build → lib}/CovidView/views/components/areas/AreaPolygonWBE.js +0 -0
- /package/{lib-build → lib}/CovidView/views/components/areas/AreaPolygonsWBE.js +0 -0
- /package/{lib-build → lib}/CovidView/views/components/areas/AreasList.js +0 -0
- /package/{lib-build → lib}/CovidView/views/components/areas/AreasStyle.scss +0 -0
- /package/{lib-build → lib}/CovidView/views/components/areas/Sort.js +0 -0
- /package/{lib-build → lib}/CovidView/views/components/areas/TrendPopupContent/TrendPopupContent.js +0 -0
- /package/{lib-build → lib}/CovidView/views/components/areas/TrendPopupContent/index.js +0 -0
- /package/{lib-build → lib}/CovidView/views/components/areas/TrendPopupContent/styles.scss +0 -0
- /package/{lib-build → lib}/CovidView/views/covidView.js +0 -0
- /package/{lib-build → lib}/DashboardV2/AreaDashboard.js +0 -0
- /package/{lib-build → lib}/DashboardV2/SiteDashboard.js +0 -0
- /package/{lib-build → lib}/DashboardV2/WaterAuthorityDashboard.js +0 -0
- /package/{lib-build → lib}/DashboardV2/index.js +0 -0
- /package/{lib-build → lib}/DashboardV2/styles.scss +0 -0
- /package/{lib-build → lib}/DashboardV2/types/IDashboardData.js +0 -0
- /package/{lib-build → lib}/EventsView/views/_colors.scss +0 -0
- /package/{lib-build → lib}/EventsView/views/components/Body.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/areas/AreaPolygon.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/areas/AreaPolygons.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/edges/Edge.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/edges/Edges.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/EventIndicator.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/EventPath.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/EventsStyle.scss +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/MoreInfo.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/Sidebar.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/EarlyWarnings.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/EventDetails.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/EventInfo.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/EventInfoStyle.scss +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/EventTimeRange.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/HistoricalInformation.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/MiniEventTree.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/MobileEventPath.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/PollutionDischarge.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/charts/EventDetailsLineChart.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/charts/EventDetailsPieChart.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/damage_type/DamageType.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/damage_type/svgs/agriculture.svg +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/damage_type/svgs/bacteria-process.svg +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/damage_type/svgs/effluent.svg +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/damage_type/svgs/energy.svg +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/damage_type/svgs/equipment.svg +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/damage_type/svgs/extra-biological-sludge.svg +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/damage_type/svgs/overflow.svg +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/damage_type/svgs/pipes-bluckages.svg +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/damage_type/svgs/pipes-infrastructure.svg +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/damage_type/svgs/reuse.svg +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/damage_type/svgs/sea-rivers.svg +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/damage_type/svgs/sludge.svg +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/samplings/Sampling.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/samplings/Samplings.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/sources/Source.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/event_info/sources/Sources.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/events_list/EventItem.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/events_list/EventsList.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/events_list/Filter/Filter.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/events_list/Filter/FilterContainer.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/events_list/Filter/FilterItem.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/events_list/Filter/FiltersDropDown.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/events_list/Filter/OptionsDropDown.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/events/events_list/Sort.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/map/FloatingGraph.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/map/Map.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/map/mapStyle.scss +0 -0
- /package/{lib-build → lib}/EventsView/views/components/points/PointMarker.js +0 -0
- /package/{lib-build → lib}/EventsView/views/components/points/PointMarkers.js +0 -0
- /package/{lib-build → lib}/EventsView/views/eventsView.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/api/index.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/components/kpi-list-item.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/components/kpi-percentage-item.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/components/kpi.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/components/legend-icon.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/components/link-to-item.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/components/list-of-points.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/components/map-view.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/components/metrics.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/components/node-label.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/components/period-selector-button.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/components/period-selector.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/components/point-preview.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/components/project-management.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/components/tree-legend.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/components/tree-view.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/stores/project-management-store.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/util/constants.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/util/treeUtil.js +0 -0
- /package/{lib-build → lib}/ProjectManagement/util/url.js +0 -0
- /package/{lib-build → lib}/assets/NVL_trends/down.png +0 -0
- /package/{lib-build → lib}/assets/NVL_trends/same.png +0 -0
- /package/{lib-build → lib}/assets/NVL_trends/up.png +0 -0
- /package/{lib-build → lib}/assets/area_statuses/invalid-sampling.png +0 -0
- /package/{lib-build → lib}/assets/area_statuses/missing-sampling.png +0 -0
- /package/{lib-build → lib}/assets/area_statuses/pending-sampling.png +0 -0
- /package/{lib-build → lib}/assets/area_statuses/valid-sampling.png +0 -0
- /package/{lib-build → lib}/assets/factory-icon.png +0 -0
- /package/{lib-build → lib}/assets/flask.svg +0 -0
- /package/{lib-build → lib}/assets/kando_logo.png +0 -0
- /package/{lib-build → lib}/assets/line-chart.svg +0 -0
- /package/{lib-build → lib}/assets/missing/authority.png +0 -0
- /package/{lib-build → lib}/assets/missing/group.png +0 -0
- /package/{lib-build → lib}/assets/missing/point.png +0 -0
- /package/{lib-build → lib}/assets/no_events.svg +0 -0
- /package/{lib-build → lib}/assets/no_results.svg +0 -0
- /package/{lib-build → lib}/assets/point_icons/WWTP-icon.svg +0 -0
- /package/{lib-build → lib}/assets/point_icons/blue-circle.svg +0 -0
- /package/{lib-build → lib}/assets/point_icons/bright-blue-circle.svg +0 -0
- /package/{lib-build → lib}/assets/point_icons/factory-icon.svg +0 -0
- /package/{lib-build → lib}/assets/point_icons/green-circle.png +0 -0
- /package/{lib-build → lib}/assets/point_icons/green-circle.svg +0 -0
- /package/{lib-build → lib}/assets/point_icons/observation-icon.svg +0 -0
- /package/{lib-build → lib}/assets/point_icons/pink-circle.svg +0 -0
- /package/{lib-build → lib}/assets/point_icons/pump-station-icon.svg +0 -0
- /package/{lib-build → lib}/assets/point_icons/red-pin-red-shadow.png +0 -0
- /package/{lib-build → lib}/assets/point_icons/sampling-icon.svg +0 -0
- /package/{lib-build → lib}/assets/point_icons/white-pin-black-shadow.png +0 -0
- /package/{lib-build → lib}/assets/point_icons/white-pin-red-shadow.png +0 -0
- /package/{lib-build → lib}/assets/point_icons/yellow-circle.svg +0 -0
- /package/{lib-build → lib}/assets/sewer.svg +0 -0
- /package/{lib-build → lib}/assets/user.svg +0 -0
- /package/{lib-build → lib}/assets/white-point.png +0 -0
- /package/{lib-build → lib}/index.js +0 -0
- /package/{lib-build → lib}/shared/TimeRangeSelector/TimeRangeSelector.js +0 -0
- /package/{lib-build → lib}/shared/TimeRangeSelector/constants.js +0 -0
- /package/{lib-build → lib}/shared/TimeRangeSelector/index.js +0 -0
- /package/{lib-build → lib}/shared/TimeRangeSelector/styles.scss +0 -0
- /package/{lib-build → lib}/shared/components/Breadcrumbs/Breadcrumbs.js +0 -0
- /package/{lib-build → lib}/shared/components/Breadcrumbs/index.js +0 -0
- /package/{lib-build → lib}/shared/components/Breadcrumbs/styles.scss +0 -0
- /package/{lib-build → lib}/shared/components/ContentLoader/ContentLoader.js +0 -0
- /package/{lib-build → lib}/shared/components/ContentLoader/index.js +0 -0
- /package/{lib-build → lib}/shared/components/DamageType/DamageType.js +0 -0
- /package/{lib-build → lib}/shared/components/DamageType/index.js +0 -0
- /package/{lib-build → lib}/shared/components/DamageType/styles.scss +0 -0
- /package/{lib-build → lib}/shared/components/DischargeHeatmap/DischargeHeatmap.js +0 -0
- /package/{lib-build → lib}/shared/components/DischargeHeatmap/index.js +0 -0
- /package/{lib-build → lib}/shared/components/DischargeHeatmap/styles.scss +0 -0
- /package/{lib-build → lib}/shared/components/ErrorBoundary.js +0 -0
- /package/{lib-build → lib}/shared/components/Events/Events.js +0 -0
- /package/{lib-build → lib}/shared/components/Events/index.js +0 -0
- /package/{lib-build → lib}/shared/components/Events/styles.scss +0 -0
- /package/{lib-build → lib}/shared/components/Graph/Graph.js +0 -0
- /package/{lib-build → lib}/shared/components/Graph/index.js +0 -0
- /package/{lib-build → lib}/shared/components/KandoModal/KandoModal.js +0 -0
- /package/{lib-build → lib}/shared/components/KandoModal/index.js +0 -0
- /package/{lib-build → lib}/shared/components/KandoModal/styles.scss +0 -0
- /package/{lib-build → lib}/shared/components/KandoNavbar/KandoNavbar.js +0 -0
- /package/{lib-build → lib}/shared/components/KandoNavbar/NavbarStyle.scss +0 -0
- /package/{lib-build → lib}/shared/components/KandoNavbar/index.js +0 -0
- /package/{lib-build → lib}/shared/components/LiveEvents/CarouselSlide.js +0 -0
- /package/{lib-build → lib}/shared/components/LiveEvents/LiveEvents.js +0 -0
- /package/{lib-build → lib}/shared/components/LiveEvents/index.js +0 -0
- /package/{lib-build → lib}/shared/components/LiveEvents/styles.scss +0 -0
- /package/{lib-build → lib}/shared/components/Map/Map.js +0 -0
- /package/{lib-build → lib}/shared/components/Map/index.js +0 -0
- /package/{lib-build → lib}/shared/components/Map/styles.scss +0 -0
- /package/{lib-build → lib}/shared/components/NarrowHeader.js +0 -0
- /package/{lib-build → lib}/shared/components/PointInfo/PointInfo.js +0 -0
- /package/{lib-build → lib}/shared/components/PointInfo/index.js +0 -0
- /package/{lib-build → lib}/shared/components/PointInfo/styles.scss +0 -0
- /package/{lib-build → lib}/shared/components/Search/Search.js +0 -0
- /package/{lib-build → lib}/shared/components/Search/index.js +0 -0
- /package/{lib-build → lib}/shared/components/Search/styles.scss +0 -0
- /package/{lib-build → lib}/shared/components/Sector/Sector.js +0 -0
- /package/{lib-build → lib}/shared/components/Sector/index.js +0 -0
- /package/{lib-build → lib}/shared/components/Sector/styles.scss +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/Brewing.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/Cowshed.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/Garage.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/Missing.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/barrel.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/beer.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/beverage.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/car-repair.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/car-wash.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/chemistry.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/conductor-manufacturer.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/cosmetic-manufacturer.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/cow.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/cpu.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/dairy.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/dippel-oil.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/food-donation.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/food-factory.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/garbage-truck-1.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/gas-station.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/glass-manufacturer.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/glass.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/hand-washing.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/hospital.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/hotel.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/laundromat.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/leather-factory.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/leather.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/lipstick.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/meat.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/metal-coating-plant.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/metal-facbrication.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/milk.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/oil-rig.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/petrochemical.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/pie.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/pills.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/plant-unkown-3.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/plastic-rubber.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/printer.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/recycling.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/refinery.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/repair.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/sewing-machine.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/shop.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/soda.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/spray-gun.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/washing-machine.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/waste.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/welder-a.svg +0 -0
- /package/{lib-build → lib}/shared/components/Sector/svgs/wine-glass.svg +0 -0
- /package/{lib-build → lib}/shared/components/Toggle/Toggle.js +0 -0
- /package/{lib-build → lib}/shared/components/Toggle/index.js +0 -0
- /package/{lib-build → lib}/shared/components/Toggle/styles.scss +0 -0
- /package/{lib-build → lib}/shared/components/TrendGraph/TrendGraph.js +0 -0
- /package/{lib-build → lib}/shared/components/TrendGraph/index.js +0 -0
- /package/{lib-build → lib}/shared/components/TrendGraph/styles.scss +0 -0
- /package/{lib-build → lib}/shared/components/TrendGraphNVL/TrendGraphNVL.js +0 -0
- /package/{lib-build → lib}/shared/components/TrendGraphNVL/index.js +0 -0
- /package/{lib-build → lib}/shared/components/TrendGraphNVL/styles.scss +0 -0
- /package/{lib-build → lib}/shared/helpers/kql.js +0 -0
- /package/{lib-build → lib}/shared/helpers/time.js +0 -0
- /package/{lib-build → lib}/shared/models/IAction.js +0 -0
- /package/{lib-build → lib}/shared/models/IAppState.js +0 -0
- /package/{lib-build → lib}/shared/redux/WBE/actionTypes.js +0 -0
- /package/{lib-build → lib}/shared/redux/WBE/actions.js +0 -0
- /package/{lib-build → lib}/shared/redux/WBE/models/IAreaWBE.js +0 -0
- /package/{lib-build → lib}/shared/redux/WBE/models/IWBE.js +0 -0
- /package/{lib-build → lib}/shared/redux/WBE/models/IWBEState.js +0 -0
- /package/{lib-build → lib}/shared/redux/WBE/reducer.js +0 -0
- /package/{lib-build → lib}/shared/redux/areas/actionTypes.js +0 -0
- /package/{lib-build → lib}/shared/redux/areas/actions.js +0 -0
- /package/{lib-build → lib}/shared/redux/areas/models/IArea.js +0 -0
- /package/{lib-build → lib}/shared/redux/areas/models/IAreasState.js +0 -0
- /package/{lib-build → lib}/shared/redux/areas/reducer.js +0 -0
- /package/{lib-build → lib}/shared/redux/context/actionTypes.js +0 -0
- /package/{lib-build → lib}/shared/redux/context/actions.js +0 -0
- /package/{lib-build → lib}/shared/redux/context/models/INavContext.js +0 -0
- /package/{lib-build → lib}/shared/redux/context/models/INavContextState.js +0 -0
- /package/{lib-build → lib}/shared/redux/context/reducer.js +0 -0
- /package/{lib-build → lib}/shared/redux/edges/actionTypes.js +0 -0
- /package/{lib-build → lib}/shared/redux/edges/actions.js +0 -0
- /package/{lib-build → lib}/shared/redux/edges/models/IEdge.js +0 -0
- /package/{lib-build → lib}/shared/redux/edges/models/IEdgesState.js +0 -0
- /package/{lib-build → lib}/shared/redux/edges/reducer.js +0 -0
- /package/{lib-build → lib}/shared/redux/events/actionTypes.js +0 -0
- /package/{lib-build → lib}/shared/redux/events/actions.js +0 -0
- /package/{lib-build → lib}/shared/redux/events/models/IEvent.js +0 -0
- /package/{lib-build → lib}/shared/redux/events/models/IEventsState.js +0 -0
- /package/{lib-build → lib}/shared/redux/events/models/ISource.js +0 -0
- /package/{lib-build → lib}/shared/redux/events/reducer.js +0 -0
- /package/{lib-build → lib}/shared/redux/filters/IFilter.js +0 -0
- /package/{lib-build → lib}/shared/redux/filters/IFilterItem.js +0 -0
- /package/{lib-build → lib}/shared/redux/global/actionTypes.js +0 -0
- /package/{lib-build → lib}/shared/redux/global/actions.js +0 -0
- /package/{lib-build → lib}/shared/redux/global/models/IGlobalState.js +0 -0
- /package/{lib-build → lib}/shared/redux/global/reducer.js +0 -0
- /package/{lib-build → lib}/shared/redux/points/actionTypes.js +0 -0
- /package/{lib-build → lib}/shared/redux/points/actions.js +0 -0
- /package/{lib-build → lib}/shared/redux/points/models/IGroup.js +0 -0
- /package/{lib-build → lib}/shared/redux/points/models/IPoint.js +0 -0
- /package/{lib-build → lib}/shared/redux/points/models/IPointsState.js +0 -0
- /package/{lib-build → lib}/shared/redux/points/reducer.js +0 -0
- /package/{lib-build → lib}/shared/redux/rootActionTypes.js +0 -0
- /package/{lib-build → lib}/shared/redux/rootActions.js +0 -0
- /package/{lib-build → lib}/shared/redux/rootReducer.js +0 -0
- /package/{lib-build → lib}/shared/redux/rootStore.js +0 -0
- /package/{lib-build → lib}/shared/utilities/ActionUtility.js +0 -0
- /package/{lib-build → lib}/shared/utilities/ErrorBoundary.js +0 -0
- /package/{lib-build → lib}/shared/utilities/KandoDate.js +0 -0
- /package/{lib-build → lib}/shared/utilities/KandoModal.js +0 -0
- /package/{lib-build → lib}/shared/utilities/LocalStorage.js +0 -0
- /package/{lib-build → lib}/shared/utilities/TimeFormat.js +0 -0
- /package/{lib-build → lib}/shared/utilities/Truncate.js +0 -0
- /package/{lib-build → lib}/shared/utilities/custom_hooks/useClickOutside.js +0 -0
- /package/{lib-build → lib}/shared/utilities/custom_hooks/useKandoFetch.js +0 -0
- /package/{lib-build → lib}/shared/utilities/custom_hooks/useQueryURL.js +0 -0
- /package/{lib-build → lib}/shared/utilities/custom_hooks/useRemoveExistingLayers.js +0 -0
- /package/{lib-build → lib}/shared/utilities/custom_hooks/useUpdateEventBodyTail.js +0 -0
- /package/{lib-build → lib}/shared/utilities/i18n.js +0 -0
|
@@ -1,508 +0,0 @@
|
|
|
1
|
-
.event-info {
|
|
2
|
-
opacity: 1;
|
|
3
|
-
font-size: 0.9em;
|
|
4
|
-
height: 100%;
|
|
5
|
-
width: 100%;
|
|
6
|
-
transition: .2s ease-in-out height, .3s ease-in-out opacity;
|
|
7
|
-
background: white;
|
|
8
|
-
overflow: scroll;
|
|
9
|
-
|
|
10
|
-
&__content-container {
|
|
11
|
-
padding: 0em 1.5em 7em 1.5em;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&__card {
|
|
15
|
-
box-shadow: 0px 1px 5px 0 rgba(0, 0, 0, 0.06);
|
|
16
|
-
border: solid 1px #ebebeb;
|
|
17
|
-
background-color: #ffffff;
|
|
18
|
-
width: 100%;
|
|
19
|
-
padding: 20px;
|
|
20
|
-
margin: 15px 0;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.back_button_container {
|
|
24
|
-
z-index: 9;
|
|
25
|
-
background: white;
|
|
26
|
-
position: sticky;
|
|
27
|
-
width: 450px;
|
|
28
|
-
max-width: 450px;
|
|
29
|
-
height: 3.3em;
|
|
30
|
-
left: 0;
|
|
31
|
-
top: 0;
|
|
32
|
-
padding: 12px 20px;
|
|
33
|
-
box-shadow: 0px 3px 3px rgba(0, 0, 0, .1);
|
|
34
|
-
|
|
35
|
-
&__button {
|
|
36
|
-
svg {
|
|
37
|
-
.rtls & {
|
|
38
|
-
transform: rotate(180deg);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.early_warnings {
|
|
45
|
-
li {
|
|
46
|
-
border-bottom: 1px solid rgba(0, 0, 0, .1);
|
|
47
|
-
display: flex;
|
|
48
|
-
justify-content: space-between;
|
|
49
|
-
padding: 1rem 0;
|
|
50
|
-
|
|
51
|
-
p {
|
|
52
|
-
font-size: 10px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.early-warning-info {
|
|
56
|
-
.ltrs & {
|
|
57
|
-
text-align: right;
|
|
58
|
-
}
|
|
59
|
-
.rtls & {
|
|
60
|
-
text-align: left;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&--collapsed {
|
|
67
|
-
height: 0 !important;
|
|
68
|
-
padding: 0 !important;
|
|
69
|
-
opacity: 0 !important;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
h1 {
|
|
73
|
-
font-size: 1.8rem;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&__source {
|
|
77
|
-
cursor: pointer;
|
|
78
|
-
border: solid 1px #ebebeb;
|
|
79
|
-
transition: 0.2s ease-in-out;
|
|
80
|
-
background-color: #ffffff;
|
|
81
|
-
margin: 10px 0;
|
|
82
|
-
padding: 10px 10px 20px 10px;
|
|
83
|
-
|
|
84
|
-
&:hover {
|
|
85
|
-
background: rgba(0, 0, 0, .03);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&:active {
|
|
89
|
-
background: rgba(0, 0, 0, .06);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
.more-info-button {
|
|
94
|
-
padding: 5px;
|
|
95
|
-
border-radius: 3px;
|
|
96
|
-
color: #f50b56;
|
|
97
|
-
font-weight: 500;
|
|
98
|
-
border: 1px solid #f50b56;
|
|
99
|
-
|
|
100
|
-
&:hover {
|
|
101
|
-
text-decoration: none;
|
|
102
|
-
color: white;
|
|
103
|
-
background: #f50b56;
|
|
104
|
-
transition: .2s ease;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
&__sector {
|
|
109
|
-
display: flex;
|
|
110
|
-
align-items: center;
|
|
111
|
-
|
|
112
|
-
.sector_icon {
|
|
113
|
-
width: 30px;
|
|
114
|
-
height: 40px;
|
|
115
|
-
margin: 0 5px 0 0;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
&--selected {
|
|
120
|
-
transition: 0.2s ease-in-out;
|
|
121
|
-
box-shadow: 0px 1px 5px 0 rgba(0, 0, 0, 0.06);
|
|
122
|
-
background-color: #fafafa;
|
|
123
|
-
|
|
124
|
-
.ltrs & {
|
|
125
|
-
border-left: 3px solid #f50b56;
|
|
126
|
-
}
|
|
127
|
-
.rtls & {
|
|
128
|
-
border-right: 3px solid #f50b56;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
&__header__info-container {
|
|
133
|
-
display: flex;
|
|
134
|
-
justify-content: space-between;
|
|
135
|
-
|
|
136
|
-
p {
|
|
137
|
-
margin: 0;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
&__body {
|
|
142
|
-
&__info-container {
|
|
143
|
-
display: flex;
|
|
144
|
-
justify-content: space-between;
|
|
145
|
-
align-items: center;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&__discharge-time {
|
|
149
|
-
padding: 10px 0;
|
|
150
|
-
display: flex;
|
|
151
|
-
justify-content: space-between;
|
|
152
|
-
border-top: 1px solid rgba(0, 0, 0, .1);
|
|
153
|
-
|
|
154
|
-
.time {
|
|
155
|
-
.rtls & {
|
|
156
|
-
text-align: left;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.ltrs & {
|
|
160
|
-
text-align: right;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.discharging {
|
|
167
|
-
padding: 15px 0;
|
|
168
|
-
width: 5em;
|
|
169
|
-
height: 5em;
|
|
170
|
-
|
|
171
|
-
img {
|
|
172
|
-
width: 30px;
|
|
173
|
-
margin: 0 18px;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
span {
|
|
177
|
-
font-size: 12px;
|
|
178
|
-
|
|
179
|
-
.rtls & {
|
|
180
|
-
margin: 0 15px;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
&__image {
|
|
187
|
-
width: 4em;
|
|
188
|
-
height: 3.2em;
|
|
189
|
-
margin: .5em 0 0 0;
|
|
190
|
-
overflow: hidden;
|
|
191
|
-
|
|
192
|
-
img {
|
|
193
|
-
height: 100%;
|
|
194
|
-
width: 100%;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
&__event_severity {
|
|
199
|
-
padding: 1.5rem 0 !important;
|
|
200
|
-
|
|
201
|
-
.severities {
|
|
202
|
-
display: flex;
|
|
203
|
-
|
|
204
|
-
&__severity {
|
|
205
|
-
margin: 0 1px;
|
|
206
|
-
padding: 6px 10px;
|
|
207
|
-
|
|
208
|
-
&--0 {
|
|
209
|
-
color: #f6b22f;
|
|
210
|
-
position: relative;
|
|
211
|
-
|
|
212
|
-
&:after {
|
|
213
|
-
content: '';
|
|
214
|
-
width: 100%;
|
|
215
|
-
height: 5px;
|
|
216
|
-
background: #f6b22f;
|
|
217
|
-
position: absolute;
|
|
218
|
-
bottom: -12px;
|
|
219
|
-
left: 0;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
&--active {
|
|
223
|
-
background: #f6b22f;
|
|
224
|
-
color: white;
|
|
225
|
-
box-shadow: 0px 1px 6px rgba(0,0,0,0.3);
|
|
226
|
-
font-weight: bold;
|
|
227
|
-
|
|
228
|
-
&:before {
|
|
229
|
-
content: '▾';
|
|
230
|
-
position: absolute;
|
|
231
|
-
bottom: -15px;
|
|
232
|
-
left: 0;
|
|
233
|
-
right: 0;
|
|
234
|
-
width: 10px;
|
|
235
|
-
margin: 0 auto;
|
|
236
|
-
color: #f6b22f;
|
|
237
|
-
font-size: 20px;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
&--1 {
|
|
243
|
-
color: #f67129;
|
|
244
|
-
position: relative;
|
|
245
|
-
|
|
246
|
-
&:after {
|
|
247
|
-
content: '';
|
|
248
|
-
width: 100%;
|
|
249
|
-
height: 5px;
|
|
250
|
-
background: #f67129;
|
|
251
|
-
position: absolute;
|
|
252
|
-
bottom: -12px;
|
|
253
|
-
left: 0;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
&--active {
|
|
257
|
-
background: #f67129;
|
|
258
|
-
color: white;
|
|
259
|
-
box-shadow: 0px 1px 6px rgba(0,0,0,0.3);
|
|
260
|
-
font-weight: bold;
|
|
261
|
-
|
|
262
|
-
&:before {
|
|
263
|
-
content: '▾';
|
|
264
|
-
position: absolute;
|
|
265
|
-
bottom: -15px;
|
|
266
|
-
left: 0;
|
|
267
|
-
right: 0;
|
|
268
|
-
width: 10px;
|
|
269
|
-
margin: 0 auto;
|
|
270
|
-
color: #f67129;
|
|
271
|
-
font-size: 20px;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
&--2 {
|
|
277
|
-
color: #f6004f;
|
|
278
|
-
position: relative;
|
|
279
|
-
|
|
280
|
-
&:after {
|
|
281
|
-
content: '';
|
|
282
|
-
width: 100%;
|
|
283
|
-
height: 5px;
|
|
284
|
-
background: #f6004f;
|
|
285
|
-
position: absolute;
|
|
286
|
-
bottom: -12px;
|
|
287
|
-
left: 0;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
&--active {
|
|
291
|
-
background: #f6004f;
|
|
292
|
-
color: white;
|
|
293
|
-
box-shadow: 0px 1px 6px rgba(0,0,0,0.3);
|
|
294
|
-
font-weight: bold;
|
|
295
|
-
|
|
296
|
-
&:before {
|
|
297
|
-
content: '▾';
|
|
298
|
-
position: absolute;
|
|
299
|
-
bottom: -15px;
|
|
300
|
-
left: 0;
|
|
301
|
-
right: 0;
|
|
302
|
-
width: 10px;
|
|
303
|
-
margin: 0 auto;
|
|
304
|
-
color: #f6004f;
|
|
305
|
-
font-size: 20px;
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
&__detail {
|
|
314
|
-
padding: 1rem 0;
|
|
315
|
-
border-bottom: 1px solid rgba(0,0,0,0.1);
|
|
316
|
-
display: flex;
|
|
317
|
-
justify-content: space-between;
|
|
318
|
-
|
|
319
|
-
.damage-types {
|
|
320
|
-
&__type {
|
|
321
|
-
display: flex;
|
|
322
|
-
align-items: center;
|
|
323
|
-
margin: 5px 0;
|
|
324
|
-
|
|
325
|
-
img {
|
|
326
|
-
width: 1.5em;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
span {
|
|
330
|
-
font-weight: 100;
|
|
331
|
-
padding: 0 10px;
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
&__seen {
|
|
337
|
-
div {
|
|
338
|
-
display: flex;
|
|
339
|
-
|
|
340
|
-
p {
|
|
341
|
-
margin: 0;
|
|
342
|
-
padding: 0 5px;
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
&__early-warnings {
|
|
348
|
-
border: none;
|
|
349
|
-
padding: 0;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
&:last-child {
|
|
353
|
-
border: none;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
.samplings {
|
|
357
|
-
padding-top: 1em;
|
|
358
|
-
|
|
359
|
-
.sampling {
|
|
360
|
-
display: flex;
|
|
361
|
-
flex-direction: row;
|
|
362
|
-
justify-content: center;
|
|
363
|
-
max-height: 70px;
|
|
364
|
-
|
|
365
|
-
&__info {
|
|
366
|
-
width: 100%;
|
|
367
|
-
display: flex;
|
|
368
|
-
flex-direction: column;
|
|
369
|
-
margin: 5px 0;
|
|
370
|
-
|
|
371
|
-
.rtls & {
|
|
372
|
-
text-align: left;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
.ltrs & {
|
|
376
|
-
text-align: right;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
p {
|
|
380
|
-
margin: 0;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
img {
|
|
385
|
-
width: 1.5em;
|
|
386
|
-
.rtls & {
|
|
387
|
-
margin-left: 1em;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
.ltrs & {
|
|
391
|
-
margin-right: 1em;
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
&__event-path {
|
|
399
|
-
display: none;
|
|
400
|
-
|
|
401
|
-
.event-path-content {
|
|
402
|
-
text-align: center;
|
|
403
|
-
margin: 10px 0;
|
|
404
|
-
|
|
405
|
-
.full-map-button {
|
|
406
|
-
border: 1px solid black;
|
|
407
|
-
padding: 10px;
|
|
408
|
-
border-radius: 10px;
|
|
409
|
-
color: black;
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
&__graphs {
|
|
415
|
-
margin: 0 0 6em 0;
|
|
416
|
-
|
|
417
|
-
.graph-title {
|
|
418
|
-
margin: 20px 0 0 0;
|
|
419
|
-
|
|
420
|
-
&--trend-graph {
|
|
421
|
-
margin-bottom: 16px;
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
&__pie {
|
|
426
|
-
display: flex;
|
|
427
|
-
justify-content: center;
|
|
428
|
-
align-items: center;
|
|
429
|
-
|
|
430
|
-
.pie-info {
|
|
431
|
-
display: flex;
|
|
432
|
-
justify-content: center;
|
|
433
|
-
align-items: center;
|
|
434
|
-
|
|
435
|
-
li {
|
|
436
|
-
position: relative;
|
|
437
|
-
padding: 5px 0;
|
|
438
|
-
|
|
439
|
-
.severity {
|
|
440
|
-
border: 1px solid;
|
|
441
|
-
border-radius: 20px;
|
|
442
|
-
padding: 1px 3px;
|
|
443
|
-
min-width: 3em;
|
|
444
|
-
text-align: center;
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
div {
|
|
450
|
-
width: 50%;
|
|
451
|
-
height: 50%;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
.show-error {
|
|
457
|
-
display: block !important;
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
.event-details {
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
.metascore-wrapper {
|
|
465
|
-
position: relative;
|
|
466
|
-
|
|
467
|
-
.metascore-trend {
|
|
468
|
-
padding: .5em;
|
|
469
|
-
position: absolute;
|
|
470
|
-
top: -26px;
|
|
471
|
-
right: 0;
|
|
472
|
-
display: flex;
|
|
473
|
-
background: white;
|
|
474
|
-
box-shadow: 0 0 8px rgba(0,0,0,.15);
|
|
475
|
-
border: 1px solid rgba(0,0,0,.1);
|
|
476
|
-
color: #f6004f;
|
|
477
|
-
|
|
478
|
-
&--positive {
|
|
479
|
-
color: #1db232 !important;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
&__arrow {
|
|
483
|
-
display: flex;
|
|
484
|
-
align-items: center;
|
|
485
|
-
font-size: 1.2em;
|
|
486
|
-
margin: 2px 8px 0;
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
.rtls {
|
|
492
|
-
.metascore-wrapper {
|
|
493
|
-
.metascore-trend {
|
|
494
|
-
right: unset;
|
|
495
|
-
left: 0;
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
@media only screen and (max-width: 480px) {
|
|
501
|
-
.metascore-wrapper {
|
|
502
|
-
.metascore-trend {
|
|
503
|
-
&__note {
|
|
504
|
-
display: none;
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import React, {useState, useEffect} from "react";
|
|
2
|
-
import {connect, ConnectedProps, useDispatch} from "react-redux";
|
|
3
|
-
import {IAppState} from '../../../../../shared/models/IAppState';
|
|
4
|
-
import moment from 'moment-timezone';
|
|
5
|
-
import {setCurrentTime} from '../../../../../shared/redux/global/actions'
|
|
6
|
-
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
|
7
|
-
import {faClock} from '@fortawesome/free-solid-svg-icons'
|
|
8
|
-
|
|
9
|
-
function mapStateToProps(state: IAppState) {
|
|
10
|
-
const { events_data: events_data, edges_data: edges_data, global_data: global_data } = state
|
|
11
|
-
|
|
12
|
-
return {
|
|
13
|
-
events_data,
|
|
14
|
-
edges_data,
|
|
15
|
-
global_data
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
type IProps = ConnectedProps<typeof connector>& {
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const EventTimeRange: React.FC<IProps> = props => {
|
|
23
|
-
const { focusedEvent } = props.events_data
|
|
24
|
-
const { global_data } = props
|
|
25
|
-
const dispatch = useDispatch()
|
|
26
|
-
const [expanded, setExpanded] = useState(false)
|
|
27
|
-
const toggleExpansion = () => {
|
|
28
|
-
setExpanded(!expanded)
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const startTimeOrZero = () => {
|
|
32
|
-
return (focusedEvent === null) ? 0 : focusedEvent.start_time
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
const lastSeenObservation = () => {
|
|
36
|
-
if (focusedEvent === null) {
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
return focusedEvent.observations.sort((obs1, obs2) => {
|
|
40
|
-
return obs1.last_seen_time - obs2.last_seen_time
|
|
41
|
-
}).slice(-1)[0]
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const endTime = () => {
|
|
45
|
-
if (focusedEvent !== null && focusedEvent.end_time !== null) {
|
|
46
|
-
return focusedEvent.end_time + 300
|
|
47
|
-
} else {
|
|
48
|
-
if (focusedEvent !== null) {
|
|
49
|
-
let lastSeenObs = lastSeenObservation()
|
|
50
|
-
let observationId = lastSeenObs.id
|
|
51
|
-
let path = focusedEvent.path.filter( (path: any) => path.last_observation_id === observationId)[0]
|
|
52
|
-
if (path !== undefined) {
|
|
53
|
-
let edge = props.edges_data.items.filter( (edge: any) => edge.id === path.edge_id)[0]
|
|
54
|
-
if (edge !== undefined) {
|
|
55
|
-
// if distance to next point is greater than 2 hours (7200) the top limit should be this value (+ 10 minutes)
|
|
56
|
-
let limitTime = lastSeenObs.last_seen_time + Math.max(7200, edge.distance*60 + (10*60 /*10 minutes*/))
|
|
57
|
-
return Math.min(limitTime, (Date.now() / 1000))
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return Date.now() / 1000
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
const [time, setTime] = useState(startTimeOrZero())
|
|
67
|
-
|
|
68
|
-
const stepIntervalInSeconds = () => {
|
|
69
|
-
return 300 // 5 minutes
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
const refreshCurrentTimeIntervalInMs = 5 * 60 * 1000 // 5 minutes
|
|
73
|
-
|
|
74
|
-
const handleChange = (e: any) => {
|
|
75
|
-
setTime(e.target.value)
|
|
76
|
-
dispatch(setCurrentTime(time))
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
useEffect(() => {
|
|
80
|
-
setTime(Date.now() / 1000 | 0)
|
|
81
|
-
dispatch(setCurrentTime(Date.now() / 1000 | 0))
|
|
82
|
-
|
|
83
|
-
let intervalID = setInterval(() => {
|
|
84
|
-
dispatch(setCurrentTime(Date.now() / 1000 | 0))
|
|
85
|
-
}, refreshCurrentTimeIntervalInMs)
|
|
86
|
-
|
|
87
|
-
return function cleanup() {
|
|
88
|
-
clearInterval(intervalID)
|
|
89
|
-
}
|
|
90
|
-
}, [])
|
|
91
|
-
|
|
92
|
-
return (
|
|
93
|
-
<div className={`timerange ${expanded ? 'timerange--expanded' : ''}`}>
|
|
94
|
-
<span className={"clock-icon"} onClick={(() => toggleExpansion())}>
|
|
95
|
-
<FontAwesomeIcon icon={faClock} />
|
|
96
|
-
</span>
|
|
97
|
-
|
|
98
|
-
{focusedEvent !== null && (
|
|
99
|
-
<React.Fragment>
|
|
100
|
-
<span className={'time'}>{moment.unix(global_data.current_time).tz(focusedEvent.observations[0].time_zone).format("DD/MM/YYYY | HH:mm:ss")}</span>
|
|
101
|
-
<input type="range" step={stepIntervalInSeconds()} min={startTimeOrZero() - 600} max={endTime()} value={global_data.current_time} onChange={handleChange} className="slider" id="eventTimeRange"/>
|
|
102
|
-
</React.Fragment>
|
|
103
|
-
)}
|
|
104
|
-
</div>
|
|
105
|
-
)
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
const connector = connect(mapStateToProps)
|
|
109
|
-
export default connector(EventTimeRange)
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import i18n from '../../../../../shared/utilities/i18n';
|
|
3
|
-
import EventDetailsPieChart from "./charts/EventDetailsPieChart";
|
|
4
|
-
import EventDetailsLineChart from "./charts/EventDetailsLineChart";
|
|
5
|
-
import DischargeHeatmap from '../../../../../shared/components/DischargeHeatmap';
|
|
6
|
-
|
|
7
|
-
type IProps = {
|
|
8
|
-
additionalData: any,
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const HistoricalInformation: React.FC<IProps> = props => {
|
|
12
|
-
const selectedSource = props.additionalData.selectedSource
|
|
13
|
-
|
|
14
|
-
return (
|
|
15
|
-
<div className={"event-info__graphs event-info__card"}>
|
|
16
|
-
<h6>{i18n.t("events_overview.historical_information")}: {props.additionalData.sourceName}</h6>
|
|
17
|
-
{selectedSource !== null &&
|
|
18
|
-
<React.Fragment>
|
|
19
|
-
<p className={"graph-title"}><b>{i18n.t("events_overview.discharge_effluent_quality")}</b></p>
|
|
20
|
-
<div className={"event-info__graphs__pie"}>
|
|
21
|
-
<EventDetailsPieChart pointId={selectedSource}/>
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
<p className={"graph-title"}><b>{i18n.t("events_overview.discharge_pattern_overtime")}</b></p>
|
|
25
|
-
{selectedSource && <DischargeHeatmap pointId={selectedSource} periodDays={30} isShowingTitles={false} />}
|
|
26
|
-
|
|
27
|
-
<p className="graph-title graph-title--trend-graph"><b>{i18n.t("events_overview.metascore")}</b></p>
|
|
28
|
-
<EventDetailsLineChart pointId={selectedSource}/>
|
|
29
|
-
</React.Fragment>
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
{selectedSource === null && <p>No source is selected</p>}
|
|
33
|
-
</div>
|
|
34
|
-
)
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export default HistoricalInformation
|