API reference
@salmonui/core/data
42 exported symbols: 7 functions, 22 interfaces and 13 types. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/core/data';Functions
compilePatternCompiles like (% / = any sequence) or wildcard ( = any sequence, ? = one character) into an anchored RegExp.freezeJsonCopyDeep copy of a JSON value with every object and array frozen. Drops undefined properties.isJsonValueTrue when value survives a JSON round trip unchanged: null, booleans, finite numbers, strings, arrays, and plain objects of those. undefined is allowed only as…normalizeFilterOperatorCanonical built-in operator for a name (case-insensitive).shallowEqualShallow equality for selector results: Object.is, or same keys/items with Object.is values.shallowEqualArraysstableStringifyDeterministic JSON: object keys sorted, undefined and functions dropped, array order preserved. Used for query cache keys and serialization.
Interfaces
AbortSignalLikeMinimal structural view of an AbortSignal.AggregateDescriptorConflictSnapshotA version conflict reported by a write (structural copy of @salmonui/data ConflictSnapshot).DataQueryDataSourceDataSourceCapabilitiesDataSourceFacetRequestDataSourceFacetResultDataSourceRequestDataSourceResultExpansionDescriptorFilterDescriptorFilterGroupDescriptorNested AND/OR group: predicate combines its members ({ predicate: 'or', filters: [A, B] } is A OR B); member predicates are ignored. A top-level group is ANDed…GroupDescriptorGroupPathSegmentOne level of a group path: the grouped column and the group key (JSON form of the value).GroupedRowEnvelopeGroup envelope of a lazy group load (DataSourceRequest.groupPath).PagingDescriptorRowPlacementMoves rowIds (in this order) next to targetRowId; a null target means the start (before) or the end (after).SearchDescriptorSortDescriptorWriteRequestWriteResult
Types
AggregateTypeAggregateValuesAggregate values by column and aggregate type ({ n0: { sum: 12, average: 3 } }).ColumnIdDataSourceEventChange notification from a data source. rows is always the complete new row array; the id lists let the engine update incrementally.DataSourceModeFilterEntryFilterOperatorBuilt-in filter operators. like treats % and as "any sequence"; wildcard treats as "any sequence" and ? as "one character". Both match the whole value. Lowerca…FilterSourceJsonJsonObjectPerformedStageStages a remote source may declare as already performed.RowIdSearchOperatorwildcard: * any sequence, ? one character; like: % (or *) any sequence. Both match the whole value.