refactor: complete modal class-based architecture, design system integration, and map editor modularization

This commit is contained in:
2026-06-01 14:57:07 +09:00
parent 590ddd0e85
commit 9cd5d59bf8
32 changed files with 1838 additions and 1670 deletions

View File

@@ -23,6 +23,7 @@ export interface ListViewConfig {
showDept?: boolean;
showLoc?: boolean;
showField?: boolean;
showType?: boolean;
};
columns: ColumnDef[];
onRowClick?: (asset: any) => void;
@@ -37,7 +38,7 @@ export function createListView(container: HTMLElement, config: ListViewConfig) {
let sortState: SortState = config.persistentSortState || { key: '', direction: 'asc' };
// Initialize currentFilters with all possible keys to avoid undefined issues
let currentFilters: any = { keyword: '', corp: '', dept: '', loc: '', field: '' };
let currentFilters: any = { keyword: '', corp: '', dept: '', loc: '', field: '', type: '' };
const filterBar = document.createElement('div');
filterBar.className = 'search-bar';
@@ -151,6 +152,7 @@ export function createListView(container: HTMLElement, config: ListViewConfig) {
if (config.filterOptions.showLoc) populateSelect('#filter-loc', ASSET_SCHEMA.LOCATION.key);
if (config.filterOptions.showDept) populateSelect('#filter-dept', ASSET_SCHEMA.CURRENT_DEPT.key);
if (config.filterOptions.showCorp) populateSelect('#filter-corp', ASSET_SCHEMA.PURCHASE_CORP.key);
if (config.filterOptions.showType) populateSelect('#filter-type', ASSET_SCHEMA.ASSET_TYPE.key);
// 6. 초기 렌더링
updateTable();