Releases: ressurectit/ng-datetime
Releases · ressurectit/ng-datetime
v8.1.0
Bug Fixes
- fixed
DateTimeSADirective
directive, now handles initial set of value fromControlValueAccessor
after initialization of this directive, which now correctly applies min/max restrictions
Features
- updated
DateTimeInputValue
interface- new properties
valueSet
occurs when value is set, occurs everytime when value was set, even from code
- new properties
- updated
DateTimeBase
class- now correctly implements updated
DateTimeInputValue
interface
- now correctly implements updated
- updated
DateTimePickerComponent
component- now correctly implements updated
DateTimeInputValue
interface - now correctly calls
valueSet
anytime value changes
- now correctly implements updated
- updated
ButtonDateTimeInputSADirective
directive- now correctly calls
valueSet
anytime value changes
- now correctly calls
- updated
DateTimeInputSADirective
directive- now correctly calls
valueSet
anytime value changes
- now correctly calls
v8.0.3
v8.0.2
v8.0.1
v8.0.0
Features
- updated
DateTimeValueFormat
enum- new value
DataString
formatted date as string value, custom string format for date time value, different from displayed string format
- new value
- updated
DateTimeSADirective
directive- new inputs
dataFormat
represents data format that is used as value of date time whenDateTimeValueFormat.DataString
is set tovalueFormat
- new inputs
- updated
DateTimeValidationArgs
interface- new properties
dataFormat
format of data string value
- new properties
- updated
DateTime
decorator- new arguments
dataFormat
format of data string value
- new arguments
BREAKING CHANGES
- minimal supported version of
NodeJs
is18.13
- minimal supported version of
@angular
is17.0.1
- minimal supported version of
@jscrpt/common
is6.0.0
- minimal supported version of
@anglr/common
is19.0.0
- minimal supported version of
tslib
is2.6.2
- updated
parseDateTime
function, has new argumentdataFormat
string format for parsing string dates, required only for string dates, has higher priority thanstringFormat
- updated
formatDateTime
function, has new argumentdataFormat
string format for formatting string dates, required only for string dates, has higher priority thanstringFormat
- updated
datetimeMaxValidator
validator function, has new argumentdataFormat
optional string data format of value
- updated
datetimeMinValidator
validator function, has new argumentdataFormat
optional string data format of value
- updated
datetimeValidator
validator function, has new argumentdataFormat
optional string data format of value
v7.0.0
Features
- new
ButtonDateTimeInputSADirective
directive, that is used for setting up date time input for button- extends
DateTimeBase
- implements
DateTimeInput
OnDestroy
- inputs
value
current value of date time, could be string, unix timestamp, Date, TDate object, or ranged DateTimeValue
- properties
rawValue
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 focus
- extends
- updated
DateTimePickerDirectiveOptions
interface- new properties
targetElement
string that defines element in which should be picker rendered, if not specified, body is used, working only withabsolute
set totrue
- new properties
BREAKING CHANGES
- minimal supported version of
@angular
is16.0.3
- minimal supported version of
@anglr/common
is17.0.0
- minimal supported version of
@jscrpt/common
is4.0.0
- minimal supported version of
@rxjs
is7.5.7
- minimal supported version of
date-fns
is2.30.0
- minimal supported version of
tslib
is2.6.1
- dropped support of
NodeJs
lower than16.14
v6.1.0
Bug Fixes
- fixed
WithTodaySADirective
- now correctly sets value of date time to start of a current day
Features
- new
WithNowSADirective
directive, that sets current date and time as day and time for empty date time on focus - new
DateTimeInputHandlerSADirective
directive, that adds handler for date time input, which allows navigation using keyboard and checking restriction of value - new
DatePickerInputSADirective
directive, that combines date picker with date input - new
DateTimePickerInputSADirective
directive, that combines date time picker with date time input - new
parseRawInput
function, that parses raw value into internal value and value - new
getInternalValue
function, gets internal value and fix lowest time difference - updated
DateTimeSADirective
directive- new properties
customFormatChanges
occurs when there are changes in custom format value
- new properties
v6.0.0
Features
- new
DateObject
type, that represents date object, either as date api or plain - new
EventParser
service, that is used for parsing events into events to requested period- methods
getEventsPerDay
gets events parsed per day
- methods
- new
MonthCalendarComponent
component, that is used for displaying month calendar- implements
OnInit
OnChanges
- inputs
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 displayed
- content children
- child
CalendarDayTemplateDirective
- child
- implements
- new
CalendarDayTemplateContext
interface, that is context passed to template of calendar day- properties
$implicit
data that are used for displaying calendar day
- properties
- new
CalendarDayTemplateDirective
directive, that is used for obtaining custom calendar day template- properties
template
template obtained by this structural directive
- properties
- new
MonthCalendarModule
module, that is used for calendar displaying month- exports
MonthCalendarComponent
CalendarDayTemplateDirective
- exports
- new
SimpleDatePickerInputSADirective
directive, that combines date picker with simple date input - new
SimpleDateTimePickerInputSADirective
directive, that combines date time picker with simple date time input - new
SimpleDateTimeInputHandlerSADirective
directive, that adds simple handler for date time input, which allows simple navigation using keyboard - new
CalendarDayAspectRatio
enum, that represents available aspect ratios for displaying calendar daysOneToOne
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:9
- new
MonthCalendarDayFormat
enum, that represents available day formats for calendar dayNone
no week day name displayedShort
short version of week day nameFull
full version of week day name
- new
CalendarDayData
interface, that represents data for day for calendar- properties
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 day
- properties
- new
CalendarEventDayMetadata
interface, that represents event metadata for day- extends
EventData
WithDateApiFromTo
- properties
allDay
indication whether is event all day eventonGoingFrom
indication that event is ongoing from previous dateonGoingTo
indication that event is ongoing to next date
- extends
- new
EventData
interface, that represents data for event that are passed to calendar- properties
data
data for eventdateFrom
date when event startsdateTo
date when event ends
- properties
- new
WithDateApiFromTo
interface, that represents object that holds date api object for dateFrom and dateTo- properties
dateApiFrom
date api for date when event startsdateApiTo
date api for date when event ends
- properties
- updated
DateApiObject
interface- new
isSame
method which, compares whether is date same as provided date - new
formatISO
method which, formats date value as ISO string representation - all following methods now accepts
DateObject<TDate>
instead of justTDate
as argumentisBefore
isAfter
diffDays
isSameWeek
isSameDecade
isSameYear
isSameMonth
isSameDay
- new
- updated
DateTimeSADirective
directive- now is standalone directive
- updated
DateTimeControlValueAccessorSADirective
directive- now is standalone directive
- updated
DateTimeInputSADirective
directive- now is standalone directive
- updated
DateTimeMaxValidatorSADirective
directive- now is standalone directive
- updated
DateTimeMinValidatorSADirective
directive- now is standalone directive
- updated
DateTimeValidatorSADirective
directive- now is standalone directive
- updated
DateTimePickerSADirective
directive- now is standalone directive
- subpackage
@anglr/datetime/moment
- updated
MomentDateApi
- now implements also new
isSame
andformatISO
methods, and supports newDateObject<TDate>
argument
- now implements also new
- updated
- subpackage
@anglr/datetime/date-fns
- updated
DateFnsDateApi
- now implements also new
isSame
andformatISO
methods, and supports newDateObject<TDate>
argument
- now implements also new
- updated
BREAKING CHANGES
- updated minimal version requirements for
Node.js
(14.20.0
or16.13.0
or18.10.0
) - minimal supported version of
@angular
is now15.0.4
- minimal supported version of
@jscrpt/common
is now3.3.0
- minimal supported version of
@anglr/common
is now15.0.1
- minimal supported version of
tslib
is now2.4.1
- removed old stylings and themes
- most of generic default
any
replaced byunknown
- updated
DateApiObjectCtor
interface- switched order of generic arguments
- renamed
DateTimeDirective
toDateTimeSADirective
directive - renamed
DateTimeControlValueAccessorDirective
toDateTimeControlValueAccessorSADirective
directive - renamed
DateTimeInputDirective
toDateTimeInputSADirective
directive - renamed
DateTimeMaxValidatorDirective
toDateTimeMaxValidatorSADirective
directive - renamed
DateTimeMinValidatorDirective
toDateTimeMinValidatorSADirective
directive - renamed
DateTimeValidatorDirective
toDateTimeValidatorSADirective
directive - renamed
DateTimePickerDirective
toDateTimePickerSADirective
directive - renamed
LoopScrollDataDirective
toLoopScrollDataSADirective
directive - renamed
LoopScrollDirective
toLoopScrollSADirective
directive - removed
PickerBaseComponent
legacy component - removed
PickerImplBaseComponent
legacy component - removed
DateTimeDayPickerComponent
legacy component - removed
DayPickerCssClasses
legacy interface - removed
DateTimeMonthPickerComponent
legacy component - removed
MonthPickerCssClasses
legacy interface - removed
scaleUpDownTrigger
legacy animation - removed
DateTimePickerLegacyComponent
legacy component - removed
DateTimeRollerTimePickerComponent
legacy component - removed
RollerTimePickerCssClasses
legacy interface - removed
YearPickerCssClasses
legacy component - removed
CommonPickerCssClasses
legacy interface - removed
DateTimePickerCssClasses
legacy interface - removed
DateTimePickerLegacyOptions
legacy interface - removed
DateTimeLegacyPicker
legacy interface - removed
DATE_TIME_PICKER_CONFIGURATION
legacy token - removed
DateTimeLegacyPickerModule
legacy module - removed
enterLeaveAnimateChildTrigger
legacy animation - removed
DateTimeSelectorComponent
legacy component - removed
DatetimeMaxValidatorDirective
legacy directive - removed
DatetimeMinValidatorDirective
legacy directive - removed
DateTimePickerRendererDirective
legacy directive - removed
DatetimeValidatorDirective
legacy directive - removed
DateTimeSelectorControlValueAccessor
legacy directive - removed
DateTimeSelectorOptions
legacy interface - removed
DateTimeSelector
legacy interface - removed
DATE_TIME_SELECTOR_CONFIGURATION
legacy token - removed
DateTimeBasicSelectorModule
legacy module - removed
DateTimeSelectorModule
legacy module - removed
maxDatetime
legacy validator function - removed
minDatetime
legacy validator function - removed
datetime
legacy validator function - removed
Validators
legacy validators class - removed
DateTimeValueObject
legacy interface
v5.0.0
Features
- new
DateTimeInputValue
interface, which defines date time input value API- properties
value
current value of date time, could be string, unix timestamp, Date, TDate object, or ranged DateTimeValuevalueChange
occurs when value changes
- properties
- new
DateTimeInput
interface, which defines date time input and communication API for it- extends
DateTimeInputValue
- properties
rawValue
value of date time, raw string value which is visible to userdisabled
indication whether is date time disabledfocus
occurs when input gains focusblur
occurs when input loses focuselement
html element that represents input itself
- extends
- new
DateTimeModule
module for basic date time directives, components, pipes- exports
DateTimeDirective,
DateTimeControlValueAccessorDirective
DateTimeInputDirective
DateTimeMaxValidatorDirective
DateTimeMinValidatorDirective
DateTimeValidatorDirective
- exports
- new
DATE_TIME_INPUT
injection token, that is used for injecting type that represents date time input - new
DateTimeBase
class, that is base class for date time directives, contains basic shared data- implements
DateTimeInputValue
OnDestroy
- implements
- new
DateTimeInputDirective
directive, that is used for setting up date time input- extends
DateTimeBase
- implements
DateTimeInput
OnDestroy
- provides
DATE_TIME_INPUT
providing self
- extends
- new
DateTimeControlValueAccessorDirective
directive, that is control value accessor that is used for getting and setting value for date time- implements
ControlValueAccessor
OnDestroy
- provides
NG_VALUE_ACCESSOR
providing self
- implements
- new
DateTimeValidatorDirective
directive, that applies validator for date time- extends
DateTimeBase
- implements
Validator
OnInit
- provides
NG_VALIDATORS
providing self
- extends
- new
DateTimeMaxValidatorDirective
directive, that applies validator for date time max value- extends
DateTimeBase
- implements
Validator
OnInit
- provides
NG_VALIDATORS
providing self
- extends
- new
DateTimeMinValidatorDirective
directive, that applies validator for date time min value- extends
DateTimeBase
- implements
Validator
OnInit
- provides
NG_VALIDATORS
providing self
- extends
- new
DateTimeValueFormat
enum, that represents available formats for date time valueDateInstance
instance of dateUnixTimestamp
numeric unix timestamp in milisecondsFormattedString
formatted date as string valueRangeOfDateInstances
range of date instances from, to
- new
DateTimeObjectValue
type that represents parsed date value or values in case of range - new
DateTimeInputOutputValue
type that represents input output types that can be processed by date time - new
parseDateTime
function, that parses date time input output value - new
formatDateTime
function, that formats value into specified format of date time - new
isDateTimeValue
function, that tests whether value isDateTimeValue
- new
getSingleDateTimeValue
function, that gets single date time value, use in places where ranged date time can not be used - new
datetimeValidator
function, that is date time validator factory function, creates validator for checking validity of datetime - new
datetimeMaxValidator
function, that is date time validator factory function, creates validator for checking validity of datetime max value - new
datetimeMinValidator
function, that is date time validator factory function, creates validator for checking validity of datetime min value - new
DateTimeValidationArgs
interface, that represents validations arguments for date time validators for model based forms- properties
valueFormat
format of validated valuestringFormat
format of string valuemaxValue
max allowed valueminValue
min allowed value
- properties
- new
dateTimeModelValidatorFactory
function, that is factory function that creates validator function factory - new
DateTime
decorator, that sets date time validator to property on which is used - new
DateTimePickerModule
module, that is module for components that are used as date time picker- exports
DateTimePickerComponent
DateTimePickerDirective
- exports
- new
DateTimePickerDirective
directive, that is directive that is used for displaying and attaching date time picker- extends
DateTimeBase
- implements
OnInit
OnDestroy
- inputs
withPickerOptions
gets or sets options for date time picker directive
- methods
showPicker
hides date time pickerhidePicker
shows date time picker
- extends
- new
DateTimePickerComponent
directive, which is component used for displaying date time picker- extends
DateTimeDirective
- implements
DateTimeInputValue
OnChanges
OnDestroy
OnInit
- inputs
value
docs fromDateTimeInputValue
options
options for date time picker
- outputs
valueChange
docs fromDateTimeInputValue
- extends
- new
DateTimePicker
interface, which describes date time picker API for each date time period- extends
Invalidatable
- properties
value
value of date time pickerdisplay
date that describes which date should be displayedmaxDate
max allowed dateminDate
min allowed date to be selectedcanScaleUp
indication whether picker can display scale date time period upcanScaleDown
indication whether picker can display scale date time period downranged
indication whether is value range of two values or single valuevalueChange
occurs when date time picker value changesscaleUp
occurs when period should be scaled upscaleDown
occurs when period should be scaled down
- extends
- new
DateTimePickerDirectiveOptions
directive, which is defintion of date time picker directive options- properties
closeOnValueSelect
indication whether close picker on value selectioncloseOnBlur
indication whether close picker when date time input loses focusshowOnFocus
indication whether display picker when date time input gets focusalwaysVisible
indication whether is picker always visible, mostly used for debuggingdisabled
indication whether picker is disabled, if true, you cant display pickerabsolute
indication whether use absolute global positioning of pickerpositionOptions
position options that are used to position pickerpickerCssClass
custom css class that is being added to picker component
- properties
- new
DATE_TIME_PICKER_DIRECTIVE_OPTIONS
injection token for global options for date time picker directive - new
DATE_TIME_PICKER_OPTIONS
injection token for global options for date time picker component - new
DateTimePeriodPickerBase
class, which is base abstract class for each date time period picker- implements
DateTimePicker
- implements
- new
DateTimePickerOptions
interface, that is defintion of date time picker component options- properties
periodsDefinition
definition of types for each period type for pickerdefaultPeriod
name of default period for picker that is displayed after opening
- properties
- new
DateTimeDirective
directive, that holds shared data for date time, like formats, restrictions- implements
OnDestroy
- properties
maxDateTimeChanges
occurs when there are changes in max date time valueminDateTimeChanges
occurs when there are changes in min date time value
- inputs
valueFormat
gets or sets date time value format which is being worked with in this date timeformat
gets or sets format of string representation of datecustomFormat
custom format string representation of datemaxDateTime
gets or sets max allowed date for date timeminDateTime
gets or sets min allowed date for date time
- implements
- new
DayPickerSAComponent
component, which is used for displaying day picker- extends
DateTimePeriodPickerBase
- implements
DateTimePicker
- extends
- new
MonthPickerSAComponent
component, which is used for displaying month picker- extends
DateTimePeriodPickerBase
- implements
DateTimePicker
- extends
- new
YearPickerSAComponent
component, which is used for displaying year picker- extends
DateTimePeriodPickerBase
- implements
DateTimePicker
- extends
- new
RollerTimePickerSAComponent
component, which is used for rendering roller time picker- extends
DateTimePeriodPickerBase
- implements
DateTimePicker
- extends
- new
WithTimeSADirective
directive, that sets up usage of date time picker to use time format and time picker - new
WithTodaySADirective
directive, that sets today as day for empty date time on focus - updated
DateApiObject
interface- new
unixTimestamp
method, that gets value of date time as unix timestamp
- new
- updated
DateFormatPipe
- improved typings for
transform
- improved typings for
- subpackage
@anglr/datetime/moment
- updated
MomentDateApi
- now implements also new
unixTimestamp
- now implements also new
- updated
- subpackage
@anglr/datetime/date-fns
- upd...
v4.0.0
Bug Fixes
- updated
DateValueProvider
service, now correctly returns start of day for format with day
Features
- new
DateApiObjectCtor
interface that, is definition of type, that is used for creating instance of DateApiObject - new
DATE_API_OBJECT_TYPE
injection token used for injecting type that creates instance of DateApiObject - updated
DateApi
interface- new generic parameter
TDateApiObject
which allows to get specificDateApiObject
implementation
- new generic parameter
- subpackage
@anglr/datetime/moment
- updated
MomentDateApi
- now creates
DateApiObject
usingDATE_API_OBJECT_TYPE
- now creates
- new
momentDateApiObjectType
type that represents creation of DateApiObject for moment - new
MOMENT_DATE_API_OBJECT_TYPE
injection token used for injecting type that creates instance of DateApiObject for moment MomentDateApiObject
made part of public API
- updated
- subpackage
@anglr/datetime/date-fns
- updated
DateFnsDateApi
- now creates
DateApiObject
usingDATE_API_OBJECT_TYPE
- now creates
- new
dateFnsDateApiObjectType
type that represents creation of DateApiObject for date-fns - new
DATE_FNS_DATE_API_OBJECT_TYPE
injection token used for injecting type that creates instance of DateApiObject for date-fns DateFnsDateApiObject
made part of public API
- updated
BREAKING CHANGES
- updated
DateConvertPipe
now returnsDateApiObject<TDate>
instead ofTDate
- updated
DateFnsDateApi
constructor has new parameterDATE_API_OBJECT_TYPE
- renamed
DATEFNS_FORMAT_PROVIDER
toDATE_FNS_FORMAT_PROVIDER