@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.
Files changed (165) hide show
  1. package/dist/types/Scorecard.d.ts +7 -0
  2. package/dist/types/Scorecard.d.ts.map +1 -0
  3. package/dist/types/components/ColGroup.d.ts +2 -0
  4. package/dist/types/components/ColGroup.d.ts.map +1 -0
  5. package/dist/types/components/ConfigProvider.d.ts +144 -0
  6. package/dist/types/components/ConfigProvider.d.ts.map +1 -0
  7. package/dist/types/components/DataProvider.d.ts +10 -0
  8. package/dist/types/components/DataProvider.d.ts.map +1 -0
  9. package/dist/types/components/LoadingIndicator.d.ts +5 -0
  10. package/dist/types/components/LoadingIndicator.d.ts.map +1 -0
  11. package/dist/types/components/MetaProvider.d.ts +23 -0
  12. package/dist/types/components/MetaProvider.d.ts.map +1 -0
  13. package/dist/types/components/ScorecardContext.d.ts +9 -0
  14. package/dist/types/components/ScorecardContext.d.ts.map +1 -0
  15. package/dist/types/components/ScorecardHeader.d.ts +2 -0
  16. package/dist/types/components/ScorecardHeader.d.ts.map +1 -0
  17. package/dist/types/components/ScorecardLegendsView/ScorecardLegendsView.d.ts +3 -0
  18. package/dist/types/components/ScorecardLegendsView/ScorecardLegendsView.d.ts.map +1 -0
  19. package/dist/types/components/ScorecardLegendsView/components/ArrowLegendView.d.ts +2 -0
  20. package/dist/types/components/ScorecardLegendsView/components/ArrowLegendView.d.ts.map +1 -0
  21. package/dist/types/components/ScorecardLegendsView/components/LegendView.d.ts +10 -0
  22. package/dist/types/components/ScorecardLegendsView/components/LegendView.d.ts.map +1 -0
  23. package/dist/types/components/ScorecardLegendsView/components/OrgUnitLevelSpecificTargetView.d.ts +7 -0
  24. package/dist/types/components/ScorecardLegendsView/components/OrgUnitLevelSpecificTargetView.d.ts.map +1 -0
  25. package/dist/types/components/ScorecardLegendsView/components/OrgUnitSpecificTargetView.d.ts +7 -0
  26. package/dist/types/components/ScorecardLegendsView/components/OrgUnitSpecificTargetView.d.ts.map +1 -0
  27. package/dist/types/components/ScorecardLegendsView/components/PeriodSpecificTargetView.d.ts +7 -0
  28. package/dist/types/components/ScorecardLegendsView/components/PeriodSpecificTargetView.d.ts.map +1 -0
  29. package/dist/types/components/ScorecardLegendsView/components/SpecificTargetLegendsView.d.ts +3 -0
  30. package/dist/types/components/ScorecardLegendsView/components/SpecificTargetLegendsView.d.ts.map +1 -0
  31. package/dist/types/components/ScorecardLegendsView/index.d.ts +2 -0
  32. package/dist/types/components/ScorecardLegendsView/index.d.ts.map +1 -0
  33. package/dist/types/components/ScorecardPrint/ScorecardPrint.d.ts +3 -0
  34. package/dist/types/components/ScorecardPrint/ScorecardPrint.d.ts.map +1 -0
  35. package/dist/types/components/ScorecardPrint/components/ScorecardDownloadButton.d.ts +2 -0
  36. package/dist/types/components/ScorecardPrint/components/ScorecardDownloadButton.d.ts.map +1 -0
  37. package/dist/types/components/ScorecardPrint/components/ScorecardPreviewArea.d.ts +5 -0
  38. package/dist/types/components/ScorecardPrint/components/ScorecardPreviewArea.d.ts.map +1 -0
  39. package/dist/types/components/ScorecardPrint/utils/download.d.ts +33 -0
  40. package/dist/types/components/ScorecardPrint/utils/download.d.ts.map +1 -0
  41. package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/FurtherAnalysisDictionary.d.ts +6 -0
  42. package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/FurtherAnalysisDictionary.d.ts.map +1 -0
  43. package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/components/ConfigProvider.d.ts +12 -0
  44. package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/components/ConfigProvider.d.ts.map +1 -0
  45. package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/components/DetailsProvider.d.ts +9 -0
  46. package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/components/DetailsProvider.d.ts.map +1 -0
  47. package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/index.d.ts +2 -0
  48. package/dist/types/components/ScorecardTable/FurtherAnalysisDictionary/index.d.ts.map +1 -0
  49. package/dist/types/components/ScorecardTable/FurtherAnalysisVisualization.d.ts +7 -0
  50. package/dist/types/components/ScorecardTable/FurtherAnalysisVisualization.d.ts.map +1 -0
  51. package/dist/types/components/ScorecardTable/ScorecardTable.d.ts +6 -0
  52. package/dist/types/components/ScorecardTable/ScorecardTable.d.ts.map +1 -0
  53. package/dist/types/components/ScorecardTable/components/AverageCell.d.ts +12 -0
  54. package/dist/types/components/ScorecardTable/components/AverageCell.d.ts.map +1 -0
  55. package/dist/types/components/ScorecardTable/components/AverageFooterCell.d.ts +4 -0
  56. package/dist/types/components/ScorecardTable/components/AverageFooterCell.d.ts.map +1 -0
  57. package/dist/types/components/ScorecardTable/components/CellLoader.d.ts +4 -0
  58. package/dist/types/components/ScorecardTable/components/CellLoader.d.ts.map +1 -0
  59. package/dist/types/components/ScorecardTable/components/DataContainer.d.ts +91 -0
  60. package/dist/types/components/ScorecardTable/components/DataContainer.d.ts.map +1 -0
  61. package/dist/types/components/ScorecardTable/components/DataFooterCell.d.ts +4 -0
  62. package/dist/types/components/ScorecardTable/components/DataFooterCell.d.ts.map +1 -0
  63. package/dist/types/components/ScorecardTable/components/DataRow.d.ts +8 -0
  64. package/dist/types/components/ScorecardTable/components/DataRow.d.ts.map +1 -0
  65. package/dist/types/components/ScorecardTable/components/DataValue.d.ts +7 -0
  66. package/dist/types/components/ScorecardTable/components/DataValue.d.ts.map +1 -0
  67. package/dist/types/components/ScorecardTable/components/DraggableCell.d.ts +9 -0
  68. package/dist/types/components/ScorecardTable/components/DraggableCell.d.ts.map +1 -0
  69. package/dist/types/components/ScorecardTable/components/DroppableCell.d.ts +7 -0
  70. package/dist/types/components/ScorecardTable/components/DroppableCell.d.ts.map +1 -0
  71. package/dist/types/components/ScorecardTable/components/EmptyFooterCell.d.ts +4 -0
  72. package/dist/types/components/ScorecardTable/components/EmptyFooterCell.d.ts.map +1 -0
  73. package/dist/types/components/ScorecardTable/components/ExpandedScorecardTable.d.ts +8 -0
  74. package/dist/types/components/ScorecardTable/components/ExpandedScorecardTable.d.ts.map +1 -0
  75. package/dist/types/components/ScorecardTable/components/FurtherAnalysisMenu.d.ts +15 -0
  76. package/dist/types/components/ScorecardTable/components/FurtherAnalysisMenu.d.ts.map +1 -0
  77. package/dist/types/components/ScorecardTable/components/FurtherAnalysisModal.d.ts +13 -0
  78. package/dist/types/components/ScorecardTable/components/FurtherAnalysisModal.d.ts.map +1 -0
  79. package/dist/types/components/ScorecardTable/components/LinkedCell.d.ts +20 -0
  80. package/dist/types/components/ScorecardTable/components/LinkedCell.d.ts.map +1 -0
  81. package/dist/types/components/ScorecardTable/components/LinkedDataCell.d.ts +15 -0
  82. package/dist/types/components/ScorecardTable/components/LinkedDataCell.d.ts.map +1 -0
  83. package/dist/types/components/ScorecardTable/components/MetaFooterCell.d.ts +2 -0
  84. package/dist/types/components/ScorecardTable/components/MetaFooterCell.d.ts.map +1 -0
  85. package/dist/types/components/ScorecardTable/components/PaginatedToolbar.d.ts +2 -0
  86. package/dist/types/components/ScorecardTable/components/PaginatedToolbar.d.ts.map +1 -0
  87. package/dist/types/components/ScorecardTable/components/SingleDataCell.d.ts +15 -0
  88. package/dist/types/components/ScorecardTable/components/SingleDataCell.d.ts.map +1 -0
  89. package/dist/types/components/ScorecardTable/components/TableBody.d.ts +5 -0
  90. package/dist/types/components/ScorecardTable/components/TableBody.d.ts.map +1 -0
  91. package/dist/types/components/ScorecardTable/components/TableFoot.d.ts +2 -0
  92. package/dist/types/components/ScorecardTable/components/TableFoot.d.ts.map +1 -0
  93. package/dist/types/components/ScorecardTable/components/TableHeader/TableHeader.d.ts +3 -0
  94. package/dist/types/components/ScorecardTable/components/TableHeader/TableHeader.d.ts.map +1 -0
  95. package/dist/types/components/ScorecardTable/components/TableHeader/components/AverageHeaderCell.d.ts +4 -0
  96. package/dist/types/components/ScorecardTable/components/TableHeader/components/AverageHeaderCell.d.ts.map +1 -0
  97. package/dist/types/components/ScorecardTable/components/TableHeader/components/DataHeaderCell.d.ts +6 -0
  98. package/dist/types/components/ScorecardTable/components/TableHeader/components/DataHeaderCell.d.ts.map +1 -0
  99. package/dist/types/components/ScorecardTable/components/TableHeader/components/ExpandCell.d.ts +4 -0
  100. package/dist/types/components/ScorecardTable/components/TableHeader/components/ExpandCell.d.ts.map +1 -0
  101. package/dist/types/components/ScorecardTable/components/TableHeader/components/FilterArea.d.ts +7 -0
  102. package/dist/types/components/ScorecardTable/components/TableHeader/components/FilterArea.d.ts.map +1 -0
  103. package/dist/types/components/ScorecardTable/components/TableHeader/components/LabelCell.d.ts +12 -0
  104. package/dist/types/components/ScorecardTable/components/TableHeader/components/LabelCell.d.ts.map +1 -0
  105. package/dist/types/components/ScorecardTable/components/TableHeader/components/MetaHeaderCell.d.ts +7 -0
  106. package/dist/types/components/ScorecardTable/components/TableHeader/components/MetaHeaderCell.d.ts.map +1 -0
  107. package/dist/types/components/ScorecardTable/components/TableHeader/components/NumberCell.d.ts +7 -0
  108. package/dist/types/components/ScorecardTable/components/TableHeader/components/NumberCell.d.ts.map +1 -0
  109. package/dist/types/components/ScorecardTable/components/TableHeader/index.d.ts +2 -0
  110. package/dist/types/components/ScorecardTable/components/TableHeader/index.d.ts.map +1 -0
  111. package/dist/types/components/ScorecardTable/index.d.ts +2 -0
  112. package/dist/types/components/ScorecardTable/index.d.ts.map +1 -0
  113. package/dist/types/components/StateProvider.d.ts +9 -0
  114. package/dist/types/components/StateProvider.d.ts.map +1 -0
  115. package/dist/types/components/TableStateProvider.d.ts +56 -0
  116. package/dist/types/components/TableStateProvider.d.ts.map +1 -0
  117. package/dist/types/components/index.d.ts +7 -0
  118. package/dist/types/components/index.d.ts.map +1 -0
  119. package/dist/types/hooks/cellData.d.ts +18 -0
  120. package/dist/types/hooks/cellData.d.ts.map +1 -0
  121. package/dist/types/hooks/columns.d.ts +50 -0
  122. package/dist/types/hooks/columns.d.ts.map +1 -0
  123. package/dist/types/hooks/data.d.ts +18 -0
  124. package/dist/types/hooks/data.d.ts.map +1 -0
  125. package/dist/types/hooks/dataItem.d.ts +3 -0
  126. package/dist/types/hooks/dataItem.d.ts.map +1 -0
  127. package/dist/types/hooks/index.d.ts +2 -0
  128. package/dist/types/hooks/index.d.ts.map +1 -0
  129. package/dist/types/hooks/metadata.d.ts +41 -0
  130. package/dist/types/hooks/metadata.d.ts.map +1 -0
  131. package/dist/types/hooks/orgUnit.d.ts +27 -0
  132. package/dist/types/hooks/orgUnit.d.ts.map +1 -0
  133. package/dist/types/hooks/period.d.ts +2 -0
  134. package/dist/types/hooks/period.d.ts.map +1 -0
  135. package/dist/types/hooks/table.d.ts +31 -0
  136. package/dist/types/hooks/table.d.ts.map +1 -0
  137. package/dist/types/hooks/value.d.ts +87 -0
  138. package/dist/types/hooks/value.d.ts.map +1 -0
  139. package/dist/types/index.d.ts +6 -0
  140. package/dist/types/index.d.ts.map +1 -0
  141. package/dist/types/schemas/config.d.ts +3363 -0
  142. package/dist/types/schemas/config.d.ts.map +1 -0
  143. package/dist/types/state/scorecardState.d.ts +79 -0
  144. package/dist/types/state/scorecardState.d.ts.map +1 -0
  145. package/dist/types/utils/analytics.d.ts +19 -0
  146. package/dist/types/utils/analytics.d.ts.map +1 -0
  147. package/dist/types/utils/columns.d.ts +33 -0
  148. package/dist/types/utils/columns.d.ts.map +1 -0
  149. package/dist/types/utils/data.d.ts +17 -0
  150. package/dist/types/utils/data.d.ts.map +1 -0
  151. package/dist/types/utils/dataEngine.d.ts +50 -0
  152. package/dist/types/utils/dataEngine.d.ts.map +1 -0
  153. package/dist/types/utils/dataSources.d.ts +37 -0
  154. package/dist/types/utils/dataSources.d.ts.map +1 -0
  155. package/dist/types/utils/engine.d.ts +14 -0
  156. package/dist/types/utils/engine.d.ts.map +1 -0
  157. package/dist/types/utils/index.d.ts +2 -0
  158. package/dist/types/utils/index.d.ts.map +1 -0
  159. package/dist/types/utils/legends.d.ts +22 -0
  160. package/dist/types/utils/legends.d.ts.map +1 -0
  161. package/dist/types/utils/orgUnits.d.ts +7 -0
  162. package/dist/types/utils/orgUnits.d.ts.map +1 -0
  163. package/dist/types/utils/state.d.ts +5 -0
  164. package/dist/types/utils/state.d.ts.map +1 -0
  165. package/package.json +3 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataFooterCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/DataFooterCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAEX,wBAAwB,EACxB,kBAAkB,EAClB,MAAM,yBAAyB,CAAC;AA6IjC,wBAAgB,cAAc,CAAC,EAC9B,KAAK,EACL,MAAM,GACN,EAAE,aAAa,CAAC,kBAAkB,EAAE,wBAAwB,CAAC,2CA0B7D"}
@@ -0,0 +1,8 @@
1
+ import { type Row } from "@tanstack/react-table";
2
+ import type { ScorecardTableData } from "../../../schemas/config";
3
+ declare function TableRowComponent({ row }: {
4
+ row: Row<ScorecardTableData>;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ export declare const TableRow: typeof TableRowComponent;
7
+ export {};
8
+ //# sourceMappingURL=DataRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataRow.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/DataRow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAEX,kBAAkB,EAClB,MAAM,yBAAyB,CAAC;AAMjC,iBAAS,iBAAiB,CAAC,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,GAAG,CAAC,kBAAkB,CAAC,CAAA;CAAE,2CAgDnE;AAED,eAAO,MAAM,QAAQ,0BAAoB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import type { ScorecardCellData } from "../../../schemas/config";
3
+ export declare const DataValue: import("react").NamedExoticComponent<{
4
+ dataSource: ScorecardCellData;
5
+ value?: number | undefined;
6
+ }>;
7
+ //# sourceMappingURL=DataValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataValue.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/DataValue.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAGjE,eAAO,MAAM,SAAS;gBAIT,iBAAiB;;EA4D5B,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import type { ScorecardDraggableItems } from "../../../schemas/config";
3
+ export declare function DraggableCell({ children, type, style, id, ...props }: {
4
+ children: React.ReactNode;
5
+ type: ScorecardDraggableItems;
6
+ id: string;
7
+ style?: React.CSSProperties;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ //# sourceMappingURL=DraggableCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DraggableCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/DraggableCell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAGvE,wBAAgB,aAAa,CAAC,EAC7B,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,EAAE,EACF,GAAG,KAAK,EACR,EAAE;IACF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,EAAE,uBAAuB,CAAC;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC5B,2CAmCA"}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import type { ScorecardDraggableItems } from "../../../schemas/config";
3
+ export default function DroppableCell({ accept, children, }: {
4
+ accept: ScorecardDraggableItems[];
5
+ children: React.ReactNode;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=DroppableCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DroppableCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/DroppableCell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAGvE,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACrC,MAAM,EACN,QAAQ,GACR,EAAE;IACF,MAAM,EAAE,uBAAuB,EAAE,CAAC;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,2CAqCA"}
@@ -0,0 +1,4 @@
1
+ import type { HeaderContext } from "@tanstack/react-table";
2
+ import type { ScorecardTableData } from "../../../schemas/config";
3
+ export declare function EmptyFooterCell(props: HeaderContext<ScorecardTableData, unknown>): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=EmptyFooterCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmptyFooterCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/EmptyFooterCell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,wBAAgB,eAAe,CAC9B,KAAK,EAAE,aAAa,CAAC,kBAAkB,EAAE,OAAO,CAAC,2CAGjD"}
@@ -0,0 +1,8 @@
1
+ import type { ItemMeta } from "../../../hooks/metadata";
2
+ export declare function ExpandedScorecardTable({ orgUnit, pending, }: {
3
+ orgUnit: ItemMeta & {
4
+ hierarchy: string;
5
+ };
6
+ pending: boolean;
7
+ }): import("react/jsx-runtime").JSX.Element | null;
8
+ //# sourceMappingURL=ExpandedScorecardTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpandedScorecardTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/ExpandedScorecardTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAYxD,wBAAgB,sBAAsB,CAAC,EACtC,OAAO,EACP,OAAO,GACP,EAAE;IACF,OAAO,EAAE,QAAQ,GAAG;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,OAAO,EAAE,OAAO,CAAC;CACjB,kDA6EA"}
@@ -0,0 +1,15 @@
1
+ import { type ReferenceElement } from "@dhis2/ui";
2
+ import type { ItemMeta } from "../../../hooks/metadata";
3
+ import type { FurtherAnalysisConfig } from "./FurtherAnalysisModal";
4
+ import type { ScorecardDataSource } from "../../../schemas/config";
5
+ export declare function FurtherAnalysisMenu({ stateActionRef, setStateActionRef, orgUnit, onSelect, periodId, dataSources, }: {
6
+ stateActionRef: ReferenceElement;
7
+ setStateActionRef: (val: undefined) => void;
8
+ orgUnit: ItemMeta & {
9
+ hierarchy: string;
10
+ };
11
+ onSelect: (config: FurtherAnalysisConfig) => void;
12
+ periodId: string;
13
+ dataSources: ScorecardDataSource[];
14
+ }): import("react/jsx-runtime").JSX.Element;
15
+ //# sourceMappingURL=FurtherAnalysisMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FurtherAnalysisMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/FurtherAnalysisMenu.tsx"],"names":[],"mappings":"AACA,OAAO,EAQN,KAAK,gBAAgB,EACrB,MAAM,WAAW,CAAC;AAGnB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,wBAAgB,mBAAmB,CAAC,EACnC,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,WAAW,GACX,EAAE;IACF,cAAc,EAAE,gBAAgB,CAAC;IACjC,iBAAiB,EAAE,CAAC,GAAG,EAAE,SAAS,KAAK,IAAI,CAAC;IAC5C,OAAO,EAAE,QAAQ,GAAG;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,QAAQ,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,mBAAmB,EAAE,CAAC;CACnC,2CAoOA"}
@@ -0,0 +1,13 @@
1
+ import type { OrgUnitSelection, PeriodSelection, ScorecardDataSource } from "../../../schemas/config";
2
+ export interface FurtherAnalysisConfig {
3
+ orgUnitSelection: OrgUnitSelection;
4
+ periodSelection: PeriodSelection;
5
+ dataSources: ScorecardDataSource[];
6
+ }
7
+ export interface FurtherAnalysisProps {
8
+ hide: boolean;
9
+ onClose: () => void;
10
+ config: FurtherAnalysisConfig;
11
+ }
12
+ export declare function FurtherAnalysis({ hide, onClose, config, }: FurtherAnalysisProps): import("react/jsx-runtime").JSX.Element;
13
+ //# sourceMappingURL=FurtherAnalysisModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FurtherAnalysisModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/FurtherAnalysisModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,MAAM,yBAAyB,CAAC;AAajC,MAAM,WAAW,qBAAqB;IACrC,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,eAAe,EAAE,eAAe,CAAC;IACjC,WAAW,EAAE,mBAAmB,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,oBAAoB;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,qBAAqB,CAAC;CAC9B;AAED,wBAAgB,eAAe,CAAC,EAC/B,IAAI,EACJ,OAAO,EACP,MAAM,GACN,EAAE,oBAAoB,2CA0DtB"}
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import type { LegendDefinition, ScorecardCellData } from "../../../schemas/config";
3
+ export interface LinkedCellProps {
4
+ top: {
5
+ dataSource: ScorecardCellData;
6
+ legendDefinition?: LegendDefinition;
7
+ value?: number;
8
+ };
9
+ bottom: {
10
+ dataSource: ScorecardCellData;
11
+ legendDefinition?: LegendDefinition;
12
+ value?: number;
13
+ };
14
+ size: number;
15
+ [key: string]: unknown;
16
+ }
17
+ declare function LinkedCellComponent({ top, bottom, size, ...props }: LinkedCellProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare const LinkedCell: React.MemoExoticComponent<typeof LinkedCellComponent>;
19
+ export {};
20
+ //# sourceMappingURL=LinkedCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkedCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/LinkedCell.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EACX,gBAAgB,EAChB,iBAAiB,EACjB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,WAAW,eAAe;IAC/B,GAAG,EAAE;QACJ,UAAU,EAAE,iBAAiB,CAAC;QAC9B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;QACpC,KAAK,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,MAAM,EAAE;QACP,UAAU,EAAE,iBAAiB,CAAC;QAC9B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;QACpC,KAAK,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,IAAI,EAAE,MAAM,CAAC;IAEb,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACvB;AAED,iBAAS,mBAAmB,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CA2F5E;AAED,eAAO,MAAM,UAAU,uDAKrB,CAAC"}
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import type { ScorecardCellData } from "../../../schemas/config";
3
+ import type { ItemMeta } from "../../../hooks/metadata";
4
+ export interface LinkedDataCellProps {
5
+ dataSources: ScorecardCellData[];
6
+ orgUnit: ItemMeta & {
7
+ hierarchy: string;
8
+ };
9
+ period: string;
10
+ size: number;
11
+ }
12
+ declare function LinkedDataCellComponent({ dataSources, orgUnit, period, size, }: LinkedDataCellProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare const LinkedDataCell: import("react").MemoExoticComponent<typeof LinkedDataCellComponent>;
14
+ export {};
15
+ //# sourceMappingURL=LinkedDataCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkedDataCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/LinkedDataCell.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAUxD,MAAM,WAAW,mBAAmB;IACnC,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,OAAO,EAAE,QAAQ,GAAG;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACb;AAED,iBAAS,uBAAuB,CAAC,EAChC,WAAW,EACX,OAAO,EACP,MAAM,EACN,IAAI,GACJ,EAAE,mBAAmB,2CA6ErB;AAED,eAAO,MAAM,cAAc,qEAAgC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function MetaFooterCell(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=MetaFooterCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetaFooterCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/MetaFooterCell.tsx"],"names":[],"mappings":"AAIA,wBAAgB,cAAc,4CAwB7B"}
@@ -0,0 +1,2 @@
1
+ export declare function PaginatedToolbar(): import("react/jsx-runtime").JSX.Element | null;
2
+ //# sourceMappingURL=PaginatedToolbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaginatedToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/PaginatedToolbar.tsx"],"names":[],"mappings":"AAQA,wBAAgB,gBAAgB,mDAsD/B"}
@@ -0,0 +1,15 @@
1
+ import { type ScorecardCellData } from "../../../schemas/config";
2
+ import { type ItemMeta } from "../../../hooks/metadata";
3
+ import { type ReactNode } from "react";
4
+ export interface SingleDataCellProps {
5
+ dataSources: ScorecardCellData[];
6
+ orgUnit: ItemMeta & {
7
+ hierarchy: string;
8
+ };
9
+ period: string;
10
+ size: number;
11
+ }
12
+ declare function SingleDataCellComponent({ dataSources, period, orgUnit, size, }: SingleDataCellProps): ReactNode;
13
+ export declare const SingleDataCell: import("react").MemoExoticComponent<typeof SingleDataCellComponent>;
14
+ export {};
15
+ //# sourceMappingURL=SingleDataCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SingleDataCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/SingleDataCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAQ,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAYvD,MAAM,WAAW,mBAAmB;IACnC,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,OAAO,EAAE,QAAQ,GAAG;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACb;AAED,iBAAS,uBAAuB,CAAC,EAChC,WAAW,EACX,MAAM,EACN,OAAO,EACP,IAAI,GACJ,EAAE,mBAAmB,GAAG,SAAS,CAmFjC;AAED,eAAO,MAAM,cAAc,qEAAgC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { type RefObject } from "react";
2
+ export declare const TableBody: import("react").NamedExoticComponent<{
3
+ tableRef: RefObject<HTMLTableElement>;
4
+ }>;
5
+ //# sourceMappingURL=TableBody.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export declare function TableFoot(): import("react/jsx-runtime").JSX.Element | null;
2
+ //# sourceMappingURL=TableFoot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableFoot.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScorecardTable/components/TableFoot.tsx"],"names":[],"mappings":"AAMA,wBAAgB,SAAS,mDA+BxB"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const TableHeader: import("react").NamedExoticComponent<object>;
3
+ //# sourceMappingURL=TableHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableHeader.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ScorecardTable/components/TableHeader/TableHeader.tsx"],"names":[],"mappings":";AAMA,eAAO,MAAM,WAAW,8CAmBtB,CAAC"}
@@ -0,0 +1,4 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,6 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,4 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,7 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,12 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,7 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,7 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export * from "./TableHeader";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/ScorecardTable/components/TableHeader/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./ScorecardTable";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ScorecardTable/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,9 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,56 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,7 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,18 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,50 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,18 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ import type { ScorecardDataSource } from "../schemas/config";
2
+ export declare function useGetDataSourceLabel(): (dataSource: ScorecardDataSource) => string;
3
+ //# sourceMappingURL=dataItem.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export * from "./dataItem";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,41 @@
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
@@ -0,0 +1 @@
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"}