Skip to content

Commit

Permalink
fix(univeral): added hacks for missing type keywords
Browse files Browse the repository at this point in the history
should fix #964
  • Loading branch information
valorkin committed Oct 4, 2016
1 parent e4c4004 commit d20ccf1
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/accordion/accordion-group.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 3 additions & 0 deletions components/dropdown/dropdown-keyboard-nav.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]'
})
Expand Down
3 changes: 3 additions & 0 deletions components/dropdown/dropdown-toggle.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions components/dropdown/dropdown.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 3 additions & 0 deletions components/pagination/pagination.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions components/rating/rating.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]',
Expand Down
3 changes: 3 additions & 0 deletions components/typeahead/typeahead.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]'
Expand Down

0 comments on commit d20ccf1

Please sign in to comment.