- Name
value- Kind
- parameter
- Type
readonly string[] | undefined- Requirement
- required
DocsAPI referenceUI machinesgrid
grid machine
The public state machine contract for @grassroot/ui-machines/grid. The machine owns behaviour; the matching headless layer owns composition.
@grassroot/ui-machines/grid
Package
Service example
grid.tsts
import { createService } from "@grassroot/statechart";import { gridMachine } from "@grassroot/ui-machines/grid"; const service = createService(gridMachine, { input: {} });service.start();service.send({ type: "…" });service.stop();104 of 104
Exports
canonicalGridChildNames
valuecanonicalGridChildNamests
export declare const canonicalGridChildNames: readonly ["columns", "sort", "filter", "selection", "focus", "edit", "groups", "pagination"];canonicalGridChildren
functioncanonicalGridChildrents
declare function canonicalGridChildren(value: readonly string[] | undefined): readonly GridChildName[];Name
Kind
Type
Requirement
valueparameter
readonly string[] | undefinedrequired
returnreturn value
readonly GridChildName[]n/a
- Name
return- Kind
- return value
- Type
readonly GridChildName[]- Requirement
- n/a
columnsSelectors
valuecolumnsSelectorsts
export declare const columnsSelectors: { columnState: (state: GridColumnsChildState) => GridColumnState; order: (state: GridColumnsChildState) => readonly string[]; widths: (state: GridColumnsChildState) => Readonly<Record<string, number>>; pinned: (state: GridColumnsChildState) => Readonly<Record<string, GridColumnPin>>; hidden: (state: GridColumnsChildState) => Readonly<Record<string, boolean>>;};Name
Kind
Type
Requirement
columnStateproperty
(state: GridColumnsChildState) => GridColumnStaterequired
orderproperty
(state: GridColumnsChildState) => readonly string[]required
pinnedproperty
(state: GridColumnsChildState) => Readonly<Record<string, GridColumnPin>>required
widthsproperty
(state: GridColumnsChildState) => Readonly<Record<string, number>>required
- Name
columnState- Kind
- property
- Type
(state: GridColumnsChildState) => GridColumnState- Requirement
- required
- Name
hidden- Kind
- property
- Type
(state: GridColumnsChildState) => Readonly<Record<string, boolean>>- Requirement
- required
- Name
order- Kind
- property
- Type
(state: GridColumnsChildState) => readonly string[]- Requirement
- required
- Name
pinned- Kind
- property
- Type
(state: GridColumnsChildState) => Readonly<Record<string, GridColumnPin>>- Requirement
- required
- Name
widths- Kind
- property
- Type
(state: GridColumnsChildState) => Readonly<Record<string, number>>- Requirement
- required
defaultColumnState
functiondefaultColumnStatets
declare function defaultColumnState<T>(defs: readonly GridColumnDef<T>[]): GridColumnState;Name
Kind
Type
Requirement
defsparameter
readonly GridColumnDef<T>[]required
returnreturn value
GridColumnStaten/a
- Name
defs- Kind
- parameter
- Type
readonly GridColumnDef<T>[]- Requirement
- required
- Name
return- Kind
- return value
- Type
GridColumnState- Requirement
- n/a
editSelectors
valueeditSelectorsts
export declare const editSelectors: { session: (state: GridEditChildState) => GridEditSession | null; isEditing: (state: GridEditChildState, rowId: string, colKey: string | "row") => boolean;};Name
Kind
Type
Requirement
isEditingproperty
(state: GridEditChildState, rowId: string, colKey: string | "row") => booleanrequired
sessionproperty
(state: GridEditChildState) => GridEditSession | nullrequired
- Name
isEditing- Kind
- property
- Type
(state: GridEditChildState, rowId: string, colKey: string | "row") => boolean- Requirement
- required
- Name
session- Kind
- property
- Type
(state: GridEditChildState) => GridEditSession | null- Requirement
- required
filterSelectors
valuefilterSelectorsts
export declare const filterSelectors: { filterModel: (state: GridFilterChildState) => GridFilterModel; quickText: (state: GridFilterChildState) => string; conditionFor: (state: GridFilterChildState, key: string) => GridFilterCondition | undefined; activeFilterCount: (state: GridFilterChildState) => number;};Name
Kind
Type
Requirement
activeFilterCountproperty
(state: GridFilterChildState) => numberrequired
conditionForproperty
(state: GridFilterChildState, key: string) => GridFilterCondition | undefinedrequired
filterModelproperty
(state: GridFilterChildState) => GridFilterModelrequired
quickTextproperty
(state: GridFilterChildState) => stringrequired
- Name
activeFilterCount- Kind
- property
- Type
(state: GridFilterChildState) => number- Requirement
- required
- Name
conditionFor- Kind
- property
- Type
(state: GridFilterChildState, key: string) => GridFilterCondition | undefined- Requirement
- required
- Name
filterModel- Kind
- property
- Type
(state: GridFilterChildState) => GridFilterModel- Requirement
- required
- Name
quickText- Kind
- property
- Type
(state: GridFilterChildState) => string- Requirement
- required
focusSelectors
valuefocusSelectorsts
export declare const focusSelectors: { focusedCell: (state: GridFocusChildState) => GridFocusCell | null; isFocused: (state: GridFocusChildState, rowId: string, colKey: string) => boolean;};Name
Kind
Type
Requirement
focusedCellproperty
(state: GridFocusChildState) => GridFocusCell | nullrequired
isFocusedproperty
(state: GridFocusChildState, rowId: string, colKey: string) => booleanrequired
- Name
focusedCell- Kind
- property
- Type
(state: GridFocusChildState) => GridFocusCell | null- Requirement
- required
- Name
isFocused- Kind
- property
- Type
(state: GridFocusChildState, rowId: string, colKey: string) => boolean- Requirement
- required
GridCellEditReason
typeGridCellEditReasonts
type GridCellEditReason = "enter" | "tab" | "blur" | "click-away" | "programmatic";GridCellParams
interfaceGridCellParamsts
interface GridCellParams<T = unknown> { readonly row: T; readonly rowId: string; readonly column: GridColumnDef<T>; readonly value: unknown; readonly draft: unknown; readonly isEditing: boolean; readonly invalid: boolean; readonly onChange: (value: unknown) => void; readonly commit: (reason?: GridCellEditReason) => void; readonly cancel: () => void;}Name
Kind
Type
Requirement
cancelproperty
() => voidrequired
columnproperty
GridColumnDef<T>required
commitproperty
(reason?: GridCellEditReason) => voidrequired
draftproperty
unknownrequired
invalidproperty
booleanrequired
isEditingproperty
booleanrequired
onChangeproperty
(value: unknown) => voidrequired
rowproperty
Trequired
rowIdproperty
stringrequired
valueproperty
unknownrequired
- Name
cancel- Kind
- property
- Type
() => void- Requirement
- required
- Name
column- Kind
- property
- Type
GridColumnDef<T>- Requirement
- required
- Name
commit- Kind
- property
- Type
(reason?: GridCellEditReason) => void- Requirement
- required
- Name
draft- Kind
- property
- Type
unknown- Requirement
- required
- Name
invalid- Kind
- property
- Type
boolean- Requirement
- required
- Name
isEditing- Kind
- property
- Type
boolean- Requirement
- required
- Name
onChange- Kind
- property
- Type
(value: unknown) => void- Requirement
- required
- Name
row- Kind
- property
- Type
T- Requirement
- required
- Name
rowId- Kind
- property
- Type
string- Requirement
- required
- Name
value- Kind
- property
- Type
unknown- Requirement
- required
gridChildEnabled
functiongridChildEnabledts
declare function gridChildEnabled(children: readonly GridChildName[], name: GridChildName): boolean;Name
Kind
Type
Requirement
childrenparameter
readonly GridChildName[]required
nameparameter
GridChildNamerequired
returnreturn value
booleann/a
- Name
children- Kind
- parameter
- Type
readonly GridChildName[]- Requirement
- required
- Name
name- Kind
- parameter
- Type
GridChildName- Requirement
- required
- Name
return- Kind
- return value
- Type
boolean- Requirement
- n/a
GridChildName
typeGridChildNamets
type GridChildName = (typeof canonicalGridChildNames)[number];GridColumnChangeReasonts
type GridColumnChangeReason = "pointer" | "keyboard" | "programmatic";GridColumnDef
typeGridColumnDefts
type GridColumnDef<T = unknown> = { readonly key: string; readonly header?: string; readonly width?: number; readonly minWidth?: number; readonly maxWidth?: number; readonly pinned?: GridColumnPin; readonly hidden?: boolean; readonly sortable?: boolean; readonly filterable?: boolean; readonly editable?: boolean; readonly resizable?: boolean; readonly valueGetter?: (row: T) => unknown; readonly comparator?: (left: T, right: T) => number; readonly filterType?: "text" | "number" | "date" | "set" | "custom"; /** Framework-owned render prop. It is a connector sidecar, never machine state. */ readonly cellRenderer?: (params: GridCellParams<T>) => unknown; /** Framework-owned editor slot/render prop. It is a connector sidecar, never machine state. */ readonly cellEditor?: (params: GridCellParams<T>) => unknown;};Name
Kind
Type
Requirement
Description
cellEditorproperty
(params: GridCellParams<T>) => unknownoptional
Framework-owned editor slot/render prop. It is a connector sidecar, never machine state.
cellRendererproperty
(params: GridCellParams<T>) => unknownoptional
Framework-owned render prop. It is a connector sidecar, never machine state.
comparatorproperty
(left: T, right: T) => numberoptional
—
editableproperty
booleanoptional
—
filterableproperty
booleanoptional
—
filterTypeproperty
"text" | "number" | "date" | "set" | "custom"optional
—
headerproperty
stringoptional
—
keyproperty
stringrequired
—
maxWidthproperty
numberoptional
—
minWidthproperty
numberoptional
—
pinnedproperty
GridColumnPinoptional
—
resizableproperty
booleanoptional
—
sortableproperty
booleanoptional
—
- Name
cellEditor- Kind
- property
- Type
(params: GridCellParams<T>) => unknown- Requirement
- optional
- Description
- Framework-owned editor slot/render prop. It is a connector sidecar, never machine state.
- Name
cellRenderer- Kind
- property
- Type
(params: GridCellParams<T>) => unknown- Requirement
- optional
- Description
- Framework-owned render prop. It is a connector sidecar, never machine state.
- Name
comparator- Kind
- property
- Type
(left: T, right: T) => number- Requirement
- optional
- Description
- —
- Name
editable- Kind
- property
- Type
boolean- Requirement
- optional
- Description
- —
- Name
filterable- Kind
- property
- Type
boolean- Requirement
- optional
- Description
- —
- Name
filterType- Kind
- property
- Type
"text" | "number" | "date" | "set" | "custom"- Requirement
- optional
- Description
- —
- Name
header- Kind
- property
- Type
string- Requirement
- optional
- Description
- —
- Name
hidden- Kind
- property
- Type
boolean- Requirement
- optional
- Description
- —
- Name
key- Kind
- property
- Type
string- Requirement
- required
- Description
- —
- Name
maxWidth- Kind
- property
- Type
number- Requirement
- optional
- Description
- —
- Name
minWidth- Kind
- property
- Type
number- Requirement
- optional
- Description
- —
- Name
pinned- Kind
- property
- Type
GridColumnPin- Requirement
- optional
- Description
- —
- Name
resizable- Kind
- property
- Type
boolean- Requirement
- optional
- Description
- —
- Name
sortable- Kind
- property
- Type
boolean- Requirement
- optional
- Description
- —
- Name
valueGetter- Kind
- property
- Type
(row: T) => unknown- Requirement
- optional
- Description
- —
- Name
width- Kind
- property
- Type
number- Requirement
- optional
- Description
- —
GridColumnPin
typeGridColumnPints
type GridColumnPin = "start" | "end";GridColumnsChildCommandts
type GridColumnsChildCommand = { readonly type: "COLUMN_STATE_CHANGE_REQUEST"; readonly columnState: GridColumnState; readonly reason: GridColumnChangeReason;} | { readonly type: "COLUMN_AUTOSIZE_MEASURE_REQUEST"; readonly colKey: string;};GridColumnsChildEventts
type GridColumnsChildEvent = { readonly type: "COLUMN_RESIZE"; readonly colKey: string; readonly width: number; readonly reason: GridColumnChangeReason;} | { readonly type: "COLUMN_REORDER"; readonly colKey: string; readonly toIndex: number; readonly reason: GridColumnChangeReason;} | { readonly type: "COLUMN_PIN"; readonly colKey: string; readonly side: GridColumnPin | null; readonly reason: GridColumnChangeReason;} | { readonly type: "COLUMN_HIDE"; readonly colKey: string; readonly hidden: boolean; readonly reason: GridColumnChangeReason;} | { readonly type: "COLUMN_GROUP_TOGGLE"; readonly groupId: string; readonly reason: GridColumnChangeReason;} | { readonly type: "COLUMN_AUTOSIZE_REQUEST"; readonly colKey: string;} | { readonly type: "COLUMN_AUTOSIZE_MEASURED"; readonly colKey: string; readonly width: number;};GridColumnsChildInputts
type GridColumnsChildInput<T = unknown> = { readonly columnDefs: readonly GridColumnDef<T>[]; readonly columnState?: GridColumnState; readonly defaultColumnState?: GridColumnState;};Name
Kind
Type
Requirement
columnDefsproperty
readonly GridColumnDef<T>[]required
columnStateproperty
GridColumnStateoptional
defaultColumnStateproperty
GridColumnStateoptional
- Name
columnDefs- Kind
- property
- Type
readonly GridColumnDef<T>[]- Requirement
- required
- Name
columnState- Kind
- property
- Type
GridColumnState- Requirement
- optional
- Name
defaultColumnState- Kind
- property
- Type
GridColumnState- Requirement
- optional
GridColumnsChildStatets
type GridColumnsChildState = { readonly value: "ready"; readonly context: { readonly mode: BindingMode; readonly columnState: GridColumnState; };};Name
Kind
Type
Requirement
contextproperty
{
readonly mode: BindingMode;
readonly columnState: GridColumnState;
}required
valueproperty
"ready"required
- Name
context- Kind
- property
- Type
{ readonly mode: BindingMode; readonly columnState: GridColumnState; }- Requirement
- required
- Name
value- Kind
- property
- Type
"ready"- Requirement
- required
GridColumnState
typeGridColumnStatets
type GridColumnState = { readonly order: readonly string[]; readonly widths: Readonly<Record<string, number>>; readonly pinned: Readonly<Record<string, GridColumnPin>>; readonly hidden: Readonly<Record<string, boolean>>; readonly groupCollapse: readonly string[];};Name
Kind
Type
Requirement
groupCollapseproperty
readonly string[]required
orderproperty
readonly string[]required
pinnedproperty
Readonly<Record<string, GridColumnPin>>required
widthsproperty
Readonly<Record<string, number>>required
- Name
groupCollapse- Kind
- property
- Type
readonly string[]- Requirement
- required
- Name
hidden- Kind
- property
- Type
Readonly<Record<string, boolean>>- Requirement
- required
- Name
order- Kind
- property
- Type
readonly string[]- Requirement
- required
- Name
pinned- Kind
- property
- Type
Readonly<Record<string, GridColumnPin>>- Requirement
- required
- Name
widths- Kind
- property
- Type
Readonly<Record<string, number>>- Requirement
- required
GridCommand
typeGridCommandts
type GridCommand = GridColumnsChildCommand | GridSortChildCommand | GridFilterChildCommand | SelectionCommand | GridFocusChildCommand | GridEditChildCommand | GridGroupsChildCommand | PaginationCommand | GridRemoteCommand | ScheduleCommand<GridRemoteEvent> | CancelCommand;GridContext
typeGridContextts
type GridContext = { readonly columns: GridColumnsChildState | null; readonly sort: GridSortChildState | null; readonly filter: GridFilterChildState | null; readonly selection: SelectionMachineState | null; readonly focus: GridFocusChildState | null; readonly edit: GridEditChildState | null; readonly groups: GridGroupsChildState | null; readonly pagination: PaginationMachineState | null;};Name
Kind
Type
Requirement
columnsproperty
GridColumnsChildState | nullrequired
editproperty
GridEditChildState | nullrequired
filterproperty
GridFilterChildState | nullrequired
focusproperty
GridFocusChildState | nullrequired
groupsproperty
GridGroupsChildState | nullrequired
paginationproperty
PaginationMachineState | nullrequired
selectionproperty
SelectionMachineState | nullrequired
sortproperty
GridSortChildState | nullrequired
- Name
columns- Kind
- property
- Type
GridColumnsChildState | null- Requirement
- required
- Name
edit- Kind
- property
- Type
GridEditChildState | null- Requirement
- required
- Name
filter- Kind
- property
- Type
GridFilterChildState | null- Requirement
- required
- Name
focus- Kind
- property
- Type
GridFocusChildState | null- Requirement
- required
- Name
groups- Kind
- property
- Type
GridGroupsChildState | null- Requirement
- required
- Name
pagination- Kind
- property
- Type
PaginationMachineState | null- Requirement
- required
- Name
selection- Kind
- property
- Type
SelectionMachineState | null- Requirement
- required
- Name
sort- Kind
- property
- Type
GridSortChildState | null- Requirement
- required
GridDiagnosticCodes
valueGridDiagnosticCodests
export declare const GridDiagnosticCodes: readonly DiagnosticCatalogueEntry[];GridEditChildCommand
typeGridEditChildCommandts
type GridEditChildCommand = { readonly type: "EDIT_COMMIT_REQUEST"; readonly rowId: string; readonly colKey: string | "row"; readonly value: JsonValue; readonly previousValue: JsonValue; readonly reason: GridEditReason;};Name
Kind
Type
Requirement
colKeyproperty
string | "row"required
previousValueproperty
JsonValuerequired
reasonproperty
GridEditReasonrequired
rowIdproperty
stringrequired
typeproperty
"EDIT_COMMIT_REQUEST"required
valueproperty
JsonValuerequired
- Name
colKey- Kind
- property
- Type
string | "row"- Requirement
- required
- Name
previousValue- Kind
- property
- Type
JsonValue- Requirement
- required
- Name
reason- Kind
- property
- Type
GridEditReason- Requirement
- required
- Name
rowId- Kind
- property
- Type
string- Requirement
- required
- Name
type- Kind
- property
- Type
"EDIT_COMMIT_REQUEST"- Requirement
- required
- Name
value- Kind
- property
- Type
JsonValue- Requirement
- required
GridEditChildEvent
typeGridEditChildEventts
type GridEditChildEvent = { readonly type: "EDIT_START"; readonly rowId: string; readonly colKey: string | "row"; readonly initialValue: unknown;} | { readonly type: "EDIT_CHANGE"; readonly draft: unknown;} | { readonly type: "EDIT_COMMIT"; readonly reason: GridEditReason; readonly valid: boolean; readonly message?: string;} | { readonly type: "EDIT_CANCEL"; readonly reason: "escape" | "blur" | "programmatic";};GridEditChildInput
typeGridEditChildInputts
type GridEditChildInput = Record<string, never>;GridEditChildState
typeGridEditChildStatets
type GridEditChildState = { readonly value: "idle" | "editing"; readonly context: { readonly session: GridEditSession | null; };};Name
Kind
Type
Requirement
contextproperty
{
readonly session: GridEditSession | null;
}required
valueproperty
"idle" | "editing"required
- Name
context- Kind
- property
- Type
{ readonly session: GridEditSession | null; }- Requirement
- required
- Name
value- Kind
- property
- Type
"idle" | "editing"- Requirement
- required
GridEditReason
typeGridEditReasonts
type GridEditReason = "enter" | "tab" | "blur" | "click-away" | "programmatic";GridEditSession
typeGridEditSessionts
type GridEditSession = { readonly rowId: string; readonly colKey: string | "row"; readonly draft: unknown; readonly previousValue: unknown; readonly dirty: boolean; readonly invalid: boolean;};Name
Kind
Type
Requirement
colKeyproperty
string | "row"required
dirtyproperty
booleanrequired
draftproperty
unknownrequired
invalidproperty
booleanrequired
previousValueproperty
unknownrequired
rowIdproperty
stringrequired
- Name
colKey- Kind
- property
- Type
string | "row"- Requirement
- required
- Name
dirty- Kind
- property
- Type
boolean- Requirement
- required
- Name
draft- Kind
- property
- Type
unknown- Requirement
- required
- Name
invalid- Kind
- property
- Type
boolean- Requirement
- required
- Name
previousValue- Kind
- property
- Type
unknown- Requirement
- required
- Name
rowId- Kind
- property
- Type
string- Requirement
- required
GridEvent
typeGridEventts
type GridEvent = GridColumnsChildEvent | GridSortChildEvent | GridFilterChildEvent | SelectionEvent | GridFocusChildEvent | GridEditChildEvent | GridGroupsChildEvent | PaginationEvent | GridRemoteEvent;GridFilterChildCommandts
type GridFilterChildCommand = { readonly type: "FILTER_CHANGE_REQUEST"; readonly filterModel: GridFilterModel; readonly reason: "pointer" | "keyboard" | "programmatic";};Name
Kind
Type
Requirement
filterModelproperty
GridFilterModelrequired
reasonproperty
"pointer" | "keyboard" | "programmatic"required
typeproperty
"FILTER_CHANGE_REQUEST"required
- Name
filterModel- Kind
- property
- Type
GridFilterModel- Requirement
- required
- Name
reason- Kind
- property
- Type
"pointer" | "keyboard" | "programmatic"- Requirement
- required
- Name
type- Kind
- property
- Type
"FILTER_CHANGE_REQUEST"- Requirement
- required
GridFilterChildEvent
typeGridFilterChildEventts
type GridFilterChildEvent = { readonly type: "SET_COLUMN_FILTER"; readonly colKey: string; readonly condition: GridFilterCondition | null; readonly reason: "pointer" | "keyboard" | "programmatic";} | { readonly type: "SET_QUICK_FILTER"; readonly text: string; readonly reason: "pointer" | "keyboard" | "programmatic";} | { readonly type: "CLEAR_ALL_FILTERS"; readonly reason: "pointer" | "keyboard" | "programmatic";};GridFilterChildInput
typeGridFilterChildInputts
type GridFilterChildInput = { readonly filterModel?: GridFilterModel; readonly defaultFilterModel?: GridFilterModel;};Name
Kind
Type
Requirement
defaultFilterModelproperty
GridFilterModeloptional
filterModelproperty
GridFilterModeloptional
- Name
defaultFilterModel- Kind
- property
- Type
GridFilterModel- Requirement
- optional
- Name
filterModel- Kind
- property
- Type
GridFilterModel- Requirement
- optional
GridFilterChildState
typeGridFilterChildStatets
type GridFilterChildState = { readonly value: "ready"; readonly context: { readonly mode: BindingMode; readonly filterModel: GridFilterModel; };};Name
Kind
Type
Requirement
contextproperty
{
readonly mode: BindingMode;
readonly filterModel: GridFilterModel;
}required
valueproperty
"ready"required
- Name
context- Kind
- property
- Type
{ readonly mode: BindingMode; readonly filterModel: GridFilterModel; }- Requirement
- required
- Name
value- Kind
- property
- Type
"ready"- Requirement
- required
GridFilterCondition
typeGridFilterConditionts
type GridFilterCondition = { readonly type: "text"; readonly operator: "contains" | "equals" | "startsWith" | "endsWith"; readonly value: string;} | { readonly type: "number"; readonly operator: "eq" | "neq" | "lt" | "lte" | "gt" | "gte" | "between"; readonly value: number; readonly valueTo?: number;} | { readonly type: "date"; readonly operator: "eq" | "before" | "after" | "between"; readonly value: string; readonly valueTo?: string;} | { readonly type: "set"; readonly values: readonly string[];} | { readonly type: "custom"; readonly predicateId: string; readonly value: JsonValue;};GridFilterModel
typeGridFilterModelts
type GridFilterModel = { readonly columns: Readonly<Record<string, GridFilterCondition>>; readonly quickText: string;};Name
Kind
Type
Requirement
columnsproperty
Readonly<Record<string, GridFilterCondition>>required
quickTextproperty
stringrequired
- Name
columns- Kind
- property
- Type
Readonly<Record<string, GridFilterCondition>>- Requirement
- required
- Name
quickText- Kind
- property
- Type
string- Requirement
- required
GridFocusCell
typeGridFocusCellts
type GridFocusCell = { readonly rowId: string; readonly colKey: string;};Name
Kind
Type
Requirement
colKeyproperty
stringrequired
rowIdproperty
stringrequired
- Name
colKey- Kind
- property
- Type
string- Requirement
- required
- Name
rowId- Kind
- property
- Type
string- Requirement
- required
GridFocusChildCommandts
type GridFocusChildCommand = { readonly type: "FOCUS_CHANGE_REQUEST"; readonly rowId: string | null; readonly colKey: string | null; readonly reason: "pointer" | "keyboard" | "programmatic";} | { readonly type: "SCROLL_INTO_VIEW_REQUEST"; readonly rowId: string; readonly colKey: string;};GridFocusChildEvent
typeGridFocusChildEventts
type GridFocusChildEvent = { readonly type: "FOCUS_CELL"; readonly rowId: string; readonly colKey: string; readonly reason: "pointer" | "keyboard" | "programmatic";} | { readonly type: "FOCUS_MOVE"; readonly direction: GridFocusDirection; readonly target?: GridFocusCell; readonly extend?: boolean;} | { readonly type: "FOCUS_CLEAR"; readonly reason?: "pointer" | "keyboard" | "programmatic";};GridFocusChildInput
typeGridFocusChildInputts
type GridFocusChildInput = { readonly rowIds?: readonly string[]; readonly columnKeys?: readonly string[];};Name
Kind
Type
Requirement
columnKeysproperty
readonly string[]optional
rowIdsproperty
readonly string[]optional
- Name
columnKeys- Kind
- property
- Type
readonly string[]- Requirement
- optional
- Name
rowIds- Kind
- property
- Type
readonly string[]- Requirement
- optional
GridFocusChildState
typeGridFocusChildStatets
type GridFocusChildState = { readonly value: "ready"; readonly context: { readonly focusedCell: GridFocusCell | null; };};Name
Kind
Type
Requirement
contextproperty
{
readonly focusedCell: GridFocusCell | null;
}required
valueproperty
"ready"required
- Name
context- Kind
- property
- Type
{ readonly focusedCell: GridFocusCell | null; }- Requirement
- required
- Name
value- Kind
- property
- Type
"ready"- Requirement
- required
GridFocusDirection
typeGridFocusDirectionts
type GridFocusDirection = "up" | "down" | "left" | "right" | "row-start" | "row-end" | "grid-start" | "grid-end" | "page-up" | "page-down";GridGroupsChildCommandts
type GridGroupsChildCommand = { readonly type: "GROUP_STATE_CHANGE_REQUEST"; readonly groupBy: readonly string[]; readonly reason: "pointer" | "keyboard" | "programmatic";};Name
Kind
Type
Requirement
groupByproperty
readonly string[]required
reasonproperty
"pointer" | "keyboard" | "programmatic"required
typeproperty
"GROUP_STATE_CHANGE_REQUEST"required
- Name
groupBy- Kind
- property
- Type
readonly string[]- Requirement
- required
- Name
reason- Kind
- property
- Type
"pointer" | "keyboard" | "programmatic"- Requirement
- required
- Name
type- Kind
- property
- Type
"GROUP_STATE_CHANGE_REQUEST"- Requirement
- required
GridGroupsChildEvent
typeGridGroupsChildEventts
type GridGroupsChildEvent = { readonly type: "SET_GROUP_BY"; readonly columnKeys: readonly string[]; readonly reason: "pointer" | "keyboard" | "programmatic";} | { readonly type: "GROUP_TOGGLE"; readonly groupKey: string; readonly reason: "pointer" | "keyboard" | "programmatic";} | { readonly type: "GROUP_EXPAND_ALL"; readonly reason: "pointer" | "keyboard" | "programmatic";} | { readonly type: "GROUP_COLLAPSE_ALL"; readonly reason: "pointer" | "keyboard" | "programmatic";} | { readonly type: "SET_AGGREGATION"; readonly colKey: string; readonly aggType: string; readonly reason: "pointer" | "keyboard" | "programmatic";};GridGroupsChildInput
typeGridGroupsChildInputts
type GridGroupsChildInput = { readonly groupBy?: readonly string[]; readonly defaultGroupBy?: readonly string[]; readonly aggFor?: Readonly<Record<string, "sum" | "avg" | "count" | "min" | "max" | "custom">>;};Name
Kind
Type
Requirement
aggForproperty
Readonly<Record<string, "sum" | "avg" | "count" | "min" | "max" | "custom">>optional
defaultGroupByproperty
readonly string[]optional
groupByproperty
readonly string[]optional
- Name
aggFor- Kind
- property
- Type
Readonly<Record<string, "sum" | "avg" | "count" | "min" | "max" | "custom">>- Requirement
- optional
- Name
defaultGroupBy- Kind
- property
- Type
readonly string[]- Requirement
- optional
- Name
groupBy- Kind
- property
- Type
readonly string[]- Requirement
- optional
GridGroupsChildState
typeGridGroupsChildStatets
type GridGroupsChildState = { readonly value: "ready"; readonly context: { readonly mode: BindingMode; readonly groupBy: readonly string[]; readonly expandedGroupKeys: readonly string[]; readonly aggFor: Readonly<Record<string, string>>; };};Name
Kind
Type
Requirement
contextproperty
{
readonly mode: BindingMode;
readonly groupBy: readonly string[];
readonly expandedGroupKeys: readonly string[];
readonly aggFor: Readonly<Record<string, string>>;
}required
valueproperty
"ready"required
- Name
context- Kind
- property
- Type
{ readonly mode: BindingMode; readonly groupBy: readonly string[]; readonly expandedGroupKeys: readonly string[]; readonly aggFor: Readonly<Record<string, string>>; }- Requirement
- required
- Name
value- Kind
- property
- Type
"ready"- Requirement
- required
GridInput
typeGridInputts
type GridInput<T = unknown> = { readonly children?: readonly string[]; readonly columns?: GridColumnsChildInput<T>; readonly sort?: GridSortChildInput; readonly filter?: GridFilterChildInput; readonly selection?: SelectionInput; readonly focus?: GridFocusChildInput; readonly edit?: GridEditChildInput; readonly groups?: GridGroupsChildInput; readonly pagination?: PaginationInput; readonly mode?: "virtualized" | "paginated"; /** Configuration only: fetched rows always remain in the headless sidecar. */ readonly rowModel?: GridRowModel; readonly remote?: { readonly blockSize?: number; readonly loadMoreThreshold?: number; };};Name
Kind
Type
Requirement
Description
childrenproperty
readonly string[]optional
—
columnsproperty
GridColumnsChildInput<T>optional
—
editproperty
GridEditChildInputoptional
—
filterproperty
GridFilterChildInputoptional
—
focusproperty
GridFocusChildInputoptional
—
groupsproperty
GridGroupsChildInputoptional
—
modeproperty
"virtualized" | "paginated"optional
—
paginationproperty
PaginationInputoptional
—
remoteproperty
{
readonly blockSize?: number;
readonly loadMoreThreshold?: number;
}optional
—
rowModelproperty
GridRowModeloptional
Configuration only: fetched rows always remain in the headless sidecar.
selectionproperty
SelectionInputoptional
—
sortproperty
GridSortChildInputoptional
—
- Name
children- Kind
- property
- Type
readonly string[]- Requirement
- optional
- Description
- —
- Name
columns- Kind
- property
- Type
GridColumnsChildInput<T>- Requirement
- optional
- Description
- —
- Name
edit- Kind
- property
- Type
GridEditChildInput- Requirement
- optional
- Description
- —
- Name
filter- Kind
- property
- Type
GridFilterChildInput- Requirement
- optional
- Description
- —
- Name
focus- Kind
- property
- Type
GridFocusChildInput- Requirement
- optional
- Description
- —
- Name
groups- Kind
- property
- Type
GridGroupsChildInput- Requirement
- optional
- Description
- —
- Name
mode- Kind
- property
- Type
"virtualized" | "paginated"- Requirement
- optional
- Description
- —
- Name
pagination- Kind
- property
- Type
PaginationInput- Requirement
- optional
- Description
- —
- Name
remote- Kind
- property
- Type
{ readonly blockSize?: number; readonly loadMoreThreshold?: number; }- Requirement
- optional
- Description
- —
- Name
rowModel- Kind
- property
- Type
GridRowModel- Requirement
- optional
- Description
- Configuration only: fetched rows always remain in the headless sidecar.
- Name
selection- Kind
- property
- Type
SelectionInput- Requirement
- optional
- Description
- —
- Name
sort- Kind
- property
- Type
GridSortChildInput- Requirement
- optional
- Description
- —
gridMachine
valuegridMachinets
export declare const gridMachine: GridMachine<any>;GridMachine
typeGridMachinets
type GridMachine<T = unknown> = Machine<GridInput<T>, GridStateValue, GridContext, GridEvent, GridCommand>;GridMachineState
typeGridMachineStatets
type GridMachineState = MachineState<GridStateValue, GridContext>;GridRemoteCommand
typeGridRemoteCommandts
type GridRemoteCommand = { readonly type: "GRID_ROWS_REQUEST"; readonly key: "grid.rows"; readonly request: GridRemoteQuery; readonly onSettled: { readonly type: "GRID_ROWS_LOADED" | "GRID_ROWS_APPENDED"; readonly payloadKey: "result"; }; readonly onFailed: { readonly type: "GRID_ROWS_FAILED"; readonly payloadKey: "error"; };} | { readonly type: "GRID_ROWS_ADOPT"; readonly result: GridSerializableRemoteResult; readonly append: boolean;} | { readonly type: "GRID_ROWS_ADOPT_ERROR"; readonly error: JsonValue;};GridRemoteEvent
typeGridRemoteEventts
type GridRemoteEvent = { readonly type: "GRID_REMOTE_RETRY"; readonly request: GridRemoteQuery;} | { readonly type: "GRID_REMOTE_LOAD_MORE"; readonly request: GridRemoteQuery;} | { readonly type: "GRID_REMOTE_WINDOW"; readonly start: number; readonly end: number;} | { readonly type: "GRID_REMOTE_QUERY_DUE"; readonly request: GridRemoteQuery;} | { readonly type: "GRID_ROWS_LOADED"; readonly result: GridSerializableRemoteResult;} | { readonly type: "GRID_ROWS_APPENDED"; readonly result: GridSerializableRemoteResult;} | { readonly type: "GRID_ROWS_FAILED"; readonly error: JsonValue;};GridRemoteQuery
typeGridRemoteQueryts
type GridRemoteQuery = { readonly rowModel: "server" | "infinite"; readonly operation: "replace" | "append"; readonly sortModel: readonly GridSortEntry[]; readonly filterModel: GridFilterModel; readonly page?: { readonly page: number; readonly pageSize: number; }; readonly range?: { readonly start: number; readonly end: number; }; readonly cursor?: JsonValue;};Name
Kind
Type
Requirement
cursorproperty
JsonValueoptional
filterModelproperty
GridFilterModelrequired
operationproperty
"replace" | "append"required
pageproperty
{
readonly page: number;
readonly pageSize: number;
}optional
rangeproperty
{
readonly start: number;
readonly end: number;
}optional
rowModelproperty
"server" | "infinite"required
sortModelproperty
readonly GridSortEntry[]required
- Name
cursor- Kind
- property
- Type
JsonValue- Requirement
- optional
- Name
filterModel- Kind
- property
- Type
GridFilterModel- Requirement
- required
- Name
operation- Kind
- property
- Type
"replace" | "append"- Requirement
- required
- Name
page- Kind
- property
- Type
{ readonly page: number; readonly pageSize: number; }- Requirement
- optional
- Name
range- Kind
- property
- Type
{ readonly start: number; readonly end: number; }- Requirement
- optional
- Name
rowModel- Kind
- property
- Type
"server" | "infinite"- Requirement
- required
- Name
sortModel- Kind
- property
- Type
readonly GridSortEntry[]- Requirement
- required
GridRemoteResult
typePublic host-facing result. Only the serializable specialization crosses the machine boundary.
GridRemoteResultts
type GridRemoteResult<T = unknown> = { readonly rows: readonly T[]; readonly total?: number; readonly nextCursor?: JsonValue | null;};Name
Kind
Type
Requirement
nextCursorproperty
JsonValue | nulloptional
rowsproperty
readonly T[]required
totalproperty
numberoptional
- Name
nextCursor- Kind
- property
- Type
JsonValue | null- Requirement
- optional
- Name
rows- Kind
- property
- Type
readonly T[]- Requirement
- required
- Name
total- Kind
- property
- Type
number- Requirement
- optional
gridReplaySequence
valuegridReplaySequencets
export declare const gridReplaySequence: readonly GridEvent[];GridRowModel
typeGridRowModelts
type GridRowModel = "client" | "server" | "infinite";gridSelectors
valuegridSelectorsts
export declare const gridSelectors: { columns: (snapshot: GridSnapshot) => GridColumnsChildState | null; sort: (snapshot: GridSnapshot) => GridSortChildState | null; filter: (snapshot: GridSnapshot) => GridFilterChildState | null; selection: (snapshot: GridSnapshot) => SelectionMachineState | null; focus: (snapshot: GridSnapshot) => GridFocusChildState | null; edit: (snapshot: GridSnapshot) => GridEditChildState | null; groups: (snapshot: GridSnapshot) => GridGroupsChildState | null; pagination: (snapshot: GridSnapshot) => PaginationMachineState | null; sortModel: (snapshot: GridSnapshot) => readonly GridSortEntry[]; filterModel: (snapshot: GridSnapshot) => GridFilterModel; selectedIds: (snapshot: GridSnapshot) => SelectionValue; focusedCell: (snapshot: GridSnapshot) => GridFocusCell | null; editSession: (snapshot: GridSnapshot) => GridEditSession | null; groupBy: (snapshot: GridSnapshot) => readonly string[]; expandedGroupKeys: (snapshot: GridSnapshot) => readonly string[]; page: (snapshot: GridSnapshot) => number; enabledChildren: (snapshot: GridSnapshot) => GridChildName[]; columnState: (snapshot: GridSnapshot) => GridColumnState | null;};Name
Kind
Type
Requirement
columnsproperty
(snapshot: GridSnapshot) => GridColumnsChildState | nullrequired
columnStateproperty
(snapshot: GridSnapshot) => GridColumnState | nullrequired
editproperty
(snapshot: GridSnapshot) => GridEditChildState | nullrequired
editSessionproperty
(snapshot: GridSnapshot) => GridEditSession | nullrequired
enabledChildrenproperty
(snapshot: GridSnapshot) => GridChildName[]required
expandedGroupKeysproperty
(snapshot: GridSnapshot) => readonly string[]required
filterproperty
(snapshot: GridSnapshot) => GridFilterChildState | nullrequired
filterModelproperty
(snapshot: GridSnapshot) => GridFilterModelrequired
focusproperty
(snapshot: GridSnapshot) => GridFocusChildState | nullrequired
focusedCellproperty
(snapshot: GridSnapshot) => GridFocusCell | nullrequired
groupByproperty
(snapshot: GridSnapshot) => readonly string[]required
groupsproperty
(snapshot: GridSnapshot) => GridGroupsChildState | nullrequired
pageproperty
(snapshot: GridSnapshot) => numberrequired
paginationproperty
(snapshot: GridSnapshot) => PaginationMachineState | nullrequired
- Name
columns- Kind
- property
- Type
(snapshot: GridSnapshot) => GridColumnsChildState | null- Requirement
- required
- Name
columnState- Kind
- property
- Type
(snapshot: GridSnapshot) => GridColumnState | null- Requirement
- required
- Name
edit- Kind
- property
- Type
(snapshot: GridSnapshot) => GridEditChildState | null- Requirement
- required
- Name
editSession- Kind
- property
- Type
(snapshot: GridSnapshot) => GridEditSession | null- Requirement
- required
- Name
enabledChildren- Kind
- property
- Type
(snapshot: GridSnapshot) => GridChildName[]- Requirement
- required
- Name
expandedGroupKeys- Kind
- property
- Type
(snapshot: GridSnapshot) => readonly string[]- Requirement
- required
- Name
filter- Kind
- property
- Type
(snapshot: GridSnapshot) => GridFilterChildState | null- Requirement
- required
- Name
filterModel- Kind
- property
- Type
(snapshot: GridSnapshot) => GridFilterModel- Requirement
- required
- Name
focus- Kind
- property
- Type
(snapshot: GridSnapshot) => GridFocusChildState | null- Requirement
- required
- Name
focusedCell- Kind
- property
- Type
(snapshot: GridSnapshot) => GridFocusCell | null- Requirement
- required
- Name
groupBy- Kind
- property
- Type
(snapshot: GridSnapshot) => readonly string[]- Requirement
- required
- Name
groups- Kind
- property
- Type
(snapshot: GridSnapshot) => GridGroupsChildState | null- Requirement
- required
- Name
page- Kind
- property
- Type
(snapshot: GridSnapshot) => number- Requirement
- required
- Name
pagination- Kind
- property
- Type
(snapshot: GridSnapshot) => PaginationMachineState | null- Requirement
- required
- Name
selectedIds- Kind
- property
- Type
(snapshot: GridSnapshot) => SelectionValue- Requirement
- required
- Name
selection- Kind
- property
- Type
(snapshot: GridSnapshot) => SelectionMachineState | null- Requirement
- required
- Name
sort- Kind
- property
- Type
(snapshot: GridSnapshot) => GridSortChildState | null- Requirement
- required
- Name
sortModel- Kind
- property
- Type
(snapshot: GridSnapshot) => readonly GridSortEntry[]- Requirement
- required
GridSnapshot
typeGridSnapshotts
type GridSnapshot = Snapshot<GridStateValue, GridContext>;GridSortChildCommand
typeGridSortChildCommandts
type GridSortChildCommand = { readonly type: "SORT_CHANGE_REQUEST"; readonly sortModel: readonly GridSortEntry[]; readonly reason: "pointer" | "keyboard" | "programmatic";};Name
Kind
Type
Requirement
reasonproperty
"pointer" | "keyboard" | "programmatic"required
sortModelproperty
readonly GridSortEntry[]required
typeproperty
"SORT_CHANGE_REQUEST"required
- Name
reason- Kind
- property
- Type
"pointer" | "keyboard" | "programmatic"- Requirement
- required
- Name
sortModel- Kind
- property
- Type
readonly GridSortEntry[]- Requirement
- required
- Name
type- Kind
- property
- Type
"SORT_CHANGE_REQUEST"- Requirement
- required
GridSortChildEvent
typeGridSortChildEventts
type GridSortChildEvent = { readonly type: "TOGGLE_SORT"; readonly key: string; readonly sortable: boolean; readonly modifier: "replace" | "add"; readonly reason?: "pointer" | "keyboard" | "programmatic";};Name
Kind
Type
Requirement
keyproperty
stringrequired
modifierproperty
"replace" | "add"required
reasonproperty
"pointer" | "keyboard" | "programmatic"optional
sortableproperty
booleanrequired
typeproperty
"TOGGLE_SORT"required
- Name
key- Kind
- property
- Type
string- Requirement
- required
- Name
modifier- Kind
- property
- Type
"replace" | "add"- Requirement
- required
- Name
reason- Kind
- property
- Type
"pointer" | "keyboard" | "programmatic"- Requirement
- optional
- Name
sortable- Kind
- property
- Type
boolean- Requirement
- required
- Name
type- Kind
- property
- Type
"TOGGLE_SORT"- Requirement
- required
GridSortChildInput
typeGridSortChildInputts
type GridSortChildInput = { readonly sortModel?: readonly GridSortEntry[]; readonly defaultSortModel?: readonly GridSortEntry[]; readonly multiSort?: boolean; readonly maxSortKeys?: number;};Name
Kind
Type
Requirement
defaultSortModelproperty
readonly GridSortEntry[]optional
maxSortKeysproperty
numberoptional
multiSortproperty
booleanoptional
sortModelproperty
readonly GridSortEntry[]optional
- Name
defaultSortModel- Kind
- property
- Type
readonly GridSortEntry[]- Requirement
- optional
- Name
maxSortKeys- Kind
- property
- Type
number- Requirement
- optional
- Name
multiSort- Kind
- property
- Type
boolean- Requirement
- optional
- Name
sortModel- Kind
- property
- Type
readonly GridSortEntry[]- Requirement
- optional
GridSortChildState
typeGridSortChildStatets
type GridSortChildState = { readonly value: "ready"; readonly context: { readonly mode: BindingMode; readonly sortModel: readonly GridSortEntry[]; };};Name
Kind
Type
Requirement
contextproperty
{
readonly mode: BindingMode;
readonly sortModel: readonly GridSortEntry[];
}required
valueproperty
"ready"required
- Name
context- Kind
- property
- Type
{ readonly mode: BindingMode; readonly sortModel: readonly GridSortEntry[]; }- Requirement
- required
- Name
value- Kind
- property
- Type
"ready"- Requirement
- required
GridSortDir
typeGridSortDirts
type GridSortDir = "asc" | "desc";GridSortEntry
typeGridSortEntryts
type GridSortEntry = { readonly key: string; readonly dir: GridSortDir;};Name
Kind
Type
Requirement
dirproperty
GridSortDirrequired
keyproperty
stringrequired
- Name
dir- Kind
- property
- Type
GridSortDir- Requirement
- required
- Name
key- Kind
- property
- Type
string- Requirement
- required
GridStateValue
typeGridStateValuets
type GridStateValue = "ready";groupsSelectors
valuegroupsSelectorsts
export declare const groupsSelectors: { groupBy: (state: GridGroupsChildState) => readonly string[]; expandedGroupKeys: (state: GridGroupsChildState) => readonly string[]; isExpanded: (state: GridGroupsChildState, key: string) => boolean; aggFor: (state: GridGroupsChildState, key: string) => string | undefined;};Name
Kind
Type
Requirement
aggForproperty
(state: GridGroupsChildState, key: string) => string | undefinedrequired
expandedGroupKeysproperty
(state: GridGroupsChildState) => readonly string[]required
groupByproperty
(state: GridGroupsChildState) => readonly string[]required
isExpandedproperty
(state: GridGroupsChildState, key: string) => booleanrequired
- Name
aggFor- Kind
- property
- Type
(state: GridGroupsChildState, key: string) => string | undefined- Requirement
- required
- Name
expandedGroupKeys- Kind
- property
- Type
(state: GridGroupsChildState) => readonly string[]- Requirement
- required
- Name
groupBy- Kind
- property
- Type
(state: GridGroupsChildState) => readonly string[]- Requirement
- required
- Name
isExpanded- Kind
- property
- Type
(state: GridGroupsChildState, key: string) => boolean- Requirement
- required
initialColumnsChild
functioninitialColumnsChildts
declare function initialColumnsChild<T>(input: GridColumnsChildInput<T>): { readonly state: GridColumnsChildState; readonly diagnostics?: readonly DiagnosticObject[];};Name
Kind
Type
Requirement
inputparameter
GridColumnsChildInput<T>required
returnreturn value
{
readonly state: GridColumnsChildState;
readonly diagnostics?: readonly DiagnosticObject[];
}n/a
- Name
input- Kind
- parameter
- Type
GridColumnsChildInput<T>- Requirement
- required
- Name
return- Kind
- return value
- Type
{ readonly state: GridColumnsChildState; readonly diagnostics?: readonly DiagnosticObject[]; }- Requirement
- n/a
initialEditChild
functioninitialEditChildts
declare function initialEditChild(): { readonly state: GridEditChildState;};Name
Kind
Type
Requirement
returnreturn value
{
readonly state: GridEditChildState;
}n/a
- Name
return- Kind
- return value
- Type
{ readonly state: GridEditChildState; }- Requirement
- n/a
initialFilterChild
functioninitialFilterChildts
declare function initialFilterChild(input?: GridFilterChildInput): { readonly state: GridFilterChildState;};Name
Kind
Type
Requirement
inputparameter
GridFilterChildInputoptional
returnreturn value
{
readonly state: GridFilterChildState;
}n/a
- Name
input- Kind
- parameter
- Type
GridFilterChildInput- Requirement
- optional
- Name
return- Kind
- return value
- Type
{ readonly state: GridFilterChildState; }- Requirement
- n/a
initialFocusChild
functioninitialFocusChildts
declare function initialFocusChild(): { readonly state: GridFocusChildState;};Name
Kind
Type
Requirement
returnreturn value
{
readonly state: GridFocusChildState;
}n/a
- Name
return- Kind
- return value
- Type
{ readonly state: GridFocusChildState; }- Requirement
- n/a
initialGroupsChild
functioninitialGroupsChildts
declare function initialGroupsChild(input?: GridGroupsChildInput): { readonly state: GridGroupsChildState;};Name
Kind
Type
Requirement
inputparameter
GridGroupsChildInputoptional
returnreturn value
{
readonly state: GridGroupsChildState;
}n/a
- Name
input- Kind
- parameter
- Type
GridGroupsChildInput- Requirement
- optional
- Name
return- Kind
- return value
- Type
{ readonly state: GridGroupsChildState; }- Requirement
- n/a
initialSortChild
functioninitialSortChildts
declare function initialSortChild(input?: GridSortChildInput): { readonly state: GridSortChildState;};Name
Kind
Type
Requirement
inputparameter
GridSortChildInputoptional
returnreturn value
{
readonly state: GridSortChildState;
}n/a
- Name
input- Kind
- parameter
- Type
GridSortChildInput- Requirement
- optional
- Name
return- Kind
- return value
- Type
{ readonly state: GridSortChildState; }- Requirement
- n/a
isColumnsChildEvent
functionisColumnsChildEventts
declare function isColumnsChildEvent(event: { readonly type: string;}): event is GridColumnsChildEvent;Name
Kind
Type
Requirement
eventparameter
{
readonly type: string;
}required
returnreturn value
event is GridColumnsChildEventn/a
- Name
event- Kind
- parameter
- Type
{ readonly type: string; }- Requirement
- required
- Name
return- Kind
- return value
- Type
event is GridColumnsChildEvent- Requirement
- n/a
isEditChildEvent
functionisEditChildEventts
declare function isEditChildEvent(event: { readonly type: string;}): event is GridEditChildEvent;Name
Kind
Type
Requirement
eventparameter
{
readonly type: string;
}required
returnreturn value
event is GridEditChildEventn/a
- Name
event- Kind
- parameter
- Type
{ readonly type: string; }- Requirement
- required
- Name
return- Kind
- return value
- Type
event is GridEditChildEvent- Requirement
- n/a
isFilterChildEvent
functionisFilterChildEventts
declare function isFilterChildEvent(event: { readonly type: string;}): event is GridFilterChildEvent;Name
Kind
Type
Requirement
eventparameter
{
readonly type: string;
}required
returnreturn value
event is GridFilterChildEventn/a
- Name
event- Kind
- parameter
- Type
{ readonly type: string; }- Requirement
- required
- Name
return- Kind
- return value
- Type
event is GridFilterChildEvent- Requirement
- n/a
isFocusChildEvent
functionisFocusChildEventts
declare function isFocusChildEvent(event: { readonly type: string;}): event is GridFocusChildEvent;Name
Kind
Type
Requirement
eventparameter
{
readonly type: string;
}required
returnreturn value
event is GridFocusChildEventn/a
- Name
event- Kind
- parameter
- Type
{ readonly type: string; }- Requirement
- required
- Name
return- Kind
- return value
- Type
event is GridFocusChildEvent- Requirement
- n/a
isGroupsChildEvent
functionisGroupsChildEventts
declare function isGroupsChildEvent(event: { readonly type: string;}): event is GridGroupsChildEvent;Name
Kind
Type
Requirement
eventparameter
{
readonly type: string;
}required
returnreturn value
event is GridGroupsChildEventn/a
- Name
event- Kind
- parameter
- Type
{ readonly type: string; }- Requirement
- required
- Name
return- Kind
- return value
- Type
event is GridGroupsChildEvent- Requirement
- n/a
isSortChildEvent
functionisSortChildEventts
declare function isSortChildEvent(event: { readonly type: string;}): event is GridSortChildEvent;Name
Kind
Type
Requirement
eventparameter
{
readonly type: string;
}required
returnreturn value
event is GridSortChildEventn/a
- Name
event- Kind
- parameter
- Type
{ readonly type: string; }- Requirement
- required
- Name
return- Kind
- return value
- Type
event is GridSortChildEvent- Requirement
- n/a
PaginationCommand
typePaginationCommandts
type PaginationCommand = CommandObject & { readonly type: "PAGE_CHANGE_REQUEST"; readonly page: number; readonly reason: PaginationChangeReason;};Name
Kind
Type
Requirement
pageproperty
numberrequired
reasonproperty
PaginationChangeReasonrequired
typeproperty
stringrequired
- Name
page- Kind
- property
- Type
number- Requirement
- required
- Name
reason- Kind
- property
- Type
PaginationChangeReason- Requirement
- required
- Name
type- Kind
- property
- Type
string- Requirement
- required
PaginationEvent
typePaginationEventts
type PaginationEvent = { readonly type: "SET_PAGE"; readonly page: number; readonly reason: PaginationChangeReason;} | { readonly type: "PREVIOUS"; readonly reason: Exclude<PaginationChangeReason, "programmatic">;} | { readonly type: "NEXT"; readonly reason: Exclude<PaginationChangeReason, "programmatic">;} | { readonly type: "FIRST"; readonly reason: PaginationChangeReason;} | { readonly type: "LAST"; readonly reason: PaginationChangeReason;};PaginationInput
typePaginationInputts
type PaginationInput = { /** Total records/items. */ readonly total: number; /** Records/items per page. Values below one normalize to one. */ readonly pageSize: number; /** Controlled 1-based page. Defining it fixes controlled mode. */ readonly page?: number; /** Uncontrolled initial 1-based page. Defaults to one. */ readonly defaultPage?: number; /** Pages to show either side of the current page. Defaults to one. */ readonly siblingCount?: number;};Name
Kind
Type
Requirement
Description
defaultPageproperty
numberoptional
Uncontrolled initial 1-based page. Defaults to one.
pageproperty
numberoptional
Controlled 1-based page. Defining it fixes controlled mode.
pageSizeproperty
numberrequired
Records/items per page. Values below one normalize to one.
siblingCountproperty
numberoptional
Pages to show either side of the current page. Defaults to one.
totalproperty
numberrequired
Total records/items.
- Name
defaultPage- Kind
- property
- Type
number- Requirement
- optional
- Description
- Uncontrolled initial 1-based page. Defaults to one.
- Name
page- Kind
- property
- Type
number- Requirement
- optional
- Description
- Controlled 1-based page. Defining it fixes controlled mode.
- Name
pageSize- Kind
- property
- Type
number- Requirement
- required
- Description
- Records/items per page. Values below one normalize to one.
- Name
siblingCount- Kind
- property
- Type
number- Requirement
- optional
- Description
- Pages to show either side of the current page. Defaults to one.
- Name
total- Kind
- property
- Type
number- Requirement
- required
- Description
- Total records/items.
paginationMachine
valuepaginationMachinets
export declare const paginationMachine: PaginationMachine;PaginationMachineStatets
type PaginationMachineState = MachineState<PaginationStateValue, PaginationContext>;paginationSelectors
valuepaginationSelectorsts
export declare const paginationSelectors: { page: (snapshot: PaginationSnapshot) => number; pageCount: (snapshot: PaginationSnapshot) => number; range: (snapshot: PaginationSnapshot) => readonly (number | "…")[]; canPrevious: (snapshot: PaginationSnapshot) => boolean; canNext: (snapshot: PaginationSnapshot) => boolean;};Name
Kind
Type
Requirement
canNextproperty
(snapshot: PaginationSnapshot) => booleanrequired
canPreviousproperty
(snapshot: PaginationSnapshot) => booleanrequired
pageproperty
(snapshot: PaginationSnapshot) => numberrequired
pageCountproperty
(snapshot: PaginationSnapshot) => numberrequired
rangeproperty
(snapshot: PaginationSnapshot) => readonly (number | "…")[]required
- Name
canNext- Kind
- property
- Type
(snapshot: PaginationSnapshot) => boolean- Requirement
- required
- Name
canPrevious- Kind
- property
- Type
(snapshot: PaginationSnapshot) => boolean- Requirement
- required
- Name
page- Kind
- property
- Type
(snapshot: PaginationSnapshot) => number- Requirement
- required
- Name
pageCount- Kind
- property
- Type
(snapshot: PaginationSnapshot) => number- Requirement
- required
- Name
range- Kind
- property
- Type
(snapshot: PaginationSnapshot) => readonly (number | "…")[]- Requirement
- required
SelectionCommand
typeSelectionCommandts
type SelectionCommand = CommandObject & { readonly type: "SELECTION_CHANGE_REQUEST"; readonly selectedIds: SelectionValue; readonly reason: SelectionChangeReason;};Name
Kind
Type
Requirement
reasonproperty
SelectionChangeReasonrequired
selectedIdsproperty
SelectionValuerequired
typeproperty
stringrequired
- Name
reason- Kind
- property
- Type
SelectionChangeReason- Requirement
- required
- Name
selectedIds- Kind
- property
- Type
SelectionValue- Requirement
- required
- Name
type- Kind
- property
- Type
string- Requirement
- required
SelectionEvent
typeSelectionEventts
type SelectionEvent = { readonly type: "SELECT"; readonly id: string; readonly reason: SelectionChangeReason;} | { readonly type: "TOGGLE"; readonly id: string; readonly reason: SelectionChangeReason;} | { readonly type: "RANGE_EXTEND"; readonly id: string; readonly reason: SelectionChangeReason;} | { readonly type: "SELECT_ALL"; readonly selectableIds: readonly string[]; readonly reason: SelectionChangeReason;} | { readonly type: "CLEAR"; readonly reason: SelectionChangeReason;} | { readonly type: "REPLACE"; readonly selectedIds: SelectionValue; readonly reason: SelectionChangeReason;} | { readonly type: "RESET";};SelectionInput
interfaceSelectionInputts
interface SelectionInput { readonly mode: SelectionMode; readonly selectedIds?: SelectionValue; readonly defaultSelectedIds?: SelectionValue; readonly orderedIds: readonly string[]; readonly disabledIds?: readonly string[];}Name
Kind
Type
Requirement
defaultSelectedIdsproperty
SelectionValueoptional
disabledIdsproperty
readonly string[]optional
modeproperty
SelectionModerequired
orderedIdsproperty
readonly string[]required
selectedIdsproperty
SelectionValueoptional
- Name
defaultSelectedIds- Kind
- property
- Type
SelectionValue- Requirement
- optional
- Name
disabledIds- Kind
- property
- Type
readonly string[]- Requirement
- optional
- Name
mode- Kind
- property
- Type
SelectionMode- Requirement
- required
- Name
orderedIds- Kind
- property
- Type
readonly string[]- Requirement
- required
- Name
selectedIds- Kind
- property
- Type
SelectionValue- Requirement
- optional
selectionMachine
valueselectionMachinets
export declare const selectionMachine: SelectionMachine;SelectionMachineStatets
type SelectionMachineState = MachineState<SelectionStateValue, SelectionContext>;SelectionMode
typeSelectionModets
type SelectionMode = "none" | "single" | "multiple";selectionSelectors
valueselectionSelectorsts
export declare const selectionSelectors: { selectedIds: (snapshot: SelectionSnapshot) => SelectionValue; anchorId: (snapshot: SelectionSnapshot) => string | null; bindingMode: (snapshot: SelectionSnapshot) => BindingMode; isSelected: (snapshot: SelectionSnapshot, id: string) => boolean;};Name
Kind
Type
Requirement
anchorIdproperty
(snapshot: SelectionSnapshot) => string | nullrequired
bindingModeproperty
(snapshot: SelectionSnapshot) => BindingModerequired
isSelectedproperty
(snapshot: SelectionSnapshot, id: string) => booleanrequired
selectedIdsproperty
(snapshot: SelectionSnapshot) => SelectionValuerequired
- Name
anchorId- Kind
- property
- Type
(snapshot: SelectionSnapshot) => string | null- Requirement
- required
- Name
bindingMode- Kind
- property
- Type
(snapshot: SelectionSnapshot) => BindingMode- Requirement
- required
- Name
isSelected- Kind
- property
- Type
(snapshot: SelectionSnapshot, id: string) => boolean- Requirement
- required
- Name
selectedIds- Kind
- property
- Type
(snapshot: SelectionSnapshot) => SelectionValue- Requirement
- required
SelectionValue
typeSelectionValuets
type SelectionValue = readonly string[];sortSelectors
valuesortSelectorsts
export declare const sortSelectors: { sortModel: (state: GridSortChildState) => readonly GridSortEntry[]; dirFor: (state: GridSortChildState, key: string) => GridSortDir | undefined;};Name
Kind
Type
Requirement
dirForproperty
(state: GridSortChildState, key: string) => GridSortDir | undefinedrequired
sortModelproperty
(state: GridSortChildState) => readonly GridSortEntry[]required
- Name
dirFor- Kind
- property
- Type
(state: GridSortChildState, key: string) => GridSortDir | undefined- Requirement
- required
- Name
sortModel- Kind
- property
- Type
(state: GridSortChildState) => readonly GridSortEntry[]- Requirement
- required
syncColumnsChild
functionsyncColumnsChildts
declare function syncColumnsChild<T>(state: GridColumnsChildState, _previous: GridColumnsChildInput<T>, next: GridColumnsChildInput<T>): { readonly state: GridColumnsChildState; readonly diagnostics?: readonly DiagnosticObject[];};Name
Kind
Type
Requirement
stateparameter
GridColumnsChildStaterequired
_previousparameter
GridColumnsChildInput<T>required
nextparameter
GridColumnsChildInput<T>required
returnreturn value
{
readonly state: GridColumnsChildState;
readonly diagnostics?: readonly DiagnosticObject[];
}n/a
- Name
state- Kind
- parameter
- Type
GridColumnsChildState- Requirement
- required
- Name
_previous- Kind
- parameter
- Type
GridColumnsChildInput<T>- Requirement
- required
- Name
next- Kind
- parameter
- Type
GridColumnsChildInput<T>- Requirement
- required
- Name
return- Kind
- return value
- Type
{ readonly state: GridColumnsChildState; readonly diagnostics?: readonly DiagnosticObject[]; }- Requirement
- n/a
syncEditChild
functionsyncEditChildts
declare function syncEditChild(state: GridEditChildState): { readonly state: GridEditChildState;};Name
Kind
Type
Requirement
stateparameter
GridEditChildStaterequired
returnreturn value
{
readonly state: GridEditChildState;
}n/a
- Name
state- Kind
- parameter
- Type
GridEditChildState- Requirement
- required
- Name
return- Kind
- return value
- Type
{ readonly state: GridEditChildState; }- Requirement
- n/a
syncFilterChild
functionsyncFilterChildts
declare function syncFilterChild(state: GridFilterChildState, _previous: GridFilterChildInput | undefined, next: GridFilterChildInput | undefined): { readonly state: GridFilterChildState; readonly diagnostics?: readonly DiagnosticObject[];};Name
Kind
Type
Requirement
stateparameter
GridFilterChildStaterequired
_previousparameter
GridFilterChildInput | undefinedrequired
nextparameter
GridFilterChildInput | undefinedrequired
returnreturn value
{
readonly state: GridFilterChildState;
readonly diagnostics?: readonly DiagnosticObject[];
}n/a
- Name
state- Kind
- parameter
- Type
GridFilterChildState- Requirement
- required
- Name
_previous- Kind
- parameter
- Type
GridFilterChildInput | undefined- Requirement
- required
- Name
next- Kind
- parameter
- Type
GridFilterChildInput | undefined- Requirement
- required
- Name
return- Kind
- return value
- Type
{ readonly state: GridFilterChildState; readonly diagnostics?: readonly DiagnosticObject[]; }- Requirement
- n/a
syncFocusChild
functionsyncFocusChildts
declare function syncFocusChild(state: GridFocusChildState): { readonly state: GridFocusChildState;};Name
Kind
Type
Requirement
stateparameter
GridFocusChildStaterequired
returnreturn value
{
readonly state: GridFocusChildState;
}n/a
- Name
state- Kind
- parameter
- Type
GridFocusChildState- Requirement
- required
- Name
return- Kind
- return value
- Type
{ readonly state: GridFocusChildState; }- Requirement
- n/a
syncGroupsChild
functionsyncGroupsChildts
declare function syncGroupsChild(state: GridGroupsChildState, _previous: GridGroupsChildInput | undefined, next: GridGroupsChildInput | undefined): { readonly state: GridGroupsChildState;};Name
Kind
Type
Requirement
stateparameter
GridGroupsChildStaterequired
_previousparameter
GridGroupsChildInput | undefinedrequired
nextparameter
GridGroupsChildInput | undefinedrequired
returnreturn value
{
readonly state: GridGroupsChildState;
}n/a
- Name
state- Kind
- parameter
- Type
GridGroupsChildState- Requirement
- required
- Name
_previous- Kind
- parameter
- Type
GridGroupsChildInput | undefined- Requirement
- required
- Name
next- Kind
- parameter
- Type
GridGroupsChildInput | undefined- Requirement
- required
- Name
return- Kind
- return value
- Type
{ readonly state: GridGroupsChildState; }- Requirement
- n/a
syncSortChild
functionsyncSortChildts
declare function syncSortChild(state: GridSortChildState, _previous: GridSortChildInput | undefined, next: GridSortChildInput | undefined): { readonly state: GridSortChildState; readonly diagnostics?: readonly DiagnosticObject[];};Name
Kind
Type
Requirement
stateparameter
GridSortChildStaterequired
_previousparameter
GridSortChildInput | undefinedrequired
nextparameter
GridSortChildInput | undefinedrequired
returnreturn value
{
readonly state: GridSortChildState;
readonly diagnostics?: readonly DiagnosticObject[];
}n/a
- Name
state- Kind
- parameter
- Type
GridSortChildState- Requirement
- required
- Name
_previous- Kind
- parameter
- Type
GridSortChildInput | undefined- Requirement
- required
- Name
next- Kind
- parameter
- Type
GridSortChildInput | undefined- Requirement
- required
- Name
return- Kind
- return value
- Type
{ readonly state: GridSortChildState; readonly diagnostics?: readonly DiagnosticObject[]; }- Requirement
- n/a
transitionColumnsChild
functiontransitionColumnsChildts
declare function transitionColumnsChild<T>(state: GridColumnsChildState, event: GridColumnsChildEvent, input: GridColumnsChildInput<T>): { readonly state: GridColumnsChildState; readonly commands?: readonly GridColumnsChildCommand[]; readonly diagnostics?: readonly DiagnosticObject[];};Name
Kind
Type
Requirement
stateparameter
GridColumnsChildStaterequired
eventparameter
GridColumnsChildEventrequired
inputparameter
GridColumnsChildInput<T>required
returnreturn value
{
readonly state: GridColumnsChildState;
readonly commands?: readonly GridColumnsChildCommand[];
readonly diagnostics?: readonly DiagnosticObject[];
}n/a
- Name
state- Kind
- parameter
- Type
GridColumnsChildState- Requirement
- required
- Name
event- Kind
- parameter
- Type
GridColumnsChildEvent- Requirement
- required
- Name
input- Kind
- parameter
- Type
GridColumnsChildInput<T>- Requirement
- required
- Name
return- Kind
- return value
- Type
{ readonly state: GridColumnsChildState; readonly commands?: readonly GridColumnsChildCommand[]; readonly diagnostics?: readonly DiagnosticObject[]; }- Requirement
- n/a
transitionEditChild
functiontransitionEditChildts
declare function transitionEditChild(state: GridEditChildState, event: GridEditChildEvent): { readonly state: GridEditChildState; readonly commands?: readonly GridEditChildCommand[]; readonly diagnostics?: readonly DiagnosticObject[];};Name
Kind
Type
Requirement
stateparameter
GridEditChildStaterequired
eventparameter
GridEditChildEventrequired
returnreturn value
{
readonly state: GridEditChildState;
readonly commands?: readonly GridEditChildCommand[];
readonly diagnostics?: readonly DiagnosticObject[];
}n/a
- Name
state- Kind
- parameter
- Type
GridEditChildState- Requirement
- required
- Name
event- Kind
- parameter
- Type
GridEditChildEvent- Requirement
- required
- Name
return- Kind
- return value
- Type
{ readonly state: GridEditChildState; readonly commands?: readonly GridEditChildCommand[]; readonly diagnostics?: readonly DiagnosticObject[]; }- Requirement
- n/a
transitionFilterChild
functiontransitionFilterChildts
declare function transitionFilterChild<T>(state: GridFilterChildState, event: GridFilterChildEvent, columnDefs?: readonly GridColumnDef<T>[]): { readonly state: GridFilterChildState; readonly commands?: readonly GridFilterChildCommand[]; readonly diagnostics?: readonly DiagnosticObject[];};Name
Kind
Type
Requirement
stateparameter
GridFilterChildStaterequired
eventparameter
GridFilterChildEventrequired
columnDefsparameter
readonly GridColumnDef<T>[]optional
returnreturn value
{
readonly state: GridFilterChildState;
readonly commands?: readonly GridFilterChildCommand[];
readonly diagnostics?: readonly DiagnosticObject[];
}n/a
- Name
state- Kind
- parameter
- Type
GridFilterChildState- Requirement
- required
- Name
event- Kind
- parameter
- Type
GridFilterChildEvent- Requirement
- required
- Name
columnDefs- Kind
- parameter
- Type
readonly GridColumnDef<T>[]- Requirement
- optional
- Name
return- Kind
- return value
- Type
{ readonly state: GridFilterChildState; readonly commands?: readonly GridFilterChildCommand[]; readonly diagnostics?: readonly DiagnosticObject[]; }- Requirement
- n/a
transitionFocusChild
functiontransitionFocusChildts
declare function transitionFocusChild(state: GridFocusChildState, event: GridFocusChildEvent, input?: GridFocusChildInput): { readonly state: GridFocusChildState; readonly commands?: readonly GridFocusChildCommand[]; readonly diagnostics?: readonly DiagnosticObject[];};Name
Kind
Type
Requirement
stateparameter
GridFocusChildStaterequired
eventparameter
GridFocusChildEventrequired
inputparameter
GridFocusChildInputoptional
returnreturn value
{
readonly state: GridFocusChildState;
readonly commands?: readonly GridFocusChildCommand[];
readonly diagnostics?: readonly DiagnosticObject[];
}n/a
- Name
state- Kind
- parameter
- Type
GridFocusChildState- Requirement
- required
- Name
event- Kind
- parameter
- Type
GridFocusChildEvent- Requirement
- required
- Name
input- Kind
- parameter
- Type
GridFocusChildInput- Requirement
- optional
- Name
return- Kind
- return value
- Type
{ readonly state: GridFocusChildState; readonly commands?: readonly GridFocusChildCommand[]; readonly diagnostics?: readonly DiagnosticObject[]; }- Requirement
- n/a
transitionGroupsChild
functiontransitionGroupsChildts
declare function transitionGroupsChild(state: GridGroupsChildState, event: GridGroupsChildEvent): { readonly state: GridGroupsChildState; readonly commands?: readonly GridGroupsChildCommand[]; readonly diagnostics?: readonly DiagnosticObject[];};Name
Kind
Type
Requirement
stateparameter
GridGroupsChildStaterequired
eventparameter
GridGroupsChildEventrequired
returnreturn value
{
readonly state: GridGroupsChildState;
readonly commands?: readonly GridGroupsChildCommand[];
readonly diagnostics?: readonly DiagnosticObject[];
}n/a
- Name
state- Kind
- parameter
- Type
GridGroupsChildState- Requirement
- required
- Name
event- Kind
- parameter
- Type
GridGroupsChildEvent- Requirement
- required
- Name
return- Kind
- return value
- Type
{ readonly state: GridGroupsChildState; readonly commands?: readonly GridGroupsChildCommand[]; readonly diagnostics?: readonly DiagnosticObject[]; }- Requirement
- n/a
transitionSortChild
functiontransitionSortChildts
declare function transitionSortChild(state: GridSortChildState, event: GridSortChildEvent, input?: GridSortChildInput): { readonly state: GridSortChildState; readonly commands?: readonly GridSortChildCommand[]; readonly diagnostics?: readonly DiagnosticObject[];};Name
Kind
Type
Requirement
stateparameter
GridSortChildStaterequired
eventparameter
GridSortChildEventrequired
inputparameter
GridSortChildInputoptional
returnreturn value
{
readonly state: GridSortChildState;
readonly commands?: readonly GridSortChildCommand[];
readonly diagnostics?: readonly DiagnosticObject[];
}n/a
- Name
state- Kind
- parameter
- Type
GridSortChildState- Requirement
- required
- Name
event- Kind
- parameter
- Type
GridSortChildEvent- Requirement
- required
- Name
input- Kind
- parameter
- Type
GridSortChildInput- Requirement
- optional
- Name
return- Kind
- return value
- Type
{ readonly state: GridSortChildState; readonly commands?: readonly GridSortChildCommand[]; readonly diagnostics?: readonly DiagnosticObject[]; }- Requirement
- n/a