All files / src/components/gridstack-wrapper si-gridstack-wrapper.component.html

69.23% Statements 9/13
75% Branches 3/4
0% Functions 0/2
100% Lines 8/8

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 2127x         47x 47x 32x 22x 32x         22x         27x  
<div
  class="grid-stack"
  [attr.role]="editable() ? null : 'list'"
  [attr.aria-label]="editable() ? null : (a11yWidgetsListLabel | translate)"
>
  @if (grid) {
    @for (item of widgetConfigs(); track item.id) {
      @let widget = widgetCatalogMap().get(item.widgetId);
      <si-widget-host
        [grid]="grid"
        [editable]="editable()"
        [widgetConfig]="item"
        [iconClass]="widget?.iconClass ?? 'element-apps'"
        [componentFactory]="widget?.componentFactory"
        (remove)="widgetInstanceRemove.emit(item.id)"
        (edit)="widgetInstanceEdit.emit(item)"
      />
    }
  }
</div>