@angular/cdk 2.0.0-beta.10 → 2.0.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/a11y/package.json +2 -2
  2. package/a11y/typings/aria-describer.d.ts +51 -0
  3. package/a11y/typings/aria-reference.d.ts +15 -0
  4. package/a11y/typings/focus-monitor.d.ts +106 -0
  5. package/a11y/typings/index.metadata.json +1 -1
  6. package/a11y/typings/public_api.d.ts +5 -3
  7. package/bidi/package.json +2 -2
  8. package/bundles/cdk-a11y.umd.js +639 -25
  9. package/bundles/cdk-a11y.umd.js.map +1 -1
  10. package/bundles/cdk-a11y.umd.min.js +9 -0
  11. package/bundles/cdk-a11y.umd.min.js.map +1 -0
  12. package/bundles/cdk-bidi.umd.min.js +9 -0
  13. package/bundles/cdk-bidi.umd.min.js.map +1 -0
  14. package/bundles/cdk-coercion.umd.min.js +9 -0
  15. package/bundles/cdk-coercion.umd.min.js.map +1 -0
  16. package/bundles/cdk-collections.umd.min.js +9 -0
  17. package/bundles/cdk-collections.umd.min.js.map +1 -0
  18. package/bundles/cdk-keycodes.umd.min.js +9 -0
  19. package/bundles/cdk-keycodes.umd.min.js.map +1 -0
  20. package/bundles/cdk-observers.umd.min.js +9 -0
  21. package/bundles/cdk-observers.umd.min.js.map +1 -0
  22. package/bundles/cdk-overlay.umd.js +49 -75
  23. package/bundles/cdk-overlay.umd.js.map +1 -1
  24. package/bundles/cdk-overlay.umd.min.js +9 -0
  25. package/bundles/cdk-overlay.umd.min.js.map +1 -0
  26. package/bundles/cdk-platform.umd.min.js +9 -0
  27. package/bundles/cdk-platform.umd.min.js.map +1 -0
  28. package/bundles/cdk-portal.umd.min.js +9 -0
  29. package/bundles/cdk-portal.umd.min.js.map +1 -0
  30. package/bundles/cdk-rxjs.umd.js.map +1 -1
  31. package/bundles/cdk-rxjs.umd.min.js +9 -0
  32. package/bundles/cdk-rxjs.umd.min.js.map +1 -0
  33. package/bundles/cdk-scrolling.umd.min.js +9 -0
  34. package/bundles/cdk-scrolling.umd.min.js.map +1 -0
  35. package/bundles/cdk-stepper.umd.js +460 -0
  36. package/bundles/cdk-stepper.umd.js.map +1 -0
  37. package/bundles/cdk-stepper.umd.min.js +9 -0
  38. package/bundles/cdk-stepper.umd.min.js.map +1 -0
  39. package/bundles/cdk-table.umd.js +8 -8
  40. package/bundles/cdk-table.umd.js.map +1 -1
  41. package/bundles/cdk-table.umd.min.js +9 -0
  42. package/bundles/cdk-table.umd.min.js.map +1 -0
  43. package/bundles/cdk.umd.js +1 -1
  44. package/bundles/cdk.umd.js.map +1 -1
  45. package/bundles/cdk.umd.min.js +9 -0
  46. package/bundles/cdk.umd.min.js.map +1 -0
  47. package/coercion/package.json +2 -2
  48. package/collections/package.json +2 -2
  49. package/collections/typings/selection.d.ts +3 -3
  50. package/{@angular/cdk → esm2015}/a11y.js +617 -17
  51. package/esm2015/a11y.js.map +1 -0
  52. package/{@angular/cdk → esm2015}/bidi.js +0 -0
  53. package/{@angular/cdk → esm2015}/bidi.js.map +0 -0
  54. package/{@angular → esm2015}/cdk.js +1 -1
  55. package/{@angular → esm2015}/cdk.js.map +1 -1
  56. package/{@angular/cdk → esm2015}/coercion.js +0 -0
  57. package/{@angular/cdk → esm2015}/coercion.js.map +0 -0
  58. package/{@angular/cdk → esm2015}/collections.js +0 -0
  59. package/{@angular/cdk → esm2015}/collections.js.map +0 -0
  60. package/{@angular/cdk → esm2015}/keycodes.js +0 -0
  61. package/{@angular/cdk → esm2015}/keycodes.js.map +0 -0
  62. package/{@angular/cdk → esm2015}/observers.js +0 -0
  63. package/{@angular/cdk → esm2015}/observers.js.map +0 -0
  64. package/{@angular/cdk → esm2015}/overlay.js +44 -66
  65. package/esm2015/overlay.js.map +1 -0
  66. package/{@angular/cdk → esm2015}/platform.js +0 -0
  67. package/{@angular/cdk → esm2015}/platform.js.map +0 -0
  68. package/{@angular/cdk → esm2015}/portal.js +0 -0
  69. package/{@angular/cdk → esm2015}/portal.js.map +0 -0
  70. package/{@angular/cdk → esm2015}/rxjs.js +0 -0
  71. package/esm2015/rxjs.js.map +1 -0
  72. package/{@angular/cdk → esm2015}/scrolling.js +0 -0
  73. package/{@angular/cdk → esm2015}/scrolling.js.map +0 -0
  74. package/esm2015/stepper.js +418 -0
  75. package/esm2015/stepper.js.map +1 -0
  76. package/{@angular/cdk → esm2015}/table.js +8 -8
  77. package/esm2015/table.js.map +1 -0
  78. package/{@angular/cdk → esm5}/a11y.es5.js +622 -17
  79. package/esm5/a11y.es5.js.map +1 -0
  80. package/{@angular/cdk → esm5}/bidi.es5.js +0 -0
  81. package/{@angular/cdk → esm5}/bidi.es5.js.map +0 -0
  82. package/{@angular → esm5}/cdk.es5.js +1 -1
  83. package/{@angular → esm5}/cdk.es5.js.map +1 -1
  84. package/{@angular/cdk → esm5}/coercion.es5.js +0 -0
  85. package/{@angular/cdk → esm5}/coercion.es5.js.map +0 -0
  86. package/{@angular/cdk → esm5}/collections.es5.js +0 -0
  87. package/{@angular/cdk → esm5}/collections.es5.js.map +0 -0
  88. package/{@angular/cdk → esm5}/keycodes.es5.js +0 -0
  89. package/{@angular/cdk → esm5}/keycodes.es5.js.map +0 -0
  90. package/{@angular/cdk → esm5}/observers.es5.js +0 -0
  91. package/{@angular/cdk → esm5}/observers.es5.js.map +0 -0
  92. package/{@angular/cdk → esm5}/overlay.es5.js +46 -71
  93. package/esm5/overlay.es5.js.map +1 -0
  94. package/{@angular/cdk → esm5}/platform.es5.js +0 -0
  95. package/{@angular/cdk → esm5}/platform.es5.js.map +0 -0
  96. package/{@angular/cdk → esm5}/portal.es5.js +0 -0
  97. package/{@angular/cdk → esm5}/portal.es5.js.map +0 -0
  98. package/{@angular/cdk → esm5}/rxjs.es5.js +0 -0
  99. package/esm5/rxjs.es5.js.map +1 -0
  100. package/{@angular/cdk → esm5}/scrolling.es5.js +0 -0
  101. package/{@angular/cdk → esm5}/scrolling.es5.js.map +0 -0
  102. package/esm5/stepper.es5.js +451 -0
  103. package/esm5/stepper.es5.js.map +1 -0
  104. package/{@angular/cdk → esm5}/table.es5.js +8 -8
  105. package/esm5/table.es5.js.map +1 -0
  106. package/keycodes/package.json +2 -2
  107. package/observers/package.json +2 -2
  108. package/overlay/package.json +2 -2
  109. package/overlay/typings/index.metadata.json +1 -1
  110. package/overlay/typings/{overlay-state.d.ts → overlay-config.d.ts} +5 -7
  111. package/overlay/typings/overlay-container.d.ts +1 -6
  112. package/overlay/typings/overlay-ref.d.ts +3 -3
  113. package/overlay/typings/overlay.d.ts +2 -2
  114. package/overlay/typings/position/connected-position-strategy.d.ts +1 -3
  115. package/overlay/typings/public_api.d.ts +1 -1
  116. package/overlay/typings/scroll/reposition-scroll-strategy.d.ts +1 -1
  117. package/package.json +5 -5
  118. package/platform/package.json +2 -2
  119. package/portal/package.json +2 -2
  120. package/portal/typings/portal-injector.d.ts +19 -0
  121. package/rxjs/package.json +2 -2
  122. package/rxjs/typings/rx-chain.d.ts +1 -1
  123. package/rxjs/typings/rx-operators.d.ts +1 -1
  124. package/scrolling/package.json +2 -2
  125. package/stepper/index.d.ts +8 -0
  126. package/stepper/index.metadata.json +11 -0
  127. package/stepper/package.json +7 -0
  128. package/stepper/typings/index.d.ts +4 -0
  129. package/stepper/typings/index.metadata.json +1 -0
  130. package/stepper/typings/public_api.d.ts +5 -0
  131. package/stepper/typings/step-label.d.ts +12 -0
  132. package/stepper/typings/stepper-button.d.ts +11 -0
  133. package/stepper/typings/stepper.d.ts +93 -0
  134. package/stepper.d.ts +8 -0
  135. package/stepper.metadata.json +11 -0
  136. package/table/package.json +2 -2
  137. package/table/typings/index.metadata.json +1 -1
  138. package/typings/a11y/aria-describer.d.ts +51 -0
  139. package/typings/a11y/aria-reference.d.ts +15 -0
  140. package/typings/a11y/focus-monitor.d.ts +106 -0
  141. package/typings/a11y/index.metadata.json +1 -1
  142. package/typings/a11y/public_api.d.ts +5 -3
  143. package/typings/collections/selection.d.ts +3 -3
  144. package/typings/index.metadata.json +1 -1
  145. package/typings/overlay/index.metadata.json +1 -1
  146. package/typings/overlay/{overlay-state.d.ts → overlay-config.d.ts} +5 -7
  147. package/typings/overlay/overlay-container.d.ts +1 -6
  148. package/typings/overlay/overlay-ref.d.ts +3 -3
  149. package/typings/overlay/overlay.d.ts +2 -2
  150. package/typings/overlay/position/connected-position-strategy.d.ts +1 -3
  151. package/typings/overlay/public_api.d.ts +1 -1
  152. package/typings/overlay/scroll/reposition-scroll-strategy.d.ts +1 -1
  153. package/typings/portal/portal-injector.d.ts +19 -0
  154. package/typings/rxjs/rx-chain.d.ts +1 -1
  155. package/typings/rxjs/rx-operators.d.ts +1 -1
  156. package/typings/stepper/index.d.ts +4 -0
  157. package/typings/stepper/index.metadata.json +1 -0
  158. package/typings/stepper/public_api.d.ts +5 -0
  159. package/typings/stepper/step-label.d.ts +12 -0
  160. package/typings/stepper/stepper-button.d.ts +11 -0
  161. package/typings/stepper/stepper.d.ts +93 -0
  162. package/typings/table/index.metadata.json +1 -1
  163. package/@angular/cdk/a11y.es5.js.map +0 -1
  164. package/@angular/cdk/a11y.js.map +0 -1
  165. package/@angular/cdk/overlay.es5.js.map +0 -1
  166. package/@angular/cdk/overlay.js.map +0 -1
  167. package/@angular/cdk/rxjs.es5.js.map +0 -1
  168. package/@angular/cdk/rxjs.js.map +0 -1
  169. package/@angular/cdk/table.es5.js.map +0 -1
  170. package/@angular/cdk/table.js.map +0 -1
@@ -6,10 +6,10 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  (function (global, factory) {
9
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/portal'), require('rxjs/Subject'), require('@angular/cdk/scrolling'), require('@angular/cdk/bidi'), require('@angular/cdk/coercion'), require('@angular/cdk/keycodes')) :
10
- typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/cdk/portal', 'rxjs/Subject', '@angular/cdk/scrolling', '@angular/cdk/bidi', '@angular/cdk/coercion', '@angular/cdk/keycodes'], factory) :
11
- (factory((global.ng = global.ng || {}, global.ng.cdk = global.ng.cdk || {}, global.ng.cdk.overlay = global.ng.cdk.overlay || {}),global.ng.core,global.ng.cdk.portal,global.Rx,global.ng.cdk.scrolling,global.ng.cdk.bidi,global.ng.cdk.coercion,global.ng.cdk.keycodes));
12
- }(this, (function (exports,_angular_core,_angular_cdk_portal,rxjs_Subject,_angular_cdk_scrolling,_angular_cdk_bidi,_angular_cdk_coercion,_angular_cdk_keycodes) { 'use strict';
9
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/portal'), require('rxjs/Subject'), require('@angular/cdk/scrolling'), require('@angular/cdk/bidi'), require('@angular/cdk/coercion'), require('@angular/cdk/keycodes'), require('rxjs/Subscription')) :
10
+ typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/cdk/portal', 'rxjs/Subject', '@angular/cdk/scrolling', '@angular/cdk/bidi', '@angular/cdk/coercion', '@angular/cdk/keycodes', 'rxjs/Subscription'], factory) :
11
+ (factory((global.ng = global.ng || {}, global.ng.cdk = global.ng.cdk || {}, global.ng.cdk.overlay = global.ng.cdk.overlay || {}),global.ng.core,global.ng.cdk.portal,global.Rx,global.ng.cdk.scrolling,global.ng.cdk.bidi,global.ng.cdk.coercion,global.ng.cdk.keycodes,global.Rx));
12
+ }(this, (function (exports,_angular_core,_angular_cdk_portal,rxjs_Subject,_angular_cdk_scrolling,_angular_cdk_bidi,_angular_cdk_coercion,_angular_cdk_keycodes,rxjs_Subscription) { 'use strict';
13
13
 
14
14
  /*! *****************************************************************************
15
15
  Copyright (c) Microsoft Corporation. All rights reserved.
@@ -58,11 +58,14 @@ var NoopScrollStrategy = (function () {
58
58
  return NoopScrollStrategy;
59
59
  }());
60
60
  /**
61
- * OverlayState is a bag of values for either the initial configuration or current state of an
62
- * overlay.
61
+ * OverlayConfig captures the initial configuration used when opening an overlay.
63
62
  */
64
- var OverlayState = (function () {
65
- function OverlayState() {
63
+ var OverlayConfig = (function () {
64
+ /**
65
+ * @param {?=} state
66
+ */
67
+ function OverlayConfig(state) {
68
+ var _this = this;
66
69
  /**
67
70
  * Strategy to be used when handling scroll events while the overlay is open.
68
71
  */
@@ -83,12 +86,11 @@ var OverlayState = (function () {
83
86
  * The direction of the text in the overlay panel.
84
87
  */
85
88
  this.direction = 'ltr';
86
- // TODO(jelbourn): configuration still to add
87
- // - focus trap
88
- // - disable pointer events
89
- // - z-index
89
+ if (state) {
90
+ Object.keys(state).forEach(function (key) { return _this[key] = state[key]; });
91
+ }
90
92
  }
91
- return OverlayState;
93
+ return OverlayConfig;
92
94
  }());
93
95
  /**
94
96
  * Reference to an overlay that has been created with the Overlay service.
@@ -110,7 +112,9 @@ var OverlayRef = (function () {
110
112
  this._backdropClick = new rxjs_Subject.Subject();
111
113
  this._attachments = new rxjs_Subject.Subject();
112
114
  this._detachments = new rxjs_Subject.Subject();
113
- _state.scrollStrategy.attach(this);
115
+ if (_state.scrollStrategy) {
116
+ _state.scrollStrategy.attach(this);
117
+ }
114
118
  }
115
119
  Object.defineProperty(OverlayRef.prototype, "overlayElement", {
116
120
  /**
@@ -139,7 +143,9 @@ var OverlayRef = (function () {
139
143
  this.updateSize();
140
144
  this.updateDirection();
141
145
  this.updatePosition();
142
- this._state.scrollStrategy.enable();
146
+ if (this._state.scrollStrategy) {
147
+ this._state.scrollStrategy.enable();
148
+ }
143
149
  // Enable pointer events for the overlay pane element.
144
150
  this._togglePointerEvents(true);
145
151
  if (this._state.hasBackdrop) {
@@ -168,7 +174,9 @@ var OverlayRef = (function () {
168
174
  // This is necessary because otherwise the pane element will cover the page and disable
169
175
  // pointer events therefore. Depends on the position strategy and the applied pane boundaries.
170
176
  this._togglePointerEvents(false);
171
- this._state.scrollStrategy.disable();
177
+ if (this._state.scrollStrategy) {
178
+ this._state.scrollStrategy.disable();
179
+ }
172
180
  var /** @type {?} */ detachmentResult = this._portalHost.detach();
173
181
  // Only emit after everything is detached.
174
182
  this._detachments.next();
@@ -182,7 +190,9 @@ var OverlayRef = (function () {
182
190
  if (this._state.positionStrategy) {
183
191
  this._state.positionStrategy.dispose();
184
192
  }
185
- this._state.scrollStrategy.disable();
193
+ if (this._state.scrollStrategy) {
194
+ this._state.scrollStrategy.disable();
195
+ }
186
196
  this.detachBackdrop();
187
197
  this._portalHost.dispose();
188
198
  this._attachments.complete();
@@ -463,15 +473,13 @@ function isElementClippedByScrolling(element, scrollContainers) {
463
473
  */
464
474
  var ConnectedPositionStrategy = (function () {
465
475
  /**
476
+ * @param {?} originPos
477
+ * @param {?} overlayPos
466
478
  * @param {?} _connectedTo
467
- * @param {?} _originPos
468
- * @param {?} _overlayPos
469
479
  * @param {?} _viewportRuler
470
480
  */
471
- function ConnectedPositionStrategy(_connectedTo, _originPos, _overlayPos, _viewportRuler) {
481
+ function ConnectedPositionStrategy(originPos, overlayPos, _connectedTo, _viewportRuler) {
472
482
  this._connectedTo = _connectedTo;
473
- this._originPos = _originPos;
474
- this._overlayPos = _overlayPos;
475
483
  this._viewportRuler = _viewportRuler;
476
484
  this._dir = 'ltr';
477
485
  /**
@@ -492,7 +500,7 @@ var ConnectedPositionStrategy = (function () {
492
500
  this._preferredPositions = [];
493
501
  this._onPositionChange = new rxjs_Subject.Subject();
494
502
  this._origin = this._connectedTo.nativeElement;
495
- this.withFallbackPosition(_originPos, _overlayPos);
503
+ this.withFallbackPosition(originPos, overlayPos);
496
504
  }
497
505
  Object.defineProperty(ConnectedPositionStrategy.prototype, "_isRtl", {
498
506
  /**
@@ -1001,7 +1009,7 @@ var OverlayPositionBuilder = (function () {
1001
1009
  * @return {?}
1002
1010
  */
1003
1011
  OverlayPositionBuilder.prototype.connectedTo = function (elementRef, originPos, overlayPos) {
1004
- return new ConnectedPositionStrategy(elementRef, originPos, overlayPos, this._viewportRuler);
1012
+ return new ConnectedPositionStrategy(originPos, overlayPos, elementRef, this._viewportRuler);
1005
1013
  };
1006
1014
  return OverlayPositionBuilder;
1007
1015
  }());
@@ -1021,30 +1029,6 @@ OverlayPositionBuilder.ctorParameters = function () { return [
1021
1029
  var OverlayContainer = (function () {
1022
1030
  function OverlayContainer() {
1023
1031
  }
1024
- Object.defineProperty(OverlayContainer.prototype, "themeClass", {
1025
- /**
1026
- * Base theme to be applied to all overlay-based components.
1027
- * @return {?}
1028
- */
1029
- get: function () { return this._themeClass; },
1030
- /**
1031
- * @param {?} value
1032
- * @return {?}
1033
- */
1034
- set: function (value) {
1035
- if (this._containerElement) {
1036
- if (this._themeClass) {
1037
- this._containerElement.classList.remove(this._themeClass);
1038
- }
1039
- if (value) {
1040
- this._containerElement.classList.add(value);
1041
- }
1042
- }
1043
- this._themeClass = value;
1044
- },
1045
- enumerable: true,
1046
- configurable: true
1047
- });
1048
1032
  /**
1049
1033
  * @return {?}
1050
1034
  */
@@ -1054,7 +1038,7 @@ var OverlayContainer = (function () {
1054
1038
  }
1055
1039
  };
1056
1040
  /**
1057
- * This method returns the overlay container element. It will lazily
1041
+ * This method returns the overlay container element. It will lazily
1058
1042
  * create the element the first time it is called to facilitate using
1059
1043
  * the container in non-browser environments.
1060
1044
  * @return {?} the container element
@@ -1073,9 +1057,6 @@ var OverlayContainer = (function () {
1073
1057
  OverlayContainer.prototype._createContainer = function () {
1074
1058
  var /** @type {?} */ container = document.createElement('div');
1075
1059
  container.classList.add('cdk-overlay-container');
1076
- if (this._themeClass) {
1077
- container.classList.add(this._themeClass);
1078
- }
1079
1060
  document.body.appendChild(container);
1080
1061
  this._containerElement = container;
1081
1062
  };
@@ -1319,7 +1300,7 @@ var nextUniqueId = 0;
1319
1300
  /**
1320
1301
  * The default state for newly created overlays.
1321
1302
  */
1322
- var defaultState = new OverlayState();
1303
+ var defaultState = new OverlayConfig();
1323
1304
  /**
1324
1305
  * Service to create Overlays. Overlays are dynamically added pieces of floating UI, meant to be
1325
1306
  * used as a low-level building building block for other components. Dialogs, tooltips, menus,
@@ -1472,8 +1453,11 @@ var ConnectedOverlayDirective = (function () {
1472
1453
  this._scrollStrategy = _scrollStrategy;
1473
1454
  this._dir = _dir;
1474
1455
  this._hasBackdrop = false;
1456
+ this._backdropSubscription = rxjs_Subscription.Subscription.EMPTY;
1457
+ this._positionSubscription = rxjs_Subscription.Subscription.EMPTY;
1475
1458
  this._offsetX = 0;
1476
1459
  this._offsetY = 0;
1460
+ this._escapeListener = function () { };
1477
1461
  /**
1478
1462
  * Strategy to be used when handling scroll events while the overlay is open.
1479
1463
  */
@@ -1774,7 +1758,12 @@ var ConnectedOverlayDirective = (function () {
1774
1758
  * @return {?}
1775
1759
  */
1776
1760
  ConnectedOverlayDirective.prototype._buildConfig = function () {
1777
- var /** @type {?} */ overlayConfig = new OverlayState();
1761
+ var /** @type {?} */ positionStrategy = this._position = this._createPositionStrategy();
1762
+ var /** @type {?} */ overlayConfig = new OverlayConfig({
1763
+ positionStrategy: positionStrategy,
1764
+ scrollStrategy: this.scrollStrategy,
1765
+ hasBackdrop: this.hasBackdrop
1766
+ });
1778
1767
  if (this.width || this.width === 0) {
1779
1768
  overlayConfig.width = this.width;
1780
1769
  }
@@ -1787,13 +1776,9 @@ var ConnectedOverlayDirective = (function () {
1787
1776
  if (this.minHeight || this.minHeight === 0) {
1788
1777
  overlayConfig.minHeight = this.minHeight;
1789
1778
  }
1790
- overlayConfig.hasBackdrop = this.hasBackdrop;
1791
1779
  if (this.backdropClass) {
1792
1780
  overlayConfig.backdropClass = this.backdropClass;
1793
1781
  }
1794
- this._position = (this._createPositionStrategy());
1795
- overlayConfig.positionStrategy = this._position;
1796
- overlayConfig.scrollStrategy = this.scrollStrategy;
1797
1782
  return overlayConfig;
1798
1783
  };
1799
1784
  /**
@@ -1854,13 +1839,8 @@ var ConnectedOverlayDirective = (function () {
1854
1839
  this._overlayRef.detach();
1855
1840
  this.detach.emit();
1856
1841
  }
1857
- if (this._backdropSubscription) {
1858
- this._backdropSubscription.unsubscribe();
1859
- this._backdropSubscription = null;
1860
- }
1861
- if (this._escapeListener) {
1862
- this._escapeListener();
1863
- }
1842
+ this._backdropSubscription.unsubscribe();
1843
+ this._escapeListener();
1864
1844
  };
1865
1845
  /**
1866
1846
  * Destroys the overlay created by this directive.
@@ -1870,15 +1850,9 @@ var ConnectedOverlayDirective = (function () {
1870
1850
  if (this._overlayRef) {
1871
1851
  this._overlayRef.dispose();
1872
1852
  }
1873
- if (this._backdropSubscription) {
1874
- this._backdropSubscription.unsubscribe();
1875
- }
1876
- if (this._positionSubscription) {
1877
- this._positionSubscription.unsubscribe();
1878
- }
1879
- if (this._escapeListener) {
1880
- this._escapeListener();
1881
- }
1853
+ this._backdropSubscription.unsubscribe();
1854
+ this._positionSubscription.unsubscribe();
1855
+ this._escapeListener();
1882
1856
  };
1883
1857
  /**
1884
1858
  * Sets the event listener that closes the overlay when pressing Escape.
@@ -2045,13 +2019,13 @@ exports.Overlay = Overlay;
2045
2019
  exports.OverlayContainer = OverlayContainer;
2046
2020
  exports.FullscreenOverlayContainer = FullscreenOverlayContainer;
2047
2021
  exports.OverlayRef = OverlayRef;
2048
- exports.OverlayState = OverlayState;
2049
2022
  exports.ConnectedOverlayDirective = ConnectedOverlayDirective;
2050
2023
  exports.OverlayOrigin = OverlayOrigin;
2051
2024
  exports.ViewportRuler = _angular_cdk_scrolling.ViewportRuler;
2052
2025
  exports.GlobalPositionStrategy = GlobalPositionStrategy;
2053
2026
  exports.ConnectedPositionStrategy = ConnectedPositionStrategy;
2054
2027
  exports.VIEWPORT_RULER_PROVIDER = _angular_cdk_scrolling.VIEWPORT_RULER_PROVIDER;
2028
+ exports.OverlayConfig = OverlayConfig;
2055
2029
  exports.ConnectionPositionPair = ConnectionPositionPair;
2056
2030
  exports.ScrollingVisibility = ScrollingVisibility;
2057
2031
  exports.ConnectedOverlayPositionChange = ConnectedOverlayPositionChange;