Scopes the density preference to a subtree by reflecting [cngxDensity] onto the host [data-density] attribute · Holds...
core
Category
No results found
Features8#
- DirectiveCngxDensityScopes the density preference to a subtree by reflecting [cngxDensity] onto the host [data-density] attribute
- TokenCNGX_DENSITYHolds the app-wide density preference as a WritableSignal
- TokenCNGX_FORM_FIELD_CONTROLWCAG AAInjection token provided by controls inside a cngx-form-field (or any other host that consumes the same contract)
- TokenCNGX_FORM_FIELD_HOSTWCAG AAInjection token resolving to the surrounding form-field-host contract, if any
- TokenENVIRONMENTInjection token for the application environment configuration
- TokenWINDOWProvides access to the browser Window object
- TokenCNGX_STATEFULDI token for ancestor-/self-discoverable primary async state
- TokenCNGX_SELECTION_CONTROLLER_FACTORYInjection token that resolves the factory used to instantiate a {@link SelectionController}
References30#
- FunctioninjectDensityRead the app-wide density signal in an injection context
- FunctionprovideDensityInstall the density preference at app root and reflect it onto <html data-density> , mirroring how the colour r...
- Type AliasCngxDensityValueThe three density rungs the [data-density] scale swap ships ( density-tokens.css )
- InterfaceCngxFormFieldControlContract every form control fulfils when participating in a cngx-form-field (or any future host that adopts the same ...
- InterfaceCngxFormFieldHostContractNarrow back-channel a form-field-aware host (typically CngxFormFieldPresenter ) exposes to the bound control
- InterfaceEnvironmentApplication environment descriptor
- FunctioninjectWindowInjects the WINDOW token
- FunctionprovideEnvironmentProvides an Environment value for the ENVIRONMENT token
- FunctionprovideWindowProvides a custom Window reference (useful for testing or SSR)
- InterfaceCngxStatefulMinimal Contract for components that expose a primary async state
- FunctioncoerceBooleanPropertyCoerces a value to a boolean
- FunctioncoerceNumberPropertyCoerces a value to a number
- FunctioncreateControlledSourceDerives a controlled/uncontrolled source signal: a higher-precedence priority source wins over a lower-precedence fal...
- FunctionhasTransitionChecks whether an element has any CSS transition applied
- FunctionmemoizeCreates a memoized version of a single-argument pure function
- FunctionnextUidGenerates a unique ID string with the given prefix
- FunctiononTransitionDoneListens for the longest CSS transition on an element, then invokes onDone
- InterfaceAsyncStateViewSourcesSource signals for building a read-only async state view
- InterfaceCngxAsyncStateUX state machine interface for any asynchronous operation
- InterfaceStatusTransitionReactive current/previous pair for AsyncStatus transitions
- FunctionbuildAsyncStateViewBuild a read-only CngxAsyncState<T> view from source signals
- FunctioncreateTransitionTrackerCreates a reactive transition tracker for an AsyncStatus source
- Type AliasAsyncStatusDiscriminated status of an async operation lifecycle
- InterfaceKeyComboParsed keyboard combo
- FunctionmatchesKeyComboTests whether a KeyboardEvent matches a parsed {@link KeyCombo}
- FunctionparseKeyComboParses a keyboard shortcut string like 'ctrl+shift+k' or 'mod+b' into a structured {@link KeyCombo}
- InterfaceSelectionControllerSignal-based selection engine
- InterfaceSelectionControllerOptionsConfiguration options for createSelectionController
- FunctioncreateSelectionControllerCreate a signal-based selection engine that reads and writes an external WritableSignal<T[]>
- Type AliasCngxSelectionControllerFactoryFactory signature for {@link SelectionController} — the exact shape of {@link createSelectionController}, carried as ...