Skip to content

Commit b26b0ab

Browse files
crisbetoalxhub
authored andcommitted
fix(docs-infra): host binding type issues (angular#60481)
Resolves typing issues inside host binding in adev. PR Close angular#60481
1 parent bdd5e20 commit b26b0ab

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

adev/shared-docs/components/viewers/docs-viewer/docs-viewer.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class DocViewer implements OnChanges {
7979
private readonly injector = inject(Injector);
8080
private readonly appRef = inject(ApplicationRef);
8181

82-
private animateContent = false;
82+
protected animateContent = false;
8383
private readonly pendingTasks = inject(PendingTasks);
8484

8585
private readonly isBrowser = isPlatformBrowser(inject(PLATFORM_ID));

adev/shared-docs/directives/click-outside/click-outside.directive.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@ export class ClickOutside {
2222
private readonly document = inject(DOCUMENT);
2323
private readonly elementRef = inject(ElementRef<HTMLElement>);
2424

25-
onClick($event: PointerEvent): void {
25+
onClick(event: MouseEvent): void {
2626
if (
27-
!this.elementRef.nativeElement.contains($event.target) &&
28-
!this.wasClickedOnIgnoredElement($event)
27+
!this.elementRef.nativeElement.contains(event.target) &&
28+
!this.wasClickedOnIgnoredElement(event)
2929
) {
3030
this.clickOutside.emit();
3131
}
3232
}
3333

34-
private wasClickedOnIgnoredElement($event: PointerEvent): boolean {
34+
private wasClickedOnIgnoredElement(event: MouseEvent): boolean {
3535
if (this.ignoredElementsIds.length === 0) {
3636
return false;
3737
}
3838

3939
return this.ignoredElementsIds.some((elementId) => {
4040
const element = this.document.getElementById(elementId);
41-
const target = $event.target as Node;
41+
const target = event.target as Node;
4242
const contains = element?.contains(target);
4343
return contains;
4444
});

adev/src/app/editor/embedded-editor.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="adev-editor-container" #editorContainer>
22
<as-split class="docs-editor" [direction]="splitDirection" restrictMove="true" gutterSize="5">
3-
<as-split-area class="adev-left-side" [size]="50">
3+
<as-split-area class="adev-left-side" size="50">
44
<!-- Code Editor -->
55
@if (!displayOnlyTerminal()) {
66
<docs-tutorial-code-editor class="adev-tutorial-code-editor" />
@@ -15,13 +15,13 @@
1515
}
1616
</as-split-area>
1717

18-
<as-split-area [size]="50">
18+
<as-split-area size="50">
1919
<!-- Preview, Terminal & Console -->
2020
@if (!displayOnlyTerminal()) {
2121
<as-split class="docs-right-side" direction="vertical" restrictMove="true" gutterSize="5">
2222
<!-- Preview Section: for larger screens -->
2323
@if (!displayPreviewInMatTabGroup()) {
24-
<as-split-area [size]="50">
24+
<as-split-area size="50">
2525
<!-- Preview Section: for larger screens -->
2626
<div class="adev-preview-section">
2727
<div class="adev-preview-header">
@@ -34,7 +34,7 @@
3434
</as-split-area>
3535
}
3636

37-
<as-split-area class="docs-editor-tabs-and-refresh" [size]="50">
37+
<as-split-area class="docs-editor-tabs-and-refresh" size="50">
3838
<!-- Container to hide preview, console and footer when only the interactive terminal is used -->
3939
<mat-tab-group class="docs-editor-tabs" animationDuration="0ms" mat-stretch-tabs="false">
4040
@if (displayPreviewInMatTabGroup()) {

0 commit comments

Comments
 (0)