34 lines
1.4 KiB
TypeScript
34 lines
1.4 KiB
TypeScript
/**
|
|
* statistics/input 화면과 탭(·분할 그리드) 키 매칭용 상수.
|
|
* 각 컴포넌트에 실제로 쓰이는 `tabKey`를 모두 포함합니다.
|
|
*/
|
|
|
|
/** `SewagePipeInp.tsx` — 메인 탭 + `ConnectionStatusInpColumn` 좌·우 그리드 서브 키 */
|
|
export const SEWAGE_PIPE_INP_TAB_KEYS = [
|
|
"ST00020001",
|
|
"ST00020002",
|
|
"ST00020003",
|
|
"ST00020004",
|
|
"ST00020005",
|
|
"ST00020006",
|
|
"treatmentPlantConnectionInp",
|
|
"adminAreaConnectionInp",
|
|
] as const;
|
|
|
|
/** `SewagePipeMaintainInp.tsx` — 보수·준설 탭 */
|
|
export const SEWAGE_PIPE_MAINTAIN_INP_TAB_KEYS = ["ST00030001", "ST00030002"] as const;
|
|
|
|
/** `SeweragePenetrationRateInp.tsx` — 단일 그리드(통계코드) */
|
|
export const SEWERAGE_PENETRATION_RATE_INP_TAB_KEYS = ["ST00010001"] as const;
|
|
|
|
export type SewagePipeInpTabKey = (typeof SEWAGE_PIPE_INP_TAB_KEYS)[number];
|
|
export type SewagePipeMaintainInpTabKey = (typeof SEWAGE_PIPE_MAINTAIN_INP_TAB_KEYS)[number];
|
|
export type SeweragePenetrationRateInpTabKey = (typeof SEWERAGE_PENETRATION_RATE_INP_TAB_KEYS)[number];
|
|
|
|
/** 컴포넌트 파일명 기준 묶음 (메뉴·라우트 매칭 시 참고) */
|
|
export const STATISTICS_INPUT_TAB_KEYS_BY_SCREEN = {
|
|
SewagePipeInp: SEWAGE_PIPE_INP_TAB_KEYS,
|
|
SewagePipeMaintainInp: SEWAGE_PIPE_MAINTAIN_INP_TAB_KEYS,
|
|
SeweragePenetrationRateInp: SEWERAGE_PENETRATION_RATE_INP_TAB_KEYS,
|
|
} as const;
|