@angular/cdk 10.1.1 → 10.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 (223) hide show
  1. package/a11y/index.metadata.json +1 -1
  2. package/a11y/key-manager/list-key-manager.d.ts +4 -3
  3. package/bundles/cdk-a11y.umd.js +440 -384
  4. package/bundles/cdk-a11y.umd.js.map +1 -1
  5. package/bundles/cdk-a11y.umd.min.js +34 -10
  6. package/bundles/cdk-a11y.umd.min.js.map +1 -1
  7. package/bundles/cdk-accordion.umd.js +40 -40
  8. package/bundles/cdk-accordion.umd.js.map +1 -1
  9. package/bundles/cdk-accordion.umd.min.js +10 -2
  10. package/bundles/cdk-accordion.umd.min.js.map +1 -1
  11. package/bundles/cdk-bidi.umd.js +25 -25
  12. package/bundles/cdk-bidi.umd.js.map +1 -1
  13. package/bundles/cdk-bidi.umd.min.js +5 -4
  14. package/bundles/cdk-bidi.umd.min.js.map +1 -1
  15. package/bundles/cdk-clipboard.umd.js +37 -36
  16. package/bundles/cdk-clipboard.umd.js.map +1 -1
  17. package/bundles/cdk-clipboard.umd.min.js +10 -2
  18. package/bundles/cdk-clipboard.umd.min.js.map +1 -1
  19. package/bundles/cdk-coercion.umd.js.map +1 -1
  20. package/bundles/cdk-collections.umd.js +498 -238
  21. package/bundles/cdk-collections.umd.js.map +1 -1
  22. package/bundles/cdk-collections.umd.min.js +6 -4
  23. package/bundles/cdk-collections.umd.min.js.map +1 -1
  24. package/bundles/cdk-drag-drop.umd.js +508 -448
  25. package/bundles/cdk-drag-drop.umd.js.map +1 -1
  26. package/bundles/cdk-drag-drop.umd.min.js +64 -8
  27. package/bundles/cdk-drag-drop.umd.min.js.map +1 -1
  28. package/bundles/cdk-keycodes.umd.js.map +1 -1
  29. package/bundles/cdk-layout.umd.js +30 -26
  30. package/bundles/cdk-layout.umd.js.map +1 -1
  31. package/bundles/cdk-layout.umd.min.js +7 -6
  32. package/bundles/cdk-layout.umd.min.js.map +1 -1
  33. package/bundles/cdk-observers.umd.js +34 -34
  34. package/bundles/cdk-observers.umd.js.map +1 -1
  35. package/bundles/cdk-observers.umd.min.js +2 -2
  36. package/bundles/cdk-observers.umd.min.js.map +1 -1
  37. package/bundles/cdk-overlay.umd.js +492 -435
  38. package/bundles/cdk-overlay.umd.js.map +1 -1
  39. package/bundles/cdk-overlay.umd.min.js +51 -11
  40. package/bundles/cdk-overlay.umd.min.js.map +1 -1
  41. package/bundles/cdk-platform.umd.js +38 -11
  42. package/bundles/cdk-platform.umd.js.map +1 -1
  43. package/bundles/cdk-platform.umd.min.js +5 -12
  44. package/bundles/cdk-platform.umd.min.js.map +1 -1
  45. package/bundles/cdk-portal.umd.js +385 -322
  46. package/bundles/cdk-portal.umd.js.map +1 -1
  47. package/bundles/cdk-portal.umd.min.js +3 -12
  48. package/bundles/cdk-portal.umd.min.js.map +1 -1
  49. package/bundles/cdk-scrolling.umd.js +503 -490
  50. package/bundles/cdk-scrolling.umd.js.map +1 -1
  51. package/bundles/cdk-scrolling.umd.min.js +20 -34
  52. package/bundles/cdk-scrolling.umd.min.js.map +1 -1
  53. package/bundles/cdk-stepper.umd.js +135 -136
  54. package/bundles/cdk-stepper.umd.js.map +1 -1
  55. package/bundles/cdk-stepper.umd.min.js +11 -2
  56. package/bundles/cdk-stepper.umd.min.js.map +1 -1
  57. package/bundles/cdk-table.umd.js +923 -653
  58. package/bundles/cdk-table.umd.js.map +1 -1
  59. package/bundles/cdk-table.umd.min.js +7 -22
  60. package/bundles/cdk-table.umd.min.js.map +1 -1
  61. package/bundles/cdk-testing-protractor.umd.js +310 -245
  62. package/bundles/cdk-testing-protractor.umd.js.map +1 -1
  63. package/bundles/cdk-testing-protractor.umd.min.js +2 -9
  64. package/bundles/cdk-testing-protractor.umd.min.js.map +1 -1
  65. package/bundles/cdk-testing-testbed.umd.js +341 -292
  66. package/bundles/cdk-testing-testbed.umd.js.map +1 -1
  67. package/bundles/cdk-testing-testbed.umd.min.js +6 -29
  68. package/bundles/cdk-testing-testbed.umd.min.js.map +1 -1
  69. package/bundles/cdk-testing.umd.js +342 -270
  70. package/bundles/cdk-testing.umd.js.map +1 -1
  71. package/bundles/cdk-testing.umd.min.js +3 -17
  72. package/bundles/cdk-testing.umd.min.js.map +1 -1
  73. package/bundles/cdk-text-field.umd.js +53 -53
  74. package/bundles/cdk-text-field.umd.js.map +1 -1
  75. package/bundles/cdk-text-field.umd.min.js +10 -2
  76. package/bundles/cdk-text-field.umd.min.js.map +1 -1
  77. package/bundles/cdk-tree.umd.js +481 -417
  78. package/bundles/cdk-tree.umd.js.map +1 -1
  79. package/bundles/cdk-tree.umd.min.js +28 -3
  80. package/bundles/cdk-tree.umd.min.js.map +1 -1
  81. package/bundles/cdk.umd.js +1 -1
  82. package/bundles/cdk.umd.js.map +1 -1
  83. package/bundles/cdk.umd.min.js +1 -1
  84. package/bundles/cdk.umd.min.js.map +1 -1
  85. package/collections/dispose-view-repeater-strategy.d.ts +22 -0
  86. package/collections/index.metadata.json +1 -1
  87. package/collections/public-api.d.ts +3 -0
  88. package/collections/recycle-view-repeater-strategy.d.ts +56 -0
  89. package/collections/view-repeater.d.ts +94 -0
  90. package/drag-drop/index.d.ts +1 -2
  91. package/drag-drop/index.metadata.json +1 -1
  92. package/drag-drop/public-api.d.ts +2 -1
  93. package/esm2015/a11y/aria-describer/aria-describer.js +3 -3
  94. package/esm2015/a11y/focus-monitor/focus-monitor.js +3 -3
  95. package/esm2015/a11y/focus-trap/focus-trap.js +5 -4
  96. package/esm2015/a11y/key-manager/list-key-manager.js +8 -6
  97. package/esm2015/clipboard/pending-copy.js +7 -6
  98. package/esm2015/collections/collection-viewer.js +1 -0
  99. package/esm2015/collections/dispose-view-repeater-strategy.js +48 -0
  100. package/esm2015/collections/public-api.js +4 -1
  101. package/esm2015/collections/recycle-view-repeater-strategy.js +128 -0
  102. package/esm2015/collections/selection-model.js +2 -2
  103. package/esm2015/collections/tree-adapter.js +1 -0
  104. package/esm2015/collections/view-repeater.js +16 -0
  105. package/esm2015/drag-drop/clone-node.js +9 -1
  106. package/esm2015/drag-drop/directives/drag-handle.js +1 -3
  107. package/esm2015/drag-drop/directives/drag.js +7 -5
  108. package/esm2015/drag-drop/directives/drop-list.js +3 -3
  109. package/esm2015/drag-drop/drag-events.js +1 -0
  110. package/esm2015/drag-drop/drag-ref.js +2 -2
  111. package/esm2015/drag-drop/index.js +1 -3
  112. package/esm2015/drag-drop/public-api.js +3 -2
  113. package/esm2015/layout/breakpoints-observer.js +9 -9
  114. package/esm2015/overlay/dispatchers/overlay-outside-click-dispatcher.js +11 -9
  115. package/esm2015/overlay/overlay-config.js +1 -5
  116. package/esm2015/overlay/overlay-directives.js +18 -2
  117. package/esm2015/overlay/overlay-ref.js +6 -8
  118. package/esm2015/overlay/overlay-reference.js +1 -0
  119. package/esm2015/overlay/overlay.js +4 -4
  120. package/esm2015/overlay/position/connected-position-strategy.js +2 -9
  121. package/esm2015/overlay/position/flexible-connected-position-strategy.js +19 -16
  122. package/esm2015/overlay/position/position-strategy.js +1 -0
  123. package/esm2015/overlay/scroll/close-scroll-strategy.js +2 -2
  124. package/esm2015/overlay/scroll/reposition-scroll-strategy.js +2 -2
  125. package/esm2015/platform/features/scrolling.js +29 -2
  126. package/esm2015/portal/dom-portal-outlet.js +7 -4
  127. package/esm2015/portal/portal-directives.js +3 -3
  128. package/esm2015/portal/portal-injector.js +3 -1
  129. package/esm2015/portal/portal.js +25 -19
  130. package/esm2015/scrolling/fixed-size-virtual-scroll.js +2 -2
  131. package/esm2015/scrolling/scrolling-module.js +4 -1
  132. package/esm2015/scrolling/virtual-for-of.js +67 -92
  133. package/esm2015/scrolling/virtual-scroll-repeater.js +1 -0
  134. package/esm2015/scrolling/virtual-scroll-viewport.js +5 -5
  135. package/esm2015/stepper/stepper.js +19 -17
  136. package/esm2015/table/cell.js +34 -14
  137. package/esm2015/table/coalesced-style-scheduler.js +87 -0
  138. package/esm2015/table/public-api.js +2 -1
  139. package/esm2015/table/sticky-styler.js +79 -45
  140. package/esm2015/table/table-module.js +4 -2
  141. package/esm2015/table/table.js +70 -44
  142. package/esm2015/table/text-column.js +9 -5
  143. package/esm2015/testing/element-dimensions.js +1 -0
  144. package/esm2015/testing/protractor/protractor-element.js +6 -3
  145. package/esm2015/testing/public-api.js +2 -1
  146. package/esm2015/testing/test-element.js +1 -1
  147. package/esm2015/testing/testbed/task-state-zone-interceptor.js +2 -2
  148. package/esm2015/testing/testbed/unit-test-element.js +26 -21
  149. package/esm2015/testing/text-filtering.js +23 -0
  150. package/esm2015/text-field/autofill.js +3 -3
  151. package/esm2015/tree/control/tree-control.js +1 -0
  152. package/esm2015/tree/nested-node.js +2 -2
  153. package/esm2015/tree/padding.js +34 -20
  154. package/esm2015/tree/tree.js +14 -27
  155. package/esm2015/version.js +1 -1
  156. package/fesm2015/a11y.js +15 -12
  157. package/fesm2015/a11y.js.map +1 -1
  158. package/fesm2015/cdk.js +1 -1
  159. package/fesm2015/cdk.js.map +1 -1
  160. package/fesm2015/clipboard.js +6 -5
  161. package/fesm2015/clipboard.js.map +1 -1
  162. package/fesm2015/collections.js +194 -3
  163. package/fesm2015/collections.js.map +1 -1
  164. package/fesm2015/drag-drop.js +32 -23
  165. package/fesm2015/drag-drop.js.map +1 -1
  166. package/fesm2015/layout.js +8 -8
  167. package/fesm2015/layout.js.map +1 -1
  168. package/fesm2015/overlay.js +55 -48
  169. package/fesm2015/overlay.js.map +1 -1
  170. package/fesm2015/platform.js +28 -1
  171. package/fesm2015/platform.js.map +1 -1
  172. package/fesm2015/portal.js +34 -23
  173. package/fesm2015/portal.js.map +1 -1
  174. package/fesm2015/scrolling.js +72 -95
  175. package/fesm2015/scrolling.js.map +1 -1
  176. package/fesm2015/stepper.js +19 -17
  177. package/fesm2015/stepper.js.map +1 -1
  178. package/fesm2015/table.js +274 -105
  179. package/fesm2015/table.js.map +1 -1
  180. package/fesm2015/testing/protractor.js +5 -2
  181. package/fesm2015/testing/protractor.js.map +1 -1
  182. package/fesm2015/testing/testbed.js +26 -21
  183. package/fesm2015/testing/testbed.js.map +1 -1
  184. package/fesm2015/testing.js +24 -1
  185. package/fesm2015/testing.js.map +1 -1
  186. package/fesm2015/text-field.js +2 -2
  187. package/fesm2015/text-field.js.map +1 -1
  188. package/fesm2015/tree.js +46 -45
  189. package/fesm2015/tree.js.map +1 -1
  190. package/layout/breakpoints-observer.d.ts +3 -3
  191. package/overlay/index.metadata.json +1 -1
  192. package/overlay/overlay-config.d.ts +0 -4
  193. package/overlay/overlay-directives.d.ts +1 -0
  194. package/overlay/position/connected-position-strategy.d.ts +1 -3
  195. package/package.json +1 -1
  196. package/platform/index.metadata.json +1 -1
  197. package/portal/index.metadata.json +1 -1
  198. package/portal/portal-injector.d.ts +2 -0
  199. package/schematics/index.js +1 -1
  200. package/schematics/ng-add/index.js +1 -1
  201. package/schematics/ng-update/data/index.js +1 -1
  202. package/schematics/ng-update/public-api.js +1 -1
  203. package/schematics/update-tool/public-api.js +1 -1
  204. package/schematics/utils/index.js +1 -1
  205. package/scrolling/index.metadata.json +1 -1
  206. package/scrolling/scrolling-module.d.ts +3 -0
  207. package/scrolling/virtual-for-of.d.ts +11 -19
  208. package/stepper/index.metadata.json +1 -1
  209. package/stepper/stepper.d.ts +7 -10
  210. package/table/cell.d.ts +21 -1
  211. package/table/coalesced-style-scheduler.d.ts +41 -0
  212. package/table/index.metadata.json +1 -1
  213. package/table/public-api.d.ts +1 -0
  214. package/table/sticky-styler.d.ts +7 -1
  215. package/table/table.d.ts +14 -8
  216. package/testing/protractor/protractor-element.d.ts +2 -2
  217. package/testing/public-api.d.ts +1 -0
  218. package/testing/test-element.d.ts +9 -2
  219. package/testing/testbed/unit-test-element.d.ts +9 -2
  220. package/testing/text-filtering.d.ts +13 -0
  221. package/tree/index.metadata.json +1 -1
  222. package/tree/padding.d.ts +14 -0
  223. package/tree/tree.d.ts +2 -4
@@ -104,7 +104,7 @@
104
104
  };
105
105
  /** Removes the host element's aria-describedby reference to the message element. */
106
106
  AriaDescriber.prototype.removeDescription = function (hostElement, message) {
107
- if (!this._isElementNode(hostElement)) {
107
+ if (!message || !this._isElementNode(hostElement)) {
108
108
  return;
109
109
  }
110
110
  if (this._isElementDescribedByMessage(hostElement, message)) {
@@ -171,7 +171,7 @@
171
171
  // already a container on the page, but we don't have a reference to it. Clear the
172
172
  // old container so we don't get duplicates. Doing this, instead of emptying the previous
173
173
  // container, should be slightly faster.
174
- if (preExistingContainer) {
174
+ if (preExistingContainer && preExistingContainer.parentNode) {
175
175
  preExistingContainer.parentNode.removeChild(preExistingContainer);
176
176
  }
177
177
  messagesContainer = this._document.createElement('div');
@@ -249,243 +249,316 @@
249
249
  AriaDescriber.prototype._isElementNode = function (element) {
250
250
  return element.nodeType === this._document.ELEMENT_NODE;
251
251
  };
252
- AriaDescriber.ɵprov = i0.ɵɵdefineInjectable({ factory: function AriaDescriber_Factory() { return new AriaDescriber(i0.ɵɵinject(i2.DOCUMENT), i0.ɵɵinject(i1.Platform)); }, token: AriaDescriber, providedIn: "root" });
253
- AriaDescriber.decorators = [
254
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
255
- ];
256
- AriaDescriber.ctorParameters = function () { return [
257
- { type: undefined, decorators: [{ type: i0.Inject, args: [i2.DOCUMENT,] }] },
258
- { type: i1.Platform }
259
- ]; };
260
252
  return AriaDescriber;
261
253
  }());
254
+ AriaDescriber.ɵprov = i0.ɵɵdefineInjectable({ factory: function AriaDescriber_Factory() { return new AriaDescriber(i0.ɵɵinject(i2.DOCUMENT), i0.ɵɵinject(i1.Platform)); }, token: AriaDescriber, providedIn: "root" });
255
+ AriaDescriber.decorators = [
256
+ { type: i0.Injectable, args: [{ providedIn: 'root' },] }
257
+ ];
258
+ AriaDescriber.ctorParameters = function () { return [
259
+ { type: undefined, decorators: [{ type: i0.Inject, args: [i2.DOCUMENT,] }] },
260
+ { type: i1.Platform }
261
+ ]; };
262
262
 
263
- /*! *****************************************************************************
264
- Copyright (c) Microsoft Corporation.
265
-
266
- Permission to use, copy, modify, and/or distribute this software for any
267
- purpose with or without fee is hereby granted.
268
-
269
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
270
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
271
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
272
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
273
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
274
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
275
- PERFORMANCE OF THIS SOFTWARE.
276
- ***************************************************************************** */
277
- /* global Reflect, Promise */
278
-
279
- var extendStatics = function(d, b) {
280
- extendStatics = Object.setPrototypeOf ||
281
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
282
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
283
- return extendStatics(d, b);
284
- };
285
-
286
- function __extends(d, b) {
287
- extendStatics(d, b);
288
- function __() { this.constructor = d; }
289
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
290
- }
291
-
292
- var __assign = function() {
293
- __assign = Object.assign || function __assign(t) {
294
- for (var s, i = 1, n = arguments.length; i < n; i++) {
295
- s = arguments[i];
296
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
297
- }
298
- return t;
299
- };
300
- return __assign.apply(this, arguments);
301
- };
302
-
303
- function __rest(s, e) {
304
- var t = {};
305
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
306
- t[p] = s[p];
307
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
308
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
309
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
310
- t[p[i]] = s[p[i]];
311
- }
312
- return t;
313
- }
314
-
315
- function __decorate(decorators, target, key, desc) {
316
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
317
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
318
- 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;
319
- return c > 3 && r && Object.defineProperty(target, key, r), r;
320
- }
321
-
322
- function __param(paramIndex, decorator) {
323
- return function (target, key) { decorator(target, key, paramIndex); }
324
- }
325
-
326
- function __metadata(metadataKey, metadataValue) {
327
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
328
- }
329
-
330
- function __awaiter(thisArg, _arguments, P, generator) {
331
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
332
- return new (P || (P = Promise))(function (resolve, reject) {
333
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
334
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
335
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
336
- step((generator = generator.apply(thisArg, _arguments || [])).next());
337
- });
338
- }
339
-
340
- function __generator(thisArg, body) {
341
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
342
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
343
- function verb(n) { return function (v) { return step([n, v]); }; }
344
- function step(op) {
345
- if (f) throw new TypeError("Generator is already executing.");
346
- while (_) try {
347
- 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;
348
- if (y = 0, t) op = [op[0] & 2, t.value];
349
- switch (op[0]) {
350
- case 0: case 1: t = op; break;
351
- case 4: _.label++; return { value: op[1], done: false };
352
- case 5: _.label++; y = op[1]; op = [0]; continue;
353
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
354
- default:
355
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
356
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
357
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
358
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
359
- if (t[2]) _.ops.pop();
360
- _.trys.pop(); continue;
361
- }
362
- op = body.call(thisArg, _);
363
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
364
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
365
- }
366
- }
367
-
368
- var __createBinding = Object.create ? (function(o, m, k, k2) {
369
- if (k2 === undefined) k2 = k;
370
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
371
- }) : (function(o, m, k, k2) {
372
- if (k2 === undefined) k2 = k;
373
- o[k2] = m[k];
374
- });
375
-
376
- function __exportStar(m, exports) {
377
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
378
- }
379
-
380
- function __values(o) {
381
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
382
- if (m) return m.call(o);
383
- if (o && typeof o.length === "number") return {
384
- next: function () {
385
- if (o && i >= o.length) o = void 0;
386
- return { value: o && o[i++], done: !o };
387
- }
388
- };
389
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
390
- }
391
-
392
- function __read(o, n) {
393
- var m = typeof Symbol === "function" && o[Symbol.iterator];
394
- if (!m) return o;
395
- var i = m.call(o), r, ar = [], e;
396
- try {
397
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
398
- }
399
- catch (error) { e = { error: error }; }
400
- finally {
401
- try {
402
- if (r && !r.done && (m = i["return"])) m.call(i);
403
- }
404
- finally { if (e) throw e.error; }
405
- }
406
- return ar;
407
- }
408
-
409
- function __spread() {
410
- for (var ar = [], i = 0; i < arguments.length; i++)
411
- ar = ar.concat(__read(arguments[i]));
412
- return ar;
413
- }
414
-
415
- function __spreadArrays() {
416
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
417
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
418
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
419
- r[k] = a[j];
420
- return r;
421
- };
422
-
423
- function __await(v) {
424
- return this instanceof __await ? (this.v = v, this) : new __await(v);
425
- }
426
-
427
- function __asyncGenerator(thisArg, _arguments, generator) {
428
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
429
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
430
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
431
- 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); }); }; }
432
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
433
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
434
- function fulfill(value) { resume("next", value); }
435
- function reject(value) { resume("throw", value); }
436
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
437
- }
438
-
439
- function __asyncDelegator(o) {
440
- var i, p;
441
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
442
- 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; }
443
- }
444
-
445
- function __asyncValues(o) {
446
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
447
- var m = o[Symbol.asyncIterator], i;
448
- 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);
449
- 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); }); }; }
450
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
451
- }
452
-
453
- function __makeTemplateObject(cooked, raw) {
454
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
455
- return cooked;
456
- };
457
-
458
- var __setModuleDefault = Object.create ? (function(o, v) {
459
- Object.defineProperty(o, "default", { enumerable: true, value: v });
460
- }) : function(o, v) {
461
- o["default"] = v;
462
- };
463
-
464
- function __importStar(mod) {
465
- if (mod && mod.__esModule) return mod;
466
- var result = {};
467
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
468
- __setModuleDefault(result, mod);
469
- return result;
470
- }
471
-
472
- function __importDefault(mod) {
473
- return (mod && mod.__esModule) ? mod : { default: mod };
474
- }
475
-
476
- function __classPrivateFieldGet(receiver, privateMap) {
477
- if (!privateMap.has(receiver)) {
478
- throw new TypeError("attempted to get private field on non-instance");
479
- }
480
- return privateMap.get(receiver);
481
- }
482
-
483
- function __classPrivateFieldSet(receiver, privateMap, value) {
484
- if (!privateMap.has(receiver)) {
485
- throw new TypeError("attempted to set private field on non-instance");
486
- }
487
- privateMap.set(receiver, value);
488
- return value;
263
+ /*! *****************************************************************************
264
+ Copyright (c) Microsoft Corporation.
265
+
266
+ Permission to use, copy, modify, and/or distribute this software for any
267
+ purpose with or without fee is hereby granted.
268
+
269
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
270
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
271
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
272
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
273
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
274
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
275
+ PERFORMANCE OF THIS SOFTWARE.
276
+ ***************************************************************************** */
277
+ /* global Reflect, Promise */
278
+ var extendStatics = function (d, b) {
279
+ extendStatics = Object.setPrototypeOf ||
280
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
281
+ function (d, b) { for (var p in b)
282
+ if (b.hasOwnProperty(p))
283
+ d[p] = b[p]; };
284
+ return extendStatics(d, b);
285
+ };
286
+ function __extends(d, b) {
287
+ extendStatics(d, b);
288
+ function __() { this.constructor = d; }
289
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
290
+ }
291
+ var __assign = function () {
292
+ __assign = Object.assign || function __assign(t) {
293
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
294
+ s = arguments[i];
295
+ for (var p in s)
296
+ if (Object.prototype.hasOwnProperty.call(s, p))
297
+ t[p] = s[p];
298
+ }
299
+ return t;
300
+ };
301
+ return __assign.apply(this, arguments);
302
+ };
303
+ function __rest(s, e) {
304
+ var t = {};
305
+ for (var p in s)
306
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
307
+ t[p] = s[p];
308
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
309
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
310
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
311
+ t[p[i]] = s[p[i]];
312
+ }
313
+ return t;
314
+ }
315
+ function __decorate(decorators, target, key, desc) {
316
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
317
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
318
+ r = Reflect.decorate(decorators, target, key, desc);
319
+ else
320
+ for (var i = decorators.length - 1; i >= 0; i--)
321
+ if (d = decorators[i])
322
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
323
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
324
+ }
325
+ function __param(paramIndex, decorator) {
326
+ return function (target, key) { decorator(target, key, paramIndex); };
327
+ }
328
+ function __metadata(metadataKey, metadataValue) {
329
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
330
+ return Reflect.metadata(metadataKey, metadataValue);
331
+ }
332
+ function __awaiter(thisArg, _arguments, P, generator) {
333
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
334
+ return new (P || (P = Promise))(function (resolve, reject) {
335
+ function fulfilled(value) { try {
336
+ step(generator.next(value));
337
+ }
338
+ catch (e) {
339
+ reject(e);
340
+ } }
341
+ function rejected(value) { try {
342
+ step(generator["throw"](value));
343
+ }
344
+ catch (e) {
345
+ reject(e);
346
+ } }
347
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
348
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
349
+ });
350
+ }
351
+ function __generator(thisArg, body) {
352
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
353
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
354
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
355
+ function verb(n) { return function (v) { return step([n, v]); }; }
356
+ function step(op) {
357
+ if (f)
358
+ throw new TypeError("Generator is already executing.");
359
+ while (_)
360
+ try {
361
+ 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)
362
+ return t;
363
+ if (y = 0, t)
364
+ op = [op[0] & 2, t.value];
365
+ switch (op[0]) {
366
+ case 0:
367
+ case 1:
368
+ t = op;
369
+ break;
370
+ case 4:
371
+ _.label++;
372
+ return { value: op[1], done: false };
373
+ case 5:
374
+ _.label++;
375
+ y = op[1];
376
+ op = [0];
377
+ continue;
378
+ case 7:
379
+ op = _.ops.pop();
380
+ _.trys.pop();
381
+ continue;
382
+ default:
383
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
384
+ _ = 0;
385
+ continue;
386
+ }
387
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
388
+ _.label = op[1];
389
+ break;
390
+ }
391
+ if (op[0] === 6 && _.label < t[1]) {
392
+ _.label = t[1];
393
+ t = op;
394
+ break;
395
+ }
396
+ if (t && _.label < t[2]) {
397
+ _.label = t[2];
398
+ _.ops.push(op);
399
+ break;
400
+ }
401
+ if (t[2])
402
+ _.ops.pop();
403
+ _.trys.pop();
404
+ continue;
405
+ }
406
+ op = body.call(thisArg, _);
407
+ }
408
+ catch (e) {
409
+ op = [6, e];
410
+ y = 0;
411
+ }
412
+ finally {
413
+ f = t = 0;
414
+ }
415
+ if (op[0] & 5)
416
+ throw op[1];
417
+ return { value: op[0] ? op[1] : void 0, done: true };
418
+ }
419
+ }
420
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
421
+ if (k2 === undefined)
422
+ k2 = k;
423
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
424
+ }) : (function (o, m, k, k2) {
425
+ if (k2 === undefined)
426
+ k2 = k;
427
+ o[k2] = m[k];
428
+ });
429
+ function __exportStar(m, exports) {
430
+ for (var p in m)
431
+ if (p !== "default" && !exports.hasOwnProperty(p))
432
+ __createBinding(exports, m, p);
433
+ }
434
+ function __values(o) {
435
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
436
+ if (m)
437
+ return m.call(o);
438
+ if (o && typeof o.length === "number")
439
+ return {
440
+ next: function () {
441
+ if (o && i >= o.length)
442
+ o = void 0;
443
+ return { value: o && o[i++], done: !o };
444
+ }
445
+ };
446
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
447
+ }
448
+ function __read(o, n) {
449
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
450
+ if (!m)
451
+ return o;
452
+ var i = m.call(o), r, ar = [], e;
453
+ try {
454
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
455
+ ar.push(r.value);
456
+ }
457
+ catch (error) {
458
+ e = { error: error };
459
+ }
460
+ finally {
461
+ try {
462
+ if (r && !r.done && (m = i["return"]))
463
+ m.call(i);
464
+ }
465
+ finally {
466
+ if (e)
467
+ throw e.error;
468
+ }
469
+ }
470
+ return ar;
471
+ }
472
+ function __spread() {
473
+ for (var ar = [], i = 0; i < arguments.length; i++)
474
+ ar = ar.concat(__read(arguments[i]));
475
+ return ar;
476
+ }
477
+ function __spreadArrays() {
478
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
479
+ s += arguments[i].length;
480
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
481
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
482
+ r[k] = a[j];
483
+ return r;
484
+ }
485
+ ;
486
+ function __await(v) {
487
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
488
+ }
489
+ function __asyncGenerator(thisArg, _arguments, generator) {
490
+ if (!Symbol.asyncIterator)
491
+ throw new TypeError("Symbol.asyncIterator is not defined.");
492
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
493
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
494
+ function verb(n) { if (g[n])
495
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
496
+ function resume(n, v) { try {
497
+ step(g[n](v));
498
+ }
499
+ catch (e) {
500
+ settle(q[0][3], e);
501
+ } }
502
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
503
+ function fulfill(value) { resume("next", value); }
504
+ function reject(value) { resume("throw", value); }
505
+ function settle(f, v) { if (f(v), q.shift(), q.length)
506
+ resume(q[0][0], q[0][1]); }
507
+ }
508
+ function __asyncDelegator(o) {
509
+ var i, p;
510
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
511
+ 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; }
512
+ }
513
+ function __asyncValues(o) {
514
+ if (!Symbol.asyncIterator)
515
+ throw new TypeError("Symbol.asyncIterator is not defined.");
516
+ var m = o[Symbol.asyncIterator], i;
517
+ 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);
518
+ 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); }); }; }
519
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
520
+ }
521
+ function __makeTemplateObject(cooked, raw) {
522
+ if (Object.defineProperty) {
523
+ Object.defineProperty(cooked, "raw", { value: raw });
524
+ }
525
+ else {
526
+ cooked.raw = raw;
527
+ }
528
+ return cooked;
529
+ }
530
+ ;
531
+ var __setModuleDefault = Object.create ? (function (o, v) {
532
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
533
+ }) : function (o, v) {
534
+ o["default"] = v;
535
+ };
536
+ function __importStar(mod) {
537
+ if (mod && mod.__esModule)
538
+ return mod;
539
+ var result = {};
540
+ if (mod != null)
541
+ for (var k in mod)
542
+ if (Object.hasOwnProperty.call(mod, k))
543
+ __createBinding(result, mod, k);
544
+ __setModuleDefault(result, mod);
545
+ return result;
546
+ }
547
+ function __importDefault(mod) {
548
+ return (mod && mod.__esModule) ? mod : { default: mod };
549
+ }
550
+ function __classPrivateFieldGet(receiver, privateMap) {
551
+ if (!privateMap.has(receiver)) {
552
+ throw new TypeError("attempted to get private field on non-instance");
553
+ }
554
+ return privateMap.get(receiver);
555
+ }
556
+ function __classPrivateFieldSet(receiver, privateMap, value) {
557
+ if (!privateMap.has(receiver)) {
558
+ throw new TypeError("attempted to set private field on non-instance");
559
+ }
560
+ privateMap.set(receiver, value);
561
+ return value;
489
562
  }
490
563
 
491
564
  /**
@@ -592,7 +665,8 @@
592
665
  ListKeyManager.prototype.withTypeAhead = function (debounceInterval) {
593
666
  var _this = this;
594
667
  if (debounceInterval === void 0) { debounceInterval = 200; }
595
- if (this._items.length && this._items.some(function (item) { return typeof item.getLabel !== 'function'; })) {
668
+ if ((typeof ngDevMode === 'undefined' || ngDevMode) && (this._items.length &&
669
+ this._items.some(function (item) { return typeof item.getLabel !== 'function'; }))) {
596
670
  throw Error('ListKeyManager items in typeahead mode must implement the `getLabel` method.');
597
671
  }
598
672
  this._typeaheadSubscription.unsubscribe();
@@ -617,11 +691,13 @@
617
691
  return this;
618
692
  };
619
693
  /**
620
- * Configures the key manager to focus the first and last items
621
- * respectively when the Home key and End Key are pressed.
694
+ * Configures the key manager to activate the first and last items
695
+ * respectively when the Home or End key is pressed.
696
+ * @param enabled Whether pressing the Home or End key activates the first/last item.
622
697
  */
623
- ListKeyManager.prototype.withHomeAndEnd = function () {
624
- this._homeAndEnd = true;
698
+ ListKeyManager.prototype.withHomeAndEnd = function (enabled) {
699
+ if (enabled === void 0) { enabled = true; }
700
+ this._homeAndEnd = enabled;
625
701
  return this;
626
702
  };
627
703
  ListKeyManager.prototype.setActiveItem = function (item) {
@@ -814,13 +890,6 @@
814
890
  return ListKeyManager;
815
891
  }());
816
892
 
817
- /**
818
- * @license
819
- * Copyright Google LLC All Rights Reserved.
820
- *
821
- * Use of this source code is governed by an MIT-style license that can be
822
- * found in the LICENSE file at https://angular.io/license
823
- */
824
893
  var ActiveDescendantKeyManager = /** @class */ (function (_super) {
825
894
  __extends(ActiveDescendantKeyManager, _super);
826
895
  function ActiveDescendantKeyManager() {
@@ -838,17 +907,10 @@
838
907
  return ActiveDescendantKeyManager;
839
908
  }(ListKeyManager));
840
909
 
841
- /**
842
- * @license
843
- * Copyright Google LLC All Rights Reserved.
844
- *
845
- * Use of this source code is governed by an MIT-style license that can be
846
- * found in the LICENSE file at https://angular.io/license
847
- */
848
910
  var FocusKeyManager = /** @class */ (function (_super) {
849
911
  __extends(FocusKeyManager, _super);
850
912
  function FocusKeyManager() {
851
- var _this = _super !== null && _super.apply(this, arguments) || this;
913
+ var _this = _super.apply(this, __spread(arguments)) || this;
852
914
  _this._origin = 'program';
853
915
  return _this;
854
916
  }
@@ -1002,15 +1064,15 @@
1002
1064
  return isPotentiallyFocusable(element) && !this.isDisabled(element) &&
1003
1065
  ((config === null || config === void 0 ? void 0 : config.ignoreVisibility) || this.isVisible(element));
1004
1066
  };
1005
- InteractivityChecker.ɵprov = i0.ɵɵdefineInjectable({ factory: function InteractivityChecker_Factory() { return new InteractivityChecker(i0.ɵɵinject(i1.Platform)); }, token: InteractivityChecker, providedIn: "root" });
1006
- InteractivityChecker.decorators = [
1007
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
1008
- ];
1009
- InteractivityChecker.ctorParameters = function () { return [
1010
- { type: i1.Platform }
1011
- ]; };
1012
1067
  return InteractivityChecker;
1013
1068
  }());
1069
+ InteractivityChecker.ɵprov = i0.ɵɵdefineInjectable({ factory: function InteractivityChecker_Factory() { return new InteractivityChecker(i0.ɵɵinject(i1.Platform)); }, token: InteractivityChecker, providedIn: "root" });
1070
+ InteractivityChecker.decorators = [
1071
+ { type: i0.Injectable, args: [{ providedIn: 'root' },] }
1072
+ ];
1073
+ InteractivityChecker.ctorParameters = function () { return [
1074
+ { type: i1.Platform }
1075
+ ]; };
1014
1076
  /**
1015
1077
  * Returns the frame element from a window object. Since browsers like MS Edge throw errors if
1016
1078
  * the frameElement property is being accessed from a different host address, this property
@@ -1285,7 +1347,8 @@
1285
1347
  }
1286
1348
  // Warn the consumer if the element they've pointed to
1287
1349
  // isn't focusable, when not in production mode.
1288
- if (i0.isDevMode() && !this._checker.isFocusable(redirectToElement)) {
1350
+ if ((typeof ngDevMode === 'undefined' || ngDevMode) &&
1351
+ !this._checker.isFocusable(redirectToElement)) {
1289
1352
  console.warn("Element matching '[cdkFocusInitial]' is not focusable.", redirectToElement);
1290
1353
  }
1291
1354
  redirectToElement.focus();
@@ -1391,7 +1454,7 @@
1391
1454
  fn();
1392
1455
  }
1393
1456
  else {
1394
- this._ngZone.onStable.asObservable().pipe(operators.take(1)).subscribe(fn);
1457
+ this._ngZone.onStable.pipe(operators.take(1)).subscribe(fn);
1395
1458
  }
1396
1459
  };
1397
1460
  return FocusTrap;
@@ -1418,17 +1481,17 @@
1418
1481
  if (deferCaptureElements === void 0) { deferCaptureElements = false; }
1419
1482
  return new FocusTrap(element, this._checker, this._ngZone, this._document, deferCaptureElements);
1420
1483
  };
1421
- FocusTrapFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function FocusTrapFactory_Factory() { return new FocusTrapFactory(i0.ɵɵinject(InteractivityChecker), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i2.DOCUMENT)); }, token: FocusTrapFactory, providedIn: "root" });
1422
- FocusTrapFactory.decorators = [
1423
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
1424
- ];
1425
- FocusTrapFactory.ctorParameters = function () { return [
1426
- { type: InteractivityChecker },
1427
- { type: i0.NgZone },
1428
- { type: undefined, decorators: [{ type: i0.Inject, args: [i2.DOCUMENT,] }] }
1429
- ]; };
1430
1484
  return FocusTrapFactory;
1431
1485
  }());
1486
+ FocusTrapFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function FocusTrapFactory_Factory() { return new FocusTrapFactory(i0.ɵɵinject(InteractivityChecker), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i2.DOCUMENT)); }, token: FocusTrapFactory, providedIn: "root" });
1487
+ FocusTrapFactory.decorators = [
1488
+ { type: i0.Injectable, args: [{ providedIn: 'root' },] }
1489
+ ];
1490
+ FocusTrapFactory.ctorParameters = function () { return [
1491
+ { type: InteractivityChecker },
1492
+ { type: i0.NgZone },
1493
+ { type: undefined, decorators: [{ type: i0.Inject, args: [i2.DOCUMENT,] }] }
1494
+ ]; };
1432
1495
  /** Directive for trapping focus within a region. */
1433
1496
  var CdkTrapFocus = /** @class */ (function () {
1434
1497
  function CdkTrapFocus(_elementRef, _focusTrapFactory, _document) {
@@ -1487,31 +1550,24 @@
1487
1550
  this._previouslyFocusedElement = this._document.activeElement;
1488
1551
  this.focusTrap.focusInitialElementWhenReady();
1489
1552
  };
1490
- CdkTrapFocus.decorators = [
1491
- { type: i0.Directive, args: [{
1492
- selector: '[cdkTrapFocus]',
1493
- exportAs: 'cdkTrapFocus',
1494
- },] }
1495
- ];
1496
- CdkTrapFocus.ctorParameters = function () { return [
1497
- { type: i0.ElementRef },
1498
- { type: FocusTrapFactory },
1499
- { type: undefined, decorators: [{ type: i0.Inject, args: [i2.DOCUMENT,] }] }
1500
- ]; };
1501
- CdkTrapFocus.propDecorators = {
1502
- enabled: [{ type: i0.Input, args: ['cdkTrapFocus',] }],
1503
- autoCapture: [{ type: i0.Input, args: ['cdkTrapFocusAutoCapture',] }]
1504
- };
1505
1553
  return CdkTrapFocus;
1506
1554
  }());
1555
+ CdkTrapFocus.decorators = [
1556
+ { type: i0.Directive, args: [{
1557
+ selector: '[cdkTrapFocus]',
1558
+ exportAs: 'cdkTrapFocus',
1559
+ },] }
1560
+ ];
1561
+ CdkTrapFocus.ctorParameters = function () { return [
1562
+ { type: i0.ElementRef },
1563
+ { type: FocusTrapFactory },
1564
+ { type: undefined, decorators: [{ type: i0.Inject, args: [i2.DOCUMENT,] }] }
1565
+ ]; };
1566
+ CdkTrapFocus.propDecorators = {
1567
+ enabled: [{ type: i0.Input, args: ['cdkTrapFocus',] }],
1568
+ autoCapture: [{ type: i0.Input, args: ['cdkTrapFocusAutoCapture',] }]
1569
+ };
1507
1570
 
1508
- /**
1509
- * @license
1510
- * Copyright Google LLC All Rights Reserved.
1511
- *
1512
- * Use of this source code is governed by an MIT-style license that can be
1513
- * found in the LICENSE file at https://angular.io/license
1514
- */
1515
1571
  /**
1516
1572
  * Class that allows for trapping focus within a DOM element.
1517
1573
  *
@@ -1733,12 +1789,12 @@
1733
1789
  }
1734
1790
  }
1735
1791
  };
1736
- FocusTrapManager.ɵprov = i0.ɵɵdefineInjectable({ factory: function FocusTrapManager_Factory() { return new FocusTrapManager(); }, token: FocusTrapManager, providedIn: "root" });
1737
- FocusTrapManager.decorators = [
1738
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
1739
- ];
1740
1792
  return FocusTrapManager;
1741
1793
  }());
1794
+ FocusTrapManager.ɵprov = i0.ɵɵdefineInjectable({ factory: function FocusTrapManager_Factory() { return new FocusTrapManager(); }, token: FocusTrapManager, providedIn: "root" });
1795
+ FocusTrapManager.decorators = [
1796
+ { type: i0.Injectable, args: [{ providedIn: 'root' },] }
1797
+ ];
1742
1798
 
1743
1799
  /**
1744
1800
  * @license
@@ -1769,19 +1825,19 @@
1769
1825
  }
1770
1826
  return new ConfigurableFocusTrap(element, this._checker, this._ngZone, this._document, this._focusTrapManager, this._inertStrategy, configObject);
1771
1827
  };
1772
- ConfigurableFocusTrapFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function ConfigurableFocusTrapFactory_Factory() { return new ConfigurableFocusTrapFactory(i0.ɵɵinject(InteractivityChecker), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(FocusTrapManager), i0.ɵɵinject(i2.DOCUMENT), i0.ɵɵinject(FOCUS_TRAP_INERT_STRATEGY, 8)); }, token: ConfigurableFocusTrapFactory, providedIn: "root" });
1773
- ConfigurableFocusTrapFactory.decorators = [
1774
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
1775
- ];
1776
- ConfigurableFocusTrapFactory.ctorParameters = function () { return [
1777
- { type: InteractivityChecker },
1778
- { type: i0.NgZone },
1779
- { type: FocusTrapManager },
1780
- { type: undefined, decorators: [{ type: i0.Inject, args: [i2.DOCUMENT,] }] },
1781
- { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [FOCUS_TRAP_INERT_STRATEGY,] }] }
1782
- ]; };
1783
1828
  return ConfigurableFocusTrapFactory;
1784
1829
  }());
1830
+ ConfigurableFocusTrapFactory.ɵprov = i0.ɵɵdefineInjectable({ factory: function ConfigurableFocusTrapFactory_Factory() { return new ConfigurableFocusTrapFactory(i0.ɵɵinject(InteractivityChecker), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(FocusTrapManager), i0.ɵɵinject(i2.DOCUMENT), i0.ɵɵinject(FOCUS_TRAP_INERT_STRATEGY, 8)); }, token: ConfigurableFocusTrapFactory, providedIn: "root" });
1831
+ ConfigurableFocusTrapFactory.decorators = [
1832
+ { type: i0.Injectable, args: [{ providedIn: 'root' },] }
1833
+ ];
1834
+ ConfigurableFocusTrapFactory.ctorParameters = function () { return [
1835
+ { type: InteractivityChecker },
1836
+ { type: i0.NgZone },
1837
+ { type: FocusTrapManager },
1838
+ { type: undefined, decorators: [{ type: i0.Inject, args: [i2.DOCUMENT,] }] },
1839
+ { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [FOCUS_TRAP_INERT_STRATEGY,] }] }
1840
+ ]; };
1785
1841
 
1786
1842
  /**
1787
1843
  * @license
@@ -1888,18 +1944,18 @@
1888
1944
  this._document.body.appendChild(liveEl);
1889
1945
  return liveEl;
1890
1946
  };
1891
- LiveAnnouncer.ɵprov = i0.ɵɵdefineInjectable({ factory: function LiveAnnouncer_Factory() { return new LiveAnnouncer(i0.ɵɵinject(LIVE_ANNOUNCER_ELEMENT_TOKEN, 8), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i2.DOCUMENT), i0.ɵɵinject(LIVE_ANNOUNCER_DEFAULT_OPTIONS, 8)); }, token: LiveAnnouncer, providedIn: "root" });
1892
- LiveAnnouncer.decorators = [
1893
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
1894
- ];
1895
- LiveAnnouncer.ctorParameters = function () { return [
1896
- { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [LIVE_ANNOUNCER_ELEMENT_TOKEN,] }] },
1897
- { type: i0.NgZone },
1898
- { type: undefined, decorators: [{ type: i0.Inject, args: [i2.DOCUMENT,] }] },
1899
- { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [LIVE_ANNOUNCER_DEFAULT_OPTIONS,] }] }
1900
- ]; };
1901
1947
  return LiveAnnouncer;
1902
1948
  }());
1949
+ LiveAnnouncer.ɵprov = i0.ɵɵdefineInjectable({ factory: function LiveAnnouncer_Factory() { return new LiveAnnouncer(i0.ɵɵinject(LIVE_ANNOUNCER_ELEMENT_TOKEN, 8), i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i2.DOCUMENT), i0.ɵɵinject(LIVE_ANNOUNCER_DEFAULT_OPTIONS, 8)); }, token: LiveAnnouncer, providedIn: "root" });
1950
+ LiveAnnouncer.decorators = [
1951
+ { type: i0.Injectable, args: [{ providedIn: 'root' },] }
1952
+ ];
1953
+ LiveAnnouncer.ctorParameters = function () { return [
1954
+ { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [LIVE_ANNOUNCER_ELEMENT_TOKEN,] }] },
1955
+ { type: i0.NgZone },
1956
+ { type: undefined, decorators: [{ type: i0.Inject, args: [i2.DOCUMENT,] }] },
1957
+ { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [LIVE_ANNOUNCER_DEFAULT_OPTIONS,] }] }
1958
+ ]; };
1903
1959
  /**
1904
1960
  * A directive that works similarly to aria-live, but uses the LiveAnnouncer to ensure compatibility
1905
1961
  * with a wider range of browsers and screen readers.
@@ -1949,23 +2005,23 @@
1949
2005
  this._subscription.unsubscribe();
1950
2006
  }
1951
2007
  };
1952
- CdkAriaLive.decorators = [
1953
- { type: i0.Directive, args: [{
1954
- selector: '[cdkAriaLive]',
1955
- exportAs: 'cdkAriaLive',
1956
- },] }
1957
- ];
1958
- CdkAriaLive.ctorParameters = function () { return [
1959
- { type: i0.ElementRef },
1960
- { type: LiveAnnouncer },
1961
- { type: observers.ContentObserver },
1962
- { type: i0.NgZone }
1963
- ]; };
1964
- CdkAriaLive.propDecorators = {
1965
- politeness: [{ type: i0.Input, args: ['cdkAriaLive',] }]
1966
- };
1967
2008
  return CdkAriaLive;
1968
2009
  }());
2010
+ CdkAriaLive.decorators = [
2011
+ { type: i0.Directive, args: [{
2012
+ selector: '[cdkAriaLive]',
2013
+ exportAs: 'cdkAriaLive',
2014
+ },] }
2015
+ ];
2016
+ CdkAriaLive.ctorParameters = function () { return [
2017
+ { type: i0.ElementRef },
2018
+ { type: LiveAnnouncer },
2019
+ { type: observers.ContentObserver },
2020
+ { type: i0.NgZone }
2021
+ ]; };
2022
+ CdkAriaLive.propDecorators = {
2023
+ politeness: [{ type: i0.Input, args: ['cdkAriaLive',] }]
2024
+ };
1969
2025
 
1970
2026
  /**
1971
2027
  * @license
@@ -2110,7 +2166,7 @@
2110
2166
  // robust solution.
2111
2167
  cachedInfo.checkChildren = true;
2112
2168
  }
2113
- return cachedInfo.subject.asObservable();
2169
+ return cachedInfo.subject;
2114
2170
  }
2115
2171
  // Create monitored element info.
2116
2172
  var info = {
@@ -2120,7 +2176,7 @@
2120
2176
  };
2121
2177
  this._elementInfo.set(nativeElement, info);
2122
2178
  this._registerGlobalListeners(info);
2123
- return info.subject.asObservable();
2179
+ return info.subject;
2124
2180
  };
2125
2181
  FocusMonitor.prototype.stopMonitoring = function (element) {
2126
2182
  var nativeElement = coercion.coerceElement(element);
@@ -2321,30 +2377,30 @@
2321
2377
  }
2322
2378
  // Unregister global listeners when last element is unmonitored.
2323
2379
  if (!--this._monitoredElementCount) {
2324
- var document_1 = this._getDocument();
2325
- var window_1 = this._getWindow();
2326
- document_1.removeEventListener('keydown', this._documentKeydownListener, captureEventListenerOptions);
2327
- document_1.removeEventListener('mousedown', this._documentMousedownListener, captureEventListenerOptions);
2328
- document_1.removeEventListener('touchstart', this._documentTouchstartListener, captureEventListenerOptions);
2329
- window_1.removeEventListener('focus', this._windowFocusListener);
2380
+ var document = this._getDocument();
2381
+ var window = this._getWindow();
2382
+ document.removeEventListener('keydown', this._documentKeydownListener, captureEventListenerOptions);
2383
+ document.removeEventListener('mousedown', this._documentMousedownListener, captureEventListenerOptions);
2384
+ document.removeEventListener('touchstart', this._documentTouchstartListener, captureEventListenerOptions);
2385
+ window.removeEventListener('focus', this._windowFocusListener);
2330
2386
  // Clear timeouts for all potentially pending timeouts to prevent the leaks.
2331
2387
  clearTimeout(this._windowFocusTimeoutId);
2332
2388
  clearTimeout(this._touchTimeoutId);
2333
2389
  clearTimeout(this._originTimeoutId);
2334
2390
  }
2335
2391
  };
2336
- FocusMonitor.ɵprov = i0.ɵɵdefineInjectable({ factory: function FocusMonitor_Factory() { return new FocusMonitor(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i1.Platform), i0.ɵɵinject(i2.DOCUMENT, 8), i0.ɵɵinject(FOCUS_MONITOR_DEFAULT_OPTIONS, 8)); }, token: FocusMonitor, providedIn: "root" });
2337
- FocusMonitor.decorators = [
2338
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
2339
- ];
2340
- FocusMonitor.ctorParameters = function () { return [
2341
- { type: i0.NgZone },
2342
- { type: i1.Platform },
2343
- { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [i2.DOCUMENT,] }] },
2344
- { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [FOCUS_MONITOR_DEFAULT_OPTIONS,] }] }
2345
- ]; };
2346
2392
  return FocusMonitor;
2347
2393
  }());
2394
+ FocusMonitor.ɵprov = i0.ɵɵdefineInjectable({ factory: function FocusMonitor_Factory() { return new FocusMonitor(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(i1.Platform), i0.ɵɵinject(i2.DOCUMENT, 8), i0.ɵɵinject(FOCUS_MONITOR_DEFAULT_OPTIONS, 8)); }, token: FocusMonitor, providedIn: "root" });
2395
+ FocusMonitor.decorators = [
2396
+ { type: i0.Injectable, args: [{ providedIn: 'root' },] }
2397
+ ];
2398
+ FocusMonitor.ctorParameters = function () { return [
2399
+ { type: i0.NgZone },
2400
+ { type: i1.Platform },
2401
+ { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [i2.DOCUMENT,] }] },
2402
+ { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [FOCUS_MONITOR_DEFAULT_OPTIONS,] }] }
2403
+ ]; };
2348
2404
  /** Gets the target of an event, accounting for Shadow DOM. */
2349
2405
  function getTarget(event) {
2350
2406
  // If an event is bound outside the Shadow DOM, the `event.target` will
@@ -2377,20 +2433,20 @@
2377
2433
  this._monitorSubscription.unsubscribe();
2378
2434
  }
2379
2435
  };
2380
- CdkMonitorFocus.decorators = [
2381
- { type: i0.Directive, args: [{
2382
- selector: '[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]',
2383
- },] }
2384
- ];
2385
- CdkMonitorFocus.ctorParameters = function () { return [
2386
- { type: i0.ElementRef },
2387
- { type: FocusMonitor }
2388
- ]; };
2389
- CdkMonitorFocus.propDecorators = {
2390
- cdkFocusChange: [{ type: i0.Output }]
2391
- };
2392
2436
  return CdkMonitorFocus;
2393
2437
  }());
2438
+ CdkMonitorFocus.decorators = [
2439
+ { type: i0.Directive, args: [{
2440
+ selector: '[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]',
2441
+ },] }
2442
+ ];
2443
+ CdkMonitorFocus.ctorParameters = function () { return [
2444
+ { type: i0.ElementRef },
2445
+ { type: FocusMonitor }
2446
+ ]; };
2447
+ CdkMonitorFocus.propDecorators = {
2448
+ cdkFocusChange: [{ type: i0.Output }]
2449
+ };
2394
2450
 
2395
2451
  /**
2396
2452
  * @license
@@ -2467,16 +2523,16 @@
2467
2523
  }
2468
2524
  }
2469
2525
  };
2470
- HighContrastModeDetector.ɵprov = i0.ɵɵdefineInjectable({ factory: function HighContrastModeDetector_Factory() { return new HighContrastModeDetector(i0.ɵɵinject(i1.Platform), i0.ɵɵinject(i2.DOCUMENT)); }, token: HighContrastModeDetector, providedIn: "root" });
2471
- HighContrastModeDetector.decorators = [
2472
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
2473
- ];
2474
- HighContrastModeDetector.ctorParameters = function () { return [
2475
- { type: i1.Platform },
2476
- { type: undefined, decorators: [{ type: i0.Inject, args: [i2.DOCUMENT,] }] }
2477
- ]; };
2478
2526
  return HighContrastModeDetector;
2479
2527
  }());
2528
+ HighContrastModeDetector.ɵprov = i0.ɵɵdefineInjectable({ factory: function HighContrastModeDetector_Factory() { return new HighContrastModeDetector(i0.ɵɵinject(i1.Platform), i0.ɵɵinject(i2.DOCUMENT)); }, token: HighContrastModeDetector, providedIn: "root" });
2529
+ HighContrastModeDetector.decorators = [
2530
+ { type: i0.Injectable, args: [{ providedIn: 'root' },] }
2531
+ ];
2532
+ HighContrastModeDetector.ctorParameters = function () { return [
2533
+ { type: i1.Platform },
2534
+ { type: undefined, decorators: [{ type: i0.Inject, args: [i2.DOCUMENT,] }] }
2535
+ ]; };
2480
2536
 
2481
2537
  /**
2482
2538
  * @license
@@ -2489,18 +2545,18 @@
2489
2545
  function A11yModule(highContrastModeDetector) {
2490
2546
  highContrastModeDetector._applyBodyHighContrastModeCssClasses();
2491
2547
  }
2492
- A11yModule.decorators = [
2493
- { type: i0.NgModule, args: [{
2494
- imports: [i1.PlatformModule, observers.ObserversModule],
2495
- declarations: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],
2496
- exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],
2497
- },] }
2498
- ];
2499
- A11yModule.ctorParameters = function () { return [
2500
- { type: HighContrastModeDetector }
2501
- ]; };
2502
2548
  return A11yModule;
2503
2549
  }());
2550
+ A11yModule.decorators = [
2551
+ { type: i0.NgModule, args: [{
2552
+ imports: [i1.PlatformModule, observers.ObserversModule],
2553
+ declarations: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],
2554
+ exports: [CdkAriaLive, CdkTrapFocus, CdkMonitorFocus],
2555
+ },] }
2556
+ ];
2557
+ A11yModule.ctorParameters = function () { return [
2558
+ { type: HighContrastModeDetector }
2559
+ ]; };
2504
2560
 
2505
2561
  /**
2506
2562
  * @license