UNPKG

mod-arch-shared

Version:

Shared UI components and utilities for modular architecture micro-frontend projects

16 lines 723 B
import type { ManagedColumn } from '../useManageColumns'; /** * Reorders columns while preserving the positions of non-matching columns. * * When a user reorders columns during a search filter, only the filtered (matching) * columns should change their relative order. Non-matching columns stay in their * original positions. * * Example: * - columns: [A, B, C, D, E] * - matchingIds: [B, D] (search matches B and D) * - reorderedIds: [D, B] (user dragged D before B) * - result: [A, D, C, B, E] (B and D swap positions, others unchanged) */ export declare const reorderColumns: (columns: ManagedColumn[], matchingIds: Set<string>, reorderedIds: string[]) => ManagedColumn[]; //# sourceMappingURL=utils.d.ts.map