@hisptz/dhis2-scorecard 1.0.2 → 1.0.4
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/components/ScorecardTable/components/FurtherAnalysisMenu.js +116 -0
- package/dist/components/ScorecardTable/components/FurtherAnalysisMenu.js.map +1 -1
- package/dist/esm/components/ScorecardTable/components/FurtherAnalysisMenu.js +116 -0
- package/dist/esm/components/ScorecardTable/components/FurtherAnalysisMenu.js.map +1 -1
- package/package.json +2 -2
- package/dist/types/Scorecard.d.ts +0 -7
- package/dist/types/Scorecard.d.ts.map +0 -1
- package/dist/types/components/ColGroup.d.ts +0 -2
- package/dist/types/components/ColGroup.d.ts.map +0 -1
- package/dist/types/components/ConfigProvider.d.ts +0 -144
- package/dist/types/components/ConfigProvider.d.ts.map +0 -1
- package/dist/types/components/DataProvider.d.ts +0 -10
- package/dist/types/components/DataProvider.d.ts.map +0 -1
- package/dist/types/components/LoadingIndicator.d.ts +0 -5
- package/dist/types/components/LoadingIndicator.d.ts.map +0 -1
- package/dist/types/components/MetaProvider.d.ts +0 -23
- package/dist/types/components/MetaProvider.d.ts.map +0 -1
- package/dist/types/components/ScorecardContext.d.ts +0 -9
- package/dist/types/components/ScorecardContext.d.ts.map +0 -1
- package/dist/types/components/ScorecardHeader.d.ts +0 -2
- package/dist/types/components/ScorecardHeader.d.ts.map +0 -1
- package/dist/types/components/ScorecardLegendsView/ScorecardLegendsView.d.ts +0 -3
- package/dist/types/components/ScorecardLegendsView/ScorecardLegendsView.d.ts.map +0 -1
- package/dist/types/components/ScorecardLegendsView/components/ArrowLegendView.d.ts +0 -2
- package/dist/types/components/ScorecardLegendsView/components/ArrowLegendView.d.ts.map +0 -1
- package/dist/types/components/ScorecardLegendsView/components/LegendView.d.ts +0 -10
- package/dist/types/components/ScorecardLegendsView/components/LegendView.d.ts.map +0 -1
- package/dist/types/components/ScorecardLegendsView/components/OrgUnitLevelSpecificTargetView.d.ts +0 -7
- package/dist/types/components/ScorecardLegendsView/components/OrgUnitLevelSpecificTargetView.d.ts.map +0 -1
- package/dist/types/components/ScorecardLegendsView/components/OrgUnitSpecificTargetView.d.ts +0 -7
- package/dist/types/components/ScorecardLegendsView/components/OrgUnitSpecificTargetView.d.ts.map +0 -1
- package/dist/types/components/ScorecardLegendsView/components/PeriodSpecificTargetView.d.ts +0 -7
- package/dist/types/components/ScorecardLegendsView/components/PeriodSpecificTargetView.d.ts.map +0 -1
- package/dist/types/components/ScorecardLegendsView/components/SpecificTargetLegendsView.d.ts +0 -3
- package/dist/types/components/ScorecardLegendsView/components/SpecificTargetLegendsView.d.ts.map +0 -1
- package/dist/types/components/ScorecardLegendsView/index.d.ts +0 -2
- package/dist/types/components/ScorecardLegendsView/index.d.ts.map +0 -1
- package/dist/types/components/ScorecardPrint/ScorecardPrint.d.ts +0 -3
- package/dist/types/components/ScorecardPrint/ScorecardPrint.d.ts.map +0 -1
- package/dist/types/components/ScorecardPrint/components/ScorecardDownloadButton.d.ts +0 -2
- package/dist/types/components/ScorecardPrint/components/ScorecardDownloadButton.d.ts.map +0 -1
- package/dist/types/components/ScorecardPrint/components/ScorecardPreviewArea.d.ts +0 -5
- package/dist/types/components/ScorecardPrint/components/ScorecardPreviewArea.d.ts.map +0 -1
- package/dist/types/components/ScorecardPrint/utils/download.d.ts +0 -33
- package/dist/types/components/ScorecardPrint/utils/download.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/FurtherAnalysisDictionary.d.ts +0 -6
- package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/FurtherAnalysisDictionary.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/components/ConfigProvider.d.ts +0 -12
- package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/components/ConfigProvider.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/components/DetailsProvider.d.ts +0 -9
- package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/components/DetailsProvider.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/index.d.ts +0 -2
- package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/index.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/FurtherAnalysisVisualization.d.ts +0 -7
- package/dist/types/components/ScorecardTable/FurtherAnalysisVisualization.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/ScorecardTable.d.ts +0 -6
- package/dist/types/components/ScorecardTable/ScorecardTable.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/AverageCell.d.ts +0 -12
- package/dist/types/components/ScorecardTable/components/AverageCell.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/AverageFooterCell.d.ts +0 -4
- package/dist/types/components/ScorecardTable/components/AverageFooterCell.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/CellLoader.d.ts +0 -4
- package/dist/types/components/ScorecardTable/components/CellLoader.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/DataContainer.d.ts +0 -91
- package/dist/types/components/ScorecardTable/components/DataContainer.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/DataFooterCell.d.ts +0 -4
- package/dist/types/components/ScorecardTable/components/DataFooterCell.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/DataRow.d.ts +0 -8
- package/dist/types/components/ScorecardTable/components/DataRow.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/DataValue.d.ts +0 -7
- package/dist/types/components/ScorecardTable/components/DataValue.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/DraggableCell.d.ts +0 -9
- package/dist/types/components/ScorecardTable/components/DraggableCell.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/DroppableCell.d.ts +0 -7
- package/dist/types/components/ScorecardTable/components/DroppableCell.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/EmptyFooterCell.d.ts +0 -4
- package/dist/types/components/ScorecardTable/components/EmptyFooterCell.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/ExpandedScorecardTable.d.ts +0 -8
- package/dist/types/components/ScorecardTable/components/ExpandedScorecardTable.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/FurtherAnalysisMenu.d.ts +0 -15
- package/dist/types/components/ScorecardTable/components/FurtherAnalysisMenu.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/FurtherAnalysisModal.d.ts +0 -13
- package/dist/types/components/ScorecardTable/components/FurtherAnalysisModal.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/LinkedCell.d.ts +0 -20
- package/dist/types/components/ScorecardTable/components/LinkedCell.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/LinkedDataCell.d.ts +0 -15
- package/dist/types/components/ScorecardTable/components/LinkedDataCell.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/MetaFooterCell.d.ts +0 -2
- package/dist/types/components/ScorecardTable/components/MetaFooterCell.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/PaginatedToolbar.d.ts +0 -2
- package/dist/types/components/ScorecardTable/components/PaginatedToolbar.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/SingleDataCell.d.ts +0 -15
- package/dist/types/components/ScorecardTable/components/SingleDataCell.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/TableBody.d.ts +0 -5
- package/dist/types/components/ScorecardTable/components/TableBody.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/TableFoot.d.ts +0 -2
- package/dist/types/components/ScorecardTable/components/TableFoot.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/TableHeader/TableHeader.d.ts +0 -3
- package/dist/types/components/ScorecardTable/components/TableHeader/TableHeader.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/TableHeader/components/AverageHeaderCell.d.ts +0 -4
- package/dist/types/components/ScorecardTable/components/TableHeader/components/AverageHeaderCell.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/TableHeader/components/DataHeaderCell.d.ts +0 -6
- package/dist/types/components/ScorecardTable/components/TableHeader/components/DataHeaderCell.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/TableHeader/components/ExpandCell.d.ts +0 -4
- package/dist/types/components/ScorecardTable/components/TableHeader/components/ExpandCell.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/TableHeader/components/FilterArea.d.ts +0 -7
- package/dist/types/components/ScorecardTable/components/TableHeader/components/FilterArea.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/TableHeader/components/LabelCell.d.ts +0 -12
- package/dist/types/components/ScorecardTable/components/TableHeader/components/LabelCell.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/TableHeader/components/MetaHeaderCell.d.ts +0 -7
- package/dist/types/components/ScorecardTable/components/TableHeader/components/MetaHeaderCell.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/TableHeader/components/NumberCell.d.ts +0 -7
- package/dist/types/components/ScorecardTable/components/TableHeader/components/NumberCell.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/components/TableHeader/index.d.ts +0 -2
- package/dist/types/components/ScorecardTable/components/TableHeader/index.d.ts.map +0 -1
- package/dist/types/components/ScorecardTable/index.d.ts +0 -2
- package/dist/types/components/ScorecardTable/index.d.ts.map +0 -1
- package/dist/types/components/StateProvider.d.ts +0 -9
- package/dist/types/components/StateProvider.d.ts.map +0 -1
- package/dist/types/components/TableStateProvider.d.ts +0 -56
- package/dist/types/components/TableStateProvider.d.ts.map +0 -1
- package/dist/types/components/index.d.ts +0 -7
- package/dist/types/components/index.d.ts.map +0 -1
- package/dist/types/hooks/cellData.d.ts +0 -18
- package/dist/types/hooks/cellData.d.ts.map +0 -1
- package/dist/types/hooks/columns.d.ts +0 -50
- package/dist/types/hooks/columns.d.ts.map +0 -1
- package/dist/types/hooks/data.d.ts +0 -18
- package/dist/types/hooks/data.d.ts.map +0 -1
- package/dist/types/hooks/dataItem.d.ts +0 -3
- package/dist/types/hooks/dataItem.d.ts.map +0 -1
- package/dist/types/hooks/index.d.ts +0 -2
- package/dist/types/hooks/index.d.ts.map +0 -1
- package/dist/types/hooks/metadata.d.ts +0 -41
- package/dist/types/hooks/metadata.d.ts.map +0 -1
- package/dist/types/hooks/orgUnit.d.ts +0 -27
- package/dist/types/hooks/orgUnit.d.ts.map +0 -1
- package/dist/types/hooks/period.d.ts +0 -2
- package/dist/types/hooks/period.d.ts.map +0 -1
- package/dist/types/hooks/table.d.ts +0 -31
- package/dist/types/hooks/table.d.ts.map +0 -1
- package/dist/types/hooks/value.d.ts +0 -87
- package/dist/types/hooks/value.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -6
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/schemas/config.d.ts +0 -3363
- package/dist/types/schemas/config.d.ts.map +0 -1
- package/dist/types/state/scorecardState.d.ts +0 -79
- package/dist/types/state/scorecardState.d.ts.map +0 -1
- package/dist/types/utils/analytics.d.ts +0 -19
- package/dist/types/utils/analytics.d.ts.map +0 -1
- package/dist/types/utils/columns.d.ts +0 -33
- package/dist/types/utils/columns.d.ts.map +0 -1
- package/dist/types/utils/data.d.ts +0 -17
- package/dist/types/utils/data.d.ts.map +0 -1
- package/dist/types/utils/dataEngine.d.ts +0 -50
- package/dist/types/utils/dataEngine.d.ts.map +0 -1
- package/dist/types/utils/dataSources.d.ts +0 -37
- package/dist/types/utils/dataSources.d.ts.map +0 -1
- package/dist/types/utils/engine.d.ts +0 -14
- package/dist/types/utils/engine.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -2
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/legends.d.ts +0 -22
- package/dist/types/utils/legends.d.ts.map +0 -1
- package/dist/types/utils/orgUnits.d.ts +0 -7
- package/dist/types/utils/orgUnits.d.ts.map +0 -1
- package/dist/types/utils/state.d.ts +0 -5
- package/dist/types/utils/state.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/TableBody.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAQ,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAGtD,eAAO,MAAM,SAAS;cAGX,UAAU,gBAAgB,CAAC;EAsBpC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableFoot.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/TableFoot.tsx"],"names":[],"mappings":"AAMA,wBAAgB,SAAS,mDA+BxB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableHeader.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ScorecardTable/components/TableHeader/TableHeader.tsx"],"names":[],"mappings":";AAMA,eAAO,MAAM,WAAW,8CAmBtB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { HeaderContext } from "@tanstack/react-table";
|
|
2
|
-
import type { ScorecardTableData } from "../../../../../schemas/config";
|
|
3
|
-
export declare function AverageHeaderCell({ header, }: HeaderContext<ScorecardTableData, any>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
//# sourceMappingURL=AverageHeaderCell.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AverageHeaderCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ScorecardTable/components/TableHeader/components/AverageHeaderCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAMxE,wBAAgB,iBAAiB,CAAC,EACjC,MAAM,GACN,EAAE,aAAa,CAAC,kBAAkB,EAAE,GAAG,CAAC,2CA2BxC"}
|
package/dist/types/components/ScorecardTable/components/TableHeader/components/DataHeaderCell.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { HeaderContext } from "@tanstack/react-table";
|
|
2
|
-
import { type ScorecardTableData } from "../../../../../schemas/config";
|
|
3
|
-
export declare function EmptyDataHeaderCell({ header, }: HeaderContext<ScorecardTableData, any>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare function DataHeaderCellComponent({ column, header, }: HeaderContext<ScorecardTableData, any>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare const DataHeaderCell: typeof DataHeaderCellComponent;
|
|
6
|
-
//# sourceMappingURL=DataHeaderCell.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataHeaderCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ScorecardTable/components/TableHeader/components/DataHeaderCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAEN,KAAK,kBAAkB,EACvB,MAAM,+BAA+B,CAAC;AAOvC,wBAAgB,mBAAmB,CAAC,EACnC,MAAM,GACN,EAAE,aAAa,CAAC,kBAAkB,EAAE,GAAG,CAAC,2CAGxC;AAED,wBAAgB,uBAAuB,CAAC,EACvC,MAAM,EACN,MAAM,GACN,EAAE,aAAa,CAAC,kBAAkB,EAAE,GAAG,CAAC,2CAmExC;AAED,eAAO,MAAM,cAAc,gCAA0B,CAAC"}
|
package/dist/types/components/ScorecardTable/components/TableHeader/components/ExpandCell.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { CellContext } from "@tanstack/react-table";
|
|
2
|
-
import type { ScorecardTableData } from "../../../../../schemas/config";
|
|
3
|
-
export declare function ExpandCell(props: CellContext<ScorecardTableData, boolean>): import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
-
//# sourceMappingURL=ExpandCell.d.ts.map
|
package/dist/types/components/ScorecardTable/components/TableHeader/components/ExpandCell.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExpandCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ScorecardTable/components/TableHeader/components/ExpandCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGxE,wBAAgB,UAAU,CAAC,KAAK,EAAE,WAAW,CAAC,kBAAkB,EAAE,OAAO,CAAC,kDAmBzE"}
|
package/dist/types/components/ScorecardTable/components/TableHeader/components/FilterArea.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ScorecardTableData } from "../../../../../schemas/config";
|
|
2
|
-
import type { Column } from "@tanstack/react-table";
|
|
3
|
-
export interface FilterAreaProps {
|
|
4
|
-
column: Column<ScorecardTableData, any>;
|
|
5
|
-
}
|
|
6
|
-
export declare function FilterArea({ column }: FilterAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
//# sourceMappingURL=FilterArea.d.ts.map
|
package/dist/types/components/ScorecardTable/components/TableHeader/components/FilterArea.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FilterArea.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ScorecardTable/components/TableHeader/components/FilterArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAOpD,MAAM,WAAW,eAAe;IAC/B,MAAM,EAAE,MAAM,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC;CACxC;AAED,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,eAAe,2CA2BrD"}
|
package/dist/types/components/ScorecardTable/components/TableHeader/components/LabelCell.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { CellContext } from "@tanstack/react-table";
|
|
2
|
-
import { type ScorecardTableData } from "../../../../../schemas/config";
|
|
3
|
-
export declare function LabelCellComponent(props: CellContext<ScorecardTableData, {
|
|
4
|
-
label: string;
|
|
5
|
-
orgUnit?: {
|
|
6
|
-
uid: string;
|
|
7
|
-
hierarchy: string;
|
|
8
|
-
name: string;
|
|
9
|
-
};
|
|
10
|
-
}>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export declare const LabelCell: typeof LabelCellComponent;
|
|
12
|
-
//# sourceMappingURL=LabelCell.d.ts.map
|
package/dist/types/components/ScorecardTable/components/TableHeader/components/LabelCell.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LabelCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ScorecardTable/components/TableHeader/components/LabelCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAEN,KAAK,kBAAkB,EACvB,MAAM,+BAA+B,CAAC;AAQvC,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,WAAW,CACjB,kBAAkB,EAClB;IACC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3D,CACD,2CA2ED;AAED,eAAO,MAAM,SAAS,2BAAqB,CAAC"}
|
package/dist/types/components/ScorecardTable/components/TableHeader/components/MetaHeaderCell.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { HeaderContext } from "@tanstack/react-table";
|
|
3
|
-
import type { ScorecardTableData } from "../../../../../schemas/config";
|
|
4
|
-
declare function MetaHeaderCellComponent({ header, }: HeaderContext<ScorecardTableData, any>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare const MetaHeaderCell: import("react").MemoExoticComponent<typeof MetaHeaderCellComponent>;
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=MetaHeaderCell.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MetaHeaderCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ScorecardTable/components/TableHeader/components/MetaHeaderCell.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AASxE,iBAAS,uBAAuB,CAAC,EAChC,MAAM,GACN,EAAE,aAAa,CAAC,kBAAkB,EAAE,GAAG,CAAC,2CA2DxC;AAED,eAAO,MAAM,cAAc,qEAAgC,CAAC"}
|
package/dist/types/components/ScorecardTable/components/TableHeader/components/NumberCell.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { CellContext } from "@tanstack/react-table";
|
|
3
|
-
import type { ScorecardTableData } from "../../../../../schemas/config";
|
|
4
|
-
declare function NumberCellComponent(props: CellContext<ScorecardTableData, string | number>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare const NumberCell: import("react").MemoExoticComponent<typeof NumberCellComponent>;
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=NumberCell.d.ts.map
|
package/dist/types/components/ScorecardTable/components/TableHeader/components/NumberCell.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NumberCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/ScorecardTable/components/TableHeader/components/NumberCell.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAIxE,iBAAS,mBAAmB,CAC3B,KAAK,EAAE,WAAW,CAAC,kBAAkB,EAAE,MAAM,GAAG,MAAM,CAAC,2CA8BvD;AAED,eAAO,MAAM,UAAU,iEAA4B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ScorecardTable/components/TableHeader/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScorecardTable/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ScorecardConfig, ScorecardState } from "../schemas/config";
|
|
2
|
-
import { type ReactNode } from "react";
|
|
3
|
-
export interface ScorecardStateProviderProps {
|
|
4
|
-
initialState?: ScorecardState;
|
|
5
|
-
config: ScorecardConfig;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare function ScorecardStateProvider({ children, initialState, config, }: ScorecardStateProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=StateProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StateProvider.d.ts","sourceRoot":"","sources":["../../../src/components/StateProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,KAAK,SAAS,EAAe,MAAM,OAAO,CAAC;AAKpD,MAAM,WAAW,2BAA2B;IAC3C,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,MAAM,EAAE,eAAe,CAAC;IACxB,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED,wBAAgB,sBAAsB,CAAC,EACtC,QAAQ,EACR,YAAY,EACZ,MAAM,GACN,EAAE,2BAA2B,2CAY7B"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
export declare function useTableState(): import("@tanstack/react-table").Table<{
|
|
3
|
-
label: string;
|
|
4
|
-
orgUnit?: {
|
|
5
|
-
name: string;
|
|
6
|
-
uid: string;
|
|
7
|
-
hierarchy: string;
|
|
8
|
-
} | undefined;
|
|
9
|
-
dataHolder?: {
|
|
10
|
-
id: string | number;
|
|
11
|
-
dataSources: {
|
|
12
|
-
type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
|
|
13
|
-
id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
legends: {
|
|
16
|
-
id: string;
|
|
17
|
-
legendDefinitionId: string;
|
|
18
|
-
startValue: string | number;
|
|
19
|
-
endValue: string | number;
|
|
20
|
-
}[] | Record<string, {
|
|
21
|
-
id: string;
|
|
22
|
-
legendDefinitionId: string;
|
|
23
|
-
startValue: string | number;
|
|
24
|
-
endValue: string | number;
|
|
25
|
-
}[]>;
|
|
26
|
-
displayArrows: boolean;
|
|
27
|
-
highIsGood: boolean;
|
|
28
|
-
effectiveGap: number;
|
|
29
|
-
showColors: boolean;
|
|
30
|
-
weight: number;
|
|
31
|
-
label?: string | undefined;
|
|
32
|
-
specificTargets?: {
|
|
33
|
-
type: "periods" | "orgUnit";
|
|
34
|
-
items: string[];
|
|
35
|
-
legends: {
|
|
36
|
-
id: string;
|
|
37
|
-
legendDefinitionId: string;
|
|
38
|
-
startValue: string | number;
|
|
39
|
-
endValue: string | number;
|
|
40
|
-
}[];
|
|
41
|
-
}[] | undefined;
|
|
42
|
-
specificTargetsSet?: boolean | undefined;
|
|
43
|
-
description?: string | undefined;
|
|
44
|
-
}[];
|
|
45
|
-
} | undefined;
|
|
46
|
-
expand?: boolean | undefined;
|
|
47
|
-
}>;
|
|
48
|
-
export declare function useToggleTableLoadingState(): () => void;
|
|
49
|
-
export declare function useTableLoadingState(): boolean;
|
|
50
|
-
export declare function TableLoadingStateProvider({ children, }: {
|
|
51
|
-
children: ReactNode;
|
|
52
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
53
|
-
export declare const TableStateProvider: import("react").NamedExoticComponent<{
|
|
54
|
-
children: ReactNode;
|
|
55
|
-
}>;
|
|
56
|
-
//# sourceMappingURL=TableStateProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableStateProvider.d.ts","sourceRoot":"","sources":["../../../src/components/TableStateProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,SAAS,EAGd,MAAM,OAAO,CAAC;AAoBf,wBAAgB,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAI5B;AAED,wBAAgB,0BAA0B,eAEzC;AAED,wBAAgB,oBAAoB,YAEnC;AAED,wBAAgB,yBAAyB,CAAC,EACzC,QAAQ,GACR,EAAE;IACF,QAAQ,EAAE,SAAS,CAAC;CACpB,2CAUA;AAED,eAAO,MAAM,kBAAkB;cAGpB,SAAS;EAQlB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "./ScorecardContext";
|
|
2
|
-
export * from "./ConfigProvider";
|
|
3
|
-
export * from "./MetaProvider";
|
|
4
|
-
export * from "./ScorecardPrint/ScorecardPrint";
|
|
5
|
-
export * from "./ScorecardHeader";
|
|
6
|
-
export * from "./ScorecardLegendsView";
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iCAAiC,CAAC;AAChD,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ScorecardCellData } from "../schemas/config";
|
|
2
|
-
import type { ItemMeta } from "./metadata";
|
|
3
|
-
export declare function useCellData({ dataSource, orgUnit, period, }: {
|
|
4
|
-
dataSource?: ScorecardCellData;
|
|
5
|
-
orgUnit: ItemMeta & {
|
|
6
|
-
hierarchy: string;
|
|
7
|
-
};
|
|
8
|
-
period: string;
|
|
9
|
-
}): {
|
|
10
|
-
currentValue: number | undefined;
|
|
11
|
-
legendDefinition: {
|
|
12
|
-
id: string;
|
|
13
|
-
color: string;
|
|
14
|
-
name: string;
|
|
15
|
-
isDefault?: boolean | undefined;
|
|
16
|
-
} | undefined;
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=cellData.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cellData.d.ts","sourceRoot":"","sources":["../../../src/hooks/cellData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAI3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,wBAAgB,WAAW,CAAC,EAC3B,UAAU,EACV,OAAO,EACP,MAAM,GACN,EAAE;IACF,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,OAAO,EAAE,QAAQ,GAAG;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,MAAM,EAAE,MAAM,CAAC;CACf;;;;;;;;EAsBA"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { type ColumnDef } from "@tanstack/react-table";
|
|
2
|
-
import { type ScorecardTableCellConfig, type ScorecardTableData } from "../schemas/config";
|
|
3
|
-
export declare function useMetaColumns(): ColumnDef<{
|
|
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
|
-
}, any>[];
|
|
49
|
-
export declare function useTableColumns(): ColumnDef<ScorecardTableData, ScorecardTableCellConfig>[];
|
|
50
|
-
//# sourceMappingURL=columns.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"columns.d.ts","sourceRoot":"","sources":["../../../src/hooks/columns.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAsB,MAAM,uBAAuB,CAAC;AAG3E,OAAO,EAEN,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,MAAM,mBAAmB,CAAC;AAmB3B,wBAAgB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAoH7B;AAED,wBAAgB,eAAe,IAAI,SAAS,CAC3C,kBAAkB,EAClB,wBAAwB,CACxB,EAAE,CA6DF"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ScorecardDataEngine } from "../utils/dataEngine";
|
|
2
|
-
export interface ScorecardDataQueryResponse {
|
|
3
|
-
data: {
|
|
4
|
-
headerWidth: number;
|
|
5
|
-
headers: Array<{
|
|
6
|
-
name: string;
|
|
7
|
-
hidden: boolean;
|
|
8
|
-
meta: boolean;
|
|
9
|
-
column: string;
|
|
10
|
-
valueType: string;
|
|
11
|
-
}>;
|
|
12
|
-
rows: Array<Array<string>>;
|
|
13
|
-
height: number;
|
|
14
|
-
width: number;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export declare function useGetScorecardData(dataEngine: ScorecardDataEngine): {};
|
|
18
|
-
//# sourceMappingURL=data.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../src/hooks/data.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AA4B/D,MAAM,WAAW,0BAA0B;IAC1C,IAAI,EAAE;QACL,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,KAAK,CAAC;YACd,IAAI,EAAE,MAAM,CAAC;YACb,MAAM,EAAE,OAAO,CAAC;YAChB,IAAI,EAAE,OAAO,CAAC;YACd,MAAM,EAAE,MAAM,CAAC;YACf,SAAS,EAAE,MAAM,CAAC;SAClB,CAAC,CAAC;QACH,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;QAC3B,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACd,CAAC;CACF;AAED,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,mBAAmB,MA0FlE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dataItem.d.ts","sourceRoot":"","sources":["../../../src/hooks/dataItem.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,wBAAgB,qBAAqB,iBAEhB,mBAAmB,YAUvC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export type ItemMeta = {
|
|
2
|
-
uid: string;
|
|
3
|
-
name: string;
|
|
4
|
-
code?: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
valueType?: string;
|
|
7
|
-
totalAggregationType?: string;
|
|
8
|
-
aggregationType?: string;
|
|
9
|
-
[key: string]: string | number | undefined;
|
|
10
|
-
};
|
|
11
|
-
export declare function useGetScorecardMeta(): {
|
|
12
|
-
loading: boolean;
|
|
13
|
-
orgUnits: {
|
|
14
|
-
hierarchy: string;
|
|
15
|
-
uid: string;
|
|
16
|
-
name: string;
|
|
17
|
-
code?: string | undefined;
|
|
18
|
-
description?: string | undefined;
|
|
19
|
-
valueType?: string | undefined;
|
|
20
|
-
totalAggregationType?: string | undefined;
|
|
21
|
-
aggregationType?: string | undefined;
|
|
22
|
-
}[];
|
|
23
|
-
periods: ItemMeta[];
|
|
24
|
-
dataItems: {
|
|
25
|
-
uid: string;
|
|
26
|
-
name: string;
|
|
27
|
-
code?: string | undefined;
|
|
28
|
-
description?: string | undefined;
|
|
29
|
-
valueType?: string | undefined;
|
|
30
|
-
totalAggregationType?: string | undefined;
|
|
31
|
-
aggregationType?: string | undefined;
|
|
32
|
-
}[];
|
|
33
|
-
orgUnitLevels: {
|
|
34
|
-
id: string;
|
|
35
|
-
level: number;
|
|
36
|
-
displayName: string;
|
|
37
|
-
}[];
|
|
38
|
-
called: boolean;
|
|
39
|
-
};
|
|
40
|
-
export declare function useCalendar(): "iso8601" | "hebrew" | "islamic" | "islamic-umalqura" | "islamic-tbla" | "islamic-civil" | "islamic-rgsa" | "persian" | "ethiopic" | "ethioaa" | "coptic" | "chinese" | "dangi" | "roc" | "indian" | "buddhist" | "japanese" | "gregory" | "nepali";
|
|
41
|
-
//# sourceMappingURL=metadata.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/hooks/metadata.ts"],"names":[],"mappings":"AA2CA,MAAM,MAAM,QAAQ,GAAG;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CAC3C,CAAC;AAgCF,wBAAgB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqGlC;AAED,wBAAgB,WAAW,wPAM1B"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { OrganisationUnit, OrganisationUnitLevel } from "@hisptz/dhis2-utils";
|
|
2
|
-
export declare function useLowestOrgUnitLevel(): {
|
|
3
|
-
id: string;
|
|
4
|
-
level: number;
|
|
5
|
-
displayName: string;
|
|
6
|
-
} | undefined;
|
|
7
|
-
type OrgUnitResponse = {
|
|
8
|
-
ou: {
|
|
9
|
-
organisationUnits: Array<OrganisationUnit>;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export declare function useOrgUnits(initialIds?: string[]): {
|
|
13
|
-
loading: boolean;
|
|
14
|
-
orgUnits: OrganisationUnit[] | undefined;
|
|
15
|
-
refetch: (variables: Record<string, any>) => OrgUnitResponse;
|
|
16
|
-
};
|
|
17
|
-
export declare function useOrgUnitLevels(initialIds?: string[] | null): {
|
|
18
|
-
loading: boolean;
|
|
19
|
-
levels: OrganisationUnitLevel[] | undefined;
|
|
20
|
-
refetch: (variables: Record<string, any>) => {
|
|
21
|
-
level: {
|
|
22
|
-
organisationUnitLevels: OrganisationUnitLevel[];
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export {};
|
|
27
|
-
//# sourceMappingURL=orgUnit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"orgUnit.d.ts","sourceRoot":"","sources":["../../../src/hooks/orgUnit.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACX,gBAAgB,EAChB,qBAAqB,EACrB,MAAM,qBAAqB,CAAC;AAI7B,wBAAgB,qBAAqB;;;;cAOpC;AAcD,KAAK,eAAe,GAAG;IACtB,EAAE,EAAE;QACH,iBAAiB,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;KAC3C,CAAC;CACF,CAAC;AAEF,wBAAgB,WAAW,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE;;;yBAqBnC,OAAO,MAAM,EAAE,GAAG,CAAC,KAC1B,eAAe;EAErB;AAcD,wBAAgB,gBAAgB,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI;;;yBAmBhB,OAAO,MAAM,EAAE,GAAG,CAAC,KAAK;QAClE,KAAK,EAAE;YAAE,sBAAsB,EAAE,qBAAqB,EAAE,CAAA;SAAE,CAAC;KAC3D;EAEF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"period.d.ts","sourceRoot":"","sources":["../../../src/hooks/period.ts"],"names":[],"mappings":"AAEA,wBAAgB,kBAAkB,qBAOjC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type ExpandedState, type Row, type TableOptions, type VisibilityState } from "@tanstack/react-table";
|
|
3
|
-
import type { ScorecardTableData, ScorecardViewOptions } from "../schemas/config";
|
|
4
|
-
import { type ScorecardMeta } from "../components";
|
|
5
|
-
import { type AnalyticsData } from "../utils/data";
|
|
6
|
-
import type { ScorecardDataEngine } from "../utils/dataEngine";
|
|
7
|
-
export declare function getRowValues({ data, showDataInRows, row, }: {
|
|
8
|
-
row: ScorecardTableData;
|
|
9
|
-
data: AnalyticsData[];
|
|
10
|
-
showDataInRows: boolean;
|
|
11
|
-
}): AnalyticsData[];
|
|
12
|
-
export declare function filterRows({ rows, emptyRows, dataEngine, showDataInRows, averageDisplayType, meta, }: {
|
|
13
|
-
emptyRows: ScorecardViewOptions["emptyRows"];
|
|
14
|
-
showDataInRows: boolean;
|
|
15
|
-
averageDisplayType: ScorecardViewOptions["averageDisplayType"];
|
|
16
|
-
dataEngine: ScorecardDataEngine;
|
|
17
|
-
rows: ScorecardTableData[];
|
|
18
|
-
meta: ScorecardMeta;
|
|
19
|
-
}): number[];
|
|
20
|
-
export declare function useTableRows(): ScorecardTableData[];
|
|
21
|
-
export declare function useColumnVisibility(): {
|
|
22
|
-
columnVisibility: VisibilityState;
|
|
23
|
-
setColumnVisibility: import("react").Dispatch<import("react").SetStateAction<VisibilityState>>;
|
|
24
|
-
};
|
|
25
|
-
export declare function useRowExpanding(): {
|
|
26
|
-
expanded: ExpandedState;
|
|
27
|
-
onExpandedChange: import("react").Dispatch<import("react").SetStateAction<ExpandedState>> | undefined;
|
|
28
|
-
getRowCanExpand: (row: Row<ScorecardTableData>) => boolean;
|
|
29
|
-
};
|
|
30
|
-
export declare function useTableSetup(): TableOptions<ScorecardTableData>;
|
|
31
|
-
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/hooks/table.ts"],"names":[],"mappings":";AAAA,OAAO,EAEN,KAAK,aAAa,EAOlB,KAAK,GAAG,EAER,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EACX,kBAAkB,EAClB,oBAAoB,EACpB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACN,KAAK,aAAa,EAGlB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,KAAK,aAAa,EAAmB,MAAM,eAAe,CAAC;AAEpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAK/D,wBAAgB,YAAY,CAAC,EAC5B,IAAI,EACJ,cAAc,EACd,GAAG,GACH,EAAE;IACF,GAAG,EAAE,kBAAkB,CAAC;IACxB,IAAI,EAAE,aAAa,EAAE,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;CACxB,GAAG,aAAa,EAAE,CASlB;AAED,wBAAgB,UAAU,CAAC,EAC1B,IAAI,EACJ,SAAS,EACT,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,IAAI,GACJ,EAAE;IACF,SAAS,EAAE,oBAAoB,CAAC,WAAW,CAAC,CAAC;IAC7C,cAAc,EAAE,OAAO,CAAC;IACxB,kBAAkB,EAAE,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;IAC/D,UAAU,EAAE,mBAAmB,CAAC;IAChC,IAAI,EAAE,kBAAkB,EAAE,CAAC;IAC3B,IAAI,EAAE,aAAa,CAAC;CACpB,YA8CA;AAED,wBAAgB,YAAY,IAAI,kBAAkB,EAAE,CAmEnD;AAED,wBAAgB,mBAAmB;;;EAsClC;AAED,wBAAgB,eAAe;;;2BAQY,IAAI,kBAAkB,CAAC;EAcjE;AAED,wBAAgB,aAAa,IAAI,YAAY,CAAC,kBAAkB,CAAC,CA2DhE"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import type { ScorecardTableAverageCellConfig, ScorecardTableCellConfig } from "../schemas/config";
|
|
2
|
-
export declare function useCellValue(dataConfig: ScorecardTableCellConfig): {
|
|
3
|
-
loading: boolean;
|
|
4
|
-
cellData: {
|
|
5
|
-
type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
legends: {
|
|
9
|
-
id: string;
|
|
10
|
-
legendDefinitionId: string;
|
|
11
|
-
startValue: string | number;
|
|
12
|
-
endValue: string | number;
|
|
13
|
-
}[] | Record<string, {
|
|
14
|
-
id: string;
|
|
15
|
-
legendDefinitionId: string;
|
|
16
|
-
startValue: string | number;
|
|
17
|
-
endValue: string | number;
|
|
18
|
-
}[]>;
|
|
19
|
-
displayArrows: boolean;
|
|
20
|
-
highIsGood: boolean;
|
|
21
|
-
effectiveGap: number;
|
|
22
|
-
showColors: boolean;
|
|
23
|
-
weight: number;
|
|
24
|
-
data: {
|
|
25
|
-
previous?: number | undefined;
|
|
26
|
-
current?: number | undefined;
|
|
27
|
-
};
|
|
28
|
-
label?: string | undefined;
|
|
29
|
-
specificTargets?: {
|
|
30
|
-
type: "periods" | "orgUnit";
|
|
31
|
-
items: string[];
|
|
32
|
-
legends: {
|
|
33
|
-
id: string;
|
|
34
|
-
legendDefinitionId: string;
|
|
35
|
-
startValue: string | number;
|
|
36
|
-
endValue: string | number;
|
|
37
|
-
}[];
|
|
38
|
-
}[] | undefined;
|
|
39
|
-
specificTargetsSet?: boolean | undefined;
|
|
40
|
-
description?: string | undefined;
|
|
41
|
-
}[];
|
|
42
|
-
};
|
|
43
|
-
export declare function useDataHolderAverageCellValue(dataConfig: ScorecardTableAverageCellConfig): {
|
|
44
|
-
loading: boolean;
|
|
45
|
-
cellData: {
|
|
46
|
-
type: "indicator" | "programIndicator" | "dataSet" | "dataElement" | "customFunction" | "sqlView";
|
|
47
|
-
id: string;
|
|
48
|
-
name: string;
|
|
49
|
-
legends: {
|
|
50
|
-
id: string;
|
|
51
|
-
legendDefinitionId: string;
|
|
52
|
-
startValue: string | number;
|
|
53
|
-
endValue: string | number;
|
|
54
|
-
}[] | Record<string, {
|
|
55
|
-
id: string;
|
|
56
|
-
legendDefinitionId: string;
|
|
57
|
-
startValue: string | number;
|
|
58
|
-
endValue: string | number;
|
|
59
|
-
}[]>;
|
|
60
|
-
displayArrows: boolean;
|
|
61
|
-
highIsGood: boolean;
|
|
62
|
-
effectiveGap: number;
|
|
63
|
-
showColors: boolean;
|
|
64
|
-
weight: number;
|
|
65
|
-
data: {
|
|
66
|
-
average?: number | undefined;
|
|
67
|
-
};
|
|
68
|
-
label?: string | undefined;
|
|
69
|
-
specificTargets?: {
|
|
70
|
-
type: "periods" | "orgUnit";
|
|
71
|
-
items: string[];
|
|
72
|
-
legends: {
|
|
73
|
-
id: string;
|
|
74
|
-
legendDefinitionId: string;
|
|
75
|
-
startValue: string | number;
|
|
76
|
-
endValue: string | number;
|
|
77
|
-
}[];
|
|
78
|
-
}[] | undefined;
|
|
79
|
-
specificTargetsSet?: boolean | undefined;
|
|
80
|
-
description?: string | undefined;
|
|
81
|
-
}[];
|
|
82
|
-
};
|
|
83
|
-
export declare function useOrgUnitAverageCellValue(dataConfig: ScorecardTableAverageCellConfig): {
|
|
84
|
-
loading: boolean;
|
|
85
|
-
average: number | null;
|
|
86
|
-
};
|
|
87
|
-
//# sourceMappingURL=value.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"value.d.ts","sourceRoot":"","sources":["../../../src/hooks/value.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAGX,+BAA+B,EAC/B,wBAAwB,EACxB,MAAM,mBAAmB,CAAC;AAmD3B,wBAAgB,YAAY,CAAC,UAAU,EAAE,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8ChE;AA4BD,wBAAgB,6BAA6B,CAC5C,UAAU,EAAE,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoC3C;AAgBD,wBAAgB,0BAA0B,CACzC,UAAU,EAAE,+BAA+B;;;EAqC3C"}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|