diff --git a/projects/swimlane/ngx-ui/CHANGELOG.md b/projects/swimlane/ngx-ui/CHANGELOG.md index 90d7b6af3..9e5069fe3 100644 --- a/projects/swimlane/ngx-ui/CHANGELOG.md +++ b/projects/swimlane/ngx-ui/CHANGELOG.md @@ -2,6 +2,8 @@ ## HEAD (unreleased) +- Enhancement(`ngx-calendar`): Supports selecting a range of dates with hours and minutes + ## 47.0.0 (2023-02-12) - Breaking: Angular 17 support diff --git a/projects/swimlane/ngx-ui/src/lib/components/calendar/calendar-select.enum.ts b/projects/swimlane/ngx-ui/src/lib/components/calendar/calendar-select.enum.ts new file mode 100644 index 000000000..576de206d --- /dev/null +++ b/projects/swimlane/ngx-ui/src/lib/components/calendar/calendar-select.enum.ts @@ -0,0 +1,4 @@ +export enum CalendarSelect { + Single = 'single', + Range = 'range' +} diff --git a/projects/swimlane/ngx-ui/src/lib/components/calendar/calendar.component.html b/projects/swimlane/ngx-ui/src/lib/components/calendar/calendar.component.html index 96b68dd08..8afea0c14 100644 --- a/projects/swimlane/ngx-ui/src/lib/components/calendar/calendar.component.html +++ b/projects/swimlane/ngx-ui/src/lib/components/calendar/calendar.component.html @@ -2,14 +2,28 @@
Current Date: - {{curDate1}} + +
+ Current Date: + {{ curDate1 }}
Min Date: - {{minDate}} and Max Date: - {{maxDate}} +
+ Min Date: {{ minDate }} and Max Date: + {{ maxDate }}
Current Date: - {{curDate4}} +
+ Current Date: + {{ curDate4 }}
Current Date: - {{curDate5}} +
+ Current Date: + {{ curDate5 }}
Current Date: - {{curDate6}} +
+ Current Date: + {{ curDate6 }}
@Input()
defaultView: CalendarView
minView
minView: CalendarView
dateLabelFormat: string
range: {startDate: Date | undefined; endDate: Date | undefined}
@Output()
onRangeSelect: EventEmitter< startDate: Date | undefined; endDate: Date | undefined >