@anglr/datetime
Advanced tools
Changelog
Version 8.0.0 (2024-01-25)
DateTimeValueFormat
enum
DataString
formatted date as string value, custom string format for date time value, different from displayed string formatDateTimeSADirective
directive
dataFormat
represents data format that is used as value of date time when DateTimeValueFormat.DataString
is set to valueFormat
DateTimeValidationArgs
interface
dataFormat
format of data string valueDateTime
decorator
dataFormat
format of data string valueNodeJs
is 18.13
@angular
is 17.0.1
@jscrpt/common
is 6.0.0
@anglr/common
is 19.0.0
tslib
is 2.6.2
parseDateTime
function, has new argument
dataFormat
string format for parsing string dates, required only for string dates, has higher priority than stringFormat
formatDateTime
function, has new argument
dataFormat
string format for formatting string dates, required only for string dates, has higher priority than stringFormat
datetimeMaxValidator
validator function, has new argument
dataFormat
optional string data format of valuedatetimeMinValidator
validator function, has new argument
dataFormat
optional string data format of valuedatetimeValidator
validator function, has new argument
dataFormat
optional string data format of valueChangelog
Version 7.0.0 (2023-08-17)
ButtonDateTimeInputSADirective
directive, that is used for setting up date time input for button
DateTimeBase
DateTimeInput
OnDestroy
value
current value of date time, could be string, unix timestamp, Date, TDate object, or ranged DateTimeValuerawValue
value of date time, raw string value which is visible to userdisabled
indication whether is date time disabled1element
html element that represents input itselffocus
occurs when input gains focusblur
occurs when input loses focusDateTimePickerDirectiveOptions
interface
targetElement
string that defines element in which should be picker rendered, if not specified, body is used, working only with absolute
set to true
@angular
is 16.0.3
@anglr/common
is 17.0.0
@jscrpt/common
is 4.0.0
@rxjs
is 7.5.7
date-fns
is 2.30.0
tslib
is 2.6.1
NodeJs
lower than 16.14
Changelog
Version 6.1.0 (2023-01-04)
WithTodaySADirective
WithNowSADirective
directive, that sets current date and time as day and time for empty date time on focusDateTimeInputHandlerSADirective
directive, that adds handler for date time input, which allows navigation using keyboard and checking restriction of valueDatePickerInputSADirective
directive, that combines date picker with date inputDateTimePickerInputSADirective
directive, that combines date time picker with date time inputparseRawInput
function, that parses raw value into internal value and valuegetInternalValue
function, gets internal value and fix lowest time differenceDateTimeSADirective
directive
customFormatChanges
occurs when there are changes in custom format valueChangelog
Version 6.0.0 (2022-12-23)
DateObject
type, that represents date object, either as date api or plainEventParser
service, that is used for parsing events into events to requested period
getEventsPerDay
gets events parsed per dayMonthCalendarComponent
component, that is used for displaying month calendar
OnInit
OnChanges
showWeekNumber
indication that week number should be displayeddisplay
date that should be displayed in month calendarweekDayName
format for displaying week day namesdayAspectRatio
aspect ratio for displayed calendar day cellevents
array of events that should be displayedCalendarDayTemplateDirective
CalendarDayTemplateContext
interface, that is context passed to template of calendar day
$implicit
data that are used for displaying calendar dayCalendarDayTemplateDirective
directive, that is used for obtaining custom calendar day template
template
template obtained by this structural directiveMonthCalendarModule
module, that is used for calendar displaying month
MonthCalendarComponent
CalendarDayTemplateDirective
SimpleDatePickerInputSADirective
directive, that combines date picker with simple date inputSimpleDateTimePickerInputSADirective
directive, that combines date time picker with simple date time inputSimpleDateTimeInputHandlerSADirective
directive, that adds simple handler for date time input, which allows simple navigation using keyboardCalendarDayAspectRatio
enum, that represents available aspect ratios for displaying calendar days
OneToOne
aspect ratio of width to height is 1:1 (square)ThreeToTwo
aspect ratio of width to height is 3:2FourToThree
aspect ratio of width to height is 4:3SixteenToTen
aspect ratio of width to height is 16:10SixteenToNine
aspect ratio of width to height is 16:9MonthCalendarDayFormat
enum, that represents available day formats for calendar day
None
no week day name displayedShort
short version of week day nameFull
full version of week day nameCalendarDayData
interface, that represents data for day for calendar
events
thin array of events array for daydate
date of dayday
number of day of monthisWeekend
indication whether is this day weekend dayisCurrentMonth
indication whether is this day for currently displayed monthweek
week number of year for dayCalendarEventDayMetadata
interface, that represents event metadata for day
EventData
WithDateApiFromTo
allDay
indication whether is event all day eventonGoingFrom
indication that event is ongoing from previous dateonGoingTo
indication that event is ongoing to next dateEventData
interface, that represents data for event that are passed to calendar
data
data for eventdateFrom
date when event startsdateTo
date when event endsWithDateApiFromTo
interface, that represents object that holds date api object for dateFrom and dateTo
dateApiFrom
date api for date when event startsdateApiTo
date api for date when event endsDateApiObject
interface
isSame
method which, compares whether is date same as provided dateformatISO
method which, formats date value as ISO string representationDateObject<TDate>
instead of just TDate
as argument
isBefore
isAfter
diffDays
isSameWeek
isSameDecade
isSameYear
isSameMonth
isSameDay
DateTimeSADirective
directive
DateTimeControlValueAccessorSADirective
directive
DateTimeInputSADirective
directive
DateTimeMaxValidatorSADirective
directive
DateTimeMinValidatorSADirective
directive
DateTimeValidatorSADirective
directive
DateTimePickerSADirective
directive
@anglr/datetime/moment
MomentDateApi
isSame
and formatISO
methods, and supports new DateObject<TDate>
argument@anglr/datetime/date-fns
DateFnsDateApi
isSame
and formatISO
methods, and supports new DateObject<TDate>
argumentNode.js
(14.20.0
or 16.13.0
or 18.10.0
)@angular
is now 15.0.4
@jscrpt/common
is now 3.3.0
@anglr/common
is now 15.0.1
tslib
is now 2.4.1
any
replaced by unknown
DateApiObjectCtor
interface
DateTimeDirective
to DateTimeSADirective
directiveDateTimeControlValueAccessorDirective
to DateTimeControlValueAccessorSADirective
directiveDateTimeInputDirective
to DateTimeInputSADirective
directiveDateTimeMaxValidatorDirective
to DateTimeMaxValidatorSADirective
directiveDateTimeMinValidatorDirective
to DateTimeMinValidatorSADirective
directiveDateTimeValidatorDirective
to DateTimeValidatorSADirective
directiveDateTimePickerDirective
to DateTimePickerSADirective
directiveLoopScrollDataDirective
to LoopScrollDataSADirective
directiveLoopScrollDirective
to LoopScrollSADirective
directivePickerBaseComponent
legacy componentPickerImplBaseComponent
legacy componentDateTimeDayPickerComponent
legacy componentDayPickerCssClasses
legacy interfaceDateTimeMonthPickerComponent
legacy componentMonthPickerCssClasses
legacy interfacescaleUpDownTrigger
legacy animationDateTimePickerLegacyComponent
legacy componentDateTimeRollerTimePickerComponent
legacy componentRollerTimePickerCssClasses
legacy interfaceYearPickerCssClasses
legacy componentCommonPickerCssClasses
legacy interfaceDateTimePickerCssClasses
legacy interfaceDateTimePickerLegacyOptions
legacy interfaceDateTimeLegacyPicker
legacy interfaceDATE_TIME_PICKER_CONFIGURATION
legacy tokenDateTimeLegacyPickerModule
legacy moduleenterLeaveAnimateChildTrigger
legacy animationDateTimeSelectorComponent
legacy componentDatetimeMaxValidatorDirective
legacy directiveDatetimeMinValidatorDirective
legacy directiveDateTimePickerRendererDirective
legacy directiveDatetimeValidatorDirective
legacy directiveDateTimeSelectorControlValueAccessor
legacy directiveDateTimeSelectorOptions
legacy interfaceDateTimeSelector
legacy interfaceDATE_TIME_SELECTOR_CONFIGURATION
legacy tokenDateTimeBasicSelectorModule
legacy moduleDateTimeSelectorModule
legacy modulemaxDatetime
legacy validator functionminDatetime
legacy validator functiondatetime
legacy validator functionValidators
legacy validators classDateTimeValueObject
legacy interface