-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vladislav
authored and
Vladislav
committed
Apr 26, 2022
1 parent
f006893
commit 8d1ba93
Showing
4 changed files
with
265 additions
and
206 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
25 changes: 25 additions & 0 deletions
25
projects/ngx-mask-lib/src/test/utils/cypress-test-shadow-dom.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,25 @@ | ||
import { Component, Input, ViewEncapsulation } from '@angular/core'; | ||
import { FormControl } from '@angular/forms'; | ||
|
||
@Component({ | ||
encapsulation: ViewEncapsulation.ShadowDom, | ||
selector: 'mask-cypress-test-mask', | ||
template: ` | ||
<input | ||
id="masked" | ||
[formControl]="form" | ||
[mask]="mask" | ||
[hiddenInput]="hiddenInput" | ||
[prefix]="prefix" | ||
/> | ||
`, | ||
}) | ||
export class CypressTestMaskShadowDomComponent { | ||
@Input() public mask!: string | null; | ||
|
||
@Input() public hiddenInput: boolean = false; | ||
|
||
@Input() public prefix: string = ''; | ||
|
||
public form: FormControl = new FormControl(''); | ||
} |
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
Oops, something went wrong.