diff --git a/components/accordion/accordion-group.component.ts b/components/accordion/accordion-group.component.ts index 5bd6fe9f9e..e4fb1aaa0b 100644 --- a/components/accordion/accordion-group.component.ts +++ b/components/accordion/accordion-group.component.ts @@ -4,6 +4,9 @@ import { import { AccordionComponent } from './accordion.component'; +/* tslint:disable-next-line */ +const MouseEvent = (global as any).MouseEvent as MouseEvent; + /* tslint:disable:component-selector-name */ @Component({ selector: 'accordion-group, accordion-panel', diff --git a/components/dropdown/dropdown-keyboard-nav.directive.ts b/components/dropdown/dropdown-keyboard-nav.directive.ts index f31f6c8dcd..9ddb5f2197 100644 --- a/components/dropdown/dropdown-keyboard-nav.directive.ts +++ b/components/dropdown/dropdown-keyboard-nav.directive.ts @@ -2,6 +2,9 @@ import { Directive, ElementRef, HostListener } from '@angular/core'; import { DropdownDirective } from './dropdown.directive'; +/* tslint:disable-next-line */ +const KeyboardEvent = (global as any).KeyboardEvent as KeyboardEvent; + @Directive({ selector: '[dropdown][dropdownKeyboardNav]' }) diff --git a/components/dropdown/dropdown-toggle.directive.ts b/components/dropdown/dropdown-toggle.directive.ts index fb8f068b45..7c430a4f26 100644 --- a/components/dropdown/dropdown-toggle.directive.ts +++ b/components/dropdown/dropdown-toggle.directive.ts @@ -4,6 +4,9 @@ import { import { DropdownDirective } from './dropdown.directive'; +/* tslint:disable-next-line */ +const MouseEvent = (global as any).MouseEvent as MouseEvent; + @Directive({ selector: '[dropdownToggle]', exportAs: 'bs-dropdown-toggle' diff --git a/components/dropdown/dropdown.service.ts b/components/dropdown/dropdown.service.ts index 76b6b1b187..1ce526ccad 100644 --- a/components/dropdown/dropdown.service.ts +++ b/components/dropdown/dropdown.service.ts @@ -5,6 +5,11 @@ export const NONINPUT = 'nonInput'; import { DropdownDirective } from './dropdown.directive'; +/* tslint:disable-next-line */ +const KeyboardEvent = (global as any).KeyboardEvent as KeyboardEvent; +/* tslint:disable-next-line */ +const MouseEvent = (global as any).MouseEvent as MouseEvent; + export class DropdownService { private openScope:DropdownDirective; diff --git a/components/pagination/pagination.component.ts b/components/pagination/pagination.component.ts index ced46b18a4..f30e5fd664 100644 --- a/components/pagination/pagination.component.ts +++ b/components/pagination/pagination.component.ts @@ -5,6 +5,9 @@ import { ControlValueAccessor, NgModel } from '@angular/forms'; import { KeyAttribute } from '../common'; +/* tslint:disable-next-line */ +const MouseEvent = (global as any).MouseEvent as MouseEvent; + // todo: extract base functionality classes // todo: expose an option to change default configuration export interface PaginationConfig extends KeyAttribute { diff --git a/components/rating/rating.component.ts b/components/rating/rating.component.ts index 1ca983d3a4..a680c4b967 100644 --- a/components/rating/rating.component.ts +++ b/components/rating/rating.component.ts @@ -3,6 +3,9 @@ import { } from '@angular/core'; import { ControlValueAccessor, NgModel } from '@angular/forms'; +/* tslint:disable-next-line */ +const KeyboardEvent = (global as any).KeyboardEvent as KeyboardEvent; + @Component({ /* tslint:disable */ selector: 'rating[ngModel]', diff --git a/components/typeahead/typeahead.directive.ts b/components/typeahead/typeahead.directive.ts index a21c724c50..fb5e726424 100644 --- a/components/typeahead/typeahead.directive.ts +++ b/components/typeahead/typeahead.directive.ts @@ -19,6 +19,9 @@ import 'rxjs/add/operator/toArray'; import { ComponentsHelper } from '../utils/components-helper.service'; +/* tslint:disable-next-line */ +const KeyboardEvent = (global as any).KeyboardEvent as KeyboardEvent; + @Directive({ /* tslint:disable */ selector: '[typeahead][ngModel],[typeahead][formControlName]'