material-divider.umd.js 4.1 KB

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