그리드 정렬기능

This commit is contained in:
2026-08-26 16:25:29 +09:00
parent ccfbe6ae32
commit e0cdba00be
61 changed files with 1777 additions and 590 deletions
@@ -5,27 +5,27 @@ export const windowPopupDefinitions = {
key: "cfmtnBgt",
title: "최종확정예산사업",
width: 1400,
height: 720,
height: 900,
requiredParams: ["bizSe"],
},
exmnBusinessRegister: {
key: "exmnBusinessRegister",
title: "조사사업 등록",
width: 1000,
height: 620,
height: 720,
},
exmnResultRegister: {
key: "exmnResultRegister",
title: "조사 결과 업로드",
width: 1000,
height: 650,
width: 1100,
height: 760,
requiredParams: ["exmnBizId"],
},
exmnSurveyDetail: {
key: "exmnSurveyDetail",
title: "조사 상세현황",
width: 1500,
height: 650,
height: 820,
requiredParams: ["exmnBizId", "trtdstId", "trtdstNm", "jobType"],
},
dredgingRegister: {
@@ -51,8 +51,8 @@ export const windowPopupDefinitions = {
oldPpUpload: {
key: "oldPpUpload",
title: "노후 하수관로 정비사업 등록",
width: 860,
height: 360,
width: 1000,
height: 420,
},
oldPpTable: {
key: "oldPpTable",
@@ -64,8 +64,8 @@ export const windowPopupDefinitions = {
floodPreUpload: {
key: "floodPreUpload",
title: "도시침수예방사업 등록",
width: 860,
height: 360,
width: 1000,
height: 420,
},
floodPreTable: {
key: "floodPreTable",
@@ -138,30 +138,30 @@ export const windowPopupDefinitions = {
agedPipePopup: {
key: "agedPipePopup",
title: "노후 하수관로 목록",
width: 850,
height: 600,
width: 1160,
height: 820,
placement: "browser-left",
alignTop: true,
offsetLeft: 0,
offsetTop: 200,
offsetTop: 70,
},
sinkholePopup: {
key: "sinkholePopup",
title: "지반침하발생현황",
width: 1380,
height: 820,
height: 960,
},
sbmrgDngrMapPopup: {
key: "sbmrgDngrMapPopup",
title: "침수위험지도 목록",
width: 1160,
height: 720,
height: 820,
},
floodDngrMapPopup: {
key: "floodDngrMapPopup",
title: "도시침수지도 목록",
width: 1160,
height: 720,
height: 820,
},
pipeAnalysisPopup: {
key: "pipeAnalysisPopup",
@@ -172,14 +172,14 @@ export const windowPopupDefinitions = {
pipeAnalysisDetailPopup: {
key: "pipeAnalysisDetailPopup",
title: "관로현황",
width: 1180,
height: 820,
width: 1280,
height: 900,
},
repairHistoryPopup: {
key: "repairHistoryPopup",
title: "보수이력",
width: 1260,
height: 760,
height: 820,
requiredParams: ["zoneId"],
},
fldngPredcPrst: {
@@ -192,7 +192,7 @@ export const windowPopupDefinitions = {
key: "agedPipeStatusByCtpvPopup",
title: "시도별 노후관로현황",
width: 1160,
height: 790,
height: 820,
},
fldngHstryPopup: {
key: "fldngHstryPopup",
@@ -13,6 +13,7 @@ import {
getStandardRowNumber,
type ScrollMode,
StandardDataTable,
StandardTableSortHeader,
type UiHeadProps,
} from "@common/business_components";
import type { UiTableSort } from "@common/business_components/ui/table";
@@ -95,27 +96,13 @@ export default function MapPopupDataTable<T extends Record<string, unknown>>({
const title = ROW_NUMBER_IDS.has(head.id) ? "순번" : head.title;
if (!head.sortable || !onSortChange) return title;
const key = head.sortKey ?? head.id;
const direction = sort?.key === key ? sort.direction : undefined;
return (
<button
type="button"
className="inline-flex w-full items-center justify-center gap-1.5"
aria-label={`${title} 정렬`}
onClick={() => {
if (direction === undefined) {
onSortChange({ key, direction: "asc" });
} else if (direction === "asc") {
onSortChange({ key, direction: "desc" });
} else {
onSortChange(undefined);
}
}}
>
<span>{title}</span>
<span className="text-[8px] leading-none" aria-hidden="true">
{direction === "asc" ? "▲" : direction === "desc" ? "▼" : "↕"}
</span>
</button>
<StandardTableSortHeader
label={title}
sortKey={key}
sort={sort}
onSortChange={onSortChange}
/>
);
},
cell: ({ row, getValue }) => {