@angular/cdk 9.1.1 → 9.2.0

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 (190) hide show
  1. package/a11y/focus-monitor/focus-monitor.d.ts +36 -2
  2. package/a11y/index.metadata.json +1 -1
  3. package/bundles/cdk-a11y.umd.js +241 -19
  4. package/bundles/cdk-a11y.umd.js.map +1 -1
  5. package/bundles/cdk-a11y.umd.min.js +25 -10
  6. package/bundles/cdk-a11y.umd.min.js.map +1 -1
  7. package/bundles/cdk-clipboard.umd.js +1 -1
  8. package/bundles/cdk-clipboard.umd.js.map +1 -1
  9. package/bundles/cdk-clipboard.umd.min.js +1 -1
  10. package/bundles/cdk-clipboard.umd.min.js.map +1 -1
  11. package/bundles/cdk-coercion.umd.js +0 -1
  12. package/bundles/cdk-coercion.umd.js.map +1 -1
  13. package/bundles/cdk-coercion.umd.min.js.map +1 -1
  14. package/bundles/cdk-collections.umd.js +203 -6
  15. package/bundles/cdk-collections.umd.js.map +1 -1
  16. package/bundles/cdk-collections.umd.min.js +17 -10
  17. package/bundles/cdk-collections.umd.min.js.map +1 -1
  18. package/bundles/cdk-drag-drop.umd.js +217 -23
  19. package/bundles/cdk-drag-drop.umd.js.map +1 -1
  20. package/bundles/cdk-drag-drop.umd.min.js +25 -10
  21. package/bundles/cdk-drag-drop.umd.min.js.map +1 -1
  22. package/bundles/cdk-overlay.umd.js +210 -12
  23. package/bundles/cdk-overlay.umd.js.map +1 -1
  24. package/bundles/cdk-overlay.umd.min.js +27 -12
  25. package/bundles/cdk-overlay.umd.min.js.map +1 -1
  26. package/bundles/cdk-platform.umd.js +11 -0
  27. package/bundles/cdk-platform.umd.js.map +1 -1
  28. package/bundles/cdk-platform.umd.min.js +6 -6
  29. package/bundles/cdk-platform.umd.min.js.map +1 -1
  30. package/bundles/cdk-portal.umd.js +211 -14
  31. package/bundles/cdk-portal.umd.js.map +1 -1
  32. package/bundles/cdk-portal.umd.min.js +19 -4
  33. package/bundles/cdk-portal.umd.min.js.map +1 -1
  34. package/bundles/cdk-scrolling.umd.js +242 -14
  35. package/bundles/cdk-scrolling.umd.js.map +1 -1
  36. package/bundles/cdk-scrolling.umd.min.js +14 -6
  37. package/bundles/cdk-scrolling.umd.min.js.map +1 -1
  38. package/bundles/cdk-table.umd.js +278 -50
  39. package/bundles/cdk-table.umd.js.map +1 -1
  40. package/bundles/cdk-table.umd.min.js +29 -7
  41. package/bundles/cdk-table.umd.min.js.map +1 -1
  42. package/bundles/cdk-testing-protractor.umd.js +254 -49
  43. package/bundles/cdk-testing-protractor.umd.js.map +1 -1
  44. package/bundles/cdk-testing-protractor.umd.min.js +16 -9
  45. package/bundles/cdk-testing-protractor.umd.min.js.map +1 -1
  46. package/bundles/cdk-testing-testbed.umd.js +257 -54
  47. package/bundles/cdk-testing-testbed.umd.js.map +1 -1
  48. package/bundles/cdk-testing-testbed.umd.min.js +23 -8
  49. package/bundles/cdk-testing-testbed.umd.min.js.map +1 -1
  50. package/bundles/cdk-testing.umd.js +243 -46
  51. package/bundles/cdk-testing.umd.js.map +1 -1
  52. package/bundles/cdk-testing.umd.min.js +20 -5
  53. package/bundles/cdk-testing.umd.min.js.map +1 -1
  54. package/bundles/cdk-text-field.umd.js +21 -6
  55. package/bundles/cdk-text-field.umd.js.map +1 -1
  56. package/bundles/cdk-text-field.umd.min.js +3 -3
  57. package/bundles/cdk-text-field.umd.min.js.map +1 -1
  58. package/bundles/cdk-tree.umd.js +212 -15
  59. package/bundles/cdk-tree.umd.js.map +1 -1
  60. package/bundles/cdk-tree.umd.min.js +17 -3
  61. package/bundles/cdk-tree.umd.min.js.map +1 -1
  62. package/bundles/cdk.umd.js +1 -1
  63. package/bundles/cdk.umd.js.map +1 -1
  64. package/bundles/cdk.umd.min.js +1 -1
  65. package/bundles/cdk.umd.min.js.map +1 -1
  66. package/coercion/array.d.ts +1 -0
  67. package/esm2015/a11y/focus-monitor/focus-monitor.js +93 -12
  68. package/esm2015/a11y/focus-trap/configurable-focus-trap-factory.js +3 -3
  69. package/esm2015/a11y/focus-trap/focus-trap.js +1 -1
  70. package/esm2015/a11y/live-announcer/live-announcer.js +1 -1
  71. package/esm2015/a11y/public-api.js +2 -2
  72. package/esm2015/bidi/directionality.js +1 -1
  73. package/esm2015/clipboard/pending-copy.js +3 -3
  74. package/esm2015/coercion/array.js +1 -2
  75. package/esm2015/drag-drop/drag-drop.js +1 -1
  76. package/esm2015/drag-drop/drag-ref.js +7 -5
  77. package/esm2015/drag-drop/drop-list-ref.js +11 -19
  78. package/esm2015/layout/breakpoints-observer.js +1 -1
  79. package/esm2015/overlay/position/flexible-connected-position-strategy.js +3 -2
  80. package/esm2015/overlay/position/overlay-position-builder.js +1 -1
  81. package/esm2015/platform/features/shadow-dom.js +16 -1
  82. package/esm2015/platform/public-api.js +2 -2
  83. package/esm2015/scrolling/scroll-dispatcher.js +38 -5
  84. package/esm2015/scrolling/viewport-ruler.js +44 -5
  85. package/esm2015/table/cell.js +18 -8
  86. package/esm2015/table/public-api.js +3 -2
  87. package/esm2015/table/row.js +24 -8
  88. package/esm2015/table/table.js +26 -12
  89. package/esm2015/table/text-column.js +3 -26
  90. package/esm2015/table/tokens.js +44 -0
  91. package/esm2015/testing/protractor/protractor-element.js +4 -2
  92. package/esm2015/testing/protractor/protractor-harness-environment.js +13 -8
  93. package/esm2015/testing/testbed/testbed-harness-environment.js +16 -10
  94. package/esm2015/text-field/autosize.js +38 -4
  95. package/esm2015/version.js +1 -1
  96. package/esm5/a11y/focus-monitor/focus-monitor.js +39 -13
  97. package/esm5/a11y/focus-trap/configurable-focus-trap-factory.js +3 -3
  98. package/esm5/a11y/focus-trap/focus-trap.js +1 -1
  99. package/esm5/a11y/live-announcer/live-announcer.js +1 -1
  100. package/esm5/bidi/directionality.js +1 -1
  101. package/esm5/clipboard/pending-copy.js +2 -2
  102. package/esm5/coercion/array.js +1 -2
  103. package/esm5/drag-drop/drag-drop.js +1 -1
  104. package/esm5/drag-drop/drag-ref.js +7 -5
  105. package/esm5/drag-drop/drop-list-ref.js +9 -14
  106. package/esm5/layout/breakpoints-observer.js +1 -1
  107. package/esm5/overlay/position/flexible-connected-position-strategy.js +3 -2
  108. package/esm5/overlay/position/overlay-position-builder.js +1 -1
  109. package/esm5/platform/features/shadow-dom.js +11 -1
  110. package/esm5/scrolling/scroll-dispatcher.js +21 -5
  111. package/esm5/scrolling/viewport-ruler.js +24 -5
  112. package/esm5/table/cell.js +13 -8
  113. package/esm5/table/public-api.js +2 -1
  114. package/esm5/table/row.js +21 -11
  115. package/esm5/table/table.js +16 -11
  116. package/esm5/table/text-column.js +3 -4
  117. package/esm5/table/tokens.js +16 -0
  118. package/esm5/testing/protractor/protractor-element.js +4 -2
  119. package/esm5/testing/protractor/protractor-harness-environment.js +17 -11
  120. package/esm5/testing/testbed/testbed-harness-environment.js +17 -11
  121. package/esm5/text-field/autosize.js +20 -4
  122. package/esm5/version.js +1 -1
  123. package/fesm2015/a11y.js +89 -11
  124. package/fesm2015/a11y.js.map +1 -1
  125. package/fesm2015/cdk.js +1 -1
  126. package/fesm2015/cdk.js.map +1 -1
  127. package/fesm2015/clipboard.js +2 -2
  128. package/fesm2015/clipboard.js.map +1 -1
  129. package/fesm2015/coercion.js +0 -1
  130. package/fesm2015/coercion.js.map +1 -1
  131. package/fesm2015/drag-drop.js +16 -22
  132. package/fesm2015/drag-drop.js.map +1 -1
  133. package/fesm2015/overlay.js +2 -1
  134. package/fesm2015/overlay.js.map +1 -1
  135. package/fesm2015/platform.js +16 -1
  136. package/fesm2015/platform.js.map +1 -1
  137. package/fesm2015/scrolling.js +76 -7
  138. package/fesm2015/scrolling.js.map +1 -1
  139. package/fesm2015/table.js +98 -49
  140. package/fesm2015/table.js.map +1 -1
  141. package/fesm2015/testing/protractor.js +16 -9
  142. package/fesm2015/testing/protractor.js.map +1 -1
  143. package/fesm2015/testing/testbed.js +15 -9
  144. package/fesm2015/testing/testbed.js.map +1 -1
  145. package/fesm2015/text-field.js +37 -3
  146. package/fesm2015/text-field.js.map +1 -1
  147. package/fesm5/a11y.js +36 -12
  148. package/fesm5/a11y.js.map +1 -1
  149. package/fesm5/cdk.js +1 -1
  150. package/fesm5/cdk.js.map +1 -1
  151. package/fesm5/clipboard.js +1 -1
  152. package/fesm5/clipboard.js.map +1 -1
  153. package/fesm5/coercion.js +0 -1
  154. package/fesm5/coercion.js.map +1 -1
  155. package/fesm5/drag-drop.js +14 -17
  156. package/fesm5/drag-drop.js.map +1 -1
  157. package/fesm5/overlay.js +2 -1
  158. package/fesm5/overlay.js.map +1 -1
  159. package/fesm5/platform.js +11 -1
  160. package/fesm5/platform.js.map +1 -1
  161. package/fesm5/scrolling.js +39 -7
  162. package/fesm5/scrolling.js.map +1 -1
  163. package/fesm5/table.js +59 -29
  164. package/fesm5/table.js.map +1 -1
  165. package/fesm5/testing/protractor.js +20 -12
  166. package/fesm5/testing/protractor.js.map +1 -1
  167. package/fesm5/testing/testbed.js +16 -10
  168. package/fesm5/testing/testbed.js.map +1 -1
  169. package/fesm5/text-field.js +19 -3
  170. package/fesm5/text-field.js.map +1 -1
  171. package/package.json +1 -1
  172. package/platform/features/shadow-dom.d.ts +2 -0
  173. package/platform/index.metadata.json +1 -1
  174. package/schematics/ng-add/index.js +1 -1
  175. package/schematics/ng-update/upgrade-rules/class-names-rule.js +3 -1
  176. package/schematics/utils/ast/ng-module-imports.js +3 -2
  177. package/scrolling/index.metadata.json +1 -1
  178. package/scrolling/scroll-dispatcher.d.ts +9 -1
  179. package/scrolling/viewport-ruler.d.ts +9 -1
  180. package/table/cell.d.ts +2 -0
  181. package/table/index.metadata.json +1 -1
  182. package/table/public-api.d.ts +1 -0
  183. package/table/row.d.ts +6 -3
  184. package/table/table.d.ts +2 -0
  185. package/table/text-column.d.ts +2 -13
  186. package/table/tokens.d.ts +25 -0
  187. package/testing/protractor/protractor-harness-environment.d.ts +10 -3
  188. package/testing/testbed/testbed-harness-environment.d.ts +12 -4
  189. package/text-field/autosize.d.ts +9 -1
  190. package/text-field/index.metadata.json +1 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/cdk/scrolling'), require('@angular/cdk/platform'), require('@angular/cdk/coercion'), require('rxjs'), require('rxjs/operators'), require('tslib'), require('@angular/cdk/bidi')) :
3
- typeof define === 'function' && define.amd ? define('@angular/cdk/drag-drop', ['exports', '@angular/core', '@angular/common', '@angular/cdk/scrolling', '@angular/cdk/platform', '@angular/cdk/coercion', 'rxjs', 'rxjs/operators', 'tslib', '@angular/cdk/bidi'], factory) :
4
- (global = global || self, factory((global.ng = global.ng || {}, global.ng.cdk = global.ng.cdk || {}, global.ng.cdk.dragDrop = {}), global.ng.core, global.ng.common, global.ng.cdk.scrolling, global.ng.cdk.platform, global.ng.cdk.coercion, global.rxjs, global.rxjs.operators, global.tslib, global.ng.cdk.bidi));
5
- }(this, (function (exports, i0, i1, i2, platform, coercion, rxjs, operators, tslib, bidi) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/cdk/scrolling'), require('@angular/cdk/platform'), require('@angular/cdk/coercion'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/bidi')) :
3
+ typeof define === 'function' && define.amd ? define('@angular/cdk/drag-drop', ['exports', '@angular/core', '@angular/common', '@angular/cdk/scrolling', '@angular/cdk/platform', '@angular/cdk/coercion', 'rxjs', 'rxjs/operators', '@angular/cdk/bidi'], factory) :
4
+ (global = global || self, factory((global.ng = global.ng || {}, global.ng.cdk = global.ng.cdk || {}, global.ng.cdk.dragDrop = {}), global.ng.core, global.ng.common, global.ng.cdk.scrolling, global.ng.cdk.platform, global.ng.cdk.coercion, global.rxjs, global.rxjs.operators, global.ng.cdk.bidi));
5
+ }(this, (function (exports, i0, i1, i2, platform, coercion, rxjs, operators, bidi) { 'use strict';
6
6
 
7
7
  /**
8
8
  * @license
@@ -661,10 +661,10 @@
661
661
  _this._dropContainer.exit(_this);
662
662
  // Notify the new container that the item has entered.
663
663
  _this._dropContainer = newContainer;
664
- _this._dropContainer.enter(_this, x, y,
665
- // If we're re-entering the initial container,
666
- // put item the into its starting index to begin with.
667
- newContainer === _this._initialContainer ? _this._initialIndex : undefined);
664
+ _this._dropContainer.enter(_this, x, y, newContainer === _this._initialContainer &&
665
+ // If we're re-entering the initial container and sorting is disabled,
666
+ // put item the into its starting index to begin with.
667
+ newContainer.sortingDisabled ? _this._initialIndex : undefined);
668
668
  _this.entered.next({
669
669
  item: _this,
670
670
  container: newContainer,
@@ -688,6 +688,7 @@
688
688
  var preview;
689
689
  if (previewTemplate) {
690
690
  var viewRef = previewConfig.viewContainer.createEmbeddedView(previewTemplate, previewConfig.context);
691
+ viewRef.detectChanges();
691
692
  preview = getRootNode(viewRef, this._document);
692
693
  this._previewRef = viewRef;
693
694
  if (previewConfig.matchSize) {
@@ -774,6 +775,7 @@
774
775
  var placeholder;
775
776
  if (placeholderTemplate) {
776
777
  this._placeholderRef = placeholderConfig.viewContainer.createEmbeddedView(placeholderTemplate, placeholderConfig.context);
778
+ this._placeholderRef.detectChanges();
777
779
  placeholder = getRootNode(this._placeholderRef, this._document);
778
780
  }
779
781
  else {
@@ -1056,6 +1058,203 @@
1056
1058
  target.style.transform = getTransform(sourceRect.left, sourceRect.top);
1057
1059
  }
1058
1060
 
1061
+ /*! *****************************************************************************
1062
+ Copyright (c) Microsoft Corporation. All rights reserved.
1063
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
1064
+ this file except in compliance with the License. You may obtain a copy of the
1065
+ License at http://www.apache.org/licenses/LICENSE-2.0
1066
+
1067
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1068
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
1069
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
1070
+ MERCHANTABLITY OR NON-INFRINGEMENT.
1071
+
1072
+ See the Apache Version 2.0 License for specific language governing permissions
1073
+ and limitations under the License.
1074
+ ***************************************************************************** */
1075
+ /* global Reflect, Promise */
1076
+
1077
+ var extendStatics = function(d, b) {
1078
+ extendStatics = Object.setPrototypeOf ||
1079
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1080
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
1081
+ return extendStatics(d, b);
1082
+ };
1083
+
1084
+ function __extends(d, b) {
1085
+ extendStatics(d, b);
1086
+ function __() { this.constructor = d; }
1087
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1088
+ }
1089
+
1090
+ var __assign = function() {
1091
+ __assign = Object.assign || function __assign(t) {
1092
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
1093
+ s = arguments[i];
1094
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
1095
+ }
1096
+ return t;
1097
+ };
1098
+ return __assign.apply(this, arguments);
1099
+ };
1100
+
1101
+ function __rest(s, e) {
1102
+ var t = {};
1103
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1104
+ t[p] = s[p];
1105
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
1106
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1107
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1108
+ t[p[i]] = s[p[i]];
1109
+ }
1110
+ return t;
1111
+ }
1112
+
1113
+ function __decorate(decorators, target, key, desc) {
1114
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1115
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1116
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1117
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
1118
+ }
1119
+
1120
+ function __param(paramIndex, decorator) {
1121
+ return function (target, key) { decorator(target, key, paramIndex); }
1122
+ }
1123
+
1124
+ function __metadata(metadataKey, metadataValue) {
1125
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
1126
+ }
1127
+
1128
+ function __awaiter(thisArg, _arguments, P, generator) {
1129
+ return new (P || (P = Promise))(function (resolve, reject) {
1130
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
1131
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
1132
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
1133
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
1134
+ });
1135
+ }
1136
+
1137
+ function __generator(thisArg, body) {
1138
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
1139
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
1140
+ function verb(n) { return function (v) { return step([n, v]); }; }
1141
+ function step(op) {
1142
+ if (f) throw new TypeError("Generator is already executing.");
1143
+ while (_) try {
1144
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
1145
+ if (y = 0, t) op = [op[0] & 2, t.value];
1146
+ switch (op[0]) {
1147
+ case 0: case 1: t = op; break;
1148
+ case 4: _.label++; return { value: op[1], done: false };
1149
+ case 5: _.label++; y = op[1]; op = [0]; continue;
1150
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
1151
+ default:
1152
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
1153
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
1154
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
1155
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
1156
+ if (t[2]) _.ops.pop();
1157
+ _.trys.pop(); continue;
1158
+ }
1159
+ op = body.call(thisArg, _);
1160
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
1161
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
1162
+ }
1163
+ }
1164
+
1165
+ function __exportStar(m, exports) {
1166
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
1167
+ }
1168
+
1169
+ function __values(o) {
1170
+ var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
1171
+ if (m) return m.call(o);
1172
+ return {
1173
+ next: function () {
1174
+ if (o && i >= o.length) o = void 0;
1175
+ return { value: o && o[i++], done: !o };
1176
+ }
1177
+ };
1178
+ }
1179
+
1180
+ function __read(o, n) {
1181
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
1182
+ if (!m) return o;
1183
+ var i = m.call(o), r, ar = [], e;
1184
+ try {
1185
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
1186
+ }
1187
+ catch (error) { e = { error: error }; }
1188
+ finally {
1189
+ try {
1190
+ if (r && !r.done && (m = i["return"])) m.call(i);
1191
+ }
1192
+ finally { if (e) throw e.error; }
1193
+ }
1194
+ return ar;
1195
+ }
1196
+
1197
+ function __spread() {
1198
+ for (var ar = [], i = 0; i < arguments.length; i++)
1199
+ ar = ar.concat(__read(arguments[i]));
1200
+ return ar;
1201
+ }
1202
+
1203
+ function __spreadArrays() {
1204
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
1205
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
1206
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
1207
+ r[k] = a[j];
1208
+ return r;
1209
+ };
1210
+
1211
+ function __await(v) {
1212
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
1213
+ }
1214
+
1215
+ function __asyncGenerator(thisArg, _arguments, generator) {
1216
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
1217
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
1218
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
1219
+ function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
1220
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
1221
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
1222
+ function fulfill(value) { resume("next", value); }
1223
+ function reject(value) { resume("throw", value); }
1224
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
1225
+ }
1226
+
1227
+ function __asyncDelegator(o) {
1228
+ var i, p;
1229
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
1230
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
1231
+ }
1232
+
1233
+ function __asyncValues(o) {
1234
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
1235
+ var m = o[Symbol.asyncIterator], i;
1236
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
1237
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
1238
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
1239
+ }
1240
+
1241
+ function __makeTemplateObject(cooked, raw) {
1242
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
1243
+ return cooked;
1244
+ };
1245
+
1246
+ function __importStar(mod) {
1247
+ if (mod && mod.__esModule) return mod;
1248
+ var result = {};
1249
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
1250
+ result.default = mod;
1251
+ return result;
1252
+ }
1253
+
1254
+ function __importDefault(mod) {
1255
+ return (mod && mod.__esModule) ? mod : { default: mod };
1256
+ }
1257
+
1059
1258
  /**
1060
1259
  * @license
1061
1260
  * Copyright Google LLC All Rights Reserved.
@@ -1402,7 +1601,7 @@
1402
1601
  // We always allow the current element to be scrollable
1403
1602
  // so we need to ensure that it's in the array.
1404
1603
  this._scrollableElements =
1405
- elements.indexOf(element) === -1 ? tslib.__spread([element], elements) : elements.slice();
1604
+ elements.indexOf(element) === -1 ? __spread([element], elements) : elements.slice();
1406
1605
  return this;
1407
1606
  };
1408
1607
  /**
@@ -1517,7 +1716,7 @@
1517
1716
  return;
1518
1717
  }
1519
1718
  if (isPointerNearClientRect(position.clientRect, pointerX, pointerY)) {
1520
- _a = tslib.__read(getElementScrollDirections(element, position.clientRect, pointerX, pointerY), 2), verticalScrollDirection = _a[0], horizontalScrollDirection = _a[1];
1719
+ _a = __read(getElementScrollDirections(element, position.clientRect, pointerX, pointerY), 2), verticalScrollDirection = _a[0], horizontalScrollDirection = _a[1];
1521
1720
  if (verticalScrollDirection || horizontalScrollDirection) {
1522
1721
  scrollNode = element;
1523
1722
  }
@@ -1688,13 +1887,17 @@
1688
1887
  */
1689
1888
  DropListRef.prototype._updateAfterScroll = function (scrolledParent, newTop, newLeft) {
1690
1889
  var _this = this;
1890
+ // Used when figuring out whether an element is inside the scroll parent. If the scrolled
1891
+ // parent is the `document`, we use the `documentElement`, because IE doesn't support `contains`
1892
+ // on the `document`.
1893
+ var scrolledParentNode = scrolledParent === this._document ? scrolledParent.documentElement : scrolledParent;
1691
1894
  var scrollPosition = this._parentPositions.get(scrolledParent).scrollPosition;
1692
1895
  var topDifference = scrollPosition.top - newTop;
1693
1896
  var leftDifference = scrollPosition.left - newLeft;
1694
1897
  // Go through and update the cached positions of the scroll
1695
1898
  // parents that are inside the element that was scrolled.
1696
1899
  this._parentPositions.forEach(function (position, node) {
1697
- if (position.clientRect && scrolledParent !== node && scrolledParent.contains(node)) {
1900
+ if (position.clientRect && scrolledParent !== node && scrolledParentNode.contains(node)) {
1698
1901
  adjustClientRect(position.clientRect, topDifference, leftDifference);
1699
1902
  }
1700
1903
  });
@@ -1819,7 +2022,8 @@
1819
2022
  */
1820
2023
  DropListRef.prototype._getShadowRoot = function () {
1821
2024
  if (!this._cachedShadowRoot) {
1822
- this._cachedShadowRoot = getShadowRoot(coercion.coerceElement(this.element)) || this._document;
2025
+ var shadowRoot = platform._getShadowRoot(coercion.coerceElement(this.element));
2026
+ this._cachedShadowRoot = shadowRoot || this._document;
1823
2027
  }
1824
2028
  return this._cachedShadowRoot;
1825
2029
  };
@@ -1991,16 +2195,6 @@
1991
2195
  }
1992
2196
  return [verticalScrollDirection, horizontalScrollDirection];
1993
2197
  }
1994
- /** Gets the shadow root of an element, if any. */
1995
- function getShadowRoot(element) {
1996
- if (platform._supportsShadowDom()) {
1997
- var rootNode = element.getRootNode ? element.getRootNode() : null;
1998
- if (rootNode instanceof ShadowRoot) {
1999
- return rootNode;
2000
- }
2001
- }
2002
- return null;
2003
- }
2004
2198
 
2005
2199
  /**
2006
2200
  * @license
@@ -2518,7 +2712,7 @@
2518
2712
  }),
2519
2713
  // Listen if the state of any of the handles changes.
2520
2714
  operators.switchMap(function (handles) {
2521
- return rxjs.merge.apply(void 0, tslib.__spread(handles.map(function (item) {
2715
+ return rxjs.merge.apply(void 0, __spread(handles.map(function (item) {
2522
2716
  return item._stateChanges.pipe(operators.startWith(item));
2523
2717
  })));
2524
2718
  }), operators.takeUntil(_this._destroyed)).subscribe(function (handleInstance) {