@angular/cdk 7.0.0-rc.1 → 7.0.2

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 (205) hide show
  1. package/_a11y.scss +32 -0
  2. package/_overlay.scss +141 -0
  3. package/_text-field.scss +63 -0
  4. package/a11y/typings/aria-describer/aria-describer.d.ts +2 -2
  5. package/a11y/typings/focus-monitor/focus-monitor.d.ts +2 -2
  6. package/a11y/typings/index.metadata.json +1 -1
  7. package/a11y/typings/key-manager/list-key-manager.d.ts +1 -1
  8. package/a11y/typings/live-announcer/live-announcer.d.ts +2 -2
  9. package/bundles/cdk-a11y.umd.js +26 -21
  10. package/bundles/cdk-a11y.umd.js.map +1 -1
  11. package/bundles/cdk-a11y.umd.min.js +1 -1
  12. package/bundles/cdk-a11y.umd.min.js.map +1 -1
  13. package/bundles/cdk-drag-drop.umd.js +126 -81
  14. package/bundles/cdk-drag-drop.umd.js.map +1 -1
  15. package/bundles/cdk-drag-drop.umd.min.js +1 -1
  16. package/bundles/cdk-drag-drop.umd.min.js.map +1 -1
  17. package/bundles/cdk-overlay.umd.js +22 -22
  18. package/bundles/cdk-overlay.umd.js.map +1 -1
  19. package/bundles/cdk-overlay.umd.min.js.map +1 -1
  20. package/bundles/cdk-platform.umd.js +13 -2
  21. package/bundles/cdk-platform.umd.js.map +1 -1
  22. package/bundles/cdk-platform.umd.min.js +1 -1
  23. package/bundles/cdk-platform.umd.min.js.map +1 -1
  24. package/bundles/cdk-scrolling.umd.js +10 -6
  25. package/bundles/cdk-scrolling.umd.js.map +1 -1
  26. package/bundles/cdk-scrolling.umd.min.js +1 -1
  27. package/bundles/cdk-scrolling.umd.min.js.map +1 -1
  28. package/bundles/cdk-stepper.umd.js +1 -1
  29. package/bundles/cdk-stepper.umd.js.map +1 -1
  30. package/bundles/cdk-stepper.umd.min.js.map +1 -1
  31. package/bundles/cdk-table.umd.js +5 -1
  32. package/bundles/cdk-table.umd.js.map +1 -1
  33. package/bundles/cdk-table.umd.min.js +1 -1
  34. package/bundles/cdk-table.umd.min.js.map +1 -1
  35. package/bundles/cdk-text-field.umd.js +10 -3
  36. package/bundles/cdk-text-field.umd.js.map +1 -1
  37. package/bundles/cdk-text-field.umd.min.js +1 -1
  38. package/bundles/cdk-text-field.umd.min.js.map +1 -1
  39. package/bundles/cdk.umd.js +1 -1
  40. package/bundles/cdk.umd.js.map +1 -1
  41. package/bundles/cdk.umd.min.js +1 -1
  42. package/bundles/cdk.umd.min.js.map +1 -1
  43. package/drag-drop/typings/drag-events.d.ts +5 -5
  44. package/drag-drop/typings/drag-handle.d.ts +3 -1
  45. package/drag-drop/typings/drag-parent.d.ts +15 -0
  46. package/drag-drop/typings/drag-utils.d.ts +10 -0
  47. package/drag-drop/typings/drag.d.ts +6 -11
  48. package/drag-drop/typings/{drop-container.d.ts → drop-list-container.d.ts} +5 -5
  49. package/{typings/drag-drop/drop.d.ts → drag-drop/typings/drop-list.d.ts} +7 -7
  50. package/drag-drop/typings/index.d.ts +1 -0
  51. package/drag-drop/typings/index.metadata.json +1 -1
  52. package/drag-drop/typings/public-api.d.ts +2 -2
  53. package/esm2015/a11y.js +25 -20
  54. package/esm2015/a11y.js.map +1 -1
  55. package/esm2015/cdk.js +1 -1
  56. package/esm2015/cdk.js.map +1 -1
  57. package/esm2015/drag-drop.js +108 -57
  58. package/esm2015/drag-drop.js.map +1 -1
  59. package/esm2015/overlay.js +12 -12
  60. package/esm2015/overlay.js.map +1 -1
  61. package/esm2015/platform.js +13 -3
  62. package/esm2015/platform.js.map +1 -1
  63. package/esm2015/scrolling.js +10 -6
  64. package/esm2015/scrolling.js.map +1 -1
  65. package/esm2015/stepper.js +1 -1
  66. package/esm2015/stepper.js.map +1 -1
  67. package/esm2015/table.js +5 -1
  68. package/esm2015/table.js.map +1 -1
  69. package/esm2015/text-field.js +11 -4
  70. package/esm2015/text-field.js.map +1 -1
  71. package/esm5/a11y.es5.js +27 -22
  72. package/esm5/a11y.es5.js.map +1 -1
  73. package/esm5/cdk.es5.js +1 -1
  74. package/esm5/cdk.es5.js.map +1 -1
  75. package/esm5/drag-drop.es5.js +124 -81
  76. package/esm5/drag-drop.es5.js.map +1 -1
  77. package/esm5/overlay.es5.js +22 -22
  78. package/esm5/overlay.es5.js.map +1 -1
  79. package/esm5/platform.es5.js +13 -3
  80. package/esm5/platform.es5.js.map +1 -1
  81. package/esm5/scrolling.es5.js +10 -6
  82. package/esm5/scrolling.es5.js.map +1 -1
  83. package/esm5/stepper.es5.js +1 -1
  84. package/esm5/stepper.es5.js.map +1 -1
  85. package/esm5/table.es5.js +5 -1
  86. package/esm5/table.es5.js.map +1 -1
  87. package/esm5/text-field.es5.js +11 -4
  88. package/esm5/text-field.es5.js.map +1 -1
  89. package/overlay/typings/keyboard/overlay-keyboard-dispatcher.d.ts +2 -2
  90. package/overlay/typings/overlay-container.d.ts +2 -2
  91. package/overlay/typings/overlay-directives.d.ts +1 -1
  92. package/overlay/typings/overlay-module.d.ts +1 -1
  93. package/overlay/typings/position/connected-position-strategy.d.ts +1 -1
  94. package/overlay/typings/position/global-position-strategy.d.ts +2 -2
  95. package/overlay/typings/position/overlay-position-builder.d.ts +1 -1
  96. package/package.json +6 -6
  97. package/platform/typings/features/passive-listeners.d.ts +7 -0
  98. package/platform/typings/index.metadata.json +1 -1
  99. package/platform/typings/platform.d.ts +1 -1
  100. package/schematics/index.d.ts +0 -1
  101. package/schematics/index.js +0 -1
  102. package/schematics/index.js.map +1 -1
  103. package/schematics/ng-add/index.d.ts +4 -0
  104. package/schematics/ng-add/index.js +7 -3
  105. package/schematics/ng-add/index.js.map +1 -1
  106. package/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +4 -4
  107. package/schematics/ng-generate/drag-drop/schema.json +2 -1
  108. package/schematics/ng-update/index.js +8 -2
  109. package/schematics/ng-update/index.js.map +1 -1
  110. package/schematics/utils/build-component.d.ts +7 -0
  111. package/schematics/utils/build-component.js +4 -5
  112. package/schematics/utils/build-component.js.map +1 -1
  113. package/schematics/utils/html-head-element.d.ts +13 -0
  114. package/schematics/utils/html-head-element.js +54 -0
  115. package/schematics/utils/html-head-element.js.map +1 -0
  116. package/schematics/utils/index.d.ts +1 -0
  117. package/schematics/utils/index.js +1 -0
  118. package/schematics/utils/index.js.map +1 -1
  119. package/scrolling/typings/index.metadata.json +1 -1
  120. package/scrolling/typings/scroll-dispatcher.d.ts +2 -2
  121. package/scrolling/typings/viewport-ruler.d.ts +2 -2
  122. package/table/typings/index.metadata.json +1 -1
  123. package/text-field/typings/autosize.d.ts +7 -1
  124. package/text-field/typings/index.metadata.json +1 -1
  125. package/typings/a11y/aria-describer/aria-describer.d.ts +2 -2
  126. package/typings/a11y/focus-monitor/focus-monitor.d.ts +2 -2
  127. package/typings/a11y/index.metadata.json +1 -1
  128. package/typings/a11y/key-manager/list-key-manager.d.ts +1 -1
  129. package/typings/a11y/live-announcer/live-announcer.d.ts +2 -2
  130. package/typings/drag-drop/drag-events.d.ts +5 -5
  131. package/typings/drag-drop/drag-handle.d.ts +3 -1
  132. package/typings/drag-drop/drag-parent.d.ts +15 -0
  133. package/typings/drag-drop/drag-utils.d.ts +10 -0
  134. package/typings/drag-drop/drag.d.ts +6 -11
  135. package/typings/drag-drop/{drop-container.d.ts → drop-list-container.d.ts} +5 -5
  136. package/{drag-drop/typings/drop.d.ts → typings/drag-drop/drop-list.d.ts} +7 -7
  137. package/typings/drag-drop/index.d.ts +1 -0
  138. package/typings/drag-drop/index.metadata.json +1 -1
  139. package/typings/drag-drop/public-api.d.ts +2 -2
  140. package/typings/esm5/a11y/aria-describer/aria-describer.d.ts +2 -2
  141. package/typings/esm5/a11y/focus-monitor/focus-monitor.d.ts +2 -2
  142. package/typings/esm5/a11y/index.metadata.json +1 -1
  143. package/typings/esm5/a11y/key-manager/list-key-manager.d.ts +1 -1
  144. package/typings/esm5/a11y/live-announcer/live-announcer.d.ts +2 -2
  145. package/typings/esm5/drag-drop/drag-events.d.ts +5 -5
  146. package/typings/esm5/drag-drop/drag-handle.d.ts +3 -1
  147. package/typings/esm5/drag-drop/drag-parent.d.ts +15 -0
  148. package/typings/esm5/drag-drop/drag-utils.d.ts +10 -0
  149. package/typings/esm5/drag-drop/drag.d.ts +6 -11
  150. package/typings/esm5/drag-drop/{drop-container.d.ts → drop-list-container.d.ts} +5 -5
  151. package/typings/esm5/drag-drop/{drop.d.ts → drop-list.d.ts} +7 -7
  152. package/typings/esm5/drag-drop/index.d.ts +1 -0
  153. package/typings/esm5/drag-drop/index.metadata.json +1 -1
  154. package/typings/esm5/drag-drop/public-api.d.ts +2 -2
  155. package/typings/esm5/index.metadata.json +1 -1
  156. package/typings/esm5/overlay/keyboard/overlay-keyboard-dispatcher.d.ts +2 -2
  157. package/typings/esm5/overlay/overlay-container.d.ts +2 -2
  158. package/typings/esm5/overlay/overlay-directives.d.ts +1 -1
  159. package/typings/esm5/overlay/overlay-module.d.ts +1 -1
  160. package/typings/esm5/overlay/position/connected-position-strategy.d.ts +1 -1
  161. package/typings/esm5/overlay/position/global-position-strategy.d.ts +2 -2
  162. package/typings/esm5/overlay/position/overlay-position-builder.d.ts +1 -1
  163. package/typings/esm5/platform/features/passive-listeners.d.ts +7 -0
  164. package/typings/esm5/platform/index.metadata.json +1 -1
  165. package/typings/esm5/platform/platform.d.ts +1 -1
  166. package/typings/esm5/scrolling/index.metadata.json +1 -1
  167. package/typings/esm5/scrolling/scroll-dispatcher.d.ts +2 -2
  168. package/typings/esm5/scrolling/viewport-ruler.d.ts +2 -2
  169. package/typings/esm5/table/index.metadata.json +1 -1
  170. package/typings/esm5/text-field/autosize.d.ts +7 -1
  171. package/typings/esm5/text-field/index.metadata.json +1 -1
  172. package/typings/index.metadata.json +1 -1
  173. package/typings/overlay/keyboard/overlay-keyboard-dispatcher.d.ts +2 -2
  174. package/typings/overlay/overlay-container.d.ts +2 -2
  175. package/typings/overlay/overlay-directives.d.ts +1 -1
  176. package/typings/overlay/overlay-module.d.ts +1 -1
  177. package/typings/overlay/position/connected-position-strategy.d.ts +1 -1
  178. package/typings/overlay/position/global-position-strategy.d.ts +2 -2
  179. package/typings/overlay/position/overlay-position-builder.d.ts +1 -1
  180. package/typings/platform/features/passive-listeners.d.ts +7 -0
  181. package/typings/platform/index.metadata.json +1 -1
  182. package/typings/platform/platform.d.ts +1 -1
  183. package/typings/schematics/index.d.ts +0 -1
  184. package/typings/schematics/ng-add/index.d.ts +4 -0
  185. package/typings/schematics/utils/build-component.d.ts +7 -0
  186. package/typings/schematics/utils/html-head-element.d.ts +13 -0
  187. package/typings/schematics/utils/index.d.ts +1 -0
  188. package/typings/scrolling/index.metadata.json +1 -1
  189. package/typings/scrolling/scroll-dispatcher.d.ts +2 -2
  190. package/typings/scrolling/viewport-ruler.d.ts +2 -2
  191. package/typings/table/index.metadata.json +1 -1
  192. package/typings/text-field/autosize.d.ts +7 -1
  193. package/typings/text-field/index.metadata.json +1 -1
  194. package/schematics/testing/index.d.ts +0 -9
  195. package/schematics/testing/index.js +0 -15
  196. package/schematics/testing/index.js.map +0 -1
  197. package/schematics/testing/post-scheduled-tasks.d.ts +0 -18
  198. package/schematics/testing/post-scheduled-tasks.js +0 -35
  199. package/schematics/testing/post-scheduled-tasks.js.map +0 -1
  200. package/schematics/testing/test-app.d.ts +0 -10
  201. package/schematics/testing/test-app.js +0 -20
  202. package/schematics/testing/test-app.js.map +0 -1
  203. package/typings/schematics/testing/index.d.ts +0 -9
  204. package/typings/schematics/testing/post-scheduled-tasks.d.ts +0 -18
  205. package/typings/schematics/testing/test-app.d.ts +0 -10
@@ -784,7 +784,7 @@ var OverlayKeyboardDispatcher = /** @class */ (function () {
784
784
  return OverlayKeyboardDispatcher;
785
785
  }());
786
786
  /**
787
- * \@docs-private \@deprecated \@breaking-change 7.0.0
787
+ * \@docs-private \@deprecated \@breaking-change 8.0.0
788
788
  * @param {?} dispatcher
789
789
  * @param {?} _document
790
790
  * @return {?}
@@ -793,7 +793,7 @@ function OVERLAY_KEYBOARD_DISPATCHER_PROVIDER_FACTORY(dispatcher, _document) {
793
793
  return dispatcher || new OverlayKeyboardDispatcher(_document);
794
794
  }
795
795
  /** *
796
- * \@docs-private \@deprecated \@breaking-change 7.0.0
796
+ * \@docs-private \@deprecated \@breaking-change 8.0.0
797
797
  @type {?} */
798
798
  var OVERLAY_KEYBOARD_DISPATCHER_PROVIDER = {
799
799
  // If there is already an OverlayKeyboardDispatcher available, use that.
@@ -887,7 +887,7 @@ var OverlayContainer = /** @class */ (function () {
887
887
  return OverlayContainer;
888
888
  }());
889
889
  /**
890
- * \@docs-private \@deprecated \@breaking-change 7.0.0
890
+ * \@docs-private \@deprecated \@breaking-change 8.0.0
891
891
  * @param {?} parentContainer
892
892
  * @param {?} _document
893
893
  * @return {?}
@@ -896,7 +896,7 @@ function OVERLAY_CONTAINER_PROVIDER_FACTORY(parentContainer, _document) {
896
896
  return parentContainer || new OverlayContainer(_document);
897
897
  }
898
898
  /** *
899
- * \@docs-private \@deprecated \@breaking-change 7.0.0
899
+ * \@docs-private \@deprecated \@breaking-change 8.0.0
900
900
  @type {?} */
901
901
  var OVERLAY_CONTAINER_PROVIDER = {
902
902
  // If there is already an OverlayContainer available, use that. Otherwise, provide a new one.
@@ -1704,7 +1704,7 @@ FlexibleConnectedPositionStrategy = /** @class */ (function () {
1704
1704
  */
1705
1705
  function () {
1706
1706
  // We shouldn't do anything if the strategy was disposed or we're on the server.
1707
- // @breaking-change 7.0.0 Remove `_platform` null check once it's guaranteed to be defined.
1707
+ // @breaking-change 8.0.0 Remove `_platform` null check once it's guaranteed to be defined.
1708
1708
  if (this._isDisposed || (this._platform && !this._platform.isBrowser)) {
1709
1709
  return;
1710
1710
  }
@@ -1778,12 +1778,12 @@ FlexibleConnectedPositionStrategy = /** @class */ (function () {
1778
1778
  /** @type {?} */
1779
1779
  var bestScore = -1;
1780
1780
  for (var _b = 0, flexibleFits_1 = flexibleFits; _b < flexibleFits_1.length; _b++) {
1781
- var fit_1 = flexibleFits_1[_b];
1781
+ var fit = flexibleFits_1[_b];
1782
1782
  /** @type {?} */
1783
- var score = fit_1.boundingBoxRect.width * fit_1.boundingBoxRect.height * (fit_1.position.weight || 1);
1783
+ var score = fit.boundingBoxRect.width * fit.boundingBoxRect.height * (fit.position.weight || 1);
1784
1784
  if (score > bestScore) {
1785
1785
  bestScore = score;
1786
- bestFit = fit_1;
1786
+ bestFit = fit;
1787
1787
  }
1788
1788
  }
1789
1789
  this._isPushed = false;
@@ -2915,7 +2915,7 @@ function extendStyles(dest, source) {
2915
2915
  * a basic dropdown is connecting the bottom-left corner of the origin to the top-left corner
2916
2916
  * of the overlay.
2917
2917
  * @deprecated Use `FlexibleConnectedPositionStrategy` instead.
2918
- * \@breaking-change 7.0.0
2918
+ * \@breaking-change 8.0.0
2919
2919
  */
2920
2920
  var /**
2921
2921
  * A strategy for positioning overlays. Using this strategy, an overlay is given an
@@ -2924,11 +2924,11 @@ var /**
2924
2924
  * a basic dropdown is connecting the bottom-left corner of the origin to the top-left corner
2925
2925
  * of the overlay.
2926
2926
  * @deprecated Use `FlexibleConnectedPositionStrategy` instead.
2927
- * \@breaking-change 7.0.0
2927
+ * \@breaking-change 8.0.0
2928
2928
  */
2929
2929
  ConnectedPositionStrategy = /** @class */ (function () {
2930
2930
  function ConnectedPositionStrategy(originPos, overlayPos, connectedTo, viewportRuler, document,
2931
- // @breaking-change 7.0.0 `platform` parameter to be made required.
2931
+ // @breaking-change 8.0.0 `platform` parameter to be made required.
2932
2932
  platform$$1) {
2933
2933
  /**
2934
2934
  * Ordered list of preferred positions, from most to least desirable.
@@ -3382,19 +3382,19 @@ GlobalPositionStrategy = /** @class */ (function () {
3382
3382
  * Sets the overlay width and clears any previously set width.
3383
3383
  * @param value New width for the overlay
3384
3384
  * @deprecated Pass the `width` through the `OverlayConfig`.
3385
- * @breaking-change 7.0.0
3385
+ * @breaking-change 8.0.0
3386
3386
  */
3387
3387
  /**
3388
3388
  * Sets the overlay width and clears any previously set width.
3389
3389
  * @deprecated Pass the `width` through the `OverlayConfig`.
3390
- * \@breaking-change 7.0.0
3390
+ * \@breaking-change 8.0.0
3391
3391
  * @param {?=} value New width for the overlay
3392
3392
  * @return {?}
3393
3393
  */
3394
3394
  GlobalPositionStrategy.prototype.width = /**
3395
3395
  * Sets the overlay width and clears any previously set width.
3396
3396
  * @deprecated Pass the `width` through the `OverlayConfig`.
3397
- * \@breaking-change 7.0.0
3397
+ * \@breaking-change 8.0.0
3398
3398
  * @param {?=} value New width for the overlay
3399
3399
  * @return {?}
3400
3400
  */
@@ -3412,19 +3412,19 @@ GlobalPositionStrategy = /** @class */ (function () {
3412
3412
  * Sets the overlay height and clears any previously set height.
3413
3413
  * @param value New height for the overlay
3414
3414
  * @deprecated Pass the `height` through the `OverlayConfig`.
3415
- * @breaking-change 7.0.0
3415
+ * @breaking-change 8.0.0
3416
3416
  */
3417
3417
  /**
3418
3418
  * Sets the overlay height and clears any previously set height.
3419
3419
  * @deprecated Pass the `height` through the `OverlayConfig`.
3420
- * \@breaking-change 7.0.0
3420
+ * \@breaking-change 8.0.0
3421
3421
  * @param {?=} value New height for the overlay
3422
3422
  * @return {?}
3423
3423
  */
3424
3424
  GlobalPositionStrategy.prototype.height = /**
3425
3425
  * Sets the overlay height and clears any previously set height.
3426
3426
  * @deprecated Pass the `height` through the `OverlayConfig`.
3427
- * \@breaking-change 7.0.0
3427
+ * \@breaking-change 8.0.0
3428
3428
  * @param {?=} value New height for the overlay
3429
3429
  * @return {?}
3430
3430
  */
@@ -3587,7 +3587,7 @@ GlobalPositionStrategy = /** @class */ (function () {
3587
3587
  */
3588
3588
  var OverlayPositionBuilder = /** @class */ (function () {
3589
3589
  function OverlayPositionBuilder(_viewportRuler, _document,
3590
- // @breaking-change 7.0.0 `_platform` and `_overlayContainer` parameters to be made required.
3590
+ // @breaking-change 8.0.0 `_platform` and `_overlayContainer` parameters to be made required.
3591
3591
  _platform, _overlayContainer) {
3592
3592
  this._viewportRuler = _viewportRuler;
3593
3593
  this._document = _document;
@@ -3614,12 +3614,12 @@ var OverlayPositionBuilder = /** @class */ (function () {
3614
3614
  * @param originPos
3615
3615
  * @param overlayPos
3616
3616
  * @deprecated Use `flexibleConnectedTo` instead.
3617
- * @breaking-change 7.0.0
3617
+ * @breaking-change 8.0.0
3618
3618
  */
3619
3619
  /**
3620
3620
  * Creates a relative position strategy.
3621
3621
  * @deprecated Use `flexibleConnectedTo` instead.
3622
- * \@breaking-change 7.0.0
3622
+ * \@breaking-change 8.0.0
3623
3623
  * @param {?} elementRef
3624
3624
  * @param {?} originPos
3625
3625
  * @param {?} overlayPos
@@ -3628,7 +3628,7 @@ var OverlayPositionBuilder = /** @class */ (function () {
3628
3628
  OverlayPositionBuilder.prototype.connectedTo = /**
3629
3629
  * Creates a relative position strategy.
3630
3630
  * @deprecated Use `flexibleConnectedTo` instead.
3631
- * \@breaking-change 7.0.0
3631
+ * \@breaking-change 8.0.0
3632
3632
  * @param {?} elementRef
3633
3633
  * @param {?} originPos
3634
3634
  * @param {?} overlayPos
@@ -4334,7 +4334,7 @@ var OverlayModule = /** @class */ (function () {
4334
4334
  }());
4335
4335
  /** *
4336
4336
  * @deprecated Use `OverlayModule` instead.
4337
- * \@breaking-change 7.0.0
4337
+ * \@breaking-change 8.0.0
4338
4338
  * \@docs-private
4339
4339
  @type {?} */
4340
4340
  var OVERLAY_PROVIDERS = [