@energycap/components 0.40.1-ECAP-26841-date-input-features.20241125-1254 → 0.40.1-ECAP-27225-Carbon-Hub-Insights.20241125-1552
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/components.module.mjs +5 -15
- package/esm2020/lib/controls/calendar/calendar-item.component.mjs +2 -2
- package/esm2020/lib/controls/calendar/calendar.component.mjs +17 -33
- package/esm2020/lib/controls/calendar/calendar.types.mjs +1 -1
- package/esm2020/lib/controls/date-input/date-input.component.mjs +3 -6
- package/esm2020/lib/controls/tabs/tabs.component.mjs +3 -3
- package/esm2020/public-api.mjs +1 -3
- package/fesm2015/energycap-components.mjs +92 -227
- package/fesm2015/energycap-components.mjs.map +1 -1
- package/fesm2020/energycap-components.mjs +92 -224
- package/fesm2020/energycap-components.mjs.map +1 -1
- package/lib/components.module.d.ts +8 -10
- package/lib/controls/calendar/calendar.component.d.ts +5 -10
- package/lib/controls/calendar/calendar.types.d.ts +0 -1
- package/lib/controls/date-input/date-input.component.d.ts +2 -3
- package/package.json +1 -1
- package/public-api.d.ts +0 -2
- package/src/assets/locales/en_US.json +1 -8
- package/esm2020/lib/shared/directives/keyboard-nav-container/keyboard-nav-container.directive.mjs +0 -57
- package/esm2020/lib/shared/directives/keyboard-nav-target/keyboard-nav-target.directive.mjs +0 -58
- package/lib/shared/directives/keyboard-nav-container/keyboard-nav-container.directive.d.ts +0 -16
- package/lib/shared/directives/keyboard-nav-target/keyboard-nav-target.directive.d.ts +0 -14
@@ -68,15 +68,13 @@ import * as i65 from "./display/tooltip-directive/tooltip.directive";
|
|
68
68
|
import * as i66 from "./controls/calendar/calendar.component";
|
69
69
|
import * as i67 from "./controls/calendar/calendar-item.component";
|
70
70
|
import * as i68 from "./controls/date-input/date-input.component";
|
71
|
-
import * as i69 from "
|
72
|
-
import * as i70 from "
|
73
|
-
import * as i71 from "@angular/
|
74
|
-
import * as i72 from "@
|
75
|
-
import * as i73 from "@angular/
|
76
|
-
import * as i74 from "@
|
77
|
-
import * as i75 from "@angular/cdk/
|
78
|
-
import * as i76 from "@angular/cdk/overlay";
|
79
|
-
import * as i77 from "@angular/cdk/scrolling";
|
71
|
+
import * as i69 from "@angular/common";
|
72
|
+
import * as i70 from "@angular/forms";
|
73
|
+
import * as i71 from "@angular/router";
|
74
|
+
import * as i72 from "@ngx-translate/core";
|
75
|
+
import * as i73 from "@angular/cdk/a11y";
|
76
|
+
import * as i74 from "@angular/cdk/overlay";
|
77
|
+
import * as i75 from "@angular/cdk/scrolling";
|
80
78
|
export type ComponentsModuleConfig = {
|
81
79
|
tracker: Provider;
|
82
80
|
};
|
@@ -88,6 +86,6 @@ export declare class ComponentsModule {
|
|
88
86
|
*/
|
89
87
|
static forRoot(config: ComponentsModuleConfig): ModuleWithProviders<ComponentsModule>;
|
90
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<ComponentsModule, never>;
|
91
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, [typeof i1.ButtonComponent, typeof i2.TabsComponent, typeof i3.TextboxComponent, typeof i4.NavItemActiveDirective, typeof i5.SpinnerComponent, typeof i6.ViewOverlayComponent, typeof i7.BannerComponent, typeof i8.ResizableTableDirective, typeof i2.TabsComponent, typeof i9.TableComponent, typeof i10.SearchableTableComponent, typeof i11.ComboboxComponent, typeof i12.MenuComponent, typeof i13.PopupContainerDirective, typeof i14.DropdownComponent, typeof i15.ConfirmComponent, typeof i16.DialogComponent, typeof i17.DateDisplayPipe, typeof i18.TimeDisplayPipe, typeof i19.MockDateDisplayPipe, typeof i20.RadioButtonComponent, typeof i21.CheckboxComponent, typeof i22.NumericboxComponent, typeof i23.AvatarComponent, typeof i24.AppBarComponent, typeof i25.SplashComponent, typeof i26.IfViewportWidthDirective, typeof i27.ClickAreaForDirective, typeof i28.CollapsibleToggleComponent, typeof i29.TableMasterRowComponent, typeof i30.TableMasterHeaderRowComponent, typeof i31.TableDetailRowComponent, typeof i32.TableLockedColumnComponent, typeof i33.TableSelectableRowComponent, typeof i34.PopoverComponent, typeof i35.TablePaginationComponent, typeof i36.RowCountPipe, typeof i37.CopyButtonDirective, typeof i35.TablePaginationComponent, typeof i38.TagsComponent, typeof i39.FormControlComponent, typeof i40.SelectComponent, typeof i41.ItemDisplayComponent, typeof i33.TableSelectableRowComponent, typeof i42.ResizableColumnComponent, typeof i43.DialogGroupComponent, typeof i44.FileUploadComponent, typeof i45.FormGroupComponent, typeof i46.JsonDisplayComponent, typeof i47.ToastComponent, typeof i48.ToasterComponent, typeof i49.PageViewComponent, typeof i50.PageTitleComponent, typeof i51.WizardProgressComponent, typeof i52.WizardButtonsComponent, typeof i53.HierarchyTreeComponent, typeof i54.TreeComponent, typeof i55.RelativeDatePipe, typeof i56.ResizableComponent, typeof i57.HighlightTextPipe, typeof i58.FormControlLabelComponent, typeof i59.ItemPickerComponent, typeof i60.HelpPopoverComponent, typeof i61.LinkButtonComponent, typeof i62.TooltipComponent, typeof i63.TourComponent, typeof i64.CopyTableButtonDirective, typeof i65.TooltipDirective, typeof i66.CalendarComponent, typeof i67.CalendarItemComponent, typeof i68.DateInputComponent
|
89
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ComponentsModule, [typeof i1.ButtonComponent, typeof i2.TabsComponent, typeof i3.TextboxComponent, typeof i4.NavItemActiveDirective, typeof i5.SpinnerComponent, typeof i6.ViewOverlayComponent, typeof i7.BannerComponent, typeof i8.ResizableTableDirective, typeof i2.TabsComponent, typeof i9.TableComponent, typeof i10.SearchableTableComponent, typeof i11.ComboboxComponent, typeof i12.MenuComponent, typeof i13.PopupContainerDirective, typeof i14.DropdownComponent, typeof i15.ConfirmComponent, typeof i16.DialogComponent, typeof i17.DateDisplayPipe, typeof i18.TimeDisplayPipe, typeof i19.MockDateDisplayPipe, typeof i20.RadioButtonComponent, typeof i21.CheckboxComponent, typeof i22.NumericboxComponent, typeof i23.AvatarComponent, typeof i24.AppBarComponent, typeof i25.SplashComponent, typeof i26.IfViewportWidthDirective, typeof i27.ClickAreaForDirective, typeof i28.CollapsibleToggleComponent, typeof i29.TableMasterRowComponent, typeof i30.TableMasterHeaderRowComponent, typeof i31.TableDetailRowComponent, typeof i32.TableLockedColumnComponent, typeof i33.TableSelectableRowComponent, typeof i34.PopoverComponent, typeof i35.TablePaginationComponent, typeof i36.RowCountPipe, typeof i37.CopyButtonDirective, typeof i35.TablePaginationComponent, typeof i38.TagsComponent, typeof i39.FormControlComponent, typeof i40.SelectComponent, typeof i41.ItemDisplayComponent, typeof i33.TableSelectableRowComponent, typeof i42.ResizableColumnComponent, typeof i43.DialogGroupComponent, typeof i44.FileUploadComponent, typeof i45.FormGroupComponent, typeof i46.JsonDisplayComponent, typeof i47.ToastComponent, typeof i48.ToasterComponent, typeof i49.PageViewComponent, typeof i50.PageTitleComponent, typeof i51.WizardProgressComponent, typeof i52.WizardButtonsComponent, typeof i53.HierarchyTreeComponent, typeof i54.TreeComponent, typeof i55.RelativeDatePipe, typeof i56.ResizableComponent, typeof i57.HighlightTextPipe, typeof i58.FormControlLabelComponent, typeof i59.ItemPickerComponent, typeof i60.HelpPopoverComponent, typeof i61.LinkButtonComponent, typeof i62.TooltipComponent, typeof i63.TourComponent, typeof i64.CopyTableButtonDirective, typeof i65.TooltipDirective, typeof i66.CalendarComponent, typeof i67.CalendarItemComponent, typeof i68.DateInputComponent], [typeof i69.CommonModule, typeof i70.FormsModule, typeof i70.ReactiveFormsModule, typeof i71.RouterModule, typeof i72.TranslateModule, typeof i73.A11yModule, typeof i74.OverlayModule, typeof i75.ScrollingModule], [typeof i1.ButtonComponent, typeof i2.TabsComponent, typeof i3.TextboxComponent, typeof i4.NavItemActiveDirective, typeof i5.SpinnerComponent, typeof i6.ViewOverlayComponent, typeof i7.BannerComponent, typeof i2.TabsComponent, typeof i9.TableComponent, typeof i10.SearchableTableComponent, typeof i11.ComboboxComponent, typeof i12.MenuComponent, typeof i13.PopupContainerDirective, typeof i14.DropdownComponent, typeof i15.ConfirmComponent, typeof i16.DialogComponent, typeof i17.DateDisplayPipe, typeof i18.TimeDisplayPipe, typeof i20.RadioButtonComponent, typeof i21.CheckboxComponent, typeof i22.NumericboxComponent, typeof i23.AvatarComponent, typeof i24.AppBarComponent, typeof i25.SplashComponent, typeof i26.IfViewportWidthDirective, typeof i27.ClickAreaForDirective, typeof i28.CollapsibleToggleComponent, typeof i29.TableMasterRowComponent, typeof i30.TableMasterHeaderRowComponent, typeof i32.TableLockedColumnComponent, typeof i33.TableSelectableRowComponent, typeof i34.PopoverComponent, typeof i37.CopyButtonDirective, typeof i35.TablePaginationComponent, typeof i38.TagsComponent, typeof i39.FormControlComponent, typeof i40.SelectComponent, typeof i41.ItemDisplayComponent, typeof i42.ResizableColumnComponent, typeof i43.DialogGroupComponent, typeof i44.FileUploadComponent, typeof i45.FormGroupComponent, typeof i46.JsonDisplayComponent, typeof i47.ToastComponent, typeof i48.ToasterComponent, typeof i49.PageViewComponent, typeof i50.PageTitleComponent, typeof i51.WizardProgressComponent, typeof i52.WizardButtonsComponent, typeof i53.HierarchyTreeComponent, typeof i54.TreeComponent, typeof i55.RelativeDatePipe, typeof i56.ResizableComponent, typeof i57.HighlightTextPipe, typeof i58.FormControlLabelComponent, typeof i59.ItemPickerComponent, typeof i60.HelpPopoverComponent, typeof i61.LinkButtonComponent, typeof i62.TooltipComponent, typeof i63.TourComponent, typeof i64.CopyTableButtonDirective, typeof i65.TooltipDirective, typeof i66.CalendarComponent, typeof i68.DateInputComponent]>;
|
92
90
|
static ɵinj: i0.ɵɵInjectorDeclaration<ComponentsModule>;
|
93
91
|
}
|
@@ -1,12 +1,8 @@
|
|
1
1
|
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
2
|
-
import {
|
3
|
-
import { MenuItem } from '../menu/menu.component';
|
4
|
-
import { CalendarItem, CalendarSelection, CalendarSelectionMode, CalendarView } from './calendar.types';
|
2
|
+
import { CalendarItem, CalendarSelection, CalendarView } from './calendar.types';
|
5
3
|
import * as i0 from "@angular/core";
|
6
4
|
export declare class CalendarComponent implements OnChanges, OnInit {
|
7
|
-
private translateService;
|
8
5
|
id: string;
|
9
|
-
selectionModes: CalendarSelectionMode[];
|
10
6
|
selection: CalendarSelection | null;
|
11
7
|
selectionChange: EventEmitter<CalendarSelection | null>;
|
12
8
|
minDate: Date;
|
@@ -34,9 +30,7 @@ export declare class CalendarComponent implements OnChanges, OnInit {
|
|
34
30
|
calendarItemTrackByDate: (index: number, item: CalendarItem) => string;
|
35
31
|
disablePreviousButton: boolean;
|
36
32
|
disableNextButton: boolean;
|
37
|
-
|
38
|
-
currentSelectionMode: CalendarSelectionMode;
|
39
|
-
constructor(translateService: TranslateService);
|
33
|
+
constructor();
|
40
34
|
ngOnChanges(changes: SimpleChanges): void;
|
41
35
|
ngOnInit(): void;
|
42
36
|
onItemSelected(item: CalendarItem): void;
|
@@ -46,7 +40,8 @@ export declare class CalendarComponent implements OnChanges, OnInit {
|
|
46
40
|
onMonthClick(): void;
|
47
41
|
/** Switches the calendar to year view. */
|
48
42
|
onYearClick(): void;
|
49
|
-
|
43
|
+
onFirstItemKeydown(event: KeyboardEvent): void;
|
44
|
+
onLastItemKeydown(event: KeyboardEvent): void;
|
50
45
|
private drawCalendar;
|
51
46
|
private getCalendarItems;
|
52
47
|
private getDayViewItems;
|
@@ -55,5 +50,5 @@ export declare class CalendarComponent implements OnChanges, OnInit {
|
|
55
50
|
/** Returns true if the date is within the current calendar view */
|
56
51
|
private isDateInView;
|
57
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarComponent, never>;
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent, "ec-calendar", never, { "id": "id"; "
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent, "ec-calendar", never, { "id": "id"; "selection": "selection"; "minDate": "minDate"; "maxDate": "maxDate"; }, { "selectionChange": "selectionChange"; "focusOutStart": "focusOutStart"; "focusOutEnd": "focusOutEnd"; }, never, never, false, never>;
|
59
54
|
}
|
@@ -3,6 +3,5 @@ export type CalendarItem = {
|
|
3
3
|
date: Date;
|
4
4
|
};
|
5
5
|
export type CalendarSelection = Date | [Date, Date];
|
6
|
-
export type CalendarSelectionMode = 'day' | 'last7days' | 'last28days' | 'month' | 'quarter' | 'year' | 'range';
|
7
6
|
export type CalendarView = 'day' | 'month' | 'year';
|
8
7
|
export declare function isCalendarSelectionSingleDate(selection?: CalendarSelection | null): selection is Date;
|
@@ -5,7 +5,7 @@ import { ValidationMessageService } from '../../core/validation-message.service'
|
|
5
5
|
import { DateDisplayPipe } from '../../shared/display/pipes/date-display.pipe';
|
6
6
|
import { FormGroupHelper } from '../../shared/form-group.helper';
|
7
7
|
import { UserPreferenceService } from '../../shared/user-preference.service';
|
8
|
-
import { CalendarSelection
|
8
|
+
import { CalendarSelection } from '../calendar/calendar.types';
|
9
9
|
import { FormControlBase } from '../form-control-base';
|
10
10
|
import * as i0 from "@angular/core";
|
11
11
|
export type DateInputFormControl = FormControl<Date | null>;
|
@@ -21,7 +21,6 @@ export declare class DateInputComponent extends FormControlBase implements OnIni
|
|
21
21
|
formModel: DateInputFormControl;
|
22
22
|
minDate: Date;
|
23
23
|
maxDate: Date;
|
24
|
-
selectionModes: CalendarSelectionMode[];
|
25
24
|
/** The internal textbox's form control. */
|
26
25
|
textboxControl: FormControl<string | null>;
|
27
26
|
/**
|
@@ -77,5 +76,5 @@ export declare class DateInputComponent extends FormControlBase implements OnIni
|
|
77
76
|
/** Focuses the date input. */
|
78
77
|
private focusInput;
|
79
78
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateInputComponent, never>;
|
80
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent, "ec-date-input", never, { "id": "id"; "formModel": "formModel"; "minDate": "minDate"; "maxDate": "maxDate";
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent, "ec-date-input", never, { "id": "id"; "formModel": "formModel"; "minDate": "minDate"; "maxDate": "maxDate"; }, {}, never, never, false, never>;
|
81
80
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
@@ -109,5 +109,3 @@ export * from './lib/shared/testing/copy-button-base-test-injector-factory.spec'
|
|
109
109
|
export * from './lib/controls/calendar/calendar.component';
|
110
110
|
export * from './lib/controls/calendar/calendar.types';
|
111
111
|
export * from './lib/controls/date-input/date-input.component';
|
112
|
-
export * from './lib/shared/directives/keyboard-nav-container/keyboard-nav-container.directive';
|
113
|
-
export * from './lib/shared/directives/keyboard-nav-target/keyboard-nav-target.directive';
|
@@ -47,12 +47,5 @@
|
|
47
47
|
"is invalid": "is invalid",
|
48
48
|
"AllItemPickerItemsSelected_SC": "All {{count}} {{itemName}} selected",
|
49
49
|
"SelectAllItemPickerItems_TC": "Select all {{count}} {{itemName}}",
|
50
|
-
"CountSelected_TC": "{{count}} selected"
|
51
|
-
"CalendarSelectionMode_day": "Day",
|
52
|
-
"CalendarSelectionMode_last7days": "Last 7 days",
|
53
|
-
"CalendarSelectionMode_last28days": "Last 28 days",
|
54
|
-
"CalendarSelectionMode_month": "Month",
|
55
|
-
"CalendarSelectionMode_quarter": "Quarter",
|
56
|
-
"CalendarSelectionMode_year": "Year",
|
57
|
-
"CalendarSelectionMode_range": "Range"
|
50
|
+
"CountSelected_TC": "{{count}} selected"
|
58
51
|
}
|
package/esm2020/lib/shared/directives/keyboard-nav-container/keyboard-nav-container.directive.mjs
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
import { ContentChildren, Directive, EventEmitter, Output } from '@angular/core';
|
2
|
-
import { race, Subject } from 'rxjs';
|
3
|
-
import { startWith, take, takeUntil } from 'rxjs/operators';
|
4
|
-
import { KeyboardNavTargetDirective } from '../keyboard-nav-target/keyboard-nav-target.directive';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export class KeyboardNavContainerDirective {
|
7
|
-
constructor() {
|
8
|
-
this.focusOutStart = new EventEmitter();
|
9
|
-
this.focusOutEnd = new EventEmitter();
|
10
|
-
this.destroyed = new Subject();
|
11
|
-
}
|
12
|
-
ngAfterContentInit() {
|
13
|
-
this.keyboardNavTargets?.changes.pipe(takeUntil(this.destroyed), startWith(this.keyboardNavTargets)).subscribe(() => {
|
14
|
-
const first = this.getFirstTarget();
|
15
|
-
first?.focusOutPrevious.pipe(takeUntil(race(this.destroyed, this.keyboardNavTargets.changes.pipe(take(1))))).subscribe(event => {
|
16
|
-
this.focusOutStart.emit(event);
|
17
|
-
});
|
18
|
-
const last = this.getLastTarget();
|
19
|
-
last?.focusOutNext.pipe(takeUntil(race(this.destroyed, this.keyboardNavTargets.changes.pipe(take(1))))).subscribe(event => {
|
20
|
-
this.focusOutEnd.emit(event);
|
21
|
-
});
|
22
|
-
});
|
23
|
-
}
|
24
|
-
ngOnDestroy() {
|
25
|
-
this.destroyed.next();
|
26
|
-
this.destroyed.complete();
|
27
|
-
}
|
28
|
-
getFirstTarget() {
|
29
|
-
return this.keyboardNavTargets?.find(target => target.isFocusable);
|
30
|
-
}
|
31
|
-
getLastTarget() {
|
32
|
-
if (this.keyboardNavTargets) {
|
33
|
-
for (let i = this.keyboardNavTargets.length - 1; i >= 0; i--) {
|
34
|
-
const target = this.keyboardNavTargets?.get(i);
|
35
|
-
if (target && target.isFocusable) {
|
36
|
-
return target;
|
37
|
-
}
|
38
|
-
}
|
39
|
-
}
|
40
|
-
}
|
41
|
-
}
|
42
|
-
KeyboardNavContainerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: KeyboardNavContainerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
43
|
-
KeyboardNavContainerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: KeyboardNavContainerDirective, selector: "[ecKeyboardNavContainer]", outputs: { focusOutStart: "focusOutStart", focusOutEnd: "focusOutEnd" }, queries: [{ propertyName: "keyboardNavTargets", predicate: KeyboardNavTargetDirective, descendants: true }], ngImport: i0 });
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: KeyboardNavContainerDirective, decorators: [{
|
45
|
-
type: Directive,
|
46
|
-
args: [{
|
47
|
-
selector: '[ecKeyboardNavContainer]'
|
48
|
-
}]
|
49
|
-
}], ctorParameters: function () { return []; }, propDecorators: { keyboardNavTargets: [{
|
50
|
-
type: ContentChildren,
|
51
|
-
args: [KeyboardNavTargetDirective, { descendants: true }]
|
52
|
-
}], focusOutStart: [{
|
53
|
-
type: Output
|
54
|
-
}], focusOutEnd: [{
|
55
|
-
type: Output
|
56
|
-
}] } });
|
57
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2V5Ym9hcmQtbmF2LWNvbnRhaW5lci5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3NyYy9saWIvc2hhcmVkL2RpcmVjdGl2ZXMva2V5Ym9hcmQtbmF2LWNvbnRhaW5lci9rZXlib2FyZC1uYXYtY29udGFpbmVyLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQW9CLGVBQWUsRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFhLE1BQU0sRUFBYSxNQUFNLGVBQWUsQ0FBQztBQUN6SCxPQUFPLEVBQUUsSUFBSSxFQUFFLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUNyQyxPQUFPLEVBQUUsU0FBUyxFQUFFLElBQUksRUFBRSxTQUFTLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUM1RCxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSxzREFBc0QsQ0FBQzs7QUFLbEcsTUFBTSxPQUFPLDZCQUE2QjtJQVN4QztRQUxVLGtCQUFhL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LmVtaXQoZXZlbnQpO1xyXG4gICAgICB9KTtcclxuICAgIH0pO1xyXG4gIH1cclxuXHJcbiAgbmdPbkRlc3Ryb3koKTogdm9pZCB7XHJcbiAgICB0aGlzLmRlc3Ryb3llZC5uZXh0KCk7XHJcbiAgICB0aGlzLmRlc3Ryb3llZC5jb21wbGV0ZSgpO1xyXG4gIH1cclxuXHJcbiAgcHJpdmF0ZSBnZXRGaXJzdFRhcmdldCgpOiBLZXlib2FyZE5hdlRhcmdldERpcmVjdGl2ZSB8IHVuZGVmaW5lZCB7XHJcbiAgICByZXR1cm4gdGhpcy5rZXlib2FyZE5hdlRhcmdldHM/LmZpbmQodGFyZ2V0ID0+IHRhcmdldC5pc0ZvY3VzYWJsZSk7XHJcbiAgfVxyXG5cclxuICBwcml2YXRlIGdldExhc3RUYXJnZXQoKTogS2V5Ym9hcmROYXZUYXJnZXREaXJlY3RpdmUgfCB1bmRlZmluZWQge1xyXG4gICAgaWYgKHRoaXMua2V5Ym9hcmROYXZUYXJnZXRzKSB7XHJcbiAgICAgIGZvciAobGV0IGkgPSB0aGlzLmtleWJvYXJkTmF2VGFyZ2V0cy5sZW5ndGggLSAxOyBpID49IDA7IGktLSkge1xyXG4gICAgICAgIGNvbnN0IHRhcmdldCA9IHRoaXMua2V5Ym9hcmROYXZUYXJnZXRzPy5nZXQoaSk7XHJcbiAgICAgICAgaWYgKHRhcmdldCAmJiB0YXJnZXQuaXNGb2N1c2FibGUpIHtcclxuICAgICAgICAgIHJldHVybiB0YXJnZXQ7XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
@@ -1,58 +0,0 @@
|
|
1
|
-
import { Directive, EventEmitter, HostListener, Output } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
/**
|
4
|
-
* Directive to aid in developing custom keyboard navigation behaviors.
|
5
|
-
*/
|
6
|
-
export class KeyboardNavTargetDirective {
|
7
|
-
constructor(el) {
|
8
|
-
this.el = el;
|
9
|
-
this.focusOutNext = new EventEmitter();
|
10
|
-
this.focusOutPrevious = new EventEmitter();
|
11
|
-
}
|
12
|
-
onKeydown(event) {
|
13
|
-
switch (event.key) {
|
14
|
-
case 'Tab':
|
15
|
-
this.handleTab(event);
|
16
|
-
break;
|
17
|
-
}
|
18
|
-
}
|
19
|
-
get isFocusable() {
|
20
|
-
if (this.el.nativeElement.disabled ||
|
21
|
-
this.el.nativeElement.hidden ||
|
22
|
-
this.el.nativeElement.style.display === 'none' ||
|
23
|
-
this.el.nativeElement.tabIndex < 0) {
|
24
|
-
return false;
|
25
|
-
}
|
26
|
-
return true;
|
27
|
-
}
|
28
|
-
focus() {
|
29
|
-
if (this.isFocusable) {
|
30
|
-
this.el.nativeElement.focus();
|
31
|
-
}
|
32
|
-
}
|
33
|
-
handleTab(event) {
|
34
|
-
if (event.shiftKey) {
|
35
|
-
this.focusOutPrevious.emit(event);
|
36
|
-
}
|
37
|
-
else {
|
38
|
-
this.focusOutNext.emit(event);
|
39
|
-
}
|
40
|
-
}
|
41
|
-
;
|
42
|
-
}
|
43
|
-
KeyboardNavTargetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: KeyboardNavTargetDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
44
|
-
KeyboardNavTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: KeyboardNavTargetDirective, selector: "[ecKeyboardNavTarget]", outputs: { focusOutNext: "focusOutNext", focusOutPrevious: "focusOutPrevious" }, host: { listeners: { "keydown": "onKeydown($event)" } }, ngImport: i0 });
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: KeyboardNavTargetDirective, decorators: [{
|
46
|
-
type: Directive,
|
47
|
-
args: [{
|
48
|
-
selector: '[ecKeyboardNavTarget]'
|
49
|
-
}]
|
50
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { focusOutNext: [{
|
51
|
-
type: Output
|
52
|
-
}], focusOutPrevious: [{
|
53
|
-
type: Output
|
54
|
-
}], onKeydown: [{
|
55
|
-
type: HostListener,
|
56
|
-
args: ['keydown', ['$event']]
|
57
|
-
}] } });
|
58
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2V5Ym9hcmQtbmF2LXRhcmdldC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3NyYy9saWIvc2hhcmVkL2RpcmVjdGl2ZXMva2V5Ym9hcmQtbmF2LXRhcmdldC9rZXlib2FyZC1uYXYtdGFyZ2V0LmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFjLFlBQVksRUFBRSxZQUFZLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUsxRjs7R0FFRztBQUNILE1BQU0sT0FBTywwQkFBMEI7SUFLckMsWUFDVSxFQUFjO1FBQWQsT0FBRSxHQUFGLEVBQUUsQ0FBWTtRQUpkLGlCQUFZLEdBQUcsSUFBSSxZQUFZLEVBQWlCLENBQUM7UUFDakQscUJBQWdCLEdBQUcsSUFBSSxZQUFZLEVBQWlCLENBQUM7SUFJM0QsQ0FBQztJQUdFLFNBQVMsQ0FBQyxLQUFvQjtRQUNuQyxRQUFRLEtBQUssQ0FBQyxHQUFHLEVBQUU7WUFDakIsS0FBSyxLQUFLO2dCQUNSLElBQUksQ0FBQyxTQUFTLENBQUMsS0FBSyxDQUFDLENBQUM7Z0JBQ3RCLE1BQU07U0FDVDtJQUNILENBQUM7SUFFRCxJQUFXLFdBQVc7UUFDcEIsSUFDRSxJQUF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ZGRlbiB8fFxyXG4gICAgICB0aGlzLmVsLm5hdGl2ZUVsZW1lbnQuc3R5bGUuZGlzcGxheSA9PT0gJ25vbmUnIHx8XHJcbiAgICAgIHRoaXMuZWwubmF0aXZlRWxlbWVudC50YWJJbmRleCA8IDBcclxuICAgICkge1xyXG4gICAgICByZXR1cm4gZmFsc2U7XHJcbiAgICB9XHJcbiAgICBcclxuICAgIHJldHVybiB0cnVlO1xyXG4gIH1cclxuXHJcbiAgcHVibGljIGZvY3VzKCkge1xyXG4gICAgaWYgKHRoaXMuaXNGb2N1c2FibGUpIHtcclxuICAgICAgdGhpcy5lbC5uYXRpdmVFbGVtZW50LmZvY3VzKCk7XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuICBwcml2YXRlIGhhbmRsZVRhYihldmVudDogS2V5Ym9hcmRFdmVudCk6IHZvaWQge1xyXG4gICAgaWYgKGV2ZW50LnNoaWZ0S2V5KSB7XHJcbiAgICAgIHRoaXMuZm9jdXNPdXRQcmV2aW91cy5lbWl0KGV2ZW50KTtcclxuICAgIH0gZWxzZSB7XHJcbiAgICAgIHRoaXMuZm9jdXNPdXROZXh0LmVtaXQoZXZlbnQpO1xyXG4gICAgfVxyXG4gIH07XHJcbn1cclxuIl19
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { AfterContentInit, EventEmitter, OnDestroy, QueryList } from '@angular/core';
|
2
|
-
import { KeyboardNavTargetDirective } from '../keyboard-nav-target/keyboard-nav-target.directive';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
export declare class KeyboardNavContainerDirective implements AfterContentInit, OnDestroy {
|
5
|
-
keyboardNavTargets?: QueryList<KeyboardNavTargetDirective>;
|
6
|
-
focusOutStart: EventEmitter<KeyboardEvent>;
|
7
|
-
focusOutEnd: EventEmitter<KeyboardEvent>;
|
8
|
-
private destroyed;
|
9
|
-
constructor();
|
10
|
-
ngAfterContentInit(): void;
|
11
|
-
ngOnDestroy(): void;
|
12
|
-
private getFirstTarget;
|
13
|
-
private getLastTarget;
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KeyboardNavContainerDirective, never>;
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KeyboardNavContainerDirective, "[ecKeyboardNavContainer]", never, {}, { "focusOutStart": "focusOutStart"; "focusOutEnd": "focusOutEnd"; }, ["keyboardNavTargets"], never, false, never>;
|
16
|
-
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { ElementRef, EventEmitter } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export declare class KeyboardNavTargetDirective {
|
4
|
-
private el;
|
5
|
-
focusOutNext: EventEmitter<KeyboardEvent>;
|
6
|
-
focusOutPrevious: EventEmitter<KeyboardEvent>;
|
7
|
-
constructor(el: ElementRef);
|
8
|
-
onKeydown(event: KeyboardEvent): void;
|
9
|
-
get isFocusable(): boolean;
|
10
|
-
focus(): void;
|
11
|
-
private handleTab;
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KeyboardNavTargetDirective, never>;
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KeyboardNavTargetDirective, "[ecKeyboardNavTarget]", never, {}, { "focusOutNext": "focusOutNext"; "focusOutPrevious": "focusOutPrevious"; }, never, never, false, never>;
|
14
|
-
}
|