1 | import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
|
---|
2 | import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
---|
3 | import { MatCommonModule } from '@angular/material/core';
|
---|
4 |
|
---|
5 | /**
|
---|
6 | * @license
|
---|
7 | * Copyright Google LLC All Rights Reserved.
|
---|
8 | *
|
---|
9 | * Use of this source code is governed by an MIT-style license that can be
|
---|
10 | * found in the LICENSE file at https://angular.io/license
|
---|
11 | */
|
---|
12 | class MatDivider {
|
---|
13 | constructor() {
|
---|
14 | this._vertical = false;
|
---|
15 | this._inset = false;
|
---|
16 | }
|
---|
17 | /** Whether the divider is vertically aligned. */
|
---|
18 | get vertical() { return this._vertical; }
|
---|
19 | set vertical(value) { this._vertical = coerceBooleanProperty(value); }
|
---|
20 | /** Whether the divider is an inset divider. */
|
---|
21 | get inset() { return this._inset; }
|
---|
22 | set inset(value) { this._inset = coerceBooleanProperty(value); }
|
---|
23 | }
|
---|
24 | MatDivider.decorators = [
|
---|
25 | { type: Component, args: [{
|
---|
26 | selector: 'mat-divider',
|
---|
27 | host: {
|
---|
28 | 'role': 'separator',
|
---|
29 | '[attr.aria-orientation]': 'vertical ? "vertical" : "horizontal"',
|
---|
30 | '[class.mat-divider-vertical]': 'vertical',
|
---|
31 | '[class.mat-divider-horizontal]': '!vertical',
|
---|
32 | '[class.mat-divider-inset]': 'inset',
|
---|
33 | 'class': 'mat-divider'
|
---|
34 | },
|
---|
35 | template: '',
|
---|
36 | encapsulation: ViewEncapsulation.None,
|
---|
37 | changeDetection: ChangeDetectionStrategy.OnPush,
|
---|
38 | 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"]
|
---|
39 | },] }
|
---|
40 | ];
|
---|
41 | MatDivider.propDecorators = {
|
---|
42 | vertical: [{ type: Input }],
|
---|
43 | inset: [{ type: Input }]
|
---|
44 | };
|
---|
45 |
|
---|
46 | /**
|
---|
47 | * @license
|
---|
48 | * Copyright Google LLC All Rights Reserved.
|
---|
49 | *
|
---|
50 | * Use of this source code is governed by an MIT-style license that can be
|
---|
51 | * found in the LICENSE file at https://angular.io/license
|
---|
52 | */
|
---|
53 | class MatDividerModule {
|
---|
54 | }
|
---|
55 | MatDividerModule.decorators = [
|
---|
56 | { type: NgModule, args: [{
|
---|
57 | imports: [MatCommonModule],
|
---|
58 | exports: [MatDivider, MatCommonModule],
|
---|
59 | declarations: [MatDivider],
|
---|
60 | },] }
|
---|
61 | ];
|
---|
62 |
|
---|
63 | /**
|
---|
64 | * @license
|
---|
65 | * Copyright Google LLC All Rights Reserved.
|
---|
66 | *
|
---|
67 | * Use of this source code is governed by an MIT-style license that can be
|
---|
68 | * found in the LICENSE file at https://angular.io/license
|
---|
69 | */
|
---|
70 |
|
---|
71 | /**
|
---|
72 | * Generated bundle index. Do not edit.
|
---|
73 | */
|
---|
74 |
|
---|
75 | export { MatDivider, MatDividerModule };
|
---|
76 | //# sourceMappingURL=divider.js.map
|
---|