@kando-env/kando-ui 1.0.3 → 1.0.6
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 +13 -7
- package/lib/CovidView/views/components/MapStyle.scss +7 -30
- package/lib/CovidView/views/components/Sidebar.js +22 -4
- package/lib/CovidView/views/components/SummaryStyle.scss +1 -1
- package/lib/CovidView/views/components/TrendGraphNVL/TrendGraphNVL.js +176 -0
- package/lib/CovidView/views/components/TrendGraphNVL/index.js +13 -0
- package/lib/CovidView/views/components/TrendGraphNVL/styles.scss +20 -0
- package/lib/CovidView/views/components/{areas/TrendPopupContent → TrendPopupContent}/TrendPopupContent.js +35 -23
- package/lib/CovidView/views/components/areas/Area.js +74 -64
- package/lib/CovidView/views/components/areas/AreaPolygonWBE.js +37 -13
- package/lib/CovidView/views/components/areas/AreasList.js +11 -11
- package/lib/CovidView/views/components/areas/AreasStyle.scss +76 -1
- package/lib/EventsView/views/components/SamplingParameters/NoResults/NoResults.js +42 -0
- package/lib/EventsView/views/components/SamplingParameters/NoResults/NoResults.stories.js +26 -0
- package/lib/EventsView/views/components/SamplingParameters/NoResults/discover.svg +66 -0
- package/lib/EventsView/views/components/SamplingParameters/ParametersContainer/ParametersButtons/ParameterButton/ParameterButton.js +29 -0
- package/lib/EventsView/views/components/SamplingParameters/ParametersContainer/ParametersButtons/ParametersButtons.js +44 -0
- package/lib/EventsView/views/components/SamplingParameters/ParametersContainer/ParametersButtons/styles.js +41 -0
- package/lib/EventsView/views/components/SamplingParameters/ParametersContainer/ParametersContainer.js +62 -0
- package/lib/EventsView/views/components/SamplingParameters/SamplingContainer/ExceptionBar/ExceptionBar.js +70 -0
- package/lib/EventsView/views/components/SamplingParameters/SamplingContainer/ExceptionBar/ExceptionBar.stories.js +41 -0
- package/lib/EventsView/views/components/SamplingParameters/SamplingContainer/ExceptionBar/styles.js +47 -0
- package/lib/EventsView/views/components/SamplingParameters/SamplingContainer/ExpandableSamplingTable/ExpandableSamplingTable.js +92 -0
- package/lib/EventsView/views/components/SamplingParameters/SamplingContainer/ExpandableSamplingTable/ExpandableSamplingTable.scss +102 -0
- package/lib/EventsView/views/components/SamplingParameters/SamplingContainer/ExpandableSamplingTable/assets/rigth.svg +3 -0
- package/lib/EventsView/views/components/SamplingParameters/SamplingContainer/SamplingContainer.js +37 -0
- package/lib/EventsView/views/components/SamplingParameters/SamplingParameters.js +129 -0
- package/lib/EventsView/views/components/SamplingParameters/SamplingParameters.mock.js +972 -0
- package/lib/EventsView/views/components/SamplingParameters/SamplingParameters.stories.js +171 -0
- package/lib/EventsView/views/components/SamplingParameters/charts/ParametersChart.js +50 -0
- package/lib/EventsView/views/components/SamplingParameters/charts/SamplingChart.js +53 -0
- package/lib/EventsView/views/components/SamplingParameters/charts/options/options.js +209 -0
- package/lib/EventsView/views/components/SamplingParameters/dataParser.js +107 -0
- package/lib/EventsView/views/components/SamplingParameters/models.js +5 -0
- package/lib/EventsView/views/components/SamplingParameters/styles/samplingParameters.js +26 -0
- package/lib/EventsView/views/components/SamplingParameters/styles/styles.js +35 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/Areas/AreaBox/AreaBox.js +95 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/Areas/AreaBox/AreaMap/AreaMap.js +66 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/Areas/AreaBox/PieChart/PieChart.js +124 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/Areas/AreaBox/styles.js +30 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/Areas/Areas.js +157 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/Areas/styles.js +24 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/Factories/Factories.js +182 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/Factories/FactoryBox/FactoryBox.js +92 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/Factories/FactoryBox/PieChart/PieChart.js +117 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/Factories/FactoryBox/styles.js +31 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/Factories/styles.js +24 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/MostPolluting.js +68 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/MostPolluting.stories.js +148 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/ShowMore/ShowMore.js +29 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/ShowMore/styles.js +20 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/Tabs/Tabs.js +109 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/Tabs/Tabs.stories.js +37 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/Tabs/assets/home.svg +15 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/Tabs/assets/index.js +45 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/Tabs/assets/matash.svg +1 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/Tabs/assets/plant.svg +23 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/Tabs/assets/shape.svg +37 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/Tabs/assets/water.svg +20 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/assets/down-arrow.svg +27 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/assets/gas.svg +17 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/assets/index.js +53 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/assets/leather.svg +23 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/assets/metal.svg +20 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/assets/shop.svg +24 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/assets/show-more.svg +3 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/models.js +5 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostPolluting/styles.js +24 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostSevereEvents/MostSevereEvents.js +83 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostSevereEvents/MostSevereEvents.scss +34 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostSevereEvents/MostSevereEvents.stories.js +383 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostSevereEvents/NoEvents/NoEvents.js +37 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostSevereEvents/NoEvents/NoEvents.stories.js +26 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostSevereEvents/NoEvents/discover.svg +66 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostSevereEvents/SevereEvent/SevereEvent.js +107 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostSevereEvents/SevereEvent/SevereEvent.scss +361 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostSevereEvents/SevereEvent/assets/info.svg +1 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostSevereEvents/SevereEvent/assets/pipe-bluckages.svg +51 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostSevereEvents/SevereEvent/assets/pipe.svg +61 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostSevereEvents/SevereEvent/assets/sludge.svg +127 -0
- package/lib/EventsView/views/components/UtilityDashboard/MostSevereEvents/models.js +5 -0
- package/lib/EventsView/views/components/UtilityDashboard/TopBar/MostCommon/Back/Back.js +34 -0
- package/lib/EventsView/views/components/UtilityDashboard/TopBar/MostCommon/MostCommon.js +83 -0
- package/lib/EventsView/views/components/UtilityDashboard/TopBar/MostCommon/assets/arrow.svg +44 -0
- package/lib/EventsView/views/components/UtilityDashboard/TopBar/MostCommon/assets/bacteria.svg +90 -0
- package/lib/EventsView/views/components/UtilityDashboard/TopBar/MostCommon/assets/clock.svg +8 -0
- package/lib/EventsView/views/components/UtilityDashboard/TopBar/MostCommon/assets/pipes.svg +31 -0
- package/lib/EventsView/views/components/UtilityDashboard/TopBar/MostCommon/styles.js +80 -0
- package/lib/EventsView/views/components/UtilityDashboard/TopBar/QualitySummary/PieChart/PieChart.js +117 -0
- package/lib/EventsView/views/components/UtilityDashboard/TopBar/QualitySummary/PollutedLine/PollutedLine.js +68 -0
- package/lib/EventsView/views/components/UtilityDashboard/TopBar/QualitySummary/QualitySummary.js +56 -0
- package/lib/EventsView/views/components/UtilityDashboard/TopBar/QualitySummary/assets/down-arrow.svg +27 -0
- package/lib/EventsView/views/components/UtilityDashboard/TopBar/QualitySummary/styles.js +62 -0
- package/lib/EventsView/views/components/UtilityDashboard/TopBar/TopBar.js +49 -0
- package/lib/EventsView/views/components/UtilityDashboard/TopBar/UtilityInformation/UtilityInformation.js +42 -0
- package/lib/EventsView/views/components/UtilityDashboard/TopBar/UtilityInformation/styles.js +60 -0
- package/lib/EventsView/views/components/UtilityDashboard/TopBar/models.js +5 -0
- package/lib/EventsView/views/components/UtilityDashboard/TopBar/styles.js +17 -0
- package/lib/EventsView/views/components/UtilityDashboard/UtilityDashboard.js +35 -0
- package/lib/EventsView/views/components/UtilityDashboard/UtilityDashboard.stories.js +95 -0
- package/lib/EventsView/views/components/UtilityDashboard/mocks/areas.mock.js +344 -0
- package/lib/EventsView/views/components/UtilityDashboard/mocks/events.mock.js +345 -0
- package/lib/EventsView/views/components/UtilityDashboard/mocks/factories.mock.js +152 -0
- package/lib/EventsView/views/components/UtilityDashboard/mocks/index.js +29 -0
- package/lib/EventsView/views/components/events/event_info/EventInfo.js +3 -5
- package/lib/EventsView/views/components/map/FloatingGraph.js +12 -18
- package/lib/EventsView/views/components/map/Map.js +5 -3
- package/lib/EventsView/views/components/map/floatingGraphStyle.scss +54 -0
- package/lib/EventsView/views/components/map/mapStyle.scss +7 -29
- package/lib/EventsView/views/components/points/PointMarker.js +16 -15
- package/lib/index.js +4 -9
- package/lib/shared/components/DoubleTabs/DoubleTabs.js +44 -0
- package/lib/shared/components/DoubleTabs/DoubleTabs.stories.js +30 -0
- package/lib/shared/components/DoubleTabs/styles.js +26 -0
- package/lib/shared/components/KandoModal/KandoModal.js +9 -6
- package/lib/shared/components/LoaderByPercent/LoaderByPercent.js +50 -0
- package/lib/shared/components/Select/Select.js +58 -0
- package/lib/shared/components/Select/Select.scss +49 -0
- package/lib/shared/components/Select/Select.stories.js +44 -0
- package/lib/shared/components/Spinner/Spinner.js +23 -0
- package/lib/shared/components/Spinner/Spinner.stories.js +38 -0
- package/lib/shared/components/Spinner/index.js +13 -0
- package/lib/shared/components/Spinner/style/spinner.js +25 -0
- package/lib/shared/redux/global/actions.js +5 -0
- package/lib/shared/utilities/custom_hooks/useApi.js +83 -0
- package/lib/shared/utilities/custom_hooks/useWindowSize.js +47 -0
- package/package.json +7 -3
- package/lib/ProjectManagement/api/index.js +0 -19
- package/lib/ProjectManagement/components/kpi-list-item.js +0 -88
- package/lib/ProjectManagement/components/kpi-percentage-item.js +0 -98
- package/lib/ProjectManagement/components/kpi.js +0 -71
- package/lib/ProjectManagement/components/legend-icon.js +0 -61
- package/lib/ProjectManagement/components/link-to-item.js +0 -67
- package/lib/ProjectManagement/components/list-of-points.js +0 -111
- package/lib/ProjectManagement/components/map-view.js +0 -128
- package/lib/ProjectManagement/components/metrics.js +0 -94
- package/lib/ProjectManagement/components/node-label.js +0 -66
- package/lib/ProjectManagement/components/period-selector-button.js +0 -68
- package/lib/ProjectManagement/components/period-selector.js +0 -79
- package/lib/ProjectManagement/components/point-preview.js +0 -298
- package/lib/ProjectManagement/components/project-management.js +0 -262
- package/lib/ProjectManagement/components/tree-legend.js +0 -100
- package/lib/ProjectManagement/components/tree-view.js +0 -281
- package/lib/ProjectManagement/stores/project-management-store.js +0 -32
- package/lib/ProjectManagement/util/constants.js +0 -10
- package/lib/ProjectManagement/util/treeUtil.js +0 -45
- package/lib/ProjectManagement/util/url.js +0 -24
- /package/lib/CovidView/views/components/{areas/TrendPopupContent → TrendPopupContent}/index.js +0 -0
- /package/lib/CovidView/views/components/{areas/TrendPopupContent → TrendPopupContent}/styles.scss +0 -0
|
@@ -17,15 +17,15 @@ var _reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
|
17
17
|
|
|
18
18
|
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
19
19
|
|
|
20
|
-
var _i18n = _interopRequireDefault(require("../../../../shared/utilities/i18n"));
|
|
21
|
-
|
|
22
20
|
var _reactRedux = require("react-redux");
|
|
23
21
|
|
|
22
|
+
var _i18n = _interopRequireDefault(require("../../../../shared/utilities/i18n"));
|
|
23
|
+
|
|
24
24
|
var _actions = require("../../../../shared/redux/WBE/actions");
|
|
25
25
|
|
|
26
26
|
var _KandoModal = _interopRequireDefault(require("../../../../shared/components/KandoModal"));
|
|
27
27
|
|
|
28
|
-
var _TrendPopupContent = _interopRequireDefault(require("
|
|
28
|
+
var _TrendPopupContent = _interopRequireDefault(require("../../../../CovidView/views/components/TrendPopupContent"));
|
|
29
29
|
|
|
30
30
|
var _useQueryURL = _interopRequireDefault(require("../../../../shared/utilities/custom_hooks/useQueryURL"));
|
|
31
31
|
|
|
@@ -60,7 +60,7 @@ var Area = function Area(props) {
|
|
|
60
60
|
return "MEDIUM";
|
|
61
61
|
} else if (area.NVL >= 1000 && area.NVL <= 1000000000) {
|
|
62
62
|
return "LOW";
|
|
63
|
-
} else if (area.NVL
|
|
63
|
+
} else if (area.NVL >= 0 && area.NVL < 1000) {
|
|
64
64
|
return "CLEAN";
|
|
65
65
|
} else if (area.NVL === null) {
|
|
66
66
|
return;
|
|
@@ -86,12 +86,19 @@ var Area = function Area(props) {
|
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
-
var handleAreaClick = function handleAreaClick() {
|
|
89
|
+
var handleAreaClick = function handleAreaClick(mobile) {
|
|
90
90
|
var setZoomedArea = function setZoomedArea(zoomedArea) {
|
|
91
91
|
if (area.shape_data !== undefined && area.shape_data.length !== 0) {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
if (mobile && zoomedArea !== null) {
|
|
93
|
+
dispatch((0, _actions.updateWBE)({
|
|
94
|
+
zoomedArea: zoomedArea,
|
|
95
|
+
sidenavExpanded: false
|
|
96
|
+
}));
|
|
97
|
+
} else {
|
|
98
|
+
dispatch((0, _actions.updateWBE)({
|
|
99
|
+
zoomedArea: zoomedArea
|
|
100
|
+
}));
|
|
101
|
+
}
|
|
95
102
|
}
|
|
96
103
|
};
|
|
97
104
|
|
|
@@ -109,63 +116,66 @@ var Area = function Area(props) {
|
|
|
109
116
|
console.log("sampling history");
|
|
110
117
|
};
|
|
111
118
|
|
|
119
|
+
var renderArea = function renderArea(mobile) {
|
|
120
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
121
|
+
className: "area ".concat(area.sampling_taken === null ? 'area--no_sampling' : '', " ").concat(expanded ? 'area--expanded' : '', " ").concat(mobile ? 'area--mobile' : 'area--desktop')
|
|
122
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
123
|
+
className: "area-container"
|
|
124
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
125
|
+
className: "area__header area__header--".concat(verbalizeNVL()),
|
|
126
|
+
onClick: function onClick() {
|
|
127
|
+
return setExpanded(!expanded);
|
|
128
|
+
}
|
|
129
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(_Truncate.default, {
|
|
130
|
+
characters: 0
|
|
131
|
+
}, area.name)), area.sampling_taken !== null && /*#__PURE__*/_react.default.createElement("span", null, area.NVL.toExponential(2), " (", displayNVLChange(), ")")), /*#__PURE__*/_react.default.createElement("div", {
|
|
132
|
+
className: "area__details",
|
|
133
|
+
onClick: function onClick() {
|
|
134
|
+
return handleAreaClick(mobile);
|
|
135
|
+
}
|
|
136
|
+
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", {
|
|
137
|
+
className: "area__detail"
|
|
138
|
+
}, _i18n.default.t("covid_view.area_details.NVL_change"), ": ", /*#__PURE__*/_react.default.createElement("b", null, displayNVLChange())), /*#__PURE__*/_react.default.createElement("span", {
|
|
139
|
+
className: "area__detail"
|
|
140
|
+
}, _i18n.default.t("covid_view.area_details.last_updated"), ": ", /*#__PURE__*/_react.default.createElement("b", null, area.last_updated === null ? null : new Date(area.last_updated).toLocaleDateString())), /*#__PURE__*/_react.default.createElement("span", {
|
|
141
|
+
className: "area__detail"
|
|
142
|
+
}, _i18n.default.t("covid_view.area_details.sampling_taken"), ": ", /*#__PURE__*/_react.default.createElement("b", null, area.sampling_taken === null ? null : new Date(area.sampling_taken).toLocaleDateString())), /*#__PURE__*/_react.default.createElement("span", {
|
|
143
|
+
className: "area__detail"
|
|
144
|
+
}, _i18n.default.t("covid_view.area_details.status"), ": ", /*#__PURE__*/_react.default.createElement("b", null, _i18n.default.t("covid_view.area_statuses.".concat(area.status)))), /*#__PURE__*/_react.default.createElement("span", {
|
|
145
|
+
className: "area__detail"
|
|
146
|
+
}, /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
|
|
147
|
+
icon: _freeSolidSvgIcons.faUsers
|
|
148
|
+
}), " ", area.population)))), isSubAreasDisplayed ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null) : /*#__PURE__*/_react.default.createElement("div", {
|
|
149
|
+
className: "area__actions"
|
|
150
|
+
}, /*#__PURE__*/_react.default.createElement("a", {
|
|
151
|
+
onClick: function onClick() {
|
|
152
|
+
return displaySubAreas();
|
|
153
|
+
}
|
|
154
|
+
}, /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
|
|
155
|
+
icon: _freeSolidSvgIcons.faLevelDownAlt
|
|
156
|
+
}), /*#__PURE__*/_react.default.createElement("span", null, " ", _i18n.default.t("covid_view.sub_areas"))), /*#__PURE__*/_react.default.createElement("div", {
|
|
157
|
+
className: "divider"
|
|
158
|
+
}), /*#__PURE__*/_react.default.createElement("a", {
|
|
159
|
+
onClick: function onClick() {
|
|
160
|
+
return displaySamplingHistory();
|
|
161
|
+
}
|
|
162
|
+
}, /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
|
|
163
|
+
icon: _freeSolidSvgIcons.faHistory
|
|
164
|
+
}), /*#__PURE__*/_react.default.createElement(_KandoModal.default, {
|
|
165
|
+
buttonLabel: _i18n.default.t("covid_view.NVL_trend"),
|
|
166
|
+
openerClass: "inline",
|
|
167
|
+
type: "big",
|
|
168
|
+
isOpen: popupAreaID === area.id,
|
|
169
|
+
changeHistory: {
|
|
170
|
+
popup_area_id: area.id
|
|
171
|
+
}
|
|
172
|
+
}, /*#__PURE__*/_react.default.createElement(_TrendPopupContent.default, {
|
|
173
|
+
areaID: area.id
|
|
174
|
+
})))));
|
|
175
|
+
};
|
|
176
|
+
|
|
112
177
|
(0, _react.useEffect)(function () {}, [zoomedArea]);
|
|
113
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
114
|
-
className: "area ".concat(area.sampling_taken === null ? 'area--no_sampling' : '', " ").concat(expanded ? 'area--expanded' : '')
|
|
115
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
116
|
-
className: "area-container"
|
|
117
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
118
|
-
className: "area__header area__header--".concat(verbalizeNVL()),
|
|
119
|
-
onClick: function onClick() {
|
|
120
|
-
return setExpanded(!expanded);
|
|
121
|
-
}
|
|
122
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement(_Truncate.default, {
|
|
123
|
-
characters: 0
|
|
124
|
-
}, area.name)), area.sampling_taken !== null && /*#__PURE__*/_react.default.createElement("span", null, area.NVL.toExponential(2), " (", displayNVLChange(), ")")), /*#__PURE__*/_react.default.createElement("div", {
|
|
125
|
-
className: "area__details",
|
|
126
|
-
onClick: function onClick() {
|
|
127
|
-
return handleAreaClick();
|
|
128
|
-
}
|
|
129
|
-
}, area.sampling_taken !== null ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", {
|
|
130
|
-
className: "area__detail"
|
|
131
|
-
}, "NVL Change: ", /*#__PURE__*/_react.default.createElement("b", null, displayNVLChange())), /*#__PURE__*/_react.default.createElement("span", {
|
|
132
|
-
className: "area__detail"
|
|
133
|
-
}, "Last updated: ", /*#__PURE__*/_react.default.createElement("b", null, new Date(area.last_updated).toLocaleDateString())), /*#__PURE__*/_react.default.createElement("span", {
|
|
134
|
-
className: "area__detail"
|
|
135
|
-
}, "Sampling taken: ", /*#__PURE__*/_react.default.createElement("b", null, new Date(area.sampling_taken).toLocaleDateString())), /*#__PURE__*/_react.default.createElement("span", {
|
|
136
|
-
className: "area__detail"
|
|
137
|
-
}, "Status: ", /*#__PURE__*/_react.default.createElement("b", null, _i18n.default.t("covid_view.area_statuses.".concat(area.status)))), /*#__PURE__*/_react.default.createElement("span", {
|
|
138
|
-
className: "area__detail"
|
|
139
|
-
}, /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
|
|
140
|
-
icon: _freeSolidSvgIcons.faUsers
|
|
141
|
-
}), " ", area.population)) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", null, "No sampling was taken")))), isSubAreasDisplayed ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null) : /*#__PURE__*/_react.default.createElement("div", {
|
|
142
|
-
className: "area__actions"
|
|
143
|
-
}, /*#__PURE__*/_react.default.createElement("a", {
|
|
144
|
-
onClick: function onClick() {
|
|
145
|
-
return displaySubAreas();
|
|
146
|
-
}
|
|
147
|
-
}, /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
|
|
148
|
-
icon: _freeSolidSvgIcons.faLevelDownAlt
|
|
149
|
-
}), /*#__PURE__*/_react.default.createElement("span", null, " ", _i18n.default.t("covid_view.sub_areas"))), /*#__PURE__*/_react.default.createElement("div", {
|
|
150
|
-
className: "divider"
|
|
151
|
-
}), /*#__PURE__*/_react.default.createElement("a", {
|
|
152
|
-
onClick: function onClick() {
|
|
153
|
-
return displaySamplingHistory();
|
|
154
|
-
}
|
|
155
|
-
}, /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
|
|
156
|
-
icon: _freeSolidSvgIcons.faHistory
|
|
157
|
-
}), /*#__PURE__*/_react.default.createElement(_KandoModal.default, {
|
|
158
|
-
buttonLabel: _i18n.default.t("covid_view.NVL_trend"),
|
|
159
|
-
openerClass: "inline",
|
|
160
|
-
type: "big",
|
|
161
|
-
isOpen: popupAreaID === area.id,
|
|
162
|
-
changeHistory: {
|
|
163
|
-
popup_area_id: area.id
|
|
164
|
-
}
|
|
165
|
-
}, /*#__PURE__*/_react.default.createElement(_TrendPopupContent.default, {
|
|
166
|
-
areaID: area.id,
|
|
167
|
-
period: "3m"
|
|
168
|
-
})))));
|
|
178
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, renderArea(true), renderArea(false));
|
|
169
179
|
};
|
|
170
180
|
|
|
171
181
|
exports.Area = Area;
|
|
@@ -11,32 +11,33 @@ exports.default = void 0;
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
|
|
14
|
+
var _reactRedux = require("react-redux");
|
|
15
|
+
|
|
14
16
|
var _useRemoveExistingLayers = _interopRequireDefault(require("../../../../shared/utilities/custom_hooks/useRemoveExistingLayers"));
|
|
15
17
|
|
|
16
18
|
var _i18n = _interopRequireDefault(require("../../../../shared/utilities/i18n"));
|
|
17
19
|
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
var _invalidSampling = _interopRequireDefault(require("../../../../assets/area_statuses/invalid-sampling.png"));
|
|
20
|
+
var _actions = require("../../../../shared/redux/WBE/actions");
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _validSampling = _interopRequireDefault(require("../../../../assets/images/area_statuses/valid-sampling.png"));
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _invalidSampling = _interopRequireDefault(require("../../../../assets/images/area_statuses/invalid-sampling.png"));
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _missingSampling = _interopRequireDefault(require("../../../../assets/images/area_statuses/missing-sampling.png"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _pendingSampling = _interopRequireDefault(require("../../../../assets/images/area_statuses/pending-sampling.png"));
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _up = _interopRequireDefault(require("../../../../assets/images/NVL_trends/up.png"));
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _down = _interopRequireDefault(require("../../../../assets/images/NVL_trends/down.png"));
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _same = _interopRequireDefault(require("../../../../assets/images/NVL_trends/same.png"));
|
|
35
35
|
|
|
36
36
|
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); }
|
|
37
37
|
|
|
38
38
|
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; }
|
|
39
39
|
|
|
40
|
+
//TODO make sure assets are in
|
|
40
41
|
var AreaPolygonWBE = function AreaPolygonWBE(props) {
|
|
41
42
|
var L = props.L,
|
|
42
43
|
map = props.map,
|
|
@@ -122,7 +123,7 @@ var AreaPolygonWBE = function AreaPolygonWBE(props) {
|
|
|
122
123
|
iconUrl: iconURL,
|
|
123
124
|
iconSize: [54, 58],
|
|
124
125
|
iconAnchor: [19, 42],
|
|
125
|
-
popupAnchor: [
|
|
126
|
+
popupAnchor: [8, -36]
|
|
126
127
|
};
|
|
127
128
|
};
|
|
128
129
|
|
|
@@ -165,6 +166,7 @@ var AreaPolygonWBE = function AreaPolygonWBE(props) {
|
|
|
165
166
|
marker["kando_object_id"] = area.point.id;
|
|
166
167
|
marker["kando_object"] = "Point";
|
|
167
168
|
marker.addTo(map);
|
|
169
|
+
marker.bindPopup("\n <p>".concat(area.name, " / ").concat(area.point.name, "</p>\n "));
|
|
168
170
|
}
|
|
169
171
|
};
|
|
170
172
|
|
|
@@ -189,6 +191,28 @@ var AreaPolygonWBE = function AreaPolygonWBE(props) {
|
|
|
189
191
|
}
|
|
190
192
|
};
|
|
191
193
|
|
|
194
|
+
var samplingsForSubAreas = function samplingsForSubAreas() {
|
|
195
|
+
var noSamplings = false;
|
|
196
|
+
|
|
197
|
+
if (area.sub_areas !== undefined && area.sub_areas.length !== 0) {
|
|
198
|
+
area.sub_areas.forEach(function (sub_area) {
|
|
199
|
+
if (sub_area.status !== 3) {
|
|
200
|
+
noSamplings = false;
|
|
201
|
+
} else {
|
|
202
|
+
noSamplings = true;
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
if (noSamplings) {
|
|
207
|
+
return _i18n.default.t("covid_view.no_valid_samplings");
|
|
208
|
+
} else {
|
|
209
|
+
return '';
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
return _i18n.default.t("covid_view.no_valid_samplings");
|
|
214
|
+
};
|
|
215
|
+
|
|
192
216
|
(0, _useRemoveExistingLayers.default)(map, area, "Area", mapZoom);
|
|
193
217
|
(0, _useRemoveExistingLayers.default)(map, fakeLayer(), "Point", mapZoom);
|
|
194
218
|
(0, _react.useEffect)(function () {
|
|
@@ -220,14 +244,14 @@ var AreaPolygonWBE = function AreaPolygonWBE(props) {
|
|
|
220
244
|
if (area.sub_areas !== undefined && area.sub_areas.length !== 0) {
|
|
221
245
|
dispatch((0, _actions.updateWBE)({
|
|
222
246
|
focusedArea: area,
|
|
223
|
-
zoomedArea:
|
|
247
|
+
zoomedArea: area.sub_areas[0]
|
|
224
248
|
}));
|
|
225
249
|
}
|
|
226
250
|
});
|
|
227
251
|
polygon.on('mouseover', function (e) {
|
|
228
252
|
var layer = e.target;
|
|
229
253
|
var LatLng = layer.getBounds().getCenter();
|
|
230
|
-
var popup = L.popup().setLatLng(LatLng).setContent("\n <h4>".concat(area.name, "</h4>\n <p>").concat(NVLScoreForSite(), "</p>\n <p>").concat(_i18n.default.t('covid_view.viral_load'), ": ").concat(area.NVL.toExponential(2), "</p>\n <p>").concat(_i18n.default.t('covid_view.status'), ": ").concat(_i18n.default.t("covid_view.area_statuses.".concat(area.status)), "</p>\n <p>
|
|
254
|
+
var popup = L.popup().setLatLng(LatLng).setContent("\n <h4>".concat(area.name, "</h4>\n <p>").concat(NVLScoreForSite(), "</p>\n <p>").concat(_i18n.default.t('covid_view.viral_load'), ": ").concat(area.NVL.toExponential(2), "</p>\n <p>").concat(_i18n.default.t('covid_view.status'), ": ").concat(_i18n.default.t("covid_view.area_statuses.".concat(area.status)), "</p>\n <p>").concat(samplingsForSubAreas(), "</p>\n ")).openOn(map);
|
|
231
255
|
polygon.on('mouseout', function (e) {
|
|
232
256
|
map.closePopup(popup);
|
|
233
257
|
});
|
|
@@ -13,19 +13,19 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
|
|
16
|
-
var _Area = require("./Area");
|
|
17
|
-
|
|
18
|
-
require("./AreasStyle.scss");
|
|
19
|
-
|
|
20
|
-
var _actions = require("../../../../shared/redux/WBE/actions");
|
|
21
|
-
|
|
22
16
|
var _reactFontawesome = require("@fortawesome/react-fontawesome");
|
|
23
17
|
|
|
24
18
|
var _freeSolidSvgIcons = require("@fortawesome/free-solid-svg-icons");
|
|
25
19
|
|
|
26
20
|
var _reactRedux = require("react-redux");
|
|
27
21
|
|
|
28
|
-
var
|
|
22
|
+
var _Area = require("./Area");
|
|
23
|
+
|
|
24
|
+
require("./AreasStyle.scss");
|
|
25
|
+
|
|
26
|
+
var _actions = require("../../../../shared/redux/WBE/actions");
|
|
27
|
+
|
|
28
|
+
var _Sort = _interopRequireDefault(require("../../../../CovidView/views/components/areas/Sort"));
|
|
29
29
|
|
|
30
30
|
var _i18n = _interopRequireDefault(require("../../../../shared/utilities/i18n"));
|
|
31
31
|
|
|
@@ -56,7 +56,7 @@ var AreasList = function AreasList(props) {
|
|
|
56
56
|
|
|
57
57
|
if (sort == 1) {
|
|
58
58
|
sorted = areas.slice().sort(function (a, b) {
|
|
59
|
-
return
|
|
59
|
+
return b.NVL - a.NVL;
|
|
60
60
|
});
|
|
61
61
|
setModifiedAreas(undefined);
|
|
62
62
|
setTimeout(function () {
|
|
@@ -64,7 +64,7 @@ var AreasList = function AreasList(props) {
|
|
|
64
64
|
}, 50);
|
|
65
65
|
} else if (sort == 2) {
|
|
66
66
|
sorted = areas.slice().sort(function (a, b) {
|
|
67
|
-
return
|
|
67
|
+
return b.NVL_diff_ratio - a.NVL_diff_ratio;
|
|
68
68
|
});
|
|
69
69
|
setModifiedAreas(undefined);
|
|
70
70
|
setTimeout(function () {
|
|
@@ -83,7 +83,7 @@ var AreasList = function AreasList(props) {
|
|
|
83
83
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
84
84
|
className: "main"
|
|
85
85
|
}, isSubAreasDisplayed ? /*#__PURE__*/_react.default.createElement("h3", null, focusedArea.name) : /*#__PURE__*/_react.default.createElement("h3", null, _i18n.default.t("covid_view.main_areas")), isSubAreasDisplayed ? /*#__PURE__*/_react.default.createElement("a", {
|
|
86
|
-
className: "back-button",
|
|
86
|
+
className: "back-button--sub-areas",
|
|
87
87
|
onClick: function onClick() {
|
|
88
88
|
dispatch((0, _actions.updateWBE)({
|
|
89
89
|
focusedArea: null,
|
|
@@ -92,7 +92,7 @@ var AreasList = function AreasList(props) {
|
|
|
92
92
|
}
|
|
93
93
|
}, /*#__PURE__*/_react.default.createElement(_reactFontawesome.FontAwesomeIcon, {
|
|
94
94
|
icon: _freeSolidSvgIcons.faArrowLeft
|
|
95
|
-
}), /*#__PURE__*/_react.default.createElement("span", null, "
|
|
95
|
+
}), /*#__PURE__*/_react.default.createElement("span", null, " ", _i18n.default.t('covid_view.back_to_main_areas'))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("span", null, areas !== undefined && areas.length !== 0 && /*#__PURE__*/_react.default.createElement(_Sort.default, {
|
|
96
96
|
triggerSort: triggerSort,
|
|
97
97
|
areas: areas,
|
|
98
98
|
focusedArea: focusedArea
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
@media only screen and (max-width: 450px) {
|
|
2
|
+
.react-responsive-modal-modal {
|
|
3
|
+
max-width: 90vw !important;
|
|
4
|
+
}
|
|
5
|
+
|
|
2
6
|
.sidebar {
|
|
3
7
|
width: 100vw !important;
|
|
4
8
|
|
|
@@ -15,17 +19,76 @@
|
|
|
15
19
|
&--collapsed {
|
|
16
20
|
.ltrs & {
|
|
17
21
|
left: -100vw !important;
|
|
22
|
+
transition: .2s ease-in-out;
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
.rtls & {
|
|
21
26
|
right: -100vw !important;
|
|
27
|
+
transition: .2s ease-in-out;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.summarybar {
|
|
33
|
+
width: 100vw !important;
|
|
34
|
+
|
|
35
|
+
.trend-button {
|
|
36
|
+
padding: .3em !important;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.back-button {
|
|
41
|
+
&--mobile {
|
|
42
|
+
&--shown {
|
|
43
|
+
display: block;
|
|
22
44
|
}
|
|
23
45
|
}
|
|
24
46
|
}
|
|
47
|
+
|
|
48
|
+
.area--desktop {
|
|
49
|
+
display: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.area--mobile {
|
|
53
|
+
display: block !important;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.zoomed {
|
|
57
|
+
display: block !important;
|
|
58
|
+
}
|
|
25
59
|
}
|
|
26
60
|
|
|
27
61
|
.sidebar {
|
|
28
62
|
padding-bottom: 4em;
|
|
63
|
+
transition: .1s ease-in-out;
|
|
64
|
+
|
|
65
|
+
.ltrs & {
|
|
66
|
+
left: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.rtls & {
|
|
70
|
+
right: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.back-button {
|
|
74
|
+
position: fixed;
|
|
75
|
+
top: 10em;
|
|
76
|
+
width: 100vw;
|
|
77
|
+
left: 0em;
|
|
78
|
+
background: white;
|
|
79
|
+
padding: 9px;
|
|
80
|
+
border: 1px solid rgba(0,0,0,.1);
|
|
81
|
+
border-left: 0;
|
|
82
|
+
border-right: 0;
|
|
83
|
+
|
|
84
|
+
&--mobile {
|
|
85
|
+
display: none;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.zoomed {
|
|
91
|
+
display: none;
|
|
29
92
|
}
|
|
30
93
|
|
|
31
94
|
.areas-container {
|
|
@@ -109,6 +172,14 @@
|
|
|
109
172
|
|
|
110
173
|
.area__details {
|
|
111
174
|
display: none;
|
|
175
|
+
|
|
176
|
+
.ltrs & {
|
|
177
|
+
text-align: left;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.rtls & {
|
|
181
|
+
text-align: right;
|
|
182
|
+
}
|
|
112
183
|
}
|
|
113
184
|
|
|
114
185
|
.area__actions {
|
|
@@ -141,6 +212,10 @@
|
|
|
141
212
|
transition: 0.1s ease;
|
|
142
213
|
}
|
|
143
214
|
|
|
215
|
+
&--mobile {
|
|
216
|
+
display: none;
|
|
217
|
+
}
|
|
218
|
+
|
|
144
219
|
&--expanded {
|
|
145
220
|
height: max-content !important;
|
|
146
221
|
transition: .1s ease-in-out;
|
|
@@ -156,7 +231,7 @@
|
|
|
156
231
|
|
|
157
232
|
&--no_sampling {
|
|
158
233
|
.area__header {
|
|
159
|
-
background:
|
|
234
|
+
background: rgb(187, 187, 187) !important;
|
|
160
235
|
}
|
|
161
236
|
}
|
|
162
237
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.NoResults = NoResults;
|
|
9
|
+
exports.Subtitle = exports.Main = exports.Content = exports.Container = void 0;
|
|
10
|
+
|
|
11
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
12
|
+
|
|
13
|
+
var _react = _interopRequireDefault(require("react"));
|
|
14
|
+
|
|
15
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
16
|
+
|
|
17
|
+
var _discover = require("./discover.svg");
|
|
18
|
+
|
|
19
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
20
|
+
|
|
21
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n min-height: 318px;\n padding: 75px 0;\n box-shadow: -0.9px -0.5px 5px 0 rgba(0, 0, 0, 0.06);\n border: solid 1px #ebebeb;\n background-color: #ffffff;\n"])));
|
|
22
|
+
|
|
23
|
+
exports.Container = Container;
|
|
24
|
+
|
|
25
|
+
var Content = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n max-width: 316px;\n text-align: center;\n"])));
|
|
26
|
+
|
|
27
|
+
exports.Content = Content;
|
|
28
|
+
|
|
29
|
+
var Main = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 18px;\n font-weight: 600;\n line-height: 1.22;\n letter-spacing: 0.45px;\n color: #1d1d1d;\n padding-top: 24px;\n"])));
|
|
30
|
+
|
|
31
|
+
exports.Main = Main;
|
|
32
|
+
|
|
33
|
+
var Subtitle = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n padding-top: 18px;\n font-size: 14px;\n font-weight: 300;\n"])));
|
|
34
|
+
|
|
35
|
+
exports.Subtitle = Subtitle;
|
|
36
|
+
|
|
37
|
+
function NoResults() {
|
|
38
|
+
return /*#__PURE__*/_react.default.createElement(Container, null, /*#__PURE__*/_react.default.createElement(Content, null, /*#__PURE__*/_react.default.createElement(_discover.ReactComponent, {
|
|
39
|
+
width: "56px",
|
|
40
|
+
height: "59px"
|
|
41
|
+
}), /*#__PURE__*/_react.default.createElement(Main, null, "There are no tests results within ", /*#__PURE__*/_react.default.createElement("br", null), " the selected time frame"), /*#__PURE__*/_react.default.createElement(Subtitle, null, "Please select another time frame to find results")));
|
|
42
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 = exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _NoResults = require("./NoResults");
|
|
13
|
+
|
|
14
|
+
var _default = {
|
|
15
|
+
title: 'UI/components/NoResults',
|
|
16
|
+
component: _NoResults.NoResults,
|
|
17
|
+
argTypes: {}
|
|
18
|
+
};
|
|
19
|
+
exports.default = _default;
|
|
20
|
+
|
|
21
|
+
var Template = function Template(args) {
|
|
22
|
+
return /*#__PURE__*/_react.default.createElement(_NoResults.NoResults, args);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
var Default = Template.bind({});
|
|
26
|
+
exports.Default = Default;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" id="Layer_3" x="0" y="0" enable-background="new 0 0 540.7 575.1" version="1.1" viewBox="0 0 540.7 575.1" xml:space="preserve">
|
|
2
|
+
<style>
|
|
3
|
+
.st5{fill:#fff}.st10{fill:#1d1d1d}
|
|
4
|
+
</style>
|
|
5
|
+
<linearGradient id="SVGID_1_" x1="16" x2="289" y1="209.248" y2="209.248" gradientTransform="matrix(1 0 0 -1 0 656.2963)" gradientUnits="userSpaceOnUse">
|
|
6
|
+
<stop offset="0" stop-color="#3CBBEB"/>
|
|
7
|
+
<stop offset="1" stop-color="#B1DBEB"/>
|
|
8
|
+
</linearGradient>
|
|
9
|
+
<path fill="url(#SVGID_1_)" d="M276 433.3c-32.4-8.2-61.9-24.8-85.7-48.6-32-32-74.6-49.7-119.9-49.7H25.7c-6.2 17.6-9.7 36.5-9.7 56 0 92.6 75.4 168 168 168 38.2 0 75.3-13.2 105-37-10.7-17.2-17-37.4-17-59 0-10.2 1.4-20.1 4-29.7zM32 407.1c0-26.5 21.5-48 48-48s48 21.5 48 48-21.5 48-48 48-48-21.5-48-48zm96 128c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm88 0c-13.2 0-24-10.8-24-24s10.8-24 24-24 24 10.8 24 24-10.8 24-24 24z"/>
|
|
10
|
+
<linearGradient id="SVGID_2_" x1="112" x2="144" y1="153.148" y2="153.148" gradientTransform="matrix(1 0 0 -1 0 656.2963)" gradientUnits="userSpaceOnUse">
|
|
11
|
+
<stop offset="0" stop-color="#B1EBE1"/>
|
|
12
|
+
<stop offset="1" stop-color="#C1FAF0"/>
|
|
13
|
+
</linearGradient>
|
|
14
|
+
<circle cx="128" cy="503.1" r="16" fill="url(#SVGID_2_)"/>
|
|
15
|
+
<linearGradient id="SVGID_3_" x1="208" x2="224" y1="145.148" y2="145.148" gradientTransform="matrix(1 0 0 -1 0 656.2963)" gradientUnits="userSpaceOnUse">
|
|
16
|
+
<stop offset="0" stop-color="#B1EBE1"/>
|
|
17
|
+
<stop offset="1" stop-color="#C1FAF0"/>
|
|
18
|
+
</linearGradient>
|
|
19
|
+
<circle cx="216" cy="511.1" r="8" fill="url(#SVGID_3_)"/>
|
|
20
|
+
<linearGradient id="SVGID_4_" x1="48" x2="112" y1="249.148" y2="249.148" gradientTransform="matrix(1 0 0 -1 0 656.2963)" gradientUnits="userSpaceOnUse">
|
|
21
|
+
<stop offset="0" stop-color="#B1EBE1"/>
|
|
22
|
+
<stop offset="1" stop-color="#C1FAF0"/>
|
|
23
|
+
</linearGradient>
|
|
24
|
+
<circle cx="80" cy="407.1" r="32" fill="url(#SVGID_4_)"/>
|
|
25
|
+
<linearGradient id="SVGID_5_" x1="352" x2="416" y1="381.148" y2="381.148" gradientTransform="matrix(1 0 0 -1 0 656.2963)" gradientUnits="userSpaceOnUse">
|
|
26
|
+
<stop offset="0" stop-color="#B1EBE1"/>
|
|
27
|
+
<stop offset="1" stop-color="#C1FAF0"/>
|
|
28
|
+
</linearGradient>
|
|
29
|
+
<path fill="url(#SVGID_5_)" d="M352 271.1H416V279.1H352z"/>
|
|
30
|
+
<path d="M201.7 373.4c22.1 22.1 49.5 37.4 79.7 44.7 12.4-28.5 36.5-50.9 67.1-61.1-12-58.4-54.2-106.2-111-125.2-3.3-1.1-5.5-4.1-5.5-7.6v-97.1h-96v97.2c0 3.4-2.2 6.5-5.5 7.6-44.3 14.9-79.1 46.9-98.2 87.3h38.2c49.5-.1 96.1 19.2 131.2 54.2z" class="st5"/>
|
|
31
|
+
<linearGradient id="SVGID_6_" x1="120" x2="248" y1="553.148" y2="553.148" gradientTransform="matrix(1 0 0 -1 0 656.2963)" gradientUnits="userSpaceOnUse">
|
|
32
|
+
<stop offset="0" stop-color="#B1EBE1"/>
|
|
33
|
+
<stop offset="1" stop-color="#C1FAF0"/>
|
|
34
|
+
</linearGradient>
|
|
35
|
+
<path fill="url(#SVGID_6_)" d="M120 95.1H248V111.1H120z"/>
|
|
36
|
+
<linearGradient id="SVGID_7_" x1="328" x2="360" y1="153.148" y2="153.148" gradientTransform="matrix(1 0 0 -1 0 656.2963)" gradientUnits="userSpaceOnUse">
|
|
37
|
+
<stop offset="0" stop-color="#B1EBE1"/>
|
|
38
|
+
<stop offset="1" stop-color="#C1FAF0"/>
|
|
39
|
+
</linearGradient>
|
|
40
|
+
<circle cx="344" cy="503.1" r="16" fill="url(#SVGID_7_)"/>
|
|
41
|
+
<linearGradient id="SVGID_8_" x1="288.1" x2="474.7" y1="168.948" y2="168.948" gradientTransform="matrix(1 0 0 -1 0 656.2963)" gradientUnits="userSpaceOnUse">
|
|
42
|
+
<stop offset="0" stop-color="#3CBBEB"/>
|
|
43
|
+
<stop offset="1" stop-color="#B1DBEB"/>
|
|
44
|
+
</linearGradient>
|
|
45
|
+
<path fill="url(#SVGID_8_)" d="M386 452.4c-22.9-22.9-53-35.9-85.2-37-8.1 14.1-12.7 30.5-12.7 47.8 0 52.9 43.1 96 96 96 42 0 77.6-27.1 90.6-64.6-33.2-3.1-64-17.4-87.9-41.3l-.8-.9zm-42 82.7c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm72-40c13.2 0 24 10.8 24 24s-10.8 24-24 24-24-10.8-24-24 10.8-24 24-24z"/>
|
|
46
|
+
<linearGradient id="SVGID_9_" x1="408" x2="424" y1="137.148" y2="137.148" gradientTransform="matrix(1 0 0 -1 0 656.2963)" gradientUnits="userSpaceOnUse">
|
|
47
|
+
<stop offset="0" stop-color="#B1EBE1"/>
|
|
48
|
+
<stop offset="1" stop-color="#C1FAF0"/>
|
|
49
|
+
</linearGradient>
|
|
50
|
+
<circle cx="416" cy="519.1" r="8" fill="url(#SVGID_9_)"/>
|
|
51
|
+
<path d="M406.2 369.8c-3.6-.9-6.2-4.1-6.2-7.8v-66.9h-32V362c0 3.7-2.6 6.9-6.2 7.8-20.1 4.8-37.4 15.6-50.2 30.2 32.3 3.5 62.3 17.7 85.6 41l.8.8c21.8 21.8 50.1 34.6 80.6 36.8.8-5.1 1.4-10.2 1.4-15.5 0-44.7-30.4-83-73.8-93.3z" class="st5"/>
|
|
52
|
+
<g>
|
|
53
|
+
<path d="M216 487.1c-13.2 0-24 10.8-24 24s10.8 24 24 24 24-10.8 24-24-10.8-24-24-24zm0 32c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8zM128 471.1c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm0 48c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM128 407.1c0-26.5-21.5-48-48-48s-48 21.5-48 48 21.5 48 48 48 48-21.5 48-48zm-48 32c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32z" class="st10"/>
|
|
54
|
+
<path d="M416 355.8v-60.7h8c4.4 0 8-3.6 8-8v-24c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v24c0 .2.1.4.1.6-21.2-31.1-51.7-55.6-88.1-69.1v-91.5h8c4.4 0 8-3.6 8-8v-32c0-4.4-3.6-8-8-8H112c-4.4 0-8 3.6-8 8v32c0 4.4 3.6 8 8 8h8v91.5C48 245.3 0 313.9 0 391.1c0 101.5 82.5 184 184 184 41.5 0 81.9-14.2 114.4-40 20.6 24.4 51.3 40 85.6 40 61.8 0 112-50.2 112-112 0-50-32.6-93.2-80-107.3zm-64-84.7h64v8h-64v-8zm-8 24h8v21c-3.4-7.6-7.3-15-11.7-22.1 1.1.7 2.3 1.1 3.7 1.1zm-224-200h128v16H120v-16zm10.5 136.7c3.3-1.1 5.5-4.1 5.5-7.6v-97.1h96v97.2c0 3.4 2.2 6.5 5.5 7.6 56.8 19.1 99 66.9 111 125.2-30.6 10.2-54.7 32.6-67.1 61.1-30.2-7.3-57.6-22.6-79.7-44.7-35-35-81.6-54.3-131.2-54.3H32.3c19.1-40.4 53.9-72.5 98.2-87.4zM184 559.1c-92.6 0-168-75.4-168-168 0-19.5 3.4-38.4 9.7-56h44.8c45.3 0 87.9 17.6 119.9 49.7 23.8 23.8 53.3 40.4 85.7 48.6-2.6 9.5-4 19.5-4 29.8 0 21.7 6.3 41.9 17 59-29.8 23.7-66.9 36.9-105.1 36.9zm200 0c-52.9 0-96-43.1-96-96 0-17.3 4.6-33.6 12.7-47.8 32.2 1.2 62.3 14.1 85.2 37l.8.8c23.9 23.9 54.7 38.2 87.9 41.3-13 37.6-48.6 64.7-90.6 64.7zm94.6-80.5c-30.4-2.2-58.8-15-80.6-36.8l-.8-.8c-23.3-23.3-53.3-37.5-85.6-41 12.8-14.6 30-25.5 50.2-30.2 3.6-.8 6.2-4.1 6.2-7.8v-66.9h32V362c0 3.7 2.5 6.9 6.2 7.8 43.4 10.3 73.8 48.6 73.8 93.3 0 5.3-.5 10.5-1.4 15.5z" class="st10"/>
|
|
55
|
+
<path d="M416 495.1c-13.2 0-24 10.8-24 24s10.8 24 24 24 24-10.8 24-24-10.8-24-24-24zm0 32c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8zM344 471.1c-17.6 0-32 14.4-32 32s14.4 32 32 32 32-14.4 32-32-14.4-32-32-32zm0 48c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z" class="st10"/>
|
|
56
|
+
</g>
|
|
57
|
+
<g>
|
|
58
|
+
<linearGradient id="SVGID_10_" x1="359" x2="522" y1="753.648" y2="753.648" gradientTransform="matrix(1 0 0 1 0 -654)" gradientUnits="userSpaceOnUse">
|
|
59
|
+
<stop offset="0" stop-color="#E35F5F"/>
|
|
60
|
+
<stop offset="1" stop-color="#F29D9D"/>
|
|
61
|
+
</linearGradient>
|
|
62
|
+
<path fill="url(#SVGID_10_)" d="M440 18.6c-44.7 0-81 36.3-81 81s36.3 81 81 81c45.2 0 82-36.3 82-81s-36.8-81-82-81z"/>
|
|
63
|
+
<path d="M510.4 29.6c-19-18.7-44-29-70.4-29-54.6 0-99 44.4-99 99s44.4 99 99 99c55.1 0 100-44.4 100-99 0-26.4-10.5-51.2-29.6-70zm-70.4 151c-44.7 0-81-36.3-81-81s36.3-81 81-81c45.2 0 82 36.3 82 81s-36.8 81-82 81z" class="st10"/>
|
|
64
|
+
<path d="M449.4 101.5l26-26c2.5-2.5 2.5-6.4 0-8.9s-6.4-2.5-8.9 0l-26 26-26-26c-2.5-2.5-6.4-2.5-8.9 0s-2.5 6.4 0 8.9l26 26-26 26c-2.5 2.5-2.5 6.4 0 8.9 1.2 1.2 2.8 1.8 4.4 1.8s3.2-.6 4.4-1.8l26-26 26 26c1.2 1.2 2.8 1.8 4.4 1.8s3.2-.6 4.4-1.8c2.5-2.5 2.5-6.4 0-8.9l-25.8-26z" class="st10"/>
|
|
65
|
+
</g>
|
|
66
|
+
</svg>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.ParameterButton = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _styles = require("../styles");
|
|
13
|
+
|
|
14
|
+
var ParameterButton = function ParameterButton(_ref) {
|
|
15
|
+
var number = _ref.number,
|
|
16
|
+
title = _ref.title,
|
|
17
|
+
onClick = _ref.onClick,
|
|
18
|
+
active = _ref.active;
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
20
|
+
onClick: onClick,
|
|
21
|
+
className: active ? 'active' : ''
|
|
22
|
+
}, /*#__PURE__*/_react.default.createElement(_styles.Text, {
|
|
23
|
+
fontWeight: "600"
|
|
24
|
+
}, number, " "), /*#__PURE__*/_react.default.createElement(_styles.Text, {
|
|
25
|
+
fontWeight: "600"
|
|
26
|
+
}, title));
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
exports.ParameterButton = ParameterButton;
|