-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update dependency ng-mocks to v13.0.0
- Loading branch information
Showing
43 changed files
with
795 additions
and
68 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/.angular | ||
/node_modules | ||
/test-reports |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
import { | ||
Component, | ||
ContentChild, | ||
ContentChildren, | ||
Directive, | ||
EventEmitter, | ||
HostBinding, | ||
HostListener, | ||
Input, | ||
Output, | ||
QueryList, | ||
} from '@angular/core'; | ||
|
||
@Directive({ | ||
selector: 'base1', | ||
}) | ||
export class BaseCls1 {} | ||
|
||
@Directive({ | ||
selector: 'base2', | ||
}) | ||
export class BaseCls2 {} | ||
|
||
@Directive({ | ||
selector: 'base3', | ||
}) | ||
export class BaseCls3 {} | ||
|
||
@Directive({ | ||
selector: 'override1', | ||
}) | ||
export class OverrideCls1 {} | ||
|
||
@Directive({ | ||
selector: 'override2', | ||
}) | ||
export class OverrideCls2 {} | ||
|
||
@Directive({ | ||
selector: 'override3', | ||
}) | ||
export class OverrideCls3 {} | ||
|
||
@Directive({ | ||
selector: 'div', | ||
}) | ||
export class DivCls { | ||
@Input() public prop: number | null = null; | ||
} | ||
|
||
@Directive({ | ||
selector: 'base1', | ||
}) | ||
@Directive({ | ||
selector: 'base2', | ||
}) | ||
export class BaseCls { | ||
@ContentChild(DivCls) public contentChildBase?: DivCls; | ||
@ContentChildren(DivCls) public contentChildrenBase?: QueryList<DivCls>; | ||
|
||
@HostBinding('attr.base1') public hostBase1: any; | ||
@HostBinding('attr.base2') public hostBase2: any; | ||
public hostBase3 = ''; | ||
|
||
@Output() @Input() public mix1: EventEmitter<void> | string = new EventEmitter(); | ||
|
||
@Input() @Output() public mix2: EventEmitter<void> | string = new EventEmitter(); | ||
@Input() public prop1: EventEmitter<void> | string = ''; | ||
|
||
@Input('prop2alias') public prop2: EventEmitter<void> | string = ''; | ||
@Input('prop3alias') public prop3: EventEmitter<void> | string = ''; | ||
|
||
@Input() public propBase1: EventEmitter<void> | string = ''; | ||
@Output() public propBase2 = new EventEmitter<void>(); | ||
|
||
@HostListener('focus') public hostBaseHandler3() { | ||
this.hostBase3 = 'base3'; | ||
} | ||
} | ||
|
||
@Component({ | ||
selector: 'override1', | ||
template: `override1<ng-content></ng-content>`, | ||
}) | ||
@Component({ | ||
selector: 'override2', | ||
template: `override2<ng-content></ng-content>`, | ||
}) | ||
export class OverrideCls extends BaseCls { | ||
@ContentChild(DivCls) public contentChildOverride?: DivCls; | ||
@ContentChildren(DivCls) public contentChildrenOverride?: QueryList<DivCls>; | ||
|
||
@HostBinding('attr.override2') public hostBase2: any; | ||
@HostBinding('attr.override1') public hostOverride1: any; | ||
public hostOverride3 = ''; | ||
|
||
@Output() public prop1: EventEmitter<void> | string = new EventEmitter(); | ||
@Input('override2alias') public prop2: EventEmitter<void> | string = ''; | ||
|
||
@Input('override3alias') public prop3: EventEmitter<void> | string = ''; | ||
@Input() public propOverride1: EventEmitter<void> | string = ''; | ||
|
||
@Output() public propOverride2 = new EventEmitter<void>(); | ||
|
||
@HostListener('click') public hostBaseHandler3() { | ||
this.hostOverride3 = 'override3'; | ||
} | ||
} |
Oops, something went wrong.