From 4a1829e431a7fd0a12ed9f2cc1ec093daf1874bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zsef=20Farkas?= Date: Tue, 21 Jun 2016 20:02:23 +0200 Subject: [PATCH] Update to angular2-rc.2 --- package.json | 10 +++++----- .../keys/svg-keyboard-key.component.ts | 14 +++++++------- src/components/popover/popover.component.ts | 16 ++++++++-------- .../popover/tab/layer-tab.component.ts | 6 +++--- .../popover/tab/macro-item.component.ts | 3 +-- .../popover/tab/mouse-tab.component.ts | 12 ++++++------ .../popover/widgets/icon.component.ts | 18 +++++++++--------- 7 files changed, 39 insertions(+), 40 deletions(-) diff --git a/package.json b/package.json index 77eef134..03ebd2c6 100644 --- a/package.json +++ b/package.json @@ -26,11 +26,11 @@ "yargs": "^4.7.1" }, "dependencies": { - "@angular/common": "2.0.0-rc.1", - "@angular/compiler": "2.0.0-rc.1", - "@angular/core": "2.0.0-rc.1", - "@angular/platform-browser": "2.0.0-rc.1", - "@angular/platform-browser-dynamic": "2.0.0-rc.1", + "@angular/common": "2.0.0-rc.2", + "@angular/compiler": "2.0.0-rc.2", + "@angular/core": "2.0.0-rc.2", + "@angular/platform-browser": "2.0.0-rc.2", + "@angular/platform-browser-dynamic": "2.0.0-rc.2", "bootstrap": "^3.3.6", "browser-stdout": "^1.3.0", "es6-shim": "^0.35.1", diff --git a/src/components/keys/svg-keyboard-key.component.ts b/src/components/keys/svg-keyboard-key.component.ts index 386a248b..5e0e0690 100644 --- a/src/components/keys/svg-keyboard-key.component.ts +++ b/src/components/keys/svg-keyboard-key.component.ts @@ -1,5 +1,5 @@ import { Component, OnInit, Input, OnChanges, SimpleChange } from '@angular/core'; -import {NgSwitch, NgSwitchWhen} from '@angular/common'; +import {NgSwitch, NgSwitchCase} from '@angular/common'; import {KeyAction} from '../../../config-serializer/config-items/KeyAction'; import {KeystrokeAction} from '../../../config-serializer/config-items/KeystrokeAction'; @@ -37,28 +37,28 @@ enum LabelTypes { [attr.font-family]="'Helvetica'" [attr.fill]="'white'" style="dominant-baseline: central"> - - - - - @@ -68,7 +68,7 @@ enum LabelTypes { directives: [ NgSwitch, - NgSwitchWhen, + NgSwitchCase, SvgOneLineTextKeyComponent, SvgTwoLineTextKeyComponent, SvgSingleIconKeyComponent, diff --git a/src/components/popover/popover.component.ts b/src/components/popover/popover.component.ts index 32cf47e2..e0edce8b 100644 --- a/src/components/popover/popover.component.ts +++ b/src/components/popover/popover.component.ts @@ -12,7 +12,7 @@ import { ChangeDetectorRef } from '@angular/core'; -import {NgSwitch, NgSwitchWhen} from '@angular/common'; +import {NgSwitch, NgSwitchCase} from '@angular/common'; import {KeyAction} from '../../../config-serializer/config-items/KeyAction'; @@ -74,12 +74,12 @@ import {KeyActionSaver} from './key-action-saver';
- - - - - - + + + + + +
@@ -94,7 +94,7 @@ import {KeyActionSaver} from './key-action-saver'; directives: [ NgSwitch, - NgSwitchWhen, + NgSwitchCase, KeypressTabComponent, LayerTabComponent, MouseTabComponent, diff --git a/src/components/popover/tab/layer-tab.component.ts b/src/components/popover/tab/layer-tab.component.ts index 01a9c92a..3f5686d6 100644 --- a/src/components/popover/tab/layer-tab.component.ts +++ b/src/components/popover/tab/layer-tab.component.ts @@ -1,6 +1,6 @@ import { Component, OnInit } from '@angular/core'; -import {NgSwitch, NgSwitchWhen, NgSwitchDefault } from '@angular/common'; +import {NgSwitch, NgSwitchCase, NgSwitchDefault } from '@angular/common'; import { LayerName, SwitchLayerAction } from '../../../../config-serializer/config-items/SwitchLayerAction'; import { KeyActionSaver } from '../key-action-saver'; @@ -17,12 +17,12 @@ import {OptionData} from 'ng2-select2/dist/select2'; the - + `, styles: [require('./layer-tab.component.scss')], - directives: [SELECT2_DIRECTIVES, NgSwitch, NgSwitchWhen, NgSwitchDefault] + directives: [SELECT2_DIRECTIVES, NgSwitch, NgSwitchCase, NgSwitchDefault] }) export class LayerTabComponent implements OnInit, KeyActionSaver { private toggle: boolean; diff --git a/src/components/popover/tab/macro-item.component.ts b/src/components/popover/tab/macro-item.component.ts index ce1884bb..358aeeb3 100644 --- a/src/components/popover/tab/macro-item.component.ts +++ b/src/components/popover/tab/macro-item.component.ts @@ -1,5 +1,4 @@ import { Component, OnInit, OnChanges, Input } from '@angular/core'; -import { NgSwitch, NgSwitchWhen} from '@angular/common'; import {MacroAction} from '../../../../config-serializer/config-items/MacroAction'; import {DelayMacroAction} from '../../../../config-serializer/config-items/DelayMacroAction'; @@ -32,7 +31,7 @@ import {KeyModifiers} from '../../../../config-serializer/config-items/KeyModif `, styles: [require('./macro-item.component.scss')], - directives: [NgSwitch, NgSwitchWhen, IconComponent] + directives: [IconComponent] }) export class MacroItemComponent implements OnInit, OnChanges { diff --git a/src/components/popover/tab/mouse-tab.component.ts b/src/components/popover/tab/mouse-tab.component.ts index 63615aee..1ff07274 100644 --- a/src/components/popover/tab/mouse-tab.component.ts +++ b/src/components/popover/tab/mouse-tab.component.ts @@ -1,5 +1,5 @@ import { Component, OnInit, Renderer} from '@angular/core'; -import {NgSwitch, NgSwitchWhen, NgSwitchDefault} from '@angular/common'; +import {NgSwitch, NgSwitchCase, NgSwitchDefault} from '@angular/common'; import { KeyActionSaver } from '../key-action-saver'; import {MouseAction, MouseActionParam} from '../../../../config-serializer/config-items/MouseAction'; @@ -18,7 +18,7 @@ import {MouseAction, MouseActionParam} from '../../../../config-serializer/confi
-
+
-
+
-
+
@@ -82,7 +82,7 @@ import {MouseAction, MouseActionParam} from '../../../../config-serializer/confi (click)="onMouseActionClick($event.target, MouseActionParam.rightClick)">Right
-
+

Press this key along with mouse movement/scrolling to accelerate/decelerate the speed of the action.

You can set the multiplier in link to setting.

@@ -99,7 +99,7 @@ import {MouseAction, MouseActionParam} from '../../../../config-serializer/confi
`, styles: [require('./mouse-tab.component.scss')], - directives: [NgSwitch, NgSwitchWhen, NgSwitchDefault] + directives: [NgSwitch, NgSwitchCase, NgSwitchDefault] }) export class MouseTabComponent implements OnInit, KeyActionSaver { private mouseActionParam: MouseActionParam; diff --git a/src/components/popover/widgets/icon.component.ts b/src/components/popover/widgets/icon.component.ts index bf98447c..ce1f4e66 100644 --- a/src/components/popover/widgets/icon.component.ts +++ b/src/components/popover/widgets/icon.component.ts @@ -1,5 +1,5 @@ import { Component, OnInit, Input } from '@angular/core'; -import { NgSwitch, NgSwitchWhen } from '@angular/common'; +import { NgSwitch, NgSwitchCase } from '@angular/common'; @Component({ moduleId: module.id, @@ -7,16 +7,16 @@ import { NgSwitch, NgSwitchWhen } from '@angular/common'; template: `
- - - - - - - + + + + + + +
`, - directives: [NgSwitch, NgSwitchWhen], + directives: [NgSwitch, NgSwitchCase], styles: [require('./icon.component.scss')] }) export class IconComponent implements OnInit {