Skip to content

Commit

Permalink
INT: added previously destroyed date time input handler
Browse files Browse the repository at this point in the history
  • Loading branch information
kukjevov committed Jan 4, 2023
1 parent 6f4add7 commit e9593d9
Show file tree
Hide file tree
Showing 15 changed files with 642 additions and 1,066 deletions.
19 changes: 19 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Changelog

## Version 6.1.0 (2023-01-04)

### 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

## Version 6.0.0 (2022-12-23)

### Features
Expand Down
33 changes: 33 additions & 0 deletions src/directives/datePickerInput/datePickerInput.directive.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import {Directive} from '@angular/core';

import {DateTimeInputSADirective, DateTimePickerSADirective} from '../../modules';
import {DateTimeInputHandlerSADirective} from '../dateTimeInputHandler/dateTimeInputHandler.directive';

/**
* Directive that combines date picker with date input
*/
@Directive(
{
selector: 'input[dateTime][datePickerInput]',
standalone: true,
hostDirectives:
[
{
directive: DateTimePickerSADirective,
inputs:
[
'withPickerOptions',
'pickerOptions',
]
},
{
directive: DateTimeInputSADirective,
},
{
directive: DateTimeInputHandlerSADirective,
},
],
})
export class DatePickerInputSADirective
{
}
Loading

0 comments on commit e9593d9

Please sign in to comment.