ipsos-components
Version:
Material Design components for Angular
127 lines (116 loc) • 4.27 kB
text/typescript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {
ChangeDetectionStrategy, ChangeDetectorRef,
Component, ContentChild,
ContentChildren, forwardRef, Inject, Input,
ViewEncapsulation
} from '@angular/core';
import {MatDrawer, MatDrawerContainer, MatDrawerContent} from './drawer';
import {animate, state, style, transition, trigger} from '@angular/animations';
import {coerceBooleanProperty, coerceNumberProperty} from '@angular/cdk/coercion';
export class MatSidenavContent extends MatDrawerContent {
constructor(
changeDetectorRef: ChangeDetectorRef,
container: MatSidenavContainer) {
super(changeDetectorRef, container);
}
}
export class MatSidenav extends MatDrawer {
/** Whether the sidenav is fixed in the viewport. */
get fixedInViewport(): boolean { return this._fixedInViewport; }
set fixedInViewport(value) { this._fixedInViewport = coerceBooleanProperty(value); }
private _fixedInViewport = false;
/**
* The gap between the top of the sidenav and the top of the viewport when the sidenav is in fixed
* mode.
*/
get fixedTopGap(): number { return this._fixedTopGap; }
set fixedTopGap(value) { this._fixedTopGap = coerceNumberProperty(value); }
private _fixedTopGap = 0;
/**
* The gap between the bottom of the sidenav and the bottom of the viewport when the sidenav is in
* fixed mode.
*/
get fixedBottomGap(): number { return this._fixedBottomGap; }
set fixedBottomGap(value) { this._fixedBottomGap = coerceNumberProperty(value); }
private _fixedBottomGap = 0;
}
export class MatSidenavContainer extends MatDrawerContainer {
_drawers;
_content;
}