UNPKG

@spartacus/storefront

Version:

Spartacus Storefront is a package that you can include in your application, which allows you to add default storefront features.

31 lines (30 loc) 900 B
import { Breadcrumb, Facet } from '@spartacus/core'; /** * UI model that holds the full list of facet and active facets for * the product list. */ export interface FacetList { facets: Facet[]; activeFacets?: Breadcrumb[]; } export interface FacetCollapseState { /** * Indicates whether the facet is toggled to expand or collapse the facet values. * Whether the toggle results in an expanded or collapsed state, depends on the * experience, which is controlled in CSS. */ toggled?: FacetGroupCollapsedState; /** * The top number of facet values that will be visible. */ topVisible?: number; /** * The max number of facet values which will be visible. This includes * the top visible number. */ maxVisible?: number; } export declare enum FacetGroupCollapsedState { EXPANDED = "EXPANDED", COLLAPSED = "COLLAPSED" }