API reference
@searsuite/sear-domain-cell
Cell catalogs that compose commit, display, render, and clipboard behavior.
13 exportsderived from source
- classCellDisplayTextRegistrysource ↗
-
class CellDisplayTextRegistryMaps persisted cell types to their display-text semantics without creating render Cells.
constructorconstructor CellDisplayTextRegistry(platform: Platform): CellDisplayTextRegistryCreates a CellDisplayTextRegistry instance.
platform: Platform
propertysymbolstatic readonly symbol: typeof symbolDI token for resolving CellDisplayTextRegistry.
methodgetDisplayText getDisplayText(cell: CellDisplayData, context: CellDisplayContext): stringReturns the display text.
cell: CellDisplayDatacontext: CellDisplayContext
methodregister register(provider: CellDisplayTextProvider): (): voidRegisters the value.
provider: CellDisplayTextProvider
- classCellRenderDefinitionsource ↗
-
class CellRenderDefinitionA rendering-only sheet cell definition, such as an editor overlay or header affix.
constructorconstructor CellRenderDefinition(): CellRenderDefinitionpropertytype readonly type: string | symbolStable type key for CellRenderDefinition.
methodcreateRenderer createRenderer(): CellRendererDefinitionCreates the renderer.
- classCellTypeCatalogsource ↗
-
class CellTypeCatalogWorkbook catalog of available persisted cell types and render-only cell roles.
Registering a definition installs all of its capabilities atomically into the specialised registries; disposing it restores the definition it replaced.
constructorconstructor CellTypeCatalog(commitStrategies: CellCommitStrategyRegistry, displayTexts: CellDisplayTextRegistry, renderCoordinator: SheetRenderCoordinatorManager, clipboardCodecs: CellClipboardCodecRegistry, formatCodecs?: CellFormatTransferRegistry): CellTypeCatalogCreates a catalog over the specialised commit, display-text and renderer registries.
commitStrategies: CellCommitStrategyRegistrydisplayTexts: CellDisplayTextRegistryrenderCoordinator: SheetRenderCoordinatorManagerclipboardCodecs: CellClipboardCodecRegistryformatCodecs: CellFormatTransferRegistry
propertysymbolstatic readonly symbol: typeof symbolDI token for resolving the workbook cell type catalog.
methodget get(type: string | symbol): CellRenderDefinition | undefinedReturns the registered definition for a type key.
type: string | symbol
methodgetAll getAll(): readonly CellRenderDefinition[]Returns all registered definitions in insertion order.
methodgetDisplayText getDisplayText(cell: CellDisplayData, context: CellDisplayContext): stringResolves display text through the registered provider for a persisted cell type.
cell: CellDisplayDatacontext: CellDisplayContext
methodregister register(definition: CellRenderDefinition): (): voidRegisters a definition atomically and returns a disposer that restores the previous definition.
definition: CellRenderDefinition
methodunregister unregister(type: string | symbol): booleanUnregisters a definition by type key.
type: string | symbol
methodinstallstatic install(container: Container): voidRegisters implementation registries without exposing them from the package entry point.
container: Container
- classCellTypeDefinitionsource ↗
-
class CellTypeDefinition extends CellRenderDefinitionA persisted spreadsheet cell type and all behaviours associated with it.
constructorconstructor CellTypeDefinition(): CellTypeDefinitionpropertytype readonly type: stringPersisted cell type identifier stored on sheet cell data.
methodcreateClipboardCodec createClipboardCodec(): CellClipboardCodecDefinition | undefinedCreates clipboard behavior owned by this persisted cell type.
methodcreateCommitStrategies createCommitStrategies(): readonly CellCommitStrategyDefinition[]Creates commit strategies associated with this cell type.
methodcreateDisplayTextProvider createDisplayTextProvider(): CellDisplayTextProvider | undefinedCreates the display-text provider associated with this cell type.
methodcreateFormatTransferCodec createFormatTransferCodec(): CellFormatTransferCodec | undefinedOptional format-transfer behavior owned by this cell type.
methodcreateRenderer createRenderer(): CellRendererDefinitionCreates the renderer definition associated with this cell type.
methodisStoredValue isStoredValue(_cell: { formula?: unknown; value?: unknown }): booleanValidates persisted data before it reaches a renderer-specific Cell.
_cell: { formula?: unknown; value?: unknown }
- interfaceCellDisplayContextsource ↗
-
interface CellDisplayContextRead-only data available while deriving display text.
This deliberately does not reuse a render-cell context: measurement, copy, and search need the same cell semantics without taking a render dependency.
propertycellFormatLocale cellFormatLocale?: CellFormatLocalepropertycol col?: numberpropertyformulaResultProvider formulaResultProvider?: FormulaResultReaderpropertyrow row?: number - interfaceCellDisplayDatasource ↗
-
interface CellDisplayDataPersisted data required to derive a cell's plain-text representation.
- interfaceCellDocumentFormattingsource ↗
-
interface CellDocumentFormattingPure document formatting supplied by an embedded editor implementation.
- interfaceCellRendererDefinitionsource ↗
-
interface CellRendererDefinitionRender contribution belonging to one spreadsheet cell definition.
- interfaceFormulaResultReadersource ↗
-
interface FormulaResultReaderMinimal formula-result capability required by formula display text.
methodgetFormulaResult getFormulaResult(row: number, col: number): unknownrow: numbercol: number
- functioncreateFormulaCellClipboardCodecsource ↗
-
createFormulaCellClipboardCodec(): CellClipboardCodecDefinitionClipboard behavior for formula source text and relative references.
- functiondefineCellRenderersource ↗
-
defineCellRenderer<DataType, Properties>(cellType: string | symbol, cell: (data: DataType, positionRect: PositionRectProps, properties: Properties, context?: CellContext): Cell<DataType>): CellRendererDefinitionCreates the standard renderer definition for a
Cellsubclass.cellType: string | symbolcell: (data: DataType, positionRect: PositionRectProps, properties: Properties, context?: CellContext): Cell<DataType>
- functionregisterBuiltinCellDefinitionssource ↗
-
registerBuiltinCellDefinitions(catalog: CellTypeCatalog): (): voidRegisters built-in cell definitions and returns a disposer in reverse order.
catalog: CellTypeCatalog
- functionregisterTextFormatTransferCodecssource ↗
-
registerTextFormatTransferCodecs(registry: CellFormatTransferRegistry, readFormatting: (): CellDocumentFormatting | undefined): (): voidText cell type composition; numeric and formula values remain with their own codecs.
registry: CellFormatTransferRegistryreadFormatting: (): CellDocumentFormatting | undefined
No public exports match that search.