-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #287 from mansurskTarento/kcm-mapping-video
Kcm mapping video
- Loading branch information
Showing
9 changed files
with
145 additions
and
7 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
8 changes: 8 additions & 0 deletions
8
...ct/ws/app/src/lib/routes/home/components/demo-video-popup/demo-video-popup.component.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,8 @@ | ||
<div class="video-content"> | ||
<div class="popup-close"> | ||
<mat-icon mat-dialog-close class="close-icon">cancel</mat-icon> | ||
</div> | ||
<video disablePictureInPicture="true" controls controlsList="nodownload" height="100%" width="100%" [autoplay]="true"> | ||
<source [src]="getVideoLink" type="video/mp4"> | ||
</video> | ||
</div> |
27 changes: 27 additions & 0 deletions
27
...ct/ws/app/src/lib/routes/home/components/demo-video-popup/demo-video-popup.component.scss
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,27 @@ | ||
.video-content { | ||
position: relative; | ||
height: 100%; | ||
} | ||
|
||
.popup-close { | ||
position: absolute; | ||
right: -55px; | ||
top: -55px; | ||
color: #2f2e2e; | ||
height: 20px; | ||
width: 20px; | ||
background-color: white; | ||
border-radius: 11px; | ||
|
||
.close-icon { | ||
font-size: 30px; | ||
margin-top: -4px; | ||
margin-left: -3px; | ||
pointer-events: all; | ||
cursor: pointer; | ||
} | ||
} | ||
|
||
::ng-deep.overflow-visable .mat-dialog-container { | ||
overflow: visible !important; | ||
} |
25 changes: 25 additions & 0 deletions
25
...ws/app/src/lib/routes/home/components/demo-video-popup/demo-video-popup.component.spec.ts
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,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing' | ||
|
||
import { DemoVideoPopupComponent } from './demo-video-popup.component' | ||
|
||
describe('DemoVideoPopupComponent', () => { | ||
let component: DemoVideoPopupComponent | ||
let fixture: ComponentFixture<DemoVideoPopupComponent> | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [DemoVideoPopupComponent], | ||
}) | ||
.compileComponents() | ||
})) | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(DemoVideoPopupComponent) | ||
component = fixture.componentInstance | ||
fixture.detectChanges() | ||
}) | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy() | ||
}) | ||
}) |
28 changes: 28 additions & 0 deletions
28
project/ws/app/src/lib/routes/home/components/demo-video-popup/demo-video-popup.component.ts
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,28 @@ | ||
import { Component, Inject, OnInit } from '@angular/core' | ||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material' | ||
import { DomSanitizer } from '@angular/platform-browser' | ||
|
||
@Component({ | ||
selector: 'ws-app-demo-video-popup', | ||
templateUrl: './demo-video-popup.component.html', | ||
styleUrls: ['./demo-video-popup.component.scss'], | ||
}) | ||
export class DemoVideoPopupComponent implements OnInit { | ||
videoLink = '' | ||
|
||
constructor( | ||
public dialogRef: MatDialogRef<DemoVideoPopupComponent>, | ||
@Inject(MAT_DIALOG_DATA) public dialogData: any, | ||
private domSanitizer: DomSanitizer | ||
) { | ||
this.videoLink = this.dialogData.videoLink | ||
} | ||
|
||
ngOnInit() { | ||
} | ||
|
||
get getVideoLink() { | ||
return this.domSanitizer.bypassSecurityTrustResourceUrl(this.videoLink) | ||
} | ||
|
||
} |
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
16 changes: 16 additions & 0 deletions
16
project/ws/app/src/lib/routes/home/routes/kcm-mapping/kcm-mapping.component.scss
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,3 +1,19 @@ | ||
.font-bold-imp{ | ||
font-weight: 700 !important; | ||
} | ||
|
||
.videoDemo { | ||
.videoDemoVideo { | ||
width: 173px; | ||
height: 102px; | ||
border-radius: 5px; | ||
background-color: #FDEAD5; | ||
font-weight: 600; | ||
pointer-events: all; | ||
cursor: pointer; | ||
|
||
.video_icon { | ||
font-size: 32px; | ||
} | ||
} | ||
} |
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