260205_01_ENH: 페이지 별 엑셀 다운로드 적용
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user