-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update for Angular 8 and Material design
BREAKING CHANGE: Component now use Angular's reactive forms and material design styling. Support for template based forms is removed.
- Loading branch information
Showing
51 changed files
with
1,260 additions
and
227,061 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
Empty file.
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,38 +1,42 @@ | ||
<div style="text-align:center"> | ||
<h1>Angular 8+ Cron expression editor</h1> | ||
</div> | ||
<section class="mat-typography demo-container"> | ||
|
||
<div class="row"> | ||
<div class="col col-sm-2"></div> | ||
<div class="col-sm-8"> | ||
<div class="card card-sm-8"> | ||
<div class="card-header text-white bg-dark mb-3 form-group form-inline"> | ||
<label class="col-form-label">Select your cron flavor: | ||
<select class="form-control" (change)="cronFlavorChange()" [(ngModel)]="cronOptions.cronFlavor"> | ||
<option [ngValue]="'quartz'"> | ||
quartz | ||
</option> | ||
<option [ngValue]="'standard'"> | ||
standard | ||
</option> | ||
</select> | ||
</label> | ||
</div> | ||
<div class="card-body"> | ||
<cron-editor #cronEditorDemo [(cron)]="cronExpression" [disabled]="isCronDisabled" [(options)]="cronOptions">Cron here...</cron-editor> | ||
</div> | ||
<div class="card-footer text-center"> | ||
<div class="alert alert-info"> | ||
<h1>Angular 8+ Cron Expression Editor</h1> | ||
|
||
<mat-card class="demo-card"> | ||
<mat-card-header class="demo-card-header"> | ||
|
||
<mat-card-title> | ||
Select your cron flavor | ||
</mat-card-title> | ||
<div> | ||
<mat-form-field> | ||
<mat-label>Flavor</mat-label> | ||
<mat-select (change)="cronFlavorChange()" [(ngModel)]="cronOptions.cronFlavor"> | ||
<mat-option [value]="'quartz'"> | ||
Quartz | ||
</mat-option> | ||
|
||
<mat-option [value]="'standard'"> | ||
Standard | ||
</mat-option> | ||
</mat-select> | ||
</mat-form-field> | ||
</div> | ||
</mat-card-header> | ||
|
||
<mat-card-content class="demo-card-content"> | ||
<form> | ||
<cron-editor #cronEditorDemo [(cron)]="cronExpression" [options]="cronOptions">Cron here...</cron-editor> | ||
</form> | ||
</mat-card-content> | ||
|
||
<mat-card-footer class="demo-card-footer"> | ||
<div> | ||
<h3> | ||
<b>{{cronExpression}}</b> | ||
<b>Expression: {{cronExpression}}</b> | ||
</h3> | ||
</div> | ||
<div class="form-group form-inline" > | ||
<label class="col-form-label mx-auto">Enter a custom cron expression: | ||
<input class="form-control" [(ngModel)]="cronExpression" /> </label> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col col-sm-2"></div> | ||
</div> | ||
</mat-card-footer> | ||
|
||
</mat-card> | ||
</section> |
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,24 @@ | ||
@import '~@angular/material/theming'; | ||
|
||
.demo-container { | ||
margin: 30px; | ||
} | ||
|
||
.demo-card { | ||
@include mat-elevation(2); | ||
position: absolute; | ||
} | ||
|
||
.demo-card-content { | ||
} | ||
|
||
.demo-card-header { | ||
padding-top: 8px; | ||
padding-bottom: 8px; | ||
align-items: center; | ||
} | ||
|
||
.demo-card-footer { | ||
margin: 0px; | ||
padding: 16px; | ||
} |
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 was deleted.
Oops, something went wrong.
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,17 @@ | ||
/* You can add global styles to this file, and also import other style files */ | ||
|
||
@import '~@angular/material/theming'; | ||
|
||
@include mat-core(); | ||
|
||
$primary: mat-palette($mat-deep-purple); | ||
$accent: mat-palette($mat-green, A200, A100, A400); | ||
$warn: mat-palette($mat-red); | ||
|
||
$theme: mat-light-theme($primary, $accent, $warn); | ||
|
||
@include angular-material-theme($theme); | ||
|
||
|
||
html, body { height: 100%; } | ||
body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; } |
Oops, something went wrong.