@energycap/components 0.39.36-ECAP-26840-date-input.20241118-1204 → 0.39.36-ECAP-26840-date-input.20241119-1615
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/controls/calendar/calendar-item.component.mjs +10 -12
- package/esm2020/lib/controls/calendar/calendar.component.mjs +5 -7
- package/esm2020/lib/controls/date-input/date-input.component.mjs +17 -17
- package/fesm2015/energycap-components.mjs +31 -35
- package/fesm2015/energycap-components.mjs.map +1 -1
- package/fesm2020/energycap-components.mjs +29 -33
- package/fesm2020/energycap-components.mjs.map +1 -1
- package/lib/controls/calendar/calendar-item.component.d.ts +2 -2
- package/lib/controls/calendar/calendar.component.d.ts +2 -2
- package/lib/controls/date-input/date-input.component.d.ts +6 -5
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { OnChanges
|
1
|
+
import { OnChanges } from '@angular/core';
|
2
2
|
import { CalendarItem, CalendarSelection, CalendarView } from './calendar.types';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export declare class CalendarItemComponent implements OnChanges {
|
@@ -10,7 +10,7 @@ export declare class CalendarItemComponent implements OnChanges {
|
|
10
10
|
selected: boolean;
|
11
11
|
outsideActiveMonth: boolean;
|
12
12
|
constructor();
|
13
|
-
ngOnChanges(
|
13
|
+
ngOnChanges(): void;
|
14
14
|
private isSelected;
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarItemComponent, never>;
|
16
16
|
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarItemComponent, "button[ec-calendar-item]", never, { "item": "item"; "activeDate": "activeDate"; "selection": "selection"; "view": "view"; }, {}, never, never, false, never>;
|
@@ -7,8 +7,8 @@ export declare class CalendarComponent implements OnChanges, OnInit {
|
|
7
7
|
selectionChange: EventEmitter<CalendarSelection | null>;
|
8
8
|
minDate: Date;
|
9
9
|
maxDate: Date;
|
10
|
-
focusOutStart: EventEmitter<
|
11
|
-
focusOutEnd: EventEmitter<
|
10
|
+
focusOutStart: EventEmitter<KeyboardEvent>;
|
11
|
+
focusOutEnd: EventEmitter<KeyboardEvent>;
|
12
12
|
/** Month of the active date displayed in the header buttons. */
|
13
13
|
month?: string;
|
14
14
|
/** Year of the active date displayed in the header buttons. */
|
@@ -42,13 +42,12 @@ export declare class DateInputComponent extends FormControlBase implements OnIni
|
|
42
42
|
/** Reference to the overlay directive (see template). Used to access the overlay's host element to control focus. */
|
43
43
|
overlay?: CdkConnectedOverlay;
|
44
44
|
constructor(validationMessageService: ValidationMessageService, formGroupHelper: FormGroupHelper, userPreferenceService: UserPreferenceService, dateDisplayPipe: DateDisplayPipe, el: ElementRef, overlayService: Overlay);
|
45
|
-
|
46
|
-
|
47
|
-
|
45
|
+
/** Focuses the input whenever the calendar is shift-tabbed out of. */
|
46
|
+
onCalendarFocusOutStart(event: KeyboardEvent): void;
|
47
|
+
/** Closes the calendar and focuses the input whenever the calendar is tabbed out of. */
|
48
|
+
onCalendarFocusOutEnd(event: KeyboardEvent): void;
|
48
49
|
/** Close the calendar if the user clicks outside of the calendar and date input. */
|
49
50
|
onOverlayOutsideClick(event: MouseEvent): void;
|
50
|
-
/** Focuses the date input. */
|
51
|
-
focusInput(): void;
|
52
51
|
/** If the user tabs out of the form control's action button and the calendar is open, focus the first item in the calendar overlay */
|
53
52
|
onActionKeydown(event: KeyboardEvent): void;
|
54
53
|
onTextboxKeydown(event: KeyboardEvent): void;
|
@@ -74,6 +73,8 @@ export declare class DateInputComponent extends FormControlBase implements OnIni
|
|
74
73
|
* triggers the validation message service to show the error in the label.
|
75
74
|
*/
|
76
75
|
private dateValidator;
|
76
|
+
/** Focuses the date input. */
|
77
|
+
private focusInput;
|
77
78
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateInputComponent, never>;
|
78
79
|
static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent, "ec-date-input", never, { "id": "id"; "formModel": "formModel"; "minDate": "minDate"; "maxDate": "maxDate"; }, {}, never, never, false, never>;
|
79
80
|
}
|