Birch UI v0.1
Pricing

@birchui/core

Grid engine: createGrid, options, column definitions, events and the module system.

Open .md
npm install @birchui/coreLicense: MIT

Key exports: createGrid, GridOptions, ColumnDef, GridApi, GridEvents, FilterModel, GridModule, GridInternals, ColumnGroupDef, GridState, ServerSideDatasource, LocalePack

Guides: Keyboard navigation & accessibility, Grid API reference, Column groups, Column operations, Columns, Context menu

Functions#

assertInputLimitfunction#

function assertInputLimit(code: InputLimitCode, actual: number, limit: number, subject: string, unit: string): void
ParameterTypeDescription
codeInputLimitCode—
actualnumber—
limitnumber—
subjectstring—
unitstring—

Defined in packages/core/src/input-limits.ts:31

clampfunction#

function clamp(value: number, min: number, max: number): number
ParameterTypeDescription
valuenumber—
minnumber—
maxnumber—

Defined in packages/core/src/dom.ts:37

compareByTypefunction#

function compareByType(type: ColumnType, a: unknown, b: unknown, locale?: string): number
ParameterTypeDescription
typeColumnType—
aunknown—
bunknown—
localeoptionalstring—

Defined in packages/core/src/values.ts:98

compileFilterfunction#

function compileFilter(model: FilterModel): FilterPredicate
ParameterTypeDescription
modelFilterModel—

Defined in packages/core/src/filtering.ts:10

createGridfunction#

function createGrid<TRow = RowData>(container: HTMLElement, options: GridOptions<TRow>): GridApi<TRow>
ParameterTypeDescription
containerHTMLElement—
optionsGridOptions<TRow>—

Defined in packages/core/src/grid.ts:5

createTranslatorfunction#

function createTranslator(overrides?: LocaleTextInput, locale?: string): Translate
ParameterTypeDescription
overridesoptionalLocaleTextInput—
localeoptionalstring—

Defined in packages/core/src/i18n.ts:77

defineWidgetfunction#

function defineWidget<TOptions, TEvents extends object, TWidget extends Widget<TOptions, TEvents>>(definition: WidgetDefinition<TOptions, TEvents, TWidget>): WidgetDefinition<TOptions, TEvents, TWidget>
ParameterTypeDescription
definitionWidgetDefinition<TOptions, TEvents, TWidget>—

Defined in packages/core/src/widget.ts:19

describeFilterfunction#

function describeFilter(model: FilterModel): string
ParameterTypeDescription
modelFilterModel—

Defined in packages/core/src/filtering.ts:225

ensureStylesfunction#

function ensureStyles(id: string, cssText: string, doc: Document = document): void
ParameterTypeDescription
idstring—
cssTextstring—
docoptionalDocument—

Defined in packages/core/src/dom.ts:1

escapeCsvFieldfunction#

function escapeCsvField(value: unknown, separator: string): string
ParameterTypeDescription
valueunknown—
separatorstring—

Defined in packages/core/src/csv.ts:3

formatByTypefunction#

function formatByType(type: ColumnType, value: unknown, locale?: string): string
ParameterTypeDescription
typeColumnType—
valueunknown—
localeoptionalstring—

Defined in packages/core/src/values.ts:124

formatMessagefunction#

function formatMessage(message: LocaleMessage, locale: string, params?: Record<string, string | number>): string
ParameterTypeDescription
messageLocaleMessage—
localestring—
paramsoptionalRecord<string, string | number>—

Defined in packages/core/src/i18n.ts:58

getDefaultLocaleTextfunction#

function getDefaultLocaleText(): LocalePack

Defined in packages/core/src/i18n.ts:39

hfunction#

function h<K extends keyof HTMLElementTagNameMap>(tag: K, attrs: Record<string, string | number | boolean | undefined> = {}, children: (Node | string)[] = []): HTMLElementTagNameMap[K]
ParameterTypeDescription
tagK—
attrsoptionalRecord<string, string | number | boolean | undefined>—
childrenoptional(Node | string)[]—

Defined in packages/core/src/dom.ts:9

isBlankfunction#

function isBlank(value: unknown): boolean
ParameterTypeDescription
valueunknown—

Defined in packages/core/src/values.ts:47

isLocalhostfunction#

function isLocalhost(loc: { hostname: string } | undefined = globalThis.location): boolean
ParameterTypeDescription
locoptional{ hostname: string } | undefined—

Defined in packages/core/src/dom.ts:24

parseByTypefunction#

function parseByType(type: ColumnType, input: string, previous: unknown): unknown
ParameterTypeDescription
typeColumnType—
inputstring—
previousunknown—

Defined in packages/core/src/values.ts:156

parseFilterInputfunction#

function parseFilterInput(kind: FilterKind, input: string): FilterModel | null
ParameterTypeDescription
kindFilterKind—
inputstring—

Defined in packages/core/src/filtering.ts:162

pathGetterfunction#

function pathGetter(path: string): PathGetter
ParameterTypeDescription
pathstring—

Defined in packages/core/src/values.ts:9

pathSetterfunction#

function pathSetter(path: string): PathSetter
ParameterTypeDescription
pathstring—

Defined in packages/core/src/values.ts:29

resolveDirectionfunction#

function resolveDirection(container: Element | null | undefined, rtl?: boolean): TextDirection
ParameterTypeDescription
containerElement | null | undefined—
rtloptionalboolean—

Defined in packages/core/src/i18n.ts:96

resolveInputLimitsfunction#

function resolveInputLimits<T extends Record<string, number>>(defaults: T, overrides?: Partial<T>): T
ParameterTypeDescription
defaultsT—
overridesoptionalPartial<T>—

Defined in packages/core/src/input-limits.ts:19

safeCssValuefunction#

function safeCssValue(value: unknown): string | undefined
ParameterTypeDescription
valueunknown—

Defined in packages/core/src/css-value.ts:4

setDefaultLocaleTextfunction#

function setDefaultLocaleText(pack: LocaleTextInput | undefined): void
ParameterTypeDescription
packLocaleTextInput | undefined—

Defined in packages/core/src/i18n.ts:35

tfunction#

function t(key: string, fallback: string, params?: Record<string, string | number>): string
ParameterTypeDescription
keystring—
fallbackstring—
paramsoptionalRecord<string, string | number>—

Defined in packages/core/src/i18n.ts:88

toBooleanfunction#

function toBoolean(value: unknown): boolean | null
ParameterTypeDescription
valueunknown—

Defined in packages/core/src/values.ts:75

toCsvfunction#

function toCsv(matrix: readonly (readonly unknown[])[], separator = ','): string
ParameterTypeDescription
matrixreadonly (readonly unknown[])[]—
separatoroptionalunknown—

Defined in packages/core/src/csv.ts:13

toDatefunction#

function toDate(value: unknown): Date | null
ParameterTypeDescription
valueunknown—

Defined in packages/core/src/values.ts:51

toNumberfunction#

function toNumber(value: unknown): number | null
ParameterTypeDescription
valueunknown—

Defined in packages/core/src/values.ts:62

Classes#

Emitterclass#

class Emitter<TEvents extends object>
new Emitter()
MemberTypeDescription
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—

Defined in packages/core/src/emitter.ts:3

InputLimitErrorclass#

class InputLimitError extends Error
new InputLimitError(readonly code: InputLimitCode, readonly limit: number, readonly actual: number, message: string)
MemberTypeDescription
namereadonly"InputLimitError"—
codereadonlyInputLimitCode—
limitreadonlynumber—
actualreadonlynumber—

Defined in packages/core/src/input-limits.ts:4

Constants#

DEFAULT_MAX_INPUT_LENGTHconst#

const DEFAULT_MAX_INPUT_LENGTH: number

Defined in packages/core/src/input-limits.ts:17

FILTER_STAGE_ORDERconst#

const FILTER_STAGE_ORDER: 100 = 100

Defined in packages/core/src/row-model.ts:6

gridDefinitionconst#

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

Defined in packages/core/src/grid.ts:9

gridStylesconst#

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; } } `

Defined in packages/core/src/styles.ts:1

localeDeconst#

const localeDe: LocalePack

Defined in packages/core/src/locales/de.ts:13

localeEnconst#

const localeEn: LocalePack

Defined in packages/core/src/locales/en.ts:13

localeEsconst#

const localeEs: LocalePack

Defined in packages/core/src/locales/es.ts:13

localeFrconst#

const localeFr: LocalePack

Defined in packages/core/src/locales/fr.ts:13

localeJaconst#

const localeJa: LocalePack

Defined in packages/core/src/locales/ja.ts:13

localePtconst#

const localePt: LocalePack

Defined in packages/core/src/locales/pt.ts:13

localeZhconst#

const localeZh: LocalePack

Defined in packages/core/src/locales/zh.ts:13

PAGINATION_STAGE_ORDERconst#

const PAGINATION_STAGE_ORDER: 900 = 900

Defined in packages/core/src/row-model.ts:8

SORT_STAGE_ORDERconst#

const SORT_STAGE_ORDER: 200 = 200

Defined in packages/core/src/row-model.ts:7

Interfaces#

CellContextinterface#

interface CellContext<TRow = RowData>
PropertyTypeDescription
rowTRow | undefined—
displayRowDisplayRow<TRow>—
valueunknown—
formattedstring—
columnResolvedColumn<TRow>—
rowIndexnumber—
apiGridApi<TRow>—

Defined in packages/core/src/types.ts:61

CellDecoratorinterface#

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

Defined in packages/core/src/types.ts:476

CellEditorinterface#

interface CellEditor
PropertyTypeDescription
elementHTMLElement—
getValue()() => unknown—
focus()() => void—
destroy()optional() => void—

Defined in packages/core/src/types.ts:71

CellEditorParamsinterface#

interface CellEditorParams<TRow = RowData> extends CellContext<TRow>
PropertyTypeDescription
initialInputoptionalstring—
commit()() => void—
cancel()() => void—
rowTRow | undefinedInherited from CellContext.
displayRowDisplayRow<TRow>Inherited from CellContext.
valueunknownInherited from CellContext.
formattedstringInherited from CellContext.
columnResolvedColumn<TRow>Inherited from CellContext.
rowIndexnumberInherited from CellContext.
apiGridApi<TRow>Inherited from CellContext.

Defined in packages/core/src/types.ts:78

CellEventinterface#

interface CellEvent<TRow = RowData>
PropertyTypeDescription
rowTRow | undefined—
displayRowDisplayRow<TRow>—
rowIndexnumber—
colIdstring—
valueunknown—
eventMouseEvent | KeyboardEvent | PointerEvent—

Defined in packages/core/src/types.ts:305

CellPositioninterface#

interface CellPosition
PropertyTypeDescription
rowIndexnumber—
colIdstring—

Defined in packages/core/src/types.ts:300

CellValueChangedEventinterface#

interface CellValueChangedEvent<TRow = RowData>
PropertyTypeDescription
rowTRow—
rowIndexnumber—
colIdstring—
oldValueunknown—
newValueunknown—
source'edit' | 'paste' | 'fill' | 'api' | 'undo' | 'redo'—

Defined in packages/core/src/types.ts:314

ColumnDefinterface#

interface ColumnDef<TRow = RowData>
PropertyTypeDescription
idoptionalstring—
fieldoptionalstring—
headeroptionalstring—
headerTooltipoptionalstring—
typeoptionalColumnType—
widthoptionalnumber—
minWidthoptionalnumber—
maxWidthoptionalnumber—
flexoptionalnumber—
pinnedoptional'left' | 'right' | null—
hiddenoptionalboolean—
sortableoptionalboolean—
resizableoptionalboolean—
reorderableoptionalboolean—
rowHeaderoptionalboolean—
filteroptionalboolean | FilterKind—
editableoptionalboolean | ((ctx: CellContext<TRow>) => boolean)—
editoroptionalEditorKind | CellEditorFactory<TRow>—
optionsoptionalreadonly SelectOption[]—
valueGetteroptional(row: TRow) => unknown—
valueSetteroptional(row: TRow, value: unknown) => void—
valueParseroptional(input: string, row: TRow) => unknown—
formatoptional(value: unknown, row: TRow | undefined) => string—
celloptional(ctx: CellContext<TRow>) => string | Node | null | void—
cellClassoptionalstring | ((ctx: CellContext<TRow>) => string | undefined)—
headerClassoptionalstring—
alignoptional'left' | 'center' | 'right'—
comparatoroptional(a: unknown, b: unknown, rowA: TRow, rowB: TRow) => number—
aggFuncoptionalAggFuncName | AggFunc—
rowGroupoptionalboolean—
rowGroupIndexoptionalnumber—
pivotoptionalboolean—
pivotIndexoptionalnumber—
metaoptionalRecord<string, unknown>—
columnGroupShowoptional'open' | 'closed'—
autoHeightoptionalboolean—
wrapTextoptionalboolean—
rowDragoptionalboolean—

Defined in packages/core/src/types.ts:90

ColumnGroupDefinterface#

interface ColumnGroupDef<TRow = RowData> extends Partial< Record<Exclude<keyof ColumnDef<TRow>, 'header' | 'headerClass'>, never> >
PropertyTypeDescription
groupIdoptionalstring—
headerstring—
children(ColumnDef<TRow> | ColumnGroupDef<TRow>)[]—
headerClassoptionalstring—
collapsibleoptionalboolean—
openByDefaultoptionalboolean—
idoptionalundefined—
fieldoptionalundefined—
headerTooltipoptionalundefined—
typeoptionalundefined—
widthoptionalundefined—
minWidthoptionalundefined—
maxWidthoptionalundefined—
flexoptionalundefined—
pinnedoptionalundefined—
hiddenoptionalundefined—
sortableoptionalundefined—
resizableoptionalundefined—
reorderableoptionalundefined—
rowHeaderoptionalundefined—
filteroptionalundefined—
editableoptionalundefined—
editoroptionalundefined—
optionsoptionalundefined—
valueGetteroptionalundefined—
valueSetteroptionalundefined—
valueParseroptionalundefined—
formatoptionalundefined—
celloptionalundefined—
cellClassoptionalundefined—
alignoptionalundefined—
comparatoroptionalundefined—
aggFuncoptionalundefined—
rowGroupoptionalundefined—
rowGroupIndexoptionalundefined—
pivotoptionalundefined—
pivotIndexoptionalundefined—
metaoptionalundefined—
columnGroupShowoptionalundefined—
autoHeightoptionalundefined—
wrapTextoptionalundefined—
rowDragoptionalundefined—
sparklineoptionalundefined—

Defined in packages/core/src/types.ts:131

ColumnStageinterface#

interface ColumnStage<TRow = RowData>
PropertyTypeDescription
namestring—
ordernumber—
run()(columns: ColumnDef<TRow>[], ctx: { api: GridApi<TRow>; options: Readonly<GridOptions<TRow>> }) => ColumnDef<TRow>[]—

Defined in packages/core/src/types.ts:460

ColumnStateinterface#

interface ColumnState
PropertyTypeDescription
colIdstring—
widthoptionalnumber—
pinnedoptional'left' | 'right' | null—
hiddenoptionalboolean—
orderoptionalnumber—

Defined in packages/core/src/types.ts:177

ComputeRowsOptionsinterface#

interface ComputeRowsOptions
PropertyTypeDescription
expandAlloptionalboolean—

Defined in packages/core/src/types.ts:437

CsvExportOptionsinterface#

interface CsvExportOptions
PropertyTypeDescription
separatoroptionalstring—
includeHeadersoptionalboolean—
columnsoptionalstring[]—
onlySelectedoptionalboolean—
formattedoptionalboolean—
fileNameoptionalstring—

Defined in packages/core/src/types.ts:355

DisplayRowinterface#

interface DisplayRow<TRow = RowData>
PropertyTypeDescription
kindDisplayRowKind—
idstring—
dataTRow | undefined—
depthnumber—
sourceIndexnumber—
expandableboolean—
expandedboolean—
parentIdoptionalstring—
groupoptionalDisplayRowGroup<TRow>—
aggregatesoptionalRecord<string, unknown>—
fullWidthoptionalboolean—
heightoptionalnumber—

Defined in packages/core/src/types.ts:46

DisplayRowGroupinterface#

interface DisplayRowGroup<TRow = RowData>
PropertyTypeDescription
colIdstring—
keyunknown—
labelstring—
childCountnumber—
leavesTRow[]—

Defined in packages/core/src/types.ts:38

ExpansionQueryinterface#

interface ExpansionQuery
PropertyTypeDescription
ignoreExpandAlloptionalboolean—

Defined in packages/core/src/types.ts:433

FindChangedEventinterface#

interface FindChangedEvent<TRow = RowData>
PropertyTypeDescription
textstring—
matchesFindMatch<TRow>[]—
activeIndexnumber—

Defined in packages/core/src/feature-types.ts:45

FindMatchinterface#

interface FindMatch<TRow = RowData>
PropertyTypeDescription
rowIndexnumber—
colIdstring—
rowIdstring—
rowTRow | undefined—

Defined in packages/core/src/feature-types.ts:38

FindOptionsinterface#

interface FindOptions
PropertyTypeDescription
caseSensitiveoptionalboolean—

Defined in packages/core/src/feature-types.ts:34

FlashCellsParamsinterface#

interface FlashCellsParams<TRow = RowData>
PropertyTypeDescription
rowsoptionalreadonly (TRow | string)[]—
columnsoptionalreadonly string[]—
durationoptionalnumber—

Defined in packages/core/src/feature-types.ts:28

GridApiinterface#

interface GridApi<TRow = RowData> extends Widget<GridOptions<TRow>, GridEvents<TRow>>, GridFeatureApi<TRow>
MemberTypeDescription
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()optional(colIds: ((keyof TRow & string) | (string & {}))[] | null) => voidAdded by @birchui/grid-pro when its module is installed.
getGroupBy()optional() => string[]Added by @birchui/grid-pro when its module is installed.
expandToLevel()optional(level: number) => voidAdded by @birchui/grid-pro when its module is installed.
setPivot()optional(options: PivotOptions | null) => voidAdded by @birchui/grid-pro when its module is installed.
getPivot()optional() => PivotOptions | nullAdded by @birchui/grid-pro when its module is installed.
getPivotResult()optional() => PivotMatrix | nullAdded by @birchui/grid-pro when its module is installed.
getColumnAggregate()optional(colId: string, aggFunc?: AggFuncInput) => unknownAdded by @birchui/grid-pro when its module is installed.
getCellRanges()optional() => CellRange[]Added by @birchui/grid-pro when its module is installed.
setCellRange()optional(range: CellRange | null) => voidAdded by @birchui/grid-pro when its module is installed.
addCellRange()optional(range: CellRange) => voidAdded by @birchui/grid-pro when its module is installed.
clearCellRanges()optional() => voidAdded by @birchui/grid-pro when its module is installed.
getRangeValues()optional(rangeIndex?: number) => unknown[][]Added by @birchui/grid-pro when its module is installed.
onRangeChanged()optional(listener: (event: RangeChangedEvent) => void) => () => voidAdded by @birchui/grid-pro when its module is installed.
copyToClipboard()optional() => Promise<void>Added by @birchui/grid-pro when its module is installed.
cutToClipboard()optional() => Promise<void>Added by @birchui/grid-pro when its module is installed.
pasteFromClipboard()optional() => Promise<number>Added by @birchui/grid-pro when its module is installed.
pasteText()optional(text: string) => numberAdded by @birchui/grid-pro when its module is installed.
setDetailExpanded()optional(rowId: string, expanded: boolean) => voidAdded by @birchui/grid-pro when its module is installed.
isDetailExpanded()optional(rowId: string) => booleanAdded by @birchui/grid-pro when its module is installed.
buildExcelWorkbook()optional(options?: ExcelExportOptions) => XlsxWorkbookAdded by @birchui/grid-pro when its module is installed.
exportExcel()optional(options?: ExcelExportOptions) => Promise<void>Added by @birchui/grid-pro when its module is installed.
getExcelBlob()optional(options?: ExcelExportOptions) => Promise<Blob>Added by @birchui/grid-pro when its module is installed.
importExcel()optional(data: Blob | ArrayBuffer | Uint8Array, options?: ExcelImportOptions) => Promise<ExcelImportResult<TRow>>Added by @birchui/grid-pro when its module is installed.
getToolPanelColumns()optional() => ResolvedColumn<TRow>[]Added by @birchui/grid-pro when its module is installed.
openToolPanel()optional(id: ToolPanelId) => voidAdded by @birchui/grid-pro when its module is installed.
closeToolPanel()optional() => voidAdded by @birchui/grid-pro when its module is installed.
getOpenedToolPanel()optional() => ToolPanelId | nullAdded by @birchui/grid-pro when its module is installed.
setSideBarVisible()optional(visible: boolean) => voidAdded by @birchui/grid-pro when its module is installed.
isSideBarVisible()optional() => booleanAdded by @birchui/grid-pro when its module is installed.
createRangeChart()optional(params?: CreateRangeChartParams<TRow>) => RangeChartRef | nullAdded by @birchui/grid-pro when its module is installed.
getChartRefs()optional() => RangeChartRef[]Added by @birchui/grid-pro when its module is installed.
elementreadonlyHTMLElementInherited from Widget.
update()(options: Partial<GridOptions<TRow>>) => voidInherited from Widget.
on()<K extends keyof TEvents & string>(event: K, listener: Listener<TEvents[K]>) => () => voidInherited from Widget.
destroy()() => voidInherited from Widget.
moveRow()(row: string | TRow, toIndex: number) => booleanInherited from GridFeatureApi.
getPinnedTopRows()() => readonly TRow[]Inherited from GridFeatureApi.
getPinnedBottomRows()() => readonly TRow[]Inherited from GridFeatureApi.
flashCells()(params?: FlashCellsParams<TRow> | undefined) => voidInherited from GridFeatureApi.
find()(text: string, options?: FindOptions) => FindMatch<TRow>[]Inherited from GridFeatureApi.
findNext()() => FindMatch<TRow> | nullInherited from GridFeatureApi.
findPrevious()() => FindMatch<TRow> | nullInherited from GridFeatureApi.
getFindMatches()() => FindMatch<TRow>[]Inherited from GridFeatureApi.
getActiveFindMatch()() => FindMatch<TRow> | nullInherited from GridFeatureApi.
clearFind()() => voidInherited from GridFeatureApi.
openFindBar()() => voidInherited from GridFeatureApi.
closeFindBar()() => voidInherited from GridFeatureApi.
print()() => voidInherited from GridFeatureApi.

Defined in packages/core/src/types.ts:364

GridEventsinterface#

interface GridEvents<TRow = RowData> extends GridFeatureEvents<TRow>
PropertyTypeDescription
ready{ api: GridApi<TRow> }—
cellClickCellEvent<TRow>—
cellDoubleClickCellEvent<TRow>—
cellKeyDownCellEvent<TRow>—
cellValueChangedCellValueChangedEvent<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 }—
editStartCellPosition—
editStopCellPosition & { cancelled: boolean }—
stateChanged{ state: GridState }—
rowDragStartRowDragStartEvent<TRow>Inherited from GridFeatureEvents.
rowDragEndRowDragEndEvent<TRow>Inherited from GridFeatureEvents.
findChangedFindChangedEvent<TRow>Inherited from GridFeatureEvents.
printStartedRecord<string, never>Inherited from GridFeatureEvents.
printFinishedRecord<string, never>Inherited from GridFeatureEvents.

Defined in packages/core/src/types.ts:323

GridFeatureApiinterface#

interface GridFeatureApi<TRow = RowData>
MemberTypeDescription
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—

Defined in packages/core/src/feature-types.ts:59

GridFeatureEventsinterface#

interface GridFeatureEvents<TRow = RowData>
PropertyTypeDescription
rowDragStartRowDragStartEvent<TRow>—
rowDragEndRowDragEndEvent<TRow>—
findChangedFindChangedEvent<TRow>—
printStartedRecord<string, never>—
printFinishedRecord<string, never>—

Defined in packages/core/src/feature-types.ts:51

GridFeatureOptionsinterface#

interface GridFeatureOptions<TRow = RowData>
PropertyTypeDescription
rowDragHandleoptionalboolean—
rowDragManagedoptionalboolean—
pinnedTopRowsoptionalTRow[]—
pinnedBottomRowsoptionalTRow[]—
flashCellsoptionalboolean—
flashDurationoptionalnumber—
findShortcutoptionalboolean—
domLayoutoptionalDomLayout—
alignedGridsoptionalreadonly GridApi<any>[]—

Defined in packages/core/src/feature-types.ts:5

GridInternalsinterface#

interface GridInternals<TRow = RowData>
PropertyTypeDescription
apireadonlyGridApi<TRow>—
rootreadonlyHTMLElement—
viewportreadonlyHTMLElement—
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—

Defined in packages/core/src/types.ts:504

GridModuleinterface#

interface GridModule
PropertyTypeDescription
namereadonlystring—
install()(grid: GridInternals<any>) => void | (() => void)—

Defined in packages/core/src/types.ts:532

GridOptionsinterface#

interface GridOptions<TRow = RowData> extends GridFeatureOptions<TRow>
PropertyTypeDescription
columns(ColumnDef<TRow> | ColumnGroupDef<TRow>)[]—
rowsoptionalTRow[]—
getRowIdoptional(row: TRow, index: number) => string—
rowHeightoptionalnumber | ((row: DisplayRow<TRow>) => number)—
headerHeightoptionalnumber—
floatingFiltersoptionalboolean—
quickFilteroptionalstring—
sortoptionalSortItem[]—
multiSortoptionalboolean—
filterModeloptionalRecord<string, FilterModel>—
rowSelectionoptional'single' | 'multiple' | false—
checkboxSelectionoptionalboolean—
paginationoptionalboolean | PaginationOptions—
themeoptional'light' | 'dark' | 'auto' | (string & {})—
densityoptional'compact' | 'normal' | 'comfortable'—
defaultColumnoptionalPartial<ColumnDef<TRow>>—
modulesoptionalreadonly GridModule[]—
licenseKeyoptionalstring—
overscanRowsoptionalnumber—
overscanColumnsoptionalnumber—
rowClassoptional(row: DisplayRow<TRow>) => string | undefined—
ariaLabeloptionalstring—
emptyMessageoptionalstring—
localeTextoptionalLocaleTextInput—
rtloptionalboolean—
injectStylesoptionalboolean—
debugoptionalboolean—
localeoptionalstring—
stripesoptionalboolean—
groupByoptionalstring[]—
groupDefaultExpandedoptionalnumber—
groupPaneloptionalboolean—
groupColumnoptionalPartial<ColumnDef<TRow>>—
groupTotalsoptionalboolean—
treeDataoptionalboolean—
getDataPathoptional(row: TRow) => string[]—
getParentIdoptional(row: TRow) => string | null | undefined—
pivotoptionalPivotOptions—
rangeSelectionoptionalboolean—
fillHandleoptionalboolean—
clipboardoptionalboolean—
statusBaroptionalboolean | StatusBarOptions—
masterDetailoptionalMasterDetailOptions<TRow>—
rowModeloptional'client' | 'server'—
serverSideoptionalServerSideOptions<TRow>—
contextMenuoptionalboolean | ((ctx: CellContext<TRow>, defaults: MenuItem[]) => MenuItem[])—
undoRedooptionalboolean | UndoRedoOptions—
rowDragHandleoptionalboolean | undefinedInherited from GridFeatureOptions.
rowDragManagedoptionalboolean | undefinedInherited from GridFeatureOptions.
pinnedTopRowsoptionalTRow[] | undefinedInherited from GridFeatureOptions.
pinnedBottomRowsoptionalTRow[] | undefinedInherited from GridFeatureOptions.
flashCellsoptionalboolean | undefinedInherited from GridFeatureOptions.
flashDurationoptionalnumber | undefinedInherited from GridFeatureOptions.
findShortcutoptionalboolean | undefinedInherited from GridFeatureOptions.
domLayoutoptionalDomLayout | undefinedInherited from GridFeatureOptions.
alignedGridsoptionalreadonly GridApi<any>[] | undefinedInherited from GridFeatureOptions.

Defined in packages/core/src/types.ts:250

GridStateinterface#

interface GridState
PropertyTypeDescription
columnsColumnState[]—
sortSortItem[]—
filterModelRecord<string, FilterModel>—
quickFilterstring—
pagenumber—
expandedRowIdsstring[]—
selectedRowIdsstring[]—
focusedCellCellPosition | null—
scroll{ top: number; left: number }—
modulesRecord<string, unknown>—

Defined in packages/core/src/types.ts:541

GridStateProviderinterface#

interface GridStateProvider
PropertyTypeDescription
get()() => unknown—
set()(value: unknown) => void—
subscribe()optional(notify: () => void) => () => void—

Defined in packages/core/src/types.ts:554

HeaderDecoratorinterface#

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

Defined in packages/core/src/types.ts:472

InternalEventsinterface#

interface InternalEvents<TRow = RowData>
PropertyTypeDescription
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 }—
destroyRecord<string, never>—

Defined in packages/core/src/types.ts:488

LocalePackinterface#

interface LocalePack
PropertyTypeDescription
localereadonlystring—
textreadonlyLocaleText—

Defined in packages/core/src/i18n.ts:14

MasterDetailOptionsinterface#

interface MasterDetailOptions<TRow = RowData>
PropertyTypeDescription
render(row: TRow, container: HTMLElement) => void | (() => void)—
heightoptionalnumber | ((row: TRow) => number)—
isExpandableoptional(row: TRow) => boolean—

Defined in packages/core/src/types.ts:203

interface MenuItem
PropertyTypeDescription

Defined in packages/core/src/types.ts:480

PaginationOptionsinterface#

interface PaginationOptions
PropertyTypeDescription
pageSizenumber—
pageoptionalnumber—

Defined in packages/core/src/types.ts:185

PipelineContextinterface#

interface PipelineContext<TRow = RowData>
PropertyTypeDescription
apiGridApi<TRow>—
optionsReadonly<GridOptions<TRow>>—
columnsreadonly ResolvedColumn<TRow>[]—
sortreadonly SortItem[]—
filterModelReadonly<Record<string, FilterModel>>—
quickFilterstring—
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>—

Defined in packages/core/src/types.ts:441

PivotOptionsinterface#

interface PivotOptions
PropertyTypeDescription
enabledoptionalboolean—
rowsoptionalstring[]—
columnsoptionalstring[]—
valuesoptionalPivotValue[]—
totalsoptionalboolean—

Defined in packages/core/src/types.ts:195

PivotValueinterface#

interface PivotValue
PropertyTypeDescription
colIdstring—
aggFuncoptionalAggFuncName | AggFunc—

Defined in packages/core/src/types.ts:190

PluralTextinterface#

interface PluralText
PropertyTypeDescription
zerooptionalstring—
oneoptionalstring—
twooptionalstring—
fewoptionalstring—
manyoptionalstring—
otherstring—

Defined in packages/core/src/i18n.ts:1

ResolvedColumninterface#

interface ResolvedColumn<TRow = RowData>
PropertyTypeDescription
idstring—
defColumnDef<TRow>—
headerstring—
typeColumnType—
widthnumber—
minWidthnumber—
maxWidthnumber—
pinned'left' | 'right' | null—
hiddenboolean—
sortableboolean—
resizableboolean—
reorderableboolean—
rowHeaderboolean—
filterFilterKind | null—
align'left' | 'center' | 'right'—
generatedboolean—

Defined in packages/core/src/types.ts:158

ResolvedColumnGroupinterface#

interface ResolvedColumnGroup<TRow = RowData>
PropertyTypeDescription
groupIdstring—
headerstring—
defColumnGroupDef<TRow>—
depthnumber—
parentIdstring | null—
collapsibleboolean—
openboolean—
childrenColumnTreeItem<TRow>[]—
columnIdsstring[]—
displayedColumnIdsstring[]—

Defined in packages/core/src/types.ts:145

RowDragEndEventinterface#

interface RowDragEndEvent<TRow = RowData>
PropertyTypeDescription
rowTRow—
fromIndexnumber—
toIndexnumber—

Defined in packages/core/src/feature-types.ts:22

RowDragStartEventinterface#

interface RowDragStartEvent<TRow = RowData>
PropertyTypeDescription
rowTRow—
fromIndexnumber—

Defined in packages/core/src/feature-types.ts:17

RowStageinterface#

interface RowStage<TRow = RowData>
PropertyTypeDescription
namestring—
ordernumber—
run()(rows: DisplayRow<TRow>[], ctx: PipelineContext<TRow>) => DisplayRow<TRow>[]—

Defined in packages/core/src/types.ts:454

RowTransactioninterface#

interface RowTransaction<TRow = RowData>
PropertyTypeDescription
addoptionalTRow[]—
updateoptionalTRow[]—
removeoptional(TRow | string)[]—

Defined in packages/core/src/types.ts:349

ServerSideDatasourceinterface#

interface ServerSideDatasource<TRow = RowData>
PropertyTypeDescription
getRows()(request: ServerSideRequest) => Promise<ServerSideResult<TRow>>—

Defined in packages/core/src/types.ts:238

ServerSideOptionsinterface#

interface ServerSideOptions<TRow = RowData>
PropertyTypeDescription
datasourceServerSideDatasource<TRow>—
blockSizeoptionalnumber—
maxBlocksInCacheoptionalnumber—
debounceMsoptionalnumber—
getChildCountoptional(groupRow: RowData) => number | undefined—

Defined in packages/core/src/types.ts:242

ServerSideRequestinterface#

interface ServerSideRequest
PropertyTypeDescription
startRownumber—
endRownumber—
sortSortItem[]—
filterModelRecord<string, FilterModel>—
quickFilterstring—
groupKeysstring[]—
rowGroupColsstring[]—
valueColsServerSideValueColumn[]—
signalAbortSignal—

Defined in packages/core/src/types.ts:220

ServerSideResultinterface#

interface ServerSideResult<TRow = RowData>
PropertyTypeDescription
rowsTRow[]—
rowCountoptionalnumber—
lastRowoptionalnumber—

Defined in packages/core/src/types.ts:232

ServerSideValueColumninterface#

interface ServerSideValueColumn
PropertyTypeDescription
colIdstring—
aggFuncAggFuncName | (string & {})—

Defined in packages/core/src/types.ts:215

SortIteminterface#

interface SortItem
PropertyTypeDescription
colIdstring—
dirSortDirection—

Defined in packages/core/src/types.ts:11

StatusBarOptionsinterface#

interface StatusBarOptions
PropertyTypeDescription
rowCountoptionalboolean—
selectedCountoptionalboolean—
aggregatesoptionalAggFuncName[]—

Defined in packages/core/src/types.ts:209

UndoRedoOptionsinterface#

interface UndoRedoOptions
PropertyTypeDescription
limitoptionalnumber—

Defined in packages/core/src/types.ts:537

Widgetinterface#

interface Widget<TOptions, TEvents extends object>
PropertyTypeDescription
elementreadonlyHTMLElement—
update()(options: Partial<TOptions>) => void—
on()<K extends keyof TEvents & string>(event: K, listener: Listener<TEvents[K]>) => () => void—
destroy()() => void—

Defined in packages/core/src/widget.ts:3

WidgetDefinitioninterface#

interface WidgetDefinition<TOptions, TEvents extends object, TWidget extends Widget<TOptions, TEvents>>
PropertyTypeDescription
namereadonlystring—
tagNamereadonlystring—
createreadonlyWidgetFactory<TOptions, TWidget>—
eventsreadonlyreadonly (keyof TEvents & string)[]—

Defined in packages/core/src/widget.ts:12

Types#

AggFunctype#

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

Defined in packages/core/src/types.ts:34

AggFuncNametype#

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

Defined in packages/core/src/types.ts:32

CellEditorFactorytype#

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

Defined in packages/core/src/types.ts:84

ColumnTreeItemtype#

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

Defined in packages/core/src/types.ts:142

ColumnTypetype#

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

Defined in packages/core/src/types.ts:7

DateFilterOptype#

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

Defined in packages/core/src/types.ts:19

DisplayRowKindtype#

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

Defined in packages/core/src/types.ts:36

DomLayouttype#

type DomLayout = 'normal' | 'print';

Defined in packages/core/src/feature-types.ts:3

EditorKindtype#

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

Defined in packages/core/src/types.ts:86

FilterKindtype#

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

Defined in packages/core/src/types.ts:30

FilterModeltype#

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[] };

Defined in packages/core/src/types.ts:21

FilterPredicatetype#

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

Defined in packages/core/src/filtering.ts:4

FullWidthRenderertype#

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

Defined in packages/core/src/types.ts:466

InputLimitCodetype#

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

Defined in packages/core/src/input-limits.ts:1

Listenertype#

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

Defined in packages/core/src/widget.ts:1

LocaleMessagetype#

type LocaleMessage = string | PluralText;

Defined in packages/core/src/i18n.ts:10

LocaleTexttype#

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

Defined in packages/core/src/i18n.ts:12

LocaleTextInputtype#

type LocaleTextInput = LocaleText | LocalePack;

Defined in packages/core/src/i18n.ts:19

NumberFilterOptype#

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

Defined in packages/core/src/types.ts:18

RowDatatype#

type RowData = Record<string, any>;

Defined in packages/core/src/types.ts:5

SelectOptiontype#

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

Defined in packages/core/src/types.ts:88

Slottype#

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

Defined in packages/core/src/types.ts:502

SortDirectiontype#

type SortDirection = 'asc' | 'desc';

Defined in packages/core/src/types.ts:9

TextDirectiontype#

type TextDirection = 'ltr' | 'rtl';

Defined in packages/core/src/i18n.ts:94

TextFilterOptype#

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

Defined in packages/core/src/types.ts:16

Translatetype#

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

Defined in packages/core/src/i18n.ts:21

WidgetFactorytype#

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

Defined in packages/core/src/widget.ts:10

↑ ↓ to move, Enter to open, Esc to close