UNPKG

lumarc-grid

Version:

lumArc Grid는 고성능, 유연하고 프레임워크에 구애받지 않는 데이터 그리드 라이브러리

66 lines 2.07 kB
import { RowId } from '../lib/row-manager'; /** * Row ID를 문자열 키로 변환 (내부 사용) */ export declare function rowIdToKey(rowId: RowId): string; /** * 문자열 키에서 Row ID 추출 */ export declare function keyToRowId(key: string): RowId; /** * 다음 Row Key 생성 (Tab 네비게이션용) */ export declare function getNextRowKey<T extends { id: string | number; }>(currentKey: string, data: T[]): string | null; /** * 이전 Row Key 생성 (Tab 네비게이션용) */ export declare function getPreviousRowKey<T extends { id: string | number; }>(currentKey: string, data: T[]): string | null; /** * Row ID 배열을 Key 배열로 변환 */ export declare function rowIdsToKeys(rowIds: RowId[]): string[]; /** * Key 배열을 Row ID 배열로 변환 */ export declare function keysToRowIds(keys: string[]): RowId[]; /** * Row Key 유효성 검증 */ export declare function isValidRowKey(key: string): boolean; /** * 안전한 Row Key 생성 (중복 방지) */ export declare function createUniqueRowKey(baseId: RowId, existingKeys: string[]): string; /** * @deprecated 호환성용 - rowIdToKey 사용 권장 */ export declare function dataIdToRowKey(dataId: string | number): string; /** * @deprecated 호환성용 - keyToRowId 사용 권장 */ export declare function rowKeyToDataId(rowKey: string): string | number; /** * @deprecated 호환성용 - 인덱스 기반 여부 확인 */ export declare function isIndexBasedRowKey(rowKey: string): boolean; /** * @deprecated 호환성용 - 데이터 ID 기반 여부 확인 */ export declare function isDataIdBasedRowKey(rowKey: string): boolean; /** * @deprecated 호환성용 - RowManager 사용 권장 */ export declare function findDataIndexById<T extends { id: string | number; }>(data: T[], itemId: string | number): number; /** * @deprecated 호환성용 - RowManager 사용 권장 */ export declare function getRowIndexFromKey<T extends { id: string | number; }>(rowKey: string, data: T[]): number; //# sourceMappingURL=row-key-utils.d.ts.map