@hisptz/dhis2-scorecard 1.0.4 → 1.0.5
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/dist/types/Scorecard.d.ts +7 -0
- package/dist/types/Scorecard.d.ts.map +1 -0
- package/dist/types/components/ColGroup.d.ts +2 -0
- package/dist/types/components/ColGroup.d.ts.map +1 -0
- package/dist/types/components/ConfigProvider.d.ts +144 -0
- package/dist/types/components/ConfigProvider.d.ts.map +1 -0
- package/dist/types/components/DataProvider.d.ts +10 -0
- package/dist/types/components/DataProvider.d.ts.map +1 -0
- package/dist/types/components/LoadingIndicator.d.ts +5 -0
- package/dist/types/components/LoadingIndicator.d.ts.map +1 -0
- package/dist/types/components/MetaProvider.d.ts +23 -0
- package/dist/types/components/MetaProvider.d.ts.map +1 -0
- package/dist/types/components/ScorecardContext.d.ts +9 -0
- package/dist/types/components/ScorecardContext.d.ts.map +1 -0
- package/dist/types/components/ScorecardHeader.d.ts +2 -0
- package/dist/types/components/ScorecardHeader.d.ts.map +1 -0
- package/dist/types/components/ScorecardLegendsView/ScorecardLegendsView.d.ts +3 -0
- package/dist/types/components/ScorecardLegendsView/ScorecardLegendsView.d.ts.map +1 -0
- package/dist/types/components/ScorecardLegendsView/components/ArrowLegendView.d.ts +2 -0
- package/dist/types/components/ScorecardLegendsView/components/ArrowLegendView.d.ts.map +1 -0
- package/dist/types/components/ScorecardLegendsView/components/LegendView.d.ts +10 -0
- package/dist/types/components/ScorecardLegendsView/components/LegendView.d.ts.map +1 -0
- package/dist/types/components/ScorecardLegendsView/components/OrgUnitLevelSpecificTargetView.d.ts +7 -0
- package/dist/types/components/ScorecardLegendsView/components/OrgUnitLevelSpecificTargetView.d.ts.map +1 -0
- package/dist/types/components/ScorecardLegendsView/components/OrgUnitSpecificTargetView.d.ts +7 -0
- package/dist/types/components/ScorecardLegendsView/components/OrgUnitSpecificTargetView.d.ts.map +1 -0
- package/dist/types/components/ScorecardLegendsView/components/PeriodSpecificTargetView.d.ts +7 -0
- package/dist/types/components/ScorecardLegendsView/components/PeriodSpecificTargetView.d.ts.map +1 -0
- package/dist/types/components/ScorecardLegendsView/components/SpecificTargetLegendsView.d.ts +3 -0
- package/dist/types/components/ScorecardLegendsView/components/SpecificTargetLegendsView.d.ts.map +1 -0
- package/dist/types/components/ScorecardLegendsView/index.d.ts +2 -0
- package/dist/types/components/ScorecardLegendsView/index.d.ts.map +1 -0
- package/dist/types/components/ScorecardPrint/ScorecardPrint.d.ts +3 -0
- package/dist/types/components/ScorecardPrint/ScorecardPrint.d.ts.map +1 -0
- package/dist/types/components/ScorecardPrint/components/ScorecardDownloadButton.d.ts +2 -0
- package/dist/types/components/ScorecardPrint/components/ScorecardDownloadButton.d.ts.map +1 -0
- package/dist/types/components/ScorecardPrint/components/ScorecardPreviewArea.d.ts +5 -0
- package/dist/types/components/ScorecardPrint/components/ScorecardPreviewArea.d.ts.map +1 -0
- package/dist/types/components/ScorecardPrint/utils/download.d.ts +33 -0
- package/dist/types/components/ScorecardPrint/utils/download.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/FurtherAnalysisDictionary.d.ts +6 -0
- package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/FurtherAnalysisDictionary.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/components/ConfigProvider.d.ts +12 -0
- package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/components/ConfigProvider.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/components/DetailsProvider.d.ts +9 -0
- package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/components/DetailsProvider.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/index.d.ts +2 -0
- package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/index.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/FurtherAnalysisVisualization.d.ts +7 -0
- package/dist/types/components/ScorecardTable/FurtherAnalysisVisualization.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/ScorecardTable.d.ts +6 -0
- package/dist/types/components/ScorecardTable/ScorecardTable.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/AverageCell.d.ts +12 -0
- package/dist/types/components/ScorecardTable/components/AverageCell.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/AverageFooterCell.d.ts +4 -0
- package/dist/types/components/ScorecardTable/components/AverageFooterCell.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/CellLoader.d.ts +4 -0
- package/dist/types/components/ScorecardTable/components/CellLoader.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/DataContainer.d.ts +91 -0
- package/dist/types/components/ScorecardTable/components/DataContainer.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/DataFooterCell.d.ts +4 -0
- package/dist/types/components/ScorecardTable/components/DataFooterCell.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/DataRow.d.ts +8 -0
- package/dist/types/components/ScorecardTable/components/DataRow.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/DataValue.d.ts +7 -0
- package/dist/types/components/ScorecardTable/components/DataValue.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/DraggableCell.d.ts +9 -0
- package/dist/types/components/ScorecardTable/components/DraggableCell.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/DroppableCell.d.ts +7 -0
- package/dist/types/components/ScorecardTable/components/DroppableCell.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/EmptyFooterCell.d.ts +4 -0
- package/dist/types/components/ScorecardTable/components/EmptyFooterCell.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/ExpandedScorecardTable.d.ts +8 -0
- package/dist/types/components/ScorecardTable/components/ExpandedScorecardTable.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/FurtherAnalysisMenu.d.ts +15 -0
- package/dist/types/components/ScorecardTable/components/FurtherAnalysisMenu.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/FurtherAnalysisModal.d.ts +13 -0
- package/dist/types/components/ScorecardTable/components/FurtherAnalysisModal.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/LinkedCell.d.ts +20 -0
- package/dist/types/components/ScorecardTable/components/LinkedCell.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/LinkedDataCell.d.ts +15 -0
- package/dist/types/components/ScorecardTable/components/LinkedDataCell.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/MetaFooterCell.d.ts +2 -0
- package/dist/types/components/ScorecardTable/components/MetaFooterCell.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/PaginatedToolbar.d.ts +2 -0
- package/dist/types/components/ScorecardTable/components/PaginatedToolbar.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/SingleDataCell.d.ts +15 -0
- package/dist/types/components/ScorecardTable/components/SingleDataCell.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/TableBody.d.ts +5 -0
- package/dist/types/components/ScorecardTable/components/TableBody.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/TableFoot.d.ts +2 -0
- package/dist/types/components/ScorecardTable/components/TableFoot.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/TableHeader/TableHeader.d.ts +3 -0
- package/dist/types/components/ScorecardTable/components/TableHeader/TableHeader.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/TableHeader/components/AverageHeaderCell.d.ts +4 -0
- package/dist/types/components/ScorecardTable/components/TableHeader/components/AverageHeaderCell.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/TableHeader/components/DataHeaderCell.d.ts +6 -0
- package/dist/types/components/ScorecardTable/components/TableHeader/components/DataHeaderCell.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/TableHeader/components/ExpandCell.d.ts +4 -0
- package/dist/types/components/ScorecardTable/components/TableHeader/components/ExpandCell.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/TableHeader/components/FilterArea.d.ts +7 -0
- package/dist/types/components/ScorecardTable/components/TableHeader/components/FilterArea.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/TableHeader/components/LabelCell.d.ts +12 -0
- package/dist/types/components/ScorecardTable/components/TableHeader/components/LabelCell.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/TableHeader/components/MetaHeaderCell.d.ts +7 -0
- package/dist/types/components/ScorecardTable/components/TableHeader/components/MetaHeaderCell.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/TableHeader/components/NumberCell.d.ts +7 -0
- package/dist/types/components/ScorecardTable/components/TableHeader/components/NumberCell.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/components/TableHeader/index.d.ts +2 -0
- package/dist/types/components/ScorecardTable/components/TableHeader/index.d.ts.map +1 -0
- package/dist/types/components/ScorecardTable/index.d.ts +2 -0
- package/dist/types/components/ScorecardTable/index.d.ts.map +1 -0
- package/dist/types/components/StateProvider.d.ts +9 -0
- package/dist/types/components/StateProvider.d.ts.map +1 -0
- package/dist/types/components/TableStateProvider.d.ts +56 -0
- package/dist/types/components/TableStateProvider.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +7 -0
- package/dist/types/components/index.d.ts.map +1 -0
- package/dist/types/hooks/cellData.d.ts +18 -0
- package/dist/types/hooks/cellData.d.ts.map +1 -0
- package/dist/types/hooks/columns.d.ts +50 -0
- package/dist/types/hooks/columns.d.ts.map +1 -0
- package/dist/types/hooks/data.d.ts +18 -0
- package/dist/types/hooks/data.d.ts.map +1 -0
- package/dist/types/hooks/dataItem.d.ts +3 -0
- package/dist/types/hooks/dataItem.d.ts.map +1 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/index.d.ts.map +1 -0
- package/dist/types/hooks/metadata.d.ts +41 -0
- package/dist/types/hooks/metadata.d.ts.map +1 -0
- package/dist/types/hooks/orgUnit.d.ts +27 -0
- package/dist/types/hooks/orgUnit.d.ts.map +1 -0
- package/dist/types/hooks/period.d.ts +2 -0
- package/dist/types/hooks/period.d.ts.map +1 -0
- package/dist/types/hooks/table.d.ts +31 -0
- package/dist/types/hooks/table.d.ts.map +1 -0
- package/dist/types/hooks/value.d.ts +87 -0
- package/dist/types/hooks/value.d.ts.map +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/schemas/config.d.ts +3363 -0
- package/dist/types/schemas/config.d.ts.map +1 -0
- package/dist/types/state/scorecardState.d.ts +79 -0
- package/dist/types/state/scorecardState.d.ts.map +1 -0
- package/dist/types/utils/analytics.d.ts +19 -0
- package/dist/types/utils/analytics.d.ts.map +1 -0
- package/dist/types/utils/columns.d.ts +33 -0
- package/dist/types/utils/columns.d.ts.map +1 -0
- package/dist/types/utils/data.d.ts +17 -0
- package/dist/types/utils/data.d.ts.map +1 -0
- package/dist/types/utils/dataEngine.d.ts +50 -0
- package/dist/types/utils/dataEngine.d.ts.map +1 -0
- package/dist/types/utils/dataSources.d.ts +37 -0
- package/dist/types/utils/dataSources.d.ts.map +1 -0
- package/dist/types/utils/engine.d.ts +14 -0
- package/dist/types/utils/engine.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/types/utils/legends.d.ts +22 -0
- package/dist/types/utils/legends.d.ts.map +1 -0
- package/dist/types/utils/orgUnits.d.ts +7 -0
- package/dist/types/utils/orgUnits.d.ts.map +1 -0
- package/dist/types/utils/state.d.ts +5 -0
- package/dist/types/utils/state.d.ts.map +1 -0
- package/package.json +3 -4
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type ScorecardTableProps } from "./components/ScorecardTable";
|
|
3
|
+
export interface ScorecardProps {
|
|
4
|
+
tableProps?: ScorecardTableProps;
|
|
5
|
+
}
|
|
6
|
+
export declare function Scorecard({ tableProps }: ScorecardProps): React.ReactElement;
|
|
7
|
+
//# sourceMappingURL=Scorecard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Scorecard.d.ts","sourceRoot":"","sources":["../../src/Scorecard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAEN,KAAK,mBAAmB,EACxB,MAAM,6BAA6B,CAAC;AAKrC,MAAM,WAAW,cAAc;IAC9B,UAAU,CAAC,EAAE,mBAAmB,CAAC;CACjC;AAED,wBAAgB,SAAS,CAAC,EAAE,UAAU,EAAE,EAAE,cAAc,GAAG,KAAK,CAAC,YAAY,CAU5E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColGroup.d.ts","sourceRoot":"","sources":["../../../src/components/ColGroup.tsx"],"names":[],"mappings":"AAEA,wBAAgB,QAAQ,mDAqBvB"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ScorecardConfig } from "../schemas/config";
|
|
3
|
+
export declare function useScorecardConfig(): {
|
|
4
|
+
options: {
|
|
5
|
+
averageColumn?: boolean | undefined;
|
|
6
|
+
averageDisplayType?: "ALL" | "ABOVE_AVERAGE" | "BELOW_AVERAGE" | undefined;
|
|
7
|
+
averageRow?: boolean | undefined;
|
|
8
|
+
emptyRows?: boolean | undefined;
|
|
9
|
+
highlightedIndicators?: boolean | undefined;
|
|
10
|
+
itemNumber?: boolean | undefined;
|
|
11
|
+
legend?: boolean | undefined;
|
|
12
|
+
showHierarchy?: boolean | undefined;
|
|
13
|
+
title?: boolean | undefined;
|
|
14
|
+
arrows?: boolean | undefined;
|
|
15
|
+
showDataInRows?: boolean | undefined;
|
|
16
|
+
disableExpanding?: boolean | undefined;
|
|
17
|
+
disablePagination?: boolean | undefined;
|
|
18
|
+
printMode?: boolean | undefined;
|
|
19
|
+
};
|
|
20
|
+
id: string;
|
|
21
|
+
highlightedIndicators: {
|
|
22
|
+
type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
legends: {
|
|
26
|
+
id: string;
|
|
27
|
+
legendDefinitionId: string;
|
|
28
|
+
startValue: string | number;
|
|
29
|
+
endValue: string | number;
|
|
30
|
+
}[] | Record<string, {
|
|
31
|
+
id: string;
|
|
32
|
+
legendDefinitionId: string;
|
|
33
|
+
startValue: string | number;
|
|
34
|
+
endValue: string | number;
|
|
35
|
+
}[]>;
|
|
36
|
+
displayArrows: boolean;
|
|
37
|
+
highIsGood: boolean;
|
|
38
|
+
effectiveGap: number;
|
|
39
|
+
showColors: boolean;
|
|
40
|
+
weight: number;
|
|
41
|
+
label?: string | undefined;
|
|
42
|
+
specificTargets?: {
|
|
43
|
+
type: "periods" | "orgUnit";
|
|
44
|
+
items: string[];
|
|
45
|
+
legends: {
|
|
46
|
+
id: string;
|
|
47
|
+
legendDefinitionId: string;
|
|
48
|
+
startValue: string | number;
|
|
49
|
+
endValue: string | number;
|
|
50
|
+
}[];
|
|
51
|
+
}[] | undefined;
|
|
52
|
+
specificTargetsSet?: boolean | undefined;
|
|
53
|
+
description?: string | undefined;
|
|
54
|
+
}[];
|
|
55
|
+
title: string;
|
|
56
|
+
legendDefinitions: {
|
|
57
|
+
id: string;
|
|
58
|
+
color: string;
|
|
59
|
+
name: string;
|
|
60
|
+
isDefault?: boolean | undefined;
|
|
61
|
+
}[];
|
|
62
|
+
orgUnitSelection: {
|
|
63
|
+
orgUnits: {
|
|
64
|
+
id: string;
|
|
65
|
+
}[];
|
|
66
|
+
userOrgUnit?: boolean | undefined;
|
|
67
|
+
userSubUnit?: boolean | undefined;
|
|
68
|
+
userSubX2Unit?: boolean | undefined;
|
|
69
|
+
groups?: string[] | undefined;
|
|
70
|
+
levels?: string[] | undefined;
|
|
71
|
+
};
|
|
72
|
+
periodSelection: {
|
|
73
|
+
periods: {
|
|
74
|
+
id: string;
|
|
75
|
+
}[];
|
|
76
|
+
type?: string | undefined;
|
|
77
|
+
};
|
|
78
|
+
dataSelection: {
|
|
79
|
+
dataGroups: {
|
|
80
|
+
id: string | number;
|
|
81
|
+
title: string;
|
|
82
|
+
dataHolders: {
|
|
83
|
+
id: string | number;
|
|
84
|
+
dataSources: {
|
|
85
|
+
type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
|
|
86
|
+
id: string;
|
|
87
|
+
name: string;
|
|
88
|
+
legends: {
|
|
89
|
+
id: string;
|
|
90
|
+
legendDefinitionId: string;
|
|
91
|
+
startValue: string | number;
|
|
92
|
+
endValue: string | number;
|
|
93
|
+
}[] | Record<string, {
|
|
94
|
+
id: string;
|
|
95
|
+
legendDefinitionId: string;
|
|
96
|
+
startValue: string | number;
|
|
97
|
+
endValue: string | number;
|
|
98
|
+
}[]>;
|
|
99
|
+
displayArrows: boolean;
|
|
100
|
+
highIsGood: boolean;
|
|
101
|
+
effectiveGap: number;
|
|
102
|
+
showColors: boolean;
|
|
103
|
+
weight: number;
|
|
104
|
+
label?: string | undefined;
|
|
105
|
+
specificTargets?: {
|
|
106
|
+
type: "periods" | "orgUnit";
|
|
107
|
+
items: string[];
|
|
108
|
+
legends: {
|
|
109
|
+
id: string;
|
|
110
|
+
legendDefinitionId: string;
|
|
111
|
+
startValue: string | number;
|
|
112
|
+
endValue: string | number;
|
|
113
|
+
}[];
|
|
114
|
+
}[] | undefined;
|
|
115
|
+
specificTargetsSet?: boolean | undefined;
|
|
116
|
+
description?: string | undefined;
|
|
117
|
+
}[];
|
|
118
|
+
}[];
|
|
119
|
+
style: {};
|
|
120
|
+
}[];
|
|
121
|
+
};
|
|
122
|
+
sharing: {
|
|
123
|
+
owner: string;
|
|
124
|
+
external: boolean;
|
|
125
|
+
public: string;
|
|
126
|
+
users: Record<string, {
|
|
127
|
+
access: string;
|
|
128
|
+
id: string;
|
|
129
|
+
}>;
|
|
130
|
+
userGroups: Record<string, {
|
|
131
|
+
access: string;
|
|
132
|
+
id: string;
|
|
133
|
+
}>;
|
|
134
|
+
};
|
|
135
|
+
description?: string | undefined;
|
|
136
|
+
subtitle?: string | undefined;
|
|
137
|
+
customHeader?: string | undefined;
|
|
138
|
+
additionalLabels?: string[] | undefined;
|
|
139
|
+
};
|
|
140
|
+
export declare const ScorecardConfigProvider: React.FC<{
|
|
141
|
+
config: ScorecardConfig;
|
|
142
|
+
children: React.ReactNode;
|
|
143
|
+
}>;
|
|
144
|
+
//# sourceMappingURL=ConfigProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigProvider.d.ts","sourceRoot":"","sources":["../../../src/components/ConfigProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKzD,wBAAgB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUjC;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC9C,MAAM,EAAE,eAAe,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAMC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type ScorecardDataEngine } from "../utils/dataEngine";
|
|
3
|
+
export interface ScorecardData {
|
|
4
|
+
data: ScorecardDataEngine;
|
|
5
|
+
}
|
|
6
|
+
export declare function useScorecardData(): ScorecardData;
|
|
7
|
+
export declare const ScorecardDataProvider: import("react").NamedExoticComponent<{
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=DataProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataProvider.d.ts","sourceRoot":"","sources":["../../../src/components/DataProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAsB,MAAM,OAAO,CAAC;AAEhF,OAAO,EAEN,KAAK,mBAAmB,EACxB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,mBAAmB,CAAC;CAC1B;AAMD,wBAAgB,gBAAgB,kBAE/B;AAED,eAAO,MAAM,qBAAqB;cAGvB,SAAS;EAclB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingIndicator.d.ts","sourceRoot":"","sources":["../../../src/components/LoadingIndicator.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAQ,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAGlE,eAAO,MAAM,gBAAgB;cAGlB,UAAU,gBAAgB,CAAC;EAuCpC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type ItemMeta } from "../hooks/metadata";
|
|
3
|
+
export interface ScorecardMeta {
|
|
4
|
+
periods: Array<ItemMeta>;
|
|
5
|
+
orgUnits: Array<ItemMeta & {
|
|
6
|
+
hierarchy: string;
|
|
7
|
+
}>;
|
|
8
|
+
dataItems: Array<ItemMeta>;
|
|
9
|
+
orgUnitLevels: Array<{
|
|
10
|
+
id: string;
|
|
11
|
+
level: number;
|
|
12
|
+
displayName: string;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
export declare function useScorecardMeta(): ScorecardMeta | null;
|
|
16
|
+
export declare const ScorecardMetaGetter: import("react").NamedExoticComponent<{
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const ScorecardMetaProvider: import("react").MemoExoticComponent<({ children, meta }: {
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
meta: ScorecardMeta;
|
|
22
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
23
|
+
//# sourceMappingURL=MetaProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetaProvider.d.ts","sourceRoot":"","sources":["../../../src/components/MetaProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,KAAK,QAAQ,EAAuB,MAAM,mBAAmB,CAAC;AAKvE,MAAM,WAAW,aAAa;IAC7B,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,GAAG;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClD,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC3B,aAAa,EAAE,KAAK,CAAC;QACpB,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;KACpB,CAAC,CAAC;CACH;AAID,wBAAgB,gBAAgB,yBAE/B;AAED,eAAO,MAAM,mBAAmB;cAGrB,SAAS;EA0BlB,CAAC;AAEH,eAAO,MAAM,qBAAqB;cACA,SAAS;UAAQ,aAAa;8CAY/D,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { type ReactNode } from "react";
|
|
2
|
+
import type { ScorecardConfig } from "../schemas/config";
|
|
3
|
+
interface ScorecardContextProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
config: ScorecardConfig;
|
|
6
|
+
}
|
|
7
|
+
export declare const ScorecardContext: React.NamedExoticComponent<ScorecardContextProps>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=ScorecardContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScorecardContext.d.ts","sourceRoot":"","sources":["../../../src/components/ScorecardContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAKzD,UAAU,qBAAqB;IAC9B,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,eAAe,CAAC;CACxB;AAwCD,eAAO,MAAM,gBAAgB,mDAgB5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScorecardHeader.d.ts","sourceRoot":"","sources":["../../../src/components/ScorecardHeader.tsx"],"names":[],"mappings":"AAQA,wBAAgB,eAAe,mDAoE9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScorecardLegendsView.d.ts","sourceRoot":"","sources":["../../../../src/components/ScorecardLegendsView/ScorecardLegendsView.tsx"],"names":[],"mappings":";AAMA,eAAO,MAAM,oBAAoB,8CAyC/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrowLegendView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardLegendsView/components/ArrowLegendView.tsx"],"names":[],"mappings":"AAIA,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,kDAqB1C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { LegendDefinition, ScorecardLegend } from "../../../schemas/config";
|
|
2
|
+
export interface LegendsViewProps {
|
|
3
|
+
legends: ScorecardLegend[];
|
|
4
|
+
}
|
|
5
|
+
export declare function LegendsView({ legends }: LegendsViewProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export interface LegendViewProps {
|
|
7
|
+
legend: LegendDefinition;
|
|
8
|
+
}
|
|
9
|
+
export declare function LegendView({ legend }: LegendViewProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=LegendView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegendView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardLegendsView/components/LegendView.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACX,gBAAgB,EAChB,eAAe,EACf,MAAM,yBAAyB,CAAC;AAEjC,MAAM,WAAW,gBAAgB;IAChC,OAAO,EAAE,eAAe,EAAE,CAAC;CAC3B;AAED,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,EAAE,gBAAgB,2CAwDxD;AAED,MAAM,WAAW,eAAe;IAC/B,MAAM,EAAE,gBAAgB,CAAC;CACzB;AAED,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,eAAe,2CAmBrD"}
|
package/dist/types/components/ScorecardLegendsView/components/OrgUnitLevelSpecificTargetView.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { OrgUnitLevelLegend } from "../../../schemas/config";
|
|
2
|
+
export interface OrgUnitSpecificTargetViewProps {
|
|
3
|
+
specificTarget: OrgUnitLevelLegend;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function OrgUnitLevelSpecificTargetView({ specificTarget, label, }: OrgUnitSpecificTargetViewProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=OrgUnitLevelSpecificTargetView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrgUnitLevelSpecificTargetView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardLegendsView/components/OrgUnitLevelSpecificTargetView.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAGlE,MAAM,WAAW,8BAA8B;IAC9C,cAAc,EAAE,kBAAkB,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,8BAA8B,CAAC,EAC9C,cAAc,EACd,KAAK,GACL,EAAE,8BAA8B,2CAyChC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SpecificTarget } from "../../../schemas/config";
|
|
2
|
+
export interface OrgUnitSpecificTargetViewProps {
|
|
3
|
+
specificTarget: SpecificTarget;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function OrgUnitSpecificTargetView({ specificTarget, label, }: OrgUnitSpecificTargetViewProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=OrgUnitSpecificTargetView.d.ts.map
|
package/dist/types/components/ScorecardLegendsView/components/OrgUnitSpecificTargetView.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrgUnitSpecificTargetView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardLegendsView/components/OrgUnitSpecificTargetView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAM9D,MAAM,WAAW,8BAA8B;IAC9C,cAAc,EAAE,cAAc,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,yBAAyB,CAAC,EACzC,cAAc,EACd,KAAK,GACL,EAAE,8BAA8B,2CAqChC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SpecificTarget } from "../../../schemas/config";
|
|
2
|
+
export interface OrgUnitSpecificTargetViewProps {
|
|
3
|
+
specificTarget: SpecificTarget;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function PeriodSpecificTargetView({ specificTarget, label, }: OrgUnitSpecificTargetViewProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=PeriodSpecificTargetView.d.ts.map
|
package/dist/types/components/ScorecardLegendsView/components/PeriodSpecificTargetView.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PeriodSpecificTargetView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardLegendsView/components/PeriodSpecificTargetView.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,MAAM,WAAW,8BAA8B;IAC9C,cAAc,EAAE,cAAc,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,wBAAwB,CAAC,EACxC,cAAc,EACd,KAAK,GACL,EAAE,8BAA8B,2CAgChC"}
|
package/dist/types/components/ScorecardLegendsView/components/SpecificTargetLegendsView.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpecificTargetLegendsView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardLegendsView/components/SpecificTargetLegendsView.tsx"],"names":[],"mappings":"AAsBA,wBAAgB,sBAAsB,4CAwGrC;AAsBD,wBAAgB,yBAAyB,mDA8BxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScorecardLegendsView/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScorecardPrint.d.ts","sourceRoot":"","sources":["../../../../src/components/ScorecardPrint/ScorecardPrint.tsx"],"names":[],"mappings":"AACA,OAAO,aAAa,CAAC;AAErB,wBAAgB,cAAc,4CAE7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScorecardDownloadButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardPrint/components/ScorecardDownloadButton.tsx"],"names":[],"mappings":"AAmFA,wBAAgB,uBAAuB,4CAgCtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScorecardPreviewArea.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardPrint/components/ScorecardPreviewArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAQ,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAQpD,eAAO,MAAM,oBAAoB;gBAGpB,UAAU,cAAc,CAAC;EA4BpC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ScorecardMeta } from "../../MetaProvider";
|
|
2
|
+
import type { ScorecardConfig } from "../../../schemas/config";
|
|
3
|
+
import type { AnalyticsData } from "../../../utils/data";
|
|
4
|
+
export declare const ALMA_HEADERS: {
|
|
5
|
+
name: string;
|
|
6
|
+
column: string;
|
|
7
|
+
valueType: string;
|
|
8
|
+
type: string;
|
|
9
|
+
hidden: boolean;
|
|
10
|
+
meta: boolean;
|
|
11
|
+
}[];
|
|
12
|
+
export declare function getALMAMetadata({ config, meta, }: {
|
|
13
|
+
meta: ScorecardMeta;
|
|
14
|
+
config: ScorecardConfig;
|
|
15
|
+
}): {
|
|
16
|
+
dimensions: {
|
|
17
|
+
ou: string[];
|
|
18
|
+
pe: string[];
|
|
19
|
+
dx: string[];
|
|
20
|
+
co: never[];
|
|
21
|
+
};
|
|
22
|
+
items: {};
|
|
23
|
+
};
|
|
24
|
+
export declare function downloadALMAMeta({ config, meta, }: {
|
|
25
|
+
config: ScorecardConfig;
|
|
26
|
+
meta: ScorecardMeta;
|
|
27
|
+
}): unknown;
|
|
28
|
+
export declare function downloadALMAData({ config, meta, data, }: {
|
|
29
|
+
config: ScorecardConfig;
|
|
30
|
+
meta: ScorecardMeta;
|
|
31
|
+
data: AnalyticsData[];
|
|
32
|
+
}): unknown;
|
|
33
|
+
//# sourceMappingURL=download.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardPrint/utils/download.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAEX,eAAe,EAEf,MAAM,yBAAyB,CAAC;AAQjC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,eAAO,MAAM,YAAY;;;;;;;GAiCxB,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAC/B,MAAM,EACN,IAAI,GACJ,EAAE;IACF,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,eAAe,CAAC;CACxB;;;;;;;;EA+EA;AAED,wBAAgB,gBAAgB,CAAC,EAChC,MAAM,EACN,IAAI,GACJ,EAAE;IACF,MAAM,EAAE,eAAe,CAAC;IACxB,IAAI,EAAE,aAAa,CAAC;CACpB,WA6BA;AAMD,wBAAgB,gBAAgB,CAAC,EAChC,MAAM,EACN,IAAI,EACJ,IAAI,GACJ,EAAE;IACF,MAAM,EAAE,eAAe,CAAC;IACxB,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,aAAa,EAAE,CAAC;CACtB,WAmBA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { FurtherAnalysisConfig } from "../components/FurtherAnalysisModal";
|
|
2
|
+
export interface FurtherAnalysisVisualizationProps {
|
|
3
|
+
config: FurtherAnalysisConfig;
|
|
4
|
+
}
|
|
5
|
+
export declare function FurtherAnalysisDictionary({ config, }: FurtherAnalysisVisualizationProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=FurtherAnalysisDictionary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FurtherAnalysisDictionary.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/FurtherAnalysisDictionary/FurtherAnalysisDictionary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAGhF,MAAM,WAAW,iCAAiC;IACjD,MAAM,EAAE,qBAAqB,CAAC;CAC9B;AAED,wBAAgB,yBAAyB,CAAC,EACzC,MAAM,GACN,EAAE,iCAAiC,2CAanC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { ScorecardDataSource } from "../../../../schemas/config";
|
|
3
|
+
export interface DictionaryConfig {
|
|
4
|
+
selectedDataSource?: ScorecardDataSource;
|
|
5
|
+
dataSources: ScorecardDataSource[];
|
|
6
|
+
}
|
|
7
|
+
export declare function useDictionaryConfigState(): [DictionaryConfig, React.Dispatch<React.SetStateAction<DictionaryConfig>>];
|
|
8
|
+
export declare function DictionaryConfigProvider({ initialConfig, children, }: {
|
|
9
|
+
initialConfig: DictionaryConfig;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
//# sourceMappingURL=ConfigProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigProvider.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ScorecardTable/FurtherAnalysisDictionary/components/ConfigProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,MAAM,WAAW,gBAAgB;IAChC,kBAAkB,CAAC,EAAE,mBAAmB,CAAC;IACzC,WAAW,EAAE,mBAAmB,EAAE,CAAC;CACnC;AAMD,wBAAgB,wBAAwB,+EAQvC;AAED,wBAAgB,wBAAwB,CAAC,EACxC,aAAa,EACb,QAAQ,GACR,EAAE;IACF,aAAa,EAAE,gBAAgB,CAAC;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,kDAYA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { ScorecardDataSource } from "../../../../schemas/config";
|
|
3
|
+
export declare function useDataItemDetails<T>(): T;
|
|
4
|
+
export declare function DetailsProvider({ children, dataItem, fields, }: {
|
|
5
|
+
dataItem: ScorecardDataSource;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
fields?: string[];
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=DetailsProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DetailsProvider.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ScorecardTable/FurtherAnalysisDictionary/components/DetailsProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EACX,mBAAmB,EAEnB,MAAM,4BAA4B,CAAC;AAmCpC,wBAAgB,kBAAkB,CAAC,CAAC,OAGnC;AAED,wBAAgB,eAAe,CAAC,EAC/B,QAAQ,EACR,QAAQ,EACR,MAAM,GACN,EAAE;IACF,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB,2CAwBA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/FurtherAnalysisDictionary/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FurtherAnalysisConfig } from "./components/FurtherAnalysisModal";
|
|
2
|
+
export type DataItemType = "dataElement" | "indicator" | "programIndicator";
|
|
3
|
+
export interface FurtherAnalysisVisualizationProps {
|
|
4
|
+
config: FurtherAnalysisConfig;
|
|
5
|
+
}
|
|
6
|
+
export declare function FurtherAnalysisVisualization({ config, }: FurtherAnalysisVisualizationProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=FurtherAnalysisVisualization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FurtherAnalysisVisualization.d.ts","sourceRoot":"","sources":["../../../../src/components/ScorecardTable/FurtherAnalysisVisualization.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAG/E,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG,WAAW,GAAG,kBAAkB,CAAC;AAE5E,MAAM,WAAW,iCAAiC;IACjD,MAAM,EAAE,qBAAqB,CAAC;CAC9B;AAED,wBAAgB,4BAA4B,CAAC,EAC5C,MAAM,GACN,EAAE,iCAAiC,2CA6DnC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type DataTableProps } from "@dhis2/ui";
|
|
3
|
+
export interface ScorecardTableProps extends Omit<DataTableProps, "children"> {
|
|
4
|
+
}
|
|
5
|
+
export declare const ScorecardTable: import("react").NamedExoticComponent<ScorecardTableProps>;
|
|
6
|
+
//# sourceMappingURL=ScorecardTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScorecardTable.d.ts","sourceRoot":"","sources":["../../../../src/components/ScorecardTable/ScorecardTable.tsx"],"names":[],"mappings":";AAAA,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AAU3E,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC;CAAG;AAEhF,eAAO,MAAM,cAAc,2DA6DzB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CellContext } from "@tanstack/react-table";
|
|
2
|
+
import type { ScorecardAverageCellData, ScorecardTableAverageCellConfig, ScorecardTableData } from "../../../schemas/config";
|
|
3
|
+
export declare function SingleAverageCell({ dataSource, size, }: {
|
|
4
|
+
dataSource: ScorecardAverageCellData;
|
|
5
|
+
size: number;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function LinkedAverageCell({ dataSources, size, }: {
|
|
8
|
+
dataSources: Array<ScorecardAverageCellData>;
|
|
9
|
+
size: number;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function AverageCell(props: CellContext<ScorecardTableData, ScorecardTableAverageCellConfig>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=AverageCell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AverageCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/AverageCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EACX,wBAAwB,EACxB,+BAA+B,EAC/B,kBAAkB,EAClB,MAAM,yBAAyB,CAAC;AAiBjC,wBAAgB,iBAAiB,CAAC,EACjC,UAAU,EACV,IAAI,GACJ,EAAE;IACF,UAAU,EAAE,wBAAwB,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC;CACb,2CAmCA;AAED,wBAAgB,iBAAiB,CAAC,EACjC,WAAW,EACX,IAAI,GACJ,EAAE;IACF,WAAW,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC7C,IAAI,EAAE,MAAM,CAAC;CACb,2CAiDA;AAgED,wBAAgB,WAAW,CAC1B,KAAK,EAAE,WAAW,CAAC,kBAAkB,EAAE,+BAA+B,CAAC,2CAYvE"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { HeaderContext } from "@tanstack/react-table";
|
|
2
|
+
import type { ScorecardTableData } from "../../../schemas/config";
|
|
3
|
+
export declare function AverageFooterCell({ column, }: HeaderContext<ScorecardTableData, any>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=AverageFooterCell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AverageFooterCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/AverageFooterCell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAOlE,wBAAgB,iBAAiB,CAAC,EACjC,MAAM,GACN,EAAE,aAAa,CAAC,kBAAkB,EAAE,GAAG,CAAC,2CA8CxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CellLoader.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/CellLoader.tsx"],"names":[],"mappings":"AAEA,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,2CAEpD"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CellContext } from "@tanstack/react-table";
|
|
3
|
+
export declare const DataContainer: import("react").NamedExoticComponent<CellContext<{
|
|
4
|
+
label: string;
|
|
5
|
+
orgUnit?: {
|
|
6
|
+
name: string;
|
|
7
|
+
uid: string;
|
|
8
|
+
hierarchy: string;
|
|
9
|
+
} | undefined;
|
|
10
|
+
dataHolder?: {
|
|
11
|
+
id: string | number;
|
|
12
|
+
dataSources: {
|
|
13
|
+
type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
legends: {
|
|
17
|
+
id: string;
|
|
18
|
+
legendDefinitionId: string;
|
|
19
|
+
startValue: string | number;
|
|
20
|
+
endValue: string | number;
|
|
21
|
+
}[] | Record<string, {
|
|
22
|
+
id: string;
|
|
23
|
+
legendDefinitionId: string;
|
|
24
|
+
startValue: string | number;
|
|
25
|
+
endValue: string | number;
|
|
26
|
+
}[]>;
|
|
27
|
+
displayArrows: boolean;
|
|
28
|
+
highIsGood: boolean;
|
|
29
|
+
effectiveGap: number;
|
|
30
|
+
showColors: boolean;
|
|
31
|
+
weight: number;
|
|
32
|
+
label?: string | undefined;
|
|
33
|
+
specificTargets?: {
|
|
34
|
+
type: "periods" | "orgUnit";
|
|
35
|
+
items: string[];
|
|
36
|
+
legends: {
|
|
37
|
+
id: string;
|
|
38
|
+
legendDefinitionId: string;
|
|
39
|
+
startValue: string | number;
|
|
40
|
+
endValue: string | number;
|
|
41
|
+
}[];
|
|
42
|
+
}[] | undefined;
|
|
43
|
+
specificTargetsSet?: boolean | undefined;
|
|
44
|
+
description?: string | undefined;
|
|
45
|
+
}[];
|
|
46
|
+
} | undefined;
|
|
47
|
+
expand?: boolean | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
orgUnit: {
|
|
50
|
+
name: string;
|
|
51
|
+
uid: string;
|
|
52
|
+
hierarchy: string;
|
|
53
|
+
};
|
|
54
|
+
dataSources: {
|
|
55
|
+
type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
|
|
56
|
+
id: string;
|
|
57
|
+
name: string;
|
|
58
|
+
legends: {
|
|
59
|
+
id: string;
|
|
60
|
+
legendDefinitionId: string;
|
|
61
|
+
startValue: string | number;
|
|
62
|
+
endValue: string | number;
|
|
63
|
+
}[] | Record<string, {
|
|
64
|
+
id: string;
|
|
65
|
+
legendDefinitionId: string;
|
|
66
|
+
startValue: string | number;
|
|
67
|
+
endValue: string | number;
|
|
68
|
+
}[]>;
|
|
69
|
+
displayArrows: boolean;
|
|
70
|
+
highIsGood: boolean;
|
|
71
|
+
effectiveGap: number;
|
|
72
|
+
showColors: boolean;
|
|
73
|
+
weight: number;
|
|
74
|
+
label?: string | undefined;
|
|
75
|
+
specificTargets?: {
|
|
76
|
+
type: "periods" | "orgUnit";
|
|
77
|
+
items: string[];
|
|
78
|
+
legends: {
|
|
79
|
+
id: string;
|
|
80
|
+
legendDefinitionId: string;
|
|
81
|
+
startValue: string | number;
|
|
82
|
+
endValue: string | number;
|
|
83
|
+
}[];
|
|
84
|
+
}[] | undefined;
|
|
85
|
+
specificTargetsSet?: boolean | undefined;
|
|
86
|
+
description?: string | undefined;
|
|
87
|
+
}[];
|
|
88
|
+
previousPeriod?: string | undefined;
|
|
89
|
+
currentPeriod?: string | undefined;
|
|
90
|
+
}>>;
|
|
91
|
+
//# sourceMappingURL=DataContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataContainer.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/DataContainer.tsx"],"names":[],"mappings":";AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAgDzD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUxB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { HeaderContext } from "@tanstack/react-table";
|
|
2
|
+
import type { ScorecardTableCellConfig, ScorecardTableData } from "../../../schemas/config";
|
|
3
|
+
export declare function DataFooterCell({ table, column, }: HeaderContext<ScorecardTableData, ScorecardTableCellConfig>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=DataFooterCell.d.ts.map
|