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#106 from evt-project/feature/deletions
Feature/deletions
- Loading branch information
Showing
10 changed files
with
96 additions
and
4 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,5 @@ | ||
<span class="del" [attr.data-edition]="editionLevel" [attr.data-rend]="data.rend" [evtHtmlAttributes]="data?.attributes" | ||
[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 { DeletionComponent } from './deletion.component'; | ||
|
||
describe('DeletionComponent', () => { | ||
let component: DeletionComponent; | ||
let fixture: ComponentFixture<DeletionComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ DeletionComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(DeletionComponent); | ||
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,27 @@ | ||
import { Component, Input } from '@angular/core'; | ||
|
||
import { EditorialConventionLayoutData } from '../../directives/editorial-convention-layout.directive'; | ||
import { Deletion } from '../../models/evt-models'; | ||
import { register } from '../../services/component-register.service'; | ||
import { EditionlevelSusceptible, Highlightable } from '../components-mixins'; | ||
|
||
export interface DeletionComponent extends EditionlevelSusceptible, Highlightable { } | ||
|
||
@register(Deletion) | ||
@Component({ | ||
selector: 'evt-deletion', | ||
templateUrl: './deletion.component.html', | ||
styleUrls: ['./deletion.component.scss'], | ||
}) | ||
export class DeletionComponent { | ||
@Input() data: Deletion; | ||
|
||
get editorialConventionData(): EditorialConventionLayoutData { | ||
return { | ||
name: 'del', | ||
attributes: this.data.attributes, | ||
editionLevel: this.editionLevel, | ||
defaultsKey: 'deletion', | ||
}; | ||
} | ||
} |
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