# @birchui/grid-pro API reference

> Birch UI Grid Pro: grouping, aggregation, pivot, tree data, range selection, clipboard and Excel export

```bash
npm install @birchui/grid-pro
```

## @birchui/grid-pro

### aggFuncLabel

Kind: function. Import from `@birchui/grid-pro`.

```ts
function aggFuncLabel(fn: AggFuncInput, fallback = 'custom'): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `fn` | `AggFuncInput` |  |
| `fallback?` | `unknown` |  |

### aggregate

Kind: function. Import from `@birchui/grid-pro`.

```ts
function aggregate(values: readonly unknown[], fn: AggFuncInput, rows?: readonly unknown[]): unknown
```

| Parameter | Type | Description |
| --- | --- | --- |
| `values` | `readonly unknown[]` |  |
| `fn` | `AggFuncInput` |  |
| `rows?` | `readonly unknown[]` |  |

### buildTree

Kind: function. Import from `@birchui/grid-pro`.

```ts
function buildTree<T>(rows: readonly T[], options: BuildTreeOptions<T>): TreeResult<T>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `rows` | `readonly T[]` |  |
| `options` | `BuildTreeOptions<T>` |  |

### buildWorkbookFromView

Kind: function. Import from `@birchui/grid-pro`.

```ts
function buildWorkbookFromView<TRow>(source: ExcelViewSource<TRow>, options: ExcelExportOptions = {}): XlsxWorkbook
```

| Parameter | Type | Description |
| --- | --- | --- |
| `source` | `ExcelViewSource<TRow>` |  |
| `options?` | `ExcelExportOptions` |  |

### compareDirected

Kind: function. Import from `@birchui/grid-pro`.

```ts
function compareDirected(result: number, a: unknown, b: unknown, dir: 'asc' | 'desc'): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `result` | `number` |  |
| `a` | `unknown` |  |
| `b` | `unknown` |  |
| `dir` | `'asc' \| 'desc'` |  |

### computeRangeStats

Kind: function. Import from `@birchui/grid-pro`.

```ts
function computeRangeStats(values: readonly unknown[]): RangeStats
```

| Parameter | Type | Description |
| --- | --- | --- |
| `values` | `readonly unknown[]` |  |

### createAccumulator

Kind: function. Import from `@birchui/grid-pro`.

```ts
function createAccumulator(fn: AggFuncInput): Accumulator
```

| Parameter | Type | Description |
| --- | --- | --- |
| `fn` | `AggFuncInput` |  |

### createInMemoryDatasource

Kind: function. Import from `@birchui/grid-pro`.

```ts
function createInMemoryDatasource<TRow extends object>(rows: readonly TRow[], options: InMemoryDatasourceOptions = {}): ServerSideDatasource<TRow>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `rows` | `readonly TRow[]` |  |
| `options?` | `InMemoryDatasourceOptions` |  |

### createRowGroupingModule

Kind: function. Import from `@birchui/grid-pro`.

```ts
function createRowGroupingModule(config: RowGroupingConfig = {}): GridModule
```

| Parameter | Type | Description |
| --- | --- | --- |
| `config?` | `RowGroupingConfig` |  |

### defaultCompare

Kind: function. Import from `@birchui/grid-pro`.

```ts
function defaultCompare(a: unknown, b: unknown): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `a` | `unknown` |  |
| `b` | `unknown` |  |

### detectSeries

Kind: function. Import from `@birchui/grid-pro`.

```ts
function detectSeries(values: readonly unknown[]): FillSeries | null
```

| Parameter | Type | Description |
| --- | --- | --- |
| `values` | `readonly unknown[]` |  |

### fillTargetFor

Kind: function. Import from `@birchui/grid-pro`.

```ts
function fillTargetFor(source: RangeBounds, rowIndex: number, colIndex: number): FillTarget | null
```

| Parameter | Type | Description |
| --- | --- | --- |
| `source` | `RangeBounds` |  |
| `rowIndex` | `number` |  |
| `colIndex` | `number` |  |

### fillValues

Kind: function. Import from `@birchui/grid-pro`.

```ts
function fillValues(source: readonly unknown[], count: number, options: FillOptions = {}): unknown[]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `source` | `readonly unknown[]` |  |
| `count` | `number` |  |
| `options?` | `FillOptions` |  |

### groupRows

Kind: function. Import from `@birchui/grid-pro`.

```ts
function groupRows<T>(rows: readonly T[], options: GroupRowsOptions<T>): GroupResult<T>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `rows` | `readonly T[]` |  |
| `options` | `GroupRowsOptions<T>` |  |

### insertDetailRows

Kind: function. Import from `@birchui/grid-pro`.

```ts
function insertDetailRows<TRow>(rows: DisplayRow<TRow>[], options: MasterDetailOptions<TRow> | undefined, isExpanded: (key: string) => boolean): DisplayRow<TRow>[]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `rows` | `DisplayRow<TRow>[]` |  |
| `options` | `MasterDetailOptions<TRow> \| undefined` |  |
| `isExpanded` | `(key: string) => boolean` |  |

### isAggFuncName

Kind: function. Import from `@birchui/grid-pro`.

```ts
function isAggFuncName(value: unknown): value is AggFuncName
```

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `unknown` |  |

### isBlank

Kind: function. Import from `@birchui/grid-pro`.

```ts
function isBlank(value: unknown): boolean
```

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `unknown` |  |

### isServerSidePlaceholder

Kind: function. Import from `@birchui/grid-pro`.

```ts
function isServerSidePlaceholder(row: unknown): boolean
```

| Parameter | Type | Description |
| --- | --- | --- |
| `row` | `unknown` |  |

### mapHeadersToColumns

Kind: function. Import from `@birchui/grid-pro`.

```ts
function mapHeadersToColumns(headers: readonly string[], columns: readonly ResolvedColumn[], columnMap: Record<string, string> = {}): { mapped: Record<string, string>; unmapped: string[] }
```

| Parameter | Type | Description |
| --- | --- | --- |
| `headers` | `readonly string[]` |  |
| `columns` | `readonly ResolvedColumn[]` |  |
| `columnMap?` | `Record<string, string>` |  |

### moveCell

Kind: function. Import from `@birchui/grid-pro`.

```ts
function moveCell(from: CellPosition, key: NavigationKey, toEdge: boolean, extent: GridExtent): CellPosition | null
```

| Parameter | Type | Description |
| --- | --- | --- |
| `from` | `CellPosition` |  |
| `key` | `NavigationKey` |  |
| `toEdge` | `boolean` |  |
| `extent` | `GridExtent` |  |

### moveTargetIndex

Kind: function. Import from `@birchui/grid-pro`.

```ts
function moveTargetIndex(order: readonly string[], colId: string, targetId: string, after: boolean): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `order` | `readonly string[]` |  |
| `colId` | `string` |  |
| `targetId` | `string` |  |
| `after` | `boolean` |  |

### parseTsv

Kind: function. Import from `@birchui/grid-pro`.

```ts
function parseTsv(text: string): string[][]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `text` | `string` |  |

### pivot

Kind: function. Import from `@birchui/grid-pro`.

```ts
function pivot<T>(data: readonly T[], options: PivotEngineOptions<T>): PivotResult<T>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `data` | `readonly T[]` |  |
| `options` | `PivotEngineOptions<T>` |  |

### pivotLayout

Kind: function. Import from `@birchui/grid-pro`.

```ts
function pivotLayout<T>(data: readonly T[], options: PivotLayoutOptions<T>): PivotLayout<T>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `data` | `readonly T[]` |  |
| `options` | `PivotLayoutOptions<T>` |  |

### pivotToMatrix

Kind: function. Import from `@birchui/grid-pro`.

```ts
function pivotToMatrix<T>(result: PivotResult<T>, options: { rowHeaders: readonly string[]; rowColIds?: readonly string[]; totalLabel?: string; includeTotal?: boolean; }): PivotMatrix
```

| Parameter | Type | Description |
| --- | --- | --- |
| `result` | `PivotResult<T>` |  |
| `options` | `{ rowHeaders: readonly string[]; rowColIds?: readonly string[]; totalLabel?: string; includeTotal?: boolean; }` |  |

### planFill

Kind: function. Import from `@birchui/grid-pro`.

```ts
function planFill(source: readonly unknown[], invert = false): FillPlan
```

| Parameter | Type | Description |
| --- | --- | --- |
| `source` | `readonly unknown[]` |  |
| `invert?` | `unknown` |  |

### rangeBounds

Kind: function. Import from `@birchui/grid-pro`.

```ts
function rangeBounds(range: CellRange, columnIndex: ReadonlyMap<string, number>): RangeBounds | null
```

| Parameter | Type | Description |
| --- | --- | --- |
| `range` | `CellRange` |  |
| `columnIndex` | `ReadonlyMap<string, number>` |  |

### renderSparkline

Kind: function. Import from `@birchui/grid-pro`.

```ts
function renderSparkline(doc: Document, values: readonly number[], options: Omit<SparklineColumnOptions, 'values'> & { label: string }): SVGSVGElement
```

| Parameter | Type | Description |
| --- | --- | --- |
| `doc` | `Document` |  |
| `values` | `readonly number[]` |  |
| `options` | `Omit<SparklineColumnOptions, 'values'> & { label: string }` |  |

### resolveAggFunc

Kind: function. Import from `@birchui/grid-pro`.

```ts
function resolveAggFunc(fn: AggFuncInput | null | undefined): AggFunc | undefined
```

| Parameter | Type | Description |
| --- | --- | --- |
| `fn` | `AggFuncInput \| null \| undefined` |  |

### resolveSideBarOptions

Kind: function. Import from `@birchui/grid-pro`.

```ts
function resolveSideBarOptions(option: GridOptions['sideBar']): ResolvedSideBarOptions | null
```

| Parameter | Type | Description |
| --- | --- | --- |
| `option` | `GridOptions['sideBar']` |  |

### resolveStatusBarOptions

Kind: function. Import from `@birchui/grid-pro`.

```ts
function resolveStatusBarOptions(option: boolean | StatusBarOptions | undefined): ResolvedStatusBarOptions | null
```

| Parameter | Type | Description |
| --- | --- | --- |
| `option` | `boolean \| StatusBarOptions \| undefined` |  |

### shapeTree

Kind: function. Import from `@birchui/grid-pro`.

```ts
function shapeTree<T>(roots: readonly TreeNode<T>[], options: ShapeTreeOptions<T> = {}): ShapedTreeNode<T>[]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `roots` | `readonly TreeNode<T>[]` |  |
| `options?` | `ShapeTreeOptions<T>` |  |

### sparklineGeometry

Kind: function. Import from `@birchui/grid-pro`.

```ts
function sparklineGeometry(values: readonly number[], type: SparklineType, width = DEFAULT_WIDTH, height = DEFAULT_HEIGHT): { path: string; bars: { x: number; y: number; width: number; height: number }[] }
```

| Parameter | Type | Description |
| --- | --- | --- |
| `values` | `readonly number[]` |  |
| `type` | `SparklineType` |  |
| `width?` | `unknown` |  |
| `height?` | `unknown` |  |

### sparklineLabel

Kind: function. Import from `@birchui/grid-pro`.

```ts
function sparklineLabel(type: SparklineType, summary: SparklineSummary, locale?: string): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `type` | `SparklineType` |  |
| `summary` | `SparklineSummary` |  |
| `locale?` | `string` |  |

### sparklineValues

Kind: function. Import from `@birchui/grid-pro`.

```ts
function sparklineValues(value: unknown, valueKey?: string): number[]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `unknown` |  |
| `valueKey?` | `string` |  |

### summarizeSparkline

Kind: function. Import from `@birchui/grid-pro`.

```ts
function summarizeSparkline(values: readonly number[]): SparklineSummary
```

| Parameter | Type | Description |
| --- | --- | --- |
| `values` | `readonly number[]` |  |

### toTsv

Kind: function. Import from `@birchui/grid-pro`.

```ts
function toTsv(matrix: readonly (readonly unknown[])[], options: TsvOptions = {}): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `matrix` | `readonly (readonly unknown[])[]` |  |
| `options?` | `TsvOptions` |  |

### walkGroups

Kind: function. Import from `@birchui/grid-pro`.

```ts
function walkGroups<T>(groups: readonly GroupNode<T>[], visit: (node: GroupNode<T>) => boolean | void): void
```

| Parameter | Type | Description |
| --- | --- | --- |
| `groups` | `readonly GroupNode<T>[]` |  |
| `visit` | `(node: GroupNode<T>) => boolean \| void` |  |

### AGG_FUNC_NAMES

Kind: const. Import from `@birchui/grid-pro`.

```ts
const AGG_FUNC_NAMES: readonly AggFuncName[]
```

### AggregationModule

Kind: const. Import from `@birchui/grid-pro`.

```ts
const AggregationModule: GridModule
```

### AllProModules

Kind: const. Import from `@birchui/grid-pro`.

```ts
const AllProModules: readonly GridModule[]
```

### AnalyticsModules

Kind: const. Import from `@birchui/grid-pro`.

```ts
const AnalyticsModules: readonly GridModule[]
```

### BLANK_LABEL

Kind: const. Import from `@birchui/grid-pro`.

```ts
const BLANK_LABEL: "(Blanks)" = '(Blanks)'
```

### ClipboardModule

Kind: const. Import from `@birchui/grid-pro`.

```ts
const ClipboardModule: GridModule
```

### DEFAULT_GROUP_ID_PREFIX

Kind: const. Import from `@birchui/grid-pro`.

```ts
const DEFAULT_GROUP_ID_PREFIX: "group:" = 'group:'
```

### DEFAULT_PIVOT_ID_PREFIX

Kind: const. Import from `@birchui/grid-pro`.

```ts
const DEFAULT_PIVOT_ID_PREFIX: "pivot:" = 'pivot:'
```

### DEFAULT_TREE_ID_PREFIX

Kind: const. Import from `@birchui/grid-pro`.

```ts
const DEFAULT_TREE_ID_PREFIX: "tree:" = 'tree:'
```

### ExcelModule

Kind: const. Import from `@birchui/grid-pro`.

```ts
const ExcelModule: GridModule
```

### FillHandleModule

Kind: const. Import from `@birchui/grid-pro`.

```ts
const FillHandleModule: GridModule
```

### gridProStyles

Kind: const. Import from `@birchui/grid-pro`.

```ts
const gridProStyles: "\n.lq-grid {\n --lq-pro-indent: 20px;\n --lq-pro-toggle-size: 24px;\n --lq-pro-group-bg-0: color-mix(in srgb, var(--lq-accent) 9%, var(--lq-bg));\n --lq-pro-group-bg-1: color-mix(in srgb, var(--lq-accent) 6%, var(--lq-bg));\n --lq-pro-group-bg-2: color-mix(in srgb, var(--lq-accent) 4%, var(--lq-bg));\n --lq-pro-group-bg-3: color-mix(in srgb, var(--lq-accent) 2%, var(--lq-bg));\n --lq-pro-total-bg: var(--lq-header-bg);\n --lq-pro-chip-bg: var(--lq-bg);\n --lq-pro-drop-bg: var(--lq-selection-bg);\n}\n\n.lq-pro-group-cell {\n display: flex;\n align-items: center;\n gap: 4px;\n min-width: 0;\n height: 100%;\n padding-inline-start: calc(var(--lq-pro-depth, 0) * var(--lq-pro-indent));\n}\n\n.lq-pro-group-toggle,\n.lq-pro-group-spacer {\n flex: none;\n width: var(--lq-pro-toggle-size);\n height: var(--lq-pro-toggle-size);\n}\n\n.lq-pro-group-toggle {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin: 0;\n padding: 0;\n border: 0;\n border-radius: var(--lq-radius);\n background: transparent;\n color: var(--lq-muted-fg);\n cursor: pointer;\n}\n\n.lq-pro-group-toggle:hover {\n background: var(--lq-row-hover);\n color: var(--lq-fg);\n}\n\n.lq-pro-group-toggle:focus-visible {\n outline: 2px solid var(--lq-focus-ring);\n outline-offset: -2px;\n}\n\n.lq-pro-chevron {\n width: 6px;\n height: 6px;\n border-right: 1.5px solid currentColor;\n border-bottom: 1.5px solid currentColor;\n transform: translateX(-1px) rotate(-45deg);\n transition: transform 120ms ease;\n}\n\n[dir=\"rtl\"] .lq-pro-chevron {\n transform: translateX(1px) rotate(135deg);\n}\n\n.lq-pro-group-toggle[aria-expanded=\"true\"] .lq-pro-chevron {\n transform: translateY(-1px) rotate(45deg);\n}\n\n.lq-pro-group-label {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.lq-pro-group-count {\n flex: none;\n color: var(--lq-muted-fg);\n font-weight: 400;\n font-variant-numeric: tabular-nums;\n}\n\n.lq-row .lq-pro-cell--group,\n.lq-pro-cell--group {\n font-weight: 600;\n background: var(--lq-pro-group-bg-0);\n}\n\n.lq-pro-cell--group[data-lq-depth=\"1\"] {\n background: var(--lq-pro-group-bg-1);\n}\n\n.lq-pro-cell--group[data-lq-depth=\"2\"] {\n background: var(--lq-pro-group-bg-2);\n}\n\n.lq-pro-cell--group[data-lq-depth=\"3\"] {\n background: var(--lq-pro-group-bg-3);\n}\n\n.lq-pro-cell--total {\n font-weight: 700;\n background: var(--lq-pro-total-bg);\n box-shadow: inset 0 1px 0 var(--lq-border);\n}\n\n.lq-pro-cell--pivot-total {\n font-weight: 600;\n box-shadow: inset 1px 0 0 var(--lq-border);\n}\n\n.lq-pro-group-panel {\n display: flex;\n align-items: center;\n gap: 8px;\n min-height: 40px;\n padding: 6px 10px;\n border-bottom: 1px solid var(--lq-border);\n background: var(--lq-header-bg);\n color: var(--lq-fg);\n font-family: var(--lq-font-family);\n font-size: var(--lq-font-size);\n transition: background-color 120ms ease, box-shadow 120ms ease;\n}\n\n.lq-pro-group-panel--drag-over {\n background: var(--lq-pro-drop-bg);\n box-shadow: inset 0 0 0 2px var(--lq-accent);\n}\n\n.lq-pro-group-panel-list {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px 18px;\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.lq-pro-group-panel-placeholder {\n color: var(--lq-muted-fg);\n}\n\n.lq-pro-chip {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: 4px;\n height: 30px;\n padding: 0 2px 0 10px;\n border: 1px solid var(--lq-input-border, var(--lq-border));\n border-radius: 15px;\n background: var(--lq-pro-chip-bg);\n color: var(--lq-fg);\n cursor: grab;\n user-select: none;\n}\n\n.lq-pro-chip + .lq-pro-chip::before {\n content: \"›\";\n position: absolute;\n inset-inline-start: -13px;\n color: var(--lq-muted-fg);\n pointer-events: none;\n}\n\n.lq-pro-chip:focus-visible {\n outline: 2px solid var(--lq-focus-ring);\n outline-offset: 1px;\n}\n\n.lq-pro-chip--drop-before {\n box-shadow: -4px 0 0 -1px var(--lq-accent);\n}\n\n.lq-pro-chip--drop-after {\n box-shadow: 4px 0 0 -1px var(--lq-accent);\n}\n\n[dir=\"rtl\"] .lq-pro-chip + .lq-pro-chip::before {\n content: \"‹\";\n}\n\n[dir=\"rtl\"] .lq-pro-chip--drop-before {\n box-shadow: 4px 0 0 -1px var(--lq-accent);\n}\n\n[dir=\"rtl\"] .lq-pro-chip--drop-after {\n box-shadow: -4px 0 0 -1px var(--lq-accent);\n}\n\n.lq-pro-chip-remove {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n margin: 0;\n padding: 0;\n border: 0;\n border-radius: 50%;\n background: transparent;\n color: var(--lq-muted-fg);\n font: inherit;\n line-height: 1;\n cursor: pointer;\n}\n\n.lq-pro-chip-remove:hover {\n background: var(--lq-row-hover);\n color: var(--lq-fg);\n}\n\n@media (prefers-reduced-motion: reduce) {\n .lq-pro-chevron,\n .lq-pro-group-panel {\n transition: none;\n }\n}\n\n@media (forced-colors: active) {\n .lq-pro-group-toggle:focus-visible,\n .lq-pro-chip:focus-visible,\n .lq-pro-chip-remove:focus-visible {\n outline: 2px solid Highlight;\n }\n .lq-pro-group-panel--drag-over { outline: 2px dashed Highlight; outline-offset: -2px; }\n .lq-pro-chip--drop-before { border-inline-start: 3px solid Highlight; }\n .lq-pro-chip--drop-after { border-inline-end: 3px solid Highlight; }\n}\n" = ` .lq-grid { --lq-pro-indent: 20px; --lq-pro-toggle-size: 24px; --lq-pro-group-bg-0: color-mix(in srgb, var(--lq-accent) 9%, var(--lq-bg)); --lq-pro-group-bg-1: color-mix(in srgb, var(--lq-accent) 6%, var(--lq-bg)); --lq-pro-group-bg-2: color-mix(in srgb, var(--lq-accent) 4%, var(--lq-bg)); --lq-pro-group-bg-3: color-mix(in srgb, var(--lq-accent) 2%, var(--lq-bg)); --lq-pro-total-bg: var(--lq-header-bg); --lq-pro-chip-bg: var(--lq-bg); --lq-pro-drop-bg: var(--lq-selection-bg); } .lq-pro-group-cell { display: flex; align-items: center; gap: 4px; min-width: 0; height: 100%; padding-inline-start: calc(var(--lq-pro-depth, 0) * var(--lq-pro-indent)); } .lq-pro-group-toggle, .lq-pro-group-spacer { flex: none; width: var(--lq-pro-toggle-size); height: var(--lq-pro-toggle-size); } .lq-pro-group-toggle { display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 0; border: 0; border-radius: var(--lq-radius); background: transparent; color: var(--lq-muted-fg); cursor: pointer; } .lq-pro-group-toggle:hover { background: var(--lq-row-hover); color: var(--lq-fg); } .lq-pro-group-toggle:focus-visible { outline: 2px solid var(--lq-focus-ring); outline-offset: -2px; } .lq-pro-chevron { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateX(-1px) rotate(-45deg); transition: transform 120ms ease; } [dir="rtl"] .lq-pro-chevron { transform: translateX(1px) rotate(135deg); } .lq-pro-group-toggle[aria-expanded="true"] .lq-pro-chevron { transform: translateY(-1px) rotate(45deg); } .lq-pro-group-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lq-pro-group-count { flex: none; color: var(--lq-muted-fg); font-weight: 400; font-variant-numeric: tabular-nums; } .lq-row .lq-pro-cell--group, .lq-pro-cell--group { font-weight: 600; background: var(--lq-pro-group-bg-0); } .lq-pro-cell--group[data-lq-depth="1"] { background: var(--lq-pro-group-bg-1); } .lq-pro-cell--group[data-lq-depth="2"] { background: var(--lq-pro-group-bg-2); } .lq-pro-cell--group[data-lq-depth="3"] { background: var(--lq-pro-group-bg-3); } .lq-pro-cell--total { font-weight: 700; background: var(--lq-pro-total-bg); box-shadow: inset 0 1px 0 var(--lq-border); } .lq-pro-cell--pivot-total { font-weight: 600; box-shadow: inset 1px 0 0 var(--lq-border); } .lq-pro-group-panel { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 10px; border-bottom: 1px solid var(--lq-border); background: var(--lq-header-bg); color: var(--lq-fg); font-family: var(--lq-font-family); font-size: var(--lq-font-size); transition: background-color 120ms ease, box-shadow 120ms ease; } .lq-pro-group-panel--drag-over { background: var(--lq-pro-drop-bg); box-shadow: inset 0 0 0 2px var(--lq-accent); } .lq-pro-group-panel-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0; padding: 0; list-style: none; } .lq-pro-group-panel-placeholder { color: var(--lq-muted-fg); } .lq-pro-chip { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 2px 0 10px; border: 1px solid var(--lq-input-border, var(--lq-border)); border-radius: 15px; background: var(--lq-pro-chip-bg); color: var(--lq-fg); cursor: grab; user-select: none; } .lq-pro-chip + .lq-pro-chip::before { content: "›"; position: absolute; inset-inline-start: -13px; color: var(--lq-muted-fg); pointer-events: none; } .lq-pro-chip:focus-visible { outline: 2px solid var(--lq-focus-ring); outline-offset: 1px; } .lq-pro-chip--drop-before { box-shadow: -4px 0 0 -1px var(--lq-accent); } .lq-pro-chip--drop-after { box-shadow: 4px 0 0 -1px var(--lq-accent); } [dir="rtl"] .lq-pro-chip + .lq-pro-chip::before { content: "‹"; } [dir="rtl"] .lq-pro-chip--drop-before { box-shadow: 4px 0 0 -1px var(--lq-accent); } [dir="rtl"] .lq-pro-chip--drop-after { box-shadow: -4px 0 0 -1px var(--lq-accent); } .lq-pro-chip-remove { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--lq-muted-fg); font: inherit; line-height: 1; cursor: pointer; } .lq-pro-chip-remove:hover { background: var(--lq-row-hover); color: var(--lq-fg); } @media (prefers-reduced-motion: reduce) { .lq-pro-chevron, .lq-pro-group-panel { transition: none; } } @media (forced-colors: active) { .lq-pro-group-toggle:focus-visible, .lq-pro-chip:focus-visible, .lq-pro-chip-remove:focus-visible { outline: 2px solid Highlight; } .lq-pro-group-panel--drag-over { outline: 2px dashed Highlight; outline-offset: -2px; } .lq-pro-chip--drop-before { border-inline-start: 3px solid Highlight; } .lq-pro-chip--drop-after { border-inline-end: 3px solid Highlight; } } `
```

### GROUP_COLUMN_ID

Kind: const. Import from `@birchui/grid-pro`.

```ts
const GROUP_COLUMN_ID: "__group" = '__group'
```

### GROUP_PANEL_PLACEHOLDER

Kind: const. Import from `@birchui/grid-pro`.

```ts
const GROUP_PANEL_PLACEHOLDER: "Drag a column header here to group" = 'Drag a column header here to group'
```

### InteractionModules

Kind: const. Import from `@birchui/grid-pro`.

```ts
const InteractionModules: readonly GridModule[]
```

### interactionStyles

Kind: const. Import from `@birchui/grid-pro`.

```ts
const interactionStyles: "\n.lq-grid {\n --lq-pro-range-edge: var(--lq-accent, #2563eb);\n --lq-pro-fill-preview-bg: rgba(127, 127, 127, 0.1);\n --lq-pro-fill-preview-edge: var(--lq-muted-fg, #656d76);\n --lq-pro-fill-handle-size: 7px;\n}\n.lq-range-dragging,\n.lq-fill-dragging {\n -webkit-user-select: none;\n user-select: none;\n}\n.lq-fill-dragging,\n.lq-fill-dragging .lq-cell {\n cursor: crosshair;\n}\n.lq-range {\n --lq-pro-edge-top: 0 0 0 0 transparent;\n --lq-pro-edge-right: 0 0 0 0 transparent;\n --lq-pro-edge-bottom: 0 0 0 0 transparent;\n --lq-pro-edge-left: 0 0 0 0 transparent;\n background-image: linear-gradient(var(--lq-range-bg), var(--lq-range-bg));\n box-shadow: var(--lq-pro-edge-top), var(--lq-pro-edge-right), var(--lq-pro-edge-bottom), var(--lq-pro-edge-left);\n}\n.lq-range-top {\n --lq-pro-edge-top: inset 0 1px 0 0 var(--lq-pro-range-edge);\n}\n.lq-range-right {\n --lq-pro-edge-right: inset -1px 0 0 0 var(--lq-pro-range-edge);\n}\n.lq-range-bottom {\n --lq-pro-edge-bottom: inset 0 -1px 0 0 var(--lq-pro-range-edge);\n}\n.lq-range-left {\n --lq-pro-edge-left: inset 1px 0 0 0 var(--lq-pro-range-edge);\n}\n[dir='rtl'] .lq-range-right {\n --lq-pro-edge-right: inset 1px 0 0 0 var(--lq-pro-range-edge);\n}\n[dir='rtl'] .lq-range-left {\n --lq-pro-edge-left: inset -1px 0 0 0 var(--lq-pro-range-edge);\n}\n.lq-range-anchor,\n.lq-range-single {\n background-image: none;\n}\n.lq-fill-target {\n --lq-pro-edge-top: 0 0 0 0 transparent;\n --lq-pro-edge-right: 0 0 0 0 transparent;\n --lq-pro-edge-bottom: 0 0 0 0 transparent;\n --lq-pro-edge-left: 0 0 0 0 transparent;\n background-image: linear-gradient(var(--lq-pro-fill-preview-bg), var(--lq-pro-fill-preview-bg));\n box-shadow: var(--lq-pro-edge-top), var(--lq-pro-edge-right), var(--lq-pro-edge-bottom), var(--lq-pro-edge-left);\n}\n.lq-fill-top {\n --lq-pro-edge-top: inset 0 1px 0 0 var(--lq-pro-fill-preview-edge);\n}\n.lq-fill-right {\n --lq-pro-edge-right: inset -1px 0 0 0 var(--lq-pro-fill-preview-edge);\n}\n.lq-fill-bottom {\n --lq-pro-edge-bottom: inset 0 -1px 0 0 var(--lq-pro-fill-preview-edge);\n}\n.lq-fill-left {\n --lq-pro-edge-left: inset 1px 0 0 0 var(--lq-pro-fill-preview-edge);\n}\n[dir='rtl'] .lq-fill-right {\n --lq-pro-edge-right: inset 1px 0 0 0 var(--lq-pro-fill-preview-edge);\n}\n[dir='rtl'] .lq-fill-left {\n --lq-pro-edge-left: inset -1px 0 0 0 var(--lq-pro-fill-preview-edge);\n}\n.lq-fill-host {\n position: relative;\n}\n.lq-fill-handle {\n position: absolute;\n inset-inline-end: 0;\n bottom: 0;\n z-index: 2;\n box-sizing: border-box;\n width: var(--lq-pro-fill-handle-size);\n height: var(--lq-pro-fill-handle-size);\n border: 1px solid var(--lq-bg, #ffffff);\n background: var(--lq-pro-range-edge);\n cursor: crosshair;\n touch-action: none;\n}\n.lq-detail-cell {\n padding: 0;\n}\n.lq-detail-toggle {\n flex: none;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n margin: 0;\n padding: 0;\n border: 0;\n border-radius: 4px;\n background: transparent;\n color: var(--lq-muted-fg, #656d76);\n cursor: pointer;\n}\n.lq-detail-toggle:hover {\n background: var(--lq-row-hover, #f0f4f8);\n color: var(--lq-fg, #1f2328);\n}\n.lq-detail-toggle:focus-visible {\n outline: 2px solid var(--lq-focus-ring, #2563eb);\n outline-offset: -2px;\n}\n.lq-detail-chevron {\n width: 6px;\n height: 6px;\n margin-left: -2px;\n border-right: 1.5px solid currentColor;\n border-bottom: 1.5px solid currentColor;\n transform: rotate(-45deg);\n transition: transform 120ms ease;\n}\n[dir='rtl'] .lq-detail-toggle[aria-expanded='false'] .lq-detail-chevron {\n margin: 0 -2px 0 0;\n transform: rotate(135deg);\n}\n.lq-detail-toggle[aria-expanded='true'] .lq-detail-chevron {\n margin: -3px 0 0;\n transform: rotate(45deg);\n}\n.lq-detail-row {\n box-sizing: border-box;\n overflow: auto;\n border-bottom: 1px solid var(--lq-border, #d8dee4);\n background: var(--lq-header-bg, #f6f8fa);\n color: var(--lq-fg, #1f2328);\n}\n.lq-detail-body {\n box-sizing: border-box;\n min-height: 100%;\n padding-block: 12px;\n padding-inline: 44px 16px;\n}\n.lq-status-bar {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: flex-end;\n gap: 4px 20px;\n box-sizing: border-box;\n min-height: 32px;\n padding: 6px 12px;\n color: var(--lq-muted-fg, #656d76);\n font-family: var(--lq-font-family, system-ui, sans-serif);\n font-size: 12px;\n font-variant-numeric: tabular-nums;\n}\n.lq-status-bar:empty {\n display: none;\n}\n.lq-status-item[data-key='rows'] {\n margin-inline-end: auto;\n}\n.lq-status-value {\n color: var(--lq-fg, #1f2328);\n font-weight: 600;\n}\n@media (prefers-reduced-motion: reduce) {\n .lq-detail-chevron {\n transition: none;\n }\n}\n@media (forced-colors: active) {\n .lq-range:not(.lq-range-single):not(.lq-range-anchor) {\n forced-color-adjust: none;\n color: HighlightText;\n background-color: Highlight;\n background-image: none;\n }\n .lq-range {\n --lq-pro-range-edge: CanvasText;\n }\n .lq-fill-target {\n outline: 1px dashed CanvasText;\n outline-offset: -1px;\n }\n .lq-fill-handle {\n forced-color-adjust: none;\n background: Highlight;\n border-color: Canvas;\n }\n .lq-detail-toggle:focus-visible {\n outline: 2px solid Highlight;\n }\n}\n" = ` .lq-grid { --lq-pro-range-edge: var(--lq-accent, #2563eb); --lq-pro-fill-preview-bg: rgba(127, 127, 127, 0.1); --lq-pro-fill-preview-edge: var(--lq-muted-fg, #656d76); --lq-pro-fill-handle-size: 7px; } .lq-range-dragging, .lq-fill-dragging { -webkit-user-select: none; user-select: none; } .lq-fill-dragging, .lq-fill-dragging .lq-cell { cursor: crosshair; } .lq-range { --lq-pro-edge-top: 0 0 0 0 transparent; --lq-pro-edge-right: 0 0 0 0 transparent; --lq-pro-edge-bottom: 0 0 0 0 transparent; --lq-pro-edge-left: 0 0 0 0 transparent; background-image: linear-gradient(var(--lq-range-bg), var(--lq-range-bg)); box-shadow: var(--lq-pro-edge-top), var(--lq-pro-edge-right), var(--lq-pro-edge-bottom), var(--lq-pro-edge-left); } .lq-range-top { --lq-pro-edge-top: inset 0 1px 0 0 var(--lq-pro-range-edge); } .lq-range-right { --lq-pro-edge-right: inset -1px 0 0 0 var(--lq-pro-range-edge); } .lq-range-bottom { --lq-pro-edge-bottom: inset 0 -1px 0 0 var(--lq-pro-range-edge); } .lq-range-left { --lq-pro-edge-left: inset 1px 0 0 0 var(--lq-pro-range-edge); } [dir='rtl'] .lq-range-right { --lq-pro-edge-right: inset 1px 0 0 0 var(--lq-pro-range-edge); } [dir='rtl'] .lq-range-left { --lq-pro-edge-left: inset -1px 0 0 0 var(--lq-pro-range-edge); } .lq-range-anchor, .lq-range-single { background-image: none; } .lq-fill-target { --lq-pro-edge-top: 0 0 0 0 transparent; --lq-pro-edge-right: 0 0 0 0 transparent; --lq-pro-edge-bottom: 0 0 0 0 transparent; --lq-pro-edge-left: 0 0 0 0 transparent; background-image: linear-gradient(var(--lq-pro-fill-preview-bg), var(--lq-pro-fill-preview-bg)); box-shadow: var(--lq-pro-edge-top), var(--lq-pro-edge-right), var(--lq-pro-edge-bottom), var(--lq-pro-edge-left); } .lq-fill-top { --lq-pro-edge-top: inset 0 1px 0 0 var(--lq-pro-fill-preview-edge); } .lq-fill-right { --lq-pro-edge-right: inset -1px 0 0 0 var(--lq-pro-fill-preview-edge); } .lq-fill-bottom { --lq-pro-edge-bottom: inset 0 -1px 0 0 var(--lq-pro-fill-preview-edge); } .lq-fill-left { --lq-pro-edge-left: inset 1px 0 0 0 var(--lq-pro-fill-preview-edge); } [dir='rtl'] .lq-fill-right { --lq-pro-edge-right: inset 1px 0 0 0 var(--lq-pro-fill-preview-edge); } [dir='rtl'] .lq-fill-left { --lq-pro-edge-left: inset -1px 0 0 0 var(--lq-pro-fill-preview-edge); } .lq-fill-host { position: relative; } .lq-fill-handle { position: absolute; inset-inline-end: 0; bottom: 0; z-index: 2; box-sizing: border-box; width: var(--lq-pro-fill-handle-size); height: var(--lq-pro-fill-handle-size); border: 1px solid var(--lq-bg, #ffffff); background: var(--lq-pro-range-edge); cursor: crosshair; touch-action: none; } .lq-detail-cell { padding: 0; } .lq-detail-toggle { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--lq-muted-fg, #656d76); cursor: pointer; } .lq-detail-toggle:hover { background: var(--lq-row-hover, #f0f4f8); color: var(--lq-fg, #1f2328); } .lq-detail-toggle:focus-visible { outline: 2px solid var(--lq-focus-ring, #2563eb); outline-offset: -2px; } .lq-detail-chevron { width: 6px; height: 6px; margin-left: -2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 120ms ease; } [dir='rtl'] .lq-detail-toggle[aria-expanded='false'] .lq-detail-chevron { margin: 0 -2px 0 0; transform: rotate(135deg); } .lq-detail-toggle[aria-expanded='true'] .lq-detail-chevron { margin: -3px 0 0; transform: rotate(45deg); } .lq-detail-row { box-sizing: border-box; overflow: auto; border-bottom: 1px solid var(--lq-border, #d8dee4); background: var(--lq-header-bg, #f6f8fa); color: var(--lq-fg, #1f2328); } .lq-detail-body { box-sizing: border-box; min-height: 100%; padding-block: 12px; padding-inline: 44px 16px; } .lq-status-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 20px; box-sizing: border-box; min-height: 32px; padding: 6px 12px; color: var(--lq-muted-fg, #656d76); font-family: var(--lq-font-family, system-ui, sans-serif); font-size: 12px; font-variant-numeric: tabular-nums; } .lq-status-bar:empty { display: none; } .lq-status-item[data-key='rows'] { margin-inline-end: auto; } .lq-status-value { color: var(--lq-fg, #1f2328); font-weight: 600; } @media (prefers-reduced-motion: reduce) { .lq-detail-chevron { transition: none; } } @media (forced-colors: active) { .lq-range:not(.lq-range-single):not(.lq-range-anchor) { forced-color-adjust: none; color: HighlightText; background-color: Highlight; background-image: none; } .lq-range { --lq-pro-range-edge: CanvasText; } .lq-fill-target { outline: 1px dashed CanvasText; outline-offset: -1px; } .lq-fill-handle { forced-color-adjust: none; background: Highlight; border-color: Canvas; } .lq-detail-toggle:focus-visible { outline: 2px solid Highlight; } } `
```

### MasterDetailModule

Kind: const. Import from `@birchui/grid-pro`.

```ts
const MasterDetailModule: GridModule
```

### PanelModules

Kind: const. Import from `@birchui/grid-pro`.

```ts
const PanelModules: readonly GridModule[]
```

### panelStyles

Kind: const. Import from `@birchui/grid-pro`.

```ts
const panelStyles: "\n.lq-grid {\n --lq-pro-sidebar-width: 260px;\n --lq-pro-sparkline-color: var(--lq-accent);\n}\n\n.lq-pro-sidebar {\n position: absolute;\n top: 0;\n inset-inline-end: 0;\n bottom: 0;\n display: flex;\n flex-direction: row-reverse;\n max-width: 100%;\n border-inline-start: 1px solid var(--lq-border);\n background: var(--lq-bg);\n color: var(--lq-fg);\n font-family: var(--lq-font-family);\n font-size: var(--lq-font-size);\n box-shadow: var(--lq-pinned-shadow);\n}\n\n.lq-pro-sidebar-tabs {\n display: flex;\n flex-direction: column;\n gap: 2px;\n padding: 4px 2px;\n background: var(--lq-header-bg);\n}\n\n.lq-pro-sidebar-tab {\n writing-mode: vertical-rl;\n margin: 0;\n padding: 10px 4px;\n border: 0;\n border-radius: var(--lq-radius);\n background: transparent;\n color: var(--lq-header-fg);\n font: inherit;\n cursor: pointer;\n}\n\n.lq-pro-sidebar-tab[aria-selected='true'] {\n background: var(--lq-selection-bg);\n color: var(--lq-fg);\n box-shadow: inset -2px 0 0 var(--lq-accent);\n}\n\n.lq-pro-sidebar-tab:focus-visible,\n.lq-pro-sidebar button:focus-visible,\n.lq-pro-sidebar input:focus-visible,\n.lq-pro-sidebar select:focus-visible,\n.lq-pro-column-item:focus-visible,\n.lq-pro-chart-dialog button:focus-visible,\n.lq-pro-chart-dialog select:focus-visible {\n outline: 2px solid var(--lq-focus-ring);\n outline-offset: -2px;\n}\n\n.lq-pro-tool-panel {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: var(--lq-pro-sidebar-width);\n max-width: calc(100% - 32px);\n min-height: 0;\n padding: 8px;\n overflow: auto;\n border-inline-end: 1px solid var(--lq-border-subtle);\n}\n\n.lq-pro-tool-panel[hidden] {\n display: none;\n}\n\n.lq-pro-tool-panel input[type='search'],\n.lq-pro-tool-panel input[type='text'],\n.lq-pro-tool-panel input[type='number'],\n.lq-pro-tool-panel input[type='date'],\n.lq-pro-tool-panel select {\n box-sizing: border-box;\n width: 100%;\n min-height: 28px;\n padding: 2px 6px;\n border: 1px solid var(--lq-input-border);\n border-radius: var(--lq-radius);\n background: var(--lq-input-bg);\n color: var(--lq-fg);\n font: inherit;\n}\n\n.lq-pro-column-list {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.lq-pro-column-list .lq-pro-column-list {\n padding-inline-start: 16px;\n}\n\n.lq-pro-column-item,\n.lq-pro-column-group-label {\n display: flex;\n align-items: center;\n gap: 6px;\n min-height: 26px;\n padding: 0 4px;\n border-radius: var(--lq-radius);\n cursor: grab;\n}\n\n.lq-pro-column-group-label {\n font-weight: 600;\n cursor: default;\n}\n\n.lq-pro-column-item--drop-before {\n box-shadow: inset 0 2px 0 var(--lq-accent);\n}\n\n.lq-pro-column-item--drop-after {\n box-shadow: inset 0 -2px 0 var(--lq-accent);\n}\n\n.lq-pro-drop-zone {\n display: flex;\n flex-direction: column;\n gap: 4px;\n min-height: 48px;\n padding: 6px;\n border: 1px dashed var(--lq-border);\n border-radius: var(--lq-radius);\n}\n\n.lq-pro-drop-zone--drag-over {\n background: var(--lq-pro-drop-bg, var(--lq-selection-bg));\n border-color: var(--lq-accent);\n}\n\n.lq-pro-drop-zone-title {\n color: var(--lq-muted-fg);\n font-size: 0.9em;\n}\n\n.lq-pro-drop-zone-empty {\n color: var(--lq-placeholder-fg);\n}\n\n.lq-pro-zone-chip {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 4px;\n padding: 2px 4px 2px 8px;\n border: 1px solid var(--lq-border);\n border-radius: var(--lq-radius);\n background: var(--lq-bg);\n}\n\n.lq-pro-icon-button,\n.lq-pro-text-button {\n margin: 0;\n padding: 2px 6px;\n border: 0;\n border-radius: var(--lq-radius);\n background: transparent;\n color: var(--lq-muted-fg);\n font: inherit;\n cursor: pointer;\n}\n\n.lq-pro-text-button {\n color: var(--lq-accent);\n}\n\n.lq-pro-filter-toolbar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.lq-pro-filter-section {\n border-bottom: 1px solid var(--lq-border-subtle);\n}\n\n.lq-pro-filter-toggle {\n display: flex;\n align-items: center;\n gap: 6px;\n width: 100%;\n margin: 0;\n padding: 6px 4px;\n border: 0;\n background: transparent;\n color: var(--lq-fg);\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n\n.lq-pro-filter-badge {\n margin-inline-start: auto;\n padding: 0 6px;\n border-radius: 999px;\n background: var(--lq-accent);\n color: var(--lq-accent-fg);\n font-size: 0.8em;\n}\n\n.lq-pro-filter-body {\n display: flex;\n flex-direction: column;\n gap: 6px;\n padding: 0 4px 8px;\n}\n\n.lq-pro-filter-body[hidden] {\n display: none;\n}\n\n.lq-pro-filter-set {\n max-height: 180px;\n overflow: auto;\n}\n\n.lq-pro-filter-set label {\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.lq-pro-sparkline {\n display: block;\n max-width: 100%;\n height: 100%;\n max-height: 100%;\n overflow: visible;\n fill: none;\n stroke: var(--lq-pro-sparkline-color);\n stroke-width: 1.5;\n stroke-linejoin: round;\n stroke-linecap: round;\n}\n\n.lq-pro-sparkline--area {\n fill: color-mix(in srgb, var(--lq-pro-sparkline-color) 25%, transparent);\n}\n\n.lq-pro-sparkline--bar {\n fill: var(--lq-pro-sparkline-color);\n stroke: none;\n}\n\n.lq-pro-chart-dialog {\n position: absolute;\n display: flex;\n flex-direction: column;\n min-width: 260px;\n min-height: 200px;\n overflow: hidden;\n resize: both;\n border: 1px solid var(--lq-border);\n border-radius: var(--lq-radius);\n background: var(--lq-menu-bg, var(--lq-bg));\n color: var(--lq-fg);\n font-family: var(--lq-font-family);\n font-size: var(--lq-font-size);\n box-shadow: var(--lq-menu-shadow);\n}\n\n.lq-pro-chart-dialog-header {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 4px 4px 4px 10px;\n border-bottom: 1px solid var(--lq-border-subtle);\n background: var(--lq-header-bg);\n cursor: move;\n user-select: none;\n}\n\n.lq-pro-chart-dialog-title {\n flex: 1;\n overflow: hidden;\n font-weight: 600;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.lq-pro-chart-dialog-header select {\n min-height: 24px;\n border: 1px solid var(--lq-input-border);\n border-radius: var(--lq-radius);\n background: var(--lq-input-bg);\n color: var(--lq-fg);\n font: inherit;\n}\n\n.lq-pro-chart-dialog-body {\n position: relative;\n flex: 1;\n min-height: 0;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .lq-pro-sidebar-tab {\n transition: none;\n }\n}\n" = ` .lq-grid { --lq-pro-sidebar-width: 260px; --lq-pro-sparkline-color: var(--lq-accent); } .lq-pro-sidebar { position: absolute; top: 0; inset-inline-end: 0; bottom: 0; display: flex; flex-direction: row-reverse; max-width: 100%; border-inline-start: 1px solid var(--lq-border); background: var(--lq-bg); color: var(--lq-fg); font-family: var(--lq-font-family); font-size: var(--lq-font-size); box-shadow: var(--lq-pinned-shadow); } .lq-pro-sidebar-tabs { display: flex; flex-direction: column; gap: 2px; padding: 4px 2px; background: var(--lq-header-bg); } .lq-pro-sidebar-tab { writing-mode: vertical-rl; margin: 0; padding: 10px 4px; border: 0; border-radius: var(--lq-radius); background: transparent; color: var(--lq-header-fg); font: inherit; cursor: pointer; } .lq-pro-sidebar-tab[aria-selected='true'] { background: var(--lq-selection-bg); color: var(--lq-fg); box-shadow: inset -2px 0 0 var(--lq-accent); } .lq-pro-sidebar-tab:focus-visible, .lq-pro-sidebar button:focus-visible, .lq-pro-sidebar input:focus-visible, .lq-pro-sidebar select:focus-visible, .lq-pro-column-item:focus-visible, .lq-pro-chart-dialog button:focus-visible, .lq-pro-chart-dialog select:focus-visible { outline: 2px solid var(--lq-focus-ring); outline-offset: -2px; } .lq-pro-tool-panel { display: flex; flex-direction: column; gap: 8px; width: var(--lq-pro-sidebar-width); max-width: calc(100% - 32px); min-height: 0; padding: 8px; overflow: auto; border-inline-end: 1px solid var(--lq-border-subtle); } .lq-pro-tool-panel[hidden] { display: none; } .lq-pro-tool-panel input[type='search'], .lq-pro-tool-panel input[type='text'], .lq-pro-tool-panel input[type='number'], .lq-pro-tool-panel input[type='date'], .lq-pro-tool-panel select { box-sizing: border-box; width: 100%; min-height: 28px; padding: 2px 6px; border: 1px solid var(--lq-input-border); border-radius: var(--lq-radius); background: var(--lq-input-bg); color: var(--lq-fg); font: inherit; } .lq-pro-column-list { margin: 0; padding: 0; list-style: none; } .lq-pro-column-list .lq-pro-column-list { padding-inline-start: 16px; } .lq-pro-column-item, .lq-pro-column-group-label { display: flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 4px; border-radius: var(--lq-radius); cursor: grab; } .lq-pro-column-group-label { font-weight: 600; cursor: default; } .lq-pro-column-item--drop-before { box-shadow: inset 0 2px 0 var(--lq-accent); } .lq-pro-column-item--drop-after { box-shadow: inset 0 -2px 0 var(--lq-accent); } .lq-pro-drop-zone { display: flex; flex-direction: column; gap: 4px; min-height: 48px; padding: 6px; border: 1px dashed var(--lq-border); border-radius: var(--lq-radius); } .lq-pro-drop-zone--drag-over { background: var(--lq-pro-drop-bg, var(--lq-selection-bg)); border-color: var(--lq-accent); } .lq-pro-drop-zone-title { color: var(--lq-muted-fg); font-size: 0.9em; } .lq-pro-drop-zone-empty { color: var(--lq-placeholder-fg); } .lq-pro-zone-chip { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 2px 4px 2px 8px; border: 1px solid var(--lq-border); border-radius: var(--lq-radius); background: var(--lq-bg); } .lq-pro-icon-button, .lq-pro-text-button { margin: 0; padding: 2px 6px; border: 0; border-radius: var(--lq-radius); background: transparent; color: var(--lq-muted-fg); font: inherit; cursor: pointer; } .lq-pro-text-button { color: var(--lq-accent); } .lq-pro-filter-toolbar { display: flex; align-items: center; justify-content: space-between; } .lq-pro-filter-section { border-bottom: 1px solid var(--lq-border-subtle); } .lq-pro-filter-toggle { display: flex; align-items: center; gap: 6px; width: 100%; margin: 0; padding: 6px 4px; border: 0; background: transparent; color: var(--lq-fg); font: inherit; text-align: start; cursor: pointer; } .lq-pro-filter-badge { margin-inline-start: auto; padding: 0 6px; border-radius: 999px; background: var(--lq-accent); color: var(--lq-accent-fg); font-size: 0.8em; } .lq-pro-filter-body { display: flex; flex-direction: column; gap: 6px; padding: 0 4px 8px; } .lq-pro-filter-body[hidden] { display: none; } .lq-pro-filter-set { max-height: 180px; overflow: auto; } .lq-pro-filter-set label { display: flex; align-items: center; gap: 6px; } .lq-pro-sparkline { display: block; max-width: 100%; height: 100%; max-height: 100%; overflow: visible; fill: none; stroke: var(--lq-pro-sparkline-color); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; } .lq-pro-sparkline--area { fill: color-mix(in srgb, var(--lq-pro-sparkline-color) 25%, transparent); } .lq-pro-sparkline--bar { fill: var(--lq-pro-sparkline-color); stroke: none; } .lq-pro-chart-dialog { position: absolute; display: flex; flex-direction: column; min-width: 260px; min-height: 200px; overflow: hidden; resize: both; border: 1px solid var(--lq-border); border-radius: var(--lq-radius); background: var(--lq-menu-bg, var(--lq-bg)); color: var(--lq-fg); font-family: var(--lq-font-family); font-size: var(--lq-font-size); box-shadow: var(--lq-menu-shadow); } .lq-pro-chart-dialog-header { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border-bottom: 1px solid var(--lq-border-subtle); background: var(--lq-header-bg); cursor: move; user-select: none; } .lq-pro-chart-dialog-title { flex: 1; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; } .lq-pro-chart-dialog-header select { min-height: 24px; border: 1px solid var(--lq-input-border); border-radius: var(--lq-radius); background: var(--lq-input-bg); color: var(--lq-fg); font: inherit; } .lq-pro-chart-dialog-body { position: relative; flex: 1; min-height: 0; } @media (prefers-reduced-motion: reduce) { .lq-pro-sidebar-tab { transition: none; } } `
```

### PIVOT_HEADER_SEPARATOR

Kind: const. Import from `@birchui/grid-pro`.

```ts
const PIVOT_HEADER_SEPARATOR: " › " = ' › '
```

### PIVOT_TOTAL_LABEL

Kind: const. Import from `@birchui/grid-pro`.

```ts
const PIVOT_TOTAL_LABEL: "Total" = 'Total'
```

### PivotModule

Kind: const. Import from `@birchui/grid-pro`.

```ts
const PivotModule: GridModule
```

### RangeSelectionModule

Kind: const. Import from `@birchui/grid-pro`.

```ts
const RangeSelectionModule: GridModule
```

### RowGroupingModule

Kind: const. Import from `@birchui/grid-pro`.

```ts
const RowGroupingModule: GridModule
```

### ServerSideRowModelModule

Kind: const. Import from `@birchui/grid-pro`.

```ts
const ServerSideRowModelModule: GridModule
```

### serverSideStyles

Kind: const. Import from `@birchui/grid-pro`.

```ts
const serverSideStyles: "\n.lq-grid {\n --lq-pro-skeleton-bg: color-mix(in srgb, var(--lq-fg) 9%, var(--lq-bg));\n --lq-pro-skeleton-shine: color-mix(in srgb, var(--lq-fg) 3%, var(--lq-bg));\n --lq-pro-error-fg: #b42318;\n}\n\n.lq-theme-dark,\n.lq-theme-dark .lq-grid:not(.lq-theme-light) {\n --lq-pro-error-fg: #ff8b7e;\n}\n\n@media (prefers-color-scheme: dark) {\n .lq-theme-auto,\n .lq-theme-auto .lq-grid:not(.lq-theme-light):not(.lq-theme-dark) {\n --lq-pro-error-fg: #ff8b7e;\n }\n}\n\n.lq-pro-skeleton {\n display: block;\n height: 0.8em;\n max-width: 100%;\n border-radius: 4px;\n background: linear-gradient(\n 90deg,\n var(--lq-pro-skeleton-bg) 0%,\n var(--lq-pro-skeleton-shine) 50%,\n var(--lq-pro-skeleton-bg) 100%\n );\n background-size: 300% 100%;\n animation: lq-pro-shimmer 1.4s ease-in-out infinite;\n}\n\n.lq-align-right .lq-pro-skeleton { margin-left: auto; }\n.lq-align-center .lq-pro-skeleton { margin: 0 auto; }\n\n@keyframes lq-pro-shimmer {\n from { background-position: 100% 0; }\n to { background-position: 0 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .lq-pro-skeleton { animation: none; }\n}\n\n.lq-row:has(.lq-pro-cell--loading) .lq-select-checkbox { visibility: hidden; }\n\n.lq-pro-load-error {\n display: flex;\n align-items: center;\n gap: 12px;\n height: 100%;\n padding: 0 var(--lq-cell-padding);\n color: var(--lq-pro-error-fg);\n}\n\n.lq-pro-load-error-message {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.lq-pro-retry {\n flex: none;\n padding: 2px 10px;\n border: 1px solid var(--lq-border);\n border-radius: var(--lq-radius);\n background: var(--lq-bg);\n color: var(--lq-fg);\n font: inherit;\n cursor: pointer;\n}\n\n.lq-pro-retry:hover { background: var(--lq-row-hover); }\n.lq-pro-retry:focus-visible { outline: 2px solid var(--lq-focus-ring); outline-offset: 1px; }\n\n@media (forced-colors: active) {\n .lq-pro-skeleton { forced-color-adjust: none; background: GrayText; }\n .lq-pro-retry:focus-visible { outline: 2px solid Highlight; }\n}\n" = ` .lq-grid { --lq-pro-skeleton-bg: color-mix(in srgb, var(--lq-fg) 9%, var(--lq-bg)); --lq-pro-skeleton-shine: color-mix(in srgb, var(--lq-fg) 3%, var(--lq-bg)); --lq-pro-error-fg: #b42318; } .lq-theme-dark, .lq-theme-dark .lq-grid:not(.lq-theme-light) { --lq-pro-error-fg: #ff8b7e; } @media (prefers-color-scheme: dark) { .lq-theme-auto, .lq-theme-auto .lq-grid:not(.lq-theme-light):not(.lq-theme-dark) { --lq-pro-error-fg: #ff8b7e; } } .lq-pro-skeleton { display: block; height: 0.8em; max-width: 100%; border-radius: 4px; background: linear-gradient( 90deg, var(--lq-pro-skeleton-bg) 0%, var(--lq-pro-skeleton-shine) 50%, var(--lq-pro-skeleton-bg) 100% ); background-size: 300% 100%; animation: lq-pro-shimmer 1.4s ease-in-out infinite; } .lq-align-right .lq-pro-skeleton { margin-left: auto; } .lq-align-center .lq-pro-skeleton { margin: 0 auto; } @keyframes lq-pro-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } } @media (prefers-reduced-motion: reduce) { .lq-pro-skeleton { animation: none; } } .lq-row:has(.lq-pro-cell--loading) .lq-select-checkbox { visibility: hidden; } .lq-pro-load-error { display: flex; align-items: center; gap: 12px; height: 100%; padding: 0 var(--lq-cell-padding); color: var(--lq-pro-error-fg); } .lq-pro-load-error-message { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lq-pro-retry { flex: none; padding: 2px 10px; border: 1px solid var(--lq-border); border-radius: var(--lq-radius); background: var(--lq-bg); color: var(--lq-fg); font: inherit; cursor: pointer; } .lq-pro-retry:hover { background: var(--lq-row-hover); } .lq-pro-retry:focus-visible { outline: 2px solid var(--lq-focus-ring); outline-offset: 1px; } @media (forced-colors: active) { .lq-pro-skeleton { forced-color-adjust: none; background: GrayText; } .lq-pro-retry:focus-visible { outline: 2px solid Highlight; } } `
```

### SideBarModule

Kind: const. Import from `@birchui/grid-pro`.

```ts
const SideBarModule: GridModule
```

### SparklineModule

Kind: const. Import from `@birchui/grid-pro`.

```ts
const SparklineModule: GridModule
```

### StatusBarModule

Kind: const. Import from `@birchui/grid-pro`.

```ts
const StatusBarModule: GridModule
```

### TOTAL_ROW_ID

Kind: const. Import from `@birchui/grid-pro`.

```ts
const TOTAL_ROW_ID: "total:grand" = 'total:grand'
```

### TreeDataModule

Kind: const. Import from `@birchui/grid-pro`.

```ts
const TreeDataModule: GridModule
```

### Accumulator

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface Accumulator
```

| Property | Type | Description |
| --- | --- | --- |
| `add` | `(value: unknown, row?: unknown) => void` |  |
| `result` | `() => unknown` |  |

### AggregationApi

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface AggregationApi
```

| Property | Type | Description |
| --- | --- | --- |
| `getColumnAggregate` | `(colId: string, aggFunc?: AggFuncInput) => unknown` |  |

### BuildTreeOptions

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface BuildTreeOptions<T>
```

| Property | Type | Description |
| --- | --- | --- |
| `getId` | `(row: T, index: number) => string` |  |
| `getDataPath?` | `(row: T, index: number) => readonly unknown[] \| null \| undefined` |  |
| `getParentId?` | `(row: T, index: number) => string \| number \| null \| undefined` |  |
| `idPrefix?` | `string` |  |

### CellRange

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface CellRange
```

| Property | Type | Description |
| --- | --- | --- |
| `startRow` | `number` |  |
| `endRow` | `number` |  |
| `startCol` | `string` |  |
| `endCol` | `string` |  |

### ExcelExportOptions

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface ExcelExportOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `fileName?` | `string` |  |
| `sheetName?` | `string` |  |
| `onlySelected?` | `boolean` |  |
| `allRows?` | `boolean` |  |

### ExcelImportOptions

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface ExcelImportOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `sheet?` | `number \| string` |  |
| `mode?` | `'replace' \| 'append'` |  |
| `columnMap?` | `Record<string, string>` |  |

### ExcelImportResult

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface ExcelImportResult<TRow = RowData>
```

| Property | Type | Description |
| --- | --- | --- |
| `rows` | `TRow[]` |  |
| `mappedColumns` | `Record<string, string>` |  |
| `unmappedHeaders` | `string[]` |  |

### ExcelViewSource

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface ExcelViewSource<TRow = RowData>
```

| Property | Type | Description |
| --- | --- | --- |
| `api` | `ExcelViewApi<TRow>` |  |
| `allRows?` | `readonly DisplayRow<TRow>[]` |  |
| `range?` | `{ top: number; bottom: number; columnIds: readonly string[] } \| null` |  |

### FillOptions

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface FillOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `backward?` | `boolean` |  |
| `invert?` | `boolean` |  |

### FillTarget

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface FillTarget
```

| Property | Type | Description |
| --- | --- | --- |
| `direction` | `FillDirection` |  |
| `bounds` | `RangeBounds` |  |

### GroupLevel

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface GroupLevel<T>
```

| Property | Type | Description |
| --- | --- | --- |
| `colId` | `string` |  |
| `getKey` | `(row: T, index: number) => unknown` |  |
| `formatKey?` | `(key: unknown) => string` |  |

### GroupNode

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface GroupNode<T>
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `colId` | `string` |  |
| `key` | `unknown` |  |
| `label` | `string` |  |
| `depth` | `number` |  |
| `parentId` | `string \| undefined` |  |
| `path` | `GroupPathItem[]` |  |
| `leaves` | `T[]` |  |
| `indices` | `number[]` |  |
| `children` | `GroupNode<T>[]` |  |
| `aggregates` | `Record<string, unknown>` |  |

### GroupPathItem

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface GroupPathItem
```

| Property | Type | Description |
| --- | --- | --- |
| `colId` | `string` |  |
| `key` | `unknown` |  |

### GroupResult

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface GroupResult<T>
```

| Property | Type | Description |
| --- | --- | --- |
| `groups` | `GroupNode<T>[]` |  |
| `total` | `Record<string, unknown> \| null` |  |
| `levelCount` | `number` |  |
| `groupCount` | `number` |  |

### GroupRowsOptions

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface GroupRowsOptions<T>
```

| Property | Type | Description |
| --- | --- | --- |
| `levels` | `readonly GroupLevel<T>[]` |  |
| `aggregate?` | `GroupAggregator<T>` |  |
| `totals?` | `boolean` |  |
| `sort?` | `readonly GroupSortItem[]` |  |
| `groupColumnId?` | `string` |  |
| `compare?` | `CompareFn` |  |
| `idPrefix?` | `string` |  |

### GroupSortItem

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface GroupSortItem
```

| Property | Type | Description |
| --- | --- | --- |
| `colId` | `string` |  |
| `dir` | `'asc' \| 'desc'` |  |

### InMemoryDatasourceOptions

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface InMemoryDatasourceOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `latencyMs?` | `number` |  |
| `reportRowCount?` | `boolean` |  |

### PivotApi

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface PivotApi
```

| Property | Type | Description |
| --- | --- | --- |
| `setPivot` | `(options: PivotOptions \| null) => void` |  |
| `getPivotResult` | `() => PivotMatrix \| null` |  |

### PivotColumn

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface PivotColumn
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `header` | `string` |  |
| `headerPath` | `string[]` |  |
| `key` | `PivotKey \| null` |  |
| `valueColId` | `string` |  |
| `valueKey` | `string` |  |
| `valueIndex` | `number` |  |
| `keyIndex` | `number` |  |
| `aggFunc` | `AggFuncInput` |  |
| `isTotal` | `boolean` |  |

### PivotDimension

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface PivotDimension<T>
```

| Property | Type | Description |
| --- | --- | --- |
| `colId` | `string` |  |
| `getKey` | `(row: T, index: number) => unknown` |  |
| `formatKey?` | `(key: unknown) => string` |  |
| `header?` | `string` |  |

### PivotEngineOptions

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface PivotEngineOptions<T> extends PivotLayoutOptions<T>
```

| Property | Type | Description |
| --- | --- | --- |
| `rows` | `readonly PivotDimension<T>[]` |  |
| `sort?` | `readonly GroupSortItem[]` |  |
| `groupColumnId?` | `string` |  |
| `groupIdPrefix?` | `string` |  |
| `layout?` | `PivotLayout<T>` |  |
| `columns` | `readonly PivotDimension<T>[]` | Inherited from PivotLayoutOptions. |
| `values` | `readonly PivotValueSpec<T>[]` | Inherited from PivotLayoutOptions. |
| `totals?` | `boolean \| undefined` | Inherited from PivotLayoutOptions. |
| `compare?` | `CompareFn \| undefined` | Inherited from PivotLayoutOptions. |
| `idPrefix?` | `string \| undefined` | Inherited from PivotLayoutOptions. |
| `separator?` | `string \| undefined` | Inherited from PivotLayoutOptions. |
| `totalLabel?` | `string \| undefined` | Inherited from PivotLayoutOptions. |

### PivotKey

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface PivotKey
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `values` | `unknown[]` |  |
| `labels` | `string[]` |  |

### PivotLayout

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface PivotLayout<T>
```

| Property | Type | Description |
| --- | --- | --- |
| `keys` | `PivotKey[]` |  |
| `columns` | `PivotColumn[]` |  |
| `locate` | `(row: T, index: number) => number` |  |

### PivotLayoutOptions

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface PivotLayoutOptions<T>
```

| Property | Type | Description |
| --- | --- | --- |
| `columns` | `readonly PivotDimension<T>[]` |  |
| `values` | `readonly PivotValueSpec<T>[]` |  |
| `totals?` | `boolean` |  |
| `compare?` | `CompareFn` |  |
| `idPrefix?` | `string` |  |
| `separator?` | `string` |  |
| `totalLabel?` | `string` |  |

### PivotMatrix

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface PivotMatrix
```

| Property | Type | Description |
| --- | --- | --- |
| `headers` | `string[]` |  |
| `headerRows` | `string[][]` |  |
| `columnIds` | `string[]` |  |
| `rows` | `unknown[][]` |  |

### PivotResult

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface PivotResult<T>
```

| Property | Type | Description |
| --- | --- | --- |
| `layout` | `PivotLayout<T>` |  |
| `groups` | `GroupNode<T>[]` |  |
| `total` | `Record<string, unknown>` |  |
| `levelCount` | `number` |  |
| `unmatched` | `number` |  |

### PivotValueSpec

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface PivotValueSpec<T>
```

| Property | Type | Description |
| --- | --- | --- |
| `colId` | `string` |  |
| `aggFunc?` | `AggFuncInput` |  |
| `getValue` | `(row: T, index: number) => unknown` |  |
| `header?` | `string` |  |

### RangeBounds

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface RangeBounds
```

| Property | Type | Description |
| --- | --- | --- |
| `top` | `number` |  |
| `bottom` | `number` |  |
| `left` | `number` |  |
| `right` | `number` |  |

### RangeChangedEvent

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface RangeChangedEvent
```

| Property | Type | Description |
| --- | --- | --- |
| `ranges` | `CellRange[]` |  |

### RangeStats

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface RangeStats
```

| Property | Type | Description |
| --- | --- | --- |
| `cellCount` | `number` |  |
| `count` | `number` |  |
| `numericCount` | `number` |  |
| `sum` | `number` |  |
| `avg` | `number \| null` |  |
| `min` | `number \| null` |  |
| `max` | `number \| null` |  |

### ResolvedSideBarOptions

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface ResolvedSideBarOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `toolPanels` | `ToolPanelId[]` |  |
| `defaultToolPanel` | `ToolPanelId \| null` |  |
| `hiddenByDefault` | `boolean` |  |

### ResolvedStatusBarOptions

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface ResolvedStatusBarOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `rowCount` | `boolean` |  |
| `selectedCount` | `boolean` |  |
| `aggregates` | `StatusAggregate[]` |  |

### RowGroupingApi

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface RowGroupingApi
```

| Property | Type | Description |
| --- | --- | --- |
| `setGroupBy` | `(colIds: string[] \| null) => void` |  |
| `getGroupBy` | `() => string[]` |  |
| `expandToLevel` | `(level: number) => void` |  |

### RowGroupingConfig

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface RowGroupingConfig
```

| Property | Type | Description |
| --- | --- | --- |
| `hideGroupedColumns?` | `boolean` |  |

### ServerSideApi

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface ServerSideApi
```

| Property | Type | Description |
| --- | --- | --- |
| `refreshServerSide` | `(options?: ServerSideRefreshOptions) => void` |  |
| `getServerSideCacheState` | `() => ServerSideCacheState` |  |
| `onServerSideError` | `(listener: (event: ServerSideErrorEvent) => void) => () => void` |  |
| `isAllSelected` | `() => boolean` |  |

### ServerSideBlockState

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface ServerSideBlockState
```

| Property | Type | Description |
| --- | --- | --- |
| `index` | `number` |  |
| `startRow` | `number` |  |
| `endRow` | `number` |  |
| `status` | `ServerSideBlockStatus` |  |
| `rowCount` | `number` |  |
| `isStale` | `boolean` |  |

### ServerSideCacheState

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface ServerSideCacheState
```

| Property | Type | Description |
| --- | --- | --- |
| `rowCount` | `number` |  |
| `isRowCountKnown` | `boolean` |  |
| `loadedBlockCount` | `number` |  |
| `loadingBlockCount` | `number` |  |
| `failedBlockCount` | `number` |  |
| `levels` | `ServerSideLevelState[]` |  |

### ServerSideErrorEvent

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface ServerSideErrorEvent
```

| Property | Type | Description |
| --- | --- | --- |
| `error` | `unknown` |  |
| `startRow` | `number` |  |
| `endRow` | `number` |  |
| `groupKeys` | `string[]` |  |
| `retry` | `() => void` |  |

### ServerSideLevelState

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface ServerSideLevelState
```

| Property | Type | Description |
| --- | --- | --- |
| `groupKeys` | `string[]` |  |
| `rowCount` | `number` |  |
| `isRowCountKnown` | `boolean` |  |
| `blocks` | `ServerSideBlockState[]` |  |

### ServerSideRefreshOptions

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface ServerSideRefreshOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `purge?` | `boolean` |  |

### ShapedTreeNode

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface ShapedTreeNode<T>
```

| Property | Type | Description |
| --- | --- | --- |
| `node` | `TreeNode<T>` |  |
| `children` | `ShapedTreeNode<T>[]` |  |
| `leaves` | `T[]` |  |
| `leafIndices` | `number[]` |  |
| `aggregates` | `Record<string, unknown> \| undefined` |  |
| `order` | `number` |  |

### ShapeTreeOptions

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface ShapeTreeOptions<T>
```

| Property | Type | Description |
| --- | --- | --- |
| `isMatch?` | `(node: TreeNode<T>) => boolean` |  |
| `compare?` | `(a: ShapedTreeNode<T>, b: ShapedTreeNode<T>) => number` |  |
| `aggregate?` | `GroupAggregator<T>` |  |
| `collectLeaves?` | `boolean` |  |

### SideBarOptions

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface SideBarOptions<TRow = RowData>
```

| Property | Type | Description |
| --- | --- | --- |
| `toolPanels?` | `ToolPanelId[]` |  |
| `defaultToolPanel?` | `ToolPanelId \| null` |  |
| `hiddenByDefault?` | `boolean` |  |
| `includeColumn?` | `(column: ResolvedColumn<TRow>) => boolean` |  |

### SideBarState

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface SideBarState
```

| Property | Type | Description |
| --- | --- | --- |
| `visible` | `boolean` |  |
| `openToolPanel` | `ToolPanelId \| null` |  |

### SparklineColumnOptions

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface SparklineColumnOptions<TRow = Record<string, unknown>>
```

| Property | Type | Description |
| --- | --- | --- |
| `type?` | `SparklineType` |  |
| `valueKey?` | `string` |  |
| `values?` | `(row: TRow) => readonly unknown[] \| null \| undefined` |  |
| `width?` | `number` |  |
| `height?` | `number` |  |
| `color?` | `string` |  |

### SparklineSummary

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface SparklineSummary
```

| Property | Type | Description |
| --- | --- | --- |
| `count` | `number` |  |
| `first` | `number \| null` |  |
| `last` | `number \| null` |  |
| `min` | `number \| null` |  |
| `max` | `number \| null` |  |

### TreeNode

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface TreeNode<T>
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `key` | `string` |  |
| `row` | `T \| undefined` |  |
| `index` | `number` |  |
| `depth` | `number` |  |
| `parent` | `TreeNode<T> \| null` |  |
| `children` | `TreeNode<T>[]` |  |
| `isFiller` | `boolean` |  |

### TreeResult

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface TreeResult<T>
```

| Property | Type | Description |
| --- | --- | --- |
| `roots` | `TreeNode<T>[]` |  |
| `byId` | `Map<string, TreeNode<T>>` |  |
| `nodeCount` | `number` |  |
| `fillerCount` | `number` |  |

### TsvOptions

Kind: interface. Import from `@birchui/grid-pro`.

```ts
interface TsvOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `newline?` | `'\n' \| '\r\n'` |  |

### AggFuncInput

Kind: type. Import from `@birchui/grid-pro`.

```ts
type AggFuncInput = AggFuncName | AggFunc;
```

### ColumnZone

Kind: type. Import from `@birchui/grid-pro`.

```ts
type ColumnZone = 'rowGroups' | 'values' | 'pivotColumns';
```

### CompareFn

Kind: type. Import from `@birchui/grid-pro`.

```ts
type CompareFn = (colId: string, a: unknown, b: unknown) => number;
```

### ExcelViewApi

Kind: type. Import from `@birchui/grid-pro`.

```ts
type ExcelViewApi<TRow = RowData> = Pick<
  GridApi<TRow>,
  | 'getDisplayColumns'
  | 'getColumns'
  | 'getDisplayRows'
  | 'getValue'
  | 'getFormattedValue'
  | 'getSelectedIds'
  | 'getOptions'
  | 'getRowId'
> &
  Partial<Pick<GridApi<TRow>, 'getAllDisplayRows'>>;
```

### FillDirection

Kind: type. Import from `@birchui/grid-pro`.

```ts
type FillDirection = 'up' | 'down' | 'left' | 'right';
```

### FillPlan

Kind: type. Import from `@birchui/grid-pro`.

```ts
type FillPlan = { mode: 'series'; series: FillSeries } | { mode: 'copy' };
```

### FillSeries

Kind: type. Import from `@birchui/grid-pro`.

```ts
type FillSeries =
  | { kind: 'number'; step: number; decimals: number }
  | { kind: 'day'; step: number }
  | { kind: 'month'; step: number; endOfMonth: boolean }
  | { kind: 'time'; step: number };
```

### GroupAggregator

Kind: type. Import from `@birchui/grid-pro`.

```ts
type GroupAggregator<T> = (leaves: readonly T[], indices: readonly number[]) => Record<string, unknown>;
```

### ServerSideBlockStatus

Kind: type. Import from `@birchui/grid-pro`.

```ts
type ServerSideBlockStatus = 'loading' | 'loaded' | 'failed';
```

### SparklineType

Kind: type. Import from `@birchui/grid-pro`.

```ts
type SparklineType = 'line' | 'bar' | 'area';
```

### StatusAggregate

Kind: type. Import from `@birchui/grid-pro`.

```ts
type StatusAggregate = 'sum' | 'avg' | 'count' | 'min' | 'max';
```

### ToolPanelId

Kind: type. Import from `@birchui/grid-pro`.

```ts
type ToolPanelId = 'columns' | 'filters';
```

## @birchui/grid-pro/charts

### tableFromColumns

Kind: function. Import from `@birchui/grid-pro/charts`.

```ts
function tableFromColumns<TRow>(api: GridApi<TRow>, colIds: readonly string[]): RangeTable | null
```

| Parameter | Type | Description |
| --- | --- | --- |
| `api` | `GridApi<TRow>` |  |
| `colIds` | `readonly string[]` |  |

### tableFromGroups

Kind: function. Import from `@birchui/grid-pro/charts`.

```ts
function tableFromGroups<TRow>(api: GridApi<TRow>): RangeTable | null
```

| Parameter | Type | Description |
| --- | --- | --- |
| `api` | `GridApi<TRow>` |  |

### tableFromRange

Kind: function. Import from `@birchui/grid-pro/charts`.

```ts
function tableFromRange<TRow>(api: GridApi<TRow>, range: CellRange): RangeTable | null
```

| Parameter | Type | Description |
| --- | --- | --- |
| `api` | `GridApi<TRow>` |  |
| `range` | `CellRange` |  |

### IntegratedChartsModule

Kind: const. Import from `@birchui/grid-pro/charts`.

```ts
const IntegratedChartsModule: GridModule
```

### CreateRangeChartParams

Kind: interface. Import from `@birchui/grid-pro/charts`.

```ts
interface CreateRangeChartParams<TRow = RowData>
```

| Property | Type | Description |
| --- | --- | --- |
| `type?` | `RangeChartType` |  |
| `title?` | `string` |  |
| `range?` | `CellRange` |  |
| `columns?` | `((keyof TRow & string) \| (string & {}))[]` |  |
| `source?` | `'range' \| 'groups' \| 'columns'` |  |
| `stacked?` | `boolean` |  |

### RangeChartRef

Kind: interface. Import from `@birchui/grid-pro/charts`.

```ts
interface RangeChartRef
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly id` | `string` |  |
| `readonly element` | `HTMLElement` |  |
| `readonly type` | `RangeChartType` |  |
| `setType` | `(type: RangeChartType) => void` |  |
| `refresh` | `() => void` |  |
| `destroy` | `() => void` |  |

### RangeTable

Kind: interface. Import from `@birchui/grid-pro/charts`.

```ts
interface RangeTable
```

| Property | Type | Description |
| --- | --- | --- |
| `headers` | `string[]` |  |
| `values` | `unknown[][]` |  |

### RangeChartType

Kind: type. Import from `@birchui/grid-pro/charts`.

```ts
type RangeChartType = 'bar' | 'column' | 'line' | 'area' | 'pie' | 'donut' | 'scatter';
```
