260205_01_ENH: 페이지 별 엑셀 다운로드 적용

This commit is contained in:
2026-02-05 09:24:19 +09:00
parent 544f3010aa
commit 3e7c2a98df
25 changed files with 2500 additions and 336 deletions

View File

@@ -5,32 +5,37 @@ export type BannerKey = keyof typeof BANNER_KEY_MAP;
export type ProductsFilterItem = (typeof PRODUCTS_FILTER_ITEM)[number];
export type ServerBaseRow = {
year: number;
year: string;
rowLabel: string;
total: number;
total: string;
};
// { year, rowLabel, total, ...category }
export type ServerProductRow = ServerBaseRow & Partial<Record<ProductKey, number>>;
export type ServerProductRow = ServerBaseRow & Partial<Record<ProductKey, string>>;
// { year, rowLabel, total, ...banner }
// (배너는 기본 41개 키 + 차트별 추가 키가 생길 수 있으니 확장 허용)
export type ServerBannerRow = ServerBaseRow &
Partial<Record<BannerKey, number>> & {
[k: string]: number | string;
Partial<Record<BannerKey, string>> & {
[k: string]: string;
};
export type LifeStageRow = Record<string, unknown> & {
item: string;
total: number | null;
single: number | null;
noKids: number | null;
preschoolKids: number | null;
schoolKids: number | null;
adultKids: number | null;
independentSenior: number | null;
total: string;
single: string;
noKids: string;
preschoolKids: string;
schoolKids: string;
adultKids: string;
independentSenior: string;
};
export type LifeStageGroup = {
title: string;
rows: LifeStageRow[]
}
export type BannerGroupKey = keyof typeof BANNER_GROUP;
export type CategoryChartMode = "stack" | "reverseStack" | "horizontal";