@hisptz/dhis2-analytics 1.0.6 → 1.0.8

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 (86) hide show
  1. package/build/cjs/components/ChartAnalytics/index.js +14 -5
  2. package/build/cjs/components/Map/components/MapControls/components/DownloadControl/index.js +1 -1
  3. package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js +6 -2
  4. package/build/es/components/ChartAnalytics/index.js +4 -3
  5. package/build/es/components/Map/components/MapControls/components/DownloadControl/index.js +1 -1
  6. package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js +5 -1
  7. package/build/types/components/ChartAnalytics/components/DownloadMenu/components/Menu.d.ts +8 -0
  8. package/build/types/components/ChartAnalytics/components/DownloadMenu/constants/menu.d.ts +7 -0
  9. package/build/types/components/ChartAnalytics/components/DownloadMenu/index.d.ts +9 -0
  10. package/build/types/components/ChartAnalytics/components/DownloadMenu/interfaces/menu.d.ts +1 -0
  11. package/build/types/components/ChartAnalytics/hooks/useChart.d.ts +11 -0
  12. package/build/types/components/ChartAnalytics/index.d.ts +7 -0
  13. package/build/types/components/ChartAnalytics/models/column.d.ts +12 -0
  14. package/build/types/components/ChartAnalytics/models/index.d.ts +17 -0
  15. package/build/types/components/ChartAnalytics/models/line.d.ts +8 -0
  16. package/build/types/components/ChartAnalytics/models/multi-series.d.ts +9 -0
  17. package/build/types/components/ChartAnalytics/models/pie.d.ts +8 -0
  18. package/build/types/components/ChartAnalytics/services/export.d.ts +8 -0
  19. package/build/types/components/ChartAnalytics/types/props.d.ts +43 -0
  20. package/build/types/components/ChartAnalytics/utils/chart.d.ts +15 -0
  21. package/build/types/components/CircularProgressDashboard/index.d.ts +3 -0
  22. package/build/types/components/CircularProgressDashboard/types/props.d.ts +17 -0
  23. package/build/types/components/Map/components/EarthEngineLayerConfiguration/index.d.ts +17 -0
  24. package/build/types/components/Map/components/MapArea/index.d.ts +5 -0
  25. package/build/types/components/Map/components/MapArea/interfaces/index.d.ts +30 -0
  26. package/build/types/components/Map/components/MapControls/components/CustomControl/index.d.ts +7 -0
  27. package/build/types/components/Map/components/MapControls/components/DownloadControl/index.d.ts +8 -0
  28. package/build/types/components/Map/components/MapControls/components/FullscreenControl/index.d.ts +5 -0
  29. package/build/types/components/Map/components/MapControls/index.d.ts +6 -0
  30. package/build/types/components/Map/components/MapLayer/components/BoundaryLayer/hooks/useBoundaryData.d.ts +1 -0
  31. package/build/types/components/Map/components/MapLayer/components/BoundaryLayer/index.d.ts +15 -0
  32. package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/components/EarthEngineLegend.d.ts +17 -0
  33. package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/constants/index.d.ts +4 -0
  34. package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/hooks/index.d.ts +9 -0
  35. package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/index.d.ts +4 -0
  36. package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/interfaces/index.d.ts +58 -0
  37. package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.d.ts +1 -0
  38. package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.d.ts +55 -0
  39. package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/utils/index.d.ts +20 -0
  40. package/build/types/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.d.ts +6 -0
  41. package/build/types/components/Map/components/MapLayer/components/LegendArea/index.d.ts +9 -0
  42. package/build/types/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.d.ts +3 -0
  43. package/build/types/components/Map/components/MapLayer/components/PointLayer/hooks/index.d.ts +2 -0
  44. package/build/types/components/Map/components/MapLayer/components/PointLayer/index.d.ts +2 -0
  45. package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.d.ts +13 -0
  46. package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubbles.d.ts +10 -0
  47. package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/index.d.ts +16 -0
  48. package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.d.ts +12 -0
  49. package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.d.ts +21 -0
  50. package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.d.ts +12 -0
  51. package/build/types/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.d.ts +5 -0
  52. package/build/types/components/Map/components/MapLayer/components/ThematicLayer/hooks/config.d.ts +2 -0
  53. package/build/types/components/Map/components/MapLayer/components/ThematicLayer/index.d.ts +5 -0
  54. package/build/types/components/Map/components/MapLayer/index.d.ts +6 -0
  55. package/build/types/components/Map/components/MapLayer/interfaces/index.d.ts +123 -0
  56. package/build/types/components/Map/components/MapProvider/components/MapLayerProvider/hooks/index.d.ts +9 -0
  57. package/build/types/components/Map/components/MapProvider/components/MapLayerProvider/index.d.ts +6 -0
  58. package/build/types/components/Map/components/MapProvider/hooks/index.d.ts +15 -0
  59. package/build/types/components/Map/components/MapProvider/index.d.ts +3 -0
  60. package/build/types/components/Map/components/MapUpdater/index.d.ts +5 -0
  61. package/build/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.d.ts +8 -0
  62. package/build/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/constants/colors.d.ts +419 -0
  63. package/build/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.d.ts +9 -0
  64. package/build/types/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/utils/colors.d.ts +11 -0
  65. package/build/types/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.d.ts +2 -0
  66. package/build/types/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.d.ts +8 -0
  67. package/build/types/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.d.ts +9 -0
  68. package/build/types/components/Map/components/ThematicLayerConfiguration/index.d.ts +18 -0
  69. package/build/types/components/Map/constants/colors.d.ts +419 -0
  70. package/build/types/components/Map/constants/legendSet.d.ts +7 -0
  71. package/build/types/components/Map/hooks/map.d.ts +9 -0
  72. package/build/types/components/Map/index.d.ts +8 -0
  73. package/build/types/components/Map/interfaces/index.d.ts +65 -0
  74. package/build/types/components/Map/state/index.d.ts +20 -0
  75. package/build/types/components/Map/utils/colors.d.ts +12 -0
  76. package/build/types/components/Map/utils/helpers.d.ts +6 -0
  77. package/build/types/components/Map/utils/map.d.ts +40 -0
  78. package/build/types/components/SingleValueContainer/components/SingleValueItem/SingleValueItem.d.ts +8 -0
  79. package/build/types/components/SingleValueContainer/components/SingleValueItem/SingleValuePercentage.d.ts +2 -0
  80. package/build/types/components/SingleValueContainer/index.d.ts +5 -0
  81. package/build/types/components/SingleValueContainer/types/props.d.ts +15 -0
  82. package/build/types/dataProviders/map.d.ts +4 -0
  83. package/build/types/index.d.ts +4 -0
  84. package/package.json +7 -3
  85. package/build/cjs/index.test.js +0 -7
  86. package/build/es/index.test.js +0 -6
@@ -4,21 +4,30 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  var _exportNames = {
7
- ChartDownloadMenu: true
7
+ ChartAnalytics: true,
8
+ ChartDownloadMenu: true,
9
+ ChartAnalyticsProps: true
8
10
  };
11
+ exports.ChartAnalytics = void 0;
12
+ Object.defineProperty(exports, "ChartAnalyticsProps", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _props.ChartAnalyticsProps;
16
+ }
17
+ });
9
18
  Object.defineProperty(exports, "ChartDownloadMenu", {
10
19
  enumerable: true,
11
20
  get: function () {
12
21
  return _DownloadMenu.default;
13
22
  }
14
23
  });
15
- exports.default = void 0;
16
24
  var _dhis2Utils = require("@hisptz/dhis2-utils");
17
25
  var _highcharts = _interopRequireDefault(require("highcharts"));
18
26
  var _highchartsReactOfficial = _interopRequireDefault(require("highcharts-react-official"));
19
27
  var _react = _interopRequireWildcard(require("react"));
20
28
  var _DownloadMenu = _interopRequireDefault(require("./components/DownloadMenu"));
21
29
  var _useChart = require("./hooks/useChart");
30
+ var _props = require("./types/props");
22
31
  require("./styles/custom-highchart.css");
23
32
  var _export = require("./services/export");
24
33
  Object.keys(_export).forEach(function (key) {
@@ -35,7 +44,7 @@ Object.keys(_export).forEach(function (key) {
35
44
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
36
45
  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; }
37
46
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
38
- function ChartAnalytics(_ref, ref) {
47
+ function ChartAnalyticsComponent(_ref, ref) {
39
48
  let {
40
49
  analytics,
41
50
  config,
@@ -65,5 +74,5 @@ function ChartAnalytics(_ref, ref) {
65
74
  }
66
75
  });
67
76
  }
68
- var _default = /*#__PURE__*/(0, _react.forwardRef)(ChartAnalytics);
69
- exports.default = _default;
77
+ const ChartAnalytics = /*#__PURE__*/(0, _react.forwardRef)(ChartAnalyticsComponent);
78
+ exports.ChartAnalytics = ChartAnalytics;
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = DownloadControl;
7
- var _react = _interopRequireDefault(require("react"));
8
7
  var _core = require("@react-leaflet/core");
9
8
  var _leaflet = _interopRequireDefault(require("leaflet"));
10
9
  require("leaflet-easyprint");
10
+ var _react = _interopRequireDefault(require("react"));
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
13
13
  const DownloadControlComponent = (0, _core.createControlComponent)(props => {