Aam-Digital/ndb-core

View on GitHub
src/app/features/reporting/reporting/reporting.component.html

Summary

Maintainability
Test Coverage
<app-view-title
  class="view-section"
  i18n="
    Reports concern a group of for example children and include data about these
    children in a certain date range
  "
>
  Reports
</app-view-title>

<app-select-report
  [reports]="reports"
  [loading]="loading"
  [exportableData]="exportableData"
  (calculateClick)="calculateResults($event.report, $event.from, $event.to)"
  class="view-section"
></app-select-report>

<app-report-row
  *ngIf="data?.length > 0 && mode === 'reporting'"
  [rows]="data"
></app-report-row>
<app-object-table
  *ngIf="data?.length > 0 && (mode === 'exporting' || mode === 'sql')"
  [objects]="data"
></app-object-table>