blob: 79c3686c1a12784fe7ec865a6e6b2c33a3d77ce5 [file] [log] [blame]
import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
import { coerceBooleanProperty } from '@angular/cdk/coercion';
import { MatCommonModule } from '@angular/material/core';
/**
* @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
*/
class MatDivider {
constructor() {
this._vertical = false;
this._inset = false;
}
/** Whether the divider is vertically aligned. */
get vertical() { return this._vertical; }
set vertical(value) { this._vertical = coerceBooleanProperty(value); }
/** Whether the divider is an inset divider. */
get inset() { return this._inset; }
set inset(value) { this._inset = coerceBooleanProperty(value); }
}
MatDivider.decorators = [
{ type: Component, args: [{
selector: 'mat-divider',
host: {
'role': 'separator',
'[attr.aria-orientation]': 'vertical ? "vertical" : "horizontal"',
'[class.mat-divider-vertical]': 'vertical',
'[class.mat-divider-horizontal]': '!vertical',
'[class.mat-divider-inset]': 'inset',
'class': 'mat-divider'
},
template: '',
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
styles: [".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"]
},] }
];
MatDivider.propDecorators = {
vertical: [{ type: Input }],
inset: [{ type: Input }]
};
/**
* @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
*/
class MatDividerModule {
}
MatDividerModule.decorators = [
{ type: NgModule, args: [{
imports: [MatCommonModule],
exports: [MatDivider, MatCommonModule],
declarations: [MatDivider],
},] }
];
/**
* @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
*/
/**
* Generated bundle index. Do not edit.
*/
export { MatDivider, MatDividerModule };
//# sourceMappingURL=divider.js.map