From 33820d6c49260738c181316d01e733dd11b0dc38 Mon Sep 17 00:00:00 2001 From: Stephanos Date: Wed, 13 Nov 2024 16:38:20 +0100 Subject: [PATCH] feat: Tabulator Component Data file, Stories,Component itself and Index file --- src/app/theme/index.ts | 932 ++ src/app/utils/formatLocale.ts | 18 + .../tables/tabulator tables/data.ts | 7872 +++++++++++++++++ .../tables/tabulator tables/index.ts | 1 + .../tabulatorTables.stories.tsx | 229 + .../tabulator tables/tabulatorTables.tsx | 200 + src/utils/formatFinancialValue.ts | 10 + 7 files changed, 9262 insertions(+) create mode 100644 src/app/theme/index.ts create mode 100644 src/app/utils/formatLocale.ts create mode 100644 src/components/tables/tabulator tables/data.ts create mode 100644 src/components/tables/tabulator tables/index.ts create mode 100644 src/components/tables/tabulator tables/tabulatorTables.stories.tsx create mode 100644 src/components/tables/tabulator tables/tabulatorTables.tsx create mode 100644 src/utils/formatFinancialValue.ts diff --git a/src/app/theme/index.ts b/src/app/theme/index.ts new file mode 100644 index 0000000..94deb22 --- /dev/null +++ b/src/app/theme/index.ts @@ -0,0 +1,932 @@ +import { red } from "@mui/material/colors"; +import { createTheme } from "@mui/material/styles"; + +export const colors = { + primary: { + blue: "#002561", + gray: "#F8F8F8", + black: "#000000", + white: "#FFFFFF", + lightBlue: "#82C9F0", + lightBlueGray: "#4F6797", + }, + secondary: { + blueGrayLight: "#ECF1FA", + blueGrayDark: "#BCC6D6", + grayDark: "#888888", + grayLight: "#E3E3E3", + darkBlueGray: "#4F6797", + midnightBlue: "#013B82", + }, + graph: { + green: { + 900: "#475A51", + 800: "#526B5F", + 700: "#5F8070", + 600: "#6E9884", + 500: "#85AF9B", + 400: "#A4C3B4", + 300: "#BAD2C7", + 200: "#CCDDD5", + 100: "#E2ECE7", + }, + burgundy: { + 900: "#26131C", + 800: "#2E1521", + 700: "#381727", + 600: "#44192E", + 500: "#561735", + 400: "#A52C67", + 300: "#CF4D8C", + 200: "#DB7AA9", + 100: "#E49BBE", + 50: "#EBB4CF", + }, + sand: { + 900: "#765E4B", + 800: "#8E6E55", + 700: "#A78164", + 600: "#BB997F", + 500: "#D4B59E", + 400: "#DFC8B6", + 300: "#E7D6C8", + 200: "#EDE0D6", + 100: "#F1E8E0", + }, + graphite: { + 900: "#060E13", + 800: "#071017", + 700: "#07131C", + 600: "#071722", + 500: "#041C2C", + 400: "#0E5F96", + 300: "#1592E5", + 200: "#4CAEEF", + 100: "#79C2F3", + 50: "#9BD1F6", + }, + warmYellow: { + 900: "#936429", + 800: "#B4762A", + 700: "#D98B2C", + 600: "#E7A14B", + 500: "#FCBB6D", + 400: "#FDCD92", + 300: "#FDD9AD", + 200: "#FEE3C1", + 100: "#FEEAD1", + }, + darkGreen: { + 900: "#071716", + 800: "#071D1A", + 700: "#072320", + 600: "#062B27", + 500: "#023833", + 400: "#06A595", + }, + purple: { + 900: "#201D2C", + 800: "#252135", + 700: "#2B263F", + 600: "#322A4C", + 500: "#382D5E", + 400: "#5D4B9D", + 300: "#8272BC", + 200: "#A195CC", + 100: "#B9B0D9", + }, + lilac: { + 900: "#635266", + 800: "#765F79", + 700: "#8C6E91", + 600: "#A186A6", + 500: "#BBA1BF", + 400: "#CCB8CF", + 300: "#D9CADB", + 200: "#E2D7E4", + 100: "#E9E1EB", + }, + coral: { + 900: "#964835", + 800: "#B65138", + 700: "#D06448", + 600: "#E0826A", + 500: "#F4A490", + 400: "#F7BBAC", + 300: "#F9CCC1", + 200: "#FAD9D0", + 100: "#FCE2DC", + }, + darkGrey: { + 900: "#202020", + 800: "#252525", + 700: "#2C2C2C", + 600: "#343434", + 500: "#3D3D3D", + 400: "#6D6D6D", + 300: "#929292", + 200: "#ADADAD", + 100: "#C2C2C2", + 50: "#D1D1D1", + }, + }, + shadows: { + main: "0px 1px 14px 0px rgba(0, 0, 0, 0.12)", + inner: "0px 3px 3px 0px rgba(0, 0, 0, 0.1) inset", + section: + "0px 1.446765661239624px 2.893531322479248px 0px rgba(97, 97, 97, 0.2)", + }, +}; + +const theme = createTheme({ + palette: { + primary: { + main: colors.primary.blue, + }, + secondary: { + main: colors.secondary.blueGrayLight, + }, + error: { + main: red.A400, + }, + }, + typography: { + fontFamily: "Inter, sans-serif", + h1: { + fontSize: "80px", + fontWeight: "700", + color: colors.primary.black, + }, + h2: { + fontSize: "60px", + fontWeight: "700", + color: colors.primary.black, + }, + h3: { + fontSize: "40px", + fontWeight: "700", + color: colors.primary.black, + }, + h4: { + fontSize: "32px", + fontWeight: "700", + color: colors.primary.black, + }, + h5: { + fontSize: "24px", + fontWeight: "700", + color: colors.primary.black, + }, + h6: { + fontSize: "18px", + fontWeight: "700", + color: colors.primary.black, + }, + subtitle1: { + fontSize: "16px", + fontWeight: "700", + color: colors.primary.black, + }, + subtitle2: { + fontSize: "14px", + fontWeight: "400", + color: colors.primary.black, + }, + body1: { + fontSize: "16px", + fontWeight: "400", + color: colors.primary.black, + }, + body2: { + fontSize: "14px", + fontWeight: "400", + color: colors.primary.black, + }, + button: { + fontSize: "14px", + fontWeight: "700", + color: colors.primary.black, + }, + overline: { + fontSize: "12px", + fontWeight: "400", + textTransform: "none", + color: colors.primary.black, + }, + }, + components: { + MuiAppBar: { + styleOverrides: { + root: { + boxShadow: "none", + borderBottom: "1px solid #000", + background: colors.primary.white, + }, + }, + }, + MuiToolbar: { + styleOverrides: { + root: { + height: "90px", + display: "flex", + flexDirection: "row", + justifyContent: "space-between", + background: colors.primary.white, + "@media (min-width: 920px)": { + padding: 0, + }, + "@media (max-width: 1280px)": { + width: "100vw", + }, + "@media (max-width: 920px)": { + padding: "0 48px", + }, + "@media (max-width: 768px)": { + padding: "0 24px", + }, + }, + }, + }, + MuiPopover: { + styleOverrides: { + paper: { + borderRadius: 0, + boxShadow: "none", + }, + }, + }, + MuiAccordion: { + styleOverrides: { + root: { + width: "100%", + borderRadius: 0, + boxShadow: "none", + borderBottom: "1px solid #CFD4DA", + "&:before": { + display: "none", + }, + "&.Mui-expanded": { + margin: 0, + paddingBottom: "10px", + }, + "&:last-of-type": { + borderBottomStyle: "none", + }, + }, + }, + }, + MuiAccordionSummary: { + styleOverrides: { + root: { + padding: 0, + minHeight: "30px", + maxHeight: "50px", + flexDirection: "row", + "&.Mui-expanded": { + minHeight: "30px", + maxHeight: "30px", + }, + }, + content: { + margin: 0, + "&.Mui-expanded": { + margin: 0, + }, + }, + }, + }, + MuiAccordionDetails: { + styleOverrides: { + root: { + margin: 0, + padding: 0, + display: "flex", + ".MuiGrid-container": { + width: "calc(100% - 50px)", + }, + }, + }, + }, + MuiFormControlLabel: { + styleOverrides: { + root: { + padding: "4px 0", + // userSelect: "none", + alignItems: "flex-start", + }, + }, + }, + MuiCheckbox: { + styleOverrides: { + root: { + color: "#000 !important", + padding: "0 4px 0 0", + }, + }, + }, + MuiTable: { + styleOverrides: { + root: { + "*": { + borderColor: colors.secondary.grayLight, + }, + }, + }, + }, + MuiTableHead: { + styleOverrides: { + root: { + padding: "10px 16px", + }, + }, + }, + MuiTableCell: { + styleOverrides: { + root: { + padding: "10px 16px", + }, + head: { + cursor: "pointer", + fontWeight: "700", + textWrap: "nowrap", + borderStyle: "none", + position: "relative", + color: colors.primary.blue, + }, + body: { + color: colors.primary.blue, + }, + }, + }, + MuiTablePagination: { + styleOverrides: { + root: { + display: "flex", + borderStyle: "none", + padding: "10px 16px", + justifyContent: "flex-start", + }, + toolbar: { + marginLeft: 0, + }, + }, + }, + MuiButton: { + styleOverrides: { + root: { + color: colors.primary.black, + }, + outlined: { + fontWeight: "400", + padding: "2px 12px", + textTransform: "none", + borderColor: "#DFE3E5", + }, + }, + }, + MuiTooltip: { + styleOverrides: { + arrow: { + color: colors.primary.white, + }, + tooltip: { + fontSize: "12px", + fontWeight: "400", + fontFamily: "Inter", + borderRadius: "4px", + color: colors.primary.black, + background: colors.primary.white, + boxShadow: "0px 2px 7px 0px rgba(0, 0, 0, 0.12)", + }, + }, + }, + MuiIcon: { + styleOverrides: { + colorPrimary: { + color: colors.primary.black, + }, + }, + }, + }, +}); + +export default theme; + +// COMMON +const WHITE = "#fff"; +const BLACK = "#000"; + +const PRIMARY_COLOR_1 = "#262C34"; +const PRIMARY_COLOR_2 = "#495057"; + +const SECONDARY_COLOR_1 = "#373D43"; +const SECONDARY_COLOR_2 = "#70777E"; +const SECONDARY_COLOR_3 = "#868E96"; +const SECONDARY_COLOR_4 = "#98A1AA"; +const SECONDARY_COLOR_5 = "#ADB5BD"; +const SECONDARY_COLOR_6 = "#CFD4DA"; +const SECONDARY_COLOR_7 = "#DFE3E6"; +const SECONDARY_COLOR_8 = "#F1F3F5"; +const SECONDARY_COLOR_9 = "#FFFFFF"; +const SECONDARY_COLOR_10 = "#F5F5F7"; +const SECONDARY_COLOR_11 = "#C7CDD1"; +const SECONDARY_COLOR_12 = "#595c70"; +const SECONDARY_COLOR_13 = "#13183F"; +const SECONDARY_COLOR_14 = "#ACAFBC"; +const SECONDARY_COLOR_15 = "#C4C4C4"; +const SECONDARY_COLOR_17 = "#1B2127"; +const SECONDARY_COLOR_18 = "#2E4063"; +const SECONDARY_COLOR_19 = "#525252"; + +const GRAPH_COLOR_1 = "#B1BCC8"; +const GRAPH_COLOR_2 = "#D7D8DD"; +const GRAPH_COLOR_3 = "#F1ECEC"; +const GRAPH_COLOR_4 = "#FFFFFF"; +const GRAPH_COLOR_5 = "#E4EBF8"; +const GRAPH_COLOR_6 = "#D9D4FA"; +const GRAPH_COLOR_7 = "#C3C9EC"; +const GRAPH_COLOR_8 = "#CBD1D7"; +const GRAPH_COLOR_9 = "#D7D8DD"; +const GRAPH_COLOR_10 = "#ECE9E9"; +const GRAPH_COLOR_11 = "#F2F2F2"; +const GRAPH_COLOR_12 = "#E0E5ED"; +const GRAPH_COLOR_13 = "#DFDDF0"; +const GRAPH_COLOR_14 = "#D4D7E9"; +const GRAPH_COLOR_15 = "#FA7355"; +const GRAPH_COLOR_16 = "#FA9A55"; +const GRAPH_COLOR_17 = "#FFAA46"; +const GRAPH_COLOR_18 = "#FFD646"; +const GRAPH_COLOR_19 = "#DAFF46"; +const GRAPH_COLOR_20 = "#97FF46"; +const GRAPH_COLOR_21 = "#60FF46"; +const GRAPH_COLOR_22 = "#73D3CD"; +const GRAPH_COLOR_23 = "#11AD6B"; + +const GRADIENT = "linear-gradient(90deg, #cdd4df 0%, #252c34 100%)"; + +export const appColors = { + COMMON: { + WHITE, + BLACK, + PRIMARY_COLOR_1, + PRIMARY_COLOR_2, + SECONDARY_COLOR_1, + SECONDARY_COLOR_2, + SECONDARY_COLOR_3, + SECONDARY_COLOR_4, + SECONDARY_COLOR_5, + SECONDARY_COLOR_6, + SECONDARY_COLOR_7, + SECONDARY_COLOR_10, + SECONDARY_COLOR_11, + SECONDARY_COLOR_12, + SECONDARY_COLOR_13, + SECONDARY_COLOR_14, + SECONDARY_COLOR_15, + SECONDARY_COLOR_17, + SECONDARY_COLOR_18, + SECONDARY_COLOR_19, + COMMON_ICON_COLOR: WHITE, + PAGE_BACKGROUND_COLOR_1: WHITE, + PAGE_BACKGROUND_COLOR_2: SECONDARY_COLOR_10, + SELECTED_ITEM_VALUE_COLOR: "#E2E2E2", + }, + GRAPH_COLORS: { + GRAPH_COLOR_1, + GRAPH_COLOR_2, + GRAPH_COLOR_3, + GRAPH_COLOR_4, + GRAPH_COLOR_5, + GRAPH_COLOR_6, + GRAPH_COLOR_7, + GRAPH_COLOR_8, + GRAPH_COLOR_9, + GRAPH_COLOR_10, + GRAPH_COLOR_11, + GRAPH_COLOR_12, + GRAPH_COLOR_13, + GRAPH_COLOR_14, + GRAPH_COLOR_15, + GRAPH_COLOR_16, + GRAPH_COLOR_17, + GRAPH_COLOR_18, + GRAPH_COLOR_19, + GRAPH_COLOR_20, + GRAPH_COLOR_21, + GRAPH_COLOR_22, + GRAPH_COLOR_23, + }, + BREADCRUMBS: { + ITEM_BUTTON_BACKGROUND_COLOR: SECONDARY_COLOR_3, + ITEM_BUTTON_SELECTED_BACKGROUND_COLOR: PRIMARY_COLOR_2, + ITEM_BUTTON_COLOR: WHITE, + ITEM_ARROW_COLOR: PRIMARY_COLOR_2, + }, + APPBAR: { + MOBILE_HEADER_CHEVRON_ICON_COLOR: WHITE, + DATASETS_MENU_SCROLLBAR_BACKGROUND_COLOR: PRIMARY_COLOR_1, + DATASETS_MENU_SCROLLBAR_TRACK_BACKGROUND_COLOR: SECONDARY_COLOR_7, + DATASETS_MENU_SCROLLBAR_THUMB_BACKGROUND_COLOR: PRIMARY_COLOR_1, + DATASETS_MENU_ITEM_COLOR: PRIMARY_COLOR_1, + DATASETS_MENU_ITEM_BORDER_BOTTOM_COLOR: SECONDARY_COLOR_7, + LINK_COLOR: SECONDARY_COLOR_7, + LINK_ACTIVE_COLOR: WHITE, + SEARCH_ICON_COLOR: PRIMARY_COLOR_1, + SEARCH_CLOSE_ICON_COLOR: WHITE, + SEARCH_ICON_BACKGROUND_COLOR: SECONDARY_COLOR_7, + }, + BUDGETS_FLOW: { + NODE_STROKE_HOVER_COLOR: PRIMARY_COLOR_1, + TOOLTIP_COLOR: PRIMARY_COLOR_1, + TOOLTIP_BACKGROUND_COLOR: SECONDARY_COLOR_10, + MOBILE_TOOLTIP_COLOR: PRIMARY_COLOR_1, + MOBILE_TOOLTIP_BACKGROUND_COLOR: WHITE, + MOBILE_TOOLTIP_CLOSE_ICON_COLOR: PRIMARY_COLOR_1, + MOBILE_TOOLTIP_DRILLDOWN_COLOR: PRIMARY_COLOR_1, + MOBILE_TOOLTIP_DRILLDOWN_BACKGROUND_COLOR: SECONDARY_COLOR_7, + MOBILE_TOOLTIP_DRILLDOWN_BACKGROUND_HOVER_COLOR: SECONDARY_COLOR_7, + }, + TIME_CYCLE: { + NODE_STROKE_HOVER_COLOR: PRIMARY_COLOR_1, + TOOLTIP_COLOR: PRIMARY_COLOR_1, + TOOLTIP_BACKGROUND_COLOR: SECONDARY_COLOR_10, + MOBILE_TOOLTIP_COLOR: PRIMARY_COLOR_1, + MOBILE_TOOLTIP_BACKGROUND_COLOR: WHITE, + MOBILE_TOOLTIP_CLOSE_ICON_COLOR: PRIMARY_COLOR_1, + MOBILE_TOOLTIP_DRILLDOWN_COLOR: PRIMARY_COLOR_1, + MOBILE_TOOLTIP_DRILLDOWN_BACKGROUND_COLOR: SECONDARY_COLOR_7, + MOBILE_TOOLTIP_DRILLDOWN_BACKGROUND_HOVER_COLOR: SECONDARY_COLOR_7, + PLEDGE_COLOR: "#0A2840", + CONTRIBUTION_COLOR: "#00B5AE", + AXIS_COLOR: "#ADB5BD", + X_AXIS_TEXT_COLOR: "#868E96", + Y_AXIS_TEXT_COLOR: PRIMARY_COLOR_1, + LEGEND_TEXT_COLOR: PRIMARY_COLOR_1, + AXIS_GRID_COLOR: "#ADB5BD", + AXIS_TEXT_COLOR: "#868E96", + BAR_COLOR_1: "#0A2840", + BAR_COLOR_2: "#013E77", + BAR_COLOR_3: "#00B5AE", + BAR_COLOR_4: "#C3EDFD", + BAR_COLOR_5: "#D9D9D9", + }, + TREEMAP: { + TEXT_COLOR: WHITE, + TOOLTIP_COLOR: PRIMARY_COLOR_1, + TOOLTIP_BACKGROUND_COLOR: SECONDARY_COLOR_10, + TOOLTIP_BORDER_COLOR: SECONDARY_COLOR_7, + BACKGROUND_COLOR: PRIMARY_COLOR_1, + MOBILE_TOOLTIP_COLOR: PRIMARY_COLOR_1, + TOOLTIP_PROGRESS_BAR_COLOR: SECONDARY_COLOR_1, + TOOLTIP_PROGRESS_BAR_BACKGROUND_COLOR: SECONDARY_COLOR_11, + MOBILE_TOOLTIP_BACKGROUND_COLOR: WHITE, + MOBILE_NODE_BACKGROUND_COLOR: SECONDARY_COLOR_12, + MOBILE_NODE_COLOR: WHITE, + CHILD_NODE_COLOR: WHITE, + NODE_COLOR: PRIMARY_COLOR_1, + NODE_COLOR_1: "#0A2840", + NODE_COLOR_2: "#013E77", + NODE_COLOR_3: "#00B5AE", + NODE_COLOR_4: "#C3EDFD", + NODE_COLOR_5: "#F3F5F4", + SUB_NODE_COLOR_1: "#164366", + SUB_NODE_COLOR_2: "#0B5191", + SUB_NODE_COLOR_3: "#18CCC5", + SUB_NODE_COLOR_4: "#B3D7E5", + SUB_NODE_COLOR_5: "#DDDDDD", + }, + GEOMAP: { + TOOLTIP_COLOR: PRIMARY_COLOR_1, + TOOLTIP_BACKGROUND_COLOR: SECONDARY_COLOR_10, + TOOLTIP_BORDER_COLOR: SECONDARY_COLOR_7, + TOOLTIP_PROGRESS_BAR_COLOR: SECONDARY_COLOR_1, + TOOLTIP_PROGRESS_BAR_BACKGROUND_COLOR: SECONDARY_COLOR_11, + MOBILE_TOOLTIP_BACKGROUND_COLOR: WHITE, + LINE_COLOR: SECONDARY_COLOR_13, + NO_DATA_LAYER_COLOR: "#F7FAFF", + NO_DATA_BORDER_COLOR: SECONDARY_COLOR_11, + DATA_LAYER_COLOR_1: "#CDD4DF", + DATA_LAYER_COLOR_2: "#C0C7D2", + DATA_LAYER_COLOR_3: "#AFB6C1", + DATA_LAYER_COLOR_4: "#A0A7B1", + DATA_LAYER_COLOR_5: "#939AA4", + DATA_LAYER_COLOR_6: "#868D96", + DATA_LAYER_COLOR_7: "#787F88", + DATA_LAYER_COLOR_8: "#6B727B", + DATA_LAYER_COLOR_9: "#575E67", + DATA_LAYER_COLOR_10: "#444B53", + DATA_LAYER_COLOR_11: "#343B43", + DATA_LAYER_COLOR_12: PRIMARY_COLOR_1, + }, + GRANTS: { + DETAIL_LINK_COLOR: "#000", + TEXT_COLOR: PRIMARY_COLOR_1, + TOOLTIP_COLOR: PRIMARY_COLOR_1, + TOOLTIP_BACKGROUND_COLOR: SECONDARY_COLOR_10, + TOOLTIP_BORDER_COLOR: SECONDARY_COLOR_7, + MOBILE_TOOLTIP_BACKGROUND_COLOR: WHITE, + MOBILE_TOOLTIP_BUTTON_COLOR: PRIMARY_COLOR_1, + MOBILE_TOOLTIP_BUTTON_BACKGROUND_COLOR: SECONDARY_COLOR_7, + MOBILE_TOOLTIP_BUTTON_BACKGROUND_HOVER_COLOR: SECONDARY_COLOR_7, + ITEM_LINE_COLOR: PRIMARY_COLOR_1, + LATEST_RATING_COLOR_1: "#3B873E", + LATEST_RATING_COLOR_2: "#7BC67E", + LATEST_RATING_COLOR_3: GRAPH_COLOR_17, + LATEST_RATING_COLOR_4: GRAPH_COLOR_16, + LATEST_RATING_COLOR_5: GRAPH_COLOR_15, + OUTLINE_COLOR: "#60647e", + COMPONENT_DIVIDER_COLOR: SECONDARY_COLOR_11, + }, + ELIGIBILITY: { + DOT_CHART_BORDER_COLOR: SECONDARY_COLOR_14, + ELIGIBLE_COLOR: GRAPH_COLOR_23, + NOT_ELIGIBLE_COLOR: GRAPH_COLOR_15, + TRANSITION_FUNDING_COLOR: GRAPH_COLOR_18, + ITEM_BORDER_COLOR: SECONDARY_COLOR_17, + AXIS_TEXT_COLOR: PRIMARY_COLOR_1, + AXIS_GRID_COLOR: SECONDARY_COLOR_5, + DISEASE_BURDEN_COLORS: [ + "#FA7355", + "#FA9A55", + "#ECC854", + "#8CCD81", + "#11AD6B", + "#5E8A78", + ], + }, + NETWORK: { + GRAPH_LINK_COLOR: SECONDARY_COLOR_7, + ACHIEVEMENT_RATE_COLOR_1: GRAPH_COLOR_15, + ACHIEVEMENT_RATE_COLOR_2: GRAPH_COLOR_16, + ACHIEVEMENT_RATE_COLOR_3: GRAPH_COLOR_17, + ACHIEVEMENT_RATE_COLOR_4: GRAPH_COLOR_18, + ACHIEVEMENT_RATE_COLOR_5: GRAPH_COLOR_19, + ACHIEVEMENT_RATE_COLOR_6: GRAPH_COLOR_20, + ACHIEVEMENT_RATE_COLOR_7: GRAPH_COLOR_21, + ACHIEVEMENT_RATE_COLOR_8: GRAPH_COLOR_23, + EXPANDED_VIEW_SELECTOR_COLOR: PRIMARY_COLOR_1, + TABLE_BORDER_COLOR: SECONDARY_COLOR_5, + TABLE_ROW_COLOR: "transparent", + TABLE_ROW_SELECTED_COLOR: SECONDARY_COLOR_6, + EXPANDED_VIEW_TABS_LIST_SCROLLBAR_BACKGROUND_COLOR: "#ededf6", + EXPANDED_VIEW_TABS_LIST_SCROLLBAR_TRACK_BACKGROUND_COLOR: "#ededf6", + EXPANDED_VIEW_TABS_LIST_SCROLLBAR_THUMB_BACKGROUND_COLOR: "#2e4063", + EXPANDED_VIEW_TAB_ITEM_COLOR: SECONDARY_COLOR_13, + EXPANDED_VIEW_TAB_ITEM_ACTIVE_COLOR: WHITE, + EXPANDED_VIEW_TAB_ITEM_HOVER_COLOR: WHITE, + EXPANDED_VIEW_TAB_ITEM_BACKGROUND_COLOR: SECONDARY_COLOR_11, + EXPANDED_VIEW_TAB_ITEM_BACKGROUND_ACTIVE_COLOR: PRIMARY_COLOR_1, + EXPANDED_VIEW_TAB_ITEM_BACKGROUND_HOVER_COLOR: PRIMARY_COLOR_1, + TABLE_CIRCLE_INDICATOR_BACKGROUND_COLOR: + "repeating-linear-gradient(-45deg, #262c34 0 0.5px, #fff 1.5px 2px)", + TOOLTIP_BUTTON_BACKGROUND_COLOR: SECONDARY_COLOR_7, + TOOLTIP_BUTTON_TEXT_COLOR: PRIMARY_COLOR_1, + TOOLTIP_CONTAINER_COLOR: PRIMARY_COLOR_1, + TOOLTIP_CONTAINER_BACKGROUND_COLOR_1: PRIMARY_COLOR_1, + TOOLTIP_CONTAINER_BACKGROUND_COLOR_2: WHITE, + TOOLTIP_BOTTOM_BUTTON_BACKGROUND_COLOR: PRIMARY_COLOR_1, + TOOLTIP_BOTTOM_BUTTON_TEXT_COLOR: WHITE, + TOOLTIP_BOTTOM_BUTTON_BORDER_COLOR: WHITE, + }, + PERFORMANCE_RATING: { + NODE_COLOR: SECONDARY_COLOR_17, + AXIS_COLOR: SECONDARY_COLOR_3, + AXIS_TEXT_COLOR: PRIMARY_COLOR_1, + AXIS_GRID_COLOR: SECONDARY_COLOR_3, + }, + ALLOCATIONS: { + TEXT_COLOR: PRIMARY_COLOR_1, + MOBILE_TOOLTIP_COLOR: PRIMARY_COLOR_1, + MOBILE_TOOLTIP_BACKGROUND_COLOR: WHITE, + MOBILE_TOOLTIP_BORDER_COLOR: SECONDARY_COLOR_7, + MOBILE_TOOLTIP_CLOSE_ICON_COLOR: PRIMARY_COLOR_1, + MOBILE_TOOLTIP_DRILLDOWN_COLOR: PRIMARY_COLOR_1, + MOBILE_TOOLTIP_DRILLDOWN_BACKGROUND_COLOR: SECONDARY_COLOR_7, + MOBILE_TOOLTIP_DRILLDOWN_BACKGROUND_HOVER_COLOR: SECONDARY_COLOR_7, + RADIAL_TRACK_BACKGROUND_COLOR: PRIMARY_COLOR_1, + RADIAL_DATA_LABELS_COLOR: PRIMARY_COLOR_1, + RADIAL_CENTER_LABEL_HOVER_COLOR: SECONDARY_COLOR_6, + }, + MOBILE_VIEWS_CONTROL: { + MENU_PAPER_BORDER_COLOR: "#d3d4d5", + MENU_SCROLLBAR_BACKGROUND_COLOR: PRIMARY_COLOR_1, + MENU_SCROLLBAR_TRACK_BACKGROUND_COLOR: SECONDARY_COLOR_7, + MENU_SCROLLBAR_THUMB_BACKGROUND_COLOR: PRIMARY_COLOR_1, + MENU_ITEM_BORDER_COLOR: SECONDARY_COLOR_7, + MENU_ITEM_COLOR: PRIMARY_COLOR_1, + BUTTON_BACKGROUND_COLOR: SECONDARY_COLOR_7, + BUTTON_BACKGROUND_HOVER_COLOR: SECONDARY_COLOR_7, + LINK_BACKGROUND_COLOR: SECONDARY_COLOR_7, + LINK_BACKGROUND_SELECTED_COLOR: PRIMARY_COLOR_1, + LINK_ICON_COLOR: "#868A9D", + LINK_ICON_SELECTED_COLOR: WHITE, + BUTTON_COLOR: SECONDARY_COLOR_7, + BUTTON_SELECTED_COLOR: WHITE, + BUTTON_BACKGROUND_SELECTED_COLOR: WHITE, + }, + MOBILE_FILTER_BAR: { + CHIP_COLOR: PRIMARY_COLOR_1, + CHIP_BACKGROUND_COLOR: SECONDARY_COLOR_7, + CHIP_DELETE_BUTTON_COLOR: PRIMARY_COLOR_1, + CONTAINER_BACKGROUND_COLOR: PRIMARY_COLOR_1, + LABEL_COLOR: WHITE, + SCROLLBAR_BACKGROUND_COLOR: "#ededf6", + SCROLLBAR_TRACK_BACKGROUND_COLOR: WHITE, + SCROLLBAR_THUMB_BACKGROUND_COLOR: PRIMARY_COLOR_1, + }, + TABS: { + SCROLLBAR_BACKGROUND_COLOR: "#ededf6", + SCROLLBAR_TRACK_BACKGROUND_COLOR: "#ededf6", + SCROLLBAR_THUMB_BACKGROUND_COLOR: "#2e4063", + ITEM_BACKGROUND_COLOR: SECONDARY_COLOR_11, + ITEM_BACKGROUND_ACTIVE_COLOR: PRIMARY_COLOR_1, + ITEM_BACKGROUND_HOVER_COLOR: PRIMARY_COLOR_1, + LINK_COLOR: SECONDARY_COLOR_13, + LINK_ACTIVE_COLOR: WHITE, + LINK_HOVER_COLOR: WHITE, + }, + PAGE_HEADER: { + CONTAINER_BACKGROUND_COLOR: SECONDARY_COLOR_7, + TITLE_COLOR: PRIMARY_COLOR_1, + }, + SEARCH: { + CONTAINER_BACKGROUND: "#F1F3F4", + TAB_TEXT_COLOR: PRIMARY_COLOR_1, + TAB_BORDER_COLOR: "transparent", + TAB_BORDER_ACTIVE_COLOR: PRIMARY_COLOR_1, + TAB_BORDER_HOVER_COLOR: PRIMARY_COLOR_1, + MOBILE_TAB_ACTIVE_COLOR: WHITE, + MOBILE_TAB_ACTIVE_BACKGROUND_COLOR: PRIMARY_COLOR_1, + MOBILE_TAB_BACKGROUND_COLOR: SECONDARY_COLOR_7, + RESULTS_CONTAINER_BACKGROUND_COLOR: WHITE, + RESULT_BORDER_COLOR: SECONDARY_COLOR_7, + RESULT_HOVER_BACKGROUND_COLOR: BLACK, + RESULT_HOVER_TEXT_COLOR: WHITE, + RESULT_TEXT_COLOR: BLACK, + CATEGORY_ICONS_COLOR: BLACK, + DROPDOWN_BACKGROUND_COLOR: WHITE, + DROPDOWN_SCROLLBAR_BACKGROUND_COLOR: "transparent", + DROPDOWN_SCROLLBAR_TRACK_BACKGROUND_COLOR: "transparent", + DROPDOWN_SCROLLBAR_THUMB_BACKGROUND_COLOR: BLACK, + DROPDOWN_ITEM_BACKGROUND_COLOR: BLACK, + DROPDOWN_ITEM_HOVER_COLOR: "#ffffff", + DROPDOWN_ITEM_ACTIVE_COLOR: "#ffffff", + DROPDOWN_ITEM_HOVER_BACKGROUND_COLOR: "#000000", + DROPDOWN_ITEM_ACTIVE_BACKGROUND_COLOR: "#000000", + DROPDOWN_BUTTON_BACKGROUND_COLOR: "transparent", + DROPDOWN_BUTTON_BORDER_COLOR: "#DFE3E5", + DROPDOWN_BUTTON_TEXT_HOVER_COLOR: WHITE, + DROPDOWN_BUTTON_BACKGROUND_HOVER_COLOR: BLACK, + DROPDOWN_BUTTON_TEXT_COLOR: BLACK, + CONTAINER_BORDER_COLOR: PRIMARY_COLOR_1, + INPUT_COLOR: BLACK, + INPUT_BACKGROUND_COLOR: "#F1F3F4", + }, + TABLE: { + BORDER_BOTTOM_COLOR: SECONDARY_COLOR_7, + ROW_BACKGROUND_COLOR_1: WHITE, + ROW_BACKGROUND_COLOR_2: SECONDARY_COLOR_10, + ROW_BACKGROUND_HOVER_COLOR: PRIMARY_COLOR_1, + ROW_TEXT_HOVER_COLOR: WHITE, + ROW_TEXT_COLOR: PRIMARY_COLOR_1, + DOWNLOAD_ICON_COLOR: PRIMARY_COLOR_2, + TOOLBAR_BACKGROUND_COLOR: SECONDARY_COLOR_10, + TOOLBAR_ICON_BUTTON_HOVER_BACKGROUND_COLOR: PRIMARY_COLOR_1, + TOOLBAR_ICON_BUTTON_HOVER_COLOR: WHITE, + TOOLBAR_SEARCH_TEXT_COLOR: PRIMARY_COLOR_1, + TOOLBAR_SEARCH_BACKGROUND_COLOR: WHITE, + TOOLBAR_ICON_COLOR: PRIMARY_COLOR_1, + }, + TOOLBOX: { + SECTION_BORDER_BOTTOM_COLOR: SECONDARY_COLOR_7, + FILTERS_SCROLLBAR_BACKGROUND_COLOR: PRIMARY_COLOR_1, + FILTERS_SCROLLBAR_TRACK_BACKGROUND_COLOR: SECONDARY_COLOR_10, + FILTERS_SCROLLBAR_THUMB_BACKGROUND_COLOR: PRIMARY_COLOR_1, + VIEWS_ICON_COLOR: "#868A9D", + VIEWS_ICON_ACTIVE_COLOR: SECONDARY_COLOR_13, + MENU_EXPORT_BORDER_COLOR: "#d3d4d5", + MENU_EXPORT_TEXT_COLOR: PRIMARY_COLOR_1, + REPORTING_PERIODS_BACKGROUND_COLOR: PRIMARY_COLOR_1, + FILTERS_EXPANDED_GROUP_SEARCH_BACKGROUND_COLOR: SECONDARY_COLOR_7, + FILTERS_EXPANDED_GROUP_SEARCH_ICON_COLOR: SECONDARY_COLOR_4, + FILTERS_EXPANDED_GROUP_SEARCH_TEXT_COLOR: PRIMARY_COLOR_1, + FILTERS_EXPANDED_GROUP_APPLY_BUTTON_TEXT_COLOR: WHITE, + FILTERS_EXPANDED_GROUP_APPLY_BUTTON_BACKGROUND_COLOR: PRIMARY_COLOR_1, + FILTER_PILL_TEXT_COLOR: PRIMARY_COLOR_1, + FILTER_PILL_BACKGROUND_COLOR: WHITE, + BACKGROUND_COLOR: SECONDARY_COLOR_10, + BUTTON_COLOR: WHITE, + BUTTON_BACKGROUND_COLOR: PRIMARY_COLOR_1, + BUTTON_BACKGROUND_HOVER_COLOR: SECONDARY_COLOR_13, + }, + LOCATION: { + OVERVIEW_VISUALISATION_COLORS: ["#727F95", "#21262B", "#595C70"], + }, + GRANT_LIST: { + DIVIDER: SECONDARY_COLOR_7, + PROGRESS_BAR_COLOR: SECONDARY_COLOR_1, + PROGRESS_BAR_BACKGROUND_COLOR: SECONDARY_COLOR_11, + ITEM_TEXT_COLOR: PRIMARY_COLOR_1, + ITEM_BACKGROUND_COLOR: SECONDARY_COLOR_10, + ITEM_BACKGROUND_HOVER_COLOR: SECONDARY_COLOR_13, + ITEM_TEXT_HOVER_COLOR: WHITE, + SEARCH_CONTAINER_BACKGROUND_COLOR: SECONDARY_COLOR_7, + SEARCH_INPUT_COLOR: PRIMARY_COLOR_1, + SEARCH_INPUT_BACKGROUND_COLOR: SECONDARY_COLOR_7, + }, + DATASETS_GRID: { + ITEM_TEXT_COLOR: PRIMARY_COLOR_1, + ITEM_BACKGROUND_COLOR: WHITE, + ITEM_BORDER_HOVER_COLOR: SECONDARY_COLOR_13, + ICON_LINK_COLOR: "#868a9d", + ICON_LINK_HOVER_COLOR: SECONDARY_COLOR_13, + }, + RESULTS_LIST: { + ITEM_TEXT_COLOR: PRIMARY_COLOR_1, + ITEM_BACKGROUND_COLOR: SECONDARY_COLOR_10, + ITEM_BACKGROUND_HOVER_COLOR: SECONDARY_COLOR_13, + ITEM_TEXT_HOVER_COLOR: WHITE, + ITEM_ACTIVE_COLOR: SECONDARY_COLOR_11, + ITEM_ACTIVE_BORDER_COLOR: SECONDARY_COLOR_13, + ITEM_BUTTON_UP_COLOR: WHITE, + ITEM_BUTTON_DOWN_COLOR: PRIMARY_COLOR_1, + ITEM_BUTTON_UP_BACKGROUND_COLOR: PRIMARY_COLOR_1, + ITEM_BUTTON_DOWN_BACKGROUND_COLOR: "transparent", + ITEM_BUTTON_BORDER_COLOR: SECONDARY_COLOR_7, + LOCATION_LIST_ITEM_COLOR: WHITE, + LOCATION_LIST_BACKGROUND_COLOR: PRIMARY_COLOR_1, + }, + RANGE_SLIDER: { + TRACK_BACKGROUND_COLOR: "linear-gradient(to right,#fff,#7e8a96,#0a0b0c)", + THUMB_BOX_SHADOW_COLOR: "#AAA", + }, + ABOUT_PAGE: { + LINK_COLOR: "#000", + LINK_BACKGROUND_COLOR: SECONDARY_COLOR_7, + LINK_BORDER_COLOR: SECONDARY_COLOR_7, + }, + HEATMAP: { + CHART_TEXT_COLOR: BLACK, + CHART_BG_COLOR: WHITE, + CHART_ROW_BORDER_COLOR: "#DFE3E5", + CHART_PERCENTAGE_COLORS: [ + "#5BA053", + "#8CCD81", + "#ECC854", + "#EE5D52", + "#DADADA", + ], + CHART_ELIGIBILITY_COLORS: ["#00B5AE", "#ABC7E7", "#013E77", "#CFD4DA"], + }, + LINE_CHART: { + AXIS_COLOR: "#6E7079", + CHART_TEXT_COLOR: "#6E7079", + CHART_BG_COLOR: SECONDARY_COLOR_10, + CHART_LINE_COLORS: ["#EC1642", "#FAC858", "#5470C6", "#575757"], + CHART_LINE_COLORS_1: [ + "#0A2840", + "#DEE1E7", + "#00B5AE", + "#013E77", + "#D9D9D9", + "#C3EDFD", + ], + }, + RADIAL_CHART: { + ITEM_COLORS: ["#0A2840", "#013E77", "#00B5AE", "#C3EDFD", "#F3F5F4"], + }, + RADAR_CHART: { + AXIS_NAME_COLOR: "#373D43", + COLORS: ["#013E77", "#00B5AE"], + }, + SANKEY_CHART: { + NODE_COLOR: "#252C34", + LINK_COLORS: ["#3B5366", "#013E77", "#33C4BE"], + }, + TOOLTIP: { + TEXT_COLOR: "#262C34", + BORDER_COLOR: "#DFE3E5", + BACKGROUND_COLOR: WHITE, + }, + PIE_CHART: { + ITEM_COLORS: ["#0A2840", "#013E77", "#00B5AE", "#C3EDFD", "#F3F5F4"], + }, + CHART_BLOCK_CYCLES: { + BUTTON_TEXT_COLOR: BLACK, + BUTTON_BACKGROUND_COLOR: WHITE, + BUTTON_ACTIVE_TEXT_COLOR: WHITE, + BUTTON_ACTIVE_BACKGROUND_COLOR: BLACK, + BUTTON_BORDER_COLOR: SECONDARY_COLOR_7, + }, + SUNBURST: { + ITEM_COLORS: [ + "#DEE1E7", + "#013E77", + "#D9D9D9", + "#2196F3", + "#00B5AE", + "#C3EDFD", + "#0A2840", + ], + }, +}; diff --git a/src/app/utils/formatLocale.ts b/src/app/utils/formatLocale.ts new file mode 100644 index 0000000..cb669f0 --- /dev/null +++ b/src/app/utils/formatLocale.ts @@ -0,0 +1,18 @@ +const locale = "en-US"; + +export function formatLocale(value: number | bigint): string { + if (!value) return ""; + return `US$ ${Number(value) + .toLocaleString(locale, { + style: "currency", + currency: "USD", + minimumFractionDigits: 0, + maximumFractionDigits: 0, + }) + .replace("$", "")}`; +} + +export function formatLocaleN(value: number | bigint): string { + if (!value) return "0"; + return Number(value).toLocaleString(locale); +} diff --git a/src/components/tables/tabulator tables/data.ts b/src/components/tables/tabulator tables/data.ts new file mode 100644 index 0000000..00a0e28 --- /dev/null +++ b/src/components/tables/tabulator tables/data.ts @@ -0,0 +1,7872 @@ +import {appColors} from "./../../../app/theme/index"; +import { formatLocale } from "./../../../app/utils/formatLocale"; +import { + RowComponent, + CellComponent, + ColumnDefinition, + TabulatorFull as Tabulator, +} from "tabulator-tables"; +import {TableDataItem} from "./tabulatorTables"; + +export const cellBGColorFormatter = (cell: CellComponent) => { + const cellValue = cell.getValue(); + let text = ""; + let backgroundColor = "#FFFFFF"; + if (!cellValue) { + backgroundColor = "#DFE3E5"; + } else { + switch (cellValue) { + case "Eligible": + backgroundColor = "#013E77"; + break; + case "Transition Funding": + backgroundColor = "#00B5AE"; + break; + case "Not Eligible": + backgroundColor = "#D9D9D9"; + break; + case "Extreme": + backgroundColor = appColors.ELIGIBILITY.DISEASE_BURDEN_COLORS[0]; + break; + case "Severe": + backgroundColor = appColors.ELIGIBILITY.DISEASE_BURDEN_COLORS[1]; + break; + case "High": + backgroundColor = appColors.ELIGIBILITY.DISEASE_BURDEN_COLORS[2]; + break; + case "Not High": + backgroundColor = appColors.ELIGIBILITY.DISEASE_BURDEN_COLORS[3]; + break; + case "Moderate": + backgroundColor = appColors.ELIGIBILITY.DISEASE_BURDEN_COLORS[4]; + break; + case "Low": + backgroundColor = appColors.ELIGIBILITY.DISEASE_BURDEN_COLORS[5]; + break; + case "NA": + break; + default: + text = cellValue.toString(); + break; + } + } + if (cell.getRow().getTreeChildren().length > 0) { + cell.getElement().style.fontWeight = "bold"; + backgroundColor = "#FFFFFF"; + } + cell.getElement().style.backgroundColor = backgroundColor; + cell.getElement().style.whiteSpace = "pre-wrap"; + return text; + }; + + export const financialFormatter = (cell: CellComponent) => { + if (!cell.getValue()) { + return cellBGColorFormatter(cell); + } + cell.getElement().style.backgroundColor = "#FFFFFF"; + return formatLocale(cell.getValue()).replace("US$", ""); + }; + + export const TABLE_VARIATION_1_COLUMNS: ColumnDefinition[] = [ + { title: "Name", field: "name", width: "20%" }, + { + title: "Years", + columns: [ + { title: "2002", field: "2002" }, + { title: "2003", field: "2003" }, + { title: "2004", field: "2004" }, + { title: "2005", field: "2005" }, + ], + }, + { + title: "Components", + columns: [ + { title: "HIV", field: "HIV" }, + { title: "Tuberculosis", field: "Tuberculosis" }, + { title: "Malaria", field: "Malaria" }, + { title: "Others", field: "Others" }, + ], + }, + ]; + + export const TABLE_VARIATION_1_DATA: { + [key: string]: TableDataItem; + }[] = [ + { + name: "Africa", + 2002: 100, + 2003: 120, + 2004: 140, + 2005: 160, + HIV: 10, + Tuberculosis: 20, + Malaria: 30, + Others: 40, + _children: [ + { + name: "Eastern Africa", + 2002: 10, + 2003: 12, + 2004: 14, + 2005: 16, + HIV: 1, + Tuberculosis: 2, + Malaria: 3, + Others: 4, + _children: [ + { + name: "Kenya", + 2002: 1, + 2003: 1.2, + 2004: 1.4, + 2005: 1.6, + HIV: 0.1, + Tuberculosis: 0.2, + Malaria: 0.3, + Others: 0.4, + }, + { + name: "Uganda", + 2002: 1, + 2003: 1.2, + 2004: 1.4, + 2005: 1.6, + HIV: 0.1, + Tuberculosis: 0.2, + Malaria: 0.3, + Others: 0.4, + }, + ], + }, + { + name: "Western Africa", + 2002: 10, + 2003: 12, + 2004: 14, + 2005: 16, + HIV: 1, + Tuberculosis: 2, + Malaria: 3, + Others: 4, + _children: [ + { + name: "Nigeria", + 2002: 1, + 2003: 1.2, + 2004: 1.4, + 2005: 1.6, + HIV: 0.1, + Tuberculosis: 0.2, + Malaria: 0.3, + Others: 0.4, + }, + { + name: "Ghana", + 2002: 1, + 2003: 1.2, + 2004: 1.4, + 2005: 1.6, + HIV: 0.1, + Tuberculosis: 0.2, + Malaria: 0.3, + Others: 0.4, + }, + ], + }, + ], + }, + { + name: "Asia", + 2002: 100, + 2003: 120, + 2004: 140, + 2005: 160, + HIV: 10, + Tuberculosis: 20, + Malaria: 30, + Others: 40, + _children: [ + { + name: "Eastern Asia", + 2002: 10, + 2003: 12, + 2004: 14, + 2005: 16, + HIV: 1, + Tuberculosis: 2, + Malaria: 3, + Others: 4, + _children: [ + { + name: "China", + 2002: 1, + 2003: 1.2, + 2004: 1.4, + 2005: 1.6, + HIV: 0.1, + Tuberculosis: 0.2, + Malaria: 0.3, + Others: 0.4, + }, + { + name: "Japan", + 2002: 1, + 2003: 1.2, + 2004: 1.4, + 2005: 1.6, + HIV: 0.1, + Tuberculosis: 0.2, + Malaria: 0.3, + Others: 0.4, + }, + ], + }, + { + name: "Southern Asia", + 2002: 10, + 2003: 12, + 2004: 14, + 2005: 16, + HIV: 1, + Tuberculosis: 2, + Malaria: 3, + Others: 4, + _children: [ + { + name: "India", + 2002: 1, + 2003: 1.2, + 2004: 1.4, + 2005: 1.6, + HIV: 0.1, + Tuberculosis: 0.2, + Malaria: 0.3, + Others: 0.4, + }, + { + name: "Pakistan", + 2002: 1, + 2003: 1.2, + 2004: 1.4, + 2005: 1.6, + HIV: 0.1, + Tuberculosis: 0.2, + Malaria: 0.3, + Others: 0.4, + }, + ], + }, + ], + }, + ]; + + export const TABLE_VARIATION_2_COLUMNS: ColumnDefinition[] = [ + { + title: "Components", + field: "components", + formatter: cellBGColorFormatter, + minWidth: 180, + }, + { + title: "Submission Date", + field: "submissionDate", + formatter: cellBGColorFormatter, + }, + { title: "Approach", field: "approach", formatter: cellBGColorFormatter }, + { title: "TRP Window", field: "trpWindow", formatter: cellBGColorFormatter }, + { + title: "TRP Outcome", + field: "trpOutcome", + formatter: cellBGColorFormatter, + }, + { + title: "Portfolio Categorization", + field: "portfolioCategorization", + formatter: cellBGColorFormatter, + }, + { + title: "Board Approval", + field: "boardApproval", + formatter: cellBGColorFormatter, + }, + { + title: "GAC Meeting", + field: "gacMeeting", + formatter: cellBGColorFormatter, + }, + { title: "Grant", field: "grant", formatter: cellBGColorFormatter }, + { + title: "Starting date", + field: "startingDate", + formatter: cellBGColorFormatter, + }, + { + title: "Ending date", + field: "endingDate", + formatter: cellBGColorFormatter, + }, + { + title: "Principal Recipient", + field: "principalRecipient", + formatter: cellBGColorFormatter, + }, + // { title: "Component", field: "component", formatter: cellBGColorFormatter }, + ]; + + export const TABLE_VARIATION_2_DATA: { + [key: string]: TableDataItem; + }[] = [ + { + components: "HIV", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + _children: [ + { + boardApproval: "November 2023", + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + }, + { + boardApproval: "November 2023", + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + }, + ], + }, + { + components: "Malaria", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + _children: [ + { + boardApproval: "November 2023", + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + }, + { + boardApproval: "November 2023", + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + }, + ], + }, + { + components: "Tuberculosis", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + _children: [ + { + boardApproval: "November 2023", + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + }, + { + boardApproval: "November 2023", + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + }, + ], + }, + { + components: "HIV", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + _children: [ + { + boardApproval: "November 2023", + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + }, + { + boardApproval: "November 2023", + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + }, + ], + }, + { + components: "Malaria", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + _children: [ + { + boardApproval: "November 2023", + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + }, + { + boardApproval: "November 2023", + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + }, + ], + }, + { + components: "Tuberculosis", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + _children: [ + { + boardApproval: "November 2023", + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + }, + { + boardApproval: "November 2023", + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + }, + ], + }, + ]; + + export const TABLE_VARIATION_3_COLUMNS: ColumnDefinition[] = [ + { title: "Location", field: "name", formatter: cellBGColorFormatter }, + { title: "2023", field: "2023", formatter: cellBGColorFormatter }, + { title: "2022", field: "2022", formatter: cellBGColorFormatter }, + { title: "2021", field: "2021", formatter: cellBGColorFormatter }, + { title: "2020", field: "2020", formatter: cellBGColorFormatter }, + { title: "2019", field: "2019", formatter: cellBGColorFormatter }, + ]; + + export const TABLE_VARIATION_3_DATA: { + [key: string]: TableDataItem; + }[] = [ + { + name: "Algeria", + _children: [ + { + name: "HIV", + 2023: "Eligible", + 2022: "Eligible", + 2021: "Eligible", + 2020: "Eligible", + 2019: "Eligible", + _children: [ + { + name: "Burden Disease", + 2023: "Low", + 2022: "Low", + 2021: "Low", + 2020: "Low", + 2019: "Low", + }, + ], + }, + ], + }, + { + name: "Kenya", + _children: [ + { + name: "HIV", + 2023: "Eligible", + 2022: "Eligible", + 2021: "Eligible", + 2020: "Eligible", + 2019: "Eligible", + _children: [ + { + name: "Burden Disease", + 2023: "Low", + 2022: "Low", + 2021: "Low", + 2020: "Low", + 2019: "Low", + }, + ], + }, + ], + }, + ]; + + export const TABLE_VARIATION_4_COLUMNS: ColumnDefinition[] = [ + { + title: "Modules & Coverage Indicators", + field: "name", + formatter: cellBGColorFormatter, + width: "35%", + }, + { + title: "Reversed", + columns: [ + { + title: "Value", + field: "reversed", + formatter: cellBGColorFormatter, + }, + ], + }, + { + title: "Geo. coverage", + columns: [ + { title: "Value", field: "geoCoverage", formatter: cellBGColorFormatter }, + ], + }, + { + title: "Cumulation", + columns: [ + { title: "Period", field: "cumulation", formatter: cellBGColorFormatter }, + ], + }, + { + title: "Baseline", + columns: [ + { + title: "Value", + field: "baselineValue", + formatter: cellBGColorFormatter, + }, + { + title: "Year", + field: "baselineYear", + formatter: cellBGColorFormatter, + }, + { + title: "Source", + field: "baselineSource", + formatter: cellBGColorFormatter, + }, + ], + }, + { + title: "2020", + field: "2020", + formatter: (cell: CellComponent) => { + const tableEl = document.createElement("div"); + cell.getElement().appendChild(tableEl); + const data = cell.getValue(); + + if (!cell.getValue()) { + return ""; + } + + new Tabulator(tableEl, { + data, + layout: "fitDataTable", + height: "fit-content", + columns: [ + { title: "Target", field: "target" }, + { title: "Result", field: "result" }, + { title: "Achievement", field: "achievement" }, + ], + }); + + // cell.getElement().style.height = "max-content"; + cell.getElement().style.padding = "0"; + + return tableEl; + }, + }, + { + title: "2021", + field: "2021", + formatter: (cell: CellComponent) => { + const tableEl = document.createElement("div"); + cell.getElement().appendChild(tableEl); + const data = cell.getValue(); + + if (!cell.getValue()) { + return ""; + } + + new Tabulator(tableEl, { + data, + layout: "fitDataTable", + height: "fit-content", + columns: [ + { title: "Target", field: "target" }, + { title: "Result", field: "result" }, + { title: "Achievement", field: "achievement" }, + ], + }); + + // cell.getElement().style.height = "max-content"; + cell.getElement().style.padding = "0"; + + return tableEl; + }, + }, + ]; + + export const TABLE_VARIATION_4_DATA: { + [key: string]: TableDataItem; + }[] = [ + { + name: "TB CARE AND PREVENTION", + _children: [ + { + name: "Number of notified cases of all forms of TB (i.e. bacteriologically confirmed + clinically diagnosed), new and relapse cases", + _children: [ + { + reversed: "No", + geoCoverage: "National", + cumulation: "Annually", + baselineValue: "T:0.5%", + baselineYear: "2018", + baselineSource: "--", + "2020": [ + { + target: "T:0.5%", + result: "T:0.5%", + achievement: "100%", + }, + { + target: "T:0.5%", + result: "T:0.5%", + achievement: "100%", + }, + { + target: "T:0.5%", + result: "T:0.5%", + achievement: "100%", + }, + ], + "2021": [ + { + target: "T:0.5%", + result: "T:0.5%", + achievement: "100%", + }, + { + target: "T:0.5%", + result: "T:0.5%", + achievement: "100%", + }, + { + target: "T:0.5%", + result: "T:0.5%", + achievement: "100%", + }, + ], + }, + ], + }, + ], + }, + { + name: "TB CARE AND PREVENTION", + _children: [ + { + name: "Number of notified cases of all forms of TB (i.e. bacteriologically confirmed + clinically diagnosed), new and relapse cases", + _children: [ + { + reversed: "No", + geoCoverage: "National", + cumulation: "Annually", + baselineValue: "T:0.5%", + baselineYear: "2018", + baselineSource: "--", + "2020": [ + { + target: "T:0.5%", + result: "T:0.5%", + achievement: "100%", + }, + { + target: "T:0.5%", + result: "T:0.5%", + achievement: "100%", + }, + { + target: "T:0.5%", + result: "T:0.5%", + achievement: "100%", + }, + ], + "2021": [ + { + target: "T:0.5%", + result: "T:0.5%", + achievement: "100%", + }, + { + target: "T:0.5%", + result: "T:0.5%", + achievement: "100%", + }, + { + target: "T:0.5%", + result: "T:0.5%", + achievement: "100%", + }, + ], + }, + ], + }, + ], + }, + ]; + + export const TABLE_VARIATION_5_COLUMNS: ColumnDefinition[] = [ + { + title: "Grant ID", + field: "grantId", + formatter: (cell: CellComponent) => + `${cell.getValue()}`, + width: "10%", + minWidth: 150, + }, + { + title: "Start/End date", + field: "startEndDate", + formatter: cellBGColorFormatter, + width: "15%", + minWidth: 150, + }, + { + title: "Geography", + field: "geography", + formatter: cellBGColorFormatter, + width: "10%", + minWidth: 100, + }, + { + title: "Component", + field: "component", + formatter: cellBGColorFormatter, + width: "10%", + minWidth: 100, + }, + { + title: "Principal Recipient", + field: "principalRecipient", + formatter: cellBGColorFormatter, + width: "25%", + minWidth: 250, + }, + { + title: "Status", + field: "status", + formatter: cellBGColorFormatter, + width: "10%", + minWidth: 150, + }, + { + title: "Signed (US$)", + field: "signed", + formatter: financialFormatter, + width: "10%", + minWidth: 150, + }, + { + title: "Disbursed (US$)", + field: "disbursed", + formatter: financialFormatter, + width: "10%", + minWidth: 150, + }, + ]; + + export const TABLE_VARIATION_5_DATA: { + [key: string]: TableDataItem; + }[] = [ + { + grantId: "AFG-H-MOH001", + startEndDate: "Jul 2023 - Dec 2023", + geography: "Ghana", + component: "HIV", + principalRecipient: "Private health ministry of Ghana", + status: "Active", + signed: 1000000, + disbursed: 1000000, + }, + { + grantId: "AFG-H-MOH001", + startEndDate: "Jul 2023 - Dec 2023", + geography: "Ghana", + component: "HIV", + principalRecipient: "Private health ministry of Ghana", + status: "Active", + signed: 1000000, + disbursed: 1000000, + }, + ]; + + export const TABLE_VARIATION_6_COLUMNS: ColumnDefinition[] = [ + { + title: "Geography", + field: "name", + width: "78%", + formatter: cellBGColorFormatter, + }, + { + width: "20%", + title: "Documents", + field: "documents", + formatter: (cell: CellComponent) => { + if (typeof cell.getValue() === "string") { + cell.getElement().style.textAlign = "right"; + return ` + + + `; + } + return cell.getValue(); + }, + }, + ]; + + export const TABLE_VARIATION_6_DATA: { + [key: string]: TableDataItem; + }[] = [ + { + name: "Kenya", + documents: 23, + _children: [ + { + name: "Application", + documents: 23, + _children: [ + { + name: "Proposal - Round 04 - Malaria - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Proposals/KEN/Round 04/Malaria/en/KEN-R04-ML_Proposal_0_en.pdf", + }, + { + name: "Proposal - Round 04 - Malaria - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Proposals/KEN/Round 04/Malaria/en/KEN-R04-ML_AMFmApplication_0_en.pdf", + }, + { + name: "2022 - Additional Covid Funding Request - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Additional Covid Funding Requests/KEN/2022/NA/en/KEN-X_AddnlCovidFundingRequest_1_EN.zip", + }, + { + name: "2023 - Funding Request - Window 3 - Malaria - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Funding Requests/KEN/2023/Malaria/en/KEN-M_FundingRequest_1_en.zip", + }, + { + name: "Proposal - Round 10 - HIV/AIDS - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Proposals/KEN/Round 10/HIV/en/KEN-R10-HA_Proposal_0_en.pdf", + }, + { + name: "Proposal - Round 09 - Tuberculosis - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Proposals/KEN/Round 09/Tuberculosis/en/KEN-R09-TB_Proposal_0_en.pdf", + }, + { + name: "2021 - Full Covid Funding Request - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Full Covid Funding Requests/KEN/2021/NA/en/KEN-X_FullCovidFundingRequest_1_en.zip", + }, + { + name: "2015 - Concept Note - Malaria - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Concept Notes/KEN/2015/Malaria/en/KEN-M_ConceptNote_0_en.zip", + }, + { + name: "Proposal - Round 02 - Malaria - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Proposals/KEN/Round 02/Malaria/en/KEN-R02-ML_Proposal_0_en.pdf", + }, + { + name: "Proposal - Round 05 - Tuberculosis - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Proposals/KEN/Round 05/Tuberculosis/en/KEN-R05-TB_Proposal_0_en.pdf", + }, + { + name: "2020 - Funding Request - Window 3 - HIV/TB - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Funding Requests/KEN/2020/TB_HIV/en/KEN-C_FundingRequest_1_en.zip", + }, + { + name: "Proposal - Round 07 - HIV/AIDS - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Proposals/KEN/Round 07/HIV/en/KEN-R07-HA_Proposal_0_en.pdf", + }, + { + name: "2015 - Concept Note - HIV/TB - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Concept Notes/KEN/2015/TB_HIV/en/KEN-TH_ConceptNote_0_en.zip", + }, + { + name: "2020 - Funding Request - Window 3 - Malaria - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Funding Requests/KEN/2020/Malaria/en/KEN-M_FundingRequest_1_en.zip", + }, + { + name: "Proposal - Round 02 - HIV/AIDS - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Proposals/KEN/Round 02/HIV/en/KEN-R02-HA_Proposal_0_en.pdf", + }, + { + name: "2023 - Funding Request - Window 3 - HIV/TB - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Funding Requests/KEN/2023/TB_HIV/en/KEN-C_FundingRequest_1_en.zip", + }, + { + name: "Proposal - Round 02 - Tuberculosis - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Proposals/KEN/Round 02/Tuberculosis/en/KEN-R02-TB_Proposal_0_en.pdf", + }, + { + name: "2017 - Funding Request - HIV/TB - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Funding Requests/KEN/2017/TB_HIV/en/KEN-C_FundingRequest_0_en.zip", + }, + { + name: "2021 - Fast-track Covid Funding Request - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Fast-track Covid Funding Requests/KEN/2021/NA/en/KEN-X_FastCovidFundingRequest_1_en.zip", + }, + { + name: "Proposal - Round 10 - Malaria - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Proposals/KEN/Round 10/Malaria/en/KEN-R10-ML_Proposal_0_en.pdf", + }, + { + name: "2017 - Funding Request - Malaria - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Funding Requests/KEN/2017/Malaria/en/KEN-M_FundingRequest_0_en.zip", + }, + { + name: "Proposal - Round 06 - Tuberculosis - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Proposals/KEN/Round 06/Tuberculosis/en/KEN-R06-TB_Proposal_0_en.pdf", + }, + { + name: "Proposal - Round 01 - HIV/AIDS - Kenya", + documents: + "https://gfdatastore.blob.core.windows.net/files/Applications/Proposals/KEN/Round 01/HIV/en/KEN-R01-HA_Proposal_0_en.pdf", + }, + ], + }, + ], + }, + ]; + + export const TABLE_VARIATION_7_COLUMNS: ColumnDefinition[] = [ + { + title: "Description", + field: "description", + formatter: cellBGColorFormatter, + }, + { title: "Component", field: "component", formatter: cellBGColorFormatter }, + { title: "Result", field: "result", formatter: financialFormatter }, + ]; + + export const TABLE_VARIATION_7_DATA: { + [key: string]: TableDataItem; + }[] = [ + { + description: "People on antiretroviral therapy for HIV", + component: "HIV", + result: 1965401, + }, + { + description: "People with TB treated", + component: "Tuberculosis", + result: 1965401, + }, + { + description: "Mosquito nets distributed", + component: "Malaria", + result: 10000000, + }, + { + description: "Peopleusing pre-exposure prophylaxis", + component: "HIV", + result: 1000000, + }, + { + description: + "Other vulnerable populations reached with HIV prevention programs", + component: "HIV", + result: 100000, + }, + { + description: + "People in contact with TB patients received preventive therapy", + component: "Tuberculosis", + result: 100000, + }, + { + description: "Rifampicin - and/or multidrug-resistant TB cases notified", + component: "Tuberculosis", + result: 10000, + }, + { + description: + "People in contact with TB patients received preventive therapy", + component: "Tuberculosis", + result: 200000, + }, + ]; + + export const TABLE_VARIATION_8_COLUMNS: ColumnDefinition[] = [ + { + title: "Donors Types & Donors", + field: "name", + formatter: cellBGColorFormatter, + width: "50%", + }, + { + title: "Pledge (US$)", + field: "pledge", + formatter: financialFormatter, + width: "25%", + }, + { + title: "Contribution (US$)", + field: "contribution", + formatter: financialFormatter, + }, + ]; + + export const TABLE_VARIATION_8_DATA: { + [key: string]: TableDataItem; + }[] = [ + { + name: "Affordable Medicines Facility - malaria (AMFm)", + pledge: 537458185.43, + contribution: 537458185.43, + _children: [ + { + name: "AMFm Bill & Melinda Gates Foundation", + pledge: 24365000, + contribution: 24365000, + }, + { + name: "AMFm Canada", + pledge: 39596763.03, + contribution: 39596763.03, + }, + { + name: "AMFm United Kingdom", + pledge: 273496422.4, + contribution: 273496422.4, + }, + { + name: "AMFm World Health Organization-Unitaid", + pledge: 200000000, + contribution: 200000000, + }, + ], + }, + { + name: "Corporation", + pledge: 655304646.01, + contribution: 695475765.3599999, + _children: [ + { + name: "Absa Group Ltd", + pledge: 150000, + contribution: 150000, + }, + { + name: "Anglo American plc", + pledge: 18500000, + contribution: 7125000, + }, + { + name: "BHP Billiton Sustainable Communities", + pledge: 10000000, + contribution: 10000000, + }, + { + name: "Chevron Corporation", + pledge: 60004000, + contribution: 60004000, + }, + { + name: "Ecobank", + pledge: 6000000, + contribution: 1500000, + }, + { + name: "Gift from Africa", + pledge: 3000000, + contribution: 1495856.61, + }, + { + name: "GlaxoSmithKline plc and Viiv Healthcare", + pledge: 9408997.36, + contribution: 5880623.35, + }, + { + name: "Goodbye Malaria - Sonhos Social Capital / Relate Trust ZA", + pledge: 15000000, + contribution: 6719279.34, + }, + { + name: "Munich Re", + pledge: 1002000, + contribution: 1002000, + }, + { + name: "Nationale Postcode Loterij N.V.", + pledge: 3397662.5, + contribution: 3397662.5, + }, + { + name: "Product (RED)", + pledge: 500000000, + contribution: 575059357.4, + }, + { + name: "PT. Kalbe Farma Tbk", + pledge: 1500000, + contribution: 500000, + }, + { + name: "Standard Bank", + pledge: 4000000, + contribution: 2000000, + }, + { + name: "Takeda Pharmaceutical", + pledge: 17641986.15, + contribution: 17641986.16, + }, + { + name: "Vale", + pledge: 3000000, + contribution: 3000000, + }, + { + name: "Duet Group", + pledge: 2600000, + contribution: 0, + }, + { + name: "Medtronic LABS", + pledge: 100000, + contribution: 0, + }, + ], + }, + { + name: "Debt2Health", + pledge: 232224123, + contribution: 225894765.36, + _children: [ + { + name: "Debt2Health - Australia-Indonesia", + pledge: 35267489.58, + contribution: 35267489.57, + }, + { + name: "Debt2Health - Germany - El Salvador", + pledge: 11222085.1, + contribution: 11222085.1, + }, + { + name: "Debt2Health - Germany-Côte d'Ivoire", + pledge: 12540097.19, + contribution: 12540096.89, + }, + { + name: "Debt2Health - Germany-Egypt", + pledge: 4807118.2, + contribution: 4807118.2, + }, + { + name: "Debt2Health - Germany-Indonesia", + pledge: 90905435.51, + contribution: 90905435.51, + }, + { + name: "Debt2Health - Germany-Pakistan", + pledge: 26374033.3, + contribution: 26374033.3, + }, + { + name: "Debt2Health - Germany-Sri Lanka", + pledge: 22444170.2, + contribution: 16114812.87, + }, + { + name: "Debt2Health - Jordan-Germany", + pledge: 11222085.1, + contribution: 11222085.1, + }, + { + name: "Debt2Health - Spain-Cameroon", + pledge: 10456922.94, + contribution: 10456922.94, + }, + { + name: "Debt2Health - Spain-Congo (Democratic Republic)", + pledge: 3403543.46, + contribution: 3403543.46, + }, + { + name: "Debt2Health - Spain-Ethiopia", + pledge: 3581142.42, + contribution: 3581142.42, + }, + ], + }, + { + name: "Faith-Based Organization", + pledge: 41500000, + contribution: 25510854.39, + _children: [ + { + name: "LMI (Lutheran Malaria Initiative)", + pledge: 13500000, + contribution: 1654957.39, + }, + { + name: "United Methodist Church", + pledge: 28000000, + contribution: 23855897, + }, + ], + }, + { + name: "Foundation", + pledge: 4157886086.67, + contribution: 3455554123.85, + _children: [ + { + name: "Abbott Fund", + pledge: 5000000, + contribution: 1667000, + }, + { + name: "AIDS Healthcare Foundation", + pledge: 10000000, + contribution: 2000000, + }, + { + name: "Bill & Melinda Gates Foundation", + pledge: 3928300348, + contribution: 3305259289, + }, + { + name: "Catholic Relief Services", + pledge: 11000000, + contribution: 8000000, + }, + { + name: "Children's Investment Fund Foundation", + pledge: 68090668.75, + contribution: 48995232.75, + }, + { + name: "Comic Relief", + pledge: 58195069.92, + contribution: 51032602.1, + }, + { + name: "Communitas Foundation", + pledge: 2000000, + contribution: 2000000, + }, + { + name: "Fondation Chanel", + pledge: 1550000, + contribution: 1550000, + }, + { + name: "J.C. Flowers Foundation", + pledge: 1000000, + contribution: 1000000, + }, + { + name: "Johnson & Johnson Foundation", + pledge: 0, + contribution: 4500000, + }, + { + name: "M∙A∙C AIDS Fund", + pledge: 3250000, + contribution: 3250000, + }, + { + name: "McGovern Foundation", + pledge: 1000000, + contribution: 1000000, + }, + { + name: "Rockefeller Foundation", + pledge: 30000000, + contribution: 21000000, + }, + { + name: "Skoll Foundation", + pledge: 10000000, + contribution: 4000000, + }, + { + name: "Tanoto Foundation", + pledge: 1000000, + contribution: 300000, + }, + { + name: "FIFA Foundation", + pledge: 1500000, + contribution: 0, + }, + { + name: "Outcomes Fund for Fevers", + pledge: 25000000, + contribution: 0, + }, + { + name: "SMJR Foundation", + pledge: 1000000, + contribution: 0, + }, + ], + }, + { + name: "Individual", + pledge: 79215156.01, + contribution: 23340405.44, + _children: [ + { + name: "Tahir Foundation", + pledge: 79215156.01, + contribution: 23340405.44, + }, + ], + }, + { + name: "Private Sector & Nongovernment", + pledge: 231880131.54999998, + contribution: 65813531.28, + _children: [ + { + name: "Co-Impact", + pledge: 8000000, + contribution: 6650000, + }, + { + name: "Hottokenai Campaign (G-CAP Coalition Japan)", + pledge: 250000, + contribution: 250000, + }, + { + name: "Idol Gives Back", + pledge: 16600000, + contribution: 16600000, + }, + { + name: "KN Cam Ranh Co., Ltd.", + pledge: 4000000, + contribution: 1000000, + }, + { + name: "Other Private Sector", + pledge: 160647487.07, + contribution: 29502198.44, + }, + { + name: "Plan International and Plan Canada", + pledge: 5175551.6, + contribution: 1804239.96, + }, + { + name: "United Nations Foundation", + pledge: 9707092.88, + contribution: 9707092.88, + }, + { + name: "YMCA and Y's Men International", + pledge: 500000, + contribution: 300000, + }, + { + name: "Cordaid", + pledge: 5000000, + contribution: 0, + }, + { + name: "Human Crescent", + pledge: 10000000, + contribution: 0, + }, + { + name: "Rotary Australia World Community Service and Rotarians Against Malaria", + pledge: 12000000, + contribution: 0, + }, + ], + }, + { + name: "Public Sector", + pledge: 83023804221.21999, + contribution: 68674070397.42001, + _children: [ + { + name: "Andorra", + pledge: 100000, + contribution: 100000, + }, + { + name: "Australia", + pledge: 1061452595.5, + contribution: 857868607.82, + }, + { + name: "Austria", + pledge: 1075900, + contribution: 1075900, + }, + { + name: "Azerbaijan", + pledge: 20000000, + contribution: 5800000, + }, + { + name: "Barbados", + pledge: 100000, + contribution: 100000, + }, + { + name: "Belgium", + pledge: 406271977.08, + contribution: 391368847.43, + }, + { + name: "Benin", + pledge: 3000000, + contribution: 2000000, + }, + { + name: "Brazil", + pledge: 202355.08, + contribution: 202355.08, + }, + { + name: "Brunei Darussalam", + pledge: 150000, + contribution: 150000, + }, + { + name: "Burkina Faso", + pledge: 2075832.15, + contribution: 1075832.15, + }, + { + name: "Burundi", + pledge: 1000000, + contribution: 596080.38, + }, + { + name: "Canada", + pledge: 4379254163.97, + contribution: 3776157910.87, + }, + { + name: "Central African Republic", + pledge: 1999001, + contribution: 423016.73, + }, + { + name: "Chad", + pledge: 551480.73, + contribution: 551480.73, + }, + { + name: "China", + pledge: 81000000, + contribution: 81000000, + }, + { + name: "Congo (Democratic Republic)", + pledge: 12000000, + contribution: 4000000, + }, + { + name: "Côte d'Ivoire", + pledge: 4526477.5, + contribution: 2445500.45, + }, + { + name: "Cyprus", + pledge: 99354.2, + contribution: 99354.2, + }, + { + name: "Denmark", + pledge: 499164879.31, + contribution: 449066686.85, + }, + { + name: "Estonia", + pledge: 4077.2, + contribution: 4077.2, + }, + { + name: "Eswatini", + pledge: 7000000, + contribution: 6000000, + }, + { + name: "European Commission", + pledge: 4152680240.25, + contribution: 3966197215.12, + }, + { + name: "Finland", + pledge: 33200900, + contribution: 33200900, + }, + { + name: "France", + pledge: 9521557247.41, + contribution: 8017719950.15, + }, + { + name: "Georgia", + pledge: 40000, + contribution: 40000, + }, + { + name: "Germany", + pledge: 6713397327.33, + contribution: 5794835379.71, + }, + { + name: "Greece", + pledge: 2205233.07, + contribution: 2205233.07, + }, + { + name: "Hungary", + pledge: 55000, + contribution: 55000, + }, + { + name: "Iceland", + pledge: 1170707.23, + contribution: 1170707.23, + }, + { + name: "India", + pledge: 94500000, + contribution: 76500000, + }, + { + name: "Indonesia", + pledge: 10000000, + contribution: 1500000, + }, + { + name: "Ireland", + pledge: 406349691.8, + contribution: 362633844.82, + }, + { + name: "Italy", + pledge: 2030558623.96, + contribution: 1521147534.93, + }, + { + name: "Japan", + pledge: 5387195584, + contribution: 4622979225, + }, + { + name: "Kenya", + pledge: 23008273, + contribution: 13008273, + }, + { + name: "Korea (Republic)", + pledge: 170622486.94, + contribution: 120622486.94, + }, + { + name: "Kuwait", + pledge: 25999965, + contribution: 17999965, + }, + { + name: "Latvia", + pledge: 10000, + contribution: 10000, + }, + { + name: "Liechtenstein", + pledge: 1634623.49, + contribution: 1634623.49, + }, + { + name: "Luxembourg", + pledge: 81395478.42, + contribution: 72602631.95, + }, + { + name: "Malaysia", + pledge: 132216.49, + contribution: 132216.49, + }, + { + name: "Malta", + pledge: 479919.74, + contribution: 380565.55, + }, + { + name: "Mexico", + pledge: 200000, + contribution: 200000, + }, + { + name: "Monaco", + pledge: 970601.37, + contribution: 672538.78, + }, + { + name: "Namibia", + pledge: 4750000, + contribution: 4050000, + }, + { + name: "Netherlands", + pledge: 1667078517.4, + contribution: 1515473488.79, + }, + { + name: "New Zealand", + pledge: 12063563.09, + contribution: 11062090.32, + }, + { + name: "Niger", + pledge: 2000000, + contribution: 1238712.85, + }, + { + name: "Nigeria", + pledge: 94280914, + contribution: 38791305.11, + }, + { + name: "Norway", + pledge: 1597585463.72, + contribution: 1445550033.87, + }, + { + name: "Poland", + pledge: 150000, + contribution: 150000, + }, + { + name: "Portugal", + pledge: 18646007.53, + contribution: 17856141.65, + }, + { + name: "Qatar", + pledge: 110000000, + contribution: 70000000, + }, + { + name: "Romania", + pledge: 819457.78, + contribution: 819457.78, + }, + { + name: "Russian Federation", + pledge: 316999995.61, + contribution: 316999995.61, + }, + { + name: "Rwanda", + pledge: 6750000, + contribution: 3500000, + }, + { + name: "Saudi Arabia", + pledge: 162000000, + contribution: 136000000, + }, + { + name: "Senegal", + pledge: 2000000, + contribution: 1914594.06, + }, + { + name: "Singapore", + pledge: 1600000, + contribution: 1200000, + }, + { + name: "Slovenia", + pledge: 253869.34, + contribution: 253869.34, + }, + { + name: "South Africa", + pledge: 41301559.09, + contribution: 32601559.09, + }, + { + name: "Spain", + pledge: 1079015182.39, + contribution: 879228916.98, + }, + { + name: "Sweden", + pledge: 2088394444.35, + contribution: 1861339250.78, + }, + { + name: "Switzerland", + pledge: 381350853.24, + contribution: 336703360.76, + }, + { + name: "Tanzania (United Republic)", + pledge: 1000000, + contribution: 997809.1, + }, + { + name: "Thailand", + pledge: 26499941, + contribution: 24880356.91, + }, + { + name: "Togo", + pledge: 3500000, + contribution: 2000000, + }, + { + name: "Tunisia", + pledge: 2000000, + contribution: 2000000, + }, + { + name: "Uganda", + pledge: 8500000, + contribution: 4214817.98, + }, + { + name: "Ukraine", + pledge: 80000, + contribution: 80000, + }, + { + name: "Unitaid", + pledge: 38691956, + contribution: 38691956, + }, + { + name: "United Arab Emirates", + pledge: 55148072.57, + contribution: 55148072.57, + }, + { + name: "United Kingdom", + pledge: 8250967810.82, + contribution: 7674536242.55, + }, + { + name: "United States", + pledge: 31722465791.2, + contribution: 23985370962.2, + }, + { + name: "Zambia", + pledge: 8525000, + contribution: 775000, + }, + { + name: "Zimbabwe", + pledge: 4158462, + contribution: 3108462, + }, + { + name: "Armenia", + pledge: 15000000, + contribution: 0, + }, + { + name: "Cameroon", + pledge: 5020005, + contribution: 0, + }, + { + name: "Commitments to be personally secured by Bill Gates and Bono with the active support of France for the period 2020-2022", + pledge: 96724259.64, + contribution: 0, + }, + { + name: "Congo", + pledge: 5500000, + contribution: 0, + }, + { + name: "Equatorial Guinea", + pledge: 2205922.9, + contribution: 0, + }, + { + name: "Ghana", + pledge: 2000000, + contribution: 0, + }, + { + name: "Guinea", + pledge: 200000, + contribution: 0, + }, + { + name: "Madagascar", + pledge: 1000000, + contribution: 0, + }, + { + name: "Malawi", + pledge: 1500000, + contribution: 0, + }, + { + name: "Mali", + pledge: 551480.73, + contribution: 0, + }, + { + name: "Morocco", + pledge: 1283940.39, + contribution: 0, + }, + { + name: "Other Public", + pledge: 45799538.21, + contribution: 0, + }, + { + name: "Paraguay", + pledge: 50000, + contribution: 0, + }, + ], + }, + ]; + + export const TABLE_VARIATION_9_COLUMNS: ColumnDefinition[] = [ + { + title: "Years", + field: "name", + formatter: cellBGColorFormatter, + width: "70%", + }, + { + title: "Total Number", + field: "value", + formatter: financialFormatter, + width: "30%", + }, + ]; + + export const TABLE_VARIATION_9_DATA: { + [key: string]: TableDataItem; + }[] = [ + { + name: "2022", + _children: [ + { + name: "Malaria", + _children: [ + { + name: "Suspected malaria cases that received a parasitological test", + value: 321018609, + }, + { + name: "Mosquito nets distributed", + value: 219678398, + }, + { + name: "Cases of malaria treated", + value: 165297849, + }, + { + name: "Children who received seasonal malaria chemoprophylaxis", + value: 37103714, + }, + { + name: "Population covered by Indoor Residual Spraying", + value: 18516771, + }, + { + name: "Pregnant women attending antenatal clinics who received intermittent preventive treatment for malaria", + value: 14620922, + }, + { + name: "Households covered by Indoor Residual Spraying", + value: 8451212, + }, + { + name: "Confirmed malaria cases fully investigated and classified", + value: 78347, + }, + { + name: "Malaria foci fully investigated and classified", + value: 38227, + }, + ], + }, + { + name: "HIV/AIDS", + _children: [ + { + name: "Total number of HIV tests", + value: 53074640, + }, + { + name: "Pregnant women who know their HIV status", + value: 43943450, + }, + { + name: "People on antiretroviral therapy for HIV", + value: 24471293, + }, + { + name: "Young people aged 10-24 years reached by comprehensive sexuality education and/or life skills-based HIV education in or out of schools", + value: 4001648, + }, + { + name: "Adolescent girls and young women (AGYW) reached with HIV prevention programs services", + value: 3566170, + }, + { + name: "Sex workers reached with HIV prevention programs", + value: 2731926, + }, + { + name: "Pregnant women tested for syphilis", + value: 2647380, + }, + { + name: "Men who have sex with men reached with HIV prevention programs", + value: 2605902, + }, + { + name: "Number of HIV tests taken among men who have sex with men", + value: 2408640, + }, + { + name: "Number of HIV tests taken among other vulnerable population", + value: 2294467, + }, + { + name: "Number of HIV tests taken among sex workers", + value: 2198995, + }, + { + name: "Number of HIV tests taken among adolescents and youth", + value: 2127567, + }, + { + name: "Number of HIV tests taken among prisoners", + value: 1532177, + }, + { + name: "Number of HIV positive tests", + value: 1294853, + }, + { + name: "People who use drugs reached with HIV prevention programs", + value: 1083995, + }, + { + name: "Number of HIV tests taken among people who use drugs", + value: 1034576, + }, + { + name: "Other vulnerable populations reached with HIV prevention programs", + value: 836845, + }, + { + name: "Medical male circumcisions", + value: 830749, + }, + { + name: "HIV-positive pregnant women who received ART during pregnancy", + value: 710418, + }, + { + name: "Care and support services provided to people living with HIV", + value: 512946, + }, + { + name: "Infants tested for HIV", + value: 473415, + }, + { + name: "People newly diagnosed with HIV initiated on ART", + value: 418533, + }, + { + name: "Prisoners reached with HIV prevention programs", + value: 204054, + }, + { + name: "Sex workers who initiated oral antiretroviral pre-exposure prophylaxis", + value: 198592, + }, + { + name: "Transgender people reached with HIV prevention programs", + value: 159092, + }, + { + name: "Number of HIV tests taken among transgender population", + value: 149303, + }, + { + name: "Men who have sex with men who initiated oral antiretroviral pre-exposure prophylaxis", + value: 61811, + }, + { + name: "People receiving Opioid Substitution Therapy", + value: 60441, + }, + { + name: "People aged 10–24 years reached with HIV prevention programs", + value: 45863, + }, + { + name: "Adolescent girls and young women who initiated oral antiretroviral pre-exposure prophylaxis", + value: 44273, + }, + { + name: "People using pre-exposure prophylaxis", + value: 30167, + }, + { + name: "Transgender people who initiated oral antiretroviral pre-exposure prophylaxis", + value: 3134, + }, + ], + }, + { + name: "Tuberculosis", + _children: [ + { + name: "People with TB treated", + value: 6670422, + }, + { + name: "People in contact with TB patients received preventive therapy", + value: 1542219, + }, + { + name: "TB patients with drug-susceptibility testing result for at least Rifampicin", + value: 961896, + }, + { + name: "TB patients tested using WHO recommended rapid tests", + value: 875351, + }, + { + name: "Rifampicin- and/or multidrug-resistant TB cases that began second-line treatment", + value: 118075, + }, + { + name: "Care and support services provided to TB patients", + value: 93538, + }, + { + name: "Rifampicin- and/or multidrug-resistant TB cases notified", + value: 70621, + }, + { + name: "People with extensively drug-resistant TB on treatment", + value: 435, + }, + ], + }, + { + name: "HIV/TB", + _children: [ + { + name: "People living with HIV in care screened for TB", + value: 3989358, + }, + { + name: "TB patients with documented HIV status", + value: 2230611, + }, + { + name: "People living with HIV on ART who initiated TB preventive therapy", + value: 2202957, + }, + { + name: "HIV-positive TB patients on antiretroviral therapy during TB treatment", + value: 331349, + }, + ], + }, + { + name: "RSSH", + _children: [ + { + name: "Number of iCCM conditions treated among children under five in target areas", + value: 2239104, + }, + { + name: "Number of community based organizations that received a pre-defined package of training", + value: 109, + }, + ], + }, + ], + }, + { + name: "2021", + _children: [ + { + name: "Malaria", + _children: [ + { + name: "Suspected malaria cases that received a parasitological test", + value: 284147443, + }, + { + name: "Cases of malaria treated", + value: 149071542, + }, + { + name: "Mosquito nets distributed", + value: 133391767, + }, + { + name: "Children who received seasonal malaria chemoprophylaxis", + value: 34450468, + }, + { + name: "Population covered by Indoor Residual Spraying", + value: 17493091, + }, + { + name: "Pregnant women attending antenatal clinics who received intermittent preventive treatment for malaria", + value: 11343587, + }, + { + name: "Households covered by Indoor Residual Spraying", + value: 9122870, + }, + { + name: "Confirmed malaria cases fully investigated and classified", + value: 55869, + }, + { + name: "Malaria foci fully investigated and classified", + value: 24596, + }, + ], + }, + { + name: "HIV/AIDS", + _children: [ + { + name: "Total number of HIV tests", + value: 70745675, + }, + { + name: "Pregnant women who know their HIV status", + value: 41307334, + }, + { + name: "People on antiretroviral therapy for HIV", + value: 23079751, + }, + { + name: "Number of HIV tests taken among other vulnerable population", + value: 5248864, + }, + { + name: "Adolescent girls and young women (AGYW) reached with HIV prevention programs services", + value: 3677364, + }, + { + name: "Pregnant women tested for syphilis", + value: 2460258, + }, + { + name: "Young people aged 10-24 years reached by comprehensive sexuality education and/or life skills-based HIV education in or out of schools", + value: 2414726, + }, + { + name: "Sex workers reached with HIV prevention programs", + value: 2182512, + }, + { + name: "Men who have sex with men reached with HIV prevention programs", + value: 2077880, + }, + { + name: "Number of HIV tests taken among men who have sex with men", + value: 1901298, + }, + { + name: "Number of HIV tests taken among adolescents and youth", + value: 1751798, + }, + { + name: "Care and support services provided to people living with HIV", + value: 1721871, + }, + { + name: "Number of HIV tests taken among sex workers", + value: 1664975, + }, + { + name: "Number of HIV positive tests", + value: 1204828, + }, + { + name: "Medical male circumcisions", + value: 1113048, + }, + { + name: "People who use drugs reached with HIV prevention programs", + value: 1078713, + }, + { + name: "Number of HIV tests taken among people who use drugs", + value: 924477, + }, + { + name: "Number of HIV tests taken among prisoners", + value: 675537, + }, + { + name: "HIV-positive pregnant women who received ART during pregnancy", + value: 667105, + }, + { + name: "Other vulnerable populations reached with HIV prevention programs", + value: 591918, + }, + { + name: "People newly diagnosed with HIV initiated on ART", + value: 546787, + }, + { + name: "People on ART with suppressed viral load at 12 months (<1000 copies/ml)", + value: 422191, + }, + { + name: "Infants tested for HIV", + value: 421907, + }, + { + name: "Prisoners reached with HIV prevention programs", + value: 294546, + }, + { + name: "Number of HIV tests taken among transgender population", + value: 120956, + }, + { + name: "Transgender people reached with HIV prevention programs", + value: 118891, + }, + { + name: "People receiving Opioid Substitution Therapy", + value: 65086, + }, + { + name: "Men who have sex with men who initiated oral antiretroviral pre-exposure prophylaxis", + value: 40222, + }, + { + name: "Adolescent girls and young women who initiated oral antiretroviral pre-exposure prophylaxis", + value: 30110, + }, + { + name: "People aged 10–24 years reached with HIV prevention programs", + value: 18466, + }, + { + name: "Sex workers who initiated oral antiretroviral pre-exposure prophylaxis", + value: 15944, + }, + { + name: "People using pre-exposure prophylaxis", + value: 9322, + }, + { + name: "Transgender people who initiated oral antiretroviral pre-exposure prophylaxis", + value: 1739, + }, + ], + }, + { + name: "HIV/TB", + _children: [ + { + name: "People living with HIV in care screened for TB", + value: 5727859, + }, + { + name: "People living with HIV on ART who initiated TB preventive therapy", + value: 2935106, + }, + { + name: "TB patients with documented HIV status", + value: 2408534, + }, + { + name: "HIV-positive TB patients on antiretroviral therapy during TB treatment", + value: 286992, + }, + ], + }, + { + name: "Tuberculosis", + _children: [ + { + name: "People with TB treated", + value: 5288136, + }, + { + name: "TB patients with drug-susceptibility testing result for at least Rifampicin", + value: 1277033, + }, + { + name: "TB patients tested using WHO recommended rapid tests", + value: 505495, + }, + { + name: "People in contact with TB patients received preventive therapy", + value: 399973, + }, + { + name: "Rifampicin- and/or multidrug-resistant TB cases that began second-line treatment", + value: 108706, + }, + { + name: "Rifampicin- and/or multidrug-resistant TB cases notified", + value: 88145, + }, + { + name: "Care and support services provided to TB patients", + value: 2047, + }, + { + name: "People with extensively drug-resistant TB on treatment", + value: 1634, + }, + ], + }, + { + name: "RSSH", + _children: [ + { + name: "Number of iCCM conditions treated among children under five in target areas", + value: 1688123, + }, + ], + }, + ], + }, + { + name: "2020", + _children: [ + { + name: "Malaria", + _children: [ + { + name: "Suspected malaria cases that received a parasitological test", + value: 261406547, + }, + { + name: "Mosquito nets distributed", + value: 202005157, + }, + { + name: "Cases of malaria treated", + value: 137134813, + }, + { + name: "Children who received seasonal malaria chemoprophylaxis", + value: 26683289, + }, + { + name: "Population covered by Indoor Residual Spraying", + value: 16926932, + }, + { + name: "Pregnant women attending antenatal clinics who received intermittent preventive treatment for malaria", + value: 11534554, + }, + { + name: "Households covered by Indoor Residual Spraying", + value: 10133803, + }, + { + name: "Confirmed malaria cases fully investigated and classified", + value: 52043, + }, + { + name: "Malaria foci fully investigated and classified", + value: 7683, + }, + ], + }, + { + name: "HIV/AIDS", + _children: [ + { + name: "Total number of HIV tests", + value: 102545818, + }, + { + name: "Pregnant women who know their HIV status", + value: 43725693, + }, + { + name: "People on antiretroviral therapy for HIV", + value: 21877303, + }, + { + name: "People on ART with suppressed viral load at 12 months (<1000 copies/ml)", + value: 2464038, + }, + { + name: "Sex workers reached with HIV prevention programs", + value: 1923489, + }, + { + name: "Adolescent girls and young women (AGYW) reached with HIV prevention programs services", + value: 1707719, + }, + { + name: "Men who have sex with men reached with HIV prevention programs", + value: 1542769, + }, + { + name: "Care and support services provided to people living with HIV", + value: 1406570, + }, + { + name: "Number of HIV tests taken among sex workers", + value: 1288927, + }, + { + name: "Number of HIV tests taken among men who have sex with men", + value: 1284819, + }, + { + name: "Medical male circumcisions", + value: 1166613, + }, + { + name: "Other vulnerable populations reached with HIV prevention programs", + value: 1008861, + }, + { + name: "People who use drugs reached with HIV prevention programs", + value: 892215, + }, + { + name: "Number of HIV tests taken among people who use drugs", + value: 769221, + }, + { + name: "Number of HIV tests taken among other vulnerable population", + value: 717891, + }, + { + name: "Number of HIV tests taken among adolescents and youth", + value: 705739, + }, + { + name: "HIV-positive pregnant women who received ART during pregnancy", + value: 686292, + }, + { + name: "Young people aged 10-24 years reached by comprehensive sexuality education and/or life skills-based HIV education in or out of schools", + value: 658888, + }, + { + name: "Pregnant women tested for syphilis", + value: 624184, + }, + { + name: "Number of HIV tests taken among prisoners", + value: 572856, + }, + { + name: "People aged 10–24 years reached with HIV prevention programs", + value: 541444, + }, + { + name: "Infants tested for HIV", + value: 418342, + }, + { + name: "Transgender people reached with HIV prevention programs", + value: 101552, + }, + { + name: "People receiving Opioid Substitution Therapy", + value: 92227, + }, + { + name: "Number of HIV tests taken among transgender population", + value: 78399, + }, + { + name: "Prisoners reached with HIV prevention programs", + value: 50729, + }, + { + name: "People using pre-exposure prophylaxis", + value: 18907, + }, + { + name: "Men who have sex with men who initiated oral antiretroviral pre-exposure prophylaxis", + value: 12209, + }, + { + name: "Sex workers who initiated oral antiretroviral pre-exposure prophylaxis", + value: 11358, + }, + { + name: "Adolescent girls and young women who initiated oral antiretroviral pre-exposure prophylaxis", + value: 8938, + }, + { + name: "People newly diagnosed with HIV initiated on ART", + value: 121, + }, + ], + }, + { + name: "HIV/TB", + _children: [ + { + name: "People living with HIV in care screened for TB", + value: 18047013, + }, + { + name: "People living with HIV on ART who initiated TB preventive therapy", + value: 4404205, + }, + { + name: "TB patients with documented HIV status", + value: 3004544, + }, + { + name: "HIV-positive TB patients on antiretroviral therapy during TB treatment", + value: 272543, + }, + ], + }, + { + name: "Tuberculosis", + _children: [ + { + name: "People with TB treated", + value: 4692587, + }, + { + name: "TB patients with drug-susceptibility testing result for at least Rifampicin", + value: 1738576, + }, + { + name: "TB patients tested using WHO recommended rapid tests", + value: 239464, + }, + { + name: "People in contact with TB patients received preventive therapy", + value: 194166, + }, + { + name: "Rifampicin- and/or multidrug-resistant TB cases notified", + value: 110586, + }, + { + name: "Rifampicin- and/or multidrug-resistant TB cases that began second-line treatment", + value: 100406, + }, + { + name: "Care and support services provided to TB patients", + value: 38802, + }, + { + name: "People with extensively drug-resistant TB on treatment", + value: 3821, + }, + ], + }, + ], + }, + { + name: "2019", + _children: [ + { + name: "Malaria", + _children: [ + { + name: "Suspected malaria cases that received a parasitological test", + value: 258888396, + }, + { + name: "Mosquito nets distributed", + value: 161677120, + }, + { + name: "Cases of malaria treated", + value: 138070353, + }, + { + name: "Population covered by Indoor Residual Spraying", + value: 15251640, + }, + { + name: "Children who received seasonal malaria chemoprophylaxis", + value: 14693040, + }, + { + name: "Pregnant women attending antenatal clinics who received intermittent preventive treatment for malaria", + value: 11432952, + }, + { + name: "Households covered by Indoor Residual Spraying", + value: 9137467, + }, + { + name: "Confirmed malaria cases fully investigated and classified", + value: 33765, + }, + { + name: "Malaria foci fully investigated and classified", + value: 5972, + }, + ], + }, + { + name: "HIV/AIDS", + _children: [ + { + name: "Total number of HIV tests", + value: 127035654, + }, + { + name: "Pregnant women who know their HIV status", + value: 45249969, + }, + { + name: "People on antiretroviral therapy for HIV", + value: 20085609, + }, + { + name: "People on ART with suppressed viral load at 12 months (<1000 copies/ml)", + value: 2430120, + }, + { + name: "Sex workers reached with HIV prevention programs", + value: 1921920, + }, + { + name: "Men who have sex with men reached with HIV prevention programs", + value: 1770721, + }, + { + name: "Care and support services provided to people living with HIV", + value: 1764761, + }, + { + name: "Adolescent girls and young women (AGYW) reached with HIV prevention programs services", + value: 1512424, + }, + { + name: "Number of HIV tests taken among men who have sex with men", + value: 1434511, + }, + { + name: "Young people aged 10-24 years reached by comprehensive sexuality education and/or life skills-based HIV education in or out of schools", + value: 1425760, + }, + { + name: "Other vulnerable populations reached with HIV prevention programs", + value: 1371473, + }, + { + name: "Medical male circumcisions", + value: 1277911, + }, + { + name: "Number of HIV tests taken among sex workers", + value: 1277099, + }, + { + name: "Number of HIV tests taken among other vulnerable population", + value: 923244, + }, + { + name: "People who use drugs reached with HIV prevention programs", + value: 852952, + }, + { + name: "Number of HIV tests taken among people who use drugs", + value: 774400, + }, + { + name: "Number of HIV tests taken among prisoners", + value: 742287, + }, + { + name: "HIV-positive pregnant women who received ART during pregnancy", + value: 718501, + }, + { + name: "Number of HIV tests taken among adolescents and youth", + value: 715755, + }, + { + name: "Pregnant women tested for syphilis", + value: 600614, + }, + { + name: "Infants tested for HIV", + value: 435512, + }, + { + name: "People aged 10–24 years reached with HIV prevention programs", + value: 388083, + }, + { + name: "Transgender people reached with HIV prevention programs", + value: 136810, + }, + { + name: "Number of HIV tests taken among transgender population", + value: 106464, + }, + { + name: "People receiving Opioid Substitution Therapy", + value: 82919, + }, + { + name: "Prisoners reached with HIV prevention programs", + value: 33597, + }, + { + name: "Men who have sex with men who initiated oral antiretroviral pre-exposure prophylaxis", + value: 12518, + }, + { + name: "People using pre-exposure prophylaxis", + value: 7645, + }, + { + name: "Sex workers who initiated oral antiretroviral pre-exposure prophylaxis", + value: 6092, + }, + { + name: "People newly diagnosed with HIV initiated on ART", + value: 231, + }, + ], + }, + { + name: "HIV/TB", + _children: [ + { + name: "People living with HIV in care screened for TB", + value: 14289931, + }, + { + name: "People living with HIV on ART who initiated TB preventive therapy", + value: 3619367, + }, + { + name: "TB patients with documented HIV status", + value: 3412792, + }, + { + name: "HIV-positive TB patients on antiretroviral therapy during TB treatment", + value: 321354, + }, + ], + }, + { + name: "Tuberculosis", + _children: [ + { + name: "People with TB treated", + value: 5771298, + }, + { + name: "TB patients with drug-susceptibility testing result for at least Rifampicin", + value: 1706570, + }, + { + name: "TB patients tested using WHO recommended rapid tests", + value: 244005, + }, + { + name: "People in contact with TB patients received preventive therapy", + value: 170621, + }, + { + name: "Rifampicin- and/or multidrug-resistant TB cases notified", + value: 131542, + }, + { + name: "Rifampicin- and/or multidrug-resistant TB cases that began second-line treatment", + value: 125033, + }, + { + name: "Care and support services provided to TB patients", + value: 29889, + }, + { + name: "People with extensively drug-resistant TB on treatment", + value: 6071, + }, + ], + }, + ], + }, + { + name: "2018", + _children: [ + { + name: "Malaria", + _children: [ + { + name: "Suspected malaria cases that received a parasitological test", + value: 226498673, + }, + { + name: "Mosquito nets distributed", + value: 152867767, + }, + { + name: "Cases of malaria treated", + value: 114435433, + }, + { + name: "Population covered by Indoor Residual Spraying", + value: 12451968, + }, + { + name: "Children who received seasonal malaria chemoprophylaxis", + value: 10672227, + }, + { + name: "Pregnant women attending antenatal clinics who received intermittent preventive treatment for malaria", + value: 9535620, + }, + { + name: "Households covered by Indoor Residual Spraying", + value: 7695951, + }, + { + name: "People covered by LLINs distributed", + value: 4252756, + }, + { + name: "Confirmed malaria cases fully investigated and classified", + value: 78003, + }, + { + name: "Malaria foci fully investigated and classified", + value: 7380, + }, + ], + }, + { + name: "HIV/AIDS", + _children: [ + { + name: "Total number of HIV tests", + value: 125429887, + }, + { + name: "Pregnant women who know their HIV status", + value: 34997474, + }, + { + name: "People on antiretroviral therapy for HIV", + value: 18718588, + }, + { + name: "Other vulnerable populations reached with HIV prevention programs", + value: 1802944, + }, + { + name: "Care and support services provided to people living with HIV", + value: 1652756, + }, + { + name: "Sex workers reached with HIV prevention programs", + value: 1630218, + }, + { + name: "Men who have sex with men reached with HIV prevention programs", + value: 1564646, + }, + { + name: "Medical male circumcisions", + value: 1487169, + }, + { + name: "People on ART with suppressed viral load at 12 months (<1000 copies/ml)", + value: 1454486, + }, + { + name: "Number of HIV tests taken among men who have sex with men", + value: 1197140, + }, + { + name: "Number of HIV tests taken among sex workers", + value: 1018821, + }, + { + name: "Young people aged 10-24 years reached by comprehensive sexuality education and/or life skills-based HIV education in or out of schools", + value: 991049, + }, + { + name: "Number of HIV tests taken among other vulnerable population", + value: 876567, + }, + { + name: "Number of HIV tests taken among people who use drugs", + value: 772029, + }, + { + name: "People who use drugs reached with HIV prevention programs", + value: 751632, + }, + { + name: "HIV-positive pregnant women who received ART during pregnancy", + value: 713587, + }, + { + name: "Pregnant women tested for syphilis", + value: 636853, + }, + { + name: "Number of HIV tests taken among adolescents and youth", + value: 490672, + }, + { + name: "Number of HIV tests taken among prisoners", + value: 454625, + }, + { + name: "Infants tested for HIV", + value: 431574, + }, + { + name: "Adolescent girls and young women (AGYW) reached with HIV prevention programs services", + value: 366532, + }, + { + name: "People aged 10–24 years reached with HIV prevention programs", + value: 321279, + }, + { + name: "Transgender people reached with HIV prevention programs", + value: 123876, + }, + { + name: "Targeted population reached reached with standardized HIV prevention interventions", + value: 92350, + }, + { + name: "Number of HIV tests taken among transgender population", + value: 87868, + }, + { + name: "Prisoners reached with HIV prevention programs", + value: 43556, + }, + { + name: "People receiving Opioid Substitution Therapy", + value: 31700, + }, + { + name: "Men who have sex with men who initiated oral antiretroviral pre-exposure prophylaxis", + value: 3693, + }, + { + name: "Sex workers who initiated oral antiretroviral pre-exposure prophylaxis", + value: 2887, + }, + { + name: "People newly diagnosed with HIV initiated on ART", + value: 261, + }, + ], + }, + { + name: "HIV/TB", + _children: [ + { + name: "People living with HIV in care screened for TB", + value: 14219389, + }, + { + name: "People living with HIV on ART who initiated TB preventive therapy", + value: 2262970, + }, + { + name: "TB patients with documented HIV status", + value: 2242036, + }, + { + name: "HIV-positive TB patients on antiretroviral therapy during TB treatment", + value: 342148, + }, + { + name: "HIV-positive TB patients on co-trimoxazole prophylaxis during treatment", + value: 1435, + }, + ], + }, + { + name: "Tuberculosis", + _children: [ + { + name: "People with TB treated", + value: 5240744, + }, + { + name: "TB patients with drug-susceptibility testing result for at least Rifampicin", + value: 816166, + }, + { + name: "TB patients tested using WHO recommended rapid tests", + value: 220584, + }, + { + name: "People in contact with TB patients received preventive therapy", + value: 138694, + }, + { + name: "Rifampicin- and/or multidrug-resistant TB cases that began second-line treatment", + value: 111737, + }, + { + name: "Rifampicin- and/or multidrug-resistant TB cases notified", + value: 110003, + }, + { + name: "Care and support services provided to TB patients", + value: 16854, + }, + { + name: "People with extensively drug-resistant TB on treatment", + value: 7446, + }, + ], + }, + ], + }, + { + name: "2017", + _children: [ + { + name: "Malaria", + _children: [ + { + name: "Suspected malaria cases that received a parasitological test", + value: 215730104, + }, + { + name: "People covered by LLINs distributed", + value: 209779093, + }, + { + name: "Mosquito nets distributed", + value: 179114637, + }, + { + name: "Cases of malaria treated", + value: 114556835, + }, + { + name: "Households covered by Indoor Residual Spraying", + value: 9888178, + }, + { + name: "Children who received seasonal malaria chemoprophylaxis", + value: 5647038, + }, + { + name: "Pregnant women attending antenatal clinics who received intermittent preventive treatment for malaria", + value: 5110485, + }, + { + name: "Population covered by Indoor Residual Spraying", + value: 4892853, + }, + { + name: "Confirmed malaria cases fully investigated and classified", + value: 70222, + }, + { + name: "Malaria foci fully investigated and classified", + value: 700, + }, + ], + }, + { + name: "HIV/AIDS", + _children: [ + { + name: "Total number of HIV tests", + value: 93629023, + }, + { + name: "Pregnant women who know their HIV status", + value: 29360695, + }, + { + name: "People on antiretroviral therapy for HIV", + value: 17543868, + }, + { + name: "Care and support services provided to people living with HIV", + value: 2887555, + }, + { + name: "Other vulnerable populations reached with HIV prevention programs", + value: 2226719, + }, + { + name: "Sex workers reached with HIV prevention programs", + value: 2036026, + }, + { + name: "Men who have sex with men reached with HIV prevention programs", + value: 1854489, + }, + { + name: "Number of HIV tests taken among other vulnerable population", + value: 1611442, + }, + { + name: "People aged 10–24 years reached with HIV prevention programs", + value: 1424078, + }, + { + name: "Number of HIV tests taken among sex workers", + value: 1213334, + }, + { + name: "Young people aged 10-24 years reached by comprehensive sexuality education and/or life skills-based HIV education in or out of schools", + value: 1136085, + }, + { + name: "Number of HIV tests taken among men who have sex with men", + value: 1056351, + }, + { + name: "Medical male circumcisions", + value: 988904, + }, + { + name: "People on ART with suppressed viral load at 12 months (<1000 copies/ml)", + value: 882048, + }, + { + name: "People who use drugs reached with HIV prevention programs", + value: 799182, + }, + { + name: "HIV-positive pregnant women who received ART during pregnancy", + value: 710495, + }, + { + name: "Pregnant women tested for syphilis", + value: 606113, + }, + { + name: "Targeted population reached reached with standardized HIV prevention interventions", + value: 501627, + }, + { + name: "Number of HIV tests taken among people who use drugs", + value: 501527, + }, + { + name: "Number of HIV tests taken among adolescents and youth", + value: 466591, + }, + { + name: "Infants tested for HIV", + value: 427105, + }, + { + name: "Prisoners reached with HIV prevention programs", + value: 190312, + }, + { + name: "Transgender people reached with HIV prevention programs", + value: 117277, + }, + { + name: "People receiving Opioid Substitution Therapy", + value: 88391, + }, + { + name: "Number of HIV tests taken among transgender population", + value: 74653, + }, + { + name: "Number of HIV tests taken among prisoners", + value: 64600, + }, + { + name: "Adolescent girls and young women (AGYW) reached with HIV prevention programs services", + value: 28354, + }, + { + name: "People newly diagnosed with HIV initiated on ART", + value: 23, + }, + ], + }, + { + name: "HIV/TB", + _children: [ + { + name: "People living with HIV in care screened for TB", + value: 14013627, + }, + { + name: "TB patients with documented HIV status", + value: 2203724, + }, + { + name: "People living with HIV on ART who initiated TB preventive therapy", + value: 1021833, + }, + { + name: "HIV-positive TB patients on antiretroviral therapy during TB treatment", + value: 350728, + }, + { + name: "HIV-positive TB patients on co-trimoxazole prophylaxis during treatment", + value: 2176, + }, + ], + }, + { + name: "Tuberculosis", + _children: [ + { + name: "People with TB treated", + value: 5040008, + }, + { + name: "Rifampicin- and/or multidrug-resistant TB cases that began second-line treatment", + value: 103557, + }, + { + name: "People in contact with TB patients received preventive therapy", + value: 98222, + }, + { + name: "Rifampicin- and/or multidrug-resistant TB cases notified", + value: 87296, + }, + { + name: "TB patients with drug-susceptibility testing result for at least Rifampicin", + value: 58522, + }, + { + name: "TB patients tested using WHO recommended rapid tests", + value: 21391, + }, + { + name: "Care and support services provided to TB patients", + value: 16945, + }, + { + name: "People with extensively drug-resistant TB on treatment", + value: 3312, + }, + ], + }, + ], + }, + ]; + + export const TABLE_VARIATION_10_COLUMNS: ColumnDefinition[] = [ + { + title: "Geography", + field: "name", + formatter: cellBGColorFormatter, + minWidth: 250, + frozen: true, + }, + { + title: "2023", + field: "2023", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2022", + field: "2022", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2021", + field: "2021", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2020", + field: "2020", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2019", + field: "2019", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2018", + field: "2018", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2017", + field: "2017", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2016", + field: "2016", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2015", + field: "2015", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2014", + field: "2014", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2013", + field: "2013", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2012", + field: "2012", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2011", + field: "2011", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2010", + field: "2010", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2009", + field: "2009", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2008", + field: "2008", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2007", + field: "2007", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2006", + field: "2006", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2005", + field: "2005", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2004", + field: "2004", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + { + title: "2003", + field: "2003", + formatter: cellBGColorFormatter, + maxWidth: 70, + }, + ]; + + export const TABLE_VARIATION_10_DATA: { + [key: string]: TableDataItem; + }[] = [ + { + name: "Algeria", + _children: [ + { + name: "Income Level", + 2023: "Low Income", + 2022: "Low Income", + 2021: "Low Income", + 2020: "Low Income", + 2019: "Low Income", + 2018: "Low Income", + 2017: "Low Income", + 2016: "Low Income", + 2015: "Low Income", + 2014: "Low Income", + 2013: "Low Income", + 2012: "Low Income", + 2011: "Low Income", + 2010: "Low Income", + }, + { + name: "HIV", + _children: [ + { + name: "Disease Burden", + 2023: "Low", + 2022: "Low", + 2021: "Low", + 2020: "Low", + 2019: "Low", + 2018: "Low", + 2017: "Low", + 2016: "Low", + 2015: "Low", + 2014: "Low", + 2013: "Low", + 2012: "Low", + 2011: "Low", + 2010: "Low", + }, + { + name: "Eligibility", + 2023: "Eligible", + 2022: "Eligible", + 2021: "Eligible", + 2020: "Eligible", + 2019: "Eligible", + 2018: "Eligible", + 2017: "Eligible", + 2016: "Eligible", + 2015: "Eligible", + 2014: "Eligible", + 2013: "Eligible", + 2012: "Eligible", + 2011: "Eligible", + 2010: "Eligible", + }, + ], + }, + { + name: "Malaria", + _children: [ + { + name: "Disease Burden", + 2023: "Low", + 2022: "Low", + 2021: "Low", + 2020: "Low", + 2019: "Low", + 2018: "Low", + 2017: "Low", + 2016: "Low", + 2015: "Low", + 2014: "Low", + 2013: "Low", + 2012: "Low", + 2011: "Low", + 2010: "Low", + }, + { + name: "Eligibility", + 2023: "Eligible", + 2022: "Eligible", + 2021: "Eligible", + 2020: "Eligible", + 2019: "Eligible", + 2018: "Eligible", + 2017: "Eligible", + 2016: "Eligible", + 2015: "Eligible", + 2014: "Eligible", + 2013: "Eligible", + 2012: "Eligible", + 2011: "Eligible", + 2010: "Eligible", + }, + ], + }, + { + name: "Tuberculosis", + _children: [ + { + name: "Disease Burden", + 2023: "Low", + 2022: "Low", + 2021: "Low", + 2020: "Low", + 2019: "Low", + 2018: "Low", + 2017: "Low", + 2016: "Low", + 2015: "Low", + 2014: "Low", + 2013: "Low", + 2012: "Low", + 2011: "Low", + 2010: "Low", + }, + { + name: "Eligibility", + 2023: "Eligible", + 2022: "Eligible", + 2021: "Eligible", + 2020: "Eligible", + 2019: "Eligible", + 2018: "Eligible", + 2017: "Eligible", + 2016: "Eligible", + 2015: "Eligible", + 2014: "Eligible", + 2013: "Eligible", + 2012: "Eligible", + 2011: "Eligible", + 2010: "Eligible", + }, + ], + }, + ], + }, + { + name: "Afghanistan", + _children: [ + { + name: "Income Level", + 2023: "Low Income", + 2022: "Low Income", + 2021: "Low Income", + 2020: "Low Income", + 2019: "Low Income", + 2018: "Low Income", + 2017: "Low Income", + 2016: "Low Income", + 2015: "Low Income", + 2014: "Low Income", + 2013: "Low Income", + 2012: "Low Income", + 2011: "Low Income", + 2010: "Low Income", + }, + { + name: "HIV", + _children: [ + { + name: "Disease Burden", + 2023: "Low", + 2022: "Low", + 2021: "Low", + 2020: "Low", + 2019: "Low", + 2018: "Low", + 2017: "Low", + 2016: "Low", + 2015: "Low", + 2014: "Low", + 2013: "Low", + 2012: "Low", + 2011: "Low", + 2010: "Low", + }, + { + name: "Eligibility", + 2023: "Eligible", + 2022: "Eligible", + 2021: "Eligible", + 2020: "Eligible", + 2019: "Eligible", + 2018: "Eligible", + 2017: "Eligible", + 2016: "Eligible", + 2015: "Eligible", + 2014: "Eligible", + 2013: "Eligible", + 2012: "Eligible", + 2011: "Eligible", + 2010: "Eligible", + }, + ], + }, + { + name: "Malaria", + _children: [ + { + name: "Disease Burden", + 2023: "Low", + 2022: "Low", + 2021: "Low", + 2020: "Low", + 2019: "Low", + 2018: "Low", + 2017: "Low", + 2016: "Low", + 2015: "Low", + 2014: "Low", + 2013: "Low", + 2012: "Low", + 2011: "Low", + 2010: "Low", + }, + { + name: "Eligibility", + 2023: "Eligible", + 2022: "Eligible", + 2021: "Eligible", + 2020: "Eligible", + 2019: "Eligible", + 2018: "Eligible", + 2017: "Eligible", + 2016: "Eligible", + 2015: "Eligible", + 2014: "Eligible", + 2013: "Eligible", + 2012: "Eligible", + 2011: "Eligible", + 2010: "Eligible", + }, + ], + }, + { + name: "Tuberculosis", + _children: [ + { + name: "Disease Burden", + 2023: "Low", + 2022: "Low", + 2021: "Low", + 2020: "Low", + 2019: "Low", + 2018: "Low", + 2017: "Low", + 2016: "Low", + 2015: "Low", + 2014: "Low", + 2013: "Low", + 2012: "Low", + 2011: "Low", + 2010: "Low", + }, + { + name: "Eligibility", + 2023: "Eligible", + 2022: "Eligible", + 2021: "Eligible", + 2020: "Eligible", + 2019: "Eligible", + 2018: "Eligible", + 2017: "Eligible", + 2016: "Eligible", + 2015: "Eligible", + 2014: "Eligible", + 2013: "Eligible", + 2012: "Eligible", + 2011: "Eligible", + 2010: "Eligible", + }, + ], + }, + ], + }, + ]; + + export const TABLE_VARIATION_11_COLUMNS: ColumnDefinition[] = [ + { + title: "Geography", + field: "name", + formatter: cellBGColorFormatter, + width: "25%", + }, + { + title: "2017 - 2019 (US$)", + field: "2017-2019", + formatter: financialFormatter, + width: "20%", + }, + { + title: "2020 - 2022 (US$)", + field: "2020-2022", + formatter: financialFormatter, + width: "20%", + }, + { + title: "2023 - 2025 (US$)", + field: "2023-2025", + formatter: financialFormatter, + width: "20%", + }, + ]; + + export const TABLE_VARIATION_11_DATA: { + [key: string]: TableDataItem; + }[] = [ + { + name: "Afghanistan", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 9109250, + "2020-2022": 10474755, + "2023-2025": 7700026, + }, + { + name: "Malaria", + "2017-2019": 27112391, + "2020-2022": 24306935, + "2023-2025": 21624624, + }, + { + name: "Tuberculosis", + "2017-2019": 14964754, + "2020-2022": 23741050, + "2023-2025": 36213004, + }, + ], + "2017-2019": 51186395, + "2020-2022": 58522740, + "2023-2025": 65537654, + }, + { + name: "Albania", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 1138134, + }, + { + name: "Tuberculosis", + "2017-2019": 500000, + }, + ], + "2017-2019": 1638134, + }, + { + name: "Algeria", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 2312936, + }, + ], + "2017-2019": 2312936, + }, + { + name: "Angola", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 25110399, + "2020-2022": 38734092, + "2023-2025": 57007044, + }, + { + name: "Malaria", + "2017-2019": 26898141, + "2020-2022": 31047306, + "2023-2025": 47999848, + }, + { + name: "Tuberculosis", + "2017-2019": 6080400, + "2020-2022": 12818951, + "2023-2025": 20957852, + }, + ], + "2017-2019": 58088940, + "2020-2022": 82600349, + "2023-2025": 125964744, + }, + { + name: "Armenia", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 5282781, + "2020-2022": 6112987, + "2023-2025": 6550471, + }, + { + name: "Tuberculosis", + "2017-2019": 3138925, + "2020-2022": 3554194, + "2023-2025": 3081582, + }, + ], + "2017-2019": 8421706, + "2020-2022": 9667181, + "2023-2025": 9632053, + }, + { + name: "Azerbaijan", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 6068394, + "2020-2022": 9264124, + "2023-2025": 12736573, + }, + { + name: "Tuberculosis", + "2017-2019": 6529446, + "2020-2022": 7997084, + "2023-2025": 7083662, + }, + ], + "2017-2019": 12597840, + "2020-2022": 17261208, + "2023-2025": 19820235, + }, + { + name: "Bangladesh", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 18295447, + "2020-2022": 23000765, + "2023-2025": 25393719, + }, + { + name: "Malaria", + "2017-2019": 30000000, + "2020-2022": 20100000, + "2023-2025": 20091193, + }, + { + name: "Tuberculosis", + "2017-2019": 97935663, + "2020-2022": 115770502, + "2023-2025": 120811080, + }, + ], + "2017-2019": 146231110, + "2020-2022": 158871267, + "2023-2025": 166295992, + }, + { + name: "Belarus", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 7862511, + "2020-2022": 12221135, + "2023-2025": 15873645, + }, + { + name: "Tuberculosis", + "2017-2019": 7977941, + "2020-2022": 8618456, + "2023-2025": 6527509, + }, + ], + "2017-2019": 15840452, + "2020-2022": 20839591, + "2023-2025": 22401154, + }, + { + name: "Belize", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 1378449, + "2020-2022": 2999251, + "2023-2025": 3019115, + }, + { + name: "Tuberculosis", + "2017-2019": 537829, + }, + ], + "2017-2019": 1916278, + "2020-2022": 2999251, + "2023-2025": 3019115, + }, + { + name: "Benin", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 29962378, + "2020-2022": 39964530.97, + "2023-2025": 38839506.11, + }, + { + name: "Malaria", + "2017-2019": 36949701, + "2020-2022": 55880305.52, + "2023-2025": 56495280.98, + }, + { + name: "Tuberculosis", + "2017-2019": 8300000, + "2020-2022": 8304999.72, + "2023-2025": 7379606.73, + }, + ], + "2017-2019": 75212079, + "2020-2022": 104149836.21000001, + "2023-2025": 102714393.82000001, + }, + { + name: "Bhutan", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 1081903, + "2020-2022": 1054855, + "2023-2025": 1054796, + }, + { + name: "Malaria", + "2017-2019": 1432470, + "2020-2022": 1374353, + "2023-2025": 1373076, + }, + { + name: "Tuberculosis", + "2017-2019": 1074146, + "2020-2022": 1105609, + "2023-2025": 1101949, + }, + ], + "2017-2019": 3588519, + "2020-2022": 3534817, + "2023-2025": 3529821, + }, + { + name: "Bolivia (Plurinational State)", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 9175449, + "2020-2022": 10168010, + "2023-2025": 11225870, + }, + { + name: "Malaria", + "2017-2019": 3807860, + "2020-2022": 5555895, + "2023-2025": 4137260, + }, + { + name: "Tuberculosis", + "2017-2019": 5648949, + "2020-2022": 5436712, + "2023-2025": 4385978, + }, + ], + "2017-2019": 18632258, + "2020-2022": 21160617, + "2023-2025": 19749108, + }, + { + name: "Botswana", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 13950867, + "2020-2022": 19077252, + "2023-2025": 22878037, + }, + { + name: "Malaria", + "2017-2019": 1287500, + }, + { + name: "Tuberculosis", + "2017-2019": 1916471, + "2020-2022": 1437353, + "2023-2025": 1145473, + }, + ], + "2017-2019": 17154838, + "2020-2022": 20514605, + "2023-2025": 24023510, + }, + { + name: "Burkina Faso", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 36760555, + "2020-2022": 53239523.52, + "2023-2025": 45753995.09, + }, + { + name: "Malaria", + "2017-2019": 100133418, + "2020-2022": 155188286.6, + "2023-2025": 184847665.5, + }, + { + name: "Tuberculosis", + "2017-2019": 7000000, + "2020-2022": 13810708.65, + "2023-2025": 11892815.97, + }, + ], + "2017-2019": 143893973, + "2020-2022": 222238518.77, + "2023-2025": 242494476.56, + }, + { + name: "Burundi", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 29916039, + "2020-2022": 38883452, + "2023-2025": 38898974, + }, + { + name: "Malaria", + "2017-2019": 36656018, + "2020-2022": 70849593, + "2023-2025": 76098949, + }, + { + name: "Tuberculosis", + "2017-2019": 5728765, + "2020-2022": 9211130, + "2023-2025": 9235526, + }, + ], + "2017-2019": 72300822, + "2020-2022": 118944175, + "2023-2025": 124233449, + }, + { + name: "Cabo Verde", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 2544394, + "2020-2022": 2994952.85, + "2023-2025": 2994587.25, + }, + { + name: "Malaria", + "2017-2019": 1000000, + "2020-2022": 1227736.17, + "2023-2025": 1213937.43, + }, + { + name: "Tuberculosis", + "2017-2019": 500000, + "2020-2022": 500000, + "2023-2025": 500000.01, + }, + ], + "2017-2019": 4044394, + "2020-2022": 4722689.02, + "2023-2025": 4708524.6899999995, + }, + { + name: "Cambodia", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 41597533, + "2020-2022": 41595706, + "2023-2025": 41549020, + }, + { + name: "Tuberculosis", + "2017-2019": 13812665, + "2020-2022": 13948350, + "2023-2025": 14845335, + }, + { + name: "Malaria", + "2020-2022": 4000000, + }, + ], + "2017-2019": 55410198, + "2020-2022": 59544056, + "2023-2025": 56394355, + }, + { + name: "Cameroon", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 99897386, + "2020-2022": 149772367.5, + "2023-2025": 161358210.4, + }, + { + name: "Malaria", + "2017-2019": 73453444, + "2020-2022": 111670203.5, + "2023-2025": 109654277.7, + }, + { + name: "Tuberculosis", + "2017-2019": 11205425, + "2020-2022": 14293267.52, + "2023-2025": 17023814.6, + }, + ], + "2017-2019": 184556255, + "2020-2022": 275735838.52, + "2023-2025": 288036302.70000005, + }, + { + name: "Central African Republic", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 25946486, + "2020-2022": 67076163.9, + "2023-2025": 62096913.5, + }, + { + name: "Malaria", + "2017-2019": 30409209, + "2020-2022": 59295433.74, + "2023-2025": 66649142.12, + }, + { + name: "Tuberculosis", + "2017-2019": 6307078, + "2020-2022": 7976934.87, + "2023-2025": 11471064.35, + }, + ], + "2017-2019": 62662773, + "2020-2022": 134348532.51, + "2023-2025": 140217119.97, + }, + { + name: "Chad", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 35365870, + "2020-2022": 52435328.96, + "2023-2025": 55460580.51, + }, + { + name: "Malaria", + "2017-2019": 42205388, + "2020-2022": 67614008.71, + "2023-2025": 73459639.05, + }, + { + name: "Tuberculosis", + "2017-2019": 5704156, + "2020-2022": 9421077.59, + "2023-2025": 10000456.27, + }, + ], + "2017-2019": 83275414, + "2020-2022": 129470415.25999999, + "2023-2025": 138920675.83, + }, + { + name: "Colombia", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 10014581, + "2020-2022": 19457001, + "2023-2025": 22725404, + }, + ], + "2017-2019": 10014581, + "2020-2022": 19457001, + "2023-2025": 22725404, + }, + { + name: "Comoros", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 1335201, + "2020-2022": 1051469.7, + "2023-2025": 981611.55, + }, + { + name: "Malaria", + "2017-2019": 4588919, + "2020-2022": 5332344.34, + "2023-2025": 4953221.18, + }, + { + name: "Tuberculosis", + "2017-2019": 864857, + "2020-2022": 648642.81, + "2023-2025": 500000.01, + }, + ], + "2017-2019": 6788977, + "2020-2022": 7032456.85, + "2023-2025": 6434832.739999999, + }, + { + name: "Congo", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 12950236, + "2020-2022": 19362717.7, + "2023-2025": 29633112.46, + }, + { + name: "Malaria", + "2017-2019": 14208223, + "2020-2022": 34485172.89, + "2023-2025": 32941526.84, + }, + { + name: "Tuberculosis", + "2017-2019": 4165629, + "2020-2022": 6284440.52, + "2023-2025": 8642474.12, + }, + ], + "2017-2019": 31324088, + "2020-2022": 60132331.11, + "2023-2025": 71217113.42, + }, + { + name: "Congo (Democratic Republic)", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 122678456, + "2020-2022": 174093362, + "2023-2025": 189997416, + }, + { + name: "Malaria", + "2017-2019": 347651023, + "2020-2022": 393891463, + "2023-2025": 409812233, + }, + { + name: "Tuberculosis", + "2017-2019": 56656946, + "2020-2022": 76950962, + "2023-2025": 100844218, + }, + ], + "2017-2019": 526986425, + "2020-2022": 644935787, + "2023-2025": 700653867, + }, + { + name: "Costa Rica", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 2120098, + "2020-2022": 2200662, + "2023-2025": 2043734, + }, + ], + "2017-2019": 2120098, + "2020-2022": 2200662, + "2023-2025": 2043734, + }, + { + name: "Côte d'Ivoire", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 74113356, + "2020-2022": 90998409.53, + "2023-2025": 81898856.33, + }, + { + name: "Malaria", + "2017-2019": 124696572, + "2020-2022": 145592529.6, + "2023-2025": 130372340.8, + }, + { + name: "Tuberculosis", + "2017-2019": 13921205, + "2020-2022": 18726409.31, + "2023-2025": 16827783.79, + }, + ], + "2017-2019": 212731133, + "2020-2022": 255317348.44, + "2023-2025": 229098980.92, + }, + { + name: "Cuba", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 13253226, + "2020-2022": 17394860, + "2023-2025": 19709425, + }, + ], + "2017-2019": 13253226, + "2020-2022": 17394860, + "2023-2025": 19709425, + }, + { + name: "Djibouti", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 2910923, + "2020-2022": 3392778, + "2023-2025": 3394291, + }, + { + name: "Malaria", + "2017-2019": 2731792, + "2020-2022": 4048844, + "2023-2025": 4613836, + }, + { + name: "Tuberculosis", + "2017-2019": 2873205, + "2020-2022": 3454904, + "2023-2025": 3452257, + }, + ], + "2017-2019": 8515920, + "2020-2022": 10896526, + "2023-2025": 11460384, + }, + { + name: "Dominican Republic", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 15994956, + "2020-2022": 15995839, + "2023-2025": 16101778, + }, + { + name: "Tuberculosis", + "2017-2019": 4493840, + }, + ], + "2017-2019": 20488796, + "2020-2022": 15995839, + "2023-2025": 16101778, + }, + { + name: "Ecuador", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 5328421, + "2020-2022": 6005764, + "2023-2025": 7257254, + }, + ], + "2017-2019": 5328421, + "2020-2022": 6005764, + "2023-2025": 7257254, + }, + { + name: "Egypt", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 500093, + "2020-2022": 4203113, + "2023-2025": 6920930, + }, + { + name: "Tuberculosis", + "2017-2019": 1558243, + "2020-2022": 1067310, + "2023-2025": 2028039, + }, + ], + "2017-2019": 2058336, + "2020-2022": 5270423, + "2023-2025": 8948969, + }, + { + name: "El Salvador", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 14481816, + "2020-2022": 16074816, + "2023-2025": 14382672, + }, + { + name: "Tuberculosis", + "2017-2019": 4242741, + "2020-2022": 3182056, + "2023-2025": 2221745, + }, + ], + "2017-2019": 18724557, + "2020-2022": 19256872, + "2023-2025": 16604417, + }, + { + name: "Eritrea", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 17649811, + "2020-2022": 21312156, + "2023-2025": 21276487, + }, + { + name: "Malaria", + "2017-2019": 21554342, + "2020-2022": 18032288, + "2023-2025": 18023331, + }, + { + name: "Tuberculosis", + "2017-2019": 4462207, + "2020-2022": 5274977, + "2023-2025": 5303054, + }, + ], + "2017-2019": 43666360, + "2020-2022": 44619421, + "2023-2025": 44602872, + }, + { + name: "Eswatini", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 35310126, + "2020-2022": 39348102, + "2023-2025": 32901259, + }, + { + name: "Malaria", + "2017-2019": 2581055, + "2020-2022": 2635791, + "2023-2025": 2632098, + }, + { + name: "Tuberculosis", + "2017-2019": 11900000, + "2020-2022": 11925000, + "2023-2025": 9826179, + }, + ], + "2017-2019": 49791181, + "2020-2022": 53908893, + "2023-2025": 45359536, + }, + { + name: "Ethiopia", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 194160287.7, + "2020-2022": 278315505, + "2023-2025": 256910005, + }, + { + name: "Malaria", + "2017-2019": 129849218, + "2020-2022": 115344133, + "2023-2025": 116298685, + }, + { + name: "Tuberculosis", + "2017-2019": 51599380.89, + "2020-2022": 50893976, + "2023-2025": 54362193, + }, + ], + "2017-2019": 375608886.59, + "2020-2022": 444553614, + "2023-2025": 427570883, + }, + { + name: "Gabon", + _children: [ + { + name: "Tuberculosis", + "2017-2019": 1400000, + "2020-2022": 3029880.33, + "2023-2025": 2128464.03, + }, + { + name: "HIV/AIDS", + "2023-2025": 2634056.69, + }, + { + name: "Malaria", + "2023-2025": 3200000.07, + }, + ], + "2017-2019": 1400000, + "2020-2022": 3029880.33, + "2023-2025": 7962520.789999999, + }, + { + name: "Gambia", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 8665790, + "2020-2022": 17529962, + "2023-2025": 17044875, + }, + { + name: "Malaria", + "2017-2019": 15293792, + "2020-2022": 21962105, + "2023-2025": 20173996, + }, + { + name: "Tuberculosis", + "2017-2019": 4000000, + "2020-2022": 3750000, + "2023-2025": 3748296, + }, + ], + "2017-2019": 27959582, + "2020-2022": 43242067, + "2023-2025": 40967167, + }, + { + name: "Georgia", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 8412986, + "2020-2022": 12076771, + "2023-2025": 12156754, + }, + { + name: "Tuberculosis", + "2017-2019": 7175076, + "2020-2022": 5479715, + "2023-2025": 4066002, + }, + ], + "2017-2019": 15588062, + "2020-2022": 17556486, + "2023-2025": 16222756, + }, + { + name: "Ghana", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 66436395, + "2020-2022": 88833024, + "2023-2025": 95049043, + }, + { + name: "Malaria", + "2017-2019": 111531421, + "2020-2022": 119665794, + "2023-2025": 120781507, + }, + { + name: "Tuberculosis", + "2017-2019": 16012823, + "2020-2022": 18197239, + "2023-2025": 18217425, + }, + ], + "2017-2019": 193980639, + "2020-2022": 226696057, + "2023-2025": 234047975, + }, + { + name: "Guatemala", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 19773326, + "2020-2022": 25609594, + "2023-2025": 24972106, + }, + { + name: "Malaria", + "2017-2019": 6362560, + "2020-2022": 4771920, + "2023-2025": 3553464, + }, + { + name: "Tuberculosis", + "2017-2019": 5849483, + "2020-2022": 4387112, + "2023-2025": 3213134, + }, + ], + "2017-2019": 31985369, + "2020-2022": 34768626, + "2023-2025": 31738704, + }, + { + name: "Guinea", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 40598457, + "2020-2022": 53120571, + "2023-2025": 52493058, + }, + { + name: "Malaria", + "2017-2019": 56663302, + "2020-2022": 72670272, + "2023-2025": 81506179, + }, + { + name: "Tuberculosis", + "2017-2019": 6750605, + "2020-2022": 10433256, + "2023-2025": 11183674, + }, + ], + "2017-2019": 104012364, + "2020-2022": 136224099, + "2023-2025": 145182911, + }, + { + name: "Guinea-Bissau", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 10254189, + "2020-2022": 23126468.87, + "2023-2025": 21227603.07, + }, + { + name: "Malaria", + "2017-2019": 19720996, + "2020-2022": 27199255.5, + "2023-2025": 29581209.82, + }, + { + name: "Tuberculosis", + "2017-2019": 3256493, + "2020-2022": 6057020.9, + "2023-2025": 6129088.07, + }, + ], + "2017-2019": 33231678, + "2020-2022": 56382745.27, + "2023-2025": 56937900.96, + }, + { + name: "Guyana", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 3993335, + "2020-2022": 4816401, + "2023-2025": 4066316, + }, + { + name: "Malaria", + "2017-2019": 1612021, + "2020-2022": 1185793, + "2023-2025": 1882532, + }, + { + name: "Tuberculosis", + "2017-2019": 500000, + "2020-2022": 500000, + "2023-2025": 500000, + }, + ], + "2017-2019": 6105356, + "2020-2022": 6502194, + "2023-2025": 6448848, + }, + { + name: "Haiti", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 66216854, + "2020-2022": 72959840, + "2023-2025": 67995904, + }, + { + name: "Malaria", + "2017-2019": 21600000, + "2020-2022": 21000000, + "2023-2025": 17444350, + }, + { + name: "Tuberculosis", + "2017-2019": 17896075, + "2020-2022": 25422056, + "2023-2025": 25356124, + }, + ], + "2017-2019": 105712929, + "2020-2022": 119381896, + "2023-2025": 110796378, + }, + { + name: "Honduras", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 10004747, + "2020-2022": 11604842, + "2023-2025": 12473040, + }, + { + name: "Malaria", + "2017-2019": 5376572, + "2020-2022": 4032429, + "2023-2025": 3002794, + }, + { + name: "Tuberculosis", + "2017-2019": 2743600, + "2020-2022": 3057700, + "2023-2025": 2734923, + }, + ], + "2017-2019": 18124919, + "2020-2022": 18694971, + "2023-2025": 18210757, + }, + { + name: "India", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 155063624, + "2020-2022": 155000000, + "2023-2025": 155000000, + }, + { + name: "Malaria", + "2017-2019": 65006452, + "2020-2022": 65000000, + "2023-2025": 65000000, + }, + { + name: "Tuberculosis", + "2017-2019": 279929924, + "2020-2022": 280000000, + "2023-2025": 280000000, + }, + ], + "2017-2019": 500000000, + "2020-2022": 500000000, + "2023-2025": 500000000, + }, + { + name: "Indonesia", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 91934562, + "2020-2022": 102717937, + "2023-2025": 102736705, + }, + { + name: "Malaria", + "2017-2019": 53644906, + "2020-2022": 40233680, + "2023-2025": 35796157, + }, + { + name: "Tuberculosis", + "2017-2019": 102416537, + "2020-2022": 150456123, + "2023-2025": 156710720, + }, + ], + "2017-2019": 247996005, + "2020-2022": 293407740, + "2023-2025": 295243582, + }, + { + name: "Iran (Islamic Republic)", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 10687693, + "2020-2022": 11222078, + "2023-2025": 13983498, + }, + ], + "2017-2019": 10687693, + "2020-2022": 11222078, + "2023-2025": 13983498, + }, + { + name: "Jamaica", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 9930638, + "2020-2022": 11488614, + "2023-2025": 13523239, + }, + ], + "2017-2019": 9930638, + "2020-2022": 11488614, + "2023-2025": 13523239, + }, + { + name: "Kazakhstan", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 2714223, + "2020-2022": 5197500, + "2023-2025": 8086543, + }, + { + name: "Tuberculosis", + "2017-2019": 9840440, + "2020-2022": 10040997, + "2023-2025": 6759439, + }, + ], + "2017-2019": 12554663, + "2020-2022": 15238497, + "2023-2025": 14845982, + }, + { + name: "Kenya", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 246899292, + "2020-2022": 271649197, + "2023-2025": 252843015, + }, + { + name: "Malaria", + "2017-2019": 63225487, + "2020-2022": 86966676, + "2023-2025": 78578587, + }, + { + name: "Tuberculosis", + "2017-2019": 45507072, + "2020-2022": 56694297, + "2023-2025": 61567466, + }, + ], + "2017-2019": 355631851, + "2020-2022": 415310170, + "2023-2025": 392989068, + }, + { + name: "Korea (Democratic Peoples Republic)", + _children: [ + { + name: "Malaria", + "2017-2019": 8083880, + "2023-2025": 2836297, + }, + { + name: "Tuberculosis", + "2017-2019": 35979788, + "2023-2025": 23966904, + }, + ], + "2017-2019": 44063668, + "2023-2025": 26803201, + }, + { + name: "Kosovo", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 1769087, + "2020-2022": 1990223.35, + "2023-2025": 2261906.66, + }, + { + name: "Tuberculosis", + "2017-2019": 1714198, + "2020-2022": 1285649.37, + "2023-2025": 897654.27, + }, + ], + "2017-2019": 3483285, + "2020-2022": 3275872.72, + "2023-2025": 3159560.93, + }, + { + name: "Kyrgyzstan", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 11266362, + "2020-2022": 11491690, + "2023-2025": 13695211, + }, + { + name: "Tuberculosis", + "2017-2019": 12203652, + "2020-2022": 14944703, + "2023-2025": 13705547, + }, + ], + "2017-2019": 23470014, + "2020-2022": 26436393, + "2023-2025": 27400758, + }, + { + name: "Lao (Peoples Democratic Republic)", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 7374096, + "2020-2022": 6930536, + "2023-2025": 7449033, + }, + { + name: "Tuberculosis", + "2017-2019": 7393149, + "2020-2022": 8576696, + "2023-2025": 8088355, + }, + ], + "2017-2019": 14767245, + "2020-2022": 15507232, + "2023-2025": 15537388, + }, + { + name: "Lesotho", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 59413092, + "2020-2022": 60654854, + "2023-2025": 59981314, + }, + { + name: "Tuberculosis", + "2017-2019": 6934422, + "2020-2022": 6906608, + "2023-2025": 10018183, + }, + ], + "2017-2019": 66347514, + "2020-2022": 67561462, + "2023-2025": 69999497, + }, + { + name: "Liberia", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 24833450, + "2020-2022": 31095109, + "2023-2025": 35963003, + }, + { + name: "Malaria", + "2017-2019": 36268149, + "2020-2022": 39812759, + "2023-2025": 43533232, + }, + { + name: "Tuberculosis", + "2017-2019": 4646649, + "2020-2022": 6803878, + "2023-2025": 7811749, + }, + ], + "2017-2019": 65748248, + "2020-2022": 77711746, + "2023-2025": 87307984, + }, + { + name: "Madagascar", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 15485534, + "2020-2022": 20407983, + "2023-2025": 28371317, + }, + { + name: "Malaria", + "2017-2019": 52000000, + "2020-2022": 50370650, + "2023-2025": 72297135, + }, + { + name: "Tuberculosis", + "2017-2019": 9300000, + "2020-2022": 18045448, + "2023-2025": 25041766, + }, + ], + "2017-2019": 76785534, + "2020-2022": 88824081, + "2023-2025": 125710218, + }, + { + name: "Malawi", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 370804766, + "2020-2022": 393004813, + "2023-2025": 404987463, + }, + { + name: "Malaria", + "2017-2019": 70670374, + "2020-2022": 99984069, + "2023-2025": 92122352, + }, + { + name: "Tuberculosis", + "2017-2019": 9000000, + "2020-2022": 19950195, + "2023-2025": 20036530, + }, + ], + "2017-2019": 450475140, + "2020-2022": 512939077, + "2023-2025": 517146345, + }, + { + name: "Malaysia", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 4031592, + "2020-2022": 3964273, + "2023-2025": 3561223, + }, + ], + "2017-2019": 4031592, + "2020-2022": 3964273, + "2023-2025": 3561223, + }, + { + name: "Mali", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 51808127, + "2020-2022": 80322830.2, + "2023-2025": 72025245.57, + }, + { + name: "Malaria", + "2017-2019": 56000000, + "2020-2022": 90096463.91, + "2023-2025": 99207798.61, + }, + { + name: "Tuberculosis", + "2017-2019": 4854374, + "2020-2022": 8412422.65, + "2023-2025": 8395750.81, + }, + ], + "2017-2019": 112662501, + "2020-2022": 178831716.76000002, + "2023-2025": 179628794.99, + }, + { + name: "Mauritania", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 5760741, + "2020-2022": 5011845, + "2023-2025": 6370317, + }, + { + name: "Malaria", + "2017-2019": 8616815, + "2020-2022": 12523998, + "2023-2025": 12497049, + }, + { + name: "Tuberculosis", + "2017-2019": 1972385, + "2020-2022": 2055658, + "2023-2025": 2135286, + }, + ], + "2017-2019": 16349941, + "2020-2022": 19591501, + "2023-2025": 21002652, + }, + { + name: "Mauritius", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 2487917, + "2020-2022": 2265213, + "2023-2025": 2368481, + }, + ], + "2017-2019": 2487917, + "2020-2022": 2265213, + "2023-2025": 2368481, + }, + { + name: "Moldova", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 8018089, + "2020-2022": 9554788.51, + "2023-2025": 10350429.45, + }, + { + name: "Tuberculosis", + "2017-2019": 9821347, + "2020-2022": 10366010.04, + "2023-2025": 8037673.31, + }, + ], + "2017-2019": 17839436, + "2020-2022": 19920798.549999997, + "2023-2025": 18388102.759999998, + }, + { + name: "Mongolia", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 3044708, + "2020-2022": 2626061, + "2023-2025": 3410907, + }, + { + name: "Tuberculosis", + "2017-2019": 7224359, + "2020-2022": 10718269, + "2023-2025": 10683629, + }, + ], + "2017-2019": 10269067, + "2020-2022": 13344330, + "2023-2025": 14094536, + }, + { + name: "Montenegro", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 625000, + "2020-2022": 620000, + "2023-2025": 929108.81, + }, + ], + "2017-2019": 625000, + "2020-2022": 620000, + "2023-2025": 929108.81, + }, + { + name: "Morocco", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 13282255, + "2020-2022": 14547900.51, + "2023-2025": 16911747.04, + }, + { + name: "Tuberculosis", + "2017-2019": 2100000, + "2020-2022": 3031007.56, + "2023-2025": 4238513.76, + }, + ], + "2017-2019": 15382255, + "2020-2022": 17578908.07, + "2023-2025": 21150260.799999997, + }, + { + name: "Mozambique", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 289889134, + "2020-2022": 496359122, + "2023-2025": 506987373, + }, + { + name: "Malaria", + "2017-2019": 167870339, + "2020-2022": 200001211, + "2023-2025": 207998460, + }, + { + name: "Tuberculosis", + "2017-2019": 45122235, + "2020-2022": 55152849, + "2023-2025": 55556657, + }, + ], + "2017-2019": 502881708, + "2020-2022": 751513182, + "2023-2025": 770542490, + }, + { + name: "Multicountry Caribbean MCC", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 2350000, + "2020-2022": 2450000, + "2023-2025": 2191214, + }, + { + name: "Tuberculosis", + "2017-2019": 1200000, + "2020-2022": 1200000, + "2023-2025": 1200000, + }, + ], + "2017-2019": 3550000, + "2020-2022": 3650000, + "2023-2025": 3391214, + }, + { + name: "Multicountry East Asia and Pacific RAI", + _children: [ + { + name: "Malaria", + "2017-2019": 123393579, + "2020-2022": 106545184, + "2023-2025": 96294061, + }, + ], + "2017-2019": 123393579, + "2020-2022": 106545184, + "2023-2025": 96294061, + }, + { + name: "Multicountry Middle East MER", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 7780584, + "2020-2022": 11516412, + "2023-2025": 14962882, + }, + { + name: "Malaria", + "2017-2019": 14869781, + "2020-2022": 17997941, + "2023-2025": 20269782, + }, + { + name: "Tuberculosis", + "2017-2019": 13758003, + "2020-2022": 18075782, + "2023-2025": 19213805, + }, + ], + "2017-2019": 36408368, + "2020-2022": 47590135, + "2023-2025": 54446469, + }, + { + name: "Multicountry Western Pacific", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 5092793, + "2020-2022": 5169562, + "2023-2025": 6572889, + }, + { + name: "Malaria", + "2017-2019": 1572033, + "2020-2022": 2968368, + "2023-2025": 2461679, + }, + { + name: "Tuberculosis", + "2017-2019": 6275920, + "2020-2022": 5116912, + "2023-2025": 4765382, + }, + ], + "2017-2019": 12940746, + "2020-2022": 13254842, + "2023-2025": 13799950, + }, + { + name: "Myanmar", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 123102465, + "2020-2022": 122408561, + "2023-2025": 97456405, + }, + { + name: "Tuberculosis", + "2017-2019": 82947503, + "2020-2022": 93126255, + "2023-2025": 75453054, + }, + ], + "2017-2019": 206049968, + "2020-2022": 215534816, + "2023-2025": 172909459, + }, + { + name: "Namibia", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 29406863, + "2020-2022": 28300213, + "2023-2025": 23914632, + }, + { + name: "Malaria", + "2017-2019": 1823454, + "2020-2022": 3094835, + "2023-2025": 3093812, + }, + { + name: "Tuberculosis", + "2017-2019": 5876588, + "2020-2022": 6007441, + "2023-2025": 5744469, + }, + ], + "2017-2019": 37106905, + "2020-2022": 37402489, + "2023-2025": 32752913, + }, + { + name: "Nepal", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 21964144, + "2020-2022": 26926654, + "2023-2025": 29427095, + }, + { + name: "Malaria", + "2017-2019": 4208547, + "2020-2022": 4156410, + "2023-2025": 3095118, + }, + { + name: "Tuberculosis", + "2017-2019": 16138548, + "2020-2022": 20556048, + "2023-2025": 27108540, + }, + ], + "2017-2019": 42311239, + "2020-2022": 51639112, + "2023-2025": 59630753, + }, + { + name: "Nicaragua", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 8429981, + "2020-2022": 12457279, + "2023-2025": 12381024, + }, + { + name: "Malaria", + "2017-2019": 6435536, + "2020-2022": 6426652, + "2023-2025": 6284069, + }, + { + name: "Tuberculosis", + "2017-2019": 4129716, + "2020-2022": 3097287, + "2023-2025": 2162558, + }, + ], + "2017-2019": 18995233, + "2020-2022": 21981218, + "2023-2025": 20827651, + }, + { + name: "Niger", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 15032504, + "2020-2022": 15913473.78, + "2023-2025": 20505649.75, + }, + { + name: "Malaria", + "2017-2019": 56747651, + "2020-2022": 107446514.1, + "2023-2025": 120656502.5, + }, + { + name: "Tuberculosis", + "2017-2019": 12510177, + "2020-2022": 13597200.68, + "2023-2025": 8913152.71, + }, + ], + "2017-2019": 84290332, + "2020-2022": 136957188.56, + "2023-2025": 150075304.96, + }, + { + name: "Nigeria", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 239781871, + "2020-2022": 329107978, + "2023-2025": 361689416, + }, + { + name: "Malaria", + "2017-2019": 313409111, + "2020-2022": 417893727, + "2023-2025": 417695711, + }, + { + name: "Tuberculosis", + "2017-2019": 107495151, + "2020-2022": 143595962, + "2023-2025": 153771804, + }, + ], + "2017-2019": 660686133, + "2020-2022": 890597667, + "2023-2025": 933156931, + }, + { + name: "Pakistan", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 34956107, + "2020-2022": 71687227, + "2023-2025": 65446113, + }, + { + name: "Malaria", + "2017-2019": 39232878, + "2020-2022": 34424659, + "2023-2025": 34425895, + }, + { + name: "Tuberculosis", + "2017-2019": 130163215, + "2020-2022": 171981709, + "2023-2025": 181689888, + }, + ], + "2017-2019": 204352200, + "2020-2022": 278093595, + "2023-2025": 281561896, + }, + { + name: "Panama", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 1779385, + }, + { + name: "Tuberculosis", + "2017-2019": 906507, + }, + ], + "2017-2019": 2685892, + }, + { + name: "Papua New Guinea", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 8211639, + "2020-2022": 21065825, + "2023-2025": 20179277, + }, + { + name: "Malaria", + "2017-2019": 23563097, + "2020-2022": 37534289, + "2023-2025": 37440753, + }, + { + name: "Tuberculosis", + "2017-2019": 11364975, + "2020-2022": 19388755, + "2023-2025": 19437470, + }, + ], + "2017-2019": 43139711, + "2020-2022": 77988869, + "2023-2025": 77057500, + }, + { + name: "Paraguay", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 4432967, + "2020-2022": 6722401, + "2023-2025": 7028868, + }, + { + name: "Tuberculosis", + "2017-2019": 2915321, + }, + ], + "2017-2019": 7348288, + "2020-2022": 6722401, + "2023-2025": 7028868, + }, + { + name: "Peru", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 6264586, + "2020-2022": 9018643, + "2023-2025": 13970236, + }, + { + name: "Tuberculosis", + "2017-2019": 7199291, + "2020-2022": 10898534, + "2023-2025": 10860018, + }, + ], + "2017-2019": 13463877, + "2020-2022": 19917177, + "2023-2025": 24830254, + }, + { + name: "Philippines", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 8483242, + "2020-2022": 20338651, + "2023-2025": 25087000, + }, + { + name: "Malaria", + "2017-2019": 10662817, + "2020-2022": 7997113, + "2023-2025": 6953360, + }, + { + name: "Tuberculosis", + "2017-2019": 78543887, + "2020-2022": 119096167, + "2023-2025": 136020179, + }, + ], + "2017-2019": 97689946, + "2020-2022": 147431931, + "2023-2025": 168060539, + }, + { + name: "Romania", + _children: [ + { + name: "Tuberculosis", + "2017-2019": 4548280, + }, + ], + "2017-2019": 4548280, + }, + { + name: "Rwanda", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 154462907, + "2020-2022": 121349916, + "2023-2025": 109231273, + }, + { + name: "Malaria", + "2017-2019": 41460255, + "2020-2022": 54795191, + "2023-2025": 50034762, + }, + { + name: "Tuberculosis", + "2017-2019": 14154994, + "2020-2022": 14016245, + "2023-2025": 12848472, + }, + ], + "2017-2019": 210078156, + "2020-2022": 190161352, + "2023-2025": 172114507, + }, + { + name: "Sao Tome and Principe", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 899645, + "2020-2022": 1009680.69, + "2023-2025": 1008797.84, + }, + { + name: "Malaria", + "2017-2019": 3900000, + "2020-2022": 11006784.32, + "2023-2025": 10955334.58, + }, + { + name: "Tuberculosis", + "2017-2019": 911177, + "2020-2022": 883381.68, + "2023-2025": 886788.89, + }, + ], + "2017-2019": 5710822, + "2020-2022": 12899846.69, + "2023-2025": 12850921.31, + }, + { + name: "Senegal", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 24540785, + "2020-2022": 28542091.21, + "2023-2025": 31857932.18, + }, + { + name: "Malaria", + "2017-2019": 40804408, + "2020-2022": 36195010.2, + "2023-2025": 31041850.69, + }, + { + name: "Tuberculosis", + "2017-2019": 7568000, + "2020-2022": 12052625.6, + "2023-2025": 12935280.97, + }, + ], + "2017-2019": 72913193, + "2020-2022": 76789727.01, + "2023-2025": 75835063.84, + }, + { + name: "Serbia", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 1232579, + "2020-2022": 1663980.59, + "2023-2025": 2242340.84, + }, + ], + "2017-2019": 1232579, + "2020-2022": 1663980.59, + "2023-2025": 2242340.84, + }, + { + name: "Sierra Leone", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 40265850, + "2020-2022": 42675300, + "2023-2025": 38051061, + }, + { + name: "Malaria", + "2017-2019": 43960771, + "2020-2022": 68353985, + "2023-2025": 73235736, + }, + { + name: "Tuberculosis", + "2017-2019": 6698030, + "2020-2022": 15175737, + "2023-2025": 15157877, + }, + ], + "2017-2019": 90924651, + "2020-2022": 126205022, + "2023-2025": 126444674, + }, + { + name: "Solomon Islands", + _children: [ + { + name: "Malaria", + "2017-2019": 4852890, + "2020-2022": 8031136, + "2023-2025": 7236395, + }, + { + name: "Tuberculosis", + "2017-2019": 1251604, + "2020-2022": 1193480, + "2023-2025": 833300, + }, + ], + "2017-2019": 6104494, + "2020-2022": 9224616, + "2023-2025": 8069695, + }, + { + name: "Somalia", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 16004070, + "2020-2022": 21172635, + "2023-2025": 18723090, + }, + { + name: "Malaria", + "2017-2019": 30337699, + "2020-2022": 34438600, + "2023-2025": 35281750, + }, + { + name: "Tuberculosis", + "2017-2019": 22110931, + "2020-2022": 29018030, + "2023-2025": 29702178, + }, + ], + "2017-2019": 68452700, + "2020-2022": 84629265, + "2023-2025": 83707018, + }, + { + name: "South Africa", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 317721470, + "2020-2022": 491237860, + "2023-2025": 463598573, + }, + { + name: "Tuberculosis", + "2017-2019": 35599651, + "2020-2022": 45528766, + "2023-2025": 72441924, + }, + ], + "2017-2019": 353321121, + "2020-2022": 536766626, + "2023-2025": 536040497, + }, + { + name: "South Sudan", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 29015250, + "2020-2022": 58196898, + "2023-2025": 68125558, + }, + { + name: "Malaria", + "2017-2019": 48666045, + "2020-2022": 54669027, + "2023-2025": 59712409, + }, + { + name: "Tuberculosis", + "2017-2019": 9000000, + "2020-2022": 9000000, + "2023-2025": 14117233, + }, + ], + "2017-2019": 86681295, + "2020-2022": 121865925, + "2023-2025": 141955200, + }, + { + name: "Sri Lanka", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 6948047, + "2020-2022": 6387963, + "2023-2025": 6381149, + }, + { + name: "Malaria", + "2017-2019": 2500000, + }, + { + name: "Tuberculosis", + "2017-2019": 3024073, + "2020-2022": 3039336, + "2023-2025": 2969568, + }, + ], + "2017-2019": 12472120, + "2020-2022": 9427299, + "2023-2025": 9350717, + }, + { + name: "Sudan", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 18839720, + "2020-2022": 22106965, + "2023-2025": 19740899, + }, + { + name: "Malaria", + "2017-2019": 98522995, + "2020-2022": 110314123, + "2023-2025": 118116410, + }, + { + name: "Tuberculosis", + "2017-2019": 12262049, + "2020-2022": 13285731, + "2023-2025": 13382769, + }, + ], + "2017-2019": 129624764, + "2020-2022": 145706819, + "2023-2025": 151240078, + }, + { + name: "Suriname", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 810721, + "2020-2022": 2355648, + "2023-2025": 2371250, + }, + { + name: "Malaria", + "2017-2019": 2011482, + "2020-2022": 3292987, + "2023-2025": 3474724, + }, + { + name: "Tuberculosis", + "2017-2019": 989674, + }, + ], + "2017-2019": 3811877, + "2020-2022": 5648635, + "2023-2025": 5845974, + }, + { + name: "Tajikistan", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 12939544, + "2020-2022": 14362894, + "2023-2025": 15437432, + }, + { + name: "Tuberculosis", + "2017-2019": 9752657, + "2020-2022": 10754493, + "2023-2025": 10526715, + }, + ], + "2017-2019": 22692201, + "2020-2022": 25117387, + "2023-2025": 25964147, + }, + { + name: "Tanzania (United Republic)", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 408487081, + "2020-2022": 364840423, + "2023-2025": 370004151, + }, + { + name: "Malaria", + "2017-2019": 145258808, + "2020-2022": 179362012, + "2023-2025": 182910065, + }, + { + name: "Tuberculosis", + "2017-2019": 25849887, + "2020-2022": 43068093, + "2023-2025": 49963120, + }, + ], + "2017-2019": 579595776, + "2020-2022": 587270528, + "2023-2025": 602877336, + }, + { + name: "Thailand", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 24569150, + "2020-2022": 40573017, + "2023-2025": 48079625, + }, + { + name: "Tuberculosis", + "2017-2019": 13096509, + "2020-2022": 20075452, + "2023-2025": 20116930, + }, + ], + "2017-2019": 37665659, + "2020-2022": 60648469, + "2023-2025": 68196555, + }, + { + name: "Timor-Leste", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 2312598, + "2020-2022": 3357640, + "2023-2025": 3353220, + }, + { + name: "Malaria", + "2017-2019": 10969331, + "2020-2022": 7593719, + "2023-2025": 3913003, + }, + { + name: "Tuberculosis", + "2017-2019": 2494891, + "2020-2022": 4800000, + "2023-2025": 8328831, + }, + ], + "2017-2019": 15776820, + "2020-2022": 15751359, + "2023-2025": 15595054, + }, + { + name: "Togo", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 30858946, + "2020-2022": 44982023.93, + "2023-2025": 44518909.12, + }, + { + name: "Malaria", + "2017-2019": 31939623, + "2020-2022": 60172698.4, + "2023-2025": 63671327.84, + }, + { + name: "Tuberculosis", + "2017-2019": 1839749, + "2020-2022": 3879811.39, + "2023-2025": 3908933.03, + }, + ], + "2017-2019": 64638318, + "2020-2022": 109034533.72, + "2023-2025": 112099169.99000001, + }, + { + name: "Tunisia", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 4060055, + "2020-2022": 4798985, + }, + ], + "2017-2019": 4060055, + "2020-2022": 4798985, + }, + { + name: "Turkmenistan", + _children: [ + { + name: "Tuberculosis", + "2017-2019": 3956665, + "2020-2022": 5067499, + "2023-2025": 6238193, + }, + ], + "2017-2019": 3956665, + "2020-2022": 5067499, + "2023-2025": 6238193, + }, + { + name: "Uganda", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 255632244, + "2020-2022": 289203023, + "2023-2025": 288484740, + }, + { + name: "Malaria", + "2017-2019": 188322878, + "2020-2022": 260024950, + "2023-2025": 267250747, + }, + { + name: "Tuberculosis", + "2017-2019": 21101922, + "2020-2022": 29773958, + "2023-2025": 31392046, + }, + ], + "2017-2019": 465057044, + "2020-2022": 579001931, + "2023-2025": 587127533, + }, + { + name: "Ukraine", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 70836441, + "2020-2022": 70833698, + "2023-2025": 101299533, + }, + { + name: "Tuberculosis", + "2017-2019": 48646090, + "2020-2022": 48644568, + "2023-2025": 55864257, + }, + ], + "2017-2019": 119482531, + "2020-2022": 119478266, + "2023-2025": 157163790, + }, + { + name: "Uzbekistan", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 13928377, + "2020-2022": 17969088, + "2023-2025": 20902851, + }, + { + name: "Tuberculosis", + "2017-2019": 21640400, + "2020-2022": 26150623, + "2023-2025": 23258685, + }, + ], + "2017-2019": 35568777, + "2020-2022": 44119711, + "2023-2025": 44161536, + }, + { + name: "Viet Nam", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 56638006, + "2020-2022": 54996342, + "2023-2025": 54980054, + }, + { + name: "Tuberculosis", + "2017-2019": 47281094, + "2020-2022": 59771812, + "2023-2025": 59814002, + }, + ], + "2017-2019": 103919100, + "2020-2022": 114768154, + "2023-2025": 114794056, + }, + { + name: "Zambia", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 184377140, + "2020-2022": 233545183, + "2023-2025": 251027914, + }, + { + name: "Malaria", + "2017-2019": 69000000, + "2020-2022": 65131160, + "2023-2025": 77243020, + }, + { + name: "Tuberculosis", + "2017-2019": 10008862, + "2020-2022": 16568354, + "2023-2025": 21508410, + }, + ], + "2017-2019": 263386002, + "2020-2022": 315244697, + "2023-2025": 349779344, + }, + { + name: "Zanzibar", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 3992509, + "2020-2022": 4631020, + "2023-2025": 4209668, + }, + { + name: "Malaria", + "2017-2019": 5134807, + "2020-2022": 5185635, + "2023-2025": 5229004, + }, + { + name: "Tuberculosis", + "2017-2019": 1866654, + "2020-2022": 1399991, + "2023-2025": 1377491, + }, + ], + "2017-2019": 10993970, + "2020-2022": 11216646, + "2023-2025": 10816163, + }, + { + name: "Zimbabwe", + _children: [ + { + name: "HIV/AIDS", + "2017-2019": 406518928, + "2020-2022": 425034567, + "2023-2025": 432970984, + }, + { + name: "Malaria", + "2017-2019": 53685777, + "2020-2022": 51684333, + "2023-2025": 47975037, + }, + { + name: "Tuberculosis", + "2017-2019": 23775807, + "2020-2022": 23771855, + "2023-2025": 23797805, + }, + ], + "2017-2019": 483980512, + "2020-2022": 500490755, + "2023-2025": 504743826, + }, + { + name: "Russian Federation", + _children: [ + { + name: "HIV/AIDS", + "2020-2022": 10014430, + "2023-2025": 10010167, + }, + ], + "2020-2022": 10014430, + "2023-2025": 10010167, + }, + { + name: "Venezuela", + _children: [ + { + name: "Malaria", + "2020-2022": 19800000, + "2023-2025": 14744295, + }, + { + name: "HIV/AIDS", + "2023-2025": 18028173, + }, + { + name: "Tuberculosis", + "2023-2025": 3711817, + }, + ], + "2020-2022": 19800000, + "2023-2025": 36484285, + }, + { + name: "Equatorial Guinea", + _children: [ + { + name: "HIV/AIDS", + "2023-2025": 4161483.45, + }, + { + name: "Malaria", + "2023-2025": 2000000.05, + }, + ], + "2023-2025": 6161483.5, + }, + { + name: "Multicountry North Africa", + _children: [ + { + name: "HIV/AIDS", + "2023-2025": 9551333, + }, + ], + "2023-2025": 9551333, + }, + ]; + + export const TABLE_VARIATION_12_COLUMNS: ColumnDefinition[] = [ + { + title: "Components", + field: "components", + formatter: cellBGColorFormatter, + width: "20%", + }, + { + title: "Submission Date", + field: "submissionDate", + formatter: cellBGColorFormatter, + }, + { title: "Approach", field: "approach", formatter: cellBGColorFormatter }, + { title: "TRP Window", field: "trpWindow", formatter: cellBGColorFormatter }, + { + title: "TRP Outcome", + field: "trpOutcome", + formatter: cellBGColorFormatter, + }, + { + title: "Portfolio Categorization", + field: "portfolioCategorization", + formatter: cellBGColorFormatter, + }, + { + title: "Board Approval", + field: "boardApproval", + formatter: cellBGColorFormatter, + }, + { + title: "GAC Meeting", + field: "gacMeeting", + formatter: cellBGColorFormatter, + }, + { + title: "Starting date", + field: "startingDate", + formatter: cellBGColorFormatter, + }, + { + title: "Ending date", + field: "endingDate", + formatter: cellBGColorFormatter, + }, + { + title: "Principal Recipient", + field: "principalRecipient", + formatter: cellBGColorFormatter, + }, + ]; + + export const TABLE_VARIATION_12_DATA: { + [key: string]: TableDataItem; + }[] = [ + { + components: "Afghanistan", + _children: [ + { + components: "HIV", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Malaria", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Malaria", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Tuberculosis", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + ], + }, + { + components: "HIV", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Malaria", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Malaria", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Tuberculosis", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + ], + }, + ], + }, + { + components: "Albania", + _children: [ + { + components: "HIV", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Malaria", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Malaria", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Tuberculosis", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + ], + }, + { + components: "HIV", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Malaria", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Malaria", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Tuberculosis", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + ], + }, + ], + }, + { + components: "Algeria", + _children: [ + { + components: "HIV", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Malaria", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Malaria", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Tuberculosis", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + ], + }, + { + components: "HIV", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Malaria", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Malaria", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Tuberculosis", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + ], + }, + ], + }, + { + components: "Angola", + _children: [ + { + components: "HIV", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Malaria", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Malaria", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Tuberculosis", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + ], + }, + { + components: "HIV", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Malaria", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Malaria", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Tuberculosis", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + ], + }, + ], + }, + { + components: "Botswana", + _children: [ + { + components: "HIV", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Malaria", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Malaria", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Tuberculosis", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + ], + }, + { + components: "HIV", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Malaria", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Malaria", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Tuberculosis", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + ], + }, + ], + }, + { + components: "Ghana", + _children: [ + { + components: "HIV", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Malaria", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Malaria", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Tuberculosis", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + ], + }, + { + components: "HIV", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Malaria", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Malaria", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "HIV", + }, + ], + }, + { + components: "Tuberculosis", + submissionDate: "23 March 2023", + approach: "Program continuation", + trpWindow: "B2", + trpOutcome: "Grant making", + portfolioCategorization: "--", + boardApproval: "November 2023", + _children: [ + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH001", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + { + gacMeeting: "November 2022", + grant: "AFG-H-MOH002", + startingDate: "31-12-2023", + endingDate: "31-12-2025", + principalRecipient: "Private health ministry of Ghana", + component: "Tuberculosis", + }, + ], + }, + ], + }, + ]; + + export const TABLE_VARIATION_13_COLUMNS: ColumnDefinition[] = [ + { + title: "Components", + field: "component", + width: "25%", + formatter: cellBGColorFormatter, + }, + { + title: "Signed (US$)", + field: "signed", + width: "25%", + formatter: financialFormatter, + }, + { + title: "Committed (US$)", + field: "committed", + width: "25%", + formatter: financialFormatter, + }, + { + title: "Disbursed (US$)", + field: "disbursed", + width: "25%", + formatter: financialFormatter, + }, + ]; + + export const TABLE_VARIATION_13_DATA: { + [key: string]: TableDataItem; + }[] = [ + { + component: "HIV/AIDS", + grants: 593, + signed: 29276661067.43, + committed: 27230518396.57, + disbursed: 26387750549.6, + }, + { + component: "Malaria", + grants: 380, + signed: 21772422774.93, + committed: 19601032601.56, + disbursed: 18749842379.82, + }, + { + component: "Tuberculosis", + grants: 397, + signed: 11188367142.65, + committed: 10354246800.06, + disbursed: 9728602404.67, + }, + { + component: "HIV/TB", + grants: 116, + signed: 9872930982.46, + committed: 8063100176.66, + disbursed: 7063645064.53, + }, + { + component: "RSSH", + grants: 51, + signed: 1823833440.67, + committed: 1485211366.37, + disbursed: 1258115789.13, + }, + { + component: "Multi-Component", + grants: 24, + signed: 1770608991.38, + committed: 1230893645.88, + disbursed: 971523102.53, + }, + ]; + + export const TABLE_VARIATION_14_COLUMNS: ColumnDefinition[] = [ + { + title: "Investment Landscapes & Cost Category", + field: "name", + width: "70%", + formatter: cellBGColorFormatter, + }, + // { + // title: "Grants", + // field: "grants", + // width: "30%", + // formatter: financialFormatter, + // }, + { + title: "Budget Amount (US$)", + field: "amount", + width: "30%", + formatter: financialFormatter, + }, + ]; + + export const TABLE_VARIATION_14_DATA: { + [key: string]: TableDataItem; + }[] = [ + { + name: "Capacity Building and Technical Assistance", + grants: 593, + amount: 29459468145, + _children: [ + { + name: "Capacity Building", + grants: 593, + amount: 29459468145, + }, + { + name: "Technical Assistance", + grants: 593, + amount: 29459468145, + }, + ], + }, + { + name: "Health Equipment", + grants: 398, + amount: 11448613884, + _children: [ + { + name: "Health Equipment", + grants: 398, + amount: 11448613884, + }, + ], + }, + { + name: "Health products/commodities and PSM related costs", + grants: 381, + amount: 21837104346, + _children: [ + { + name: "Health products/commodities", + grants: 381, + amount: 21837104346, + }, + { + name: "PSM related costs", + grants: 381, + amount: 21837104346, + }, + ], + }, + { + name: "Human Resources including Fiscal Agents", + grants: 118, + amount: 9966218523, + _children: [ + { + name: "Human Resources", + grants: 118, + amount: 9966218523, + }, + { + name: "Fiscal Agents", + grants: 118, + amount: 9966218523, + }, + ], + }, + { + name: "Indirect and Overhead Costs", + grants: 51, + amount: 1823833441, + _children: [ + { + name: "Indirect Costs", + grants: 51, + amount: 1823833441, + }, + { + name: "Overhead Costs", + grants: 51, + amount: 1823833441, + }, + ], + }, + { + name: "Infrastructure and Non-Health Equipment", + grants: 23, + amount: 1778547724, + _children: [ + { + name: "Infrastructure", + grants: 23, + amount: 1778547724, + }, + { + name: "Non-Health Equipment", + grants: 23, + amount: 1778547724, + }, + ], + }, + { + name: "Program related costs", + grants: 21, + amount: 1778547724, + _children: [ + { + name: "Program related costs", + grants: 21, + amount: 1778547724, + }, + ], + }, + ]; + + export const TABLE_VARIATION_15_COLUMNS: ColumnDefinition[] = [ + { + title: "Modules & Interventions", + field: "name", + width: "40%", + formatter: cellBGColorFormatter, + }, + { + title: "Cumulative Expenditure", + field: "cumulativeExpenditure", + width: "30%", + formatter: financialFormatter, + }, + { + title: "Expenditure For Reported Period", + field: "periodExpenditure", + width: "30%", + formatter: financialFormatter, + }, + ]; + + export const TABLE_VARIATION_15_DATA: { + [key: string]: TableDataItem; + }[] = [ + { + name: "HIV/AIDS", + cumulativeExpenditure: 945025388.9299998, + periodExpenditure: 6507650968.13, + _children: [ + { + name: "Comprehensive prevention programs for MSM", + cumulativeExpenditure: 3095814.04, + periodExpenditure: 104951271.79, + }, + { + name: "Comprehensive prevention programs for people who inject drugs (PWID) and their partners", + cumulativeExpenditure: 3087159.89, + periodExpenditure: 124653010.87, + }, + { + name: "Comprehensive prevention programs for sex workers and their clients", + cumulativeExpenditure: 1945034.29, + periodExpenditure: 129591746.86, + }, + { + name: "Comprehensive prevention programs for TGs", + cumulativeExpenditure: 558764.8, + periodExpenditure: 11422198.65, + }, + { + name: "Comprehensive programs for people in prisons and other closed settings", + cumulativeExpenditure: 15195.97, + periodExpenditure: 9761187.64, + }, + { + name: "Differentiated HIV Testing Services", + cumulativeExpenditure: 79468314.09, + periodExpenditure: 468169158.73, + }, + { + name: "PMTCT", + cumulativeExpenditure: 32744229.97, + periodExpenditure: 163804046.97, + }, + { + name: "Prevention", + cumulativeExpenditure: 142960180.17, + periodExpenditure: 390694260.87, + }, + { + name: "Prevention package for adolescent girls and young women (AGYW) and male sexual partners in high HIV incidence settings", + cumulativeExpenditure: 1347529.74, + periodExpenditure: 4175173.75, + }, + { + name: "Prevention package for men who have sex with men (MSM) and their sexual partners", + cumulativeExpenditure: 28165.94, + periodExpenditure: 7904916.84, + }, + { + name: "Prevention package for sex workers, their clients and other sexual partners", + cumulativeExpenditure: -19982.04, + periodExpenditure: 8453813.99, + }, + { + name: "Prevention package for transgender people and their sexual partners", + cumulativeExpenditure: 0, + periodExpenditure: 868195.7, + }, + { + name: "Prevention programs for adolescents and youth, in and out of school", + cumulativeExpenditure: 2595808.1, + periodExpenditure: 162657316.14, + }, + { + name: "Prevention programs for general population", + cumulativeExpenditure: 14447070.34, + periodExpenditure: 124795311.63, + }, + { + name: "Prevention programs for other vulnerable populations", + cumulativeExpenditure: 327981.95, + periodExpenditure: 51397820.99, + }, + { + name: "Reducing human rights-related barriers to HIV/TB services", + cumulativeExpenditure: 18609011.89, + periodExpenditure: 110293032.98, + }, + { + name: "Treatment, care and support", + cumulativeExpenditure: 643815109.79, + periodExpenditure: 4634058503.73, + }, + ], + }, + { + name: "Malaria", + cumulativeExpenditure: 767240818.6099999, + periodExpenditure: 4691504230.91, + _children: [ + { + name: "Case management", + cumulativeExpenditure: 231073572.73, + periodExpenditure: 1446824819.11, + }, + { + name: "Specific prevention interventions (SPI)", + cumulativeExpenditure: 58211332.79, + periodExpenditure: 353183640.88, + }, + { + name: "Vector control", + cumulativeExpenditure: 477955913.09, + periodExpenditure: 2891495770.92, + }, + ], + }, + { + name: "Multi-Component", + cumulativeExpenditure: 1110513490.01, + periodExpenditure: 4929393204.469999, + _children: [ + { + name: "COVID-19", + cumulativeExpenditure: 569660247, + periodExpenditure: 2057307680.09, + }, + { + name: "Payment for results", + cumulativeExpenditure: 151973435.59, + periodExpenditure: 228306691.42, + }, + { + name: "Program management", + cumulativeExpenditure: 388879807.42, + periodExpenditure: 2643778832.96, + }, + ], + }, + { + name: "RSSH", + cumulativeExpenditure: 244256205.64999998, + periodExpenditure: 1724136777.71, + _children: [ + { + name: "RSSH: Community systems strengthening", + cumulativeExpenditure: 23587938.07, + periodExpenditure: 135267519.12, + }, + { + name: "RSSH: Financial management systems", + cumulativeExpenditure: 3419956.55, + periodExpenditure: 57462392.76, + }, + { + name: "RSSH: Health management information systems and M&E", + cumulativeExpenditure: 39553580.71, + periodExpenditure: 287142221.18, + }, + { + name: "RSSH: Health products management systems", + cumulativeExpenditure: 36950949.24, + periodExpenditure: 301525332.77, + }, + { + name: "RSSH: Health sector governance and planning", + cumulativeExpenditure: 7117526.2, + periodExpenditure: 53602859.18, + }, + { + name: "RSSH: Human resources for health, including community health workers", + cumulativeExpenditure: 30065280.27, + periodExpenditure: 316340982.58, + }, + { + name: "RSSH: Integrated service delivery and quality improvement", + cumulativeExpenditure: 26914877.32, + periodExpenditure: 183240141.16, + }, + { + name: "RSSH: Laboratory systems", + cumulativeExpenditure: 12653299.13, + periodExpenditure: 38541776.18, + }, + { + name: "RSSH: Monitoring and evaluation systems", + cumulativeExpenditure: 63992798.16, + periodExpenditure: 351013552.78, + }, + ], + }, + { + name: "Tuberculosis", + cumulativeExpenditure: 420470219.93, + periodExpenditure: 2635910621.08, + _children: [ + { + name: "MDR-TB", + cumulativeExpenditure: 120612114.68, + periodExpenditure: 951422631.83, + }, + { + name: "Removing human rights and gender related barriers to TB services", + cumulativeExpenditure: 1960500.13, + periodExpenditure: 5603168.07, + }, + { + name: "TB care and prevention", + cumulativeExpenditure: 281616061.24, + periodExpenditure: 1549500562.04, + }, + { + name: "TB/HIV", + cumulativeExpenditure: 16281543.88, + periodExpenditure: 129384259.14, + }, + ], + }, + { + name: "Ungrouped Components", + cumulativeExpenditure: 128356.87999999999, + periodExpenditure: 220719.97, + _children: [ + { + name: "Malaria", + cumulativeExpenditure: -4939.6, + periodExpenditure: 0, + }, + { + name: "Multi-Component", + cumulativeExpenditure: 103036.59, + periodExpenditure: 193997.94, + }, + { + name: "RSSH", + cumulativeExpenditure: 26722.03, + periodExpenditure: 26722.03, + }, + { + name: "Tuberculosis", + cumulativeExpenditure: 3537.86, + periodExpenditure: 0, + }, + ], + }, + ]; + \ No newline at end of file diff --git a/src/components/tables/tabulator tables/index.ts b/src/components/tables/tabulator tables/index.ts new file mode 100644 index 0000000..c630aab --- /dev/null +++ b/src/components/tables/tabulator tables/index.ts @@ -0,0 +1 @@ +export {default as TabulatorTable} from "./tabulatorTables"; \ No newline at end of file diff --git a/src/components/tables/tabulator tables/tabulatorTables.stories.tsx b/src/components/tables/tabulator tables/tabulatorTables.stories.tsx new file mode 100644 index 0000000..f6013d8 --- /dev/null +++ b/src/components/tables/tabulator tables/tabulatorTables.stories.tsx @@ -0,0 +1,229 @@ +import type { Meta, StoryObj } from "@storybook/react"; +import TabulatorTable from "./tabulatorTables"; +import { withRouter } from "storybook-addon-remix-react-router"; +import { + TABLE_VARIATION_1_DATA, + TABLE_VARIATION_1_COLUMNS, + TABLE_VARIATION_2_DATA, + TABLE_VARIATION_2_COLUMNS, + TABLE_VARIATION_3_DATA, + TABLE_VARIATION_3_COLUMNS, + TABLE_VARIATION_4_DATA, + TABLE_VARIATION_4_COLUMNS, + TABLE_VARIATION_5_DATA, + TABLE_VARIATION_5_COLUMNS, + TABLE_VARIATION_6_DATA, + TABLE_VARIATION_6_COLUMNS, + TABLE_VARIATION_7_DATA, + TABLE_VARIATION_7_COLUMNS, + TABLE_VARIATION_8_DATA, + TABLE_VARIATION_8_COLUMNS, + TABLE_VARIATION_9_DATA, + TABLE_VARIATION_9_COLUMNS, + TABLE_VARIATION_10_DATA, + TABLE_VARIATION_10_COLUMNS, + TABLE_VARIATION_11_DATA, + TABLE_VARIATION_11_COLUMNS, + TABLE_VARIATION_12_DATA, + TABLE_VARIATION_12_COLUMNS, +} from "./data"; + +const meta = { + title: "Example/Table/Tabulator Tables", + component: TabulatorTable, + decorators: [withRouter], + parameters: { + layout: "fullscreen", + }, + tags: ["autodocs"], + argTypes: { + id: { control: "text" }, + data: { control: "object" }, + columns: { control: "object" }, + dataTree: { control: "boolean" }, + search: { control: "boolean" }, + dataTreeBranchElement: { control: "object" }, + dataTreeStartExpanded: { control: "boolean" }, + extraColumns: { control: "object" }, + columnBackground: { control: "color" }, + firstColumnBackground: { control: "color" }, + firstCellBackground: { control: "color" }, + rowHoverBorderColor: { control: "color" }, + boxWidth: { control: "text" }, + minHeight: { control: "text" }, + borderStyle: { control: "text" }, + borderColor: { control: "color" }, + columnHeaderTitleFontSize: { control: "text" }, + columnHeaderTitleFontWeight: { control: "text" }, + columnHeaderTitleColor: { control: "color" }, + rowHoverBackground: { control: "color" }, + cellFontSize: { control: "text" }, + cellFocusOutline: { control: "text" }, + cellActiveOutline: { control: "text" }, + sx: { control: "object" }, + }, +} satisfies Meta; + +export default meta; +type StoryType = StoryObj; + +export const Variant1: StoryType = { + args: { + id: "table-variant-1", + data: TABLE_VARIATION_10_DATA, + columns: TABLE_VARIATION_10_COLUMNS, + dataTree: false, + search: false, + columnHeaderTitleColor: "#333", + columnHeaderTitleFontSize: "16px", + columnHeaderTitleFontWeight: "bold", + rowHoverBackground: "#f0f0f0", + cellFontSize: "14px", + cellFocusOutline: "2px solid blue", + cellActiveOutline: "2px solid red", + sx: { + backgroundColor: '#f0f0f0', + height: 'auto', + }, + }, + }; + + export const Variant2: StoryType = { + args: { + id: "table-variant-2", + data: TABLE_VARIATION_11_DATA, + columns: TABLE_VARIATION_11_COLUMNS, + dataTree: true, + dataTreeStartExpanded: true, + columnHeaderTitleColor: "#333", + columnHeaderTitleFontSize: "16px", + columnHeaderTitleFontWeight: "bold", + rowHoverBackground: "#f0f0f0", + cellFontSize: "14px", + cellFocusOutline: "2px solid blue", + cellActiveOutline: "2px solid red", + sx: { + backgroundColor: '#f0f0f0', + height: 'auto', + }, + }, + }; + + export const Variant3: StoryType = { + args: { + id: "table-variant-3", + dataTree: true, + dataTreeBranchElement: false, + data: TABLE_VARIATION_12_DATA, + columns: TABLE_VARIATION_12_COLUMNS, + columnHeaderTitleColor: "#333", + columnHeaderTitleFontSize: "16px", + columnHeaderTitleFontWeight: "bold", + rowHoverBackground: "#f0f0f0", + cellFontSize: "14px", + cellFocusOutline: "2px solid blue", + cellActiveOutline: "2px solid red", + sx: { + backgroundColor: '#f0f0f0', + height: 'auto', // Use CSS for height + }, + }, + }; + + export const Variant4: StoryType = { + args: { + id: "table-variant-4", + dataTree: true, + data: TABLE_VARIATION_11_DATA, + columns: TABLE_VARIATION_11_COLUMNS.slice(0, 1), + extraColumns: TABLE_VARIATION_11_COLUMNS.slice( + 1, + TABLE_VARIATION_11_COLUMNS.length - 1 + ), + columnHeaderTitleColor: "#333", + columnHeaderTitleFontSize: "16px", + columnHeaderTitleFontWeight: "bold", + rowHoverBackground: "#f0f0f0", + cellFontSize: "14px", + cellFocusOutline: "2px solid blue", + cellActiveOutline: "2px solid red", + sx: { + backgroundColor: '#f0f0f0', + height: 'auto', // Use CSS for height + }, + }, + }; + +export const Variant5: StoryType = { + args: { + id: "table", + dataTree: true, + data: TABLE_VARIATION_5_DATA, + columns: TABLE_VARIATION_5_COLUMNS, + }, +}; + +export const Variant6: StoryType = { + args: { + id: "table", + dataTree: true, + data: TABLE_VARIATION_6_DATA, + columns: TABLE_VARIATION_6_COLUMNS, + }, +}; + +export const Variant7: StoryType = { + args: { + id: "table", + dataTree: true, + data: TABLE_VARIATION_7_DATA, + columns: TABLE_VARIATION_7_COLUMNS, + }, +}; + +export const Variant8: StoryType = { + args: { + id: "table", + dataTree: true, + data: TABLE_VARIATION_8_DATA, + columns: TABLE_VARIATION_8_COLUMNS, + }, +}; + +export const Variant9: StoryType = { + args: { + id: "table", + dataTree: true, + dataTreeStartExpanded: true, + data: TABLE_VARIATION_9_DATA, + columns: TABLE_VARIATION_9_COLUMNS, + }, +}; + +export const Variant10: StoryType = { + args: { + id: "table", + dataTree: true, + dataTreeStartExpanded: true, + data: TABLE_VARIATION_10_DATA, + columns: TABLE_VARIATION_10_COLUMNS, + }, +}; + +export const Variant11: StoryType = { + args: { + id: "table", + dataTree: true, + data: TABLE_VARIATION_11_DATA, + columns: TABLE_VARIATION_11_COLUMNS, + }, +}; + +export const Variant12: StoryType = { + args: { + id: "table", + dataTree: true, + data: TABLE_VARIATION_12_DATA, + columns: TABLE_VARIATION_12_COLUMNS, + }, +}; diff --git a/src/components/tables/tabulator tables/tabulatorTables.tsx b/src/components/tables/tabulator tables/tabulatorTables.tsx new file mode 100644 index 0000000..e9a4c5a --- /dev/null +++ b/src/components/tables/tabulator tables/tabulatorTables.tsx @@ -0,0 +1,200 @@ +/** @jsxImportSource @emotion/react */ +import * as React from 'react'; +import Box from '@mui/material/Box'; +import { TabulatorFull as Tabulator, ColumnDefinition, RowComponent } from 'tabulator-tables'; +import 'tabulator-tables/dist/css/tabulator.min.css'; +import { SxProps } from '@mui/system'; + +interface TabularStyling{ + columnBackground?: string; + firstColumnBackground?: string; + firstCellBackground?: string; + rowHoverBorderColor?: string; + boxWidth?: string; + minHeight?: string; + borderStyle?: string; + borderColor?: string; + columnHeaderTitleFontSize?: string; + columnHeaderTitleFontWeight?: string | number; + columnHeaderTitleColor?: string; + rowHoverBackground?: string; + cellFontSize?: string; + cellFocusOutline?: string; + cellActiveOutline?: string; +} + export type TableDataItem = + | string + | number + | boolean + | null + | object + | Array; + +export interface TableProps extends TabularStyling { + id: string; + data: { + [key: string]: TableDataItem; + }[]; + columns: ColumnDefinition[]; + dataTree?: boolean; + search?: boolean; + setTable?: (table: Tabulator) => void; + dataTreeBranchElement?: boolean; + dataTreeStartExpanded?: boolean; + extraColumns?: ColumnDefinition[]; + dataTreeStartExpandedFn?: (row: RowComponent, level: number) => boolean; + sx?: SxProps; +} + +const ExpandElement = ``; +const CollapseElement = ``; + + export default function TabulatorTable({ + id, + data, + columns, + dataTree, + search, + setTable, + dataTreeBranchElement, + dataTreeStartExpanded, + extraColumns, + dataTreeStartExpandedFn, + columnBackground, + firstColumnBackground, + firstCellBackground, + rowHoverBorderColor, + boxWidth, + minHeight, + borderStyle, + borderColor, + columnHeaderTitleFontSize, + columnHeaderTitleFontWeight, + columnHeaderTitleColor, + rowHoverBackground, + cellFontSize, + cellFocusOutline, + cellActiveOutline, + sx, + ...otherProps + }:Readonly) { + const tableBuiltRef = React.useRef(false); + const ref = React.useRef(null); + const [expandedCount, setExpandedCount] = React.useState(0); + + React.useEffect(() => { + if (ref.current) { + let dataTreeStartExpanded: boolean | boolean[] | ((row: RowComponent, level: number) => boolean) | undefined = false; + if (dataTreeStartExpanded) { + dataTreeStartExpanded = Boolean(dataTreeStartExpanded); + } else if (dataTreeStartExpandedFn) { + dataTreeStartExpanded = dataTreeStartExpandedFn; + } + const table = new Tabulator(ref.current, { + height: data.length > 20 ? "500px" : "auto", + data, + selectable: false, + reactiveData: true, + layout: "fitDataFill", + columns, + dataTreeChildIndent: 10, + dataTree, + renderVertical: "virtual", + renderVerticalBuffer: 100, + dataTreeExpandElement: ExpandElement, + dataTreeCollapseElement: CollapseElement, + dataTreeBranchElement, + dataTreeStartExpanded, + ...otherProps, + }); + + table.on("dataTreeRowExpanded", (_:RowComponent, level:number) => { + if (level === 0) { + setExpandedCount((prev) => prev + 1); + } + }); + table.on("dataTreeRowCollapsed", (_:RowComponent, level:number) => { + if (level === 0) { + setExpandedCount((prev) => prev - 1); + } + }); + table.on("tableBuilt", () => { + tableBuiltRef.current = true; + }); + + if (dataTreeStartExpanded || dataTreeStartExpandedFn) { + setTimeout(() => { + table.redraw(); + }, 500); + } + + if (setTable) { + setTable(table); + } + } + }, []); + + React.useEffect(() => { + if (ref.current && tableBuiltRef.current) { + const tables = Tabulator.findTable(`#${id}`); + if (tables.length > 0 && tables[0]) { + tables[0].replaceData(data); + } + } + }, [data, tableBuiltRef.current]); + + React.useEffect(() => { + if (ref.current) { + const tables = Tabulator.findTable(`#${id}`); + if (tables.length > 0 && tables[0]) { + if (expandedCount > 0 && extraColumns && extraColumns.length > 0) { + tables[0].setColumns(columns.concat(extraColumns)); + } else { + setTimeout(() => { + tables[0].setColumns(columns); + }, 1); + } + } + } + }, [expandedCount, columns, extraColumns]); + + return ( + .tabulator-cell:first-of-type": { + background: firstCellBackground ?? "#F1F3F5 !important", + }, + "&:hover": { + background: rowHoverBackground ?? "#F1F3F5", + borderColor: rowHoverBorderColor ?? "#CFD4DA", + }, + }, + ...sx, + }} + /> + ); +} diff --git a/src/utils/formatFinancialValue.ts b/src/utils/formatFinancialValue.ts new file mode 100644 index 0000000..b411998 --- /dev/null +++ b/src/utils/formatFinancialValue.ts @@ -0,0 +1,10 @@ +export function formatFinancialValue( + value: number | bigint, + noCurrency?: boolean +): string { + if (!value) return `${!noCurrency ? "US$ " : ""}0`; + return `${!noCurrency ? "US$ " : ""}${value.toLocaleString("en-US", { + minimumFractionDigits: 0, + maximumFractionDigits: 0, + })}`; +}