From ee9d15c1a6503da6a5eff84e92b63c3bca750802 Mon Sep 17 00:00:00 2001 From: Mohamed Gnedy Date: Sun, 22 Apr 2018 15:24:36 +0200 Subject: [PATCH 1/6] fix aot issue --- package.json | 3 ++- src/wizard-step.component.ts | 8 ++++++-- src/wizard.component.ts | 7 +++++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 815f529e..2cedb900 100644 --- a/package.json +++ b/package.json @@ -65,5 +65,6 @@ }, "engines": { "node": ">=0.8.0" - } + }, + "typings": "./dist/index.d.ts" } diff --git a/src/wizard-step.component.ts b/src/wizard-step.component.ts index 1c457dc3..f2d9d48c 100644 --- a/src/wizard-step.component.ts +++ b/src/wizard-step.component.ts @@ -1,4 +1,4 @@ -import { Component, Input, Output, EventEmitter } from '@angular/core'; +import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core'; @Component({ selector: 'wizard-step', @@ -9,7 +9,7 @@ import { Component, Input, Output, EventEmitter } from '@angular/core'; ` }) -export class WizardStepComponent { +export class WizardStepComponent implements OnInit { @Input() title: string; @Input() hidden: boolean = false; @Input() isValid: boolean = true; @@ -25,6 +25,10 @@ export class WizardStepComponent { constructor() { } + ngOnInit(){ + + } + @Input('isActive') set isActive(isActive: boolean) { this._isActive = isActive; diff --git a/src/wizard.component.ts b/src/wizard.component.ts index 8953f89a..060e591b 100644 --- a/src/wizard.component.ts +++ b/src/wizard.component.ts @@ -1,4 +1,4 @@ -import { Component, Output, EventEmitter, ContentChildren, QueryList, AfterContentInit } from '@angular/core'; +import { Component, Output, EventEmitter, ContentChildren, QueryList, AfterContentInit, OnInit } from '@angular/core'; import { WizardStepComponent } from './wizard-step.component'; @Component({ @@ -34,7 +34,7 @@ import { WizardStepComponent } from './wizard-step.component'; '.completed { cursor: default; }' ] }) -export class WizardComponent implements AfterContentInit { +export class WizardComponent implements OnInit, AfterContentInit { @ContentChildren(WizardStepComponent) wizardSteps: QueryList; @@ -46,6 +46,9 @@ export class WizardComponent implements AfterContentInit { constructor() { } + ngOnInit(){ + + } ngAfterContentInit() { this.wizardSteps.forEach(step => this._steps.push(step)); this.steps[0].isActive = true; From d65b59c297932d2285cb6e5d20f4e6af6dbeb43b Mon Sep 17 00:00:00 2001 From: Mohamed Gnedy Date: Sun, 22 Apr 2018 17:47:35 +0200 Subject: [PATCH 2/6] packege.json fix --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2cedb900..b772d793 100644 --- a/package.json +++ b/package.json @@ -66,5 +66,8 @@ "engines": { "node": ">=0.8.0" }, - "typings": "./dist/index.d.ts" + "_comment01": { + "typings": "./dist/index.d.ts" + } + } From cfae8f0f9a21b575f1e0a737c9f2aece715ce5cb Mon Sep 17 00:00:00 2001 From: Mohamed Gnedy Date: Thu, 28 Jun 2018 15:36:56 +0200 Subject: [PATCH 3/6] Update package.json Updated dependent packages. --- package.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index b772d793..a0f9fa91 100644 --- a/package.json +++ b/package.json @@ -33,13 +33,13 @@ "bootstrap": "^4.0.0-alpha.6" }, "devDependencies": { - "@angular/common": "^2.3.1", - "@angular/compiler": "^2.3.1", - "@angular/compiler-cli": "^2.3.1", - "@angular/core": "^2.3.1", - "@angular/platform-browser": "^2.3.1", - "@angular/platform-browser-dynamic": "^2.3.1", - "@angular/platform-server": "^2.3.1", + "@angular/common": "^5.2.4", + "@angular/compiler": "^5.2.4", + "@angular/compiler-cli": "^5.2.4", + "@angular/core": "^5.2.4", + "@angular/platform-browser": "^5.2.4", + "@angular/platform-browser-dynamic": "^5.2.4", + "@angular/platform-server": "^5.2.4", "@types/es6-shim": "^0.31.32", "@types/jasmine": "^2.5.42", "@types/selenium-webdriver": "^2.53.39", @@ -55,13 +55,13 @@ "karma-remap-coverage": "^0.1.4", "karma-sourcemap-loader": "^0.3.7", "karma-webpack": "^2.0.2", - "rxjs": "^5.0.1", + "rxjs": "^5.5.6", "source-map-loader": "^0.1.6", "ts-helpers": "^1.1.2", "tslint": "^3.15.1", "typescript": "^2.1.6", "webpack": "^2.2.1", - "zone.js": "0.7.2" + "zone.js": "^0.8.19" }, "engines": { "node": ">=0.8.0" From a0e74fdba331839c0d8a21cb5e544c550d9380b4 Mon Sep 17 00:00:00 2001 From: Mohamed Gnedy Date: Sun, 1 Jul 2018 11:12:28 +0200 Subject: [PATCH 4/6] downgrade Dependencies --- package.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index a0f9fa91..b772d793 100644 --- a/package.json +++ b/package.json @@ -33,13 +33,13 @@ "bootstrap": "^4.0.0-alpha.6" }, "devDependencies": { - "@angular/common": "^5.2.4", - "@angular/compiler": "^5.2.4", - "@angular/compiler-cli": "^5.2.4", - "@angular/core": "^5.2.4", - "@angular/platform-browser": "^5.2.4", - "@angular/platform-browser-dynamic": "^5.2.4", - "@angular/platform-server": "^5.2.4", + "@angular/common": "^2.3.1", + "@angular/compiler": "^2.3.1", + "@angular/compiler-cli": "^2.3.1", + "@angular/core": "^2.3.1", + "@angular/platform-browser": "^2.3.1", + "@angular/platform-browser-dynamic": "^2.3.1", + "@angular/platform-server": "^2.3.1", "@types/es6-shim": "^0.31.32", "@types/jasmine": "^2.5.42", "@types/selenium-webdriver": "^2.53.39", @@ -55,13 +55,13 @@ "karma-remap-coverage": "^0.1.4", "karma-sourcemap-loader": "^0.3.7", "karma-webpack": "^2.0.2", - "rxjs": "^5.5.6", + "rxjs": "^5.0.1", "source-map-loader": "^0.1.6", "ts-helpers": "^1.1.2", "tslint": "^3.15.1", "typescript": "^2.1.6", "webpack": "^2.2.1", - "zone.js": "^0.8.19" + "zone.js": "0.7.2" }, "engines": { "node": ">=0.8.0" From f2874a816b494470e5d0c8c98d4f217046a88b64 Mon Sep 17 00:00:00 2001 From: Mohamed Gnedy Date: Sun, 1 Jul 2018 13:12:52 +0200 Subject: [PATCH 5/6] Update package.json --- package.json | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index b772d793..37c8d66a 100644 --- a/package.json +++ b/package.json @@ -33,18 +33,18 @@ "bootstrap": "^4.0.0-alpha.6" }, "devDependencies": { - "@angular/common": "^2.3.1", - "@angular/compiler": "^2.3.1", - "@angular/compiler-cli": "^2.3.1", - "@angular/core": "^2.3.1", - "@angular/platform-browser": "^2.3.1", - "@angular/platform-browser-dynamic": "^2.3.1", - "@angular/platform-server": "^2.3.1", + "@angular/common": "^4.0.2", + "@angular/compiler": "^4.0.2", + "@angular/compiler-cli": "^4.0.2", + "@angular/core": "^4.0.2", + "@angular/platform-browser": "^4.0.2", + "@angular/platform-browser-dynamic": "^^4.0.2", + "@angular/platform-server": "^4.0.2", "@types/es6-shim": "^0.31.32", "@types/jasmine": "^2.5.42", - "@types/selenium-webdriver": "^2.53.39", + "@types/selenium-webdriver": "^3.0.1", "awesome-typescript-loader": "^3.0.4-rc.2", - "codelyzer": "^0.0.28", + "codelyzer": "^2.1.1", "istanbul-instrumenter-loader": "^2.0.0", "jasmine-core": "^2.5.2", "karma": "^1.4.1", @@ -55,13 +55,13 @@ "karma-remap-coverage": "^0.1.4", "karma-sourcemap-loader": "^0.3.7", "karma-webpack": "^2.0.2", - "rxjs": "^5.0.1", - "source-map-loader": "^0.1.6", + "rxjs": "^5.1.0", + "source-map-loader": "^0.2.1", "ts-helpers": "^1.1.2", - "tslint": "^3.15.1", - "typescript": "^2.1.6", + "tslint": "~4.0.0", + "typescript": "^2.2.1", "webpack": "^2.2.1", - "zone.js": "0.7.2" + "zone.js": "0.8.5" }, "engines": { "node": ">=0.8.0" From ca93bb9307c7e2ba345b0efa9e47c68ecd3536fb Mon Sep 17 00:00:00 2001 From: Mohamed Gnedy Date: Sun, 1 Jul 2018 13:26:44 +0200 Subject: [PATCH 6/6] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 37c8d66a..f0c1db51 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "@angular/compiler-cli": "^4.0.2", "@angular/core": "^4.0.2", "@angular/platform-browser": "^4.0.2", - "@angular/platform-browser-dynamic": "^^4.0.2", + "@angular/platform-browser-dynamic": "^4.0.2", "@angular/platform-server": "^4.0.2", "@types/es6-shim": "^0.31.32", "@types/jasmine": "^2.5.42",