All files / lib/grid/row grid-row.component.ts

100% Statements 36/36
100% Branches 6/6
100% Functions 3/3
100% Lines 36/36

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 371x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 395x 395x 395x 395x 395x 395x 395x 1x 1x 1x 790x 790x 790x 1x 1x 1x  
/*******************************************************************************
 * Copyright bei
 * Entwicklungs- und Pflegeverbund für das gemeinsame Fachverfahren gefa
 *
 *******************************************************************************/
import { Component, HostBinding } from '@angular/core';
 
import { GridComponent } from '../grid.component';
 
/**
 * A Row element is a wrapper for cells.
 */
@Component({
  selector: 'gc-grid-row',
  templateUrl: './grid-row.component.html',
  styleUrls: ['./grid-row.component.css'],
})
export class GridRowComponent {
  /** @ignore */
  @HostBinding('class')
  protected get cssClass(): string[] {
    return [
      `gc-reference-${this.grid.reference}`,
      `gc-layout-${this.grid.layout}`,
      ...(this.horizontalInset !== undefined ? ['gc-horizontal-inset'] : []),
    ];
  }
 
  /** @ignore */
  @HostBinding('style.--gc-grid-horizontal-column-inset.px')
  protected get horizontalInset(): number | undefined {
    return this.grid.horizontalInset;
  }
 
  constructor(private readonly grid: GridComponent) {}
}