source: trip-planner-front/node_modules/@angular/material/fesm2015/divider.js@ eed0bf8

Last change on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.7 KB
RevLine 
[6a3a178]1import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
2import { coerceBooleanProperty } from '@angular/cdk/coercion';
3import { 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 */
12class 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}
24MatDivider.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];
41MatDivider.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 */
53class MatDividerModule {
54}
55MatDividerModule.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
75export { MatDivider, MatDividerModule };
76//# sourceMappingURL=divider.js.map
Note: See TracBrowser for help on using the repository browser.