# @birchui/core API reference

> Birch UI Grid: fast, accessible, framework-agnostic data grid

```bash
npm install @birchui/core
```

## @birchui/core

### assertInputLimit

Kind: function. Import from `@birchui/core`.

```ts
function assertInputLimit(code: InputLimitCode, actual: number, limit: number, subject: string, unit: string): void
```

| Parameter | Type | Description |
| --- | --- | --- |
| `code` | `InputLimitCode` |  |
| `actual` | `number` |  |
| `limit` | `number` |  |
| `subject` | `string` |  |
| `unit` | `string` |  |

### clamp

Kind: function. Import from `@birchui/core`.

```ts
function clamp(value: number, min: number, max: number): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `number` |  |
| `min` | `number` |  |
| `max` | `number` |  |

### compareByType

Kind: function. Import from `@birchui/core`.

```ts
function compareByType(type: ColumnType, a: unknown, b: unknown, locale?: string): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `type` | `ColumnType` |  |
| `a` | `unknown` |  |
| `b` | `unknown` |  |
| `locale?` | `string` |  |

### compileFilter

Kind: function. Import from `@birchui/core`.

```ts
function compileFilter(model: FilterModel): FilterPredicate
```

| Parameter | Type | Description |
| --- | --- | --- |
| `model` | `FilterModel` |  |

### createGrid

Kind: function. Import from `@birchui/core`.

```ts
function createGrid<TRow = RowData>(container: HTMLElement, options: GridOptions<TRow>): GridApi<TRow>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `container` | `HTMLElement` |  |
| `options` | `GridOptions<TRow>` |  |

### createTranslator

Kind: function. Import from `@birchui/core`.

```ts
function createTranslator(overrides?: LocaleTextInput, locale?: string): Translate
```

| Parameter | Type | Description |
| --- | --- | --- |
| `overrides?` | `LocaleTextInput` |  |
| `locale?` | `string` |  |

### defineWidget

Kind: function. Import from `@birchui/core`.

```ts
function defineWidget<TOptions, TEvents extends object, TWidget extends Widget<TOptions, TEvents>>(definition: WidgetDefinition<TOptions, TEvents, TWidget>): WidgetDefinition<TOptions, TEvents, TWidget>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `definition` | `WidgetDefinition<TOptions, TEvents, TWidget>` |  |

### describeFilter

Kind: function. Import from `@birchui/core`.

```ts
function describeFilter(model: FilterModel): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `model` | `FilterModel` |  |

### ensureStyles

Kind: function. Import from `@birchui/core`.

```ts
function ensureStyles(id: string, cssText: string, doc: Document = document): void
```

| Parameter | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `cssText` | `string` |  |
| `doc?` | `Document` |  |

### escapeCsvField

Kind: function. Import from `@birchui/core`.

```ts
function escapeCsvField(value: unknown, separator: string): string
```

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

### formatByType

Kind: function. Import from `@birchui/core`.

```ts
function formatByType(type: ColumnType, value: unknown, locale?: string): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `type` | `ColumnType` |  |
| `value` | `unknown` |  |
| `locale?` | `string` |  |

### formatMessage

Kind: function. Import from `@birchui/core`.

```ts
function formatMessage(message: LocaleMessage, locale: string, params?: Record<string, string | number>): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `message` | `LocaleMessage` |  |
| `locale` | `string` |  |
| `params?` | `Record<string, string \| number>` |  |

### getDefaultLocaleText

Kind: function. Import from `@birchui/core`.

```ts
function getDefaultLocaleText(): LocalePack
```

### h

Kind: function. Import from `@birchui/core`.

```ts
function h<K extends keyof HTMLElementTagNameMap>(tag: K, attrs: Record<string, string | number | boolean | undefined> = {}, children: (Node | string)[] = []): HTMLElementTagNameMap[K]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `tag` | `K` |  |
| `attrs?` | `Record<string, string \| number \| boolean \| undefined>` |  |
| `children?` | `(Node \| string)[]` |  |

### isBlank

Kind: function. Import from `@birchui/core`.

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

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

### isLocalhost

Kind: function. Import from `@birchui/core`.

```ts
function isLocalhost(loc: { hostname: string } | undefined = globalThis.location): boolean
```

| Parameter | Type | Description |
| --- | --- | --- |
| `loc?` | `{ hostname: string } \| undefined` |  |

### parseByType

Kind: function. Import from `@birchui/core`.

```ts
function parseByType(type: ColumnType, input: string, previous: unknown): unknown
```

| Parameter | Type | Description |
| --- | --- | --- |
| `type` | `ColumnType` |  |
| `input` | `string` |  |
| `previous` | `unknown` |  |

### parseFilterInput

Kind: function. Import from `@birchui/core`.

```ts
function parseFilterInput(kind: FilterKind, input: string): FilterModel | null
```

| Parameter | Type | Description |
| --- | --- | --- |
| `kind` | `FilterKind` |  |
| `input` | `string` |  |

### pathGetter

Kind: function. Import from `@birchui/core`.

```ts
function pathGetter(path: string): PathGetter
```

| Parameter | Type | Description |
| --- | --- | --- |
| `path` | `string` |  |

### pathSetter

Kind: function. Import from `@birchui/core`.

```ts
function pathSetter(path: string): PathSetter
```

| Parameter | Type | Description |
| --- | --- | --- |
| `path` | `string` |  |

### resolveDirection

Kind: function. Import from `@birchui/core`.

```ts
function resolveDirection(container: Element | null | undefined, rtl?: boolean): TextDirection
```

| Parameter | Type | Description |
| --- | --- | --- |
| `container` | `Element \| null \| undefined` |  |
| `rtl?` | `boolean` |  |

### resolveInputLimits

Kind: function. Import from `@birchui/core`.

```ts
function resolveInputLimits<T extends Record<string, number>>(defaults: T, overrides?: Partial<T>): T
```

| Parameter | Type | Description |
| --- | --- | --- |
| `defaults` | `T` |  |
| `overrides?` | `Partial<T>` |  |

### safeCssValue

Kind: function. Import from `@birchui/core`.

```ts
function safeCssValue(value: unknown): string | undefined
```

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

### setDefaultLocaleText

Kind: function. Import from `@birchui/core`.

```ts
function setDefaultLocaleText(pack: LocaleTextInput | undefined): void
```

| Parameter | Type | Description |
| --- | --- | --- |
| `pack` | `LocaleTextInput \| undefined` |  |

### t

Kind: function. Import from `@birchui/core`.

```ts
function t(key: string, fallback: string, params?: Record<string, string | number>): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `key` | `string` |  |
| `fallback` | `string` |  |
| `params?` | `Record<string, string \| number>` |  |

### toBoolean

Kind: function. Import from `@birchui/core`.

```ts
function toBoolean(value: unknown): boolean | null
```

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

### toCsv

Kind: function. Import from `@birchui/core`.

```ts
function toCsv(matrix: readonly (readonly unknown[])[], separator = ','): string
```

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

### toDate

Kind: function. Import from `@birchui/core`.

```ts
function toDate(value: unknown): Date | null
```

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

### toNumber

Kind: function. Import from `@birchui/core`.

```ts
function toNumber(value: unknown): number | null
```

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

### Emitter

Kind: class. Import from `@birchui/core`.

```ts
class Emitter<TEvents extends object>
new Emitter()
```

| Property | Type | Description |
| --- | --- | --- |
| `on` | `<K extends keyof TEvents>(event: K, listener: Listener<TEvents[K]>) => () => void` |  |
| `emit` | `<K extends keyof TEvents>(event: K, payload: TEvents[K]) => void` |  |
| `has` | `(event: keyof TEvents) => boolean` |  |
| `clear` | `() => void` |  |

### InputLimitError

Kind: class. Import from `@birchui/core`.

```ts
class InputLimitError extends Error
new InputLimitError(readonly code: InputLimitCode, readonly limit: number, readonly actual: number, message: string)
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly name` | `"InputLimitError"` |  |
| `readonly code` | `InputLimitCode` |  |
| `readonly limit` | `number` |  |
| `readonly actual` | `number` |  |

### DEFAULT_MAX_INPUT_LENGTH

Kind: const. Import from `@birchui/core`.

```ts
const DEFAULT_MAX_INPUT_LENGTH: number
```

### FILTER_STAGE_ORDER

Kind: const. Import from `@birchui/core`.

```ts
const FILTER_STAGE_ORDER: 100 = 100
```

### gridDefinition

Kind: const. Import from `@birchui/core`.

```ts
const gridDefinition: WidgetDefinition<GridOptions<any>, GridEvents<any>, GridApi<any>>
```

### gridStyles

Kind: const. Import from `@birchui/core`.

```ts
const gridStyles: "\n.lq-grid,\n.lq-theme-light {\n --lq-font-family: system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n --lq-font-size: 13px;\n --lq-fg: #1f2328;\n --lq-bg: #ffffff;\n --lq-muted-fg: #59636e;\n --lq-border: #d1d9e0;\n --lq-border-subtle: #e6eaef;\n --lq-header-bg: #f6f8fa;\n --lq-header-fg: #1f2328;\n --lq-row-alt: #f9fafb;\n --lq-row-hover: #eef3f9;\n --lq-accent: #1f6feb;\n --lq-accent-fg: #ffffff;\n --lq-selection-bg: rgba(31, 111, 235, 0.12);\n --lq-range-bg: rgba(31, 111, 235, 0.14);\n --lq-focus-ring: #1f6feb;\n --lq-pinned-shadow: rgba(15, 23, 42, 0.12);\n --lq-menu-bg: #ffffff;\n --lq-menu-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);\n --lq-input-bg: #ffffff;\n --lq-input-border: #818b98;\n --lq-placeholder-fg: #59636e;\n --lq-selection-strong-bg: #1f6feb;\n --lq-selection-strong-fg: #ffffff;\n --lq-radius: 6px;\n --lq-cell-padding: 10px;\n color-scheme: light;\n}\n\n.lq-theme-dark,\n.lq-theme-dark .lq-grid:not(.lq-theme-light) {\n --lq-fg: #e6edf3;\n --lq-bg: #0d1117;\n --lq-muted-fg: #9198a1;\n --lq-border: #30363d;\n --lq-border-subtle: #21262d;\n --lq-header-bg: #161b22;\n --lq-header-fg: #e6edf3;\n --lq-row-alt: #11161d;\n --lq-row-hover: #1a2230;\n --lq-accent: #4493f8;\n --lq-accent-fg: #0d1117;\n --lq-selection-bg: rgba(68, 147, 248, 0.18);\n --lq-range-bg: rgba(68, 147, 248, 0.2);\n --lq-focus-ring: #4493f8;\n --lq-pinned-shadow: rgba(0, 0, 0, 0.45);\n --lq-menu-bg: #161b22;\n --lq-menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);\n --lq-input-bg: #0d1117;\n --lq-input-border: #6e7681;\n --lq-placeholder-fg: #9198a1;\n --lq-selection-strong-bg: #4493f8;\n --lq-selection-strong-fg: #0d1117;\n color-scheme: dark;\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-fg: #e6edf3;\n --lq-bg: #0d1117;\n --lq-muted-fg: #9198a1;\n --lq-border: #30363d;\n --lq-border-subtle: #21262d;\n --lq-header-bg: #161b22;\n --lq-header-fg: #e6edf3;\n --lq-row-alt: #11161d;\n --lq-row-hover: #1a2230;\n --lq-accent: #4493f8;\n --lq-accent-fg: #0d1117;\n --lq-selection-bg: rgba(68, 147, 248, 0.18);\n --lq-range-bg: rgba(68, 147, 248, 0.2);\n --lq-focus-ring: #4493f8;\n --lq-pinned-shadow: rgba(0, 0, 0, 0.45);\n --lq-menu-bg: #161b22;\n --lq-menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);\n --lq-input-bg: #0d1117;\n --lq-input-border: #6e7681;\n --lq-placeholder-fg: #9198a1;\n --lq-selection-strong-bg: #4493f8;\n --lq-selection-strong-fg: #0d1117;\n color-scheme: dark;\n }\n}\n\n.lq-density-compact { --lq-font-size: 12px; --lq-cell-padding: 8px; }\n.lq-density-comfortable { --lq-font-size: 14px; --lq-cell-padding: 14px; }\n\n.lq-grid {\n position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n min-height: 120px;\n overflow: hidden;\n font-family: var(--lq-font-family);\n font-size: var(--lq-font-size);\n line-height: 1.4;\n color: var(--lq-fg);\n background: var(--lq-bg);\n border: 1px solid var(--lq-border);\n border-radius: var(--lq-radius);\n font-variant-numeric: tabular-nums;\n}\n.lq-grid *, .lq-grid *::before, .lq-grid *::after { box-sizing: border-box; }\n.lq-grid [hidden] { display: none !important; }\n\n.lq-viewport {\n position: relative;\n flex: 1 1 auto;\n min-height: 0;\n overflow: auto;\n outline: none;\n overscroll-behavior: contain;\n}\n.lq-viewport:focus-visible { box-shadow: inset 0 0 0 2px var(--lq-focus-ring); }\n\n.lq-header {\n position: sticky;\n top: 0;\n z-index: 3;\n background: var(--lq-header-bg);\n color: var(--lq-header-fg);\n border-bottom: 1px solid var(--lq-border);\n min-width: 100%;\n width: max-content;\n}\n.lq-header-row, .lq-filter-row { display: flex; }\n.lq-filter-row { border-top: 1px solid var(--lq-border-subtle); }\n\n.lq-header-cell {\n position: relative;\n display: flex;\n align-items: center;\n gap: 4px;\n flex: none;\n height: 100%;\n padding-block: 0;\n padding-inline: var(--lq-cell-padding) 4px;\n font-weight: 600;\n white-space: nowrap;\n user-select: none;\n background: var(--lq-header-bg);\n border-inline-end: 1px solid var(--lq-border-subtle);\n outline: none;\n}\n.lq-header-cell.lq-align-right { flex-direction: row-reverse; padding-inline: 4px var(--lq-cell-padding); }\n.lq-header-cell.lq-align-center { justify-content: center; }\n.lq-header-sortable { cursor: pointer; }\n.lq-header-cell:focus-visible, .lq-header-cell-focused:focus { box-shadow: inset 0 0 0 2px var(--lq-focus-ring); }\n.lq-header-label { overflow: hidden; text-overflow: ellipsis; min-width: 0; }\n.lq-sort-indicator { font-size: 10px; color: var(--lq-accent); min-width: 0; }\n.lq-header-filtered .lq-header-label { text-decoration: underline dotted var(--lq-accent); text-underline-offset: 3px; }\n.lq-header-menu {\n margin-inline-start: auto;\n flex: none;\n width: 24px;\n height: 24px;\n border: 0;\n border-radius: 4px;\n background: transparent;\n color: var(--lq-muted-fg);\n font: inherit;\n line-height: 1;\n cursor: pointer;\n opacity: 0;\n}\n.lq-align-right .lq-header-menu { margin-inline-start: 0; margin-inline-end: auto; }\n.lq-header-cell:hover .lq-header-menu, .lq-header-cell:focus-within .lq-header-menu, .lq-header-menu:focus-visible { opacity: 1; }\n.lq-header-menu:hover { background: var(--lq-row-hover); color: var(--lq-fg); }\n.lq-resize-handle {\n position: absolute;\n top: 0;\n inset-inline-end: -4px;\n width: 8px;\n height: 100%;\n cursor: col-resize;\n z-index: 1;\n touch-action: none;\n}\n.lq-resize-handle::after {\n content: \"\";\n position: absolute;\n top: 25%;\n left: 3px;\n width: 2px;\n height: 50%;\n border-radius: 1px;\n background: transparent;\n}\n.lq-resize-handle:hover::after, .lq-resizing .lq-resize-handle::after { background: var(--lq-accent); }\n.lq-resizing, .lq-resizing * { cursor: col-resize !important; user-select: none !important; }\n\n.lq-header-group-row { display: flex; border-bottom: 1px solid var(--lq-border-subtle); }\n.lq-header-group-cell {\n position: relative;\n display: flex;\n align-items: center;\n gap: 4px;\n flex: none;\n height: 100%;\n min-width: 0;\n padding: 0 4px 0 var(--lq-cell-padding);\n overflow: hidden;\n overflow: clip;\n font-weight: 600;\n white-space: nowrap;\n user-select: none;\n background: var(--lq-header-bg);\n border-inline-end: 1px solid var(--lq-border-subtle);\n outline: none;\n}\n.lq-header-group-cell:focus-visible { box-shadow: inset 0 0 0 2px var(--lq-focus-ring); }\n.lq-header-group-label { position: sticky; inset-inline-start: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }\n.lq-header-group-toggle {\n flex: none;\n width: 22px;\n height: 22px;\n border: 0;\n border-radius: 4px;\n background: transparent;\n color: var(--lq-muted-fg);\n font: inherit;\n line-height: 1;\n cursor: pointer;\n}\n.lq-header-group-toggle:hover { background: var(--lq-row-hover); color: var(--lq-fg); }\n\n.lq-filter-cell {\n flex: none;\n display: flex;\n align-items: center;\n padding: 3px 4px;\n background: var(--lq-header-bg);\n border-inline-end: 1px solid var(--lq-border-subtle);\n}\n.lq-filter-input {\n width: 100%;\n height: 100%;\n min-width: 0;\n padding: 0 6px;\n font: inherit;\n font-weight: 400;\n color: var(--lq-fg);\n background: var(--lq-input-bg);\n border: 1px solid var(--lq-input-border);\n border-radius: 4px;\n}\n.lq-filter-input::placeholder { color: var(--lq-placeholder-fg); opacity: 1; }\n.lq-filter-input:focus { outline: 2px solid var(--lq-focus-ring); outline-offset: -1px; }\n\n.lq-body { position: relative; min-width: 100%; }\n\n.lq-row {\n position: absolute;\n top: 0;\n inset-inline-start: 0;\n display: flex;\n min-width: 100%;\n border-bottom: 1px solid var(--lq-border-subtle);\n background: var(--lq-bg);\n contain: layout style;\n}\n.lq-stripes .lq-row-odd { background: var(--lq-row-alt); }\n.lq-row:hover { background: var(--lq-row-hover); }\n.lq-row-selected, .lq-row-selected:hover { background: var(--lq-selection-bg); }\n.lq-selection-strong .lq-row-selected, .lq-selection-strong .lq-row-selected:hover {\n --lq-muted-fg: var(--lq-selection-strong-fg);\n color: var(--lq-selection-strong-fg);\n background: var(--lq-selection-strong-bg);\n}\n.lq-row-group { font-weight: 600; }\n.lq-row-total { font-weight: 700; border-top: 1px solid var(--lq-border); }\n.lq-spacer { flex: none; height: 100%; }\n\n.lq-cell {\n flex: none;\n display: flex;\n align-items: center;\n height: 100%;\n min-width: 0;\n padding: 0 var(--lq-cell-padding);\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n border-inline-end: 1px solid transparent;\n outline: none;\n background: inherit;\n}\n.lq-cell.lq-align-right { justify-content: flex-end; text-align: end; }\n.lq-cell.lq-align-center { justify-content: center; text-align: center; }\n.lq-cell:focus-visible, .lq-cell-focused:focus { box-shadow: inset 0 0 0 2px var(--lq-focus-ring); }\n.lq-cell-editing { padding: 0; box-shadow: inset 0 0 0 2px var(--lq-focus-ring); }\n.lq-cell-select { padding: 0; justify-content: center; }\n.lq-cell-wrap { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }\n.lq-cell-auto-height {\n align-self: flex-start;\n height: auto;\n padding-block: calc((var(--lq-row-height) - 1px - 1.4em) / 2);\n}\n.lq-cell-auto-height.lq-cell-editing { align-self: stretch; padding: 0; }\n\n.lq-cell-pinned { position: sticky; z-index: 1; }\n.lq-row .lq-cell-pinned { background: var(--lq-bg); }\n.lq-stripes .lq-row-odd .lq-cell-pinned { background: var(--lq-row-alt); }\n.lq-row:hover .lq-cell-pinned { background: var(--lq-row-hover); }\n.lq-row-selected .lq-cell-pinned, .lq-row-selected:hover .lq-cell-pinned { background: color-mix(in srgb, var(--lq-accent) 12%, var(--lq-bg)); }\n.lq-selection-strong .lq-row-selected .lq-cell-pinned { background: var(--lq-selection-strong-bg); }\n.lq-header .lq-cell-pinned { z-index: 2; }\n.lq-cell-pinned-left-last { box-shadow: 1px 0 0 var(--lq-border), 4px 0 6px -2px var(--lq-pinned-shadow); }\n.lq-cell-pinned-right-first { box-shadow: -1px 0 0 var(--lq-border), -4px 0 6px -2px var(--lq-pinned-shadow); }\n.lq-cell-pinned-left-last.lq-cell-focused:focus { box-shadow: inset 0 0 0 2px var(--lq-focus-ring), 1px 0 0 var(--lq-border); }\n[dir=\"rtl\"] .lq-cell-pinned-left-last { box-shadow: -1px 0 0 var(--lq-border), -4px 0 6px -2px var(--lq-pinned-shadow); }\n[dir=\"rtl\"] .lq-cell-pinned-right-first { box-shadow: 1px 0 0 var(--lq-border), 4px 0 6px -2px var(--lq-pinned-shadow); }\n[dir=\"rtl\"] .lq-cell-pinned-left-last.lq-cell-focused:focus { box-shadow: inset 0 0 0 2px var(--lq-focus-ring), -1px 0 0 var(--lq-border); }\n\n.lq-full-width { position: sticky; inset-inline-start: 0; height: 100%; overflow: auto; }\n\n.lq-editor {\n width: 100%;\n height: 100%;\n padding: 0 var(--lq-cell-padding);\n font: inherit;\n color: var(--lq-fg);\n background: var(--lq-input-bg);\n border: 0;\n outline: none;\n text-align: inherit;\n}\n.lq-editor-checkbox { width: auto; height: auto; margin: 0 auto; }\n\n.lq-slot:empty { display: none; }\n.lq-slot-top { border-bottom: 1px solid var(--lq-border); background: var(--lq-header-bg); }\n.lq-slot-bottom { border-top: 1px solid var(--lq-border); background: var(--lq-header-bg); }\n.lq-slot-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 10; overflow: hidden; }\n.lq-slot-overlay > * { pointer-events: auto; }\n\n.lq-empty {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n color: var(--lq-muted-fg);\n pointer-events: none;\n}\n.lq-empty[hidden] { display: none; }\n\n.lq-menu {\n position: fixed;\n max-height: calc(100vh - 8px);\n overflow-y: auto;\n min-width: 200px;\n padding: 4px;\n background: var(--lq-menu-bg);\n border: 1px solid var(--lq-border);\n border-radius: var(--lq-radius);\n box-shadow: var(--lq-menu-shadow);\n font-weight: 400;\n}\n.lq-menu-item {\n display: flex;\n align-items: center;\n gap: 6px;\n width: 100%;\n padding-block: 6px;\n padding-inline: 4px 10px;\n font: inherit;\n text-align: start;\n color: var(--lq-fg);\n background: transparent;\n border: 0;\n border-radius: 4px;\n cursor: pointer;\n}\n.lq-menu-item:hover:not(:disabled) { background: var(--lq-row-hover); outline: none; }\n.lq-menu-item:focus-visible { outline: 2px solid var(--lq-focus-ring); outline-offset: -2px; }\n.lq-menu-item:disabled { color: var(--lq-muted-fg); cursor: default; opacity: 0.6; }\n.lq-menu-check { width: 16px; text-align: center; color: var(--lq-accent); }\n.lq-menu-separator { height: 1px; margin: 4px 0; background: var(--lq-border-subtle); }\n\n.lq-drag-ghost {\n position: absolute;\n top: 0;\n left: 0;\n padding: 4px 10px;\n font-weight: 600;\n color: var(--lq-accent-fg);\n background: var(--lq-accent);\n border-radius: 4px;\n box-shadow: var(--lq-menu-shadow);\n pointer-events: none;\n white-space: nowrap;\n}\n.lq-drop-indicator { position: absolute; left: 0; width: 2px; background: var(--lq-accent); pointer-events: none; }\n.lq-dragging-column { cursor: grabbing; user-select: none; }\n\n.lq-pager {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n gap: 4px;\n padding: 6px 10px;\n color: var(--lq-muted-fg);\n}\n.lq-pager[hidden] { display: none; }\n.lq-pager-range { margin-inline-end: auto; }\n.lq-pager-label { padding: 0 8px; color: var(--lq-fg); }\n.lq-pager-button {\n min-width: 28px;\n height: 28px;\n font: inherit;\n color: var(--lq-fg);\n background: transparent;\n border: 1px solid var(--lq-border);\n border-radius: 4px;\n cursor: pointer;\n}\n.lq-pager-button:disabled { opacity: 0.45; cursor: default; }\n.lq-pager-button:focus-visible { outline: 2px solid var(--lq-focus-ring); outline-offset: 1px; }\n\n.lq-visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n border: 0;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .lq-grid *, .lq-grid *::before, .lq-grid *::after { transition: none !important; animation: none !important; }\n}\n\n@media (forced-colors: active) {\n .lq-grid :focus-visible,\n .lq-cell-focused:focus,\n .lq-header-cell-focused:focus,\n .lq-cell-editing,\n .lq-menu :focus-visible,\n .lq-filter-popup :focus-visible {\n outline: 2px solid Highlight !important;\n outline-offset: -2px;\n }\n .lq-row-selected, .lq-row-selected:hover, .lq-row-selected .lq-cell-pinned {\n forced-color-adjust: none;\n color: HighlightText;\n background: Highlight;\n }\n .lq-sort-indicator, .lq-menu-check { color: CanvasText; }\n .lq-resize-handle:hover::after, .lq-resizing .lq-resize-handle::after, .lq-drop-indicator { background: Highlight; }\n .lq-drag-ghost { border: 1px solid CanvasText; }\n}\n\n.lq-grid, .lq-theme-light { --lq-danger: #cf222e; }\n.lq-theme-dark, .lq-theme-dark .lq-grid:not(.lq-theme-light) { --lq-danger: #ff7b72; }\n@media (prefers-color-scheme: dark) {\n .lq-theme-auto, .lq-theme-auto .lq-grid:not(.lq-theme-light):not(.lq-theme-dark) { --lq-danger: #ff7b72; }\n}\n\n.lq-filter-popup {\n position: fixed;\n display: flex;\n flex-direction: column;\n gap: 10px;\n width: 280px;\n max-width: calc(100vw - 8px);\n max-height: calc(100vh - 8px);\n overflow-y: auto;\n padding: 12px;\n color: var(--lq-fg);\n background: var(--lq-menu-bg);\n border: 1px solid var(--lq-border);\n border-radius: var(--lq-radius);\n box-shadow: var(--lq-menu-shadow);\n font-weight: 400;\n}\n.lq-filter-popup-title { font-weight: 600; }\n.lq-filter-conditions, .lq-filter-condition, .lq-filter-set { display: flex; flex-direction: column; gap: 6px; }\n.lq-filter-operands { display: flex; gap: 6px; }\n.lq-filter-popup-select, .lq-filter-popup-input {\n width: 100%;\n min-width: 0;\n height: 30px;\n padding: 0 8px;\n font: inherit;\n color: var(--lq-fg);\n background: var(--lq-input-bg);\n border: 1px solid var(--lq-input-border);\n border-radius: 4px;\n}\n.lq-filter-popup-input::placeholder { color: var(--lq-placeholder-fg); opacity: 1; }\n.lq-filter-popup-select:focus-visible, .lq-filter-popup-input:focus-visible {\n outline: 2px solid var(--lq-focus-ring);\n outline-offset: -1px;\n}\n.lq-filter-popup-input[aria-invalid=\"true\"] { border-color: var(--lq-danger); }\n.lq-filter-popup-error { color: var(--lq-danger); font-size: 0.92em; }\n.lq-filter-join, .lq-filter-boolean { display: flex; flex-wrap: wrap; gap: 4px 14px; min-width: 0; margin: 0; padding: 0; border: 0; }\n.lq-filter-choice, .lq-filter-set-all { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }\n.lq-filter-choice input, .lq-filter-set-checkbox { margin: 0; accent-color: var(--lq-accent); }\n.lq-filter-choice input:focus-visible, .lq-filter-set-checkbox:focus-visible {\n outline: 2px solid var(--lq-focus-ring);\n outline-offset: 2px;\n}\n.lq-filter-set-all { padding: 2px 8px; }\n.lq-filter-set-list {\n position: relative;\n max-height: 224px;\n overflow-y: auto;\n border: 1px solid var(--lq-border-subtle);\n border-radius: 4px;\n overscroll-behavior: contain;\n}\n.lq-filter-set-virtual { height: 224px; }\n.lq-filter-set-sizer { position: relative; }\n.lq-filter-set-item { height: 28px; }\n.lq-filter-set-virtual .lq-filter-set-item { position: absolute; top: 0; left: 0; right: 0; }\n.lq-filter-set-label { display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 8px; cursor: pointer; white-space: nowrap; }\n.lq-filter-set-label:hover { background: var(--lq-row-hover); }\n.lq-filter-set-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }\n.lq-filter-set-count { color: var(--lq-muted-fg); font-variant-numeric: tabular-nums; }\n.lq-filter-set-empty { padding: 8px; color: var(--lq-muted-fg); }\n.lq-filter-popup-actions { display: flex; justify-content: flex-end; gap: 6px; }\n.lq-filter-popup-button {\n height: 30px;\n padding: 0 12px;\n font: inherit;\n color: var(--lq-fg);\n background: transparent;\n border: 1px solid var(--lq-border);\n border-radius: 4px;\n cursor: pointer;\n}\n.lq-filter-popup-button:hover { background: var(--lq-row-hover); }\n.lq-filter-popup-button:focus-visible { outline: 2px solid var(--lq-focus-ring); outline-offset: 1px; }\n.lq-filter-popup-apply, .lq-filter-popup-apply:hover { color: var(--lq-accent-fg); background: var(--lq-accent); border-color: var(--lq-accent); }\n.lq-filter-popup-reset { margin-inline-end: auto; }\n.lq-pinned-rows { position: sticky; z-index: 2; min-width: 100%; background: var(--lq-bg); }\n.lq-pinned-rows-top { border-bottom: 1px solid var(--lq-border); }\n.lq-pinned-rows-bottom { bottom: 0; border-top: 1px solid var(--lq-border); }\n.lq-pinned-row { display: flex; min-width: 100%; font-weight: 600; background: var(--lq-header-bg); border-bottom: 1px solid var(--lq-border-subtle); }\n.lq-pinned-row:last-child { border-bottom: 0; }\n.lq-pinned-row .lq-cell-pinned { background: var(--lq-header-bg); }\n\n.lq-row-drag-handle {\n flex: none;\n width: 12px;\n height: 16px;\n margin-inline-end: 6px;\n cursor: grab;\n touch-action: none;\n opacity: 0.55;\n background: radial-gradient(circle, currentColor 1.2px, transparent 1.6px) 0 0 / 6px 5px;\n}\n.lq-row-drag-handle:hover { opacity: 1; }\n.lq-row-drag-active, .lq-row-drag-active * { cursor: grabbing !important; user-select: none; }\n.lq-row-dragging { opacity: 0.5; }\n.lq-row-drop-above { box-shadow: inset 0 2px 0 var(--lq-accent); }\n.lq-row-drop-below { box-shadow: inset 0 -2px 0 var(--lq-accent); }\n\n@keyframes lq-cell-flash {\n from { background-color: color-mix(in srgb, var(--lq-accent) 35%, transparent); }\n to { background-color: transparent; }\n}\n.lq-cell-flash { animation: lq-cell-flash var(--lq-flash-duration, 500ms) ease-out; }\n\n.lq-cell-find-match { background: color-mix(in srgb, #f2cc60 45%, var(--lq-bg)); }\n.lq-cell-find-active { background: color-mix(in srgb, #f2a60c 70%, var(--lq-bg)); box-shadow: inset 0 0 0 2px var(--lq-accent); }\n.lq-find-bar {\n display: flex;\n align-items: center;\n gap: 4px;\n padding: 4px var(--lq-cell-padding);\n border-bottom: 1px solid var(--lq-border);\n background: var(--lq-header-bg);\n}\n.lq-find-input {\n flex: 0 1 220px;\n min-width: 0;\n height: 26px;\n padding: 0 6px;\n font: inherit;\n color: inherit;\n background: var(--lq-bg);\n border: 1px solid var(--lq-input-border);\n border-radius: 4px;\n}\n.lq-find-input:focus { outline: 2px solid var(--lq-focus-ring); outline-offset: -1px; }\n.lq-find-count { min-width: 64px; color: var(--lq-muted-fg); }\n.lq-find-button {\n width: 26px;\n height: 26px;\n font: inherit;\n color: inherit;\n background: transparent;\n border: 1px solid transparent;\n border-radius: 4px;\n cursor: pointer;\n}\n.lq-find-button:hover { background: var(--lq-row-hover); }\n.lq-find-button:focus-visible { outline: 2px solid var(--lq-focus-ring); outline-offset: 1px; }\n\n.lq-grid.lq-print-layout { height: auto; overflow: visible; }\n.lq-print-layout .lq-viewport { overflow: visible; flex: none; }\n.lq-print-layout .lq-header, .lq-print-layout .lq-pinned-rows { position: static; }\n.lq-print-layout .lq-body { height: auto !important; }\n.lq-print-layout .lq-row { position: relative; transform: none !important; break-inside: avoid; }\n.lq-print-layout .lq-cell-pinned { position: static; }\n.lq-print-layout .lq-spacer { display: none; }\n@media print {\n .lq-print-layout .lq-find-bar, .lq-print-layout .lq-pager, .lq-print-layout .lq-row-drag-handle { display: none; }\n .lq-print-layout .lq-header { display: table-header-group; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .lq-cell-flash { background-color: color-mix(in srgb, var(--lq-accent) 22%, transparent); }\n}\n@media (forced-colors: active) {\n .lq-cell-find-match, .lq-cell-flash { outline: 1px dashed CanvasText; outline-offset: -2px; }\n .lq-cell-find-active { outline: 2px solid Highlight; outline-offset: -2px; }\n .lq-row-drop-above, .lq-row-drop-below { border-color: Highlight; }\n}\n" = ` .lq-grid, .lq-theme-light { --lq-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --lq-font-size: 13px; --lq-fg: #1f2328; --lq-bg: #ffffff; --lq-muted-fg: #59636e; --lq-border: #d1d9e0; --lq-border-subtle: #e6eaef; --lq-header-bg: #f6f8fa; --lq-header-fg: #1f2328; --lq-row-alt: #f9fafb; --lq-row-hover: #eef3f9; --lq-accent: #1f6feb; --lq-accent-fg: #ffffff; --lq-selection-bg: rgba(31, 111, 235, 0.12); --lq-range-bg: rgba(31, 111, 235, 0.14); --lq-focus-ring: #1f6feb; --lq-pinned-shadow: rgba(15, 23, 42, 0.12); --lq-menu-bg: #ffffff; --lq-menu-shadow: 0 8px 24px rgba(15, 23, 42, 0.16); --lq-input-bg: #ffffff; --lq-input-border: #818b98; --lq-placeholder-fg: #59636e; --lq-selection-strong-bg: #1f6feb; --lq-selection-strong-fg: #ffffff; --lq-radius: 6px; --lq-cell-padding: 10px; color-scheme: light; } .lq-theme-dark, .lq-theme-dark .lq-grid:not(.lq-theme-light) { --lq-fg: #e6edf3; --lq-bg: #0d1117; --lq-muted-fg: #9198a1; --lq-border: #30363d; --lq-border-subtle: #21262d; --lq-header-bg: #161b22; --lq-header-fg: #e6edf3; --lq-row-alt: #11161d; --lq-row-hover: #1a2230; --lq-accent: #4493f8; --lq-accent-fg: #0d1117; --lq-selection-bg: rgba(68, 147, 248, 0.18); --lq-range-bg: rgba(68, 147, 248, 0.2); --lq-focus-ring: #4493f8; --lq-pinned-shadow: rgba(0, 0, 0, 0.45); --lq-menu-bg: #161b22; --lq-menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); --lq-input-bg: #0d1117; --lq-input-border: #6e7681; --lq-placeholder-fg: #9198a1; --lq-selection-strong-bg: #4493f8; --lq-selection-strong-fg: #0d1117; color-scheme: dark; } @media (prefers-color-scheme: dark) { .lq-theme-auto, .lq-theme-auto .lq-grid:not(.lq-theme-light):not(.lq-theme-dark) { --lq-fg: #e6edf3; --lq-bg: #0d1117; --lq-muted-fg: #9198a1; --lq-border: #30363d; --lq-border-subtle: #21262d; --lq-header-bg: #161b22; --lq-header-fg: #e6edf3; --lq-row-alt: #11161d; --lq-row-hover: #1a2230; --lq-accent: #4493f8; --lq-accent-fg: #0d1117; --lq-selection-bg: rgba(68, 147, 248, 0.18); --lq-range-bg: rgba(68, 147, 248, 0.2); --lq-focus-ring: #4493f8; --lq-pinned-shadow: rgba(0, 0, 0, 0.45); --lq-menu-bg: #161b22; --lq-menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); --lq-input-bg: #0d1117; --lq-input-border: #6e7681; --lq-placeholder-fg: #9198a1; --lq-selection-strong-bg: #4493f8; --lq-selection-strong-fg: #0d1117; color-scheme: dark; } } .lq-density-compact { --lq-font-size: 12px; --lq-cell-padding: 8px; } .lq-density-comfortable { --lq-font-size: 14px; --lq-cell-padding: 14px; } .lq-grid { position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: 100%; height: 100%; min-height: 120px; overflow: hidden; font-family: var(--lq-font-family); font-size: var(--lq-font-size); line-height: 1.4; color: var(--lq-fg); background: var(--lq-bg); border: 1px solid var(--lq-border); border-radius: var(--lq-radius); font-variant-numeric: tabular-nums; } .lq-grid *, .lq-grid *::before, .lq-grid *::after { box-sizing: border-box; } .lq-grid [hidden] { display: none !important; } .lq-viewport { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; outline: none; overscroll-behavior: contain; } .lq-viewport:focus-visible { box-shadow: inset 0 0 0 2px var(--lq-focus-ring); } .lq-header { position: sticky; top: 0; z-index: 3; background: var(--lq-header-bg); color: var(--lq-header-fg); border-bottom: 1px solid var(--lq-border); min-width: 100%; width: max-content; } .lq-header-row, .lq-filter-row { display: flex; } .lq-filter-row { border-top: 1px solid var(--lq-border-subtle); } .lq-header-cell { position: relative; display: flex; align-items: center; gap: 4px; flex: none; height: 100%; padding-block: 0; padding-inline: var(--lq-cell-padding) 4px; font-weight: 600; white-space: nowrap; user-select: none; background: var(--lq-header-bg); border-inline-end: 1px solid var(--lq-border-subtle); outline: none; } .lq-header-cell.lq-align-right { flex-direction: row-reverse; padding-inline: 4px var(--lq-cell-padding); } .lq-header-cell.lq-align-center { justify-content: center; } .lq-header-sortable { cursor: pointer; } .lq-header-cell:focus-visible, .lq-header-cell-focused:focus { box-shadow: inset 0 0 0 2px var(--lq-focus-ring); } .lq-header-label { overflow: hidden; text-overflow: ellipsis; min-width: 0; } .lq-sort-indicator { font-size: 10px; color: var(--lq-accent); min-width: 0; } .lq-header-filtered .lq-header-label { text-decoration: underline dotted var(--lq-accent); text-underline-offset: 3px; } .lq-header-menu { margin-inline-start: auto; flex: none; width: 24px; height: 24px; border: 0; border-radius: 4px; background: transparent; color: var(--lq-muted-fg); font: inherit; line-height: 1; cursor: pointer; opacity: 0; } .lq-align-right .lq-header-menu { margin-inline-start: 0; margin-inline-end: auto; } .lq-header-cell:hover .lq-header-menu, .lq-header-cell:focus-within .lq-header-menu, .lq-header-menu:focus-visible { opacity: 1; } .lq-header-menu:hover { background: var(--lq-row-hover); color: var(--lq-fg); } .lq-resize-handle { position: absolute; top: 0; inset-inline-end: -4px; width: 8px; height: 100%; cursor: col-resize; z-index: 1; touch-action: none; } .lq-resize-handle::after { content: ""; position: absolute; top: 25%; left: 3px; width: 2px; height: 50%; border-radius: 1px; background: transparent; } .lq-resize-handle:hover::after, .lq-resizing .lq-resize-handle::after { background: var(--lq-accent); } .lq-resizing, .lq-resizing * { cursor: col-resize !important; user-select: none !important; } .lq-header-group-row { display: flex; border-bottom: 1px solid var(--lq-border-subtle); } .lq-header-group-cell { position: relative; display: flex; align-items: center; gap: 4px; flex: none; height: 100%; min-width: 0; padding: 0 4px 0 var(--lq-cell-padding); overflow: hidden; overflow: clip; font-weight: 600; white-space: nowrap; user-select: none; background: var(--lq-header-bg); border-inline-end: 1px solid var(--lq-border-subtle); outline: none; } .lq-header-group-cell:focus-visible { box-shadow: inset 0 0 0 2px var(--lq-focus-ring); } .lq-header-group-label { position: sticky; inset-inline-start: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .lq-header-group-toggle { flex: none; width: 22px; height: 22px; border: 0; border-radius: 4px; background: transparent; color: var(--lq-muted-fg); font: inherit; line-height: 1; cursor: pointer; } .lq-header-group-toggle:hover { background: var(--lq-row-hover); color: var(--lq-fg); } .lq-filter-cell { flex: none; display: flex; align-items: center; padding: 3px 4px; background: var(--lq-header-bg); border-inline-end: 1px solid var(--lq-border-subtle); } .lq-filter-input { width: 100%; height: 100%; min-width: 0; padding: 0 6px; font: inherit; font-weight: 400; color: var(--lq-fg); background: var(--lq-input-bg); border: 1px solid var(--lq-input-border); border-radius: 4px; } .lq-filter-input::placeholder { color: var(--lq-placeholder-fg); opacity: 1; } .lq-filter-input:focus { outline: 2px solid var(--lq-focus-ring); outline-offset: -1px; } .lq-body { position: relative; min-width: 100%; } .lq-row { position: absolute; top: 0; inset-inline-start: 0; display: flex; min-width: 100%; border-bottom: 1px solid var(--lq-border-subtle); background: var(--lq-bg); contain: layout style; } .lq-stripes .lq-row-odd { background: var(--lq-row-alt); } .lq-row:hover { background: var(--lq-row-hover); } .lq-row-selected, .lq-row-selected:hover { background: var(--lq-selection-bg); } .lq-selection-strong .lq-row-selected, .lq-selection-strong .lq-row-selected:hover { --lq-muted-fg: var(--lq-selection-strong-fg); color: var(--lq-selection-strong-fg); background: var(--lq-selection-strong-bg); } .lq-row-group { font-weight: 600; } .lq-row-total { font-weight: 700; border-top: 1px solid var(--lq-border); } .lq-spacer { flex: none; height: 100%; } .lq-cell { flex: none; display: flex; align-items: center; height: 100%; min-width: 0; padding: 0 var(--lq-cell-padding); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-inline-end: 1px solid transparent; outline: none; background: inherit; } .lq-cell.lq-align-right { justify-content: flex-end; text-align: end; } .lq-cell.lq-align-center { justify-content: center; text-align: center; } .lq-cell:focus-visible, .lq-cell-focused:focus { box-shadow: inset 0 0 0 2px var(--lq-focus-ring); } .lq-cell-editing { padding: 0; box-shadow: inset 0 0 0 2px var(--lq-focus-ring); } .lq-cell-select { padding: 0; justify-content: center; } .lq-cell-wrap { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; } .lq-cell-auto-height { align-self: flex-start; height: auto; padding-block: calc((var(--lq-row-height) - 1px - 1.4em) / 2); } .lq-cell-auto-height.lq-cell-editing { align-self: stretch; padding: 0; } .lq-cell-pinned { position: sticky; z-index: 1; } .lq-row .lq-cell-pinned { background: var(--lq-bg); } .lq-stripes .lq-row-odd .lq-cell-pinned { background: var(--lq-row-alt); } .lq-row:hover .lq-cell-pinned { background: var(--lq-row-hover); } .lq-row-selected .lq-cell-pinned, .lq-row-selected:hover .lq-cell-pinned { background: color-mix(in srgb, var(--lq-accent) 12%, var(--lq-bg)); } .lq-selection-strong .lq-row-selected .lq-cell-pinned { background: var(--lq-selection-strong-bg); } .lq-header .lq-cell-pinned { z-index: 2; } .lq-cell-pinned-left-last { box-shadow: 1px 0 0 var(--lq-border), 4px 0 6px -2px var(--lq-pinned-shadow); } .lq-cell-pinned-right-first { box-shadow: -1px 0 0 var(--lq-border), -4px 0 6px -2px var(--lq-pinned-shadow); } .lq-cell-pinned-left-last.lq-cell-focused:focus { box-shadow: inset 0 0 0 2px var(--lq-focus-ring), 1px 0 0 var(--lq-border); } [dir="rtl"] .lq-cell-pinned-left-last { box-shadow: -1px 0 0 var(--lq-border), -4px 0 6px -2px var(--lq-pinned-shadow); } [dir="rtl"] .lq-cell-pinned-right-first { box-shadow: 1px 0 0 var(--lq-border), 4px 0 6px -2px var(--lq-pinned-shadow); } [dir="rtl"] .lq-cell-pinned-left-last.lq-cell-focused:focus { box-shadow: inset 0 0 0 2px var(--lq-focus-ring), -1px 0 0 var(--lq-border); } .lq-full-width { position: sticky; inset-inline-start: 0; height: 100%; overflow: auto; } .lq-editor { width: 100%; height: 100%; padding: 0 var(--lq-cell-padding); font: inherit; color: var(--lq-fg); background: var(--lq-input-bg); border: 0; outline: none; text-align: inherit; } .lq-editor-checkbox { width: auto; height: auto; margin: 0 auto; } .lq-slot:empty { display: none; } .lq-slot-top { border-bottom: 1px solid var(--lq-border); background: var(--lq-header-bg); } .lq-slot-bottom { border-top: 1px solid var(--lq-border); background: var(--lq-header-bg); } .lq-slot-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 10; overflow: hidden; } .lq-slot-overlay > * { pointer-events: auto; } .lq-empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--lq-muted-fg); pointer-events: none; } .lq-empty[hidden] { display: none; } .lq-menu { position: fixed; max-height: calc(100vh - 8px); overflow-y: auto; min-width: 200px; padding: 4px; background: var(--lq-menu-bg); border: 1px solid var(--lq-border); border-radius: var(--lq-radius); box-shadow: var(--lq-menu-shadow); font-weight: 400; } .lq-menu-item { display: flex; align-items: center; gap: 6px; width: 100%; padding-block: 6px; padding-inline: 4px 10px; font: inherit; text-align: start; color: var(--lq-fg); background: transparent; border: 0; border-radius: 4px; cursor: pointer; } .lq-menu-item:hover:not(:disabled) { background: var(--lq-row-hover); outline: none; } .lq-menu-item:focus-visible { outline: 2px solid var(--lq-focus-ring); outline-offset: -2px; } .lq-menu-item:disabled { color: var(--lq-muted-fg); cursor: default; opacity: 0.6; } .lq-menu-check { width: 16px; text-align: center; color: var(--lq-accent); } .lq-menu-separator { height: 1px; margin: 4px 0; background: var(--lq-border-subtle); } .lq-drag-ghost { position: absolute; top: 0; left: 0; padding: 4px 10px; font-weight: 600; color: var(--lq-accent-fg); background: var(--lq-accent); border-radius: 4px; box-shadow: var(--lq-menu-shadow); pointer-events: none; white-space: nowrap; } .lq-drop-indicator { position: absolute; left: 0; width: 2px; background: var(--lq-accent); pointer-events: none; } .lq-dragging-column { cursor: grabbing; user-select: none; } .lq-pager { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 6px 10px; color: var(--lq-muted-fg); } .lq-pager[hidden] { display: none; } .lq-pager-range { margin-inline-end: auto; } .lq-pager-label { padding: 0 8px; color: var(--lq-fg); } .lq-pager-button { min-width: 28px; height: 28px; font: inherit; color: var(--lq-fg); background: transparent; border: 1px solid var(--lq-border); border-radius: 4px; cursor: pointer; } .lq-pager-button:disabled { opacity: 0.45; cursor: default; } .lq-pager-button:focus-visible { outline: 2px solid var(--lq-focus-ring); outline-offset: 1px; } .lq-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } @media (prefers-reduced-motion: reduce) { .lq-grid *, .lq-grid *::before, .lq-grid *::after { transition: none !important; animation: none !important; } } @media (forced-colors: active) { .lq-grid :focus-visible, .lq-cell-focused:focus, .lq-header-cell-focused:focus, .lq-cell-editing, .lq-menu :focus-visible, .lq-filter-popup :focus-visible { outline: 2px solid Highlight !important; outline-offset: -2px; } .lq-row-selected, .lq-row-selected:hover, .lq-row-selected .lq-cell-pinned { forced-color-adjust: none; color: HighlightText; background: Highlight; } .lq-sort-indicator, .lq-menu-check { color: CanvasText; } .lq-resize-handle:hover::after, .lq-resizing .lq-resize-handle::after, .lq-drop-indicator { background: Highlight; } .lq-drag-ghost { border: 1px solid CanvasText; } } .lq-grid, .lq-theme-light { --lq-danger: #cf222e; } .lq-theme-dark, .lq-theme-dark .lq-grid:not(.lq-theme-light) { --lq-danger: #ff7b72; } @media (prefers-color-scheme: dark) { .lq-theme-auto, .lq-theme-auto .lq-grid:not(.lq-theme-light):not(.lq-theme-dark) { --lq-danger: #ff7b72; } } .lq-filter-popup { position: fixed; display: flex; flex-direction: column; gap: 10px; width: 280px; max-width: calc(100vw - 8px); max-height: calc(100vh - 8px); overflow-y: auto; padding: 12px; color: var(--lq-fg); background: var(--lq-menu-bg); border: 1px solid var(--lq-border); border-radius: var(--lq-radius); box-shadow: var(--lq-menu-shadow); font-weight: 400; } .lq-filter-popup-title { font-weight: 600; } .lq-filter-conditions, .lq-filter-condition, .lq-filter-set { display: flex; flex-direction: column; gap: 6px; } .lq-filter-operands { display: flex; gap: 6px; } .lq-filter-popup-select, .lq-filter-popup-input { width: 100%; min-width: 0; height: 30px; padding: 0 8px; font: inherit; color: var(--lq-fg); background: var(--lq-input-bg); border: 1px solid var(--lq-input-border); border-radius: 4px; } .lq-filter-popup-input::placeholder { color: var(--lq-placeholder-fg); opacity: 1; } .lq-filter-popup-select:focus-visible, .lq-filter-popup-input:focus-visible { outline: 2px solid var(--lq-focus-ring); outline-offset: -1px; } .lq-filter-popup-input[aria-invalid="true"] { border-color: var(--lq-danger); } .lq-filter-popup-error { color: var(--lq-danger); font-size: 0.92em; } .lq-filter-join, .lq-filter-boolean { display: flex; flex-wrap: wrap; gap: 4px 14px; min-width: 0; margin: 0; padding: 0; border: 0; } .lq-filter-choice, .lq-filter-set-all { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; } .lq-filter-choice input, .lq-filter-set-checkbox { margin: 0; accent-color: var(--lq-accent); } .lq-filter-choice input:focus-visible, .lq-filter-set-checkbox:focus-visible { outline: 2px solid var(--lq-focus-ring); outline-offset: 2px; } .lq-filter-set-all { padding: 2px 8px; } .lq-filter-set-list { position: relative; max-height: 224px; overflow-y: auto; border: 1px solid var(--lq-border-subtle); border-radius: 4px; overscroll-behavior: contain; } .lq-filter-set-virtual { height: 224px; } .lq-filter-set-sizer { position: relative; } .lq-filter-set-item { height: 28px; } .lq-filter-set-virtual .lq-filter-set-item { position: absolute; top: 0; left: 0; right: 0; } .lq-filter-set-label { display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 8px; cursor: pointer; white-space: nowrap; } .lq-filter-set-label:hover { background: var(--lq-row-hover); } .lq-filter-set-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .lq-filter-set-count { color: var(--lq-muted-fg); font-variant-numeric: tabular-nums; } .lq-filter-set-empty { padding: 8px; color: var(--lq-muted-fg); } .lq-filter-popup-actions { display: flex; justify-content: flex-end; gap: 6px; } .lq-filter-popup-button { height: 30px; padding: 0 12px; font: inherit; color: var(--lq-fg); background: transparent; border: 1px solid var(--lq-border); border-radius: 4px; cursor: pointer; } .lq-filter-popup-button:hover { background: var(--lq-row-hover); } .lq-filter-popup-button:focus-visible { outline: 2px solid var(--lq-focus-ring); outline-offset: 1px; } .lq-filter-popup-apply, .lq-filter-popup-apply:hover { color: var(--lq-accent-fg); background: var(--lq-accent); border-color: var(--lq-accent); } .lq-filter-popup-reset { margin-inline-end: auto; } .lq-pinned-rows { position: sticky; z-index: 2; min-width: 100%; background: var(--lq-bg); } .lq-pinned-rows-top { border-bottom: 1px solid var(--lq-border); } .lq-pinned-rows-bottom { bottom: 0; border-top: 1px solid var(--lq-border); } .lq-pinned-row { display: flex; min-width: 100%; font-weight: 600; background: var(--lq-header-bg); border-bottom: 1px solid var(--lq-border-subtle); } .lq-pinned-row:last-child { border-bottom: 0; } .lq-pinned-row .lq-cell-pinned { background: var(--lq-header-bg); } .lq-row-drag-handle { flex: none; width: 12px; height: 16px; margin-inline-end: 6px; cursor: grab; touch-action: none; opacity: 0.55; background: radial-gradient(circle, currentColor 1.2px, transparent 1.6px) 0 0 / 6px 5px; } .lq-row-drag-handle:hover { opacity: 1; } .lq-row-drag-active, .lq-row-drag-active * { cursor: grabbing !important; user-select: none; } .lq-row-dragging { opacity: 0.5; } .lq-row-drop-above { box-shadow: inset 0 2px 0 var(--lq-accent); } .lq-row-drop-below { box-shadow: inset 0 -2px 0 var(--lq-accent); } @keyframes lq-cell-flash { from { background-color: color-mix(in srgb, var(--lq-accent) 35%, transparent); } to { background-color: transparent; } } .lq-cell-flash { animation: lq-cell-flash var(--lq-flash-duration, 500ms) ease-out; } .lq-cell-find-match { background: color-mix(in srgb, #f2cc60 45%, var(--lq-bg)); } .lq-cell-find-active { background: color-mix(in srgb, #f2a60c 70%, var(--lq-bg)); box-shadow: inset 0 0 0 2px var(--lq-accent); } .lq-find-bar { display: flex; align-items: center; gap: 4px; padding: 4px var(--lq-cell-padding); border-bottom: 1px solid var(--lq-border); background: var(--lq-header-bg); } .lq-find-input { flex: 0 1 220px; min-width: 0; height: 26px; padding: 0 6px; font: inherit; color: inherit; background: var(--lq-bg); border: 1px solid var(--lq-input-border); border-radius: 4px; } .lq-find-input:focus { outline: 2px solid var(--lq-focus-ring); outline-offset: -1px; } .lq-find-count { min-width: 64px; color: var(--lq-muted-fg); } .lq-find-button { width: 26px; height: 26px; font: inherit; color: inherit; background: transparent; border: 1px solid transparent; border-radius: 4px; cursor: pointer; } .lq-find-button:hover { background: var(--lq-row-hover); } .lq-find-button:focus-visible { outline: 2px solid var(--lq-focus-ring); outline-offset: 1px; } .lq-grid.lq-print-layout { height: auto; overflow: visible; } .lq-print-layout .lq-viewport { overflow: visible; flex: none; } .lq-print-layout .lq-header, .lq-print-layout .lq-pinned-rows { position: static; } .lq-print-layout .lq-body { height: auto !important; } .lq-print-layout .lq-row { position: relative; transform: none !important; break-inside: avoid; } .lq-print-layout .lq-cell-pinned { position: static; } .lq-print-layout .lq-spacer { display: none; } @media print { .lq-print-layout .lq-find-bar, .lq-print-layout .lq-pager, .lq-print-layout .lq-row-drag-handle { display: none; } .lq-print-layout .lq-header { display: table-header-group; } } @media (prefers-reduced-motion: reduce) { .lq-cell-flash { background-color: color-mix(in srgb, var(--lq-accent) 22%, transparent); } } @media (forced-colors: active) { .lq-cell-find-match, .lq-cell-flash { outline: 1px dashed CanvasText; outline-offset: -2px; } .lq-cell-find-active { outline: 2px solid Highlight; outline-offset: -2px; } .lq-row-drop-above, .lq-row-drop-below { border-color: Highlight; } } `
```

### localeDe

Kind: const. Import from `@birchui/core`.

```ts
const localeDe: LocalePack
```

### localeEn

Kind: const. Import from `@birchui/core`.

```ts
const localeEn: LocalePack
```

### localeEs

Kind: const. Import from `@birchui/core`.

```ts
const localeEs: LocalePack
```

### localeFr

Kind: const. Import from `@birchui/core`.

```ts
const localeFr: LocalePack
```

### localeJa

Kind: const. Import from `@birchui/core`.

```ts
const localeJa: LocalePack
```

### localePt

Kind: const. Import from `@birchui/core`.

```ts
const localePt: LocalePack
```

### localeZh

Kind: const. Import from `@birchui/core`.

```ts
const localeZh: LocalePack
```

### PAGINATION_STAGE_ORDER

Kind: const. Import from `@birchui/core`.

```ts
const PAGINATION_STAGE_ORDER: 900 = 900
```

### SORT_STAGE_ORDER

Kind: const. Import from `@birchui/core`.

```ts
const SORT_STAGE_ORDER: 200 = 200
```

### CellContext

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `row` | `TRow \| undefined` |  |
| `displayRow` | `DisplayRow<TRow>` |  |
| `value` | `unknown` |  |
| `formatted` | `string` |  |
| `column` | `ResolvedColumn<TRow>` |  |
| `rowIndex` | `number` |  |
| `api` | `GridApi<TRow>` |  |

### CellDecorator

Kind: interface. Import from `@birchui/core`.

```ts
interface CellDecorator<TRow = RowData>
(cell: HTMLElement, ctx: CellContext<TRow>): void
```

### CellEditor

Kind: interface. Import from `@birchui/core`.

```ts
interface CellEditor
```

| Property | Type | Description |
| --- | --- | --- |
| `element` | `HTMLElement` |  |
| `getValue` | `() => unknown` |  |
| `focus` | `() => void` |  |
| `destroy?` | `() => void` |  |

### CellEditorParams

Kind: interface. Import from `@birchui/core`.

```ts
interface CellEditorParams<TRow = RowData> extends CellContext<TRow>
```

| Property | Type | Description |
| --- | --- | --- |
| `initialInput?` | `string` |  |
| `commit` | `() => void` |  |
| `cancel` | `() => void` |  |
| `row` | `TRow \| undefined` | Inherited from CellContext. |
| `displayRow` | `DisplayRow<TRow>` | Inherited from CellContext. |
| `value` | `unknown` | Inherited from CellContext. |
| `formatted` | `string` | Inherited from CellContext. |
| `column` | `ResolvedColumn<TRow>` | Inherited from CellContext. |
| `rowIndex` | `number` | Inherited from CellContext. |
| `api` | `GridApi<TRow>` | Inherited from CellContext. |

### CellEvent

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `row` | `TRow \| undefined` |  |
| `displayRow` | `DisplayRow<TRow>` |  |
| `rowIndex` | `number` |  |
| `colId` | `string` |  |
| `value` | `unknown` |  |
| `event` | `MouseEvent \| KeyboardEvent \| PointerEvent` |  |

### CellPosition

Kind: interface. Import from `@birchui/core`.

```ts
interface CellPosition
```

| Property | Type | Description |
| --- | --- | --- |
| `rowIndex` | `number` |  |
| `colId` | `string` |  |

### CellValueChangedEvent

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `row` | `TRow` |  |
| `rowIndex` | `number` |  |
| `colId` | `string` |  |
| `oldValue` | `unknown` |  |
| `newValue` | `unknown` |  |
| `source` | `'edit' \| 'paste' \| 'fill' \| 'api' \| 'undo' \| 'redo'` |  |

### ColumnDef

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `id?` | `string` |  |
| `field?` | `string` |  |
| `header?` | `string` |  |
| `headerTooltip?` | `string` |  |
| `type?` | `ColumnType` |  |
| `width?` | `number` |  |
| `minWidth?` | `number` |  |
| `maxWidth?` | `number` |  |
| `flex?` | `number` |  |
| `pinned?` | `'left' \| 'right' \| null` |  |
| `hidden?` | `boolean` |  |
| `sortable?` | `boolean` |  |
| `resizable?` | `boolean` |  |
| `reorderable?` | `boolean` |  |
| `rowHeader?` | `boolean` |  |
| `filter?` | `boolean \| FilterKind` |  |
| `editable?` | `boolean \| ((ctx: CellContext<TRow>) => boolean)` |  |
| `editor?` | `EditorKind \| CellEditorFactory<TRow>` |  |
| `options?` | `readonly SelectOption[]` |  |
| `valueGetter?` | `(row: TRow) => unknown` |  |
| `valueSetter?` | `(row: TRow, value: unknown) => void` |  |
| `valueParser?` | `(input: string, row: TRow) => unknown` |  |
| `format?` | `(value: unknown, row: TRow \| undefined) => string` |  |
| `cell?` | `(ctx: CellContext<TRow>) => string \| Node \| null \| void` |  |
| `cellClass?` | `string \| ((ctx: CellContext<TRow>) => string \| undefined)` |  |
| `headerClass?` | `string` |  |
| `align?` | `'left' \| 'center' \| 'right'` |  |
| `comparator?` | `(a: unknown, b: unknown, rowA: TRow, rowB: TRow) => number` |  |
| `aggFunc?` | `AggFuncName \| AggFunc` |  |
| `rowGroup?` | `boolean` |  |
| `rowGroupIndex?` | `number` |  |
| `pivot?` | `boolean` |  |
| `pivotIndex?` | `number` |  |
| `meta?` | `Record<string, unknown>` |  |
| `columnGroupShow?` | `'open' \| 'closed'` |  |
| `autoHeight?` | `boolean` |  |
| `wrapText?` | `boolean` |  |
| `rowDrag?` | `boolean` |  |

### ColumnGroupDef

Kind: interface. Import from `@birchui/core`.

```ts
interface ColumnGroupDef<TRow = RowData> extends Partial< Record<Exclude<keyof ColumnDef<TRow>, 'header' | 'headerClass'>, never> >
```

| Property | Type | Description |
| --- | --- | --- |
| `groupId?` | `string` |  |
| `header` | `string` |  |
| `children` | `(ColumnDef<TRow> \| ColumnGroupDef<TRow>)[]` |  |
| `headerClass?` | `string` |  |
| `collapsible?` | `boolean` |  |
| `openByDefault?` | `boolean` |  |
| `id?` | `undefined` |  |
| `field?` | `undefined` |  |
| `headerTooltip?` | `undefined` |  |
| `type?` | `undefined` |  |
| `width?` | `undefined` |  |
| `minWidth?` | `undefined` |  |
| `maxWidth?` | `undefined` |  |
| `flex?` | `undefined` |  |
| `pinned?` | `undefined` |  |
| `hidden?` | `undefined` |  |
| `sortable?` | `undefined` |  |
| `resizable?` | `undefined` |  |
| `reorderable?` | `undefined` |  |
| `rowHeader?` | `undefined` |  |
| `filter?` | `undefined` |  |
| `editable?` | `undefined` |  |
| `editor?` | `undefined` |  |
| `options?` | `undefined` |  |
| `valueGetter?` | `undefined` |  |
| `valueSetter?` | `undefined` |  |
| `valueParser?` | `undefined` |  |
| `format?` | `undefined` |  |
| `cell?` | `undefined` |  |
| `cellClass?` | `undefined` |  |
| `align?` | `undefined` |  |
| `comparator?` | `undefined` |  |
| `aggFunc?` | `undefined` |  |
| `rowGroup?` | `undefined` |  |
| `rowGroupIndex?` | `undefined` |  |
| `pivot?` | `undefined` |  |
| `pivotIndex?` | `undefined` |  |
| `meta?` | `undefined` |  |
| `columnGroupShow?` | `undefined` |  |
| `autoHeight?` | `undefined` |  |
| `wrapText?` | `undefined` |  |
| `rowDrag?` | `undefined` |  |
| `sparkline?` | `undefined` |  |

### ColumnStage

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `name` | `string` |  |
| `order` | `number` |  |
| `run` | `(columns: ColumnDef<TRow>[], ctx: { api: GridApi<TRow>; options: Readonly<GridOptions<TRow>> }) => ColumnDef<TRow>[]` |  |

### ColumnState

Kind: interface. Import from `@birchui/core`.

```ts
interface ColumnState
```

| Property | Type | Description |
| --- | --- | --- |
| `colId` | `string` |  |
| `width?` | `number` |  |
| `pinned?` | `'left' \| 'right' \| null` |  |
| `hidden?` | `boolean` |  |
| `order?` | `number` |  |

### ComputeRowsOptions

Kind: interface. Import from `@birchui/core`.

```ts
interface ComputeRowsOptions
```

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

### CsvExportOptions

Kind: interface. Import from `@birchui/core`.

```ts
interface CsvExportOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `separator?` | `string` |  |
| `includeHeaders?` | `boolean` |  |
| `columns?` | `string[]` |  |
| `onlySelected?` | `boolean` |  |
| `formatted?` | `boolean` |  |
| `fileName?` | `string` |  |

### DisplayRow

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `kind` | `DisplayRowKind` |  |
| `id` | `string` |  |
| `data` | `TRow \| undefined` |  |
| `depth` | `number` |  |
| `sourceIndex` | `number` |  |
| `expandable` | `boolean` |  |
| `expanded` | `boolean` |  |
| `parentId?` | `string` |  |
| `group?` | `DisplayRowGroup<TRow>` |  |
| `aggregates?` | `Record<string, unknown>` |  |
| `fullWidth?` | `boolean` |  |
| `height?` | `number` |  |

### DisplayRowGroup

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `colId` | `string` |  |
| `key` | `unknown` |  |
| `label` | `string` |  |
| `childCount` | `number` |  |
| `leaves` | `TRow[]` |  |

### ExpansionQuery

Kind: interface. Import from `@birchui/core`.

```ts
interface ExpansionQuery
```

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

### FindChangedEvent

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `text` | `string` |  |
| `matches` | `FindMatch<TRow>[]` |  |
| `activeIndex` | `number` |  |

### FindMatch

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `rowIndex` | `number` |  |
| `colId` | `string` |  |
| `rowId` | `string` |  |
| `row` | `TRow \| undefined` |  |

### FindOptions

Kind: interface. Import from `@birchui/core`.

```ts
interface FindOptions
```

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

### FlashCellsParams

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `rows?` | `readonly (TRow \| string)[]` |  |
| `columns?` | `readonly string[]` |  |
| `duration?` | `number` |  |

### GridApi

Kind: interface. Import from `@birchui/core`.

```ts
interface GridApi<TRow = RowData> extends Widget<GridOptions<TRow>, GridEvents<TRow>>, GridFeatureApi<TRow>
```

| Property | Type | Description |
| --- | --- | --- |
| `getOptions` | `() => Readonly<GridOptions<TRow>>` |  |
| `translate` | `(key: string, fallback: string, params?: Record<string, string \| number>) => string` |  |
| `getDirection` | `() => 'ltr' \| 'rtl'` |  |
| `setRows` | `(rows: TRow[]) => void` |  |
| `getRows` | `() => readonly TRow[]` |  |
| `applyTransaction` | `(tx: RowTransaction<TRow>) => void` |  |
| `getRowId` | `(row: TRow) => string` |  |
| `getRowById` | `(id: string) => TRow \| undefined` |  |
| `setColumns` | `(columns: (ColumnDef<TRow> \| ColumnGroupDef<TRow>)[]) => void` |  |
| `getColumns` | `() => readonly ResolvedColumn<TRow>[]` |  |
| `getColumnGroups` | `() => readonly ResolvedColumnGroup<TRow>[]` |  |
| `setColumnGroupOpen` | `(groupId: string, open: boolean) => void` |  |
| `getDisplayColumns` | `() => readonly ResolvedColumn<TRow>[]` |  |
| `getColumn` | `(colId: string) => ResolvedColumn<TRow> \| undefined` |  |
| `getColumnState` | `() => ColumnState[]` |  |
| `applyColumnState` | `(state: ColumnState[]) => void` |  |
| `setColumnWidth` | `(colId: string, width: number) => void` |  |
| `autosizeColumn` | `(colId: string) => void` |  |
| `autosizeColumns` | `() => void` |  |
| `moveColumn` | `(colId: string, toIndex: number) => void` |  |
| `setColumnPinned` | `(colId: string, pinned: 'left' \| 'right' \| null) => void` |  |
| `setColumnHidden` | `(colId: string, hidden: boolean) => void` |  |
| `setSort` | `(sort: SortItem[]) => void` |  |
| `getSort` | `() => SortItem[]` |  |
| `setFilter` | `(colId: string, model: FilterModel \| null) => void` |  |
| `getFilterModel` | `() => Record<string, FilterModel>` |  |
| `setFilterModel` | `(model: Record<string, FilterModel>) => void` |  |
| `setQuickFilter` | `(text: string) => void` |  |
| `getDisplayRows` | `() => readonly DisplayRow<TRow>[]` |  |
| `getAllDisplayRows` | `() => readonly DisplayRow<TRow>[]` |  |
| `getRenderedRows` | `() => readonly DisplayRow<TRow>[]` |  |
| `getDisplayRow` | `(rowIndex: number) => DisplayRow<TRow> \| undefined` |  |
| `getValue` | `(row: TRow \| DisplayRow<TRow>, colId: string) => unknown` |  |
| `getFormattedValue` | `(row: TRow \| DisplayRow<TRow>, colId: string) => string` |  |
| `setValue` | `(row: TRow, colId: string, value: unknown, source?: CellValueChangedEvent['source']) => boolean` |  |
| `refresh` | `() => void` |  |
| `redraw` | `() => void` |  |
| `scrollToRow` | `(rowIndex: number, align?: 'auto' \| 'start' \| 'center' \| 'end') => void` |  |
| `scrollToColumn` | `(colId: string) => void` |  |
| `getSelectedRows` | `() => TRow[]` |  |
| `getSelectedIds` | `() => string[]` |  |
| `setRowSelected` | `(id: string, selected: boolean) => void` |  |
| `selectAll` | `() => void` |  |
| `deselectAll` | `() => void` |  |
| `focusCell` | `(rowIndex: number, colId: string) => void` |  |
| `getFocusedCell` | `() => CellPosition \| null` |  |
| `startEdit` | `(rowIndex: number, colId: string, initialInput?: string) => boolean` |  |
| `stopEdit` | `(cancel?: boolean) => void` |  |
| `isEditing` | `() => boolean` |  |
| `setExpanded` | `(rowIds: string \| readonly string[], expanded: boolean) => void` |  |
| `isExpanded` | `(rowId: string, options?: ExpansionQuery) => boolean \| undefined` |  |
| `expandAll` | `() => void` |  |
| `collapseAll` | `() => void` |  |
| `setPage` | `(page: number) => void` |  |
| `getPage` | `() => number` |  |
| `getPageCount` | `() => number` |  |
| `exportCsv` | `(options?: CsvExportOptions) => string` |  |
| `downloadCsv` | `(options?: CsvExportOptions) => void` |  |
| `hasModule` | `(name: string) => boolean` |  |
| `undo` | `() => boolean` |  |
| `redo` | `() => boolean` |  |
| `canUndo` | `() => boolean` |  |
| `canRedo` | `() => boolean` |  |
| `clearHistory` | `() => void` |  |
| `getState` | `() => GridState` |  |
| `setState` | `(state: Partial<GridState>) => void` |  |
| `setGroupBy?` | `(colIds: ((keyof TRow & string) \| (string & {}))[] \| null) => void` | Added by @birchui/grid-pro when its module is installed. |
| `getGroupBy?` | `() => string[]` | Added by @birchui/grid-pro when its module is installed. |
| `expandToLevel?` | `(level: number) => void` | Added by @birchui/grid-pro when its module is installed. |
| `setPivot?` | `(options: PivotOptions \| null) => void` | Added by @birchui/grid-pro when its module is installed. |
| `getPivot?` | `() => PivotOptions \| null` | Added by @birchui/grid-pro when its module is installed. |
| `getPivotResult?` | `() => PivotMatrix \| null` | Added by @birchui/grid-pro when its module is installed. |
| `getColumnAggregate?` | `(colId: string, aggFunc?: AggFuncInput) => unknown` | Added by @birchui/grid-pro when its module is installed. |
| `getCellRanges?` | `() => CellRange[]` | Added by @birchui/grid-pro when its module is installed. |
| `setCellRange?` | `(range: CellRange \| null) => void` | Added by @birchui/grid-pro when its module is installed. |
| `addCellRange?` | `(range: CellRange) => void` | Added by @birchui/grid-pro when its module is installed. |
| `clearCellRanges?` | `() => void` | Added by @birchui/grid-pro when its module is installed. |
| `getRangeValues?` | `(rangeIndex?: number) => unknown[][]` | Added by @birchui/grid-pro when its module is installed. |
| `onRangeChanged?` | `(listener: (event: RangeChangedEvent) => void) => () => void` | Added by @birchui/grid-pro when its module is installed. |
| `copyToClipboard?` | `() => Promise<void>` | Added by @birchui/grid-pro when its module is installed. |
| `cutToClipboard?` | `() => Promise<void>` | Added by @birchui/grid-pro when its module is installed. |
| `pasteFromClipboard?` | `() => Promise<number>` | Added by @birchui/grid-pro when its module is installed. |
| `pasteText?` | `(text: string) => number` | Added by @birchui/grid-pro when its module is installed. |
| `setDetailExpanded?` | `(rowId: string, expanded: boolean) => void` | Added by @birchui/grid-pro when its module is installed. |
| `isDetailExpanded?` | `(rowId: string) => boolean` | Added by @birchui/grid-pro when its module is installed. |
| `buildExcelWorkbook?` | `(options?: ExcelExportOptions) => XlsxWorkbook` | Added by @birchui/grid-pro when its module is installed. |
| `exportExcel?` | `(options?: ExcelExportOptions) => Promise<void>` | Added by @birchui/grid-pro when its module is installed. |
| `getExcelBlob?` | `(options?: ExcelExportOptions) => Promise<Blob>` | Added by @birchui/grid-pro when its module is installed. |
| `importExcel?` | `(data: Blob \| ArrayBuffer \| Uint8Array, options?: ExcelImportOptions) => Promise<ExcelImportResult<TRow>>` | Added by @birchui/grid-pro when its module is installed. |
| `getToolPanelColumns?` | `() => ResolvedColumn<TRow>[]` | Added by @birchui/grid-pro when its module is installed. |
| `openToolPanel?` | `(id: ToolPanelId) => void` | Added by @birchui/grid-pro when its module is installed. |
| `closeToolPanel?` | `() => void` | Added by @birchui/grid-pro when its module is installed. |
| `getOpenedToolPanel?` | `() => ToolPanelId \| null` | Added by @birchui/grid-pro when its module is installed. |
| `setSideBarVisible?` | `(visible: boolean) => void` | Added by @birchui/grid-pro when its module is installed. |
| `isSideBarVisible?` | `() => boolean` | Added by @birchui/grid-pro when its module is installed. |
| `createRangeChart?` | `(params?: CreateRangeChartParams<TRow>) => RangeChartRef \| null` | Added by @birchui/grid-pro when its module is installed. |
| `getChartRefs?` | `() => RangeChartRef[]` | Added by @birchui/grid-pro when its module is installed. |
| `readonly element` | `HTMLElement` | Inherited from Widget. |
| `update` | `(options: Partial<GridOptions<TRow>>) => void` | Inherited from Widget. |
| `on` | `<K extends keyof TEvents & string>(event: K, listener: Listener<TEvents[K]>) => () => void` | Inherited from Widget. |
| `destroy` | `() => void` | Inherited from Widget. |
| `moveRow` | `(row: string \| TRow, toIndex: number) => boolean` | Inherited from GridFeatureApi. |
| `getPinnedTopRows` | `() => readonly TRow[]` | Inherited from GridFeatureApi. |
| `getPinnedBottomRows` | `() => readonly TRow[]` | Inherited from GridFeatureApi. |
| `flashCells` | `(params?: FlashCellsParams<TRow> \| undefined) => void` | Inherited from GridFeatureApi. |
| `find` | `(text: string, options?: FindOptions) => FindMatch<TRow>[]` | Inherited from GridFeatureApi. |
| `findNext` | `() => FindMatch<TRow> \| null` | Inherited from GridFeatureApi. |
| `findPrevious` | `() => FindMatch<TRow> \| null` | Inherited from GridFeatureApi. |
| `getFindMatches` | `() => FindMatch<TRow>[]` | Inherited from GridFeatureApi. |
| `getActiveFindMatch` | `() => FindMatch<TRow> \| null` | Inherited from GridFeatureApi. |
| `clearFind` | `() => void` | Inherited from GridFeatureApi. |
| `openFindBar` | `() => void` | Inherited from GridFeatureApi. |
| `closeFindBar` | `() => void` | Inherited from GridFeatureApi. |
| `print` | `() => void` | Inherited from GridFeatureApi. |

### GridEvents

Kind: interface. Import from `@birchui/core`.

```ts
interface GridEvents<TRow = RowData> extends GridFeatureEvents<TRow>
```

| Property | Type | Description |
| --- | --- | --- |
| `ready` | `{ api: GridApi<TRow> }` |  |
| `cellClick` | `CellEvent<TRow>` |  |
| `cellDoubleClick` | `CellEvent<TRow>` |  |
| `cellKeyDown` | `CellEvent<TRow>` |  |
| `cellValueChanged` | `CellValueChangedEvent<TRow>` |  |
| `rowClick` | `{ row: TRow \| undefined; displayRow: DisplayRow<TRow>; rowIndex: number; event: MouseEvent }` |  |
| `selectionChanged` | `{ selected: TRow[] }` |  |
| `sortChanged` | `{ sort: SortItem[] }` |  |
| `filterChanged` | `{ filterModel: Record<string, FilterModel>; quickFilter: string }` |  |
| `columnResized` | `{ colId: string; width: number }` |  |
| `columnMoved` | `{ colId: string; toIndex: number }` |  |
| `columnPinned` | `{ colId: string; pinned: 'left' \| 'right' \| null }` |  |
| `columnVisible` | `{ colId: string; hidden: boolean }` |  |
| `columnStateChanged` | `{ state: ColumnState[] }` |  |
| `columnGroupOpened` | `{ groupId: string; open: boolean }` |  |
| `modelUpdated` | `{ rowCount: number; displayRowCount: number }` |  |
| `focusChanged` | `{ cell: CellPosition \| null }` |  |
| `viewportScroll` | `{ top: number; left: number }` |  |
| `pageChanged` | `{ page: number; pageCount: number }` |  |
| `rowExpanded` | `{ rowId: string; expanded: boolean }` |  |
| `editStart` | `CellPosition` |  |
| `editStop` | `CellPosition & { cancelled: boolean }` |  |
| `stateChanged` | `{ state: GridState }` |  |
| `rowDragStart` | `RowDragStartEvent<TRow>` | Inherited from GridFeatureEvents. |
| `rowDragEnd` | `RowDragEndEvent<TRow>` | Inherited from GridFeatureEvents. |
| `findChanged` | `FindChangedEvent<TRow>` | Inherited from GridFeatureEvents. |
| `printStarted` | `Record<string, never>` | Inherited from GridFeatureEvents. |
| `printFinished` | `Record<string, never>` | Inherited from GridFeatureEvents. |

### GridFeatureApi

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `moveRow` | `(row: TRow \| string, toIndex: number) => boolean` |  |
| `getPinnedTopRows` | `() => readonly TRow[]` |  |
| `getPinnedBottomRows` | `() => readonly TRow[]` |  |
| `flashCells` | `(params?: FlashCellsParams<TRow>) => void` |  |
| `find` | `(text: string, options?: FindOptions) => FindMatch<TRow>[]` |  |
| `findNext` | `() => FindMatch<TRow> \| null` |  |
| `findPrevious` | `() => FindMatch<TRow> \| null` |  |
| `getFindMatches` | `() => FindMatch<TRow>[]` |  |
| `getActiveFindMatch` | `() => FindMatch<TRow> \| null` |  |
| `clearFind` | `() => void` |  |
| `openFindBar` | `() => void` |  |
| `closeFindBar` | `() => void` |  |
| `print` | `() => void` |  |

### GridFeatureEvents

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `rowDragStart` | `RowDragStartEvent<TRow>` |  |
| `rowDragEnd` | `RowDragEndEvent<TRow>` |  |
| `findChanged` | `FindChangedEvent<TRow>` |  |
| `printStarted` | `Record<string, never>` |  |
| `printFinished` | `Record<string, never>` |  |

### GridFeatureOptions

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `rowDragHandle?` | `boolean` |  |
| `rowDragManaged?` | `boolean` |  |
| `pinnedTopRows?` | `TRow[]` |  |
| `pinnedBottomRows?` | `TRow[]` |  |
| `flashCells?` | `boolean` |  |
| `flashDuration?` | `number` |  |
| `findShortcut?` | `boolean` |  |
| `domLayout?` | `DomLayout` |  |
| `alignedGrids?` | `readonly GridApi<any>[]` |  |

### GridInternals

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `readonly api` | `GridApi<TRow>` |  |
| `readonly root` | `HTMLElement` |  |
| `readonly viewport` | `HTMLElement` |  |
| `options` | `() => Readonly<GridOptions<TRow>>` |  |
| `addRowStage` | `(stage: RowStage<TRow>) => () => void` |  |
| `addColumnStage` | `(stage: ColumnStage<TRow>) => () => void` |  |
| `addFullWidthRenderer` | `(kind: DisplayRowKind, renderer: FullWidthRenderer<TRow>) => () => void` |  |
| `addCellDecorator` | `(decorator: CellDecorator<TRow>) => () => void` |  |
| `addHeaderDecorator` | `(decorator: HeaderDecorator<TRow>) => () => void` |  |
| `addKeyHandler` | `(handler: (event: KeyboardEvent, focused: CellPosition \| null) => boolean) => () => void` |  |
| `addColumnMenuItems` | `(provider: (column: ResolvedColumn<TRow>) => MenuItem[]) => () => void` |  |
| `on` | `<K extends keyof InternalEvents<TRow>>(event: K, listener: (payload: InternalEvents<TRow>[K]) => void) => () => void` |  |
| `slot` | `(name: Slot) => HTMLElement` |  |
| `getCellElement` | `(rowIndex: number, colId: string) => HTMLElement \| null` |  |
| `cellFromPoint` | `(clientX: number, clientY: number) => CellPosition \| null` |  |
| `getRenderedRange` | `() => { firstRow: number; lastRow: number }` |  |
| `computeRows` | `(options?: ComputeRowsOptions) => DisplayRow<TRow>[]` |  |
| `refresh` | `() => void` |  |
| `render` | `() => void` |  |
| `emit` | `<K extends keyof GridEvents<TRow>>(event: K, payload: GridEvents<TRow>[K]) => void` |  |
| `state` | `<T>(key: string, init: () => T) => T` |  |
| `expose` | `(name: string, fn: (...args: any[]) => unknown) => () => void` |  |
| `getColumnElement` | `(colId: string) => HTMLElement \| null` |  |
| `addContextMenuItems` | `(provider: (ctx: CellContext<TRow>) => MenuItem[]) => () => void` |  |
| `addStateProvider` | `(name: string, provider: GridStateProvider) => () => void` |  |

### GridModule

Kind: interface. Import from `@birchui/core`.

```ts
interface GridModule
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly name` | `string` |  |
| `install` | `(grid: GridInternals<any>) => void \| (() => void)` |  |

### GridOptions

Kind: interface. Import from `@birchui/core`.

```ts
interface GridOptions<TRow = RowData> extends GridFeatureOptions<TRow>
```

| Property | Type | Description |
| --- | --- | --- |
| `columns` | `(ColumnDef<TRow> \| ColumnGroupDef<TRow>)[]` |  |
| `rows?` | `TRow[]` |  |
| `getRowId?` | `(row: TRow, index: number) => string` |  |
| `rowHeight?` | `number \| ((row: DisplayRow<TRow>) => number)` |  |
| `headerHeight?` | `number` |  |
| `floatingFilters?` | `boolean` |  |
| `quickFilter?` | `string` |  |
| `sort?` | `SortItem[]` |  |
| `multiSort?` | `boolean` |  |
| `filterModel?` | `Record<string, FilterModel>` |  |
| `rowSelection?` | `'single' \| 'multiple' \| false` |  |
| `checkboxSelection?` | `boolean` |  |
| `pagination?` | `boolean \| PaginationOptions` |  |
| `theme?` | `'light' \| 'dark' \| 'auto' \| (string & {})` |  |
| `density?` | `'compact' \| 'normal' \| 'comfortable'` |  |
| `defaultColumn?` | `Partial<ColumnDef<TRow>>` |  |
| `modules?` | `readonly GridModule[]` |  |
| `licenseKey?` | `string` |  |
| `overscanRows?` | `number` |  |
| `overscanColumns?` | `number` |  |
| `rowClass?` | `(row: DisplayRow<TRow>) => string \| undefined` |  |
| `ariaLabel?` | `string` |  |
| `emptyMessage?` | `string` |  |
| `localeText?` | `LocaleTextInput` |  |
| `rtl?` | `boolean` |  |
| `injectStyles?` | `boolean` |  |
| `debug?` | `boolean` |  |
| `locale?` | `string` |  |
| `stripes?` | `boolean` |  |
| `groupBy?` | `string[]` |  |
| `groupDefaultExpanded?` | `number` |  |
| `groupPanel?` | `boolean` |  |
| `groupColumn?` | `Partial<ColumnDef<TRow>>` |  |
| `groupTotals?` | `boolean` |  |
| `treeData?` | `boolean` |  |
| `getDataPath?` | `(row: TRow) => string[]` |  |
| `getParentId?` | `(row: TRow) => string \| null \| undefined` |  |
| `pivot?` | `PivotOptions` |  |
| `rangeSelection?` | `boolean` |  |
| `fillHandle?` | `boolean` |  |
| `clipboard?` | `boolean` |  |
| `statusBar?` | `boolean \| StatusBarOptions` |  |
| `masterDetail?` | `MasterDetailOptions<TRow>` |  |
| `rowModel?` | `'client' \| 'server'` |  |
| `serverSide?` | `ServerSideOptions<TRow>` |  |
| `contextMenu?` | `boolean \| ((ctx: CellContext<TRow>, defaults: MenuItem[]) => MenuItem[])` |  |
| `undoRedo?` | `boolean \| UndoRedoOptions` |  |
| `rowDragHandle?` | `boolean \| undefined` | Inherited from GridFeatureOptions. |
| `rowDragManaged?` | `boolean \| undefined` | Inherited from GridFeatureOptions. |
| `pinnedTopRows?` | `TRow[] \| undefined` | Inherited from GridFeatureOptions. |
| `pinnedBottomRows?` | `TRow[] \| undefined` | Inherited from GridFeatureOptions. |
| `flashCells?` | `boolean \| undefined` | Inherited from GridFeatureOptions. |
| `flashDuration?` | `number \| undefined` | Inherited from GridFeatureOptions. |
| `findShortcut?` | `boolean \| undefined` | Inherited from GridFeatureOptions. |
| `domLayout?` | `DomLayout \| undefined` | Inherited from GridFeatureOptions. |
| `alignedGrids?` | `readonly GridApi<any>[] \| undefined` | Inherited from GridFeatureOptions. |

### GridState

Kind: interface. Import from `@birchui/core`.

```ts
interface GridState
```

| Property | Type | Description |
| --- | --- | --- |
| `columns` | `ColumnState[]` |  |
| `sort` | `SortItem[]` |  |
| `filterModel` | `Record<string, FilterModel>` |  |
| `quickFilter` | `string` |  |
| `page` | `number` |  |
| `expandedRowIds` | `string[]` |  |
| `selectedRowIds` | `string[]` |  |
| `focusedCell` | `CellPosition \| null` |  |
| `scroll` | `{ top: number; left: number }` |  |
| `modules` | `Record<string, unknown>` |  |

### GridStateProvider

Kind: interface. Import from `@birchui/core`.

```ts
interface GridStateProvider
```

| Property | Type | Description |
| --- | --- | --- |
| `get` | `() => unknown` |  |
| `set` | `(value: unknown) => void` |  |
| `subscribe?` | `(notify: () => void) => () => void` |  |

### HeaderDecorator

Kind: interface. Import from `@birchui/core`.

```ts
interface HeaderDecorator<TRow = RowData>
(cell: HTMLElement, column: ResolvedColumn<TRow>, api: GridApi<TRow>): void
```

### InternalEvents

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `cellPointerDown` | `{ position: CellPosition; event: PointerEvent }` |  |
| `cellPointerEnter` | `{ position: CellPosition; event: PointerEvent }` |  |
| `pointerUp` | `{ event: PointerEvent }` |  |
| `keyDown` | `{ event: KeyboardEvent; focused: CellPosition \| null }` |  |
| `rendered` | `{ firstRow: number; lastRow: number }` |  |
| `pipelineDone` | `{ rows: readonly DisplayRow<TRow>[] }` |  |
| `optionsChanged` | `{ changed: (keyof GridOptions<TRow>)[] }` |  |
| `columnDragMove` | `{ colId: string; clientX: number; clientY: number; event: PointerEvent }` |  |
| `columnDragEnd` | `{ colId: string; clientX: number; clientY: number; event: PointerEvent; handled: boolean }` |  |
| `headerContextMenu` | `{ colId: string; event: MouseEvent }` |  |
| `destroy` | `Record<string, never>` |  |

### LocalePack

Kind: interface. Import from `@birchui/core`.

```ts
interface LocalePack
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly locale` | `string` |  |
| `readonly text` | `LocaleText` |  |

### MasterDetailOptions

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `render` | `(row: TRow, container: HTMLElement) => void \| (() => void)` |  |
| `height?` | `number \| ((row: TRow) => number)` |  |
| `isExpandable?` | `(row: TRow) => boolean` |  |

### MenuItem

Kind: interface. Import from `@birchui/core`.

```ts
interface MenuItem
```

| Property | Type | Description |
| --- | --- | --- |
| `label` | `string` |  |
| `action` | `() => void` |  |
| `checked?` | `boolean` |  |
| `disabled?` | `boolean` |  |
| `separatorBefore?` | `boolean` |  |

### PaginationOptions

Kind: interface. Import from `@birchui/core`.

```ts
interface PaginationOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `pageSize` | `number` |  |
| `page?` | `number` |  |

### PipelineContext

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `api` | `GridApi<TRow>` |  |
| `options` | `Readonly<GridOptions<TRow>>` |  |
| `columns` | `readonly ResolvedColumn<TRow>[]` |  |
| `sort` | `readonly SortItem[]` |  |
| `filterModel` | `Readonly<Record<string, FilterModel>>` |  |
| `quickFilter` | `string` |  |
| `getValue` | `(row: TRow, colId: string) => unknown` |  |
| `compareValues` | `(colId: string, a: unknown, b: unknown, rowA?: TRow, rowB?: TRow) => number` |  |
| `isExpanded` | `(rowId: string, fallback: boolean, options?: ExpansionQuery) => boolean` |  |
| `makeDataRow` | `(row: TRow, sourceIndex: number, depth?: number) => DisplayRow<TRow>` |  |

### PivotOptions

Kind: interface. Import from `@birchui/core`.

```ts
interface PivotOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `enabled?` | `boolean` |  |
| `rows?` | `string[]` |  |
| `columns?` | `string[]` |  |
| `values?` | `PivotValue[]` |  |
| `totals?` | `boolean` |  |

### PivotValue

Kind: interface. Import from `@birchui/core`.

```ts
interface PivotValue
```

| Property | Type | Description |
| --- | --- | --- |
| `colId` | `string` |  |
| `aggFunc?` | `AggFuncName \| AggFunc` |  |

### PluralText

Kind: interface. Import from `@birchui/core`.

```ts
interface PluralText
```

| Property | Type | Description |
| --- | --- | --- |
| `zero?` | `string` |  |
| `one?` | `string` |  |
| `two?` | `string` |  |
| `few?` | `string` |  |
| `many?` | `string` |  |
| `other` | `string` |  |

### ResolvedColumn

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `def` | `ColumnDef<TRow>` |  |
| `header` | `string` |  |
| `type` | `ColumnType` |  |
| `width` | `number` |  |
| `minWidth` | `number` |  |
| `maxWidth` | `number` |  |
| `pinned` | `'left' \| 'right' \| null` |  |
| `hidden` | `boolean` |  |
| `sortable` | `boolean` |  |
| `resizable` | `boolean` |  |
| `reorderable` | `boolean` |  |
| `rowHeader` | `boolean` |  |
| `filter` | `FilterKind \| null` |  |
| `align` | `'left' \| 'center' \| 'right'` |  |
| `generated` | `boolean` |  |

### ResolvedColumnGroup

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `groupId` | `string` |  |
| `header` | `string` |  |
| `def` | `ColumnGroupDef<TRow>` |  |
| `depth` | `number` |  |
| `parentId` | `string \| null` |  |
| `collapsible` | `boolean` |  |
| `open` | `boolean` |  |
| `children` | `ColumnTreeItem<TRow>[]` |  |
| `columnIds` | `string[]` |  |
| `displayedColumnIds` | `string[]` |  |

### RowDragEndEvent

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `row` | `TRow` |  |
| `fromIndex` | `number` |  |
| `toIndex` | `number` |  |

### RowDragStartEvent

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `row` | `TRow` |  |
| `fromIndex` | `number` |  |

### RowStage

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `name` | `string` |  |
| `order` | `number` |  |
| `run` | `(rows: DisplayRow<TRow>[], ctx: PipelineContext<TRow>) => DisplayRow<TRow>[]` |  |

### RowTransaction

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `add?` | `TRow[]` |  |
| `update?` | `TRow[]` |  |
| `remove?` | `(TRow \| string)[]` |  |

### ServerSideDatasource

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `getRows` | `(request: ServerSideRequest) => Promise<ServerSideResult<TRow>>` |  |

### ServerSideOptions

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `datasource` | `ServerSideDatasource<TRow>` |  |
| `blockSize?` | `number` |  |
| `maxBlocksInCache?` | `number` |  |
| `debounceMs?` | `number` |  |
| `getChildCount?` | `(groupRow: RowData) => number \| undefined` |  |

### ServerSideRequest

Kind: interface. Import from `@birchui/core`.

```ts
interface ServerSideRequest
```

| Property | Type | Description |
| --- | --- | --- |
| `startRow` | `number` |  |
| `endRow` | `number` |  |
| `sort` | `SortItem[]` |  |
| `filterModel` | `Record<string, FilterModel>` |  |
| `quickFilter` | `string` |  |
| `groupKeys` | `string[]` |  |
| `rowGroupCols` | `string[]` |  |
| `valueCols` | `ServerSideValueColumn[]` |  |
| `signal` | `AbortSignal` |  |

### ServerSideResult

Kind: interface. Import from `@birchui/core`.

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

| Property | Type | Description |
| --- | --- | --- |
| `rows` | `TRow[]` |  |
| `rowCount?` | `number` |  |
| `lastRow?` | `number` |  |

### ServerSideValueColumn

Kind: interface. Import from `@birchui/core`.

```ts
interface ServerSideValueColumn
```

| Property | Type | Description |
| --- | --- | --- |
| `colId` | `string` |  |
| `aggFunc` | `AggFuncName \| (string & {})` |  |

### SortItem

Kind: interface. Import from `@birchui/core`.

```ts
interface SortItem
```

| Property | Type | Description |
| --- | --- | --- |
| `colId` | `string` |  |
| `dir` | `SortDirection` |  |

### StatusBarOptions

Kind: interface. Import from `@birchui/core`.

```ts
interface StatusBarOptions
```

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

### UndoRedoOptions

Kind: interface. Import from `@birchui/core`.

```ts
interface UndoRedoOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `limit?` | `number` |  |

### Widget

Kind: interface. Import from `@birchui/core`.

```ts
interface Widget<TOptions, TEvents extends object>
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly element` | `HTMLElement` |  |
| `update` | `(options: Partial<TOptions>) => void` |  |
| `on` | `<K extends keyof TEvents & string>(event: K, listener: Listener<TEvents[K]>) => () => void` |  |
| `destroy` | `() => void` |  |

### WidgetDefinition

Kind: interface. Import from `@birchui/core`.

```ts
interface WidgetDefinition<TOptions, TEvents extends object, TWidget extends Widget<TOptions, TEvents>>
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly name` | `string` |  |
| `readonly tagName` | `string` |  |
| `readonly create` | `WidgetFactory<TOptions, TWidget>` |  |
| `readonly events` | `readonly (keyof TEvents & string)[]` |  |

### AggFunc

Kind: type. Import from `@birchui/core`.

```ts
type AggFunc = (values: unknown[], rows: readonly any[]) => unknown;
```

### AggFuncName

Kind: type. Import from `@birchui/core`.

```ts
type AggFuncName = 'sum' | 'avg' | 'min' | 'max' | 'count' | 'first' | 'last' | 'distinct';
```

### CellEditorFactory

Kind: type. Import from `@birchui/core`.

```ts
type CellEditorFactory<TRow = RowData> = (params: CellEditorParams<TRow>) => CellEditor;
```

### ColumnTreeItem

Kind: type. Import from `@birchui/core`.

```ts
type ColumnTreeItem<TRow = RowData> =
  { kind: 'group'; group: ResolvedColumnGroup<TRow> } | { kind: 'column'; column: ResolvedColumn<TRow> };
```

### ColumnType

Kind: type. Import from `@birchui/core`.

```ts
type ColumnType = 'text' | 'number' | 'date' | 'boolean';
```

### DateFilterOp

Kind: type. Import from `@birchui/core`.

```ts
type DateFilterOp = 'eq' | 'before' | 'after' | 'between' | 'blank' | 'notBlank';
```

### DisplayRowKind

Kind: type. Import from `@birchui/core`.

```ts
type DisplayRowKind = 'data' | 'group' | 'detail' | 'total';
```

### DomLayout

Kind: type. Import from `@birchui/core`.

```ts
type DomLayout = 'normal' | 'print';
```

### EditorKind

Kind: type. Import from `@birchui/core`.

```ts
type EditorKind = 'text' | 'number' | 'select' | 'checkbox' | 'date';
```

### FilterKind

Kind: type. Import from `@birchui/core`.

```ts
type FilterKind = 'text' | 'number' | 'date' | 'set' | 'boolean';
```

### FilterModel

Kind: type. Import from `@birchui/core`.

```ts
type FilterModel =
  | { type: 'text'; op: TextFilterOp; value?: string }
  | { type: 'number'; op: NumberFilterOp; value?: number; valueTo?: number }
  | { type: 'date'; op: DateFilterOp; value?: string | number | Date; valueTo?: string | number | Date }
  | { type: 'set'; values: readonly unknown[] }
  | { type: 'boolean'; value: boolean }
  | { type: 'custom'; test: (value: unknown, row: any) => boolean }
  | { type: 'combined'; op: 'and' | 'or'; conditions: FilterModel[] };
```

### FilterPredicate

Kind: type. Import from `@birchui/core`.

```ts
type FilterPredicate = (value: unknown, row: unknown) => boolean;
```

### FullWidthRenderer

Kind: type. Import from `@birchui/core`.

```ts
type FullWidthRenderer<TRow = RowData> = (
  row: DisplayRow<TRow>,
  container: HTMLElement,
  api: GridApi<TRow>,
) => void | (() => void);
```

### InputLimitCode

Kind: type. Import from `@birchui/core`.

```ts
type InputLimitCode =
  'input-too-long' | 'too-many-rows' | 'too-many-columns' | 'too-many-events' | 'too-many-tasks' | 'too-many-links';
```

### Listener

Kind: type. Import from `@birchui/core`.

```ts
type Listener<T> = (payload: T) => void;
```

### LocaleMessage

Kind: type. Import from `@birchui/core`.

```ts
type LocaleMessage = string | PluralText;
```

### LocaleText

Kind: type. Import from `@birchui/core`.

```ts
type LocaleText = Readonly<Record<string, LocaleMessage>>;
```

### LocaleTextInput

Kind: type. Import from `@birchui/core`.

```ts
type LocaleTextInput = LocaleText | LocalePack;
```

### NumberFilterOp

Kind: type. Import from `@birchui/core`.

```ts
type NumberFilterOp = 'eq' | 'ne' | 'lt' | 'lte' | 'gt' | 'gte' | 'between' | 'blank' | 'notBlank';
```

### RowData

Kind: type. Import from `@birchui/core`.

```ts
type RowData = Record<string, any>;
```

### SelectOption

Kind: type. Import from `@birchui/core`.

```ts
type SelectOption = string | number | { value: unknown; label: string };
```

### Slot

Kind: type. Import from `@birchui/core`.

```ts
type Slot = 'top' | 'bottom' | 'overlay';
```

### SortDirection

Kind: type. Import from `@birchui/core`.

```ts
type SortDirection = 'asc' | 'desc';
```

### TextDirection

Kind: type. Import from `@birchui/core`.

```ts
type TextDirection = 'ltr' | 'rtl';
```

### TextFilterOp

Kind: type. Import from `@birchui/core`.

```ts
type TextFilterOp =
  'contains' | 'notContains' | 'equals' | 'notEquals' | 'startsWith' | 'endsWith' | 'blank' | 'notBlank';
```

### Translate

Kind: type. Import from `@birchui/core`.

```ts
type Translate = (key: string, fallback: string, params?: Record<string, string | number>) => string;
```

### WidgetFactory

Kind: type. Import from `@birchui/core`.

```ts
type WidgetFactory<TOptions, TWidget> = (container: HTMLElement, options: TOptions) => TWidget;
```
