Releases: ressurectit/ng-datetime
Releases · ressurectit/ng-datetime
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
v3.0.0
Bug Fixes
- fixed date-fns bug with displaying dateTime format
- fixed placeholder value of
undefined
- fixed problem with occasionally error cant access property length
- fixed not working setting disabled or enabled from code
- fixed problem with writing date manually into input
Features
DateApiObject
interface- new
startOfHour
method, that updates value to start date and time of current hour - new
endOfHour
method, that updates value to end date and time of current hour - new
addHours
method, that add hours, if count not specified adds 1 hour - new
subtractHours
method, that subtract hours, if count not specified subtract 1 hour - new
startOfMinute
method, that updates value to start date and time of current minute - new
endOfMinute
method, that updates value to end date and time of current minute - new
addMinutes
method, that add minutes, if count not specified adds 1 minute - new
subtractMinutes
method, that subtract minutes, if count not specified subtract 1 minute - new
hour
method, that gets or sets hours zero based - new
minute
method, that gets or sets minutes zero based
- new
DateTimeRelativeParser
now supports hours and minutes as relative values- updated
DateApi
interface- new
isDate
method, that tests whether is value TDate
- new
FormatProvider
interface- new
year
property, that is format token for displaying full year - new
month
property, that is format token for displaying month double digit number - new
week
property, that is format token for displaying week double digit number - new
day
property, that is format token for displaying day double digit number - new
hour
property, that is format token for displaying hour (24h format) double digit number - new
minute
property, that is format token for displaying minute double digit number - new
second
property, that is format token for displaying second double digit number - new
dayName
property, that is format token for displaying standalone day full name - new
dayNameShort
property, that is format token for displaying standalone day short name - new
monthName
property, that is format token for displaying standalone month full name - new
monthNameShort
property, that is format token for displaying standalone month short name
- new
DateTimeSelectorOptions
interface- now allows absolute positioning of picker, which is default
- new
pickerAbsolute
property, that is indication whether use absolute positioning of picker - new
positionOptions
property, that is position options that are used in case of absolute picker - new
pickerAbsoluteContainer
property, that is css selector for absolute picker container
- new
PickerImplBaseComponent
abstract component, that is base class used as base for picker as base implementation of DateTimePicker interface - updated
PickerBaseComponent
now extendsPickerImplBaseComponent
- new
DateTimePickerRendererDirective
directive, that is used for rendering datetime picker in selector- inputs
options
current options used by selectordateTimePicker
current selected valueminValue
gets or sets minimal possible value for picker, that can be pickedmaxValue
gets or sets maximal possible value for picker, that can be pickedselectorElement
selector element which is used during absolute positioning of picker
- outputs
valueChange
occurs when value changes
- inputs
DateTimeDayPickerComponent
component now supports scaling down to timeCommonPickerCssClasses
interface- new
clickable
property, that is name of css class that represents clickable items in picker
- new
- new
DateTimeRollerTimePickerComponent
component used for rendering roller time picker - new
RollerTimePickerCssClasses
interface, that holds specific css classes for roller time picker - new
LoopScrollDirective
directive that renders loop scroll for array of elements- selector
"loopScroll"
- inputs
loopScroll
value that is being set in loop scrollopen
indication whether is currently selection scroll open
- outputs
loopScrollChange
occurs when current value of loop scroll changes
- ContentChildren of
LoopScrollDataDirective
, that is array of items that are loop scrolled
- selector
- new
LoopScrollData
interface, that represents data for LoopScrollDirective - new
LoopScrollDataDirective
directive, that is loop scroll data that are used inside LoopScrollDirective- selector
"loopScrollData"
- inputs
loopScrollData
data for loopclone
indication that this node is clone
- selector
- updated
InputDateTimeSelectorComponent
now supports hours and minutes - updated
DateValueProvider
now supports hours and minutes - subpackage
@anglr/datetime/moment
- updated
MomentDateApiObject
to correspond withDateApiObject
interface - updated
MOMENT_FORMAT_PROVIDER
to correspond withFormatProvider
interface
- updated
- subpackage
@anglr/datetime/date-fns
- updated
DateFnsDateApi
to correspond withDateApi
interface - updated
DateFnsDateApiObject
to correspond withDateApiObject
interface - updated
DATEFNS_FORMAT_PROVIDER
to correspond withFormatProvider
interface
- updated
BREAKING CHANGES
- minimal supported version of
@anglr/common
is11.2.0
- removed
AsRequiredTypePipe
replaced with one from@anglr/common
- strict null checks
- both
DateTimePickerOptions
andDateTimeSelectorOptions
have now all properties required, and options are now passed asPartial
- updated
CommonPickerCssClasses
have now all properties required, and setting is now passed asPartial
v2.0.1
v2.0.0
BREAKING CHANGES
- minimal supported version of Angular is
13.1.0
- minimal supported version of
@jscrpt/common
is2.2.0
- minimal supported version of
@anglr/common
is10.0.0
- compiled as Angular IVY only with new APF
- removed support of es5 target and using latest package.json features
- removed dependency
@anglr/types
, all mising types used directly here - dropped support of
Node.js <= 12.20
v1.0.0
Features
- constants identifying datetime parts/components (
MINUTE
,HOUR
,DAY
, ...) DateTimeValue
representing datetime value as interval from toDATE_API
token used for injectingDateApi
abstraction layerFORMAT_PROVIDER
token used for injectingFormatProvider
that contains some of default formats (day, time, datetime)FormatProvider
that contains some of default formats (day, time, datetime)DateApi
andDateApiObject
used as abstraction layer for working with datetime'DatePositionParserService
used for obtaining implementation ofDatePositionParser
DatePositionParser
andDefaultDatePositionParser
used for parsing string datetime into parts and allowing selection of separate partsDatePositionParserResult
as result of datetime parsingDateValueProvider
which serves as provider ofDateTimeValue
for specified date and formatDateFormatPipe
pipe that is used for formatting dateDateConvertPipe
pipe that is used for converting dateDatePipesModule
module used for exporting date pipes- customizable
DateTimeSelector
, allowing to select, insert, edit datetime valueDATE_TIME_SELECTOR_CONFIGURATION
token for injectingDateTimeSelectorOptions
DateTimeSelectorOptions
defintion of datetime selector component optionsDateTimeSelector
describes datetime selector component used for displaying and selecting valueDateTimeSelectorComponent
as main component allowing for displaying selector implementation and pickerInputDateTimeSelectorComponent
component used for selecting datetime in input field, allowing splitting of value into period/partsSimpleInputDateTimeSelectorComponent
component used for selecting datetime in input field, simple inputDateTimeSelectorControlValueAccessor
directive for enabling Angular Forms binding to selector, also allowing gaining value as string, or simple value or range valueDateTimeSelectorModule
module containing selectorDateTimeBasicSelectorModule
module containing simple input selector
- customizable
DateTimePicker
, allowing to pick datetime valueDateTimePickerCssClasses
css classes applied to datetime pickerDateTimePickerOptions
defintion of datetime picker component optionsDATE_TIME_PICKER_CONFIGURATION
token used for injectingDateTimePickerOptions
DateTimePicker
describes datetime picker component used for displaying and selecting valuePeriodData
data that represents data for any picker typeDayData
data that represents day in date pickerMonthData
data that represents month in date pickerYearData
data that represents year in date pickerDateTimePickerComponent
as main component allowing displaying pickerDateTimeDayPickerComponent
component used for picking day from month viewDateTimeMonthPickerComponent
component used for picking month from year viewDateTimeYearPickerComponent
component used for picking year from decade viewDateTimePickerModule
module containing pickers
- added new subpackage
@anglr/datetime/moment
- subpackage
@anglr/datetime/moment
MOMENT_FORMAT_PROVIDER
token for injectingFormatProvider
for MomentJsMomentDateApi
MomentJs implementation ofDateApi
returning MomentJs implementation ofDateApiObject
- added new subpackage
@anglr/datetime/date-fns
- subpackage
@anglr/datetime/date-fns
DATEFNS_FORMAT_PROVIDER
token for injectingFormatProvider
for date-fnsDateFnsDateApi
date-fns implementation ofDateApi
returning date-fns implementation ofDateApiObject
DateFnsLocale
date FNS locale service, used for obtaining localeDATE_FNS_LOCALE
token for injectingDateFnsLocale