forked from achimha/angular-archwizard
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed SASS warnings, use calc() for arithmetics
- Loading branch information
Achim Hasenmueller
committed
May 23, 2023
1 parent
d6f58f6
commit f6bbf04
Showing
15 changed files
with
253 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
{ | ||
"name": "angular-archwizard", | ||
"version": "8.0.0-develop", | ||
"name": "@achimha/angular-archwizard", | ||
"version": "14.0.1", | ||
"license": "MIT", | ||
"description": "An Angular 9+ module containing a wizard component and its supporting components and directives", | ||
"homepage": "https://github.com/madoar/angular-archwizard", | ||
"description": "An Angular 14+ module containing a wizard component and its supporting components and directives", | ||
"homepage": "https://github.com/achimha/angular-archwizard", | ||
"author": { | ||
"name": "Marc Arndt", | ||
"email": "[email protected]" | ||
}, | ||
"peerDependencies": { | ||
"@angular/core": ">=14 <= 16" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/madoar/angular-archwizard" | ||
"url": "https://github.com/achimha/angular-archwizard" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/madoar/angular-archwizard/issues" | ||
"url": "https://github.com/achimha/angular-archwizard/issues" | ||
}, | ||
"keywords": [ | ||
"angular", | ||
|
@@ -38,12 +41,13 @@ | |
"start": "ng serve", | ||
"build": "npm run build-js && npm run extract-scss-variables && npm run build-css", | ||
"build-js": "ng build", | ||
"extract-scss-variables": "extract-scss-variables ./dist/styles/archwizard.scss ./dist/styles/variables.scss", | ||
"build-css": "sass ./dist/styles/archwizard.scss ./dist/styles/archwizard.css", | ||
"extract-scss-variables": "extract-scss-variables ./dist/angular-archwizard/styles/archwizard.scss ./dist/angular-archwizard/styles/variables.scss", | ||
"build-css": "sass ./dist/angular-archwizard/styles/archwizard.scss ./dist/angular-archwizard/styles/archwizard.css", | ||
"test": "ng test", | ||
"coverage": "ng test --no-watch --code-coverage", | ||
"lint": "ng lint", | ||
"e2e": "ng e2e" | ||
"e2e": "ng e2e", | ||
"publish": "npm publish dist --access public" | ||
}, | ||
"devDependencies": { | ||
"@angular-devkit/build-angular": "^14.2.10", | ||
|
@@ -60,6 +64,7 @@ | |
"@types/jasmine": "~3.6.0", | ||
"@types/node": "^18.11.18", | ||
"codelyzer": "^6.0.2", | ||
"eslint": "^1.10.3", | ||
"jasmine-core": "~4.5.0", | ||
"jasmine-spec-reporter": "~7.0.0", | ||
"karma": "~6.4.1", | ||
|
@@ -75,11 +80,9 @@ | |
"rxjs": "~7.8.0", | ||
"sass": "^1.29.0", | ||
"ts-node": "~9.0.0", | ||
"tslint": "~6.1.0", | ||
"typescript": "~4.6.2", | ||
"zone.js": "~0.12.0" | ||
}, | ||
"dependencies": { | ||
"zone.js": "~0.12.0", | ||
"@types/estree": "^1.0.1", | ||
"tslib": "^2.4.1" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<h1>Angular Archwizard Test</h1> | ||
|
||
<aw-wizard> | ||
<aw-wizard-step stepTitle="Start"> | ||
<p>This wizard blabla</p> | ||
|
||
<button type="button" class="btn btn-primary float-end ms-1" awNextStep> | ||
Next | ||
</button> | ||
<button type="button" class="btn btn-primary float-end"> | ||
Cancel | ||
</button> | ||
</aw-wizard-step> | ||
|
||
<aw-wizard-step stepTitle="Second step"> | ||
<p>Blabla second step</p> | ||
|
||
<button type="button" class="btn btn-primary" awPreviousStep> | ||
Back | ||
</button> | ||
<button type="button" class="btn btn-primary float-end ms-1" awNextStep> | ||
Next | ||
</button> | ||
<button type="button" class="btn btn-primary float-end"> | ||
Cancel | ||
</button> | ||
</aw-wizard-step> | ||
|
||
<aw-wizard-step stepTitle='Last step'> | ||
|
||
<button type="button" class="btn btn-primary" awPreviousStep> | ||
Back | ||
</button> | ||
<button type="button" class="btn btn-primary float-end ms-1"> | ||
Finish | ||
</button> | ||
<button type="button" class="btn btn-primary float-end"> | ||
Cancel | ||
</button> | ||
</aw-wizard-step> | ||
|
||
</aw-wizard> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'wizard-test', | ||
templateUrl: './app.component.html' | ||
}) | ||
export class AppComponent { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { AppComponent } from './app.component'; | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
import { ArchwizardModule } from 'angular-archwizard'; | ||
|
||
@NgModule({ | ||
declarations: [ | ||
AppComponent | ||
], | ||
imports: [ | ||
BrowserModule, | ||
ArchwizardModule | ||
], | ||
providers: [ | ||
], | ||
bootstrap: [ | ||
AppComponent | ||
] | ||
}) | ||
export class AppModule { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Angular 13</title> | ||
<base href="/"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="icon" type="image/x-icon" href="favicon.ico"> | ||
</head> | ||
<body> | ||
<wizard-test></wizard-test> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | ||
import { AppModule } from './app.module'; | ||
import 'zone.js'; | ||
|
||
platformBrowserDynamic().bootstrapModule(AppModule) | ||
.catch(err => console.error(err)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { EventEmitter, Injectable } from '@angular/core'; | ||
import { WizardStep } from './wizard-step.interface'; | ||
|
||
@Injectable() | ||
export abstract class WizardBase { | ||
public abstract navBarDirection: string; | ||
public abstract get wizardSteps(): WizardStep[]; | ||
public abstract disableNavigationBar: boolean; | ||
public abstract get completed(): boolean; | ||
public abstract isNavigable(destinationIndex: number): boolean; | ||
public abstract getIndexOfStepWithId(stepId: string): number; | ||
public abstract getIndexOfStep(step: WizardStep): number; | ||
public abstract goToStep(destinationIndex: number, preFinalize?: EventEmitter<void>, postFinalize?: EventEmitter<void>): void; | ||
} |
Oops, something went wrong.