@kando-env/kando-ui 1.0.1 → 1.0.2
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/package.json +1 -1
- package/src/bundles/Router.tsx +1 -0
- package/lib-build/CovidView/views/components/Body.js +0 -90
- package/lib-build/CovidView/views/components/Map.js +0 -142
- package/lib-build/CovidView/views/components/MapStyle.scss +0 -387
- package/lib-build/CovidView/views/components/Sidebar.js +0 -50
- package/lib-build/CovidView/views/components/SidebarStyle.scss +0 -11
- package/lib-build/CovidView/views/components/Summary.js +0 -145
- package/lib-build/CovidView/views/components/SummaryStyle.scss +0 -61
- package/lib-build/CovidView/views/components/areas/Area.js +0 -171
- package/lib-build/CovidView/views/components/areas/AreaPolygonWBE.js +0 -241
- package/lib-build/CovidView/views/components/areas/AreaPolygonsWBE.js +0 -81
- package/lib-build/CovidView/views/components/areas/AreasList.js +0 -123
- package/lib-build/CovidView/views/components/areas/AreasStyle.scss +0 -237
- package/lib-build/CovidView/views/components/areas/Sort.js +0 -59
- package/lib-build/CovidView/views/components/areas/TrendPopupContent/TrendPopupContent.js +0 -148
- package/lib-build/CovidView/views/components/areas/TrendPopupContent/index.js +0 -13
- package/lib-build/CovidView/views/components/areas/TrendPopupContent/styles.scss +0 -30
- package/lib-build/CovidView/views/covidView.js +0 -46
- package/lib-build/DashboardV2/AreaDashboard.js +0 -116
- package/lib-build/DashboardV2/SiteDashboard.js +0 -364
- package/lib-build/DashboardV2/WaterAuthorityDashboard.js +0 -45
- package/lib-build/DashboardV2/index.js +0 -31
- package/lib-build/DashboardV2/styles.scss +0 -126
- package/lib-build/DashboardV2/types/IDashboardData.js +0 -5
- package/lib-build/EventsView/views/_colors.scss +0 -1
- package/lib-build/EventsView/views/components/Body.js +0 -76
- package/lib-build/EventsView/views/components/areas/AreaPolygon.js +0 -53
- package/lib-build/EventsView/views/components/areas/AreaPolygons.js +0 -63
- package/lib-build/EventsView/views/components/edges/Edge.js +0 -75
- package/lib-build/EventsView/views/components/edges/Edges.js +0 -50
- package/lib-build/EventsView/views/components/events/EventIndicator.js +0 -274
- package/lib-build/EventsView/views/components/events/EventPath.js +0 -94
- package/lib-build/EventsView/views/components/events/EventsStyle.scss +0 -725
- package/lib-build/EventsView/views/components/events/MoreInfo.js +0 -72
- package/lib-build/EventsView/views/components/events/Sidebar.js +0 -62
- package/lib-build/EventsView/views/components/events/event_info/EarlyWarnings.js +0 -151
- package/lib-build/EventsView/views/components/events/event_info/EventDetails.js +0 -100
- package/lib-build/EventsView/views/components/events/event_info/EventInfo.js +0 -138
- package/lib-build/EventsView/views/components/events/event_info/EventInfoStyle.scss +0 -508
- package/lib-build/EventsView/views/components/events/event_info/EventTimeRange.js +0 -152
- package/lib-build/EventsView/views/components/events/event_info/HistoricalInformation.js +0 -44
- package/lib-build/EventsView/views/components/events/event_info/MiniEventTree.js +0 -116
- package/lib-build/EventsView/views/components/events/event_info/MobileEventPath.js +0 -39
- package/lib-build/EventsView/views/components/events/event_info/PollutionDischarge.js +0 -64
- package/lib-build/EventsView/views/components/events/event_info/charts/EventDetailsLineChart.js +0 -75
- package/lib-build/EventsView/views/components/events/event_info/charts/EventDetailsPieChart.js +0 -121
- package/lib-build/EventsView/views/components/events/event_info/damage_type/DamageType.js +0 -109
- package/lib-build/EventsView/views/components/events/event_info/damage_type/svgs/agriculture.svg +0 -29
- package/lib-build/EventsView/views/components/events/event_info/damage_type/svgs/bacteria-process.svg +0 -90
- package/lib-build/EventsView/views/components/events/event_info/damage_type/svgs/effluent.svg +0 -55
- package/lib-build/EventsView/views/components/events/event_info/damage_type/svgs/energy.svg +0 -42
- package/lib-build/EventsView/views/components/events/event_info/damage_type/svgs/equipment.svg +0 -82
- package/lib-build/EventsView/views/components/events/event_info/damage_type/svgs/extra-biological-sludge.svg +0 -40
- package/lib-build/EventsView/views/components/events/event_info/damage_type/svgs/overflow.svg +0 -26
- package/lib-build/EventsView/views/components/events/event_info/damage_type/svgs/pipes-bluckages.svg +0 -29
- package/lib-build/EventsView/views/components/events/event_info/damage_type/svgs/pipes-infrastructure.svg +0 -31
- package/lib-build/EventsView/views/components/events/event_info/damage_type/svgs/reuse.svg +0 -29
- package/lib-build/EventsView/views/components/events/event_info/damage_type/svgs/sea-rivers.svg +0 -54
- package/lib-build/EventsView/views/components/events/event_info/damage_type/svgs/sludge.svg +0 -37
- package/lib-build/EventsView/views/components/events/event_info/samplings/Sampling.js +0 -28
- package/lib-build/EventsView/views/components/events/event_info/samplings/Samplings.js +0 -36
- package/lib-build/EventsView/views/components/events/event_info/sources/Source.js +0 -118
- package/lib-build/EventsView/views/components/events/event_info/sources/Sources.js +0 -46
- package/lib-build/EventsView/views/components/events/events_list/EventItem.js +0 -139
- package/lib-build/EventsView/views/components/events/events_list/EventsList.js +0 -298
- package/lib-build/EventsView/views/components/events/events_list/Filter/Filter.js +0 -137
- package/lib-build/EventsView/views/components/events/events_list/Filter/FilterContainer.js +0 -382
- package/lib-build/EventsView/views/components/events/events_list/Filter/FilterItem.js +0 -218
- package/lib-build/EventsView/views/components/events/events_list/Filter/FiltersDropDown.js +0 -68
- package/lib-build/EventsView/views/components/events/events_list/Filter/OptionsDropDown.js +0 -139
- package/lib-build/EventsView/views/components/events/events_list/Sort.js +0 -92
- package/lib-build/EventsView/views/components/map/FloatingGraph.js +0 -83
- package/lib-build/EventsView/views/components/map/Map.js +0 -162
- package/lib-build/EventsView/views/components/map/mapStyle.scss +0 -387
- package/lib-build/EventsView/views/components/points/PointMarker.js +0 -453
- package/lib-build/EventsView/views/components/points/PointMarkers.js +0 -30
- package/lib-build/EventsView/views/eventsView.js +0 -47
- package/lib-build/ProjectManagement/api/index.js +0 -19
- package/lib-build/ProjectManagement/components/kpi-list-item.js +0 -88
- package/lib-build/ProjectManagement/components/kpi-percentage-item.js +0 -98
- package/lib-build/ProjectManagement/components/kpi.js +0 -71
- package/lib-build/ProjectManagement/components/legend-icon.js +0 -61
- package/lib-build/ProjectManagement/components/link-to-item.js +0 -67
- package/lib-build/ProjectManagement/components/list-of-points.js +0 -111
- package/lib-build/ProjectManagement/components/map-view.js +0 -128
- package/lib-build/ProjectManagement/components/metrics.js +0 -94
- package/lib-build/ProjectManagement/components/node-label.js +0 -66
- package/lib-build/ProjectManagement/components/period-selector-button.js +0 -68
- package/lib-build/ProjectManagement/components/period-selector.js +0 -79
- package/lib-build/ProjectManagement/components/point-preview.js +0 -298
- package/lib-build/ProjectManagement/components/project-management.js +0 -262
- package/lib-build/ProjectManagement/components/tree-legend.js +0 -100
- package/lib-build/ProjectManagement/components/tree-view.js +0 -281
- package/lib-build/ProjectManagement/stores/project-management-store.js +0 -32
- package/lib-build/ProjectManagement/util/constants.js +0 -10
- package/lib-build/ProjectManagement/util/treeUtil.js +0 -45
- package/lib-build/ProjectManagement/util/url.js +0 -24
- package/lib-build/Router.js +0 -64
- package/lib-build/assets/NVL_trends/down.png +0 -0
- package/lib-build/assets/NVL_trends/same.png +0 -0
- package/lib-build/assets/NVL_trends/up.png +0 -0
- package/lib-build/assets/area_statuses/invalid-sampling.png +0 -0
- package/lib-build/assets/area_statuses/missing-sampling.png +0 -0
- package/lib-build/assets/area_statuses/pending-sampling.png +0 -0
- package/lib-build/assets/area_statuses/valid-sampling.png +0 -0
- package/lib-build/assets/factory-icon.png +0 -0
- package/lib-build/assets/flask.svg +0 -7
- package/lib-build/assets/kando_logo.png +0 -0
- package/lib-build/assets/line-chart.svg +0 -56
- package/lib-build/assets/missing/authority.png +0 -0
- package/lib-build/assets/missing/group.png +0 -0
- package/lib-build/assets/missing/point.png +0 -0
- package/lib-build/assets/no_events.svg +0 -31
- package/lib-build/assets/no_results.svg +0 -327
- package/lib-build/assets/point_icons/WWTP-icon.svg +0 -26
- package/lib-build/assets/point_icons/blue-circle.svg +0 -3
- package/lib-build/assets/point_icons/bright-blue-circle.svg +0 -3
- package/lib-build/assets/point_icons/factory-icon.svg +0 -23
- package/lib-build/assets/point_icons/green-circle.png +0 -0
- package/lib-build/assets/point_icons/green-circle.svg +0 -3
- package/lib-build/assets/point_icons/observation-icon.svg +0 -12
- package/lib-build/assets/point_icons/pink-circle.svg +0 -3
- package/lib-build/assets/point_icons/pump-station-icon.svg +0 -15
- package/lib-build/assets/point_icons/red-pin-red-shadow.png +0 -0
- package/lib-build/assets/point_icons/sampling-icon.svg +0 -9
- package/lib-build/assets/point_icons/white-pin-black-shadow.png +0 -0
- package/lib-build/assets/point_icons/white-pin-red-shadow.png +0 -0
- package/lib-build/assets/point_icons/yellow-circle.svg +0 -3
- package/lib-build/assets/sewer.svg +0 -3
- package/lib-build/assets/user.svg +0 -44
- package/lib-build/assets/white-point.png +0 -0
- package/lib-build/index.js +0 -34
- package/lib-build/shared/TimeRangeSelector/TimeRangeSelector.js +0 -111
- package/lib-build/shared/TimeRangeSelector/constants.js +0 -8
- package/lib-build/shared/TimeRangeSelector/index.js +0 -13
- package/lib-build/shared/TimeRangeSelector/styles.scss +0 -65
- package/lib-build/shared/components/Breadcrumbs/Breadcrumbs.js +0 -42
- package/lib-build/shared/components/Breadcrumbs/index.js +0 -13
- package/lib-build/shared/components/Breadcrumbs/styles.scss +0 -8
- package/lib-build/shared/components/ContentLoader/ContentLoader.js +0 -71
- package/lib-build/shared/components/ContentLoader/index.js +0 -13
- package/lib-build/shared/components/DamageType/DamageType.js +0 -263
- package/lib-build/shared/components/DamageType/index.js +0 -13
- package/lib-build/shared/components/DamageType/styles.scss +0 -50
- package/lib-build/shared/components/DischargeHeatmap/DischargeHeatmap.js +0 -218
- package/lib-build/shared/components/DischargeHeatmap/index.js +0 -13
- package/lib-build/shared/components/DischargeHeatmap/styles.scss +0 -17
- package/lib-build/shared/components/ErrorBoundary.js +0 -72
- package/lib-build/shared/components/Events/Events.js +0 -240
- package/lib-build/shared/components/Events/index.js +0 -13
- package/lib-build/shared/components/Events/styles.scss +0 -131
- package/lib-build/shared/components/Graph/Graph.js +0 -213
- package/lib-build/shared/components/Graph/index.js +0 -13
- package/lib-build/shared/components/KandoModal/KandoModal.js +0 -118
- package/lib-build/shared/components/KandoModal/index.js +0 -13
- package/lib-build/shared/components/KandoModal/styles.scss +0 -19
- package/lib-build/shared/components/KandoNavbar/KandoNavbar.js +0 -290
- package/lib-build/shared/components/KandoNavbar/NavbarStyle.scss +0 -238
- package/lib-build/shared/components/KandoNavbar/index.js +0 -13
- package/lib-build/shared/components/LiveEvents/CarouselSlide.js +0 -62
- package/lib-build/shared/components/LiveEvents/LiveEvents.js +0 -58
- package/lib-build/shared/components/LiveEvents/index.js +0 -13
- package/lib-build/shared/components/LiveEvents/styles.scss +0 -80
- package/lib-build/shared/components/Map/Map.js +0 -90
- package/lib-build/shared/components/Map/index.js +0 -13
- package/lib-build/shared/components/Map/styles.scss +0 -7
- package/lib-build/shared/components/NarrowHeader.js +0 -57
- package/lib-build/shared/components/PointInfo/PointInfo.js +0 -83
- package/lib-build/shared/components/PointInfo/index.js +0 -13
- package/lib-build/shared/components/PointInfo/styles.scss +0 -48
- package/lib-build/shared/components/Search/Search.js +0 -159
- package/lib-build/shared/components/Search/index.js +0 -13
- package/lib-build/shared/components/Search/styles.scss +0 -27
- package/lib-build/shared/components/Sector/Sector.js +0 -176
- package/lib-build/shared/components/Sector/index.js +0 -13
- package/lib-build/shared/components/Sector/styles.scss +0 -14
- package/lib-build/shared/components/Sector/svgs/Brewing.svg +0 -93
- package/lib-build/shared/components/Sector/svgs/Cowshed.svg +0 -23
- package/lib-build/shared/components/Sector/svgs/Garage.svg +0 -24
- package/lib-build/shared/components/Sector/svgs/Missing.svg +0 -36
- package/lib-build/shared/components/Sector/svgs/barrel.svg +0 -93
- package/lib-build/shared/components/Sector/svgs/beer.svg +0 -13
- package/lib-build/shared/components/Sector/svgs/beverage.svg +0 -13
- package/lib-build/shared/components/Sector/svgs/car-repair.svg +0 -24
- package/lib-build/shared/components/Sector/svgs/car-wash.svg +0 -36
- package/lib-build/shared/components/Sector/svgs/chemistry.svg +0 -30
- package/lib-build/shared/components/Sector/svgs/conductor-manufacturer.svg +0 -17
- package/lib-build/shared/components/Sector/svgs/cosmetic-manufacturer.svg +0 -23
- package/lib-build/shared/components/Sector/svgs/cow.svg +0 -23
- package/lib-build/shared/components/Sector/svgs/cpu.svg +0 -17
- package/lib-build/shared/components/Sector/svgs/dairy.svg +0 -18
- package/lib-build/shared/components/Sector/svgs/dippel-oil.svg +0 -17
- package/lib-build/shared/components/Sector/svgs/food-donation.svg +0 -29
- package/lib-build/shared/components/Sector/svgs/food-factory.svg +0 -17
- package/lib-build/shared/components/Sector/svgs/garbage-truck-1.svg +0 -34
- package/lib-build/shared/components/Sector/svgs/gas-station.svg +0 -26
- package/lib-build/shared/components/Sector/svgs/glass-manufacturer.svg +0 -21
- package/lib-build/shared/components/Sector/svgs/glass.svg +0 -21
- package/lib-build/shared/components/Sector/svgs/hand-washing.svg +0 -17
- package/lib-build/shared/components/Sector/svgs/hospital.svg +0 -28
- package/lib-build/shared/components/Sector/svgs/hotel.svg +0 -24
- package/lib-build/shared/components/Sector/svgs/laundromat.svg +0 -26
- package/lib-build/shared/components/Sector/svgs/leather-factory.svg +0 -23
- package/lib-build/shared/components/Sector/svgs/leather.svg +0 -23
- package/lib-build/shared/components/Sector/svgs/lipstick.svg +0 -23
- package/lib-build/shared/components/Sector/svgs/meat.svg +0 -24
- package/lib-build/shared/components/Sector/svgs/metal-coating-plant.svg +0 -21
- package/lib-build/shared/components/Sector/svgs/metal-facbrication.svg +0 -20
- package/lib-build/shared/components/Sector/svgs/milk.svg +0 -18
- package/lib-build/shared/components/Sector/svgs/oil-rig.svg +0 -17
- package/lib-build/shared/components/Sector/svgs/petrochemical.svg +0 -13
- package/lib-build/shared/components/Sector/svgs/pie.svg +0 -17
- package/lib-build/shared/components/Sector/svgs/pills.svg +0 -22
- package/lib-build/shared/components/Sector/svgs/plant-unkown-3.svg +0 -36
- package/lib-build/shared/components/Sector/svgs/plastic-rubber.svg +0 -43
- package/lib-build/shared/components/Sector/svgs/printer.svg +0 -17
- package/lib-build/shared/components/Sector/svgs/recycling.svg +0 -17
- package/lib-build/shared/components/Sector/svgs/refinery.svg +0 -18
- package/lib-build/shared/components/Sector/svgs/repair.svg +0 -13
- package/lib-build/shared/components/Sector/svgs/sewing-machine.svg +0 -22
- package/lib-build/shared/components/Sector/svgs/shop.svg +0 -24
- package/lib-build/shared/components/Sector/svgs/soda.svg +0 -13
- package/lib-build/shared/components/Sector/svgs/spray-gun.svg +0 -21
- package/lib-build/shared/components/Sector/svgs/washing-machine.svg +0 -26
- package/lib-build/shared/components/Sector/svgs/waste.svg +0 -43
- package/lib-build/shared/components/Sector/svgs/welder-a.svg +0 -20
- package/lib-build/shared/components/Sector/svgs/wine-glass.svg +0 -15
- package/lib-build/shared/components/Toggle/Toggle.js +0 -62
- package/lib-build/shared/components/Toggle/index.js +0 -13
- package/lib-build/shared/components/Toggle/styles.scss +0 -44
- package/lib-build/shared/components/TrendGraph/TrendGraph.js +0 -217
- package/lib-build/shared/components/TrendGraph/index.js +0 -13
- package/lib-build/shared/components/TrendGraph/styles.scss +0 -2
- package/lib-build/shared/components/TrendGraphNVL/TrendGraphNVL.js +0 -167
- package/lib-build/shared/components/TrendGraphNVL/index.js +0 -13
- package/lib-build/shared/components/TrendGraphNVL/styles.scss +0 -16
- package/lib-build/shared/helpers/kql.js +0 -51
- package/lib-build/shared/helpers/time.js +0 -21
- package/lib-build/shared/models/IAction.js +0 -1
- package/lib-build/shared/models/IAppState.js +0 -5
- package/lib-build/shared/redux/WBE/actionTypes.js +0 -8
- package/lib-build/shared/redux/WBE/actions.js +0 -15
- package/lib-build/shared/redux/WBE/models/IAreaWBE.js +0 -5
- package/lib-build/shared/redux/WBE/models/IWBE.js +0 -5
- package/lib-build/shared/redux/WBE/models/IWBEState.js +0 -5
- package/lib-build/shared/redux/WBE/reducer.js +0 -40
- package/lib-build/shared/redux/areas/actionTypes.js +0 -12
- package/lib-build/shared/redux/areas/actions.js +0 -40
- package/lib-build/shared/redux/areas/models/IArea.js +0 -5
- package/lib-build/shared/redux/areas/models/IAreasState.js +0 -5
- package/lib-build/shared/redux/areas/reducer.js +0 -56
- package/lib-build/shared/redux/context/actionTypes.js +0 -8
- package/lib-build/shared/redux/context/actions.js +0 -15
- package/lib-build/shared/redux/context/models/INavContext.js +0 -5
- package/lib-build/shared/redux/context/models/INavContextState.js +0 -5
- package/lib-build/shared/redux/context/reducer.js +0 -40
- package/lib-build/shared/redux/edges/actionTypes.js +0 -14
- package/lib-build/shared/redux/edges/actions.js +0 -48
- package/lib-build/shared/redux/edges/models/IEdge.js +0 -5
- package/lib-build/shared/redux/edges/models/IEdgesState.js +0 -5
- package/lib-build/shared/redux/edges/reducer.js +0 -79
- package/lib-build/shared/redux/events/actionTypes.js +0 -28
- package/lib-build/shared/redux/events/actions.js +0 -112
- package/lib-build/shared/redux/events/models/IEvent.js +0 -5
- package/lib-build/shared/redux/events/models/IEventsState.js +0 -5
- package/lib-build/shared/redux/events/models/ISource.js +0 -5
- package/lib-build/shared/redux/events/reducer.js +0 -196
- package/lib-build/shared/redux/filters/IFilter.js +0 -5
- package/lib-build/shared/redux/filters/IFilterItem.js +0 -5
- package/lib-build/shared/redux/global/actionTypes.js +0 -24
- package/lib-build/shared/redux/global/actions.js +0 -91
- package/lib-build/shared/redux/global/models/IGlobalState.js +0 -5
- package/lib-build/shared/redux/global/reducer.js +0 -92
- package/lib-build/shared/redux/points/actionTypes.js +0 -10
- package/lib-build/shared/redux/points/actions.js +0 -32
- package/lib-build/shared/redux/points/models/IGroup.js +0 -5
- package/lib-build/shared/redux/points/models/IPoint.js +0 -5
- package/lib-build/shared/redux/points/models/IPointsState.js +0 -5
- package/lib-build/shared/redux/points/reducer.js +0 -37
- package/lib-build/shared/redux/rootActionTypes.js +0 -8
- package/lib-build/shared/redux/rootActions.js +0 -14
- package/lib-build/shared/redux/rootReducer.js +0 -55
- package/lib-build/shared/redux/rootStore.js +0 -40
- package/lib-build/shared/utilities/ActionUtility.js +0 -17
- package/lib-build/shared/utilities/ErrorBoundary.js +0 -76
- package/lib-build/shared/utilities/KandoDate.js +0 -29
- package/lib-build/shared/utilities/KandoModal.js +0 -65
- package/lib-build/shared/utilities/LocalStorage.js +0 -48
- package/lib-build/shared/utilities/TimeFormat.js +0 -70
- package/lib-build/shared/utilities/Truncate.js +0 -81
- package/lib-build/shared/utilities/custom_hooks/useClickOutside.js +0 -26
- package/lib-build/shared/utilities/custom_hooks/useKandoFetch.js +0 -82
- package/lib-build/shared/utilities/custom_hooks/useQueryURL.js +0 -15
- package/lib-build/shared/utilities/custom_hooks/useRemoveExistingLayers.js +0 -34
- package/lib-build/shared/utilities/custom_hooks/useUpdateEventBodyTail.js +0 -62
- package/lib-build/shared/utilities/i18n.js +0 -33
|
@@ -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,152 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.default = void 0;
|
|
11
|
-
|
|
12
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
|
-
|
|
14
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
-
|
|
16
|
-
var _reactRedux = require("react-redux");
|
|
17
|
-
|
|
18
|
-
var _momentTimezone = _interopRequireDefault(require("moment-timezone"));
|
|
19
|
-
|
|
20
|
-
var _actions = require("../../../../../shared/redux/global/actions");
|
|
21
|
-
|
|
22
|
-
var _reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
23
|
-
|
|
24
|
-
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
25
|
-
|
|
26
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
-
|
|
28
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
-
|
|
30
|
-
function mapStateToProps(state) {
|
|
31
|
-
var events_data = state.events_data,
|
|
32
|
-
edges_data = state.edges_data,
|
|
33
|
-
global_data = state.global_data;
|
|
34
|
-
return {
|
|
35
|
-
events_data: events_data,
|
|
36
|
-
edges_data: edges_data,
|
|
37
|
-
global_data: global_data
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
var EventTimeRange = function EventTimeRange(props) {
|
|
42
|
-
var focusedEvent = props.events_data.focusedEvent;
|
|
43
|
-
var global_data = props.global_data;
|
|
44
|
-
var dispatch = (0, _reactRedux.useDispatch)();
|
|
45
|
-
|
|
46
|
-
var _useState = (0, _react.useState)(false),
|
|
47
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
48
|
-
expanded = _useState2[0],
|
|
49
|
-
setExpanded = _useState2[1];
|
|
50
|
-
|
|
51
|
-
var toggleExpansion = function toggleExpansion() {
|
|
52
|
-
setExpanded(!expanded);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
var startTimeOrZero = function startTimeOrZero() {
|
|
56
|
-
return focusedEvent === null ? 0 : focusedEvent.start_time;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
var lastSeenObservation = function lastSeenObservation() {
|
|
60
|
-
if (focusedEvent === null) {
|
|
61
|
-
return null;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return focusedEvent.observations.sort(function (obs1, obs2) {
|
|
65
|
-
return obs1.last_seen_time - obs2.last_seen_time;
|
|
66
|
-
}).slice(-1)[0];
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
var endTime = function endTime() {
|
|
70
|
-
if (focusedEvent !== null && focusedEvent.end_time !== null) {
|
|
71
|
-
return focusedEvent.end_time + 300;
|
|
72
|
-
} else {
|
|
73
|
-
if (focusedEvent !== null) {
|
|
74
|
-
var lastSeenObs = lastSeenObservation();
|
|
75
|
-
var observationId = lastSeenObs.id;
|
|
76
|
-
var path = focusedEvent.path.filter(function (path) {
|
|
77
|
-
return path.last_observation_id === observationId;
|
|
78
|
-
})[0];
|
|
79
|
-
|
|
80
|
-
if (path !== undefined) {
|
|
81
|
-
var edge = props.edges_data.items.filter(function (edge) {
|
|
82
|
-
return edge.id === path.edge_id;
|
|
83
|
-
})[0];
|
|
84
|
-
|
|
85
|
-
if (edge !== undefined) {
|
|
86
|
-
// if distance to next point is greater than 2 hours (7200) the top limit should be this value (+ 10 minutes)
|
|
87
|
-
var limitTime = lastSeenObs.last_seen_time + Math.max(7200, edge.distance * 60 + 10 * 60
|
|
88
|
-
/*10 minutes*/
|
|
89
|
-
);
|
|
90
|
-
return Math.min(limitTime, Date.now() / 1000);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
return Date.now() / 1000;
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
var _useState3 = (0, _react.useState)(startTimeOrZero()),
|
|
100
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
101
|
-
time = _useState4[0],
|
|
102
|
-
setTime = _useState4[1];
|
|
103
|
-
|
|
104
|
-
var stepIntervalInSeconds = function stepIntervalInSeconds() {
|
|
105
|
-
return 300; // 5 minutes
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
var refreshCurrentTimeIntervalInMs = 5 * 60 * 1000; // 5 minutes
|
|
109
|
-
|
|
110
|
-
var handleChange = function handleChange(e) {
|
|
111
|
-
setTime(e.target.value);
|
|
112
|
-
dispatch((0, _actions.setCurrentTime)(time));
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
(0, _react.useEffect)(function () {
|
|
116
|
-
setTime(Date.now() / 1000 | 0);
|
|
117
|
-
dispatch((0, _actions.setCurrentTime)(Date.now() / 1000 | 0));
|
|
118
|
-
var intervalID = setInterval(function () {
|
|
119
|
-
dispatch((0, _actions.setCurrentTime)(Date.now() / 1000 | 0));
|
|
120
|
-
}, refreshCurrentTimeIntervalInMs);
|
|
121
|
-
return function cleanup() {
|
|
122
|
-
clearInterval(intervalID);
|
|
123
|
-
};
|
|
124
|
-
}, []);
|
|
125
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
126
|
-
className: "timerange ".concat(expanded ? 'timerange--expanded' : '')
|
|
127
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
128
|
-
className: "clock-icon",
|
|
129
|
-
onClick: function onClick() {
|
|
130
|
-
return toggleExpansion();
|
|
131
|
-
}
|
|
132
|
-
}, /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
|
|
133
|
-
icon: _freeSolidSvgIcons.faClock
|
|
134
|
-
})), focusedEvent !== null && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", {
|
|
135
|
-
className: 'time'
|
|
136
|
-
}, _momentTimezone.default.unix(global_data.current_time).tz(focusedEvent.observations[0].time_zone).format("DD/MM/YYYY | HH:mm:ss")), /*#__PURE__*/_react.default.createElement("input", {
|
|
137
|
-
type: "range",
|
|
138
|
-
step: stepIntervalInSeconds(),
|
|
139
|
-
min: startTimeOrZero() - 600,
|
|
140
|
-
max: endTime(),
|
|
141
|
-
value: global_data.current_time,
|
|
142
|
-
onChange: handleChange,
|
|
143
|
-
className: "slider",
|
|
144
|
-
id: "eventTimeRange"
|
|
145
|
-
})));
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
var connector = (0, _reactRedux.connect)(mapStateToProps);
|
|
149
|
-
|
|
150
|
-
var _default = connector(EventTimeRange);
|
|
151
|
-
|
|
152
|
-
exports.default = _default;
|
|
@@ -1,44 +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.default = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
var _i18n = _interopRequireDefault(require("../../../../../shared/utilities/i18n"));
|
|
13
|
-
|
|
14
|
-
var _EventDetailsPieChart = _interopRequireDefault(require("./charts/EventDetailsPieChart"));
|
|
15
|
-
|
|
16
|
-
var _EventDetailsLineChart = _interopRequireDefault(require("./charts/EventDetailsLineChart"));
|
|
17
|
-
|
|
18
|
-
var _DischargeHeatmap = _interopRequireDefault(require("../../../../../shared/components/DischargeHeatmap"));
|
|
19
|
-
|
|
20
|
-
var HistoricalInformation = function HistoricalInformation(props) {
|
|
21
|
-
var selectedSource = props.additionalData.selectedSource;
|
|
22
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
23
|
-
className: "event-info__graphs event-info__card"
|
|
24
|
-
}, /*#__PURE__*/_react.default.createElement("h6", null, _i18n.default.t("events_overview.historical_information"), ": ", props.additionalData.sourceName), selectedSource !== null && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("p", {
|
|
25
|
-
className: "graph-title"
|
|
26
|
-
}, /*#__PURE__*/_react.default.createElement("b", null, _i18n.default.t("events_overview.discharge_effluent_quality"))), /*#__PURE__*/_react.default.createElement("div", {
|
|
27
|
-
className: "event-info__graphs__pie"
|
|
28
|
-
}, /*#__PURE__*/_react.default.createElement(_EventDetailsPieChart.default, {
|
|
29
|
-
pointId: selectedSource
|
|
30
|
-
})), /*#__PURE__*/_react.default.createElement("p", {
|
|
31
|
-
className: "graph-title"
|
|
32
|
-
}, /*#__PURE__*/_react.default.createElement("b", null, _i18n.default.t("events_overview.discharge_pattern_overtime"))), selectedSource && /*#__PURE__*/_react.default.createElement(_DischargeHeatmap.default, {
|
|
33
|
-
pointId: selectedSource,
|
|
34
|
-
periodDays: 30,
|
|
35
|
-
isShowingTitles: false
|
|
36
|
-
}), /*#__PURE__*/_react.default.createElement("p", {
|
|
37
|
-
className: "graph-title graph-title--trend-graph"
|
|
38
|
-
}, /*#__PURE__*/_react.default.createElement("b", null, _i18n.default.t("events_overview.metascore"))), /*#__PURE__*/_react.default.createElement(_EventDetailsLineChart.default, {
|
|
39
|
-
pointId: selectedSource
|
|
40
|
-
})), selectedSource === null && /*#__PURE__*/_react.default.createElement("p", null, "No source is selected"));
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
var _default = HistoricalInformation;
|
|
44
|
-
exports.default = _default;
|