Skip to content

Commit

Permalink
Small improvements (#49)
Browse files Browse the repository at this point in the history
- add missing exports in index.ts files
- reorder exports in index.ts files

* - rename WizardModule to ArchwizardModule
  • Loading branch information
madoar authored Sep 27, 2017
1 parent b1dc46a commit 9ca502a
Show file tree
Hide file tree
Showing 28 changed files with 52 additions and 71 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ Run `npm test` to execute the unit tests via [Karma](https://karma-runner.github
$ npm install --save ng2-archwizard
```

Afterwards you can import `ng2-archwizard` in your angular project by adding the `WizardModule` to your Module declaration as followed:
Afterwards you can import `ng2-archwizard` in your angular project by adding the `ArchwizardModule` to your Module declaration as followed:
```typescript
import { WizardModule } from 'ng2-archwizard';

@NgModule({
imports: [
WizardModule
ArchwizardModule
],
})
export class Module { }
Expand Down
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
/**
* Created by marc on 14.05.17.
*/

export * from './dist';
4 changes: 2 additions & 2 deletions src/wizard.module.ts → src/archwizard.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ import {ResetWizardDirective} from './directives/reset-wizard.directive';
ResetWizardDirective
]
})
export class WizardModule {
export class ArchwizardModule {
/* istanbul ignore next */
static forRoot(): ModuleWithProviders {
return {ngModule: WizardModule, providers: []};
return {ngModule: ArchwizardModule, providers: []};
}
}
8 changes: 2 additions & 6 deletions src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/**
* Created by marc on 29.12.16.
*/

export {WizardComponent} from './wizard.component';
export {WizardStepComponent} from './wizard-step.component';
export {WizardNavigationBarComponent} from './wizard-navigation-bar.component';
export {WizardCompletionStepComponent} from './wizard-completion-step.component';
export {WizardNavigationBarComponent} from './wizard-navigation-bar.component';
export {WizardStepComponent} from './wizard-step.component';
4 changes: 2 additions & 2 deletions src/components/wizard-completion-step.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {WizardCompletionStepComponent} from './wizard-completion-step.component'
import {Component} from '@angular/core';
import {MovingDirection} from '../util/moving-direction.enum';
import {By} from '@angular/platform-browser';
import {WizardModule} from '../wizard.module';
import {ArchwizardModule} from '../archwizard.module';
import {WizardState} from '../navigation/wizard-state.model';
import {NavigationMode} from '../navigation/navigation-mode.interface';

Expand Down Expand Up @@ -44,7 +44,7 @@ describe('WizardCompletionStepComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WizardTestComponent],
imports: [WizardModule]
imports: [ArchwizardModule]
}).compileComponents();
}));

Expand Down
4 changes: 2 additions & 2 deletions src/components/wizard-navigation-bar.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Component, ViewChild} from '@angular/core';
import {WizardNavigationBarComponent} from './wizard-navigation-bar.component';
import {WizardComponent} from './wizard.component';
import {By} from '@angular/platform-browser';
import {WizardModule} from '../wizard.module';
import {ArchwizardModule} from '../archwizard.module';
import {NavigationMode} from '../navigation/navigation-mode.interface';
import {WizardState} from '../navigation/wizard-state.model';

Expand Down Expand Up @@ -32,7 +32,7 @@ describe('WizardNavigationBarComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WizardTestComponent],
imports: [WizardModule]
imports: [ArchwizardModule]
}).compileComponents();
}));

Expand Down
4 changes: 2 additions & 2 deletions src/components/wizard-step.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {WizardStepComponent} from './wizard-step.component';
import {Component} from '@angular/core';
import {MovingDirection} from '../util/moving-direction.enum';
import {By} from '@angular/platform-browser';
import {WizardModule} from '../wizard.module';
import {ArchwizardModule} from '../archwizard.module';
import {NavigationMode} from '../navigation/navigation-mode.interface';
import {WizardState} from '../navigation/wizard-state.model';

Expand Down Expand Up @@ -42,7 +42,7 @@ describe('WizardStepComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WizardTestComponent],
imports: [WizardModule]
imports: [ArchwizardModule]
}).compileComponents();
}));

Expand Down
4 changes: 2 additions & 2 deletions src/components/wizard.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {Component, ViewChild} from '@angular/core';
import {WizardComponent} from './wizard.component';
import {By} from '@angular/platform-browser';
import {WizardModule} from '../wizard.module';
import {ArchwizardModule} from '../archwizard.module';
import {WizardState} from '../navigation/wizard-state.model';
import {NavigationMode} from '../navigation/navigation-mode.interface';

Expand Down Expand Up @@ -31,7 +31,7 @@ describe('WizardComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WizardTestComponent],
imports: [WizardModule]
imports: [ArchwizardModule]
}).compileComponents();
}));

Expand Down
4 changes: 2 additions & 2 deletions src/directives/enable-back-links.directive.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {async, ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/t
import {Component} from '@angular/core';
import {MovingDirection} from '../util/moving-direction.enum';
import {By} from '@angular/platform-browser';
import {WizardModule} from '../wizard.module';
import {ArchwizardModule} from '../archwizard.module';
import {WizardState} from '../navigation/wizard-state.model';
import {NavigationMode} from '../navigation/navigation-mode.interface';

Expand Down Expand Up @@ -53,7 +53,7 @@ describe('EnableBackLinksDirective', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WizardTestComponent],
imports: [WizardModule]
imports: [ArchwizardModule]
}).compileComponents();
}));

Expand Down
4 changes: 2 additions & 2 deletions src/directives/go-to-step.directive.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {GoToStepDirective} from './go-to-step.directive';
import {Component} from '@angular/core';
import {async, ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing';
import {By} from '@angular/platform-browser';
import {WizardModule} from '../wizard.module';
import {ArchwizardModule} from '../archwizard.module';
import {WizardState} from '../navigation/wizard-state.model';
import {NavigationMode} from '../navigation/navigation-mode.interface';

Expand Down Expand Up @@ -53,7 +53,7 @@ describe('GoToStepDirective', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WizardTestComponent],
imports: [WizardModule]
imports: [ArchwizardModule]
}).compileComponents();
}));

Expand Down
3 changes: 0 additions & 3 deletions src/directives/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/**
* Created by marc on 29.12.16.
*/
export {EnableBackLinksDirective} from './enable-back-links.directive';
export {GoToStepDirective} from './go-to-step.directive';
export {NextStepDirective} from './next-step.directive';
Expand Down
4 changes: 2 additions & 2 deletions src/directives/next-step.directive.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {NextStepDirective} from './next-step.directive';
import {Component} from '@angular/core';
import {async, ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing';
import {By} from '@angular/platform-browser';
import {WizardModule} from '../wizard.module';
import {ArchwizardModule} from '../archwizard.module';
import {WizardState} from '../navigation/wizard-state.model';
import {NavigationMode} from '../navigation/navigation-mode.interface';

Expand Down Expand Up @@ -40,7 +40,7 @@ describe('NextStepDirective', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WizardTestComponent],
imports: [WizardModule]
imports: [ArchwizardModule]
}).compileComponents();
}));

Expand Down
4 changes: 2 additions & 2 deletions src/directives/optional-step.directive.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {OptionalStepDirective} from './optional-step.directive';
import {Component} from '@angular/core';
import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {By} from '@angular/platform-browser';
import {WizardModule} from '../wizard.module';
import {ArchwizardModule} from '../archwizard.module';
import {WizardState} from '../navigation/wizard-state.model';
import {NavigationMode} from '../navigation/navigation-mode.interface';

Expand Down Expand Up @@ -35,7 +35,7 @@ describe('OptionalStepDirective', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WizardTestComponent],
imports: [WizardModule]
imports: [ArchwizardModule]
}).compileComponents();
}));

Expand Down
4 changes: 2 additions & 2 deletions src/directives/previous-step.directive.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {PreviousStepDirective} from './previous-step.directive';
import {Component} from '@angular/core';
import {async, ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing';
import {By} from '@angular/platform-browser';
import {WizardModule} from '../wizard.module';
import {ArchwizardModule} from '../archwizard.module';
import {WizardState} from '../navigation/wizard-state.model';
import {NavigationMode} from '../navigation/navigation-mode.interface';

Expand Down Expand Up @@ -40,7 +40,7 @@ describe('PreviousStepDirective', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WizardTestComponent],
imports: [WizardModule]
imports: [ArchwizardModule]
}).compileComponents();
}));

Expand Down
4 changes: 2 additions & 2 deletions src/directives/reset-wizard.directive.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {OptionalStepDirective} from './optional-step.directive';
import {Component} from '@angular/core';
import {async, ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing';
import {By} from '@angular/platform-browser';
import {WizardModule} from '../wizard.module';
import {ArchwizardModule} from '../archwizard.module';
import {WizardState} from '../navigation/wizard-state.model';
import {NavigationMode} from '../navigation/navigation-mode.interface';
import {ResetWizardDirective} from './reset-wizard.directive';
Expand Down Expand Up @@ -41,7 +41,7 @@ describe('ResetWizardDirective', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WizardTestComponent],
imports: [WizardModule]
imports: [ArchwizardModule]
}).compileComponents();
}));

Expand Down
4 changes: 2 additions & 2 deletions src/directives/selected-step.directive.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Component} from '@angular/core';
import {async, ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing';
import {By} from '@angular/platform-browser';
import {WizardModule} from '../wizard.module';
import {ArchwizardModule} from '../archwizard.module';
import {WizardState} from '../navigation/wizard-state.model';
import {NavigationMode} from '../navigation/navigation-mode.interface';

Expand Down Expand Up @@ -34,7 +34,7 @@ describe('SelectedStepDirective', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WizardTestComponent],
imports: [WizardModule]
imports: [ArchwizardModule]
}).compileComponents();
}));

Expand Down
4 changes: 2 additions & 2 deletions src/directives/wizard-completion-step.directive.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {Component} from '@angular/core';
import {MovingDirection} from '../util/moving-direction.enum';
import {By} from '@angular/platform-browser';
import {WizardModule} from '../wizard.module';
import {ArchwizardModule} from '../archwizard.module';
import {WizardCompletionStepDirective} from './wizard-completion-step.directive';
import {NavigationMode} from '../navigation/navigation-mode.interface';
import {WizardState} from '../navigation/wizard-state.model';
Expand Down Expand Up @@ -51,7 +51,7 @@ describe('WizardCompletionStepDirective', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WizardTestComponent],
imports: [WizardModule]
imports: [ArchwizardModule]
}).compileComponents();
}));

Expand Down
4 changes: 2 additions & 2 deletions src/directives/wizard-step-title.directive.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {TestBed, async, ComponentFixture} from '@angular/core/testing';
import {By} from '@angular/platform-browser';

import {WizardComponent} from '../components/wizard.component';
import {WizardModule} from '../wizard.module';
import {ArchwizardModule} from '../archwizard.module';


@Component({
Expand Down Expand Up @@ -40,7 +40,7 @@ describe('PreviousStepDirective', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WizardTestComponent],
imports: [WizardModule]
imports: [ArchwizardModule]
}).compileComponents();
}));

Expand Down
4 changes: 2 additions & 2 deletions src/directives/wizard-step.directive.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {Component, forwardRef, Host, ViewChild} from '@angular/core';
import {MovingDirection} from '../util/moving-direction.enum';
import {By} from '@angular/platform-browser';
import {WizardModule} from '../wizard.module';
import {ArchwizardModule} from '../archwizard.module';
import {WizardStepDirective} from './wizard-step.directive';
import {WizardState} from '../navigation/wizard-state.model';
import {NavigationMode} from '../navigation/navigation-mode.interface';
Expand Down Expand Up @@ -61,7 +61,7 @@ describe('WizardStepDirective', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WizardTestComponent, WizardStepTestComponent],
imports: [WizardModule]
imports: [ArchwizardModule]
}).compileComponents();
}));

Expand Down
7 changes: 1 addition & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/**
* Created by marc on 29.12.16.
*/

export {WizardModule} from './wizard.module';
export * from './components';
export * from './directives';
export * from './navigation';
export * from './util';

export {ArchwizardModule} from './archwizard.module';
4 changes: 2 additions & 2 deletions src/navigation/free-navigation-mode.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {async, ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing';
import {Component, ViewChild} from '@angular/core';
import {By} from '@angular/platform-browser';
import {WizardModule} from '../wizard.module';
import {ArchwizardModule} from '../archwizard.module';
import {WizardState} from './wizard-state.model';
import {WizardComponent} from '../components/wizard.component';
import {NavigationMode} from './navigation-mode.interface';
Expand Down Expand Up @@ -32,7 +32,7 @@ describe('FreeNavigationMode', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WizardTestComponent],
imports: [WizardModule]
imports: [ArchwizardModule]
}).compileComponents();
}));

Expand Down
6 changes: 3 additions & 3 deletions src/navigation/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export {FreeNavigationMode} from './free-navigation-mode';
export {NavigationMode} from './navigation-mode.interface';
export * from './navigation-mode.provider';
export {StrictNavigationMode} from './strict-navigation-mode';
export {SemiStrictNavigationMode} from './semi-strict-navigation-mode';
export {FreeNavigationMode} from './free-navigation-mode';
export {WizardState} from './wizard-state.model'
export {StrictNavigationMode} from './strict-navigation-mode';
export {WizardState} from './wizard-state.model';
4 changes: 2 additions & 2 deletions src/navigation/semi-strict-navigation-mode.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {async, ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing';
import {Component, ViewChild} from '@angular/core';
import {By} from '@angular/platform-browser';
import {WizardModule} from '../wizard.module';
import {ArchwizardModule} from '../archwizard.module';
import {WizardState} from './wizard-state.model';
import {WizardComponent} from '../components/wizard.component';
import {NavigationMode} from './navigation-mode.interface';
Expand Down Expand Up @@ -32,7 +32,7 @@ describe('SemiStrictNavigationMode', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WizardTestComponent],
imports: [WizardModule]
imports: [ArchwizardModule]
}).compileComponents();
}));

Expand Down
4 changes: 2 additions & 2 deletions src/navigation/strict-navigation-mode.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {async, ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/t
import {Component, ViewChild} from '@angular/core';
import {By} from '@angular/platform-browser';
import {WizardStep} from '../util/wizard-step.interface';
import {WizardModule} from '../wizard.module';
import {ArchwizardModule} from '../archwizard.module';
import {WizardState} from './wizard-state.model';
import {WizardComponent} from '../components/wizard.component';
import {NavigationMode} from './navigation-mode.interface';
Expand Down Expand Up @@ -53,7 +53,7 @@ describe('StrictNavigationMode', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WizardTestComponent],
imports: [WizardModule]
imports: [ArchwizardModule]
}).compileComponents();
}));

Expand Down
4 changes: 2 additions & 2 deletions src/navigation/wizard-state.model.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {async, ComponentFixture, TestBed} from '@angular/core/testing';
import {Component} from '@angular/core';
import {By} from '@angular/platform-browser';
import {WizardStep} from '../util/wizard-step.interface';
import {WizardModule} from '../wizard.module';
import {ArchwizardModule} from '../archwizard.module';
import {WizardState} from './wizard-state.model';

@Component({
Expand Down Expand Up @@ -46,7 +46,7 @@ describe('WizardState', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WizardTestComponent],
imports: [WizardModule]
imports: [ArchwizardModule]
}).compileComponents();
}));

Expand Down
Loading

0 comments on commit 9ca502a

Please sign in to comment.