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

66.66% Statements 8/12
50% Branches 1/2
0% Functions 0/2
100% Lines 7/7

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 2026x         95x 95x 19x 61x         19x         26x  
<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) {
      <si-widget-host
        [grid]="grid"
        [attr.item-id]="item.id"
        [editable]="editable()"
        [widgetConfig]="item"
        [componentFactory]="widgetCatalogMap().get(item.widgetId)?.componentFactory"
        (remove)="widgetInstanceRemove.emit(item.id)"
        (edit)="widgetInstanceEdit.emit(item)"
      />
    }
  }
</div>