@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) • 1.53 kB
TypeScript
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
import { RoutingService } from '@spartacus/core';
import { Observable, Subscription } from 'rxjs';
import { KeyboardFocusService } from '../a11y/keyboard-focus/index';
import { SkipLinkComponent } from '../a11y/skip-link/index';
import { HamburgerMenuService } from '../header/hamburger-menu/hamburger-menu.service';
import { StorefrontOutlets } from './storefront-outlets.model';
import * as i0 from "@angular/core";
export declare class StorefrontComponent implements OnInit, OnDestroy {
private hamburgerMenuService;
private routingService;
protected elementRef: ElementRef<HTMLElement>;
protected keyboardFocusService: KeyboardFocusService;
navigateSubscription: Subscription;
isExpanded$: Observable<boolean>;
readonly StorefrontOutlets: typeof StorefrontOutlets;
startNavigating: any;
stopNavigating: any;
tabindex: string;
child: SkipLinkComponent;
private keyboardFocusConfig;
handleEscape(event: KeyboardEvent): void;
constructor(hamburgerMenuService: HamburgerMenuService, routingService: RoutingService, elementRef: ElementRef<HTMLElement>, keyboardFocusService: KeyboardFocusService);
ngOnInit(): void;
collapseMenuIfClickOutside(event: any): void;
collapseMenu(): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<StorefrontComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<StorefrontComponent, "cx-storefront", never, {}, {}, never, never>;
}