@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
@@ -751,7 +751,7 @@ var OverlayKeyboardDispatcher = /** @class */ (function () {
751
751
  return OverlayKeyboardDispatcher;
752
752
  }());
753
753
  /**
754
- * \@docs-private \@deprecated \@breaking-change 7.0.0
754
+ * \@docs-private \@deprecated \@breaking-change 8.0.0
755
755
  * @param {?} dispatcher
756
756
  * @param {?} _document
757
757
  * @return {?}
@@ -760,7 +760,7 @@ function OVERLAY_KEYBOARD_DISPATCHER_PROVIDER_FACTORY(dispatcher, _document) {
760
760
  return dispatcher || new OverlayKeyboardDispatcher(_document);
761
761
  }
762
762
  /** *
763
- * \@docs-private \@deprecated \@breaking-change 7.0.0
763
+ * \@docs-private \@deprecated \@breaking-change 8.0.0
764
764
  @type {?} */
765
765
  var OVERLAY_KEYBOARD_DISPATCHER_PROVIDER = {
766
766
  // If there is already an OverlayKeyboardDispatcher available, use that.
@@ -854,7 +854,7 @@ var OverlayContainer = /** @class */ (function () {
854
854
  return OverlayContainer;
855
855
  }());
856
856
  /**
857
- * \@docs-private \@deprecated \@breaking-change 7.0.0
857
+ * \@docs-private \@deprecated \@breaking-change 8.0.0
858
858
  * @param {?} parentContainer
859
859
  * @param {?} _document
860
860
  * @return {?}
@@ -863,7 +863,7 @@ function OVERLAY_CONTAINER_PROVIDER_FACTORY(parentContainer, _document) {
863
863
  return parentContainer || new OverlayContainer(_document);
864
864
  }
865
865
  /** *
866
- * \@docs-private \@deprecated \@breaking-change 7.0.0
866
+ * \@docs-private \@deprecated \@breaking-change 8.0.0
867
867
  @type {?} */
868
868
  var OVERLAY_CONTAINER_PROVIDER = {
869
869
  // If there is already an OverlayContainer available, use that. Otherwise, provide a new one.
@@ -1671,7 +1671,7 @@ FlexibleConnectedPositionStrategy = /** @class */ (function () {
1671
1671
  */
1672
1672
  function () {
1673
1673
  // We shouldn't do anything if the strategy was disposed or we're on the server.
1674
- // @breaking-change 7.0.0 Remove `_platform` null check once it's guaranteed to be defined.
1674
+ // @breaking-change 8.0.0 Remove `_platform` null check once it's guaranteed to be defined.
1675
1675
  if (this._isDisposed || (this._platform && !this._platform.isBrowser)) {
1676
1676
  return;
1677
1677
  }
@@ -1745,12 +1745,12 @@ FlexibleConnectedPositionStrategy = /** @class */ (function () {
1745
1745
  /** @type {?} */
1746
1746
  var bestScore = -1;
1747
1747
  for (var _b = 0, flexibleFits_1 = flexibleFits; _b < flexibleFits_1.length; _b++) {
1748
- var fit_1 = flexibleFits_1[_b];
1748
+ var fit = flexibleFits_1[_b];
1749
1749
  /** @type {?} */
1750
- var score = fit_1.boundingBoxRect.width * fit_1.boundingBoxRect.height * (fit_1.position.weight || 1);
1750
+ var score = fit.boundingBoxRect.width * fit.boundingBoxRect.height * (fit.position.weight || 1);
1751
1751
  if (score > bestScore) {
1752
1752
  bestScore = score;
1753
- bestFit = fit_1;
1753
+ bestFit = fit;
1754
1754
  }
1755
1755
  }
1756
1756
  this._isPushed = false;
@@ -2882,7 +2882,7 @@ function extendStyles(dest, source) {
2882
2882
  * a basic dropdown is connecting the bottom-left corner of the origin to the top-left corner
2883
2883
  * of the overlay.
2884
2884
  * @deprecated Use `FlexibleConnectedPositionStrategy` instead.
2885
- * \@breaking-change 7.0.0
2885
+ * \@breaking-change 8.0.0
2886
2886
  */
2887
2887
  var /**
2888
2888
  * A strategy for positioning overlays. Using this strategy, an overlay is given an
@@ -2891,11 +2891,11 @@ var /**
2891
2891
  * a basic dropdown is connecting the bottom-left corner of the origin to the top-left corner
2892
2892
  * of the overlay.
2893
2893
  * @deprecated Use `FlexibleConnectedPositionStrategy` instead.
2894
- * \@breaking-change 7.0.0
2894
+ * \@breaking-change 8.0.0
2895
2895
  */
2896
2896
  ConnectedPositionStrategy = /** @class */ (function () {
2897
2897
  function ConnectedPositionStrategy(originPos, overlayPos, connectedTo, viewportRuler, document,
2898
- // @breaking-change 7.0.0 `platform` parameter to be made required.
2898
+ // @breaking-change 8.0.0 `platform` parameter to be made required.
2899
2899
  platform) {
2900
2900
  /**
2901
2901
  * Ordered list of preferred positions, from most to least desirable.
@@ -3349,19 +3349,19 @@ GlobalPositionStrategy = /** @class */ (function () {
3349
3349
  * Sets the overlay width and clears any previously set width.
3350
3350
  * @param value New width for the overlay
3351
3351
  * @deprecated Pass the `width` through the `OverlayConfig`.
3352
- * @breaking-change 7.0.0
3352
+ * @breaking-change 8.0.0
3353
3353
  */
3354
3354
  /**
3355
3355
  * Sets the overlay width and clears any previously set width.
3356
3356
  * @deprecated Pass the `width` through the `OverlayConfig`.
3357
- * \@breaking-change 7.0.0
3357
+ * \@breaking-change 8.0.0
3358
3358
  * @param {?=} value New width for the overlay
3359
3359
  * @return {?}
3360
3360
  */
3361
3361
  GlobalPositionStrategy.prototype.width = /**
3362
3362
  * Sets the overlay width and clears any previously set width.
3363
3363
  * @deprecated Pass the `width` through the `OverlayConfig`.
3364
- * \@breaking-change 7.0.0
3364
+ * \@breaking-change 8.0.0
3365
3365
  * @param {?=} value New width for the overlay
3366
3366
  * @return {?}
3367
3367
  */
@@ -3379,19 +3379,19 @@ GlobalPositionStrategy = /** @class */ (function () {
3379
3379
  * Sets the overlay height and clears any previously set height.
3380
3380
  * @param value New height for the overlay
3381
3381
  * @deprecated Pass the `height` through the `OverlayConfig`.
3382
- * @breaking-change 7.0.0
3382
+ * @breaking-change 8.0.0
3383
3383
  */
3384
3384
  /**
3385
3385
  * Sets the overlay height and clears any previously set height.
3386
3386
  * @deprecated Pass the `height` through the `OverlayConfig`.
3387
- * \@breaking-change 7.0.0
3387
+ * \@breaking-change 8.0.0
3388
3388
  * @param {?=} value New height for the overlay
3389
3389
  * @return {?}
3390
3390
  */
3391
3391
  GlobalPositionStrategy.prototype.height = /**
3392
3392
  * Sets the overlay height and clears any previously set height.
3393
3393
  * @deprecated Pass the `height` through the `OverlayConfig`.
3394
- * \@breaking-change 7.0.0
3394
+ * \@breaking-change 8.0.0
3395
3395
  * @param {?=} value New height for the overlay
3396
3396
  * @return {?}
3397
3397
  */
@@ -3554,7 +3554,7 @@ GlobalPositionStrategy = /** @class */ (function () {
3554
3554
  */
3555
3555
  var OverlayPositionBuilder = /** @class */ (function () {
3556
3556
  function OverlayPositionBuilder(_viewportRuler, _document,
3557
- // @breaking-change 7.0.0 `_platform` and `_overlayContainer` parameters to be made required.
3557
+ // @breaking-change 8.0.0 `_platform` and `_overlayContainer` parameters to be made required.
3558
3558
  _platform, _overlayContainer) {
3559
3559
  this._viewportRuler = _viewportRuler;
3560
3560
  this._document = _document;
@@ -3581,12 +3581,12 @@ var OverlayPositionBuilder = /** @class */ (function () {
3581
3581
  * @param originPos
3582
3582
  * @param overlayPos
3583
3583
  * @deprecated Use `flexibleConnectedTo` instead.
3584
- * @breaking-change 7.0.0
3584
+ * @breaking-change 8.0.0
3585
3585
  */
3586
3586
  /**
3587
3587
  * Creates a relative position strategy.
3588
3588
  * @deprecated Use `flexibleConnectedTo` instead.
3589
- * \@breaking-change 7.0.0
3589
+ * \@breaking-change 8.0.0
3590
3590
  * @param {?} elementRef
3591
3591
  * @param {?} originPos
3592
3592
  * @param {?} overlayPos
@@ -3595,7 +3595,7 @@ var OverlayPositionBuilder = /** @class */ (function () {
3595
3595
  OverlayPositionBuilder.prototype.connectedTo = /**
3596
3596
  * Creates a relative position strategy.
3597
3597
  * @deprecated Use `flexibleConnectedTo` instead.
3598
- * \@breaking-change 7.0.0
3598
+ * \@breaking-change 8.0.0
3599
3599
  * @param {?} elementRef
3600
3600
  * @param {?} originPos
3601
3601
  * @param {?} overlayPos
@@ -4301,7 +4301,7 @@ var OverlayModule = /** @class */ (function () {
4301
4301
  }());
4302
4302
  /** *
4303
4303
  * @deprecated Use `OverlayModule` instead.
4304
- * \@breaking-change 7.0.0
4304
+ * \@breaking-change 8.0.0
4305
4305
  * \@docs-private
4306
4306
  @type {?} */
4307
4307
  var OVERLAY_PROVIDERS = [