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 @@
- -
@@ -17,7 +31,7 @@ {{ d }}
- +
+ + + + +
+ +
@@ -68,7 +106,7 @@ (keydown)="onMonthDown($event)" > {{ month }} - + @@ -85,7 +123,7 @@ > - +