1 | (function (global, factory) {
|
---|
2 | typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/coercion'), require('@angular/material/core')) :
|
---|
3 | typeof define === 'function' && define.amd ? define('@angular/material/divider', ['exports', '@angular/core', '@angular/cdk/coercion', '@angular/material/core'], factory) :
|
---|
4 | (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}, global.ng.material.divider = {}), global.ng.core, global.ng.cdk.coercion, global.ng.material.core));
|
---|
5 | }(this, (function (exports, core, coercion, core$1) { 'use strict';
|
---|
6 |
|
---|
7 | /**
|
---|
8 | * @license
|
---|
9 | * Copyright Google LLC All Rights Reserved.
|
---|
10 | *
|
---|
11 | * Use of this source code is governed by an MIT-style license that can be
|
---|
12 | * found in the LICENSE file at https://angular.io/license
|
---|
13 | */
|
---|
14 | var MatDivider = /** @class */ (function () {
|
---|
15 | function MatDivider() {
|
---|
16 | this._vertical = false;
|
---|
17 | this._inset = false;
|
---|
18 | }
|
---|
19 | Object.defineProperty(MatDivider.prototype, "vertical", {
|
---|
20 | /** Whether the divider is vertically aligned. */
|
---|
21 | get: function () { return this._vertical; },
|
---|
22 | set: function (value) { this._vertical = coercion.coerceBooleanProperty(value); },
|
---|
23 | enumerable: false,
|
---|
24 | configurable: true
|
---|
25 | });
|
---|
26 | Object.defineProperty(MatDivider.prototype, "inset", {
|
---|
27 | /** Whether the divider is an inset divider. */
|
---|
28 | get: function () { return this._inset; },
|
---|
29 | set: function (value) { this._inset = coercion.coerceBooleanProperty(value); },
|
---|
30 | enumerable: false,
|
---|
31 | configurable: true
|
---|
32 | });
|
---|
33 | return MatDivider;
|
---|
34 | }());
|
---|
35 | MatDivider.decorators = [
|
---|
36 | { type: core.Component, args: [{
|
---|
37 | selector: 'mat-divider',
|
---|
38 | host: {
|
---|
39 | 'role': 'separator',
|
---|
40 | '[attr.aria-orientation]': 'vertical ? "vertical" : "horizontal"',
|
---|
41 | '[class.mat-divider-vertical]': 'vertical',
|
---|
42 | '[class.mat-divider-horizontal]': '!vertical',
|
---|
43 | '[class.mat-divider-inset]': 'inset',
|
---|
44 | 'class': 'mat-divider'
|
---|
45 | },
|
---|
46 | template: '',
|
---|
47 | encapsulation: core.ViewEncapsulation.None,
|
---|
48 | changeDetection: core.ChangeDetectionStrategy.OnPush,
|
---|
49 | 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"]
|
---|
50 | },] }
|
---|
51 | ];
|
---|
52 | MatDivider.propDecorators = {
|
---|
53 | vertical: [{ type: core.Input }],
|
---|
54 | inset: [{ type: core.Input }]
|
---|
55 | };
|
---|
56 |
|
---|
57 | /**
|
---|
58 | * @license
|
---|
59 | * Copyright Google LLC All Rights Reserved.
|
---|
60 | *
|
---|
61 | * Use of this source code is governed by an MIT-style license that can be
|
---|
62 | * found in the LICENSE file at https://angular.io/license
|
---|
63 | */
|
---|
64 | var MatDividerModule = /** @class */ (function () {
|
---|
65 | function MatDividerModule() {
|
---|
66 | }
|
---|
67 | return MatDividerModule;
|
---|
68 | }());
|
---|
69 | MatDividerModule.decorators = [
|
---|
70 | { type: core.NgModule, args: [{
|
---|
71 | imports: [core$1.MatCommonModule],
|
---|
72 | exports: [MatDivider, core$1.MatCommonModule],
|
---|
73 | declarations: [MatDivider],
|
---|
74 | },] }
|
---|
75 | ];
|
---|
76 |
|
---|
77 | /**
|
---|
78 | * @license
|
---|
79 | * Copyright Google LLC All Rights Reserved.
|
---|
80 | *
|
---|
81 | * Use of this source code is governed by an MIT-style license that can be
|
---|
82 | * found in the LICENSE file at https://angular.io/license
|
---|
83 | */
|
---|
84 |
|
---|
85 | /**
|
---|
86 | * Generated bundle index. Do not edit.
|
---|
87 | */
|
---|
88 |
|
---|
89 | exports.MatDivider = MatDivider;
|
---|
90 | exports.MatDividerModule = MatDividerModule;
|
---|
91 |
|
---|
92 | Object.defineProperty(exports, '__esModule', { value: true });
|
---|
93 |
|
---|
94 | })));
|
---|
95 | //# sourceMappingURL=material-divider.umd.js.map
|
---|