CngxSelectCore
projects/forms/select/shared/internal/select-core.ts
Import#
import { CngxSelectCore } from '@cngx/forms/select'
Description#
Output of createSelectCore - pure-derivation signals shared by every select-family component.
Index#
Properties
Instance Properties#
SignalSignalSignalCngxSelectAriaLabelsMirrors CNGX_SELECT_CONFIG.ariaLabels. Forwarded onto the panel host.
SignalCngxCommitControllerSignalCngxAsyncStateSignalSignalSignalSignalSignalSignalCngxSelectPanelHostAdapterBound isGroup/isSelected/isIndeterminate/isCommittingOption
for spreading into a variant's CngxSelectPanelHost. Stable
identities for the core's lifetime.
SignalSignalSignalSignalSignalSignalSignal<"before" | "after">instance > config > 'before' cascade.
Signal<"checkbox" | "checkmark" | "radio">instance > config > 'auto' cascade. 'auto' → 'checkbox' in
multi, 'checkmark' in single.
SignalSignalShared selection controller. null for single-select. Membership
is identity-based - consumers with custom compareWith should
prefer isSelected.
SignalSignalSignalSignalWritableSignalMerged-but-unfiltered flat view (server + localItems). Used by
chip strips so selected chips stay visible while a search term
hides the matching option. Aliases flatOptions when no filter is
set.
SignalMethods#
announce(option: CngxSelectOptionDef<T> | null, action: "added" | "removed" | "reordered" | "created", count: number, multi: boolean, fromIndex?: number, toIndex?: number)Announce a selection change via the live-region. Cascade:
per-instance > config > default. 'reordered' accepts
fromIndex/toIndex; 'created' is fired by action organisms.
"added" | "removed" | "reordered" | "created"bindCommitRetry(retry: function)Builds a commitErrorContext signal bound to the caller's retry.
Cache the result per variant-specific retry signature.
isCommittingOption(opt: CngxSelectOptionDef<T>)CngxSelectOptionGroupDefisGroup(item: CngxSelectOptionDef | CngxSelectOptionGroupDef) CngxSelectOptionDef | CngxSelectOptionGroupDef isIndeterminate(value: T)Always false without childrenFn. Tree-select propagates.
TisSelected(value: T)Mode-agnostic membership test. Multi delegates to
SelectionController's identity fast path; falls back to
compareWith scan for custom comparators.
T