NEURALNG
PUBLIC CONTRACT

DatePicker API

Canonical export: NeuralDatePicker. DatePickerComponent remains a deprecated compatibility alias.

Models

ModelTypeDefault
valueNeuralDatePickerValue<TMode, TPickerMode>null

Inputs

The complete input surface is grouped by responsibility.

Mode and availability

selectionMode, pickerMode, minDate, maxDate, minDateTime, maxDateTime, disabledDates, disabledDays, dateFilter, isDateDisabled.

Calendar and time

today, firstDayOfWeek, showOtherMonths, selectOtherMonths, showWeekNumbers, showSeconds, hourFormat, hourStep, minuteStep, secondStep.

Commit behavior

closeOnSelect, footerActions, showQuickActions, showApplyActions, clearable.

Form and DOM

disabled, readonly, required, invalid, pending, touched, dirty, name, datePickerId, ariaLabel, placeholder, locale, fluid.

Visual ownership

unstyled, datePickerClass, iconClass, clearIconClassName, previousIconClass, nextIconClass, classes.

Outputs

valueChangeselectionChangeselectedclearedopenChangeopenedclosedviewChangedmonthChangedyearChangedinvalidInputtouch

valueChange synchronizes the model. Semantic outputs describe explicit user intent and do not fire for unrelated programmatic writes.

Typed template directives

neuralDatePickerDay, neuralDatePickerHeader, neuralDatePickerFooter, neuralDatePickerTriggerIcon, neuralDatePickerPreviousIcon and neuralDatePickerNextIcon.

Timezone-safe utilities

The entry point exports strict parsing/formatting, comparison, clamping, calendar construction, ISO week, native Date boundary conversion and date/time arithmetic helpers. Use parseNeuralLocaleDate instead of browser-dependent Date.parse.

Forms contract

NeuralDatePicker implements FormValueControl. Disabled, readonly, required, invalid, pending, touched and dirty state can flow through Angular Forms; do not add another CVA or mirror the value.