@kando-env/kando-ui 1.0.12 → 1.0.14-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/lib/CovidView/views/components/Body.js +3 -3
  2. package/lib/CovidView/views/components/Map.js +4 -4
  3. package/lib/CovidView/views/components/MapStyle.scss +4 -0
  4. package/lib/CovidView/views/components/Sidebar.js +2 -2
  5. package/lib/CovidView/views/components/Summary.js +3 -3
  6. package/lib/CovidView/views/components/TrendGraphNVL/TrendGraphNVL.js +4 -4
  7. package/lib/CovidView/views/components/TrendGraphNVL/index.js +1 -1
  8. package/lib/CovidView/views/components/TrendPopupContent/TrendPopupContent.js +6 -10
  9. package/lib/CovidView/views/components/TrendPopupContent/index.js +1 -1
  10. package/lib/CovidView/views/components/areas/Area.js +3 -3
  11. package/lib/CovidView/views/components/areas/AreaPolygonWBE.js +2 -2
  12. package/lib/CovidView/views/components/areas/AreaPolygonsWBE.js +2 -2
  13. package/lib/CovidView/views/components/areas/AreasList.js +3 -3
  14. package/lib/CovidView/views/components/areas/Sort.js +3 -3
  15. package/lib/CovidView/views/covidView.js +2 -2
  16. package/lib/DashboardV2/AreaDashboard.js +4 -4
  17. package/lib/DashboardV2/Header/DoubleTabs/DoubleTabs.js +95 -0
  18. package/lib/DashboardV2/Header/DoubleTabs/DoubleTabs.stories.js +30 -0
  19. package/lib/DashboardV2/Header/DoubleTabs/styles.js +31 -0
  20. package/lib/DashboardV2/Header/Header.js +20 -0
  21. package/lib/DashboardV2/Header/Header.stories.js +28 -0
  22. package/lib/DashboardV2/Header/InfoBar/Breadcrumbs/Breadcrumbs.js +50 -0
  23. package/lib/DashboardV2/Header/InfoBar/Breadcrumbs/right-arrow-bold.svg +44 -0
  24. package/lib/DashboardV2/Header/InfoBar/Breadcrumbs/right-arrow-light.svg +44 -0
  25. package/lib/DashboardV2/Header/InfoBar/InfoBar.js +63 -0
  26. package/lib/DashboardV2/Header/Toolbar/Toolbar.js +114 -0
  27. package/lib/DashboardV2/Header/Toolbar/arrow.svg +44 -0
  28. package/lib/DashboardV2/Header/Toolbar/user.svg +3 -0
  29. package/lib/DashboardV2/SamplingParameters/NoResults/NoResults.js +18 -10
  30. package/lib/DashboardV2/SamplingParameters/NoResults/NoResults.stories.js +1 -1
  31. package/lib/DashboardV2/SamplingParameters/ParametersContainer/ParametersButtons/ParameterButton/ParameterButton.js +1 -1
  32. package/lib/DashboardV2/SamplingParameters/ParametersContainer/ParametersButtons/ParametersButtons.js +3 -7
  33. package/lib/DashboardV2/SamplingParameters/ParametersContainer/ParametersButtons/styles.js +1 -1
  34. package/lib/DashboardV2/SamplingParameters/ParametersContainer/ParametersContainer.js +3 -3
  35. package/lib/DashboardV2/SamplingParameters/SamplingContainer/ExceptionBar/ExceptionBar.js +3 -7
  36. package/lib/DashboardV2/SamplingParameters/SamplingContainer/ExceptionBar/ExceptionBar.stories.js +1 -1
  37. package/lib/DashboardV2/SamplingParameters/SamplingContainer/ExceptionBar/styles.js +1 -1
  38. package/lib/DashboardV2/SamplingParameters/SamplingContainer/ExpandableSamplingTable/ExpandableSamplingTable.js +14 -14
  39. package/lib/DashboardV2/SamplingParameters/SamplingContainer/ExpandableSamplingTable/ExpandableSamplingTable.scss +20 -19
  40. package/lib/DashboardV2/SamplingParameters/SamplingContainer/SamplingContainer.js +1 -1
  41. package/lib/DashboardV2/SamplingParameters/SamplingParameters.js +7 -8
  42. package/lib/DashboardV2/SamplingParameters/SamplingParameters.stories.js +2 -3
  43. package/lib/DashboardV2/SamplingParameters/charts/ParametersChart.js +2 -2
  44. package/lib/DashboardV2/SamplingParameters/charts/SamplingChart.js +2 -2
  45. package/lib/DashboardV2/SamplingParameters/dataParser.js +2 -2
  46. package/lib/DashboardV2/SamplingParameters/styles/samplingParameters.js +13 -8
  47. package/lib/DashboardV2/SamplingParameters/styles/styles.js +5 -6
  48. package/lib/DashboardV2/SiteDashboard.js +14 -13
  49. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/AreaBox/AreaBox.js +21 -19
  50. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/AreaBox/Map/Map.js +2 -2
  51. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/AreaBox/Map/Map.scss +9 -2
  52. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/AreaBox/PieChart/PieChart.js +3 -3
  53. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/AreaBox/styles.js +2 -2
  54. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/Areas.js +18 -23
  55. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/areas.mock.js +234 -0
  56. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Areas/styles.js +1 -1
  57. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Factories/Factories.js +21 -25
  58. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Factories/FactoryBox/FactoryBox.js +16 -44
  59. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Factories/FactoryBox/PieChart/PieChart.js +2 -2
  60. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Factories/FactoryBox/styles.js +1 -1
  61. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Factories/factories.mock.js +4296 -0
  62. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Factories/factoriesResponse.interface.js +5 -0
  63. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Factories/styles.js +1 -1
  64. package/lib/DashboardV2/UtilityDashboard/MostPolluting/MostPolluting.js +19 -18
  65. package/lib/DashboardV2/UtilityDashboard/MostPolluting/MostPolluting.stories.js +75 -107
  66. package/lib/DashboardV2/UtilityDashboard/MostPolluting/ShowMore/ShowMore.js +1 -1
  67. package/lib/DashboardV2/UtilityDashboard/MostPolluting/ShowMore/styles.js +1 -1
  68. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Tabs/Tabs.js +22 -30
  69. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Tabs/Tabs.stories.js +1 -1
  70. package/lib/DashboardV2/UtilityDashboard/MostPolluting/Tabs/assets/index.js +5 -5
  71. package/lib/DashboardV2/UtilityDashboard/MostPolluting/assets/index.js +6 -6
  72. package/lib/DashboardV2/UtilityDashboard/MostPolluting/models.js +0 -1
  73. package/lib/DashboardV2/UtilityDashboard/MostPolluting/styles.js +1 -1
  74. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/MostSevereEvents.js +47 -24
  75. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/MostSevereEvents.scss +12 -7
  76. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/MostSevereEvents.stories.js +1 -1
  77. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/NoEvents/NoEvents.js +17 -9
  78. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/NoEvents/NoEvents.stories.js +1 -1
  79. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/SevereEvent/SevereEvent.js +24 -39
  80. package/lib/DashboardV2/UtilityDashboard/MostSevereEvents/SevereEvent/SevereEvent.scss +54 -23
  81. package/lib/DashboardV2/UtilityDashboard/TopBar/MostCommon/Back/Back.js +5 -6
  82. package/lib/DashboardV2/UtilityDashboard/TopBar/MostCommon/MostCommon.js +7 -7
  83. package/lib/DashboardV2/UtilityDashboard/TopBar/MostCommon/styles.js +1 -1
  84. package/lib/DashboardV2/UtilityDashboard/TopBar/QualitySummary/PieChart/PieChart.js +7 -10
  85. package/lib/DashboardV2/UtilityDashboard/TopBar/QualitySummary/PollutedLine/PollutedLine.js +2 -2
  86. package/lib/DashboardV2/UtilityDashboard/TopBar/QualitySummary/QualitySummary.js +33 -21
  87. package/lib/DashboardV2/UtilityDashboard/TopBar/QualitySummary/qualitySummary.mock.js +29 -0
  88. package/lib/DashboardV2/UtilityDashboard/TopBar/QualitySummary/qualitySummaryResponse.interface.js +5 -0
  89. package/lib/DashboardV2/UtilityDashboard/TopBar/QualitySummary/styles.js +2 -2
  90. package/lib/DashboardV2/UtilityDashboard/TopBar/TopBar.js +2 -22
  91. package/lib/DashboardV2/UtilityDashboard/TopBar/UtilityInformation/UtilityInformation.js +52 -16
  92. package/lib/DashboardV2/UtilityDashboard/TopBar/UtilityInformation/UtilityInformationResponse.interface.js +5 -0
  93. package/lib/DashboardV2/UtilityDashboard/TopBar/UtilityInformation/styles.js +3 -3
  94. package/lib/DashboardV2/UtilityDashboard/TopBar/UtilityInformation/utilityInformation.mock.js +14 -0
  95. package/lib/DashboardV2/UtilityDashboard/TopBar/styles.js +1 -1
  96. package/lib/DashboardV2/UtilityDashboard/UtilityDashboard.js +1 -1
  97. package/lib/DashboardV2/UtilityDashboard/UtilityDashboard.stories.js +63 -121
  98. package/lib/DashboardV2/UtilityDashboard/initMsw.js +16 -0
  99. package/lib/DashboardV2/WaterAuthorityDashboard.js +13 -5
  100. package/lib/DashboardV2/index.js +1 -1
  101. package/lib/DashboardV2/useApiWithDashboardQuery.js +57 -0
  102. package/lib/EventsView/views/components/Body.js +48 -26
  103. package/lib/EventsView/views/components/areas/AreaPolygon.js +2 -2
  104. package/lib/EventsView/views/components/areas/AreaPolygons.js +3 -3
  105. package/lib/EventsView/views/components/edges/Edge.js +2 -2
  106. package/lib/EventsView/views/components/edges/Edges.js +2 -2
  107. package/lib/EventsView/views/components/events/EventIndicator.js +2 -2
  108. package/lib/EventsView/views/components/events/EventPath.js +2 -2
  109. package/lib/EventsView/views/components/events/MoreInfo.js +2 -2
  110. package/lib/EventsView/views/components/events/Sidebar.js +2 -2
  111. package/lib/EventsView/views/components/events/event_info/EarlyWarnings.js +2 -2
  112. package/lib/EventsView/views/components/events/event_info/EventDetails.js +1 -1
  113. package/lib/EventsView/views/components/events/event_info/EventInfo.js +3 -3
  114. package/lib/EventsView/views/components/events/event_info/EventTimeRange.js +3 -3
  115. package/lib/EventsView/views/components/events/event_info/HistoricalInformation.js +1 -1
  116. package/lib/EventsView/views/components/events/event_info/MiniEventTree.js +3 -3
  117. package/lib/EventsView/views/components/events/event_info/MobileEventPath.js +1 -1
  118. package/lib/EventsView/views/components/events/event_info/PollutionDischarge.js +2 -2
  119. package/lib/EventsView/views/components/events/event_info/charts/EventDetailsLineChart.js +3 -3
  120. package/lib/EventsView/views/components/events/event_info/charts/EventDetailsPieChart.js +3 -3
  121. package/lib/EventsView/views/components/events/event_info/damage_type/DamageType.js +3 -3
  122. package/lib/EventsView/views/components/events/event_info/samplings/Sampling.js +1 -1
  123. package/lib/EventsView/views/components/events/event_info/samplings/Samplings.js +1 -1
  124. package/lib/EventsView/views/components/events/event_info/sources/Source.js +1 -1
  125. package/lib/EventsView/views/components/events/event_info/sources/Sources.js +2 -2
  126. package/lib/EventsView/views/components/events/events_list/EventItem.js +2 -2
  127. package/lib/EventsView/views/components/events/events_list/EventsList.js +3 -3
  128. package/lib/EventsView/views/components/events/events_list/Filter/Filter.js +3 -3
  129. package/lib/EventsView/views/components/events/events_list/Filter/FilterContainer.js +4 -4
  130. package/lib/EventsView/views/components/events/events_list/Filter/FilterItem.js +2 -2
  131. package/lib/EventsView/views/components/events/events_list/Filter/FiltersDropDown.js +2 -2
  132. package/lib/EventsView/views/components/events/events_list/Filter/OptionsDropDown.js +4 -4
  133. package/lib/EventsView/views/components/events/events_list/Sort.js +3 -3
  134. package/lib/EventsView/views/components/map/FloatingGraph.js +1 -1
  135. package/lib/EventsView/views/components/map/Map.js +8 -11
  136. package/lib/EventsView/views/components/map/Map.stories.js +32 -0
  137. package/lib/EventsView/views/components/map/mapStyle.scss +6 -0
  138. package/lib/EventsView/views/components/points/PointMarker.js +2 -2
  139. package/lib/EventsView/views/components/points/PointMarkers.js +1 -1
  140. package/lib/EventsView/views/eventsView.js +2 -2
  141. package/lib/Router.js +8 -4
  142. package/lib/fonts/Gilroy-ExtraBold.otf +0 -0
  143. package/lib/fonts/Gilroy-Light.otf +0 -0
  144. package/lib/fonts/Gilroy-Regular.otf +0 -0
  145. package/lib/fonts/Gilroy-SemiBold.otf +0 -0
  146. package/lib/index.js +1 -1
  147. package/lib/macros/getVersion.js +9 -0
  148. package/lib/shared/TimeRangeSelector/TimeRangeSelector.js +4 -3
  149. package/lib/shared/TimeRangeSelector/TimeRangeSelector.stories.js +35 -0
  150. package/lib/shared/TimeRangeSelector/index.js +1 -1
  151. package/lib/shared/TimeRangeSelector/styles.scss +6 -4
  152. package/lib/shared/components/Breadcrumbs/Breadcrumbs.js +1 -1
  153. package/lib/shared/components/Breadcrumbs/index.js +1 -1
  154. package/lib/shared/components/ContentLoader/ContentLoader.js +1 -1
  155. package/lib/shared/components/DamageType/DamageType.js +3 -3
  156. package/lib/shared/components/DamageType/index.js +1 -1
  157. package/lib/shared/components/DischargeHeatmap/DischargeHeatmap.js +3 -3
  158. package/lib/shared/components/DischargeHeatmap/index.js +1 -1
  159. package/lib/shared/components/DoubleTabs/DoubleTabs.js +1 -1
  160. package/lib/shared/components/DoubleTabs/DoubleTabs.stories.js +1 -1
  161. package/lib/shared/components/DoubleTabs/styles.js +13 -8
  162. package/lib/shared/components/ErrorBoundary.js +6 -12
  163. package/lib/shared/components/Events/Events.js +3 -3
  164. package/lib/shared/components/Events/index.js +1 -1
  165. package/lib/shared/components/Graph/Graph.js +7 -11
  166. package/lib/shared/components/Graph/index.js +1 -1
  167. package/lib/shared/components/InfoBar/InfoBar.js +74 -0
  168. package/lib/shared/components/InfoBar/InfoBar.stories.js +31 -0
  169. package/lib/shared/components/KandoModal/KandoModal.js +3 -3
  170. package/lib/shared/components/KandoModal/index.js +1 -1
  171. package/lib/shared/components/KandoNavbar/KandoNavbar.js +20 -18
  172. package/lib/shared/components/KandoNavbar/index.js +1 -1
  173. package/lib/shared/components/LiveEvents/CarouselSlide.js +1 -1
  174. package/lib/shared/components/LiveEvents/LiveEvents.js +1 -1
  175. package/lib/shared/components/LiveEvents/index.js +1 -1
  176. package/lib/shared/components/LoaderByPercent/LoaderByPercent.js +1 -1
  177. package/lib/shared/components/Map/Map.js +3 -3
  178. package/lib/shared/components/Map/index.js +1 -1
  179. package/lib/shared/components/NarrowHeader.js +6 -12
  180. package/lib/shared/components/PointInfo/PointInfo.js +1 -1
  181. package/lib/shared/components/PointInfo/index.js +1 -1
  182. package/lib/shared/components/PopupModal/PopupModal.js +44 -0
  183. package/lib/shared/components/PopupModal/PopupModal.stories.js +52 -0
  184. package/lib/shared/components/Search/Search.js +8 -16
  185. package/lib/shared/components/Search/index.js +1 -1
  186. package/lib/shared/components/Sector/Sector.js +4 -8
  187. package/lib/shared/components/Sector/index.js +1 -1
  188. package/lib/shared/components/Select/Select.js +6 -10
  189. package/lib/shared/components/Select/Select.stories.js +1 -1
  190. package/lib/shared/components/Spinner/Spinner.js +1 -1
  191. package/lib/shared/components/Spinner/Spinner.stories.js +1 -1
  192. package/lib/shared/components/Spinner/index.js +1 -1
  193. package/lib/shared/components/Spinner/style/spinner.js +9 -7
  194. package/lib/shared/components/Toggle/Toggle.js +3 -3
  195. package/lib/shared/components/Toggle/index.js +1 -1
  196. package/lib/shared/components/TrendGraph/TrendGraph.js +8 -11
  197. package/lib/shared/components/TrendGraph/index.js +1 -1
  198. package/lib/shared/components/TrendGraphNVL/TrendGraphNVL.js +3 -3
  199. package/lib/shared/components/TrendGraphNVL/index.js +1 -1
  200. package/lib/shared/redux/WBE/reducer.js +3 -7
  201. package/lib/shared/redux/context/reducer.js +3 -7
  202. package/lib/shared/redux/dashboard/dashboardSlice.js +23 -0
  203. package/lib/shared/redux/edges/reducer.js +2 -2
  204. package/lib/shared/redux/events/reducer.js +7 -11
  205. package/lib/shared/redux/rootReducer.js +4 -1
  206. package/lib/shared/redux/rootStore.js +14 -5
  207. package/lib/shared/utilities/ErrorBoundary.js +6 -12
  208. package/lib/shared/utilities/KandoDate.js +4 -3
  209. package/lib/shared/utilities/KandoModal.js +3 -3
  210. package/lib/shared/utilities/TimeFormat.js +2 -2
  211. package/lib/shared/utilities/Truncate.js +3 -3
  212. package/lib/shared/utilities/custom_hooks/useApi.js +11 -5
  213. package/lib/shared/utilities/custom_hooks/useKandoFetch.js +2 -2
  214. package/lib/shared/utilities/custom_hooks/useMap.js +3 -3
  215. package/lib/shared/utilities/custom_hooks/useWindowSize.js +2 -2
  216. package/lib/shared/utilities/i18n.js +3 -3
  217. package/lib/styles.scss +38 -0
  218. package/package.json +17 -8
  219. package/lib/DashboardV2/UtilityDashboard/mocks/areas.mock.js +0 -320
  220. package/lib/DashboardV2/UtilityDashboard/mocks/events.mock.js +0 -345
  221. package/lib/DashboardV2/UtilityDashboard/mocks/factories.mock.js +0 -140
  222. package/lib/DashboardV2/UtilityDashboard/mocks/index.js +0 -29
  223. /package/lib/DashboardV2/UtilityDashboard/{TopBar/models.js → MostPolluting/Areas/areasResponse.interface.js} +0 -0
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
+ var _interopRequireDefault = require("/Users/adam/clients/kando/kando-ui/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.useWindowSize = useWindowSize;
9
9
 
10
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
+ var _slicedToArray2 = _interopRequireDefault(require("/Users/adam/clients/kando/kando-ui/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/slicedToArray"));
11
11
 
12
12
  var _react = require("react");
13
13
 
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
+ var _interopRequireDefault = require("/Users/adam/clients/kando/kando-ui/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/interopRequireDefault");
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
9
 
10
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
+ var _classCallCheck2 = _interopRequireDefault(require("/Users/adam/clients/kando/kando-ui/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck"));
11
11
 
12
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
12
+ var _createClass2 = _interopRequireDefault(require("/Users/adam/clients/kando/kando-ui/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass"));
13
13
 
14
14
  var i18n = /*#__PURE__*/function () {
15
15
  function i18n() {
@@ -0,0 +1,38 @@
1
+ @font-face {
2
+ font-family: 'Gilroy';
3
+ src: url('./fonts/Gilroy-Light.otf') format('opentype');
4
+ font-weight: 300;
5
+ font-style: normal;
6
+ }
7
+
8
+ @font-face {
9
+ font-family: 'Gilroy';
10
+ src: url('./fonts/Gilroy-ExtraBold.otf') format('opentype');
11
+ font-weight: 700;
12
+ font-style: normal;
13
+ }
14
+
15
+ @font-face {
16
+ font-family: 'Gilroy';
17
+ src: url('./fonts/Gilroy-Regular.otf') format('opentype');
18
+ font-weight: 400;
19
+ font-style: normal;
20
+ }
21
+
22
+ @font-face {
23
+ font-family: 'Gilroy';
24
+ src: url('./fonts/Gilroy-SemiBold.otf') format('opentype');
25
+ font-weight: 600;
26
+ font-style: normal;
27
+ }
28
+
29
+
30
+
31
+
32
+ *,*::after,*::before {
33
+ font-family: Gilroy ;
34
+ box-sizing: border-box;
35
+ margin: 0;
36
+ padding: 0;
37
+
38
+ }
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@kando-env/kando-ui",
3
- "version": "1.0.12",
3
+ "version": "1.0.14-alpha.0",
4
4
  "main": "lib/index.js",
5
5
  "author": "Nadav(Private) <nadavk72@gmail.com>",
6
- "license": "UNLICENSED",
7
6
  "scripts": {
8
- "start": "cross-env TSC_COMPILE_ON_ERROR=true react-scripts start",
7
+ "start": "cross-env TSC_COMPILE_ON_ERROR=true PORT=3005 react-scripts start",
9
8
  "test": "TSC_COMPILE_ON_ERROR=true react-scripts test",
10
9
  "build-demo": "cross-env TSC_COMPILE_ON_ERROR=true react-scripts build",
11
10
  "serve-demo": "nodemon demo-server.js",
@@ -14,22 +13,24 @@
14
13
  "babel-watch": "cross-env NODE_ENV=production babel src/bundles --watch --extensions .ts,.tsx,.js,.jsx --out-dir lib --copy-files --ignore __tests__,spec.js,test.js,stories.js,__snapshots__",
15
14
  "build-watch": "npm run babel-watch",
16
15
  "build": "npm run pre-build && npm run babel",
17
- "storybook": "start-storybook -p 6006 -s ./static",
18
- "build-storybook": "build-storybook -s ./static",
16
+ "storybook": "start-storybook -p 6006 -s ./public",
17
+ "build-storybook": "build-storybook -s ./public",
19
18
  "lint-staged": "lint-staged",
20
- "pretty-staged": "pretty-quick --staged"
19
+ "pretty-staged": "pretty-quick --staged",
20
+ "version-alpha": "npm version prepatch --preid alpha"
21
21
  },
22
+ "proxy": "http://localhost:3000",
22
23
  "engines": {
23
24
  "node": "12"
24
25
  },
25
26
  "dependencies": {
26
27
  "@babel/plugin-transform-runtime": "^7.14.5",
27
- "@babel/preset-react": "^7.14.5",
28
28
  "@babel/runtime": "^7.14.6",
29
29
  "@fortawesome/fontawesome-svg-core": "^1.2.30",
30
30
  "@fortawesome/free-solid-svg-icons": "^5.14.0",
31
31
  "@fortawesome/react-fontawesome": "^0.1.11",
32
32
  "@kenshooui/react-multi-select": "^1.1.6",
33
+ "@reduxjs/toolkit": "^1.6.1",
33
34
  "@storybook/addon-postcss": "^2.0.0",
34
35
  "@svgr/webpack": "^5.5.0",
35
36
  "@testing-library/jest-dom": "^4.2.4",
@@ -53,8 +54,12 @@
53
54
  "axios": "^0.21.1",
54
55
  "babel-eslint": "^10.0.0",
55
56
  "babel-loader": "8.1.0",
57
+ "babel-plugin-named-asset-import": "^0.3.7",
58
+ "babel-plugin-styled-components": "^1.13.2",
56
59
  "babel-preset-react": "^6.24.1",
60
+ "babel-preset-react-app": "^10.0.0",
57
61
  "bootstrap": "^4.5.3",
62
+ "dayjs": "^1.10.6",
58
63
  "eslint": "^7.5.0",
59
64
  "eslint-config-react-app": "^6.0.0",
60
65
  "eslint-plugin-flowtype": "^5.2.0",
@@ -66,6 +71,7 @@
66
71
  "highcharts-react-official": "^3.0.0",
67
72
  "immer": "^8.0.1",
68
73
  "jquery": "^3.5.1",
74
+ "js-yaml": "^4.1.0",
69
75
  "leaflet": "^1.6.0",
70
76
  "leaflet-geometryutil": "^0.9.3",
71
77
  "leaflet-polylinedecorator": "^1.6.0",
@@ -74,6 +80,7 @@
74
80
  "moment-timezone": "^0.5.33",
75
81
  "msw-storybook-addon": "^1.2.0",
76
82
  "node-sass": "^6.0.1",
83
+ "preval.macro": "^5.0.0",
77
84
  "prop-types": "^15.7.2",
78
85
  "react": "^16.13.0",
79
86
  "react-bootstrap": "^1.4.0",
@@ -130,11 +137,13 @@
130
137
  "pretty-quick": "^3.1.1",
131
138
  "react-refresh": "^0.9.0",
132
139
  "react-scripts": "^4.0.3",
140
+ "redux-devtools-extension": "^2.13.9",
133
141
  "rimraf": "^3.0.2",
134
142
  "thread-loader": "^3.0.1",
135
143
  "webpack-bundle-analyzer": "^4.4.0"
136
144
  },
137
145
  "lint-staged": {
138
146
  "*": "eslint"
139
- }
147
+ },
148
+ "license": "UNLICENSED"
140
149
  }
@@ -1,320 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.areasArr = void 0;
7
- var areasArr = [{
8
- title: 'Vallese - indsutrial zon.',
9
- percent: 0.1,
10
- factories: 5,
11
- status: 'high',
12
- locationLatLon: [32.0929012, 34.8072057],
13
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
14
- quality: {
15
- extreme: 20,
16
- high: 5,
17
- medium: 50,
18
- rest: 25
19
- }
20
- }, {
21
- title: 'South Industrial',
22
- percent: -0.2,
23
- factories: 3,
24
- locationLatLon: [32.0929012, 34.8072057],
25
- status: 'high',
26
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
27
- quality: {
28
- extreme: 5,
29
- high: 3,
30
- medium: 17,
31
- rest: 75
32
- }
33
- }, {
34
- title: 'North Industrial',
35
- percent: 0.4,
36
- factories: 2,
37
- locationLatLon: [32.0929012, 34.8072057],
38
- status: 'high',
39
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
40
- quality: {
41
- extreme: 20,
42
- high: 5,
43
- medium: 50,
44
- rest: 25
45
- }
46
- }, {
47
- title: 'Ca Degli Oppin',
48
- percent: -0.3,
49
- factories: 2,
50
- locationLatLon: [32.0929012, 34.8072057],
51
- status: 'high',
52
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
53
- quality: {
54
- extreme: 5,
55
- high: 3,
56
- medium: 17,
57
- rest: 75
58
- }
59
- }, {
60
- title: 'South Industrial',
61
- percent: 0.2,
62
- factories: 3,
63
- locationLatLon: [32.0929012, 34.8072057],
64
- status: 'none',
65
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
66
- quality: {
67
- extreme: 20,
68
- high: 5,
69
- medium: 50,
70
- rest: 25
71
- }
72
- }, {
73
- title: 'Ca Degli Oppin',
74
- percent: -0.3,
75
- factories: 2,
76
- locationLatLon: [32.0929012, 34.8072057],
77
- status: 'medium',
78
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
79
- quality: {
80
- extreme: 5,
81
- high: 3,
82
- medium: 17,
83
- rest: 75
84
- }
85
- }, {
86
- title: 'Ca Degli Oppin',
87
- percent: -0.1,
88
- factories: 5,
89
- locationLatLon: [32.0929012, 34.8072057],
90
- status: 'medium',
91
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
92
- quality: {
93
- extreme: 1,
94
- high: 4,
95
- medium: 35,
96
- rest: 60
97
- }
98
- }, {
99
- title: 'North Industrial',
100
- percent: 0.1,
101
- factories: 2,
102
- locationLatLon: [32.0929012, 34.8072057],
103
- status: 'none',
104
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
105
- quality: {
106
- extreme: 2,
107
- high: 1,
108
- medium: 12,
109
- rest: 85
110
- }
111
- }, {
112
- title: 'Vallese - indsutrial zon.',
113
- percent: 0.1,
114
- factories: 5,
115
- locationLatLon: [32.0929012, 34.8072057],
116
- status: 'high',
117
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
118
- quality: {
119
- extreme: 5,
120
- high: 3,
121
- medium: 17,
122
- rest: 75
123
- }
124
- }, {
125
- title: 'South Industrial',
126
- percent: -0.2,
127
- factories: 3,
128
- locationLatLon: [32.0929012, 34.8072057],
129
- status: 'high',
130
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
131
- quality: {
132
- extreme: 3,
133
- high: 3,
134
- medium: 17,
135
- rest: 77
136
- }
137
- }, {
138
- title: 'North Industrial',
139
- percent: 0.4,
140
- factories: 2,
141
- locationLatLon: [32.0929012, 34.8072057],
142
- status: 'medium',
143
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
144
- quality: {
145
- extreme: 5,
146
- high: 3,
147
- medium: 17,
148
- rest: 75
149
- }
150
- }, {
151
- title: 'Ca Degli Oppin',
152
- percent: -0.3,
153
- factories: 2,
154
- locationLatLon: [32.0929012, 34.8072057],
155
- status: 'high',
156
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
157
- quality: {
158
- extreme: 5,
159
- high: 3,
160
- medium: 17,
161
- rest: 75
162
- }
163
- }, {
164
- title: 'South Industrial',
165
- percent: -0.2,
166
- factories: 3,
167
- locationLatLon: [32.0929012, 34.8072057],
168
- status: 'high',
169
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
170
- quality: {
171
- extreme: 5,
172
- high: 3,
173
- medium: 17,
174
- rest: 75
175
- }
176
- }, {
177
- title: 'Ca Degli Oppin',
178
- percent: 0.3,
179
- factories: 2,
180
- locationLatLon: [32.0929012, 34.8072057],
181
- status: 'medium',
182
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
183
- quality: {
184
- extreme: 5,
185
- high: 3,
186
- medium: 17,
187
- rest: 75
188
- }
189
- }, {
190
- title: 'Ca Degli Oppin',
191
- percent: 0.1,
192
- factories: 5,
193
- locationLatLon: [32.0929012, 34.8072057],
194
- status: 'high',
195
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
196
- quality: {
197
- extreme: 5,
198
- high: 3,
199
- medium: 17,
200
- rest: 75
201
- }
202
- }, {
203
- title: 'North Industrial',
204
- percent: 0.1,
205
- factories: 2,
206
- locationLatLon: [32.0929012, 34.8072057],
207
- status: 'high',
208
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
209
- quality: {
210
- extreme: 5,
211
- high: 3,
212
- medium: 17,
213
- rest: 75
214
- }
215
- }, {
216
- title: 'Vallese - indsutrial zon.',
217
- percent: 0.1,
218
- factories: 5,
219
- locationLatLon: [32.0929012, 34.8072057],
220
- status: 'medium',
221
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
222
- quality: {
223
- extreme: 5,
224
- high: 3,
225
- medium: 17,
226
- rest: 75
227
- }
228
- }, {
229
- title: 'South Industrial',
230
- percent: -0.2,
231
- factories: 3,
232
- locationLatLon: [32.0929012, 34.8072057],
233
- status: 'high',
234
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
235
- quality: {
236
- extreme: 5,
237
- high: 3,
238
- medium: 17,
239
- rest: 75
240
- }
241
- }, {
242
- title: 'North Industrial',
243
- percent: 0.4,
244
- factories: 2,
245
- locationLatLon: [32.0929012, 34.8072057],
246
- status: 'extreme',
247
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
248
- quality: {
249
- extreme: 5,
250
- high: 3,
251
- medium: 17,
252
- rest: 75
253
- }
254
- }, {
255
- title: 'Ca Degli Oppin',
256
- percent: 0.3,
257
- factories: 2,
258
- locationLatLon: [32.0929012, 34.8072057],
259
- status: 'high',
260
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
261
- quality: {
262
- extreme: 5,
263
- high: 3,
264
- medium: 17,
265
- rest: 75
266
- }
267
- }, {
268
- title: 'South Industrial',
269
- percent: -0.2,
270
- factories: 3,
271
- locationLatLon: [32.0929012, 34.8072057],
272
- status: 'high',
273
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
274
- quality: {
275
- extreme: 5,
276
- high: 3,
277
- medium: 17,
278
- rest: 75
279
- }
280
- }, {
281
- title: 'Ca Degli Oppin',
282
- percent: 0.3,
283
- factories: 2,
284
- locationLatLon: [32.0929012, 34.8072057],
285
- status: 'high',
286
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
287
- quality: {
288
- extreme: 5,
289
- high: 3,
290
- medium: 17,
291
- rest: 75
292
- }
293
- }, {
294
- title: 'Ca Degli Oppin',
295
- percent: 0.1,
296
- factories: 5,
297
- locationLatLon: [32.0929012, 34.8072057],
298
- status: 'extreme',
299
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
300
- quality: {
301
- extreme: 5,
302
- high: 3,
303
- medium: 17,
304
- rest: 75
305
- }
306
- }, {
307
- title: 'North Industrial',
308
- percent: 0.1,
309
- factories: 2,
310
- locationLatLon: [32.0929012, 34.8072057],
311
- status: 'extreme',
312
- points: [[32.09464364419881, 34.8044514656067], [32.0943523859244, 34.81043815612794], [32.09074798793366, 34.80904340744019], [32.09103925769882, 34.80406522750855]],
313
- quality: {
314
- extreme: 5,
315
- high: 3,
316
- medium: 17,
317
- rest: 75
318
- }
319
- }];
320
- exports.areasArr = areasArr;