• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

worktile / slate-angular / 543eb906-9e4d-47ae-b0a3-bf4f680c78ba

pending completion
543eb906-9e4d-47ae-b0a3-bf4f680c78ba

push

circleci

Maple13
build: optimizing angular 15 upgrade

267 of 876 branches covered (30.48%)

Branch coverage included in aggregate %.

682 of 1485 relevant lines covered (45.93%)

30.73 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

42.86
/packages/src/components/text/void-text.component.ts
1

2
import {
3
    Component,
4
    ChangeDetectionStrategy,
5
    OnInit,
6
    OnChanges
7
} from '@angular/core';
8
import { BaseTextComponent } from '../../view/base';
9
import { AngularEditor } from '../../plugins/angular-editor';
10

11
@Component({
12
    selector: 'span[slateVoidText]',
13
    template: `<slate-leaves [context]="context" [viewContext]="viewContext" [viewContext]="viewContext"></slate-leaves>`,
14
    changeDetection: ChangeDetectionStrategy.OnPush,
15
    host: {
16
        '[attr.contenteditable]': 'isLeafBlock',
17
        'data-slate-spacer': "true",
18
        'class': 'slate-spacer',
19
        'data-slate-node': 'text'
20
    }
21
})
22
export class SlateVoidTextComponent extends BaseTextComponent implements OnInit, OnChanges {
1✔
23
    isLeafBlock: boolean;
24

25
    ngOnInit() {
26
        this.isLeafBlock = AngularEditor.isLeafBlock(this.viewContext.editor, this.context.parent);
1✔
27
        super.ngOnInit();
1✔
28
    }
29

30
    ngOnChanges() {
31
        if (!this.initialized) {
×
32
            return;
×
33
        }
34
        this.isLeafBlock = AngularEditor.isLeafBlock(this.viewContext.editor, this.context.parent);
×
35
    }
36
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc