@hisptz/dhis2-analytics 2.0.32 → 2.0.33
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/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.js.map +1 -1
- package/dist/components/Scorecard/Scorecard.stories.js +150 -879
- package/dist/components/Scorecard/Scorecard.stories.js.map +1 -1
- package/dist/components/Scorecard/ScorecardContext.stories.js +422 -0
- package/dist/components/Scorecard/ScorecardContext.stories.js.map +1 -0
- package/dist/components/Scorecard/components/DataProvider.js +4 -19
- package/dist/components/Scorecard/components/DataProvider.js.map +1 -1
- package/dist/components/Scorecard/components/LoadingIndicator.js +27 -0
- package/dist/components/Scorecard/components/LoadingIndicator.js.map +1 -0
- package/dist/components/Scorecard/components/MetaProvider.js +10 -2
- package/dist/components/Scorecard/components/MetaProvider.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardContext.js +52 -1
- package/dist/components/Scorecard/components/ScorecardContext.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/ScorecardTable.js +33 -14
- package/dist/components/Scorecard/components/ScorecardTable/ScorecardTable.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/ScorecardTable.module.css +18 -0
- package/dist/components/Scorecard/components/ScorecardTable/ScorecardTable.module.css.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/AverageCell.js +47 -14
- package/dist/components/Scorecard/components/ScorecardTable/components/AverageCell.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/AverageFooterCell.js +39 -8
- package/dist/components/Scorecard/components/ScorecardTable/components/AverageFooterCell.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/CellLoader.js +12 -0
- package/dist/components/Scorecard/components/ScorecardTable/components/CellLoader.js.map +1 -0
- package/dist/components/Scorecard/components/ScorecardTable/components/DataContainer.js +24 -4
- package/dist/components/Scorecard/components/ScorecardTable/components/DataContainer.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/DataFooterCell.js +125 -32
- package/dist/components/Scorecard/components/ScorecardTable/components/DataFooterCell.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/DataRow.js +17 -7
- package/dist/components/Scorecard/components/ScorecardTable/components/DataRow.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/DataValue.js +8 -5
- package/dist/components/Scorecard/components/ScorecardTable/components/DataValue.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/ExpandedScorecardTable.js +16 -3
- package/dist/components/Scorecard/components/ScorecardTable/components/ExpandedScorecardTable.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/LinkedCell.js +8 -2
- package/dist/components/Scorecard/components/ScorecardTable/components/LinkedCell.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/LinkedDataCell.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/MetaFooterCell.js +5 -3
- package/dist/components/Scorecard/components/ScorecardTable/components/MetaFooterCell.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/SingleDataCell.js +2 -2
- package/dist/components/Scorecard/components/ScorecardTable/components/SingleDataCell.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/TableBody.js +8 -3
- package/dist/components/Scorecard/components/ScorecardTable/components/TableBody.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/TableFoot.js +8 -5
- package/dist/components/Scorecard/components/ScorecardTable/components/TableFoot.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/TableHeader/TableHeader.js +7 -8
- package/dist/components/Scorecard/components/ScorecardTable/components/TableHeader/TableHeader.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/TableHeader/components/AverageHeaderCell.js +6 -8
- package/dist/components/Scorecard/components/ScorecardTable/components/TableHeader/components/AverageHeaderCell.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/TableHeader/components/DataHeaderCell.js +13 -4
- package/dist/components/Scorecard/components/ScorecardTable/components/TableHeader/components/DataHeaderCell.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/TableHeader/components/FilterArea.js +4 -2
- package/dist/components/Scorecard/components/ScorecardTable/components/TableHeader/components/FilterArea.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/TableHeader/components/LabelCell.js +4 -2
- package/dist/components/Scorecard/components/ScorecardTable/components/TableHeader/components/LabelCell.js.map +1 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/TableHeader/components/MetaHeaderCell.js +6 -7
- package/dist/components/Scorecard/components/ScorecardTable/components/TableHeader/components/MetaHeaderCell.js.map +1 -1
- package/dist/components/Scorecard/components/StateProvider.js +8 -0
- package/dist/components/Scorecard/components/StateProvider.js.map +1 -1
- package/dist/components/Scorecard/hooks/cellData.js +3 -4
- package/dist/components/Scorecard/hooks/cellData.js.map +1 -1
- package/dist/components/Scorecard/hooks/columns.js +106 -89
- package/dist/components/Scorecard/hooks/columns.js.map +1 -1
- package/dist/components/Scorecard/hooks/data.js +126 -31
- package/dist/components/Scorecard/hooks/data.js.map +1 -1
- package/dist/components/Scorecard/hooks/metadata.js +23 -13
- package/dist/components/Scorecard/hooks/metadata.js.map +1 -1
- package/dist/components/Scorecard/hooks/table.js +137 -5
- package/dist/components/Scorecard/hooks/table.js.map +1 -1
- package/dist/components/Scorecard/hooks/value.js +198 -0
- package/dist/components/Scorecard/hooks/value.js.map +1 -0
- package/dist/components/Scorecard/schemas/config.js +27 -12
- package/dist/components/Scorecard/schemas/config.js.map +1 -1
- package/dist/components/Scorecard/utils/analytics.js +4 -3
- package/dist/components/Scorecard/utils/analytics.js.map +1 -1
- package/dist/components/Scorecard/utils/columns.js +66 -104
- package/dist/components/Scorecard/utils/columns.js.map +1 -1
- package/dist/components/Scorecard/utils/data.js +10 -100
- package/dist/components/Scorecard/utils/data.js.map +1 -1
- package/dist/components/Scorecard/utils/dataEngine.js +35 -0
- package/dist/components/Scorecard/utils/dataEngine.js.map +1 -0
- package/dist/esm/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.js.map +1 -1
- package/dist/esm/components/Scorecard/Scorecard.stories.js +148 -876
- package/dist/esm/components/Scorecard/Scorecard.stories.js.map +1 -1
- package/dist/esm/components/Scorecard/ScorecardContext.stories.js +417 -0
- package/dist/esm/components/Scorecard/ScorecardContext.stories.js.map +1 -0
- package/dist/esm/components/Scorecard/components/DataProvider.js +4 -19
- package/dist/esm/components/Scorecard/components/DataProvider.js.map +1 -1
- package/dist/esm/components/Scorecard/components/LoadingIndicator.js +25 -0
- package/dist/esm/components/Scorecard/components/LoadingIndicator.js.map +1 -0
- package/dist/esm/components/Scorecard/components/MetaProvider.js +6 -2
- package/dist/esm/components/Scorecard/components/MetaProvider.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardContext.js +49 -2
- package/dist/esm/components/Scorecard/components/ScorecardContext.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/ScorecardTable.js +34 -15
- package/dist/esm/components/Scorecard/components/ScorecardTable/ScorecardTable.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/ScorecardTable.module.css +18 -0
- package/dist/esm/components/Scorecard/components/ScorecardTable/ScorecardTable.module.css.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/AverageCell.js +47 -14
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/AverageCell.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/AverageFooterCell.js +40 -9
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/AverageFooterCell.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/CellLoader.js +10 -0
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/CellLoader.js.map +1 -0
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/DataContainer.js +25 -5
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/DataContainer.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/DataFooterCell.js +127 -34
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/DataFooterCell.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/DataRow.js +18 -8
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/DataRow.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/DataValue.js +10 -7
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/DataValue.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/ExpandedScorecardTable.js +16 -3
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/ExpandedScorecardTable.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/LinkedCell.js +8 -2
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/LinkedCell.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/LinkedDataCell.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/MetaFooterCell.js +6 -4
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/MetaFooterCell.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/SingleDataCell.js +2 -2
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/SingleDataCell.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableBody.js +9 -4
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableBody.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableFoot.js +9 -6
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableFoot.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableHeader/TableHeader.js +7 -8
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableHeader/TableHeader.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableHeader/components/AverageHeaderCell.js +7 -9
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableHeader/components/AverageHeaderCell.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableHeader/components/DataHeaderCell.js +14 -6
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableHeader/components/DataHeaderCell.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableHeader/components/FilterArea.js +5 -3
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableHeader/components/FilterArea.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableHeader/components/LabelCell.js +5 -3
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableHeader/components/LabelCell.js.map +1 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableHeader/components/MetaHeaderCell.js +7 -8
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/TableHeader/components/MetaHeaderCell.js.map +1 -1
- package/dist/esm/components/Scorecard/components/StateProvider.js +9 -2
- package/dist/esm/components/Scorecard/components/StateProvider.js.map +1 -1
- package/dist/esm/components/Scorecard/hooks/cellData.js +1 -2
- package/dist/esm/components/Scorecard/hooks/cellData.js.map +1 -1
- package/dist/esm/components/Scorecard/hooks/columns.js +107 -90
- package/dist/esm/components/Scorecard/hooks/columns.js.map +1 -1
- package/dist/esm/components/Scorecard/hooks/data.js +130 -35
- package/dist/esm/components/Scorecard/hooks/data.js.map +1 -1
- package/dist/esm/components/Scorecard/hooks/metadata.js +24 -14
- package/dist/esm/components/Scorecard/hooks/metadata.js.map +1 -1
- package/dist/esm/components/Scorecard/hooks/table.js +138 -6
- package/dist/esm/components/Scorecard/hooks/table.js.map +1 -1
- package/dist/esm/components/Scorecard/hooks/value.js +194 -0
- package/dist/esm/components/Scorecard/hooks/value.js.map +1 -0
- package/dist/esm/components/Scorecard/schemas/config.js +24 -12
- package/dist/esm/components/Scorecard/schemas/config.js.map +1 -1
- package/dist/esm/components/Scorecard/utils/analytics.js +4 -3
- package/dist/esm/components/Scorecard/utils/analytics.js.map +1 -1
- package/dist/esm/components/Scorecard/utils/columns.js +67 -106
- package/dist/esm/components/Scorecard/utils/columns.js.map +1 -1
- package/dist/esm/components/Scorecard/utils/data.js +11 -101
- package/dist/esm/components/Scorecard/utils/data.js.map +1 -1
- package/dist/esm/components/Scorecard/utils/dataEngine.js +33 -0
- package/dist/esm/components/Scorecard/utils/dataEngine.js.map +1 -0
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.d.ts +1 -1
- package/dist/types/components/Map/components/MapLayer/components/ThematicLayer/components/Choropleth/components/ChoroplethLegend.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/DataProvider.d.ts +3 -3
- package/dist/types/components/Scorecard/components/DataProvider.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/LoadingIndicator.d.ts +2 -0
- package/dist/types/components/Scorecard/components/LoadingIndicator.d.ts.map +1 -0
- package/dist/types/components/Scorecard/components/MetaProvider.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardContext.d.ts +1 -1
- package/dist/types/components/Scorecard/components/ScorecardContext.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/ScorecardTable.d.ts +2 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/ScorecardTable.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/AverageCell.d.ts +4 -13
- package/dist/types/components/Scorecard/components/ScorecardTable/components/AverageCell.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/AverageFooterCell.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/CellLoader.d.ts +2 -0
- package/dist/types/components/Scorecard/components/ScorecardTable/components/CellLoader.d.ts.map +1 -0
- package/dist/types/components/Scorecard/components/ScorecardTable/components/DataContainer.d.ts +2 -2
- package/dist/types/components/Scorecard/components/ScorecardTable/components/DataContainer.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/DataFooterCell.d.ts +2 -2
- package/dist/types/components/Scorecard/components/ScorecardTable/components/DataFooterCell.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/DataRow.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/DataValue.d.ts +6 -5
- package/dist/types/components/Scorecard/components/ScorecardTable/components/DataValue.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/ExpandedScorecardTable.d.ts +2 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/ExpandedScorecardTable.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/LinkedCell.d.ts +3 -3
- package/dist/types/components/Scorecard/components/ScorecardTable/components/LinkedCell.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/LinkedDataCell.d.ts +2 -2
- package/dist/types/components/Scorecard/components/ScorecardTable/components/LinkedDataCell.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/MetaFooterCell.d.ts +1 -3
- package/dist/types/components/Scorecard/components/ScorecardTable/components/MetaFooterCell.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/SingleDataCell.d.ts +2 -2
- package/dist/types/components/Scorecard/components/ScorecardTable/components/SingleDataCell.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/TableBody.d.ts +2 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/TableBody.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/TableFoot.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/TableHeader/TableHeader.d.ts +2 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/TableHeader/TableHeader.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/TableHeader/components/AverageHeaderCell.d.ts +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/TableHeader/components/AverageHeaderCell.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/TableHeader/components/DataHeaderCell.d.ts +1 -0
- package/dist/types/components/Scorecard/components/ScorecardTable/components/TableHeader/components/DataHeaderCell.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/TableHeader/components/FilterArea.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/TableHeader/components/LabelCell.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/TableHeader/components/MetaHeaderCell.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/StateProvider.d.ts +1 -0
- package/dist/types/components/Scorecard/components/StateProvider.d.ts.map +1 -1
- package/dist/types/components/Scorecard/components/TableStateProvider.d.ts +0 -6
- package/dist/types/components/Scorecard/components/TableStateProvider.d.ts.map +1 -1
- package/dist/types/components/Scorecard/hooks/cellData.d.ts +2 -2
- package/dist/types/components/Scorecard/hooks/cellData.d.ts.map +1 -1
- package/dist/types/components/Scorecard/hooks/columns.d.ts +2 -8
- package/dist/types/components/Scorecard/hooks/columns.d.ts.map +1 -1
- package/dist/types/components/Scorecard/hooks/data.d.ts +11 -53
- package/dist/types/components/Scorecard/hooks/data.d.ts.map +1 -1
- package/dist/types/components/Scorecard/hooks/metadata.d.ts +1 -0
- package/dist/types/components/Scorecard/hooks/metadata.d.ts.map +1 -1
- package/dist/types/components/Scorecard/hooks/table.d.ts.map +1 -1
- package/dist/types/components/Scorecard/hooks/value.d.ts +87 -0
- package/dist/types/components/Scorecard/hooks/value.d.ts.map +1 -0
- package/dist/types/components/Scorecard/schemas/config.d.ts +666 -62
- package/dist/types/components/Scorecard/schemas/config.d.ts.map +1 -1
- package/dist/types/components/Scorecard/utils/analytics.d.ts +3 -2
- package/dist/types/components/Scorecard/utils/analytics.d.ts.map +1 -1
- package/dist/types/components/Scorecard/utils/columns.d.ts +19 -59
- package/dist/types/components/Scorecard/utils/columns.d.ts.map +1 -1
- package/dist/types/components/Scorecard/utils/data.d.ts +6 -4
- package/dist/types/components/Scorecard/utils/data.d.ts.map +1 -1
- package/dist/types/components/Scorecard/utils/dataEngine.d.ts +14 -0
- package/dist/types/components/Scorecard/utils/dataEngine.d.ts.map +1 -0
- package/package.json +3 -3
- package/dist/components/Scorecard/components/ScorecardTable/components/LinkedDataFooterCell.js +0 -45
- package/dist/components/Scorecard/components/ScorecardTable/components/LinkedDataFooterCell.js.map +0 -1
- package/dist/components/Scorecard/components/ScorecardTable/components/SingleDataFooterCell.js +0 -38
- package/dist/components/Scorecard/components/ScorecardTable/components/SingleDataFooterCell.js.map +0 -1
- package/dist/components/Scorecard/hooks/average.js +0 -50
- package/dist/components/Scorecard/hooks/average.js.map +0 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/LinkedDataFooterCell.js +0 -43
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/LinkedDataFooterCell.js.map +0 -1
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/SingleDataFooterCell.js +0 -36
- package/dist/esm/components/Scorecard/components/ScorecardTable/components/SingleDataFooterCell.js.map +0 -1
- package/dist/esm/components/Scorecard/hooks/average.js +0 -48
- package/dist/esm/components/Scorecard/hooks/average.js.map +0 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/LinkedDataFooterCell.d.ts +0 -6
- package/dist/types/components/Scorecard/components/ScorecardTable/components/LinkedDataFooterCell.d.ts.map +0 -1
- package/dist/types/components/Scorecard/components/ScorecardTable/components/SingleDataFooterCell.d.ts +0 -6
- package/dist/types/components/Scorecard/components/ScorecardTable/components/SingleDataFooterCell.d.ts.map +0 -1
- package/dist/types/components/Scorecard/hooks/average.d.ts +0 -14
- package/dist/types/components/Scorecard/hooks/average.d.ts.map +0 -1
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { ScorecardContext } from './components';
|
|
3
|
+
import { Scorecard } from './Scorecard';
|
|
4
|
+
|
|
5
|
+
const config = {
|
|
6
|
+
additionalLabels: ["Data label"],
|
|
7
|
+
customHeader: "<p>W</p>\n",
|
|
8
|
+
dataSelection: {
|
|
9
|
+
dataGroups: [
|
|
10
|
+
{
|
|
11
|
+
dataHolders: [
|
|
12
|
+
{
|
|
13
|
+
dataSources: [
|
|
14
|
+
{
|
|
15
|
+
displayArrows: true,
|
|
16
|
+
effectiveGap: 5,
|
|
17
|
+
highIsGood: true,
|
|
18
|
+
id: "EzE8xZ31zfC",
|
|
19
|
+
label: "Availability of Vaccines: BCG (no stockout)",
|
|
20
|
+
legends: [
|
|
21
|
+
{
|
|
22
|
+
endValue: 100,
|
|
23
|
+
id: "XWUMmCmeM6o",
|
|
24
|
+
legendDefinitionId: "#008000",
|
|
25
|
+
startValue: 80
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
endValue: 80,
|
|
29
|
+
id: "TOey7YmIgVW",
|
|
30
|
+
legendDefinitionId: "#FFFF00",
|
|
31
|
+
startValue: 34
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
endValue: 34,
|
|
35
|
+
id: "PeTnkJSrh0N",
|
|
36
|
+
legendDefinitionId: "#FF0000",
|
|
37
|
+
startValue: 1
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
name: "Availability of Vaccines: BCG (no stockout)",
|
|
41
|
+
showColors: true,
|
|
42
|
+
type: "indicator",
|
|
43
|
+
weight: 100
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
id: 3
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
dataSources: [
|
|
50
|
+
{
|
|
51
|
+
displayArrows: true,
|
|
52
|
+
effectiveGap: 5,
|
|
53
|
+
highIsGood: true,
|
|
54
|
+
id: "uNau1zjH08I",
|
|
55
|
+
label: "Availability of Vaccines DPT (no stockout)",
|
|
56
|
+
legends: [
|
|
57
|
+
{
|
|
58
|
+
endValue: 100,
|
|
59
|
+
id: "BwTObmlCQJ9",
|
|
60
|
+
legendDefinitionId: "#008000",
|
|
61
|
+
startValue: 67
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
endValue: 67,
|
|
65
|
+
id: "VBf0tTk0FAg",
|
|
66
|
+
legendDefinitionId: "#FFFF00",
|
|
67
|
+
startValue: 34
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
endValue: 34,
|
|
71
|
+
id: "Bi2wvoRTFtg",
|
|
72
|
+
legendDefinitionId: "#FF0000",
|
|
73
|
+
startValue: 1
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
name: "Availability of Vaccines DPT (no stockout)",
|
|
77
|
+
showColors: true,
|
|
78
|
+
type: "indicator",
|
|
79
|
+
weight: 100
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
id: 6
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
dataSources: [
|
|
86
|
+
{
|
|
87
|
+
displayArrows: true,
|
|
88
|
+
effectiveGap: 5,
|
|
89
|
+
highIsGood: true,
|
|
90
|
+
id: "Dca85UJ7O40",
|
|
91
|
+
label: "DPT1 coverage",
|
|
92
|
+
legends: [
|
|
93
|
+
{
|
|
94
|
+
endValue: 100,
|
|
95
|
+
id: "uClcTQnvGjo",
|
|
96
|
+
legendDefinitionId: "#008000",
|
|
97
|
+
startValue: 67
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
endValue: 67,
|
|
101
|
+
id: "VM7MrPcAzVY",
|
|
102
|
+
legendDefinitionId: "#FFFF00",
|
|
103
|
+
startValue: 34
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
endValue: 34,
|
|
107
|
+
id: "IgXxzTrOdfA",
|
|
108
|
+
legendDefinitionId: "#FF0000",
|
|
109
|
+
startValue: 1
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
name: "DPT1 coverage",
|
|
113
|
+
showColors: true,
|
|
114
|
+
type: "indicator",
|
|
115
|
+
weight: 100
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
id: 10
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
dataSources: [
|
|
122
|
+
{
|
|
123
|
+
displayArrows: true,
|
|
124
|
+
effectiveGap: 5,
|
|
125
|
+
highIsGood: true,
|
|
126
|
+
id: "YT5UD0H7875",
|
|
127
|
+
label: "DPT2 Coverage",
|
|
128
|
+
legends: [
|
|
129
|
+
{
|
|
130
|
+
endValue: 100,
|
|
131
|
+
id: "AvNvnIHhPL9",
|
|
132
|
+
legendDefinitionId: "#008000",
|
|
133
|
+
startValue: 67
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
endValue: 67,
|
|
137
|
+
id: "L6SjYX2Ob7X",
|
|
138
|
+
legendDefinitionId: "#FFFF00",
|
|
139
|
+
startValue: 34
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
endValue: 34,
|
|
143
|
+
id: "FDlibzlPjKa",
|
|
144
|
+
legendDefinitionId: "#FF0000",
|
|
145
|
+
startValue: 1
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
name: "DPT2 Coverage",
|
|
149
|
+
showColors: true,
|
|
150
|
+
type: "indicator",
|
|
151
|
+
weight: 100
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
id: 4
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
dataSources: [
|
|
158
|
+
{
|
|
159
|
+
displayArrows: true,
|
|
160
|
+
effectiveGap: 5,
|
|
161
|
+
highIsGood: true,
|
|
162
|
+
id: "E31SemmmFGb",
|
|
163
|
+
label: "DPT3 coverage",
|
|
164
|
+
legends: [
|
|
165
|
+
{
|
|
166
|
+
endValue: 100,
|
|
167
|
+
id: "vIzqi9I5U5W",
|
|
168
|
+
legendDefinitionId: "#008000",
|
|
169
|
+
startValue: 67
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
endValue: 67,
|
|
173
|
+
id: "p8iuaIFYrVh",
|
|
174
|
+
legendDefinitionId: "#FFFF00",
|
|
175
|
+
startValue: 34
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
endValue: 34,
|
|
179
|
+
id: "IAawVVFlrHW",
|
|
180
|
+
legendDefinitionId: "#FF0000",
|
|
181
|
+
startValue: 1
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
name: "DPT3 coverage",
|
|
185
|
+
showColors: true,
|
|
186
|
+
type: "indicator",
|
|
187
|
+
weight: 100
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
id: 9
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
dataSources: [
|
|
194
|
+
{
|
|
195
|
+
displayArrows: true,
|
|
196
|
+
effectiveGap: 5,
|
|
197
|
+
highIsGood: true,
|
|
198
|
+
id: "k7S2WEEZeWO",
|
|
199
|
+
label: "BCG coverage",
|
|
200
|
+
legends: [
|
|
201
|
+
{
|
|
202
|
+
endValue: 100,
|
|
203
|
+
id: "HTxdj0lqOni",
|
|
204
|
+
legendDefinitionId: "#008000",
|
|
205
|
+
startValue: 67
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
endValue: 67,
|
|
209
|
+
id: "QDRGsOkTFRo",
|
|
210
|
+
legendDefinitionId: "#FFFF00",
|
|
211
|
+
startValue: 34
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
endValue: 34,
|
|
215
|
+
id: "ijCUM3ePjXe",
|
|
216
|
+
legendDefinitionId: "#FF0000",
|
|
217
|
+
startValue: 1
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
name: "BCG coverage",
|
|
221
|
+
showColors: true,
|
|
222
|
+
type: "indicator",
|
|
223
|
+
weight: 100
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
id: 5
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
dataSources: [
|
|
230
|
+
{
|
|
231
|
+
displayArrows: true,
|
|
232
|
+
effectiveGap: 5,
|
|
233
|
+
highIsGood: true,
|
|
234
|
+
id: "wpgvPjYTBba",
|
|
235
|
+
label: "MCV1 Coverage",
|
|
236
|
+
legends: [
|
|
237
|
+
{
|
|
238
|
+
endValue: 100,
|
|
239
|
+
id: "cORYIx7oEkM",
|
|
240
|
+
legendDefinitionId: "#008000",
|
|
241
|
+
startValue: 80
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
endValue: 80,
|
|
245
|
+
id: "yCulcK3litW",
|
|
246
|
+
legendDefinitionId: "#FFFF00",
|
|
247
|
+
startValue: 34
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
endValue: 34,
|
|
251
|
+
id: "uHU6IMpweu1",
|
|
252
|
+
legendDefinitionId: "#FF0000",
|
|
253
|
+
startValue: 1
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
name: "MCV1 Coverage",
|
|
257
|
+
showColors: true,
|
|
258
|
+
type: "indicator",
|
|
259
|
+
weight: 100
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
id: 8
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
dataSources: [
|
|
266
|
+
{
|
|
267
|
+
displayArrows: true,
|
|
268
|
+
effectiveGap: 5,
|
|
269
|
+
highIsGood: true,
|
|
270
|
+
id: "TGFBdsVUobf",
|
|
271
|
+
label: "Fully Immunized",
|
|
272
|
+
legends: [
|
|
273
|
+
{
|
|
274
|
+
endValue: 100,
|
|
275
|
+
id: "aGVS5sqcRd4",
|
|
276
|
+
legendDefinitionId: "#008000",
|
|
277
|
+
startValue: 67
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
endValue: 67,
|
|
281
|
+
id: "EKIY64Ferh3",
|
|
282
|
+
legendDefinitionId: "#FFFF00",
|
|
283
|
+
startValue: 34
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
endValue: 34,
|
|
287
|
+
id: "EfSaPcUQvUA",
|
|
288
|
+
legendDefinitionId: "#FF0000",
|
|
289
|
+
startValue: 1
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
name: "Fully Immunized",
|
|
293
|
+
showColors: true,
|
|
294
|
+
type: "indicator",
|
|
295
|
+
weight: 100
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
id: 7
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
id: 1,
|
|
302
|
+
style: {
|
|
303
|
+
backgroundColor: "#ffffff",
|
|
304
|
+
color: "#000000"
|
|
305
|
+
},
|
|
306
|
+
title: "Default"
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
},
|
|
310
|
+
description: "Immunization scorecard",
|
|
311
|
+
highlightedIndicators: [],
|
|
312
|
+
id: "VQ4ipFr7YHx",
|
|
313
|
+
legendDefinitions: [
|
|
314
|
+
{
|
|
315
|
+
color: "#008000",
|
|
316
|
+
id: "#008000",
|
|
317
|
+
name: "Target achieved / on track"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
color: "#FFFF00",
|
|
321
|
+
id: "#FFFF00",
|
|
322
|
+
name: "Progress, but more effort required"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
color: "#FF0000",
|
|
326
|
+
id: "#FF0000",
|
|
327
|
+
name: "Not on track"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
color: "#D3D3D3",
|
|
331
|
+
id: "N/A",
|
|
332
|
+
isDefault: true,
|
|
333
|
+
name: "N/A"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
color: "#FFFFFF",
|
|
337
|
+
id: "No data",
|
|
338
|
+
isDefault: true,
|
|
339
|
+
name: "No data"
|
|
340
|
+
}
|
|
341
|
+
],
|
|
342
|
+
options: {
|
|
343
|
+
averageColumn: false,
|
|
344
|
+
averageDisplayType: "ALL",
|
|
345
|
+
averageRow: false,
|
|
346
|
+
emptyRows: true,
|
|
347
|
+
highlightedIndicators: false,
|
|
348
|
+
itemNumber: true,
|
|
349
|
+
legend: true,
|
|
350
|
+
showHierarchy: false,
|
|
351
|
+
title: true
|
|
352
|
+
},
|
|
353
|
+
orgUnitSelection: {
|
|
354
|
+
groups: [],
|
|
355
|
+
levels: ["P0QFTFfTl2X"],
|
|
356
|
+
orgUnits: [
|
|
357
|
+
{
|
|
358
|
+
id: "GD7TowwI46c"
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
userOrgUnit: false,
|
|
362
|
+
userSubUnit: false,
|
|
363
|
+
userSubX2Unit: false
|
|
364
|
+
},
|
|
365
|
+
periodSelection: {
|
|
366
|
+
periods: [
|
|
367
|
+
{
|
|
368
|
+
id: "2018Q2"
|
|
369
|
+
}
|
|
370
|
+
],
|
|
371
|
+
type: "Quarterly"
|
|
372
|
+
},
|
|
373
|
+
sharing: {
|
|
374
|
+
external: false,
|
|
375
|
+
owner: "M5zQapPyTZI",
|
|
376
|
+
public: "------",
|
|
377
|
+
userGroups: {
|
|
378
|
+
ji3bRmgKwkS: {
|
|
379
|
+
access: "------",
|
|
380
|
+
id: "ji3bRmgKwkS"
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
users: {}
|
|
384
|
+
},
|
|
385
|
+
subtitle: "",
|
|
386
|
+
title: "Immunization scorecard"
|
|
387
|
+
};
|
|
388
|
+
const meta = {
|
|
389
|
+
title: "Scorecard Context",
|
|
390
|
+
component: ScorecardContext,
|
|
391
|
+
decorators: (Story, context) => {
|
|
392
|
+
return /* @__PURE__ */ jsx(
|
|
393
|
+
Story,
|
|
394
|
+
{
|
|
395
|
+
args: {
|
|
396
|
+
initialState: context.args.initialState,
|
|
397
|
+
config: context.args.config
|
|
398
|
+
},
|
|
399
|
+
children: /* @__PURE__ */ jsx(Scorecard, {})
|
|
400
|
+
}
|
|
401
|
+
);
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
var ScorecardContext_stories_default = meta;
|
|
405
|
+
const Default = {
|
|
406
|
+
name: "Default View",
|
|
407
|
+
args: {
|
|
408
|
+
config,
|
|
409
|
+
initialState: {
|
|
410
|
+
...config
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
export { Default, ScorecardContext_stories_default as default };
|
|
416
|
+
//# sourceMappingURL=out.js.map
|
|
417
|
+
//# sourceMappingURL=ScorecardContext.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/Scorecard/ScorecardContext.stories.tsx"],"names":[],"mappings":"AA++BI;AA7+BJ,SAAS,wBAAwB;AACjC,SAAS,iBAAiB;AAE1B,MAAM,SAA0B;AAAA,EAC/B,kBAAkB,CAAC,YAAY;AAAA,EAC/B,cAAc;AAAA,EACd,eAAe;AAAA,IACd,YAAY;AAAA,MACX;AAAA,QACC,aAAa;AAAA,UACZ;AAAA,YACC,aAAa;AAAA,cACZ;AAAA,gBACC,eAAe;AAAA,gBACf,cAAc;AAAA,gBACd,YAAY;AAAA,gBACZ,IAAI;AAAA,gBACJ,OAAO;AAAA,gBACP,SAAS;AAAA,kBACR;AAAA,oBACC,UAAU;AAAA,oBACV,IAAI;AAAA,oBACJ,oBAAoB;AAAA,oBACpB,YAAY;AAAA,kBACb;AAAA,kBACA;AAAA,oBACC,UAAU;AAAA,oBACV,IAAI;AAAA,oBACJ,oBAAoB;AAAA,oBACpB,YAAY;AAAA,kBACb;AAAA,kBACA;AAAA,oBACC,UAAU;AAAA,oBACV,IAAI;AAAA,oBACJ,oBAAoB;AAAA,oBACpB,YAAY;AAAA,kBACb;AAAA,gBACD;AAAA,gBACA,MAAM;AAAA,gBACN,YAAY;AAAA,gBACZ,MAAM;AAAA,gBACN,QAAQ;AAAA,cACT;AAAA,YACD;AAAA,YACA,IAAI;AAAA,UACL;AAAA,UACA;AAAA,YACC,aAAa;AAAA,cACZ;AAAA,gBACC,eAAe;AAAA,gBACf,cAAc;AAAA,gBACd,YAAY;AAAA,gBACZ,IAAI;AAAA,gBACJ,OAAO;AAAA,gBACP,SAAS;AAAA,kBACR;AAAA,oBACC,UAAU;AAAA,oBACV,IAAI;AAAA,oBACJ,oBAAoB;AAAA,oBACpB,YAAY;AAAA,kBACb;A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AA,IACjB,QAAQ,CAAC;AAAA,IACT,QAAQ,CAAC,aAAa;AAAA,IACtB,UAAU;AAAA,MACT;AAAA,QACC,IAAI;AAAA,MACL;AAAA,IACD;AAAA,IACA,aAAa;AAAA,IACb,aAAa;AAAA,IACb,eAAe;AAAA,EAChB;AAAA,EACA,iBAAiB;AAAA,IAChB,SAAS;AAAA,MACR;AAAA,QACC,IAAI;AAAA,MACL;AAAA,IACD;AAAA,EACD;AAAA,EACA,UAAU;AAAA,EACV,OAAO;AACR;AAEA,MAAM,OAAsC;AAAA,EAC3C,OAAO;AAAA,EACP,WAAW;AAAA,EACX,YAAY,CAAC,OAAO,YAAY;AAC/B,WACC;AAAA,MAAC;AAAA;AAAA,QACA,MAAM;AAAA,UACL,cAAc,QAAQ,KAAK;AAAA,UAC3B,QAAQ,QAAQ,KAAK;AAAA,QACtB;AAAA,QAEA,8BAAC,aAAU;AAAA;AAAA,IACZ;AAAA,EAEF;AACD;AAEA,IAAO,mCAAQ;AAIR,MAAM,UAAiB;AAAA,EAC7B,MAAM;AAAA,EACN,MAAM;AAAA,IACL;AAAA,IACA,cAAc;AAAA,MACb,GAAG;AAAA,IACJ;AAAA,EACD;AACD","sourcesContent":["import type { Meta, StoryObj } from \"@storybook/react\";\nimport type { ScorecardConfig } from \"./schemas/config\";\nimport { ScorecardContext } from \"./components\";\nimport { Scorecard } from \"./Scorecard\";\n\nconst config: ScorecardConfig = {\n\tadditionalLabels: [\"Data label\"],\n\tcustomHeader: \"<p>W</p>\\n\",\n\tdataSelection: {\n\t\tdataGroups: [\n\t\t\t{\n\t\t\t\tdataHolders: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"EzE8xZ31zfC\",\n\t\t\t\t\t\t\t\tlabel: \"Availability of Vaccines: BCG (no stockout)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"XWUMmCmeM6o\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 80,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 80,\n\t\t\t\t\t\t\t\t\t\tid: \"TOey7YmIgVW\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"PeTnkJSrh0N\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"Availability of Vaccines: BCG (no stockout)\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 3,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"uNau1zjH08I\",\n\t\t\t\t\t\t\t\tlabel: \"Availability of Vaccines DPT (no stockout)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"BwTObmlCQJ9\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 67,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 67,\n\t\t\t\t\t\t\t\t\t\tid: \"VBf0tTk0FAg\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"Bi2wvoRTFtg\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"Availability of Vaccines DPT (no stockout)\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 6,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"Dca85UJ7O40\",\n\t\t\t\t\t\t\t\tlabel: \"DPT1 coverage\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"uClcTQnvGjo\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 67,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 67,\n\t\t\t\t\t\t\t\t\t\tid: \"VM7MrPcAzVY\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"IgXxzTrOdfA\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"DPT1 coverage\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 10,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"YT5UD0H7875\",\n\t\t\t\t\t\t\t\tlabel: \"DPT2 Coverage\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"AvNvnIHhPL9\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 67,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 67,\n\t\t\t\t\t\t\t\t\t\tid: \"L6SjYX2Ob7X\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"FDlibzlPjKa\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"DPT2 Coverage\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 4,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"E31SemmmFGb\",\n\t\t\t\t\t\t\t\tlabel: \"DPT3 coverage\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"vIzqi9I5U5W\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 67,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 67,\n\t\t\t\t\t\t\t\t\t\tid: \"p8iuaIFYrVh\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"IAawVVFlrHW\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"DPT3 coverage\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 9,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"k7S2WEEZeWO\",\n\t\t\t\t\t\t\t\tlabel: \"BCG coverage\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"HTxdj0lqOni\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 67,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 67,\n\t\t\t\t\t\t\t\t\t\tid: \"QDRGsOkTFRo\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"ijCUM3ePjXe\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"BCG coverage\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 5,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"wpgvPjYTBba\",\n\t\t\t\t\t\t\t\tlabel: \"MCV1 Coverage\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"cORYIx7oEkM\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 80,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 80,\n\t\t\t\t\t\t\t\t\t\tid: \"yCulcK3litW\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"uHU6IMpweu1\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"MCV1 Coverage\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 8,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"TGFBdsVUobf\",\n\t\t\t\t\t\t\t\tlabel: \"Fully Immunized\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 100,\n\t\t\t\t\t\t\t\t\t\tid: \"aGVS5sqcRd4\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#008000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 67,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 67,\n\t\t\t\t\t\t\t\t\t\tid: \"EKIY64Ferh3\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FFFF00\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 34,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: 34,\n\t\t\t\t\t\t\t\t\t\tid: \"EfSaPcUQvUA\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"#FF0000\",\n\t\t\t\t\t\t\t\t\t\tstartValue: 1,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tname: \"Fully Immunized\",\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"indicator\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: 7,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tid: 1,\n\t\t\t\tstyle: {\n\t\t\t\t\tbackgroundColor: \"#ffffff\",\n\t\t\t\t\tcolor: \"#000000\",\n\t\t\t\t},\n\t\t\t\ttitle: \"Default\",\n\t\t\t},\n\t\t],\n\t},\n\tdescription: \"Immunization scorecard\",\n\thighlightedIndicators: [],\n\tid: \"VQ4ipFr7YHx\",\n\tlegendDefinitions: [\n\t\t{\n\t\t\tcolor: \"#008000\",\n\t\t\tid: \"#008000\",\n\t\t\tname: \"Target achieved / on track\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#FFFF00\",\n\t\t\tid: \"#FFFF00\",\n\t\t\tname: \"Progress, but more effort required\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#FF0000\",\n\t\t\tid: \"#FF0000\",\n\t\t\tname: \"Not on track\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#D3D3D3\",\n\t\t\tid: \"N/A\",\n\t\t\tisDefault: true,\n\t\t\tname: \"N/A\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#FFFFFF\",\n\t\t\tid: \"No data\",\n\t\t\tisDefault: true,\n\t\t\tname: \"No data\",\n\t\t},\n\t],\n\toptions: {\n\t\taverageColumn: false,\n\t\taverageDisplayType: \"ALL\",\n\t\taverageRow: false,\n\t\temptyRows: true,\n\t\thighlightedIndicators: false,\n\t\titemNumber: true,\n\t\tlegend: true,\n\t\tshowHierarchy: false,\n\t\ttitle: true,\n\t},\n\torgUnitSelection: {\n\t\tgroups: [],\n\t\tlevels: [\"P0QFTFfTl2X\"],\n\t\torgUnits: [\n\t\t\t{\n\t\t\t\tid: \"GD7TowwI46c\",\n\t\t\t},\n\t\t],\n\t\tuserOrgUnit: false,\n\t\tuserSubUnit: false,\n\t\tuserSubX2Unit: false,\n\t},\n\tperiodSelection: {\n\t\tperiods: [\n\t\t\t{\n\t\t\t\tid: \"2018Q2\",\n\t\t\t},\n\t\t],\n\t\ttype: \"Quarterly\",\n\t},\n\tsharing: {\n\t\texternal: false,\n\t\towner: \"M5zQapPyTZI\",\n\t\tpublic: \"------\",\n\t\tuserGroups: {\n\t\t\tji3bRmgKwkS: {\n\t\t\t\taccess: \"------\",\n\t\t\t\tid: \"ji3bRmgKwkS\",\n\t\t\t},\n\t\t},\n\t\tusers: {},\n\t},\n\tsubtitle: \"\",\n\ttitle: \"Immunization scorecard\",\n};\n\nconst linkedConfig: ScorecardConfig = {\n\tadditionalLabels: [],\n\tcustomHeader:\n\t\t'<p style=\"text-align: center;\"><strong><span style=\"font-size: 14pt;\">Reproductive Mother Newborn Child Adolescent Health Scorecard</span></strong></p>',\n\tdataSelection: {\n\t\tdataGroups: [\n\t\t\t{\n\t\t\t\tdataHolders: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"UT1DJmtzyox\",\n\t\t\t\t\t\t\t\tlabel: \"ANC 1st visit coverage (%)\",\n\t\t\t\t\t\t\t\tlegends: {\n\t\t\t\t\t\t\t\t\tBNQIkbGlA00: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"KpYHhHJn6TW\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"D7p3mOofXV5\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"h53u0qtfWrm\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tP0QFTFfTl2X: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"Gu1MEoKBM9z\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"Ov1gJoUyWGA\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"kdr4mFvCXeF\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tVJJOhuBJSJe: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"ZRel5tdDTxP\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"ZdkqaQjk4dy\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"yHqYRGJTuZ7\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tZqI1kKnH7ve: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"M8SRVFU7qaJ\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"t0kMCebyKa3\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"qQWheNiAv5H\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"FgNnsRgCs8r\",\n\t\t\t\t\t\t\t\tlabel: \"ANC 4th visit coverage (%)\",\n\t\t\t\t\t\t\t\tlegends: {\n\t\t\t\t\t\t\t\t\tBNQIkbGlA00: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"XMzI6YTRjnh\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"XaSA3Wbd8ev\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"zTVnWeobd1W\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tP0QFTFfTl2X: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"uMqW1iTVZbk\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"KF017pCID2N\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"L3PNXKkZlKn\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tVJJOhuBJSJe: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"lpPPAVPWAHa\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"qtzhYa0YOZe\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"rcPPIBAegMP\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tZqI1kKnH7ve: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"w31XD1NVKYc\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"Yka97h8Gp5S\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"rq5CQddHPzj\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: \"kJx1Eg83H1A\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tid: \"uRgQI4ArrDc\",\n\t\t\t\tstyle: {\n\t\t\t\t\tbackgroundColor: \"#FFFFFF\",\n\t\t\t\t\tcolor: \"#000000\",\n\t\t\t\t},\n\t\t\t\ttitle: \"ANC\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tdataHolders: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"S0IzYPGQLnN\",\n\t\t\t\t\t\t\t\tlabel: \"PCV 3 coverage (%)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\tid: \"bnLSP7FW4CD\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\tid: \"eIQjXQYMwYF\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\tid: \"eeXyZVN0FCX\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"ZNz5XzwJZK5\",\n\t\t\t\t\t\t\t\tlabel: \"RMNCH IPTp1 coverage (%)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\tid: \"M3O2zlFt2QR\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\tid: \"XrYIKCaK5uO\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\tid: \"yAfwEbfXWab\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: \"kfl50Ej7lDu\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tid: \"QcZw8mJ1Rze\",\n\t\t\t\tstyle: {\n\t\t\t\t\tbackgroundColor: \"#FFFFFF\",\n\t\t\t\t\tcolor: \"#000000\",\n\t\t\t\t},\n\t\t\t\ttitle: \"Child Health\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tdataHolders: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"wc3XYCyuxyE\",\n\t\t\t\t\t\t\t\tlabel: \"Post partum care coverage (within 2 days) (%)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\tid: \"b3UiR0upygY\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\tid: \"Qws2zJ6nnhO\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\tid: \"EjYfDZUMrvh\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"NV6Xc9oGJZV\",\n\t\t\t\t\t\t\t\tlabel: \"Breastfeeding within 1 hour after delivery (%)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\tid: \"wqt6J8rW5Gg\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\tid: \"BoXJK9Y7xfL\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\tid: \"leioF1u23By\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: \"w8XIm3FYgHf\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tid: \"UVvskRg3Q3O\",\n\t\t\t\tstyle: {\n\t\t\t\t\tbackgroundColor: \"#FFFFFF\",\n\t\t\t\t\tcolor: \"#000000\",\n\t\t\t\t},\n\t\t\t\ttitle: \"PNC\",\n\t\t\t},\n\t\t\t{\n\t\t\t\tdataHolders: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdataSources: [\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"XXDXVGzvSx1\",\n\t\t\t\t\t\t\t\tlabel: \"Caesarean section delivery rate (%)\",\n\t\t\t\t\t\t\t\tlegends: [\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\tid: \"nYuMTV2paEd\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\tid: \"iRmHVCt9uCF\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\tid: \"oZC6QPZ7AAS\",\n\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayArrows: true,\n\t\t\t\t\t\t\t\teffectiveGap: 5,\n\t\t\t\t\t\t\t\thighIsGood: true,\n\t\t\t\t\t\t\t\tid: \"lMRhTK17SDQ\",\n\t\t\t\t\t\t\t\tlabel: \"Institutional delivery rate (%)\",\n\t\t\t\t\t\t\t\tlegends: {\n\t\t\t\t\t\t\t\t\tBNQIkbGlA00: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"mOYx4YWdhVl\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"gxG34EbioX8\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"MBAKh3ZG2dK\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tP0QFTFfTl2X: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"MmQldQ7jgAH\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"WF1kso6rvDr\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"JcaFJoC6kNi\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tVJJOhuBJSJe: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"L07Gb3JDHVS\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"jZ9fu7sOQDr\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"EoTSwqHRfZV\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\tZqI1kKnH7ve: [\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"CO0eiIoCRty\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"66\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"YWySiVblPtQ\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tendValue: \"33\",\n\t\t\t\t\t\t\t\t\t\t\tid: \"paJxvmioynV\",\n\t\t\t\t\t\t\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\t\t\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tshowColors: true,\n\t\t\t\t\t\t\t\ttype: \"dataElement\",\n\t\t\t\t\t\t\t\tweight: 100,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t],\n\t\t\t\t\t\tid: \"yZsI8HZOKab\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tid: \"erF3HyaFtYs\",\n\t\t\t\tstyle: {\n\t\t\t\t\tbackgroundColor: \"#FFFFFF\",\n\t\t\t\t\tcolor: \"#000000\",\n\t\t\t\t},\n\t\t\t\ttitle: \"Birth\",\n\t\t\t},\n\t\t],\n\t},\n\tdescription:\n\t\t\"Reproductive Mother Newborn Child Adolescent Health Score Card\",\n\thighlightedIndicators: [\n\t\t{\n\t\t\tdisplayArrows: true,\n\t\t\teffectiveGap: 5,\n\t\t\thighIsGood: true,\n\t\t\tid: \"BvG8P80QxqZ\",\n\t\t\tlabel: \"Access to ANC Services\",\n\t\t\tlegends: [\n\t\t\t\t{\n\t\t\t\t\tendValue: \"100\",\n\t\t\t\t\tid: \"gpxLYDFnZmu\",\n\t\t\t\t\tlegendDefinitionId: \"Hp7RQEOkeeI\",\n\t\t\t\t\tstartValue: \"80\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tendValue: \"80\",\n\t\t\t\t\tid: \"nG6xsue9WBm\",\n\t\t\t\t\tlegendDefinitionId: \"Tdn0N0KCkfS\",\n\t\t\t\t\tstartValue: \"60\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tendValue: \"60\",\n\t\t\t\t\tid: \"UeAJV56yLPg\",\n\t\t\t\t\tlegendDefinitionId: \"wvkMv3ABWbT\",\n\t\t\t\t\tstartValue: \"40\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tendValue: \"40\",\n\t\t\t\t\tid: \"Gop7mo2IUdC\",\n\t\t\t\t\tlegendDefinitionId: \"N/A\",\n\t\t\t\t\tstartValue: \"20\",\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tendValue: \"20\",\n\t\t\t\t\tid: \"RE0ln0cImOf\",\n\t\t\t\t\tlegendDefinitionId: \"No Data\",\n\t\t\t\t\tstartValue: \"0\",\n\t\t\t\t},\n\t\t\t],\n\t\t\tshowColors: true,\n\t\t\ttype: \"indicator\",\n\t\t\tweight: 100,\n\t\t},\n\t],\n\tid: \"KKQrggIIOlT\",\n\tlegendDefinitions: [\n\t\t{\n\t\t\tcolor: \"#008000\",\n\t\t\tid: \"Hp7RQEOkeeI\",\n\t\t\tname: \"Target Reached/ On Track\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#FFFF00\",\n\t\t\tid: \"Tdn0N0KCkfS\",\n\t\t\tname: \"Progress, but more effort required\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#FF0000\",\n\t\t\tid: \"wvkMv3ABWbT\",\n\t\t\tname: \"Not on track\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#D3D3D3\",\n\t\t\tid: \"N/A\",\n\t\t\tisDefault: true,\n\t\t\tname: \"N/A\",\n\t\t},\n\t\t{\n\t\t\tcolor: \"#FFFFFF\",\n\t\t\tid: \"No Data\",\n\t\t\tisDefault: true,\n\t\t\tname: \"No Data\",\n\t\t},\n\t],\n\toptions: {\n\t\tarrows: true,\n\t\taverageColumn: false,\n\t\taverageDisplayType: \"ALL\",\n\t\taverageRow: false,\n\t\temptyRows: false,\n\t\thighlightedIndicators: false,\n\t\titemNumber: true,\n\t\tlegend: true,\n\t\tshowDataInRows: false,\n\t\tshowHierarchy: true,\n\t\ttitle: true,\n\t},\n\torgUnitSelection: {\n\t\tgroups: [],\n\t\tlevels: [\"P0QFTFfTl2X\"],\n\t\torgUnits: [\n\t\t\t{\n\t\t\t\tid: \"GD7TowwI46c\",\n\t\t\t},\n\t\t],\n\t\tuserOrgUnit: false,\n\t\tuserSubUnit: false,\n\t\tuserSubX2Unit: false,\n\t},\n\tperiodSelection: {\n\t\tperiods: [\n\t\t\t{\n\t\t\t\tid: \"2018\",\n\t\t\t},\n\t\t],\n\t},\n\tsubtitle: \"\",\n\ttitle: \"RMNCAH Score Card Revised\",\n};\n\nconst meta: Meta<typeof ScorecardContext> = {\n\ttitle: \"Scorecard Context\",\n\tcomponent: ScorecardContext,\n\tdecorators: (Story, context) => {\n\t\treturn (\n\t\t\t<Story\n\t\t\t\targs={{\n\t\t\t\t\tinitialState: context.args.initialState,\n\t\t\t\t\tconfig: context.args.config,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Scorecard />\n\t\t\t</Story>\n\t\t);\n\t},\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof ScorecardContext>;\n\nexport const Default: Story = {\n\tname: \"Default View\",\n\targs: {\n\t\tconfig,\n\t\tinitialState: {\n\t\t\t...config,\n\t\t},\n\t},\n};\n// export const DataInRows: Story = {\n// \tname: \"Data in rows view\",\n// \targs: {},\n// };\n// export const FilteredAboveAverage: Story = {\n// \tname: \"Filtered above average\",\n// \targs: {},\n// };\n// export const FilteredBelowAverage: Story = {\n// \tname: \"Filtered below average\",\n// \targs: {},\n// };\n// export const WithLinkedCells: Story = {\n// \tname: \"With linked cells\",\n// \targs: {},\n// };\n// export const WithLinkedCellsDataInRows: Story = {\n// \tname: \"With linked cells and data in rows\",\n// \targs: {},\n// };\n"]}
|
|
@@ -1,33 +1,18 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { createContext, useContext } from 'react';
|
|
3
3
|
import { useGetScorecardData } from '../hooks/data';
|
|
4
|
-
import {
|
|
4
|
+
import { createScorecardDataEngine } from '../utils/dataEngine';
|
|
5
5
|
|
|
6
6
|
const ScorecardDataContext = createContext({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
data: createScorecardDataEngine(),
|
|
8
|
+
rawData: [],
|
|
9
|
+
progress: 0
|
|
10
10
|
});
|
|
11
11
|
function useScorecardData() {
|
|
12
12
|
return useContext(ScorecardDataContext);
|
|
13
13
|
}
|
|
14
14
|
function ScorecardDataProvider({ children }) {
|
|
15
15
|
const value = useGetScorecardData();
|
|
16
|
-
if (value.loading) {
|
|
17
|
-
return /* @__PURE__ */ jsx(
|
|
18
|
-
"div",
|
|
19
|
-
{
|
|
20
|
-
style: {
|
|
21
|
-
height: "100%",
|
|
22
|
-
width: "100%",
|
|
23
|
-
display: "flex",
|
|
24
|
-
alignItems: "center",
|
|
25
|
-
justifyContent: "center"
|
|
26
|
-
},
|
|
27
|
-
children: /* @__PURE__ */ jsx(CircularLoader, { small: true })
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
16
|
return /* @__PURE__ */ jsx(ScorecardDataContext.Provider, { value, children });
|
|
32
17
|
}
|
|
33
18
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/components/Scorecard/components/DataProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Scorecard/components/DataProvider.tsx"],"names":[],"mappings":"AA2BE;AA3BF,SAAS,eAA+B,kBAAkB;AAE1D,SAAS,2BAA2B;AACpC;AAAA,EACC;AAAA,OAEM;AAQP,MAAM,uBAAuB,cAA6B;AAAA,EACzD,MAAM,0BAA0B;AAAA,EAChC,SAAS,CAAC;AAAA,EACV,UAAU;AACX,CAAC;AAEM,SAAS,mBAAmB;AAClC,SAAO,WAAW,oBAAoB;AACvC;AAEO,SAAS,sBAAsB,EAAE,SAAS,GAA4B;AAC5E,QAAM,QAAQ,oBAAoB;AAClC,SACC,oBAAC,qBAAqB,UAArB,EAA8B,OAC7B,UACF;AAEF","sourcesContent":["import { createContext, type ReactNode, useContext } from \"react\";\nimport type { ScorecardAnalyticsData } from \"../schemas/config\";\nimport { useGetScorecardData } from \"../hooks/data\";\nimport {\n\tcreateScorecardDataEngine,\n\ttype ScorecardDataEngine,\n} from \"../utils/dataEngine\";\n\nexport interface ScorecardData {\n\tprogress?: number;\n\tdata: ScorecardDataEngine;\n\trawData: ScorecardAnalyticsData[];\n}\n\nconst ScorecardDataContext = createContext<ScorecardData>({\n\tdata: createScorecardDataEngine(),\n\trawData: [],\n\tprogress: 0,\n});\n\nexport function useScorecardData() {\n\treturn useContext(ScorecardDataContext);\n}\n\nexport function ScorecardDataProvider({ children }: { children: ReactNode }) {\n\tconst value = useGetScorecardData();\n\treturn (\n\t\t<ScorecardDataContext.Provider value={value}>\n\t\t\t{children}\n\t\t</ScorecardDataContext.Provider>\n\t);\n}\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useScorecardData } from './DataProvider';
|
|
3
|
+
import { DataTableRow, LinearLoader } from '@dhis2/ui';
|
|
4
|
+
import { useTableState } from './TableStateProvider';
|
|
5
|
+
|
|
6
|
+
function LoadingIndicator() {
|
|
7
|
+
const { progress } = useScorecardData();
|
|
8
|
+
const table = useTableState();
|
|
9
|
+
const colSpan = table.getVisibleFlatColumns().length;
|
|
10
|
+
if (progress === 1 || isNaN(progress)) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
return /* @__PURE__ */ jsx(DataTableRow, { children: /* @__PURE__ */ jsx("td", { colSpan, children: /* @__PURE__ */ jsx(
|
|
14
|
+
LinearLoader,
|
|
15
|
+
{
|
|
16
|
+
margin: "0",
|
|
17
|
+
width: "100%",
|
|
18
|
+
amount: (progress ?? 0) * 100
|
|
19
|
+
}
|
|
20
|
+
) }) });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { LoadingIndicator };
|
|
24
|
+
//# sourceMappingURL=out.js.map
|
|
25
|
+
//# sourceMappingURL=LoadingIndicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Scorecard/components/LoadingIndicator.tsx"],"names":[],"mappings":"AAgBI;AAhBJ,SAAS,wBAAwB;AACjC,SAAS,cAAc,oBAAoB;AAC3C,SAAS,qBAAqB;AAEvB,SAAS,mBAAmB;AAClC,QAAM,EAAE,SAAS,IAAI,iBAAiB;AACtC,QAAM,QAAQ,cAAc;AAC5B,QAAM,UAAU,MAAM,sBAAsB,EAAE;AAE9C,MAAI,aAAa,KAAK,MAAM,QAAS,GAAG;AACvC,WAAO;AAAA,EACR;AAEA,SACC,oBAAC,gBACA,8BAAC,QAAG,SACH;AAAA,IAAC;AAAA;AAAA,MACA,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,SAAS,YAAY,KAAK;AAAA;AAAA,EAC3B,GACD,GACD;AAEF","sourcesContent":["import { useScorecardData } from \"./DataProvider\";\nimport { DataTableRow, LinearLoader } from \"@dhis2/ui\";\nimport { useTableState } from \"./TableStateProvider\";\n\nexport function LoadingIndicator() {\n\tconst { progress } = useScorecardData();\n\tconst table = useTableState();\n\tconst colSpan = table.getVisibleFlatColumns().length;\n\n\tif (progress === 1 || isNaN(progress!)) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<DataTableRow>\n\t\t\t<td colSpan={colSpan}>\n\t\t\t\t<LinearLoader\n\t\t\t\t\tmargin={\"0\"}\n\t\t\t\t\twidth={\"100%\"}\n\t\t\t\t\tamount={(progress ?? 0) * 100}\n\t\t\t\t/>\n\t\t\t</td>\n\t\t</DataTableRow>\n\t);\n}\n"]}
|
|
@@ -2,6 +2,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { createContext, useContext } from 'react';
|
|
3
3
|
import { useGetScorecardMeta } from '../hooks/metadata';
|
|
4
4
|
import { CircularLoader } from '@dhis2/ui';
|
|
5
|
+
import i18n from '@dhis2/d2-i18n';
|
|
5
6
|
|
|
6
7
|
const ScorecardMetaContext = createContext(null);
|
|
7
8
|
function useScorecardMeta() {
|
|
@@ -10,8 +11,8 @@ function useScorecardMeta() {
|
|
|
10
11
|
const ScorecardMetaProvider = ({
|
|
11
12
|
children
|
|
12
13
|
}) => {
|
|
13
|
-
const { loading, ...meta } = useGetScorecardMeta();
|
|
14
|
-
if (loading) {
|
|
14
|
+
const { loading, called, ...meta } = useGetScorecardMeta();
|
|
15
|
+
if (loading || !called) {
|
|
15
16
|
return /* @__PURE__ */ jsx(
|
|
16
17
|
"div",
|
|
17
18
|
{
|
|
@@ -26,6 +27,9 @@ const ScorecardMetaProvider = ({
|
|
|
26
27
|
}
|
|
27
28
|
);
|
|
28
29
|
}
|
|
30
|
+
if (!meta.orgUnits && called) {
|
|
31
|
+
throw Error(i18n.t("Error getting metadata for the scorecard"));
|
|
32
|
+
}
|
|
29
33
|
return /* @__PURE__ */ jsx(
|
|
30
34
|
ScorecardMetaContext.Provider,
|
|
31
35
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/components/Scorecard/components/MetaProvider.tsx"],"names":[],"mappings":"AAuCI;AAvCJ,SAAS,eAA+B,kBAAkB;AAC1D,SAAwB,2BAA2B;AACnD,SAAS,sBAAsB;
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/Scorecard/components/MetaProvider.tsx"],"names":[],"mappings":"AAuCI;AAvCJ,SAAS,eAA+B,kBAAkB;AAC1D,SAAwB,2BAA2B;AACnD,SAAS,sBAAsB;AAC/B,OAAO,UAAU;AAajB,MAAM,uBAAuB,cAAoC,IAAI;AAE9D,SAAS,mBAAmB;AAClC,SAAO,WAAW,oBAAoB;AACvC;AAEO,MAAM,wBAAwB,CAAC;AAAA,EACrC;AACD,MAEM;AACL,QAAM,EAAE,SAAS,QAAQ,GAAG,KAAK,IAAI,oBAAoB;AACzD,MAAI,WAAW,CAAC,QAAQ;AACvB,WACC;AAAA,MAAC;AAAA;AAAA,QACA,OAAO;AAAA,UACN,QAAQ;AAAA,UACR,OAAO;AAAA,UACP,SAAS;AAAA,UACT,YAAY;AAAA,UACZ,gBAAgB;AAAA,QACjB;AAAA,QAEA,8BAAC,kBAAe,OAAK,MAAC;AAAA;AAAA,IACvB;AAAA,EAEF;AAEA,MAAI,CAAC,KAAK,YAAY,QAAQ;AAC7B,UAAM,MAAM,KAAK,EAAE,0CAA0C,CAAC;AAAA,EAC/D;AAEA,SACC;AAAA,IAAC,qBAAqB;AAAA,IAArB;AAAA,MACA,OAAO;AAAA,QACN,GAAG;AAAA,MACJ;AAAA,MAEC;AAAA;AAAA,EACF;AAEF","sourcesContent":["import { createContext, type ReactNode, useContext } from \"react\";\nimport { type ItemMeta, useGetScorecardMeta } from \"../hooks/metadata\";\nimport { CircularLoader } from \"@dhis2/ui\";\nimport i18n from \"@dhis2/d2-i18n\";\n\nexport interface ScorecardMeta {\n\tperiods: Array<ItemMeta>;\n\torgUnits: Array<ItemMeta & { hierarchy: string }>;\n\tdataItems: Array<ItemMeta>;\n\torgUnitLevels: Array<{\n\t\tid: string;\n\t\tlevel: number;\n\t\tdisplayName: string;\n\t}>;\n}\n\nconst ScorecardMetaContext = createContext<ScorecardMeta | null>(null);\n\nexport function useScorecardMeta() {\n\treturn useContext(ScorecardMetaContext);\n}\n\nexport const ScorecardMetaProvider = ({\n\tchildren,\n}: {\n\tchildren: ReactNode;\n}) => {\n\tconst { loading, called, ...meta } = useGetScorecardMeta();\n\tif (loading || !called) {\n\t\treturn (\n\t\t\t<div\n\t\t\t\tstyle={{\n\t\t\t\t\theight: \"100%\",\n\t\t\t\t\twidth: \"100%\",\n\t\t\t\t\tdisplay: \"flex\",\n\t\t\t\t\talignItems: \"center\",\n\t\t\t\t\tjustifyContent: \"center\",\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<CircularLoader small />\n\t\t\t</div>\n\t\t);\n\t}\n\n\tif (!meta.orgUnits && called) {\n\t\tthrow Error(i18n.t(\"Error getting metadata for the scorecard\"));\n\t}\n\n\treturn (\n\t\t<ScorecardMetaContext.Provider\n\t\t\tvalue={{\n\t\t\t\t...meta,\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</ScorecardMetaContext.Provider>\n\t);\n};\n"]}
|