@searsuite/sear-domain-cell
Cell catalogs that compose commit, display, render, and clipboard behavior.
Cell definitions
- classCellRenderDefinition
-
A rendering-only sheet cell definition, such as an editor overlay or header affix.
constructor CellRenderDefinition(): CellRenderDefinitionproperty readonly type: string | symbolStable type key for CellRenderDefinition.
method createRenderer(): CellRendererDefinitionCreates the renderer.
- classCellTypeCatalog
-
Workbook 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.
constructor CellTypeCatalog(commitStrategies: CellCommitStrategyRegistry, displayTexts: CellDisplayTextRegistry, renderCoordinator: SheetRenderCoordinatorManager, clipboardCodecs: CellClipboardCodecRegistry, formatCodecs?: CellFormatTransferRegistry): CellTypeCatalogCreates a catalog over the specialised commit, display-text and renderer registries.
property readonly symbol: typeof symbolstaticDI token for resolving the workbook cell type catalog.
method get(type: string | symbol): CellRenderDefinition | undefinedReturns the registered definition for a type key.
method getAll(): readonly CellRenderDefinition[]Returns all registered definitions in insertion order.
method getDisplayText(cell: CellDisplayData, context: CellDisplayContext): stringResolves display text through the registered provider for a persisted cell type.
method register(definition: CellRenderDefinition): (): voidRegisters a definition atomically and returns a disposer that restores the previous definition.
method unregister(type: string | symbol): booleanUnregisters a definition by type key.
method install(container: Container): voidstaticRegisters implementation registries without exposing them from the package entry point.
- classCellTypeDefinition
-
class CellTypeDefinition extends CellRenderDefinitionA persisted spreadsheet cell type and all behaviours associated with it.
constructor CellTypeDefinition(): CellTypeDefinitionproperty readonly type: stringPersisted cell type identifier stored on sheet cell data.
method createClipboardCodec(): CellClipboardCodecDefinition | undefinedCreates clipboard behavior owned by this persisted cell type.
method createCommitStrategies(): readonly CellCommitStrategyDefinition[]Creates commit strategies associated with this cell type.
method createDisplayTextProvider(): CellDisplayTextProvider | undefinedCreates the display-text provider associated with this cell type.
method createFormatTransferCodec(): CellFormatTransferCodec | undefinedOptional format-transfer behavior owned by this cell type.
method createRenderer(): CellRendererDefinitionCreates the renderer definition associated with this cell type.
method isStoredValue(_cell: { formula?: unknown; value?: unknown }): booleanValidates persisted data before it reaches a renderer-specific Cell.
- interfaceCellRendererDefinition
-
Render contribution belonging to one spreadsheet cell definition.
- functiondefineCellRenderer
-
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. - functionregisterBuiltinCellDefinitions
-
registerBuiltinCellDefinitions(catalog: CellTypeCatalog): (): voidRegisters built-in cell definitions and returns a disposer in reverse order.
Display and transfer
- classCellDisplayTextRegistry
-
Maps persisted cell types to their display-text semantics without creating render Cells.
constructor CellDisplayTextRegistry(platform: Platform): CellDisplayTextRegistryproperty readonly symbol: typeof symbolstaticDI token for resolving CellDisplayTextRegistry.
method getDisplayText(cell: CellDisplayData, context: CellDisplayContext): stringReturns the display text.
method register(provider: CellDisplayTextProvider): (): voidRegisters the value.
- interfaceCellDisplayContext
-
Read-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.
property cellFormatLocale?: CellFormatLocaleproperty col?: numberproperty formulaResultProvider?: FormulaResultReaderproperty row?: number - interfaceCellDisplayData
-
Persisted data required to derive a cell's plain-text representation.
property format?: unknownproperty formula?: stringproperty type: string | symbolproperty value?: unknown - interfaceCellDocumentFormatting
-
Pure document formatting supplied by an embedded editor implementation.
- interfaceFormulaResultReader
-
Minimal formula-result capability required by formula display text.
- functioncreateFormulaCellClipboardCodec
-
createFormulaCellClipboardCodec(): CellClipboardCodecDefinitionClipboard behavior for formula source text and relative references.
- functionregisterTextFormatTransferCodecs
-
registerTextFormatTransferCodecs(registry: CellFormatTransferRegistry, readFormatting: (): CellDocumentFormatting | undefined): (): voidText cell type composition; numeric and formula values remain with their own codecs.
No matching API entries.