@hisptz/dhis2-analytics 1.0.28 → 1.0.29

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 (28) hide show
  1. package/build/types/src/components/ChartAnalytics/components/DownloadMenu/components/Menu.d.ts +1 -0
  2. package/build/types/src/components/CustomPivotTable/components/TableBody/index.d.ts +1 -0
  3. package/build/types/src/components/CustomPivotTable/components/TableHeaders/index.d.ts +1 -0
  4. package/build/types/src/components/CustomPivotTable/index.d.ts +1 -0
  5. package/build/types/src/components/Map/components/EarthEngineLayerConfiguration/index.d.ts +1 -0
  6. package/build/types/src/components/Map/components/MapControls/components/DownloadControl/index.d.ts +1 -0
  7. package/build/types/src/components/Map/components/MapControls/index.d.ts +1 -0
  8. package/build/types/src/components/Map/components/MapLayer/components/BoundaryLayer/index.d.ts +1 -0
  9. package/build/types/src/components/Map/components/MapLayer/components/GoogleEngineLayer/index.d.ts +1 -0
  10. package/build/types/src/components/Map/components/MapLayer/components/LegendArea/components/LegendCardHeader/index.d.ts +1 -0
  11. package/build/types/src/components/Map/components/MapLayer/components/LegendArea/index.d.ts +1 -0
  12. package/build/types/src/components/Map/components/MapLayer/components/PointLayer/components/PointLegend/index.d.ts +1 -1
  13. package/build/types/src/components/Map/components/MapLayer/components/PointLayer/index.d.ts +1 -0
  14. package/build/types/src/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/components/BubbleLegend/components/Bubble.d.ts +1 -0
  15. package/build/types/src/components/Map/components/MapLayer/components/ThematicLayer/components/Bubble/index.d.ts +1 -0
  16. package/build/types/src/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/index.d.ts +1 -0
  17. package/build/types/src/components/Map/components/MapLayer/components/ThematicLayer/components/CustomTooltip/index.d.ts +1 -0
  18. package/build/types/src/components/Map/components/MapLayer/components/ThematicLayer/index.d.ts +1 -0
  19. package/build/types/src/components/Map/components/MapLayer/index.d.ts +1 -0
  20. package/build/types/src/components/Map/components/MapProvider/index.d.ts +1 -0
  21. package/build/types/src/components/Map/components/MapUpdater/index.d.ts +1 -0
  22. package/build/types/src/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/components/ColorScale/index.d.ts +1 -0
  23. package/build/types/src/components/Map/components/ThematicLayerConfiguration/components/ColorScaleSelect/index.d.ts +1 -0
  24. package/build/types/src/components/Map/components/ThematicLayerConfiguration/components/CustomLegend/index.d.ts +1 -0
  25. package/build/types/src/components/Map/components/ThematicLayerConfiguration/components/IndicatorSelectorModal/index.d.ts +1 -0
  26. package/build/types/src/components/Map/components/ThematicLayerConfiguration/components/LegendSetSelector/index.d.ts +1 -0
  27. package/build/types/src/components/Map/components/ThematicLayerConfiguration/index.d.ts +1 -0
  28. package/package.json +3 -3
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ChartExportMenuItem } from "../interfaces/menu";
2
3
  export declare function ChartMenu({ menuRef, onClick, onClose, exclude, }: {
3
4
  menuRef: HTMLDivElement;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function CustomPivotTableBody(): JSX.Element | null;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function TableHeaders(): JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Analytics, LegendSet } from "@hisptz/dhis2-utils";
2
3
  import { DHIS2Dimension } from "./interfaces";
3
4
  export interface CustomPivotTableProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EarthEngineLayerConfig } from "../MapLayer/interfaces";
2
3
  import { UseFormReturn } from "react-hook-form";
3
4
  export interface EarthEngineLayerConfigurationProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ControlPosition } from "leaflet";
2
3
  import "leaflet-easyprint";
3
4
  export default function DownloadControl({ options, position, mapId }: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { MapControls } from "../MapArea/interfaces";
2
3
  export interface MapControlProps extends MapControls {
3
4
  mapId: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CustomBoundaryLayer as BoundaryLayerInterface } from "../../interfaces";
2
3
  export declare const defaultStyle: {
3
4
  weight: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export default function GoogleEngineLayer({ layerId }: {
2
3
  layerId: string;
3
4
  }): JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export default function LegendCardHeader({ title, collapsible, onCollapse }: {
2
3
  title: string;
3
4
  onCollapse?: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ControlPosition } from "leaflet";
2
3
  import { MapLegendConfig } from "../../../MapArea/interfaces";
3
4
  import { CustomGoogleEngineLayer, CustomPointLayer, CustomThematicLayer } from "../../interfaces";
@@ -1,3 +1,3 @@
1
1
  import React from "react";
2
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLDivElement>>;
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<HTMLDivElement>>;
3
3
  export default _default;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function PointLayer(): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface BubbleProps {
2
3
  radius: number;
3
4
  maxRadius: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Legend } from "@hisptz/dhis2-utils";
2
3
  import { ThematicLayerData } from "../../../../interfaces";
3
4
  export default function Bubble({ data, highestData, legends, radius, }: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Legend } from "@hisptz/dhis2-utils";
2
3
  import { MapOrgUnit } from "../../../../../../interfaces";
3
4
  import { ThematicLayerDataItem } from "../../../../interfaces";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ThematicLayerData } from "../../../../interfaces";
2
3
  export default function CustomTooltip({ data: dataObject }: {
3
4
  data: ThematicLayerData;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export default function ThematicLayer({ layerId, index }: {
2
3
  layerId: string;
3
4
  index: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CustomBoundaryLayer, CustomGoogleEngineLayer, CustomPointLayer, CustomThematicLayer } from "./interfaces";
2
3
  export default function MapLayer({ layer, index, }: {
3
4
  layer: CustomThematicLayer | CustomBoundaryLayer | CustomPointLayer | CustomGoogleEngineLayer;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { MapProviderProps } from "../../interfaces";
2
3
  export declare function MapProvider({ children, orgUnitSelection, periodSelection }: MapProviderProps): JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { LatLngTuple } from "leaflet";
2
3
  export default function MapUpdater({ bounds }: {
3
4
  bounds: LatLngTuple[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const ColorScale: ({ scale, bins, width, onClick }: {
2
3
  scale: string;
3
4
  bins: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const ColorScaleSelect: ({ colorClass, count, width, onChange, className, }: {
2
3
  className?: string | undefined;
3
4
  count: number;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare function CustomLegend(): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export default function IndicatorSelectorModal({ onUpdate, onClose, hide, selected, disabled, ...props }: {
2
3
  onUpdate: (data: any) => void;
3
4
  onClose: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare function LegendSetSelector({ selected, onChange, error, required, ...props }: {
2
3
  selected?: string;
3
4
  onChange: (value: string) => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { UseFormReturn } from "react-hook-form";
2
3
  import { ThematicLayerConfig } from "../MapLayer/interfaces";
3
4
  export interface ThematicLayerConfigurationProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hisptz/dhis2-analytics",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "description": "A collection of reusable react components for visualizing analytics data from DHIS2",
5
5
  "license": "BSD-3-Clause",
6
6
  "scripts": {
@@ -31,7 +31,7 @@
31
31
  "dependencies": {
32
32
  "@dhis2/analytics": "^24.4.2",
33
33
  "@dhis2/app-runtime": "^3.7.0",
34
- "@hisptz/dhis2-ui": "^1.0.28",
34
+ "@hisptz/dhis2-ui": "^1.0.29",
35
35
  "@hisptz/dhis2-utils": "^1.0.28",
36
36
  "async-es": "^3.2.4",
37
37
  "d3-color": "^3.1.0",
@@ -78,5 +78,5 @@
78
78
  "lodash": "^4",
79
79
  "react-hook-form": "^7"
80
80
  },
81
- "gitHead": "d232522f6807ab9af526930de7e32511d5220e48"
81
+ "gitHead": "53d53af7587abb8ab394aa575e9d56459c92ee0a"
82
82
  }