divider.es5.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. */
  8. import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation, NgModule } from '@angular/core';
  9. import { coerceBooleanProperty } from '@angular/cdk/coercion';
  10. import { CommonModule } from '@angular/common';
  11. import { MatCommonModule } from '@angular/material/core';
  12. /**
  13. * @fileoverview added by tsickle
  14. * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  15. */
  16. var MatDivider = /** @class */ (function () {
  17. function MatDivider() {
  18. this._vertical = false;
  19. this._inset = false;
  20. }
  21. Object.defineProperty(MatDivider.prototype, "vertical", {
  22. /** Whether the divider is vertically aligned. */
  23. get: /**
  24. * Whether the divider is vertically aligned.
  25. * @return {?}
  26. */
  27. function () { return this._vertical; },
  28. set: /**
  29. * @param {?} value
  30. * @return {?}
  31. */
  32. function (value) { this._vertical = coerceBooleanProperty(value); },
  33. enumerable: true,
  34. configurable: true
  35. });
  36. Object.defineProperty(MatDivider.prototype, "inset", {
  37. /** Whether the divider is an inset divider. */
  38. get: /**
  39. * Whether the divider is an inset divider.
  40. * @return {?}
  41. */
  42. function () { return this._inset; },
  43. set: /**
  44. * @param {?} value
  45. * @return {?}
  46. */
  47. function (value) { this._inset = coerceBooleanProperty(value); },
  48. enumerable: true,
  49. configurable: true
  50. });
  51. MatDivider.decorators = [
  52. { type: Component, args: [{selector: 'mat-divider',
  53. host: {
  54. 'role': 'separator',
  55. '[attr.aria-orientation]': 'vertical ? "vertical" : "horizontal"',
  56. '[class.mat-divider-vertical]': 'vertical',
  57. '[class.mat-divider-horizontal]': '!vertical',
  58. '[class.mat-divider-inset]': 'inset',
  59. 'class': 'mat-divider'
  60. },
  61. template: '',
  62. 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}"],
  63. encapsulation: ViewEncapsulation.None,
  64. changeDetection: ChangeDetectionStrategy.OnPush,
  65. },] },
  66. ];
  67. MatDivider.propDecorators = {
  68. vertical: [{ type: Input }],
  69. inset: [{ type: Input }]
  70. };
  71. return MatDivider;
  72. }());
  73. /**
  74. * @fileoverview added by tsickle
  75. * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  76. */
  77. var MatDividerModule = /** @class */ (function () {
  78. function MatDividerModule() {
  79. }
  80. MatDividerModule.decorators = [
  81. { type: NgModule, args: [{
  82. imports: [MatCommonModule, CommonModule],
  83. exports: [MatDivider, MatCommonModule],
  84. declarations: [MatDivider],
  85. },] },
  86. ];
  87. return MatDividerModule;
  88. }());
  89. /**
  90. * @fileoverview added by tsickle
  91. * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  92. */
  93. /**
  94. * @fileoverview added by tsickle
  95. * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  96. */
  97. export { MatDivider, MatDividerModule };
  98. //# sourceMappingURL=divider.es5.js.map