editorial-decl.component.html 1.8 KB

123456789101112131415161718192021222324
  1. <ng-container [ngSwitch]="data?.structuredData">
  2. <ng-container *ngSwitchCase="true">
  3. <ng-container *ngTemplateOutlet="section; context: { label: 'correction', items: data?.correction, class: 'correction' }"></ng-container>
  4. <ng-container *ngTemplateOutlet="section; context: { label: 'normalization', items: data?.normalization, class: 'normalization' }"></ng-container>
  5. <ng-container *ngTemplateOutlet="section; context: { label: 'punctuation', items: data?.punctuation, class: 'punctuation' }"></ng-container>
  6. <ng-container *ngTemplateOutlet="section; context: { label: 'quotation', items: data?.quotation, class: 'quotation' }"></ng-container>
  7. <ng-container *ngTemplateOutlet="section; context: { label: 'hyphenation', items: data?.hyphenation, class: 'hyphenation' }"></ng-container>
  8. <ng-container *ngTemplateOutlet="section; context: { label: 'segmentation', items: data?.segmentation, class: 'segmentation' }"></ng-container>
  9. <ng-container *ngTemplateOutlet="section; context: { label: 'stdVals', items: data?.stdVals, class: 'stdVals' }"></ng-container>
  10. <ng-container *ngTemplateOutlet="section; context: { label: 'interpretation', items: data?.interpretation, class: 'interpretation' }"></ng-container>
  11. </ng-container>
  12. <ng-container *ngSwitchDefault>
  13. <evt-content-viewer *ngFor="let element of data?.content" [content]="element"></evt-content-viewer>
  14. </ng-container>
  15. </ng-container>
  16. <ng-template #section let-label="label" let-items="items" let-class="class">
  17. <evt-header-section *ngIf="items?.length > 0" [label]="label" [additionalClass]="class" [inlineLabel]="true">
  18. <div content>
  19. <evt-content-viewer *ngFor="let item of items" [content]="item" ></evt-content-viewer>
  20. </div>
  21. </evt-header-section>
  22. </ng-template>