forked from evt-project/evt-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request evt-project#99 from evt-project/feature/incurable-…
…corruptions Feature/incurable corruptions
- Loading branch information
Showing
11 changed files
with
110 additions
and
6 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
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,4 @@ | ||
<span class="{{data.class}}" [evtHighlight]="highlightData" [evtEditorialConventionLayout]="editorialConventionData"> | ||
<evt-content-viewer *ngFor="let element of data.content" [content]="element" [editionLevel]="editionLevel" | ||
[itemsToHighlight]="itemsToHighlight"></evt-content-viewer> | ||
</span> |
Empty file.
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 { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { SicComponent } from './sic.component'; | ||
|
||
describe('SicComponent', () => { | ||
let component: SicComponent; | ||
let fixture: ComponentFixture<SicComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ SicComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(SicComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
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,36 @@ | ||
import { Component, Input } from '@angular/core'; | ||
import { EditorialConventionDefaults } from 'src/app/services/editorial-conventions.service'; | ||
|
||
import { EditorialConventionLayoutData } from '../../directives/editorial-convention-layout.directive'; | ||
import { Sic } from '../../models/evt-models'; | ||
import { register } from '../../services/component-register.service'; | ||
import { EditionlevelSusceptible, Highlightable } from '../components-mixins'; | ||
|
||
export interface SicComponent extends EditionlevelSusceptible, Highlightable { } | ||
|
||
@Component({ | ||
selector: 'evt-sic', | ||
templateUrl: './sic.component.html', | ||
styleUrls: ['./sic.component.scss'], | ||
}) | ||
@register(Sic) | ||
export class SicComponent { | ||
|
||
@Input() data: Sic; | ||
|
||
get editorialConventionData(): EditorialConventionLayoutData { | ||
return { | ||
name: 'sic', | ||
attributes: this.data?.attributes || {}, | ||
editionLevel: this.editionLevel, | ||
defaultsKey: this.defaultsKey, | ||
}; | ||
} | ||
|
||
get defaultsKey(): EditorialConventionDefaults { | ||
switch (this.data.sicType) { | ||
case 'crux': | ||
return 'sicCrux'; | ||
} | ||
} | ||
} |
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