All files / src/app/shared/components/product/products-list products-list.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

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 37 38 39 40 41 424x                                                                                  
@let products = productSKUs$ | async;
@if (products?.length) {
  @if (listStyle === 'carousel') {
    <div class="product-list">
      <div #swiper class="swiper">
        <div class="swiper-button-prev"></div>
        <div class="swiper-wrapper">
          @for (sku of products; track $index) {
            <div class="swiper-slide">
              <ish-deferred-item [cssClass]="listItemCSSClass">
                <ng-template ishLazyLoadingContent>
                  <ish-product-item
                    ishProductContext
                    [configuration]="listItemConfiguration"
                    [displayType]="listItemStyle"
                    [sku]="sku"
                  />
                </ng-template>
              </ish-deferred-item>
            </div>
          }
        </div>
        <div class="swiper-button-next"></div>
        <div class="swiper-pagination"></div>
      </div>
    </div>
  } @else {
    <div class="product-list row">
      @for (sku of products; track $index) {
        <div class="product-list-item" [ngClass]="listItemCSSClass">
          <ish-product-item
            ishProductContext
            [configuration]="listItemConfiguration"
            [displayType]="listItemStyle"
            [sku]="sku"
          />
        </div>
      }
    </div>
  }
}