@kando-env/kando-ui 1.0.6 → 1.0.9
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/CovidView/views/components/Body.js +2 -2
- package/lib/CovidView/views/components/Map.js +3 -2
- package/lib/CovidView/views/components/TrendPopupContent/TrendPopupContent.js +10 -10
- package/lib/CovidView/views/components/areas/AreaPolygonWBE.js +7 -7
- package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/ParametersContainer/ParametersButtons/styles.js +4 -4
- package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/ParametersContainer/ParametersContainer.js +1 -1
- package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/SamplingContainer/ExceptionBar/styles.js +4 -4
- package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/SamplingContainer/SamplingContainer.js +1 -1
- package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/SamplingParameters.js +3 -3
- package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/charts/options/options.js +25 -4
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Areas/AreaBox/AreaBox.js +6 -6
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Areas/AreaBox/styles.js +1 -1
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Areas/Areas.js +40 -45
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Areas/styles.js +3 -3
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Factories/Factories.js +40 -45
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Factories/FactoryBox/FactoryBox.js +5 -4
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Factories/FactoryBox/styles.js +1 -1
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Factories/styles.js +2 -2
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/MostPolluting.js +7 -13
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/ShowMore/styles.js +1 -1
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Tabs/Tabs.js +17 -32
- package/lib/{EventsView/views/components/UtilityDashboard/TopBar → DashboardV2/UtilityDashboard/MostPolluting}/models.js +3 -1
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/styles.js +2 -2
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostSevereEvents/MostSevereEvents.js +1 -1
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostSevereEvents/MostSevereEvents.scss +5 -5
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/TopBar/MostCommon/Back/Back.js +1 -1
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/TopBar/MostCommon/MostCommon.js +1 -1
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/TopBar/MostCommon/styles.js +11 -11
- package/lib/DashboardV2/UtilityDashboard/TopBar/QualitySummary/PieChart/PieChart.js +128 -0
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/TopBar/QualitySummary/PollutedLine/PollutedLine.js +3 -3
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/TopBar/QualitySummary/QualitySummary.js +15 -4
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/TopBar/QualitySummary/styles.js +8 -8
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/TopBar/TopBar.js +3 -3
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/TopBar/UtilityInformation/UtilityInformation.js +2 -2
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/TopBar/UtilityInformation/styles.js +6 -6
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/TopBar/styles.js +1 -1
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/UtilityDashboard.js +1 -1
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/UtilityDashboard.stories.js +62 -1
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/mocks/areas.mock.js +9 -33
- package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/mocks/factories.mock.js +4 -16
- package/lib/EventsView/views/components/Body.js +55 -29
- package/lib/EventsView/views/components/map/FloatingGraph.js +2 -2
- package/lib/EventsView/views/components/map/Map.js +12 -7
- package/lib/EventsView/views/components/points/PointMarker.js +15 -15
- package/lib/index.js +67 -3
- package/lib/shared/components/DoubleTabs/styles.js +1 -1
- package/lib/shared/components/KandoModal/KandoModal.js +2 -2
- package/lib/shared/components/Map/Map.js +4 -1
- package/lib/shared/components/Select/Select.js +48 -6
- package/lib/shared/components/Select/Select.scss +5 -14
- package/lib/shared/components/Select/Select.stories.js +4 -1
- package/package.json +9 -8
- package/lib/EventsView/views/components/UtilityDashboard/TopBar/QualitySummary/PieChart/PieChart.js +0 -117
- /package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/NoResults/NoResults.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/NoResults/NoResults.stories.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/NoResults/discover.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/ParametersContainer/ParametersButtons/ParameterButton/ParameterButton.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/ParametersContainer/ParametersButtons/ParametersButtons.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/SamplingContainer/ExceptionBar/ExceptionBar.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/SamplingContainer/ExceptionBar/ExceptionBar.stories.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/SamplingContainer/ExpandableSamplingTable/ExpandableSamplingTable.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/SamplingContainer/ExpandableSamplingTable/ExpandableSamplingTable.scss +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/SamplingContainer/ExpandableSamplingTable/assets/rigth.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/SamplingParameters.mock.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/SamplingParameters.stories.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/charts/ParametersChart.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/charts/SamplingChart.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/dataParser.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/models.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/styles/samplingParameters.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/SamplingParameters/styles/styles.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Areas/AreaBox/AreaMap/AreaMap.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Areas/AreaBox/PieChart/PieChart.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Factories/FactoryBox/PieChart/PieChart.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/MostPolluting.stories.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/ShowMore/ShowMore.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Tabs/Tabs.stories.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Tabs/assets/home.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Tabs/assets/index.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Tabs/assets/matash.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Tabs/assets/plant.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Tabs/assets/shape.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Tabs/assets/water.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/assets/down-arrow.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/assets/gas.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/assets/index.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/assets/leather.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/assets/metal.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/assets/shop.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/assets/show-more.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostSevereEvents/MostSevereEvents.stories.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostSevereEvents/NoEvents/NoEvents.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostSevereEvents/NoEvents/NoEvents.stories.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostSevereEvents/NoEvents/discover.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostSevereEvents/SevereEvent/SevereEvent.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostSevereEvents/SevereEvent/SevereEvent.scss +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostSevereEvents/SevereEvent/assets/info.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostSevereEvents/SevereEvent/assets/pipe-bluckages.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostSevereEvents/SevereEvent/assets/pipe.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostSevereEvents/SevereEvent/assets/sludge.svg +0 -0
- /package/lib/{EventsView/views/components/UtilityDashboard/MostPolluting → DashboardV2/UtilityDashboard/MostSevereEvents}/models.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/TopBar/MostCommon/assets/arrow.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/TopBar/MostCommon/assets/bacteria.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/TopBar/MostCommon/assets/clock.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/TopBar/MostCommon/assets/pipes.svg +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/TopBar/QualitySummary/assets/down-arrow.svg +0 -0
- /package/lib/{EventsView/views/components/UtilityDashboard/MostSevereEvents → DashboardV2/UtilityDashboard/TopBar}/models.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/mocks/events.mock.js +0 -0
- /package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/mocks/index.js +0 -0
|
@@ -18,8 +18,9 @@ var _styles = require("./styles");
|
|
|
18
18
|
var FactoryBox = function FactoryBox(_ref) {
|
|
19
19
|
var factory = _ref.factory,
|
|
20
20
|
others = _ref.others;
|
|
21
|
+
var up = factory.percent >= 0;
|
|
21
22
|
return /*#__PURE__*/_react.default.createElement(_styles.Box, {
|
|
22
|
-
up:
|
|
23
|
+
up: up
|
|
23
24
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
24
25
|
className: "top",
|
|
25
26
|
"data-text": factory.title
|
|
@@ -47,12 +48,12 @@ var FactoryBox = function FactoryBox(_ref) {
|
|
|
47
48
|
className: "percent"
|
|
48
49
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
49
50
|
className: "number"
|
|
50
|
-
}, factory.percent, "% "), /*#__PURE__*/_react.default.createElement(_assets.Arrow, {
|
|
51
|
-
fill:
|
|
51
|
+
}, Math.abs(factory.percent), "% "), /*#__PURE__*/_react.default.createElement(_assets.Arrow, {
|
|
52
|
+
fill: up ? '#1db232' : '#f6004f',
|
|
52
53
|
height: "10px",
|
|
53
54
|
width: "11px",
|
|
54
55
|
css: "\n vertical-align: middle;\n "
|
|
55
|
-
}), ' ', /*#__PURE__*/_react.default.createElement("br", null),
|
|
56
|
+
}), ' ', /*#__PURE__*/_react.default.createElement("br", null), up ? 'Improvement' : 'Decline')), /*#__PURE__*/_react.default.createElement("div", {
|
|
56
57
|
className: "chart"
|
|
57
58
|
}, /*#__PURE__*/_react.default.createElement(_PieChart.PieChart, {
|
|
58
59
|
quality: factory.quality
|
|
@@ -11,7 +11,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
11
11
|
|
|
12
12
|
var Box = _styledComponents.default.div.withConfig({
|
|
13
13
|
displayName: "styles__Box",
|
|
14
|
-
componentId: "sc-
|
|
14
|
+
componentId: "sc-12je11y-0"
|
|
15
15
|
})(["border:solid 1px #ebebeb;width:100%;height:100%;color:#1d1d1d;> .top{height:38px;padding:11px 19px;background-color:#f9f9f9;display:flex;justify-content:space-between;position:relative;> .title{font-size:18px;font-weight:600;line-height:1.22;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:50%;height:38px;position:relative;}> .area{font-size:14px;font-weight:300;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:50%;text-align:right;height:38px;}}> .content{display:flex;justify-content:space-between;padding:20px;height:calc(100% - 38px);> .details{position:relative;&::after{content:'';position:absolute;width:29px;top:50%;left:0;transform:translateY(-50%);border-bottom:1px solid #ebebeb;}flex:4;display:flex;flex-direction:column;justify-content:space-between;> .percent{align-items:center;font-size:14px;> .number{font-size:24px;font-weight:700;}> svg{vertical-align:baseline;transform:rotate(", ");}color:", ";}> .sector{font-size:14px;display:flex;align-items:center;> .image{margin-right:6px;}> .text{> .title{font-weight:300;margin:0;}> .sector-type{font-weight:700;}}}}> .chart{flex:2;height:100%;position:relative;}@media (max-width:500px){> .details{flex:2;> .percent{font-size:12px;> .number{font-size:18px;}}> .sector{font-size:12px;}}}}"], function (_ref) {
|
|
16
16
|
var up = _ref.up;
|
|
17
17
|
return up ? '180deg' : '0';
|
|
@@ -11,14 +11,14 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
11
11
|
|
|
12
12
|
var GridBoxContainer = _styledComponents.default.div.withConfig({
|
|
13
13
|
displayName: "styles__GridBoxContainer",
|
|
14
|
-
componentId: "sc-
|
|
14
|
+
componentId: "sc-1db17su-0"
|
|
15
15
|
})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));@media (max-width:500px){grid-template-columns:repeat(1,1fr);}grid-auto-rows:181px;grid-gap:20px;width:100%;height:100%;"]);
|
|
16
16
|
|
|
17
17
|
exports.GridBoxContainer = GridBoxContainer;
|
|
18
18
|
|
|
19
19
|
var Select = _styledComponents.default.select.withConfig({
|
|
20
20
|
displayName: "styles__Select",
|
|
21
|
-
componentId: "sc-
|
|
21
|
+
componentId: "sc-1db17su-1"
|
|
22
22
|
})(["font-size:18px;font-weight:700;font-stretch:normal;font-style:normal;line-height:1.22;letter-spacing:normal;text-align:right;color:#1d1d1d;border:none;margin-bottom:16px;outline-width:0;"]);
|
|
23
23
|
|
|
24
24
|
exports.Select = Select;
|
|
@@ -35,29 +35,23 @@ var MostPolluting = function MostPolluting(_ref) {
|
|
|
35
35
|
selectedTabIndex = _useState2[0],
|
|
36
36
|
setSelectedTabIndex = _useState2[1];
|
|
37
37
|
|
|
38
|
-
var options = [/*#__PURE__*/_react.default.createElement(
|
|
39
|
-
endPoint: "/areas"
|
|
40
|
-
}), /*#__PURE__*/_react.default.createElement(_Factories.Factories, {
|
|
41
|
-
endPoint: "/factories"
|
|
42
|
-
}), /*#__PURE__*/_react.default.createElement(_Factories.Factories, {
|
|
38
|
+
var options = [/*#__PURE__*/_react.default.createElement(_Factories.Factories, {
|
|
43
39
|
others: true,
|
|
44
40
|
title: "WWTPs",
|
|
45
41
|
endPoint: "/wwtp"
|
|
46
42
|
}),
|
|
47
43
|
/*#__PURE__*/
|
|
48
44
|
//'WWTPs',
|
|
49
|
-
_react.default.createElement(
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
endPoint: "/
|
|
53
|
-
}),
|
|
54
|
-
/*#__PURE__*/
|
|
55
|
-
// 'Pumping stations',
|
|
56
|
-
_react.default.createElement(_Factories.Factories, {
|
|
45
|
+
_react.default.createElement(_Areas.Areas, {
|
|
46
|
+
endPoint: "/areas"
|
|
47
|
+
}), /*#__PURE__*/_react.default.createElement(_Factories.Factories, {
|
|
48
|
+
endPoint: "/factories"
|
|
49
|
+
}), /*#__PURE__*/_react.default.createElement(_Factories.Factories, {
|
|
57
50
|
others: true,
|
|
58
51
|
title: "Collectors",
|
|
59
52
|
endPoint: "/collectors"
|
|
60
53
|
}) //'Collectors',
|
|
54
|
+
// <Factories others={true} title="Pumping stations" endPoint="/pumping" /> ,// 'Pumping stations',
|
|
61
55
|
];
|
|
62
56
|
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Tabs.Tabs, {
|
|
63
57
|
selected: selectedTabIndex,
|
|
@@ -11,7 +11,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
11
11
|
|
|
12
12
|
var Container = _styledComponents.default.div.withConfig({
|
|
13
13
|
displayName: "styles__Container",
|
|
14
|
-
componentId: "sc-
|
|
14
|
+
componentId: "sc-hg6hg5-0"
|
|
15
15
|
})(["padding-top:28px;text-align:center;cursor:pointer;font-size:14px;font-weight:300;> svg{vertical-align:middle;transform:rotate( ", " );}"], function (_ref) {
|
|
16
16
|
var showMore = _ref.showMore;
|
|
17
17
|
return showMore ? '180deg' : '0deg';
|
package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/Tabs/Tabs.js
RENAMED
|
@@ -17,12 +17,12 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
17
17
|
|
|
18
18
|
var Container = _styledComponents.default.div.withConfig({
|
|
19
19
|
displayName: "Tabs__Container",
|
|
20
|
-
componentId: "sc-
|
|
21
|
-
})(["display:grid;margin-bottom:17px;grid-auto-rows:38px;grid-template-columns:repeat(7,1fr);grid-gap:10px;@media (max-width:1450px){grid-template-columns:repeat(6,1fr);}@media (max-width:1224px){grid-template-columns:repeat(5,1fr);}@media (max-width:960px){grid-template-columns:repeat(
|
|
20
|
+
componentId: "sc-syuz9a-0"
|
|
21
|
+
})(["display:grid;margin-bottom:17px;grid-auto-rows:38px;grid-template-columns:repeat(7,1fr);grid-gap:10px;@media (max-width:1450px){grid-template-columns:repeat(6,1fr);}@media (max-width:1224px){grid-template-columns:repeat(5,1fr);}@media (max-width:960px){grid-template-columns:repeat(2,1fr);}"]);
|
|
22
22
|
|
|
23
23
|
var Tab = _styledComponents.default.div.withConfig({
|
|
24
24
|
displayName: "Tabs__Tab",
|
|
25
|
-
componentId: "sc-
|
|
25
|
+
componentId: "sc-syuz9a-1"
|
|
26
26
|
})(["height:38px;cursor:pointer;border:solid 1px #ebebeb;display:flex;justify-content:center;align-items:center;background-color:#fcfcfc;font-family:Gilroy;font-size:14px;@media (max-width:768px){font-size:10px;text-align:center;}font-weight:300;font-stretch:normal;font-style:normal;line-height:1.57;letter-spacing:0.35px;color:#1d1d1d;user-select:none;&.active{background-color:#ebebeb;font-weight:600;position:relative;&&::after{content:'';position:absolute;bottom:-5px;left:50%;transform:translateX(-50%);width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #ebebeb;}}"]);
|
|
27
27
|
|
|
28
28
|
var Tabs = function Tabs(_ref) {
|
|
@@ -35,46 +35,36 @@ var Tabs = function Tabs(_ref) {
|
|
|
35
35
|
onClick: function onClick() {
|
|
36
36
|
return _onClick(0);
|
|
37
37
|
}
|
|
38
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
38
|
+
}, /*#__PURE__*/_react.default.createElement(_StyledMatashSvg, {
|
|
39
39
|
width: "15px",
|
|
40
40
|
height: "15px"
|
|
41
|
-
}), "
|
|
41
|
+
}), "WWTPs"), /*#__PURE__*/_react.default.createElement(Tab, {
|
|
42
42
|
className: (0, _classnames.default)({
|
|
43
43
|
active: selected === 1
|
|
44
44
|
}),
|
|
45
45
|
onClick: function onClick() {
|
|
46
46
|
return _onClick(1);
|
|
47
47
|
}
|
|
48
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
48
|
+
}, /*#__PURE__*/_react.default.createElement(_StyledShapeSvg, {
|
|
49
49
|
width: "15px",
|
|
50
50
|
height: "15px"
|
|
51
|
-
}), "
|
|
51
|
+
}), "Areas"), /*#__PURE__*/_react.default.createElement(Tab, {
|
|
52
52
|
className: (0, _classnames.default)({
|
|
53
53
|
active: selected === 2
|
|
54
54
|
}),
|
|
55
55
|
onClick: function onClick() {
|
|
56
56
|
return _onClick(2);
|
|
57
57
|
}
|
|
58
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
58
|
+
}, /*#__PURE__*/_react.default.createElement(_StyledPlantSvg, {
|
|
59
59
|
width: "15px",
|
|
60
60
|
height: "15px"
|
|
61
|
-
}), "
|
|
61
|
+
}), "Factories"), /*#__PURE__*/_react.default.createElement(Tab, {
|
|
62
62
|
className: (0, _classnames.default)({
|
|
63
63
|
active: selected === 3
|
|
64
64
|
}),
|
|
65
65
|
onClick: function onClick() {
|
|
66
66
|
return _onClick(3);
|
|
67
67
|
}
|
|
68
|
-
}, /*#__PURE__*/_react.default.createElement(_StyledHomeSvg, {
|
|
69
|
-
width: "15px",
|
|
70
|
-
height: "15px"
|
|
71
|
-
}), "Pumping stations"), /*#__PURE__*/_react.default.createElement(Tab, {
|
|
72
|
-
className: (0, _classnames.default)({
|
|
73
|
-
active: selected === 4
|
|
74
|
-
}),
|
|
75
|
-
onClick: function onClick() {
|
|
76
|
-
return _onClick(4);
|
|
77
|
-
}
|
|
78
68
|
}, /*#__PURE__*/_react.default.createElement(_StyledWaterSvg, {
|
|
79
69
|
width: "15px",
|
|
80
70
|
height: "15px"
|
|
@@ -83,27 +73,22 @@ var Tabs = function Tabs(_ref) {
|
|
|
83
73
|
|
|
84
74
|
exports.Tabs = Tabs;
|
|
85
75
|
|
|
76
|
+
var _StyledMatashSvg = (0, _styledComponents.default)(_assets.MatashSvg).withConfig({
|
|
77
|
+
displayName: "Tabs___StyledMatashSvg",
|
|
78
|
+
componentId: "sc-syuz9a-2"
|
|
79
|
+
})(["margin-right:4px;"]);
|
|
80
|
+
|
|
86
81
|
var _StyledShapeSvg = (0, _styledComponents.default)(_assets.ShapeSvg).withConfig({
|
|
87
82
|
displayName: "Tabs___StyledShapeSvg",
|
|
88
|
-
componentId: "sc-
|
|
83
|
+
componentId: "sc-syuz9a-3"
|
|
89
84
|
})(["margin-right:4px;"]);
|
|
90
85
|
|
|
91
86
|
var _StyledPlantSvg = (0, _styledComponents.default)(_assets.PlantSvg).withConfig({
|
|
92
87
|
displayName: "Tabs___StyledPlantSvg",
|
|
93
|
-
componentId: "sc-
|
|
94
|
-
})(["margin-right:4px;"]);
|
|
95
|
-
|
|
96
|
-
var _StyledMatashSvg = (0, _styledComponents.default)(_assets.MatashSvg).withConfig({
|
|
97
|
-
displayName: "Tabs___StyledMatashSvg",
|
|
98
|
-
componentId: "sc-h45hsm-4"
|
|
99
|
-
})(["margin-right:4px;"]);
|
|
100
|
-
|
|
101
|
-
var _StyledHomeSvg = (0, _styledComponents.default)(_assets.HomeSvg).withConfig({
|
|
102
|
-
displayName: "Tabs___StyledHomeSvg",
|
|
103
|
-
componentId: "sc-h45hsm-5"
|
|
88
|
+
componentId: "sc-syuz9a-4"
|
|
104
89
|
})(["margin-right:4px;"]);
|
|
105
90
|
|
|
106
91
|
var _StyledWaterSvg = (0, _styledComponents.default)(_assets.WaterSvg).withConfig({
|
|
107
92
|
displayName: "Tabs___StyledWaterSvg",
|
|
108
|
-
componentId: "sc-
|
|
93
|
+
componentId: "sc-syuz9a-5"
|
|
109
94
|
})(["margin-right:4px;"]);
|
package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/MostPolluting/styles.js
RENAMED
|
@@ -11,14 +11,14 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
11
11
|
|
|
12
12
|
var Container = _styledComponents.default.div.withConfig({
|
|
13
13
|
displayName: "styles__Container",
|
|
14
|
-
componentId: "sc-
|
|
14
|
+
componentId: "sc-18ji95g-0"
|
|
15
15
|
})(["box-shadow:-0.9px -0.5px 5px 0 rgba(0,0,0,0.06);border:solid 1px #ebebeb;padding:39px 20px 28px 23px;min-height:300px;"]);
|
|
16
16
|
|
|
17
17
|
exports.Container = Container;
|
|
18
18
|
|
|
19
19
|
var SpinnerHolder = _styledComponents.default.div.withConfig({
|
|
20
20
|
displayName: "styles__SpinnerHolder",
|
|
21
|
-
componentId: "sc-
|
|
21
|
+
componentId: "sc-18ji95g-1"
|
|
22
22
|
})(["text-align:center;display:flex;justify-content:center;align-items:center;height:100%;"]);
|
|
23
23
|
|
|
24
24
|
exports.SpinnerHolder = SpinnerHolder;
|
|
@@ -19,7 +19,7 @@ require("./MostSevereEvents.scss");
|
|
|
19
19
|
|
|
20
20
|
var _SevereEvent = require("./SevereEvent/SevereEvent");
|
|
21
21
|
|
|
22
|
-
var _useApi3 = require("
|
|
22
|
+
var _useApi3 = require("../../../shared/utilities/custom_hooks/useApi");
|
|
23
23
|
|
|
24
24
|
var _NoEvents = _interopRequireDefault(require("./NoEvents/NoEvents"));
|
|
25
25
|
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
display: grid;
|
|
22
22
|
grid-template-columns: repeat(auto-fill, 446px);
|
|
23
23
|
grid-gap: 24px;
|
|
24
|
-
grid-
|
|
24
|
+
grid-template-rows: 315px;
|
|
25
25
|
@media (max-width: 446px) {
|
|
26
26
|
grid-template-columns: repeat(1, 1fr);
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
grid-auto-rows: 400px;
|
|
28
|
+
justify-content: center;
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
overflow: hidden;
|
|
31
|
+
height: 315px;
|
|
32
32
|
align-items: center;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -11,7 +11,7 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
|
|
14
|
-
var _LoaderByPercent = require("
|
|
14
|
+
var _LoaderByPercent = require("../../../../../shared/components/LoaderByPercent/LoaderByPercent");
|
|
15
15
|
|
|
16
16
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
17
17
|
|
|
@@ -13,7 +13,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
|
|
16
|
-
var _useWindowSize = require("
|
|
16
|
+
var _useWindowSize = require("../../../../shared/utilities/custom_hooks/useWindowSize");
|
|
17
17
|
|
|
18
18
|
var _bacteria = require("./assets/bacteria.svg");
|
|
19
19
|
|
package/lib/{EventsView/views/components → DashboardV2}/UtilityDashboard/TopBar/MostCommon/styles.js
RENAMED
|
@@ -19,49 +19,49 @@ var _styles = require("../styles");
|
|
|
19
19
|
|
|
20
20
|
var Container = _styledComponents.default.div.withConfig({
|
|
21
21
|
displayName: "styles__Container",
|
|
22
|
-
componentId: "sc-
|
|
23
|
-
})(["color:#1d1d1d;position:relative;@media (max-width:1200px){grid-area:common;}"]);
|
|
22
|
+
componentId: "sc-ulgqid-0"
|
|
23
|
+
})(["color:#1d1d1d;position:relative;user-select:none;@media (max-width:1200px){grid-area:common;}"]);
|
|
24
24
|
|
|
25
25
|
exports.Container = Container;
|
|
26
26
|
|
|
27
27
|
var ComingSoon = _styledComponents.default.div.withConfig({
|
|
28
28
|
displayName: "styles__ComingSoon",
|
|
29
|
-
componentId: "sc-
|
|
30
|
-
})(["position:absolute;left:1px;top:
|
|
29
|
+
componentId: "sc-ulgqid-1"
|
|
30
|
+
})(["position:absolute;left:1px;top:2px;width:calc(100% - 2px);height:calc(100% - 4px);display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:2;background-color:rgba(255,255,255,0.85);font-size:18px;font-weight:600;line-height:1.22;color:#1d1d1d;> svg{margin-bottom:15px;}"]);
|
|
31
31
|
|
|
32
32
|
exports.ComingSoon = ComingSoon;
|
|
33
33
|
|
|
34
34
|
var CardsHolder = _styledComponents.default.div.withConfig({
|
|
35
35
|
displayName: "styles__CardsHolder",
|
|
36
|
-
componentId: "sc-
|
|
36
|
+
componentId: "sc-ulgqid-2"
|
|
37
37
|
})(["box-shadow:-0.9px -0.5px 5px 0 rgba(0,0,0,0.06);border:solid 1px #ebebeb;display:flex;height:100%;"]);
|
|
38
38
|
|
|
39
39
|
exports.CardsHolder = CardsHolder;
|
|
40
40
|
|
|
41
41
|
var Content = _styledComponents.default.div.withConfig({
|
|
42
42
|
displayName: "styles__Content",
|
|
43
|
-
componentId: "sc-
|
|
44
|
-
})(["height:calc(100% - 37px);text-align:center;box-shadow:-0.9px -0.5px 5px 0 rgba(0,0,0,0.06);border:solid 1px #ebebeb;"]);
|
|
43
|
+
componentId: "sc-ulgqid-3"
|
|
44
|
+
})(["height:calc(100% - 37px);text-align:center;position:relative;box-shadow:-0.9px -0.5px 5px 0 rgba(0,0,0,0.06);border:solid 1px #ebebeb;"]);
|
|
45
45
|
|
|
46
46
|
exports.Content = Content;
|
|
47
47
|
|
|
48
48
|
var Cards = _styledComponents.default.div.withConfig({
|
|
49
49
|
displayName: "styles__Cards",
|
|
50
|
-
componentId: "sc-
|
|
50
|
+
componentId: "sc-ulgqid-4"
|
|
51
51
|
})(["padding:18px;display:grid;grid-template-columns:repeat(3,1fr);grid-gap:12px;height:80%;@media (min-width:1200px){@media (max-width:1450px){padding:10px;}}"]);
|
|
52
52
|
|
|
53
53
|
exports.Cards = Cards;
|
|
54
54
|
|
|
55
55
|
var Card = _styledComponents.default.div.withConfig({
|
|
56
56
|
displayName: "styles__Card",
|
|
57
|
-
componentId: "sc-
|
|
57
|
+
componentId: "sc-ulgqid-5"
|
|
58
58
|
})(["text-align:center;border:solid 1px #ebebeb;display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;position:relative;font-size:14px;font-weight:300;@media (max-width:1450px){font-size:11px;}&:hover{> .front{z-index:-1;opacity:0;}> .back{z-index:1;opacity:1;}}> .front{transition:opacity 1s ease-in-out;position:absolute;z-index:1;opacity:1;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;}> .back{transition:opacity 1.5s ease-in-out;position:absolute;z-index:-1;opacity:0;top:0;bottom:0;left:0;right:0;display:flex;justify-content:center;align-items:center;height:100%;}> .back,> .front{padding:10px 5px;@media (max-width:1600px){font-size:12px;@media (max-width:1250px){font-size:10px;}}}"]);
|
|
59
59
|
|
|
60
60
|
exports.Card = Card;
|
|
61
61
|
|
|
62
62
|
var ImageHolder = _styledComponents.default.div.withConfig({
|
|
63
63
|
displayName: "styles__ImageHolder",
|
|
64
|
-
componentId: "sc-
|
|
64
|
+
componentId: "sc-ulgqid-6"
|
|
65
65
|
})(["height:", "px;width:", "px;"], function (_ref) {
|
|
66
66
|
var height = _ref.height;
|
|
67
67
|
return height;
|
|
@@ -74,7 +74,7 @@ exports.ImageHolder = ImageHolder;
|
|
|
74
74
|
|
|
75
75
|
var ShowAll = _styledComponents.default.button.withConfig({
|
|
76
76
|
displayName: "styles__ShowAll",
|
|
77
|
-
componentId: "sc-
|
|
77
|
+
componentId: "sc-ulgqid-7"
|
|
78
78
|
})(["border:none;background:none;display:inline-flex;align-items:center;justify-content:center;font-weight:300;font-size:14px;@media (min-width:1200px){@media (max-width:1450px){font-size:12px;}}> span{width:8px;height:5px;margin-left:5px;}"]);
|
|
79
79
|
|
|
80
80
|
exports.ShowAll = ShowAll;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.PieChart = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _highcharts = _interopRequireDefault(require("highcharts"));
|
|
13
|
+
|
|
14
|
+
var _highchartsReactOfficial = _interopRequireDefault(require("highcharts-react-official"));
|
|
15
|
+
|
|
16
|
+
var _highchartsMore = _interopRequireDefault(require("highcharts/highcharts-more"));
|
|
17
|
+
|
|
18
|
+
var _useWindowSize2 = require("../../../../../shared/utilities/custom_hooks/useWindowSize");
|
|
19
|
+
|
|
20
|
+
(0, _highchartsMore.default)(_highcharts.default); // impo
|
|
21
|
+
|
|
22
|
+
var PieChart = function PieChart(_ref) {
|
|
23
|
+
var _ref$isUp = _ref.isUp,
|
|
24
|
+
isUp = _ref$isUp === void 0 ? false : _ref$isUp,
|
|
25
|
+
_ref$title = _ref.title,
|
|
26
|
+
title = _ref$title === void 0 ? "Clear" : _ref$title,
|
|
27
|
+
_ref$clearPercent = _ref.clearPercent,
|
|
28
|
+
clearPercent = _ref$clearPercent === void 0 ? "75" : _ref$clearPercent,
|
|
29
|
+
_ref$changePercent = _ref.changePercent,
|
|
30
|
+
changePercent = _ref$changePercent === void 0 ? '0.15' : _ref$changePercent;
|
|
31
|
+
|
|
32
|
+
var _useWindowSize = (0, _useWindowSize2.useWindowSize)(),
|
|
33
|
+
width = _useWindowSize.width;
|
|
34
|
+
|
|
35
|
+
var config = {
|
|
36
|
+
credits: {
|
|
37
|
+
enabled: false
|
|
38
|
+
},
|
|
39
|
+
tooltip: {
|
|
40
|
+
enabled: false
|
|
41
|
+
},
|
|
42
|
+
chart: {
|
|
43
|
+
type: 'pie',
|
|
44
|
+
margin: [0, 0, width && (width > 1250 || width < 576) ? 34 : 0, 0]
|
|
45
|
+
},
|
|
46
|
+
title: {
|
|
47
|
+
useHTML: true,
|
|
48
|
+
text: "<span style=\"font-size:20px;font-weight:700;\">".concat(clearPercent, "%</span> <span style=\"margin-bottom:10px;\"> ").concat(title, "</span> <span style=\"color:").concat(isUp ? '#1db232' : '#f6004f', ";font-size:14px\">").concat(downArrow(isUp), " ").concat(changePercent, "% </span>"),
|
|
49
|
+
align: 'center',
|
|
50
|
+
verticalAlign: 'middle',
|
|
51
|
+
y: width && (width > 768 || width < 576) ? 3 : 13,
|
|
52
|
+
style: {
|
|
53
|
+
fontSize: '14px',
|
|
54
|
+
display: 'flex',
|
|
55
|
+
alignItems: 'center',
|
|
56
|
+
paddingTop: '5px',
|
|
57
|
+
justifyContent: 'center',
|
|
58
|
+
flexDirection: 'column',
|
|
59
|
+
fontWeight: 300
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
plotOptions: {
|
|
63
|
+
series: {
|
|
64
|
+
enableMouseTracking: false,
|
|
65
|
+
states: {
|
|
66
|
+
hover: {
|
|
67
|
+
enabled: false
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
pie: {
|
|
72
|
+
cumulative: 0,
|
|
73
|
+
dataLabels: {
|
|
74
|
+
enabled: false
|
|
75
|
+
},
|
|
76
|
+
point: {
|
|
77
|
+
events: {
|
|
78
|
+
enabled: false,
|
|
79
|
+
legendItemClick: function legendItemClick() {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
showInLegend: width && (width > 1250 || width < 576) ? true : false,
|
|
85
|
+
colors: ['#1d1d1d', '#1db232']
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
legend: {
|
|
89
|
+
itemStyle: {
|
|
90
|
+
fontSize: '12px',
|
|
91
|
+
fontWeight: 300,
|
|
92
|
+
display: 'flex',
|
|
93
|
+
alignItems: 'center'
|
|
94
|
+
},
|
|
95
|
+
symbolHeight: 6,
|
|
96
|
+
symbolWidth: 6
|
|
97
|
+
},
|
|
98
|
+
series: [{
|
|
99
|
+
animation: false,
|
|
100
|
+
innerSize: '85%',
|
|
101
|
+
data: [{
|
|
102
|
+
name: 'Pollution',
|
|
103
|
+
y: 25,
|
|
104
|
+
legendIndex: 2
|
|
105
|
+
}, {
|
|
106
|
+
name: 'Clear',
|
|
107
|
+
y: 75,
|
|
108
|
+
legendIndex: 1
|
|
109
|
+
}]
|
|
110
|
+
}]
|
|
111
|
+
};
|
|
112
|
+
return /*#__PURE__*/_react.default.createElement(_highchartsReactOfficial.default, {
|
|
113
|
+
highcharts: _highcharts.default,
|
|
114
|
+
options: config,
|
|
115
|
+
containerProps: {
|
|
116
|
+
style: {
|
|
117
|
+
height: '100%',
|
|
118
|
+
width: '100%'
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
exports.PieChart = PieChart;
|
|
125
|
+
|
|
126
|
+
var downArrow = function downArrow(isUp) {
|
|
127
|
+
return " <svg width=\"10px\" height=\"10px\" fill=\"".concat(isUp ? '#1db232' : '#f6004f', "\" style=\"transform:rotate(").concat(isUp ? '180deg' : '0deg', ")\" version=\"1.1\" id=\"Capa_1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 512.171 512.171\" style=\"enable-background:new 0 0 512.171 512.171;\" xml:space=\"preserve\">\n<g>\n <g>\n <path d=\"M479.046,283.925c-1.664-3.989-5.547-6.592-9.856-6.592H352.305V10.667C352.305,4.779,347.526,0,341.638,0H170.971\n c-5.888,0-10.667,4.779-10.667,10.667v266.667H42.971c-4.309,0-8.192,2.603-9.856,6.571c-1.643,3.989-0.747,8.576,2.304,11.627\n l212.8,213.504c2.005,2.005,4.715,3.136,7.552,3.136s5.547-1.131,7.552-3.115l213.419-213.504\n C479.793,292.501,480.71,287.915,479.046,283.925z\" />\n </g>\n</g>\n<g></g>\n<g></g>\n<g></g>\n<g></g>\n<g></g>\n<g></g>\n<g></g>\n<g></g>\n<g></g>\n<g></g>\n<g></g>\n<g></g>\n<g></g>\n<g></g>\n<g></g>\n</svg>");
|
|
128
|
+
};
|
|
@@ -11,7 +11,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
|
|
14
|
-
var _LoaderByPercent = require("
|
|
14
|
+
var _LoaderByPercent = require("../../../../../shared/components/LoaderByPercent/LoaderByPercent");
|
|
15
15
|
|
|
16
16
|
var _downArrow = require("../assets/down-arrow.svg");
|
|
17
17
|
|
|
@@ -48,14 +48,14 @@ var PollutedLine = function PollutedLine(_ref) {
|
|
|
48
48
|
fill: up ? '#1db232' : '#f6004f',
|
|
49
49
|
height: "10px",
|
|
50
50
|
width: "9px"
|
|
51
|
-
}), upPercent, "%"));
|
|
51
|
+
}), Math.abs(upPercent), "%"));
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
exports.PollutedLine = PollutedLine;
|
|
55
55
|
|
|
56
56
|
var Container = _styledComponents.default.div.withConfig({
|
|
57
57
|
displayName: "PollutedLine__Container",
|
|
58
|
-
componentId: "sc-
|
|
58
|
+
componentId: "sc-167do79-0"
|
|
59
59
|
})(["display:flex;align-items:center;height:100%;width:100%;> .title-holder{width:100px;font-size:14px;display:flex;align-items:center;> .circle{height:7px;width:7px;background-color:", ";border-radius:50%;margin-right:5px;}}> .percent-value{font-size:16px;font-weight:600;width:5%;}> .graph-holder{width:calc(95% - 100px - 45px);height:8px;margin:0 13px;}> .up-down{display:flex;width:40px;color:", ";align-items:center;font-size:14px;font-weight:300;> svg{margin-right:2px;transform:rotate(", ");}}@media (min-width:1200px) and (max-width:1450px){> .title-holder{width:80px;font-size:12px;}> .percent-value{font-size:14px;}> .graph-holder{width:calc(95% - 80px - 45px);}> .up-down{width:35px;font-size:11px;}}"], function (_ref2) {
|
|
60
60
|
var color = _ref2.color;
|
|
61
61
|
return color;
|
|
@@ -24,15 +24,26 @@ var QualitySummary = function QualitySummary(_ref) {
|
|
|
24
24
|
total = _summary$polluted.total;
|
|
25
25
|
return /*#__PURE__*/_react.default.createElement(_styles.Container, null, /*#__PURE__*/_react.default.createElement(_styles.Title, null, "Quality Summary"), /*#__PURE__*/_react.default.createElement(_styles.Content, null, /*#__PURE__*/_react.default.createElement(_styles.CardsHolder, {
|
|
26
26
|
className: "first"
|
|
27
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
27
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
28
|
+
className: "triangle-holder"
|
|
29
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
30
|
+
className: "triangle"
|
|
31
|
+
})), /*#__PURE__*/_react.default.createElement(_PieChart.PieChart, {
|
|
32
|
+
title: "Clear",
|
|
33
|
+
isUp: summary.clear.increasePercent >= 0,
|
|
34
|
+
clearPercent: summary.clear.percent,
|
|
35
|
+
changePercent: Math.abs(summary.clear.increasePercent)
|
|
36
|
+
})), /*#__PURE__*/_react.default.createElement(_styles.CardsHolder, {
|
|
28
37
|
className: "second"
|
|
29
38
|
}, /*#__PURE__*/_react.default.createElement(_styles.PercentLineBarsHolder, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
39
|
+
className: "title"
|
|
40
|
+
}, "Pollution Breakdown"), /*#__PURE__*/_react.default.createElement("div", {
|
|
30
41
|
className: "loader-holder"
|
|
31
42
|
}, /*#__PURE__*/_react.default.createElement(_PollutedLine.PollutedLine, {
|
|
32
43
|
color: "#f6004f",
|
|
33
44
|
title: "Extreme",
|
|
34
45
|
percent: extreme.percent,
|
|
35
|
-
up: extreme.
|
|
46
|
+
up: extreme.increasePercent >= 0,
|
|
36
47
|
upPercent: extreme.increasePercent
|
|
37
48
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
38
49
|
className: "loader-holder"
|
|
@@ -40,7 +51,7 @@ var QualitySummary = function QualitySummary(_ref) {
|
|
|
40
51
|
color: "#f67129",
|
|
41
52
|
title: "High",
|
|
42
53
|
percent: high.percent,
|
|
43
|
-
up: high.
|
|
54
|
+
up: high.increasePercent >= 0,
|
|
44
55
|
upPercent: high.increasePercent
|
|
45
56
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
46
57
|
className: "loader-holder"
|
|
@@ -48,7 +59,7 @@ var QualitySummary = function QualitySummary(_ref) {
|
|
|
48
59
|
color: "#f6b22f",
|
|
49
60
|
title: "Medium",
|
|
50
61
|
percent: medium.percent,
|
|
51
|
-
up: medium.
|
|
62
|
+
up: medium.increasePercent >= 0,
|
|
52
63
|
upPercent: medium.increasePercent
|
|
53
64
|
}))))));
|
|
54
65
|
};
|
|
@@ -19,28 +19,28 @@ var _styles = require("../styles");
|
|
|
19
19
|
|
|
20
20
|
var Container = _styledComponents.default.div.withConfig({
|
|
21
21
|
displayName: "styles__Container",
|
|
22
|
-
componentId: "sc-
|
|
23
|
-
})(["@media (max-width:1200px){grid-area:summary;height:100%;}
|
|
22
|
+
componentId: "sc-nckm1k-0"
|
|
23
|
+
})(["@media (max-width:1200px){grid-area:summary;height:100%;}"]);
|
|
24
24
|
|
|
25
25
|
exports.Container = Container;
|
|
26
26
|
|
|
27
27
|
var CardsHolder = _styledComponents.default.div.withConfig({
|
|
28
28
|
displayName: "styles__CardsHolder",
|
|
29
|
-
componentId: "sc-
|
|
29
|
+
componentId: "sc-nckm1k-1"
|
|
30
30
|
})(["box-shadow:-0.9px -0.5px 5px 0 rgba(0,0,0,0.06);border:solid 1px #ebebeb;display:flex;height:100%;"]);
|
|
31
31
|
|
|
32
32
|
exports.CardsHolder = CardsHolder;
|
|
33
33
|
|
|
34
34
|
var Content = _styledComponents.default.div.withConfig({
|
|
35
35
|
displayName: "styles__Content",
|
|
36
|
-
componentId: "sc-
|
|
37
|
-
})(["display:flex;height:calc(100% - 37px);.first{width:33%}.second{width:67%;}"]);
|
|
36
|
+
componentId: "sc-nckm1k-2"
|
|
37
|
+
})(["display:flex;height:calc(100% - 37px);.first{width:33%;border-right:none;position:relative;> .triangle-holder{position:absolute;right:0;width:0;z-index:5;top:50%;transform:translateY(-50%);border-right:1px solid #c7c7c7;border-radius:2px;box-shadow:10px 0px 20px 10px rgba(199,199,199,0.3);height:calc(100% - 60px);> .triangle{right:-9px;background-color:white;position:absolute;top:50%;height:15px;width:15px;transform:translate(0,-50%) rotate(45deg);border:1px solid #c7c7c7;border-left:0;border-bottom:0;&::after{content:'';position:absolute;height:100%;width:50%;}}}}.second{width:67%;border-left:none;padding-left:30px;}@media (max-width:576px){display:flex;flex-direction:column;align-items:center;box-shadow:-0.9px -0.5px 5px 0 rgba(0,0,0,0.06);border:solid 1px #ebebeb;.first{width:calc(100% - 40px);border:none;box-shadow:none;border-bottom:1px solid #ebebeb;> .triangle-holder{display:none;}}.second{width:100%;border:none;box-shadow:none;padding-left:0;}}"]);
|
|
38
38
|
|
|
39
39
|
exports.Content = Content;
|
|
40
40
|
|
|
41
41
|
var Card = _styledComponents.default.div.withConfig({
|
|
42
42
|
displayName: "styles__Card",
|
|
43
|
-
componentId: "sc-
|
|
43
|
+
componentId: "sc-nckm1k-3"
|
|
44
44
|
})(["text-align:center;display:flex;justify-content:center;align-items:center;flex:1;&.bg-grey{background-color:#f4f4f4;}> .top{position:relative;> .title{font-size:14px;font-weight:600;}> .percent{font-size:48px;font-weight:800;color:", ";@media (min-width:1200px){@media (max-width:1700px){font-size:40px;@media (max-width:1450px){font-size:35px;@media (max-width:1200px){font-size:30px;}}}}}> .subtitle{position:absolute;font-size:14px;font-weight:300;display:flex;justify-content:center;align-items:center;bottom:-25px;left:50%;transform:translateX(-50%);color:", ";> .up{margin-right:4px;display:flex;justify-content:center;align-items:center;> svg{margin-right:2px;transform:rotate(", ");}}}}"], function (_ref) {
|
|
45
45
|
var color = _ref.color;
|
|
46
46
|
return color;
|
|
@@ -56,7 +56,7 @@ exports.Card = Card;
|
|
|
56
56
|
|
|
57
57
|
var PercentLineBarsHolder = _styledComponents.default.div.withConfig({
|
|
58
58
|
displayName: "styles__PercentLineBarsHolder",
|
|
59
|
-
componentId: "sc-
|
|
60
|
-
})(["flex:3;display:flex;flex-direction:column;justify-content:space-evenly;padding:
|
|
59
|
+
componentId: "sc-nckm1k-4"
|
|
60
|
+
})(["flex:3;display:flex;flex-direction:column;justify-content:space-evenly;padding:20px;> .title{font-size:14px;font-weight:600;line-height:1.29;color:#1d1d1d;}.loader-holder{height:13px;}"]);
|
|
61
61
|
|
|
62
62
|
exports.PercentLineBarsHolder = PercentLineBarsHolder;
|
|
@@ -19,12 +19,12 @@ var _QualitySummary = require("./QualitySummary/QualitySummary");
|
|
|
19
19
|
|
|
20
20
|
var _UtilityInformation = require("./UtilityInformation/UtilityInformation");
|
|
21
21
|
|
|
22
|
-
var _useApi3 = require("
|
|
22
|
+
var _useApi3 = require("../../../shared/utilities/custom_hooks/useApi");
|
|
23
23
|
|
|
24
24
|
var Container = _styledComponents.default.div.withConfig({
|
|
25
25
|
displayName: "TopBar__Container",
|
|
26
|
-
componentId: "sc-
|
|
27
|
-
})(["display:grid;grid-template-columns:1fr 2fr 1fr;grid-gap:25px;@media (max-width:1200px){grid-gap:10px;grid-template-rows:1fr 1fr;grid-template-columns:initial;grid-template-areas:'info common' 'summary summary ';}@media (max-width:768px){grid-template-rows:1fr 1fr 1fr;grid-template-areas:'info ' 'common' 'summary ';}"]);
|
|
26
|
+
componentId: "sc-yqrye7-0"
|
|
27
|
+
})(["display:grid;grid-template-columns:1fr 2fr 1fr;grid-gap:25px;@media (max-width:1200px){grid-gap:10px;grid-template-rows:1fr 1fr;grid-template-columns:initial;grid-template-areas:'info common' 'summary summary ';}@media (max-width:768px){grid-template-rows:1fr 1fr 1fr;grid-template-areas:'info ' 'common' 'summary ';}@media (max-width:576px){grid-template-rows:1fr 1fr 1fr 1fr;grid-template-areas:'info ' 'common' 'summary ' 'summary ';}"]);
|
|
28
28
|
|
|
29
29
|
var TopBar = function TopBar() {
|
|
30
30
|
var endPoint = '/summary';
|