From ad40f8c78d2ca725aa39dee45da40b2bdf72a6c6 Mon Sep 17 00:00:00 2001 From: NWalker4483 Date: Mon, 12 Apr 2021 11:14:39 -0400 Subject: [PATCH] Updated Dialog Htmls --- .../script-doc-dialog.component.html | 10 ++++++++ .../script-doc-dialog.component.scss | 0 .../script-doc-dialog.component.spec.ts | 25 +++++++++++++++++++ .../script-doc-dialog.component.ts | 17 +++++++++++++ .../test-email-dialog.component.html | 25 +++++++++++++++++++ .../test-email-dialog.component.scss | 0 .../test-email-dialog.component.spec.ts | 25 +++++++++++++++++++ .../test-email-dialog.component.ts | 15 +++++++++++ .../test-markdown-dialog.component.html | 11 ++++++++ .../test-markdown-dialog.component.scss | 0 .../test-markdown-dialog.component.spec.ts | 25 +++++++++++++++++++ .../test-markdown-dialog.component.ts | 12 +++++++++ src/app/app.module.ts | 6 +++++ tsconfig.json | 2 +- 14 files changed, 172 insertions(+), 1 deletion(-) create mode 100644 src/app/_dialogs/script-doc-dialog/script-doc-dialog.component.html create mode 100644 src/app/_dialogs/script-doc-dialog/script-doc-dialog.component.scss create mode 100644 src/app/_dialogs/script-doc-dialog/script-doc-dialog.component.spec.ts create mode 100644 src/app/_dialogs/script-doc-dialog/script-doc-dialog.component.ts create mode 100644 src/app/_dialogs/test-email-dialog/test-email-dialog.component.html create mode 100644 src/app/_dialogs/test-email-dialog/test-email-dialog.component.scss create mode 100644 src/app/_dialogs/test-email-dialog/test-email-dialog.component.spec.ts create mode 100644 src/app/_dialogs/test-email-dialog/test-email-dialog.component.ts create mode 100644 src/app/_dialogs/test-markdown-dialog/test-markdown-dialog.component.html create mode 100644 src/app/_dialogs/test-markdown-dialog/test-markdown-dialog.component.scss create mode 100644 src/app/_dialogs/test-markdown-dialog/test-markdown-dialog.component.spec.ts create mode 100644 src/app/_dialogs/test-markdown-dialog/test-markdown-dialog.component.ts diff --git a/src/app/_dialogs/script-doc-dialog/script-doc-dialog.component.html b/src/app/_dialogs/script-doc-dialog/script-doc-dialog.component.html new file mode 100644 index 0000000..ffc1ddd --- /dev/null +++ b/src/app/_dialogs/script-doc-dialog/script-doc-dialog.component.html @@ -0,0 +1,10 @@ + + +

{{data.name}}

+ +

{{data.description}}

+ +
+ +
+
diff --git a/src/app/_dialogs/script-doc-dialog/script-doc-dialog.component.scss b/src/app/_dialogs/script-doc-dialog/script-doc-dialog.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/_dialogs/script-doc-dialog/script-doc-dialog.component.spec.ts b/src/app/_dialogs/script-doc-dialog/script-doc-dialog.component.spec.ts new file mode 100644 index 0000000..c2c7b52 --- /dev/null +++ b/src/app/_dialogs/script-doc-dialog/script-doc-dialog.component.spec.ts @@ -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; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ ScriptDocDialogComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(ScriptDocDialogComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/_dialogs/script-doc-dialog/script-doc-dialog.component.ts b/src/app/_dialogs/script-doc-dialog/script-doc-dialog.component.ts new file mode 100644 index 0000000..12c3d16 --- /dev/null +++ b/src/app/_dialogs/script-doc-dialog/script-doc-dialog.component.ts @@ -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, + @Inject(MAT_DIALOG_DATA) public data: string + ) { + } +} diff --git a/src/app/_dialogs/test-email-dialog/test-email-dialog.component.html b/src/app/_dialogs/test-email-dialog/test-email-dialog.component.html new file mode 100644 index 0000000..fae51b3 --- /dev/null +++ b/src/app/_dialogs/test-email-dialog/test-email-dialog.component.html @@ -0,0 +1,25 @@ + +

+ + Send To: + + +

+ +

+ + Subject + + +

+

+ + Textarea + + +

+
+ + +
+
\ No newline at end of file diff --git a/src/app/_dialogs/test-email-dialog/test-email-dialog.component.scss b/src/app/_dialogs/test-email-dialog/test-email-dialog.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/_dialogs/test-email-dialog/test-email-dialog.component.spec.ts b/src/app/_dialogs/test-email-dialog/test-email-dialog.component.spec.ts new file mode 100644 index 0000000..de9ad11 --- /dev/null +++ b/src/app/_dialogs/test-email-dialog/test-email-dialog.component.spec.ts @@ -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; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ TestEmailDialogComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(TestEmailDialogComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/_dialogs/test-email-dialog/test-email-dialog.component.ts b/src/app/_dialogs/test-email-dialog/test-email-dialog.component.ts new file mode 100644 index 0000000..50afdf4 --- /dev/null +++ b/src/app/_dialogs/test-email-dialog/test-email-dialog.component.ts @@ -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 { + } + +} diff --git a/src/app/_dialogs/test-markdown-dialog/test-markdown-dialog.component.html b/src/app/_dialogs/test-markdown-dialog/test-markdown-dialog.component.html new file mode 100644 index 0000000..92f9180 --- /dev/null +++ b/src/app/_dialogs/test-markdown-dialog/test-markdown-dialog.component.html @@ -0,0 +1,11 @@ + +

+ + Textarea + + +

+
+ +
+
diff --git a/src/app/_dialogs/test-markdown-dialog/test-markdown-dialog.component.scss b/src/app/_dialogs/test-markdown-dialog/test-markdown-dialog.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/_dialogs/test-markdown-dialog/test-markdown-dialog.component.spec.ts b/src/app/_dialogs/test-markdown-dialog/test-markdown-dialog.component.spec.ts new file mode 100644 index 0000000..27d9505 --- /dev/null +++ b/src/app/_dialogs/test-markdown-dialog/test-markdown-dialog.component.spec.ts @@ -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; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ TestMarkdownDialogComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(TestMarkdownDialogComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/_dialogs/test-markdown-dialog/test-markdown-dialog.component.ts b/src/app/_dialogs/test-markdown-dialog/test-markdown-dialog.component.ts new file mode 100644 index 0000000..6383f60 --- /dev/null +++ b/src/app/_dialogs/test-markdown-dialog/test-markdown-dialog.component.ts @@ -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() { } + +} diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 64586a5..85590bb 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -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, diff --git a/tsconfig.json b/tsconfig.json index d9c7cfe..0a01ead 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -29,5 +29,5 @@ ], "include": [ "src/**/*.d.ts" - ] + ], }