diff --git a/package.json b/package.json index 649452f3..10c4e179 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "handlebars": "^4.0.5", "jquery": "^2.2.2", "json-loader": "^0.5.4", - "ng2-select2": "0.3.1", + "ng2-select2": "0.4.2", "reflect-metadata": "0.1.3", "rxjs": "5.0.0-beta.6", "select2": "^4.0.3", diff --git a/src/components/popover/tab/keymap/keymap-tab.component.html b/src/components/popover/tab/keymap/keymap-tab.component.html index 815efcdf..e3b4b3d2 100644 --- a/src/components/popover/tab/keymap/keymap-tab.component.html +++ b/src/components/popover/tab/keymap/keymap-tab.component.html @@ -1,6 +1,6 @@
Switch to keymap: - +
diff --git a/src/components/popover/tab/keymap/keymap-tab.component.ts b/src/components/popover/tab/keymap/keymap-tab.component.ts index 0c63e51d..5e5dcbeb 100644 --- a/src/components/popover/tab/keymap/keymap-tab.component.ts +++ b/src/components/popover/tab/keymap/keymap-tab.component.ts @@ -7,21 +7,20 @@ import {SvgKeyboardComponent} from '../../../svg/keyboard/svg-keyboard.component import {Tab} from '../tab'; import {SwitchKeymapAction} from '../../../../../config-serializer/config-items/SwitchKeymapAction'; -import {OptionData} from 'ng2-select2/dist/select2'; -import {SELECT2_DIRECTIVES} from 'ng2-select2/dist/ng2-select2'; +import {Select2Component, Select2OptionData} from 'ng2-select2/ng2-select2'; @Component({ moduleId: module.id, selector: 'keymap-tab', template: require('./keymap-tab.component.html'), styles: [require('./keymap-tab.component.scss')], - directives: [SvgKeyboardComponent, SELECT2_DIRECTIVES] + directives: [SvgKeyboardComponent, Select2Component] }) export class KeymapTabComponent implements OnInit, Tab { @Input() defaultKeyAction: KeyAction; private keymaps: Keymap[]; - private keymapOptions: Array; + private keymapOptions: Array; private selectedKeymapIndex: number; constructor(private uhkConfigurationService: UhkConfigurationService) { @@ -38,7 +37,7 @@ export class KeymapTabComponent implements OnInit, Tab { text: 'Switch to keymap' }); - this.keymapOptions = this.keymapOptions.concat(this.keymaps.map(function (keymap: Keymap): OptionData { + this.keymapOptions = this.keymapOptions.concat(this.keymaps.map(function (keymap: Keymap): Select2OptionData { return { id: keymap.id.toString(), text: keymap.name diff --git a/src/components/popover/tab/keypress/keypress-tab.component.html b/src/components/popover/tab/keypress/keypress-tab.component.html index a6afc75e..e858d9cc 100644 --- a/src/components/popover/tab/keypress/keypress-tab.component.html +++ b/src/components/popover/tab/keypress/keypress-tab.component.html @@ -1,6 +1,6 @@
Scancode: -
@@ -23,7 +23,7 @@
Long press action: -
\ No newline at end of file diff --git a/src/components/popover/tab/keypress/keypress-tab.component.ts b/src/components/popover/tab/keypress/keypress-tab.component.ts index 280395f5..3a112875 100644 --- a/src/components/popover/tab/keypress/keypress-tab.component.ts +++ b/src/components/popover/tab/keypress/keypress-tab.component.ts @@ -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; - private longPressGroups: Array; + private scanCodeGroups: Array; + private longPressGroups: Array; private scanCode: number; private selectedLongPressIndex: number; diff --git a/src/components/popover/tab/layer/layer-tab.component.html b/src/components/popover/tab/layer/layer-tab.component.html index 715df025..6c1fb4a3 100644 --- a/src/components/popover/tab/layer/layer-tab.component.html +++ b/src/components/popover/tab/layer/layer-tab.component.html @@ -1,6 +1,6 @@ - + the - + diff --git a/src/components/popover/tab/layer/layer-tab.component.ts b/src/components/popover/tab/layer/layer-tab.component.ts index 30d58c79..7681438d 100644 --- a/src/components/popover/tab/layer/layer-tab.component.ts +++ b/src/components/popover/tab/layer/layer-tab.component.ts @@ -4,8 +4,7 @@ import {NgSwitch, NgSwitchCase, NgSwitchDefault} from '@angular/common'; import {LayerName, SwitchLayerAction} from '../../../../../config-serializer/config-items/SwitchLayerAction'; import {KeyAction} from '../../../../../config-serializer/config-items/KeyAction'; -import {Select2Component} from 'ng2-select2/dist/select2/select2.component'; -import {OptionData} from 'ng2-select2/dist/select2'; +import {Select2Component, Select2OptionData} from 'ng2-select2/ng2-select2'; import {Tab} from '../tab'; @@ -24,7 +23,7 @@ export class LayerTabComponent implements OnInit, Tab { private toggle: boolean; private layer: LayerName; - private toggleData: Array = [ + private toggleData: Array = [ { id: 'false', text: 'Activate' @@ -35,7 +34,7 @@ export class LayerTabComponent implements OnInit, Tab { } ]; - private layerData: Array = [ + private layerData: Array = [ { id: '0', text: 'Mod' diff --git a/src/components/popover/tab/macro/macro-tab.component.html b/src/components/popover/tab/macro/macro-tab.component.html index f636d510..8552b7bb 100644 --- a/src/components/popover/tab/macro/macro-tab.component.html +++ b/src/components/popover/tab/macro/macro-tab.component.html @@ -1,6 +1,6 @@
Play macro: - +