Updated Dialog Htmls

This commit is contained in:
NWalker4483 2021-04-12 11:14:39 -04:00
parent 5bf82abe36
commit ad40f8c78d
14 changed files with 172 additions and 1 deletions

View File

@ -0,0 +1,10 @@
<mat-card fxLayoutGap>
<p mat-dialog-title>{{data.name}}</p>
<p display-2>{{data.description}}</p>
<div mat-dialog-actions>
<button mat-button [mat-dialog-close]='true' ">Exit</button>
</div>
</mat-card>

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ScriptDocDialogComponent } from './script-doc-dialog.component';
describe('ScriptDocDialogComponent', () => {
let component: ScriptDocDialogComponent;
let fixture: ComponentFixture<ScriptDocDialogComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ScriptDocDialogComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ScriptDocDialogComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,17 @@
import { Component, Inject, OnInit, ViewChild } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
@Component({
selector: 'app-script-doc-dialog',
templateUrl: './script-doc-dialog.component.html',
styleUrls: ['./script-doc-dialog.component.scss']
})
export class ScriptDocDialogComponent {
constructor(
public dialogRef: MatDialogRef<ScriptDocDialogComponent>,
@Inject(MAT_DIALOG_DATA) public data: string
) {
}
}

View File

@ -0,0 +1,25 @@
<mat-card fxLayoutGap>
<p>
<mat-form-field appearance="fill">
<mat-label>Send To:</mat-label>
<input matInput>
</mat-form-field>
</p>
<p>
<mat-form-field appearance="fill">
<mat-label>Subject</mat-label>
<input matInput>
</mat-form-field>
</p>
<p>
<mat-form-field appearance="fill">
<mat-label>Textarea</mat-label>
<textarea matInput></textarea>
</mat-form-field>
</p>
<div mat-dialog-actions>
<button mat-button [mat-dialog-close]='true' ">Exit</button>
<button mat-raised-button color=" primary" (click)="onConfirm()">Send</button>
</div>
</mat-card>

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { TestEmailDialogComponent } from './test-email-dialog.component';
describe('TestEmailDialogComponent', () => {
let component: TestEmailDialogComponent;
let fixture: ComponentFixture<TestEmailDialogComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ TestEmailDialogComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(TestEmailDialogComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-test-email-dialog',
templateUrl: './test-email-dialog.component.html',
styleUrls: ['./test-email-dialog.component.scss']
})
export class TestEmailDialogComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

View File

@ -0,0 +1,11 @@
<mat-card fxLayoutGap>
<p>
<mat-form-field appearance="fill">
<mat-label>Textarea</mat-label>
<textarea matInput></textarea>
</mat-form-field>
</p>
<div mat-dialog-actions>
<button mat-button [mat-dialog-close]='true' ">Exit</button>
</div>
</mat-card>

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { TestMarkdownDialogComponent } from './test-markdown-dialog.component';
describe('TestMarkdownDialogComponent', () => {
let component: TestMarkdownDialogComponent;
let fixture: ComponentFixture<TestMarkdownDialogComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ TestMarkdownDialogComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(TestMarkdownDialogComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,12 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-test-markdown-dialog',
templateUrl: './test-markdown-dialog.component.html',
styleUrls: ['./test-markdown-dialog.component.scss']
})
export class TestMarkdownDialogComponent{
constructor() { }
}

View File

@ -53,6 +53,9 @@ import {WorkflowSpecListComponent} from './workflow-spec-list/workflow-spec-list
import {MatSidenavModule} from '@angular/material/sidenav';
import { ConfirmDialogComponent } from './_dialogs/confirm-dialog/confirm-dialog.component';
import {MatExpansionModule} from '@angular/material/expansion';
import { TestEmailDialogComponent } from './_dialogs/test-email-dialog/test-email-dialog.component';
import { TestMarkdownDialogComponent } from './_dialogs/test-markdown-dialog/test-markdown-dialog.component';
import { ScriptDocDialogComponent } from './_dialogs/script-doc-dialog/script-doc-dialog.component';
@Injectable()
export class ThisEnvironment implements AppEnvironment {
@ -103,6 +106,9 @@ export function getBaseHref(platformLocation: PlatformLocation): string {
ProtocolBuilderComponent,
ReferenceFilesComponent,
ConfirmDialogComponent,
TestEmailDialogComponent,
TestMarkdownDialogComponent,
ScriptDocDialogComponent,
],
imports: [
BrowserAnimationsModule,

View File

@ -29,5 +29,5 @@
],
"include": [
"src/**/*.d.ts"
]
],
}