Update ng2-select2 to 0.4.2 (#77)

This commit is contained in:
Nejc Zdovc
2016-08-15 09:01:07 +02:00
committed by József Farkas
parent d5907b66d4
commit 7691c88b95
9 changed files with 22 additions and 26 deletions

View File

@@ -1,7 +1,6 @@
import {Component, OnInit, Input} from '@angular/core';
import {SELECT2_DIRECTIVES} from 'ng2-select2/dist/ng2-select2';
import {OptionData} from 'ng2-select2/dist/select2';
import {Select2Component, Select2OptionData} from 'ng2-select2/ng2-select2';
import {KeyAction} from '../../../../../config-serializer/config-items/KeyAction';
import {KeystrokeAction} from '../../../../../config-serializer/config-items/KeystrokeAction';
@@ -15,7 +14,7 @@ import {Tab} from '../tab';
selector: 'keypress-tab',
template: require('./keypress-tab.component.html'),
styles: [require('./keypress-tab.component.scss')],
directives: [CaptureKeystrokeButtonComponent, IconComponent, SELECT2_DIRECTIVES]
directives: [CaptureKeystrokeButtonComponent, IconComponent, Select2Component]
})
export class KeypressTabComponent implements OnInit, Tab {
@Input() defaultKeyAction: KeyAction;
@@ -26,8 +25,8 @@ export class KeypressTabComponent implements OnInit, Tab {
private leftModifierSelects: boolean[];
private rightModifierSelects: boolean[];
private scanCodeGroups: Array<OptionData>;
private longPressGroups: Array<OptionData>;
private scanCodeGroups: Array<Select2OptionData>;
private longPressGroups: Array<Select2OptionData>;
private scanCode: number;
private selectedLongPressIndex: number;