File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
components/viewers/docs-viewer Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export class DocViewer implements OnChanges {
79
79
private readonly injector = inject ( Injector ) ;
80
80
private readonly appRef = inject ( ApplicationRef ) ;
81
81
82
- private animateContent = false ;
82
+ protected animateContent = false ;
83
83
private readonly pendingTasks = inject ( PendingTasks ) ;
84
84
85
85
private readonly isBrowser = isPlatformBrowser ( inject ( PLATFORM_ID ) ) ;
Original file line number Diff line number Diff line change @@ -22,23 +22,23 @@ export class ClickOutside {
22
22
private readonly document = inject ( DOCUMENT ) ;
23
23
private readonly elementRef = inject ( ElementRef < HTMLElement > ) ;
24
24
25
- onClick ( $ event : PointerEvent ) : void {
25
+ onClick ( event : MouseEvent ) : void {
26
26
if (
27
- ! this . elementRef . nativeElement . contains ( $ event. target ) &&
28
- ! this . wasClickedOnIgnoredElement ( $ event)
27
+ ! this . elementRef . nativeElement . contains ( event . target ) &&
28
+ ! this . wasClickedOnIgnoredElement ( event )
29
29
) {
30
30
this . clickOutside . emit ( ) ;
31
31
}
32
32
}
33
33
34
- private wasClickedOnIgnoredElement ( $ event : PointerEvent ) : boolean {
34
+ private wasClickedOnIgnoredElement ( event : MouseEvent ) : boolean {
35
35
if ( this . ignoredElementsIds . length === 0 ) {
36
36
return false ;
37
37
}
38
38
39
39
return this . ignoredElementsIds . some ( ( elementId ) => {
40
40
const element = this . document . getElementById ( elementId ) ;
41
- const target = $ event. target as Node ;
41
+ const target = event . target as Node ;
42
42
const contains = element ?. contains ( target ) ;
43
43
return contains ;
44
44
} ) ;
Original file line number Diff line number Diff line change 1
1
< div class ="adev-editor-container " #editorContainer >
2
2
< 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 ">
4
4
<!-- Code Editor -->
5
5
@if (!displayOnlyTerminal()) {
6
6
< docs-tutorial-code-editor class ="adev-tutorial-code-editor " />
15
15
}
16
16
</ as-split-area >
17
17
18
- < as-split-area [ size] ="50 ">
18
+ < as-split-area size ="50 ">
19
19
<!-- Preview, Terminal & Console -->
20
20
@if (!displayOnlyTerminal()) {
21
21
< as-split class ="docs-right-side " direction ="vertical " restrictMove ="true " gutterSize ="5 ">
22
22
<!-- Preview Section: for larger screens -->
23
23
@if (!displayPreviewInMatTabGroup()) {
24
- < as-split-area [ size] ="50 ">
24
+ < as-split-area size ="50 ">
25
25
<!-- Preview Section: for larger screens -->
26
26
< div class ="adev-preview-section ">
27
27
< div class ="adev-preview-header ">
34
34
</ as-split-area >
35
35
}
36
36
37
- < as-split-area class ="docs-editor-tabs-and-refresh " [ size] ="50 ">
37
+ < as-split-area class ="docs-editor-tabs-and-refresh " size ="50 ">
38
38
<!-- Container to hide preview, console and footer when only the interactive terminal is used -->
39
39
< mat-tab-group class ="docs-editor-tabs " animationDuration ="0ms " mat-stretch-tabs ="false ">
40
40
@if (displayPreviewInMatTabGroup()) {
You can’t perform that action at this time.
0 commit comments