source: trip-planner-front/node_modules/@angular/material/esm2015/divider/divider.js@ 188ee53

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

initial commit

  • Property mode set to 100644
File size: 5.1 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';
9import { coerceBooleanProperty } from '@angular/cdk/coercion';
10export class MatDivider {
11 constructor() {
12 this._vertical = false;
13 this._inset = false;
14 }
15 /** Whether the divider is vertically aligned. */
16 get vertical() { return this._vertical; }
17 set vertical(value) { this._vertical = coerceBooleanProperty(value); }
18 /** Whether the divider is an inset divider. */
19 get inset() { return this._inset; }
20 set inset(value) { this._inset = coerceBooleanProperty(value); }
21}
22MatDivider.decorators = [
23 { type: Component, args: [{
24 selector: 'mat-divider',
25 host: {
26 'role': 'separator',
27 '[attr.aria-orientation]': 'vertical ? "vertical" : "horizontal"',
28 '[class.mat-divider-vertical]': 'vertical',
29 '[class.mat-divider-horizontal]': '!vertical',
30 '[class.mat-divider-inset]': 'inset',
31 'class': 'mat-divider'
32 },
33 template: '',
34 encapsulation: ViewEncapsulation.None,
35 changeDetection: ChangeDetectionStrategy.OnPush,
36 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"]
37 },] }
38];
39MatDivider.propDecorators = {
40 vertical: [{ type: Input }],
41 inset: [{ type: Input }]
42};
43//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGl2aWRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3N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