Module

ui/constants

Constants and enums for UI rendering and validation

View Source ui/constants.ts, line 2

Members

# inner constant ActionRoles

Enumerates the semantic roles a button or action may represent so decorators and renderers can attach consistent behaviors and styling (including CRUD verbs tied to OperationKeys).

Canonical action role identifiers for UI controls.

View Source ui/constants.ts, line 344

Object

# inner constant ComponentEventNames

Contains constants for standardized event names used throughout the application. These constants ensure consistent event naming across components and make it easier to track and handle events. Each constant represents a specific application event type.

Event name constants.

Properties:
Name Type Description
BackButtonClickEvent string

Event fired when back button navigation ends

Render string

Event after component initialize action occurs

Refresh string

Event fired when a refresh action occurs

Click string

Event fired when a click action occurs

Change string

Event fired when a change action occurs

Submit string

Event fired when a form submission occurs

ValidationError string

Event fired when a validation error occurs

ThemeChange string

Event fired when a theme change occurs

FormGroupLoaded string

Event fired when a reactve form group is loaded

View Source ui/constants.ts, line 257

# inner constant ElementPositions

Supplies canonical position values (horizontal and vertical) that decorators can use when aligning labels, controls, or helper text across components.

Alignment keywords for element positioning.

View Source ui/constants.ts, line 318

# inner constant ElementSizes

Defines the semantic size keywords supported by layout and form decorators. These values feed rendering engines so components can express sizing in a uniform vocabulary.

Standardized size tokens for UI elements.

View Source ui/constants.ts, line 300

# inner constant LayoutGridGaps

Maps human-readable gap sizes to the tokens interpreted by the rendering engine when building CSS grid layouts, enabling predictable spacing across components.

Grid spacing presets for layout decorators.

View Source ui/constants.ts, line 331

# inner constant TransactionHooks

Provides canonical names for CRUD lifecycle callbacks so decorators and components can register work before or after repository operations in a consistent way. Each key maps to the string used when wiring transaction middleware.

Lifecycle hook labels for repository transactions.

View Source ui/constants.ts, line 285

# inner constant WindowColorSchemes

Provides the supported theme identifiers exposed to consuming apps so they can target light, dark, or unset window color schemes in a predictable way.

Allowed color scheme tokens for windowed surfaces.

View Source ui/constants.ts, line 362