@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,205 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('tslib'), require('@angular/cdk/bidi'), require('@angular/cdk/coercion'), require('@angular/cdk/collections'), require('@angular/cdk/platform'), require('@angular/common'), require('@angular/core'), require('rxjs'), require('rxjs/operators')) :
3
- typeof define === 'function' && define.amd ? define('@angular/cdk/table', ['exports', 'tslib', '@angular/cdk/bidi', '@angular/cdk/coercion', '@angular/cdk/collections', '@angular/cdk/platform', '@angular/common', '@angular/core', 'rxjs', 'rxjs/operators'], factory) :
4
- (global = global || self, factory((global.ng = global.ng || {}, global.ng.cdk = global.ng.cdk || {}, global.ng.cdk.table = {}), global.tslib, global.ng.cdk.bidi, global.ng.cdk.coercion, global.ng.cdk.collections, global.ng.cdk.platform, global.ng.common, global.ng.core, global.rxjs, global.rxjs.operators));
5
- }(this, (function (exports, tslib, bidi, coercion, collections, platform, common, core, rxjs, operators) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/bidi'), require('@angular/cdk/coercion'), require('@angular/cdk/collections'), require('@angular/cdk/platform'), require('@angular/common'), require('@angular/core'), require('rxjs'), require('rxjs/operators')) :
3
+ typeof define === 'function' && define.amd ? define('@angular/cdk/table', ['exports', '@angular/cdk/bidi', '@angular/cdk/coercion', '@angular/cdk/collections', '@angular/cdk/platform', '@angular/common', '@angular/core', 'rxjs', 'rxjs/operators'], factory) :
4
+ (global = global || self, factory((global.ng = global.ng || {}, global.ng.cdk = global.ng.cdk || {}, global.ng.cdk.table = {}), global.ng.cdk.bidi, global.ng.cdk.coercion, global.ng.cdk.collections, global.ng.cdk.platform, global.ng.common, global.ng.core, global.rxjs, global.rxjs.operators));
5
+ }(this, (function (exports, bidi, coercion, collections, platform, common, core, rxjs, operators) { 'use strict';
6
+
7
+ /*! *****************************************************************************
8
+ Copyright (c) Microsoft Corporation. All rights reserved.
9
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
10
+ this file except in compliance with the License. You may obtain a copy of the
11
+ License at http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
15
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
16
+ MERCHANTABLITY OR NON-INFRINGEMENT.
17
+
18
+ See the Apache Version 2.0 License for specific language governing permissions
19
+ and limitations under the License.
20
+ ***************************************************************************** */
21
+ /* global Reflect, Promise */
22
+
23
+ var extendStatics = function(d, b) {
24
+ extendStatics = Object.setPrototypeOf ||
25
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
27
+ return extendStatics(d, b);
28
+ };
29
+
30
+ function __extends(d, b) {
31
+ extendStatics(d, b);
32
+ function __() { this.constructor = d; }
33
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
+ }
35
+
36
+ var __assign = function() {
37
+ __assign = Object.assign || function __assign(t) {
38
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
39
+ s = arguments[i];
40
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
41
+ }
42
+ return t;
43
+ };
44
+ return __assign.apply(this, arguments);
45
+ };
46
+
47
+ function __rest(s, e) {
48
+ var t = {};
49
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
+ t[p] = s[p];
51
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
+ t[p[i]] = s[p[i]];
55
+ }
56
+ return t;
57
+ }
58
+
59
+ function __decorate(decorators, target, key, desc) {
60
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
62
+ 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;
63
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
64
+ }
65
+
66
+ function __param(paramIndex, decorator) {
67
+ return function (target, key) { decorator(target, key, paramIndex); }
68
+ }
69
+
70
+ function __metadata(metadataKey, metadataValue) {
71
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
72
+ }
73
+
74
+ function __awaiter(thisArg, _arguments, P, generator) {
75
+ return new (P || (P = Promise))(function (resolve, reject) {
76
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
77
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
78
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
79
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
80
+ });
81
+ }
82
+
83
+ function __generator(thisArg, body) {
84
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
85
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
86
+ function verb(n) { return function (v) { return step([n, v]); }; }
87
+ function step(op) {
88
+ if (f) throw new TypeError("Generator is already executing.");
89
+ while (_) try {
90
+ 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;
91
+ if (y = 0, t) op = [op[0] & 2, t.value];
92
+ switch (op[0]) {
93
+ case 0: case 1: t = op; break;
94
+ case 4: _.label++; return { value: op[1], done: false };
95
+ case 5: _.label++; y = op[1]; op = [0]; continue;
96
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
97
+ default:
98
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
99
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
100
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
101
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
102
+ if (t[2]) _.ops.pop();
103
+ _.trys.pop(); continue;
104
+ }
105
+ op = body.call(thisArg, _);
106
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
107
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
108
+ }
109
+ }
110
+
111
+ function __exportStar(m, exports) {
112
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
113
+ }
114
+
115
+ function __values(o) {
116
+ var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
117
+ if (m) return m.call(o);
118
+ return {
119
+ next: function () {
120
+ if (o && i >= o.length) o = void 0;
121
+ return { value: o && o[i++], done: !o };
122
+ }
123
+ };
124
+ }
125
+
126
+ function __read(o, n) {
127
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
128
+ if (!m) return o;
129
+ var i = m.call(o), r, ar = [], e;
130
+ try {
131
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
132
+ }
133
+ catch (error) { e = { error: error }; }
134
+ finally {
135
+ try {
136
+ if (r && !r.done && (m = i["return"])) m.call(i);
137
+ }
138
+ finally { if (e) throw e.error; }
139
+ }
140
+ return ar;
141
+ }
142
+
143
+ function __spread() {
144
+ for (var ar = [], i = 0; i < arguments.length; i++)
145
+ ar = ar.concat(__read(arguments[i]));
146
+ return ar;
147
+ }
148
+
149
+ function __spreadArrays() {
150
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
151
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
152
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
153
+ r[k] = a[j];
154
+ return r;
155
+ };
156
+
157
+ function __await(v) {
158
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
159
+ }
160
+
161
+ function __asyncGenerator(thisArg, _arguments, generator) {
162
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
163
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
164
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
165
+ 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); }); }; }
166
+ function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
167
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
168
+ function fulfill(value) { resume("next", value); }
169
+ function reject(value) { resume("throw", value); }
170
+ function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
171
+ }
172
+
173
+ function __asyncDelegator(o) {
174
+ var i, p;
175
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
176
+ 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; }
177
+ }
178
+
179
+ function __asyncValues(o) {
180
+ if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
181
+ var m = o[Symbol.asyncIterator], i;
182
+ 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);
183
+ 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); }); }; }
184
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
185
+ }
186
+
187
+ function __makeTemplateObject(cooked, raw) {
188
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
189
+ return cooked;
190
+ };
191
+
192
+ function __importStar(mod) {
193
+ if (mod && mod.__esModule) return mod;
194
+ var result = {};
195
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
196
+ result.default = mod;
197
+ return result;
198
+ }
199
+
200
+ function __importDefault(mod) {
201
+ return (mod && mod.__esModule) ? mod : { default: mod };
202
+ }
6
203
 
7
204
  /**
8
205
  * @license
@@ -19,13 +216,13 @@
19
216
  */
20
217
  function mixinHasStickyInput(base) {
21
218
  return /** @class */ (function (_super) {
22
- tslib.__extends(class_1, _super);
219
+ __extends(class_1, _super);
23
220
  function class_1() {
24
221
  var args = [];
25
222
  for (var _i = 0; _i < arguments.length; _i++) {
26
223
  args[_i] = arguments[_i];
27
224
  }
28
- var _this = _super.apply(this, tslib.__spread(args)) || this;
225
+ var _this = _super.apply(this, __spread(args)) || this;
29
226
  _this._sticky = false;
30
227
  /** Whether the sticky input has changed since it was last checked. */
31
228
  _this._hasStickyChanged = false;
@@ -56,6 +253,21 @@
56
253
  }(base));
57
254
  }
58
255
 
256
+ /**
257
+ * @license
258
+ * Copyright Google LLC All Rights Reserved.
259
+ *
260
+ * Use of this source code is governed by an MIT-style license that can be
261
+ * found in the LICENSE file at https://angular.io/license
262
+ */
263
+ /**
264
+ * Used to provide a table to some of the sub-components without causing a circular dependency.
265
+ * @docs-private
266
+ */
267
+ var CDK_TABLE = new core.InjectionToken('CDK_TABLE');
268
+ /** Injection token that can be used to specify the text column options. */
269
+ var TEXT_COLUMN_OPTIONS = new core.InjectionToken('text-column-options');
270
+
59
271
  /**
60
272
  * @license
61
273
  * Copyright Google LLC All Rights Reserved.
@@ -127,9 +339,10 @@
127
339
  * Defines a set of cells available for a table column.
128
340
  */
129
341
  var CdkColumnDef = /** @class */ (function (_super) {
130
- tslib.__extends(CdkColumnDef, _super);
131
- function CdkColumnDef() {
132
- var _this = _super !== null && _super.apply(this, arguments) || this;
342
+ __extends(CdkColumnDef, _super);
343
+ function CdkColumnDef(_table) {
344
+ var _this = _super.call(this) || this;
345
+ _this._table = _table;
133
346
  _this._stickyEnd = false;
134
347
  return _this;
135
348
  }
@@ -141,11 +354,10 @@
141
354
  set: function (name) {
142
355
  // If the directive is set without a name (updated programatically), then this setter will
143
356
  // trigger with an empty string and should not overwrite the programatically set value.
144
- if (!name) {
145
- return;
357
+ if (name) {
358
+ this._name = name;
359
+ this.cssClassFriendlyName = name.replace(/[^a-z0-9_-]/ig, '-');
146
360
  }
147
- this._name = name;
148
- this.cssClassFriendlyName = name.replace(/[^a-z0-9_-]/ig, '-');
149
361
  },
150
362
  enumerable: true,
151
363
  configurable: true
@@ -174,6 +386,10 @@
174
386
  providers: [{ provide: 'MAT_SORT_HEADER_COLUMN_DEF', useExisting: CdkColumnDef }],
175
387
  },] }
176
388
  ];
389
+ /** @nocollapse */
390
+ CdkColumnDef.ctorParameters = function () { return [
391
+ { type: undefined, decorators: [{ type: core.Inject, args: [CDK_TABLE,] }, { type: core.Optional }] }
392
+ ]; };
177
393
  CdkColumnDef.propDecorators = {
178
394
  name: [{ type: core.Input, args: ['cdkColumnDef',] }],
179
395
  stickyEnd: [{ type: core.Input, args: ['stickyEnd',] }],
@@ -193,7 +409,7 @@
193
409
  }());
194
410
  /** Header cell template container that adds the right classes and role. */
195
411
  var CdkHeaderCell = /** @class */ (function (_super) {
196
- tslib.__extends(CdkHeaderCell, _super);
412
+ __extends(CdkHeaderCell, _super);
197
413
  function CdkHeaderCell(columnDef, elementRef) {
198
414
  return _super.call(this, columnDef, elementRef) || this;
199
415
  }
@@ -215,7 +431,7 @@
215
431
  }(BaseCdkCell));
216
432
  /** Footer cell template container that adds the right classes and role. */
217
433
  var CdkFooterCell = /** @class */ (function (_super) {
218
- tslib.__extends(CdkFooterCell, _super);
434
+ __extends(CdkFooterCell, _super);
219
435
  function CdkFooterCell(columnDef, elementRef) {
220
436
  return _super.call(this, columnDef, elementRef) || this;
221
437
  }
@@ -237,7 +453,7 @@
237
453
  }(BaseCdkCell));
238
454
  /** Cell template container that adds the right classes and role. */
239
455
  var CdkCell = /** @class */ (function (_super) {
240
- tslib.__extends(CdkCell, _super);
456
+ __extends(CdkCell, _super);
241
457
  function CdkCell(columnDef, elementRef) {
242
458
  return _super.call(this, columnDef, elementRef) || this;
243
459
  }
@@ -313,7 +529,7 @@
313
529
  // Boilerplate for applying mixins to CdkHeaderRowDef.
314
530
  /** @docs-private */
315
531
  var CdkHeaderRowDefBase = /** @class */ (function (_super) {
316
- tslib.__extends(CdkHeaderRowDefBase, _super);
532
+ __extends(CdkHeaderRowDefBase, _super);
317
533
  function CdkHeaderRowDefBase() {
318
534
  return _super !== null && _super.apply(this, arguments) || this;
319
535
  }
@@ -325,9 +541,11 @@
325
541
  * Captures the header row's template and other header properties such as the columns to display.
326
542
  */
327
543
  var CdkHeaderRowDef = /** @class */ (function (_super) {
328
- tslib.__extends(CdkHeaderRowDef, _super);
329
- function CdkHeaderRowDef(template, _differs) {
330
- return _super.call(this, template, _differs) || this;
544
+ __extends(CdkHeaderRowDef, _super);
545
+ function CdkHeaderRowDef(template, _differs, _table) {
546
+ var _this = _super.call(this, template, _differs) || this;
547
+ _this._table = _table;
548
+ return _this;
331
549
  }
332
550
  // Prerender fails to recognize that ngOnChanges in a part of this class through inheritance.
333
551
  // Explicitly define it so that the method is called as part of the Angular lifecycle.
@@ -343,14 +561,15 @@
343
561
  /** @nocollapse */
344
562
  CdkHeaderRowDef.ctorParameters = function () { return [
345
563
  { type: core.TemplateRef },
346
- { type: core.IterableDiffers }
564
+ { type: core.IterableDiffers },
565
+ { type: undefined, decorators: [{ type: core.Inject, args: [CDK_TABLE,] }, { type: core.Optional }] }
347
566
  ]; };
348
567
  return CdkHeaderRowDef;
349
568
  }(_CdkHeaderRowDefBase));
350
569
  // Boilerplate for applying mixins to CdkFooterRowDef.
351
570
  /** @docs-private */
352
571
  var CdkFooterRowDefBase = /** @class */ (function (_super) {
353
- tslib.__extends(CdkFooterRowDefBase, _super);
572
+ __extends(CdkFooterRowDefBase, _super);
354
573
  function CdkFooterRowDefBase() {
355
574
  return _super !== null && _super.apply(this, arguments) || this;
356
575
  }
@@ -362,9 +581,11 @@
362
581
  * Captures the footer row's template and other footer properties such as the columns to display.
363
582
  */
364
583
  var CdkFooterRowDef = /** @class */ (function (_super) {
365
- tslib.__extends(CdkFooterRowDef, _super);
366
- function CdkFooterRowDef(template, _differs) {
367
- return _super.call(this, template, _differs) || this;
584
+ __extends(CdkFooterRowDef, _super);
585
+ function CdkFooterRowDef(template, _differs, _table) {
586
+ var _this = _super.call(this, template, _differs) || this;
587
+ _this._table = _table;
588
+ return _this;
368
589
  }
369
590
  // Prerender fails to recognize that ngOnChanges in a part of this class through inheritance.
370
591
  // Explicitly define it so that the method is called as part of the Angular lifecycle.
@@ -380,7 +601,8 @@
380
601
  /** @nocollapse */
381
602
  CdkFooterRowDef.ctorParameters = function () { return [
382
603
  { type: core.TemplateRef },
383
- { type: core.IterableDiffers }
604
+ { type: core.IterableDiffers },
605
+ { type: undefined, decorators: [{ type: core.Inject, args: [CDK_TABLE,] }, { type: core.Optional }] }
384
606
  ]; };
385
607
  return CdkFooterRowDef;
386
608
  }(_CdkFooterRowDefBase));
@@ -390,11 +612,13 @@
390
612
  * a when predicate that describes when this row should be used.
391
613
  */
392
614
  var CdkRowDef = /** @class */ (function (_super) {
393
- tslib.__extends(CdkRowDef, _super);
615
+ __extends(CdkRowDef, _super);
394
616
  // TODO(andrewseguin): Add an input for providing a switch function to determine
395
617
  // if this template should be used.
396
- function CdkRowDef(template, _differs) {
397
- return _super.call(this, template, _differs) || this;
618
+ function CdkRowDef(template, _differs, _table) {
619
+ var _this = _super.call(this, template, _differs) || this;
620
+ _this._table = _table;
621
+ return _this;
398
622
  }
399
623
  CdkRowDef.decorators = [
400
624
  { type: core.Directive, args: [{
@@ -405,7 +629,8 @@
405
629
  /** @nocollapse */
406
630
  CdkRowDef.ctorParameters = function () { return [
407
631
  { type: core.TemplateRef },
408
- { type: core.IterableDiffers }
632
+ { type: core.IterableDiffers },
633
+ { type: undefined, decorators: [{ type: core.Inject, args: [CDK_TABLE,] }, { type: core.Optional }] }
409
634
  ]; };
410
635
  return CdkRowDef;
411
636
  }(BaseRowDef));
@@ -545,7 +770,7 @@
545
770
  StickyStyler.prototype.clearStickyPositioning = function (rows, stickyDirections) {
546
771
  var e_1, _a;
547
772
  try {
548
- for (var rows_1 = tslib.__values(rows), rows_1_1 = rows_1.next(); !rows_1_1.done; rows_1_1 = rows_1.next()) {
773
+ for (var rows_1 = __values(rows), rows_1_1 = rows_1.next(); !rows_1_1.done; rows_1_1 = rows_1.next()) {
549
774
  var row = rows_1_1.value;
550
775
  // If the row isn't an element (e.g. if it's an `ng-container`),
551
776
  // it won't have inline styles or `children` so we skip it.
@@ -589,7 +814,7 @@
589
814
  var endPositions = this._getStickyEndColumnPositions(cellWidths, stickyEndStates);
590
815
  var isRtl = this.direction === 'rtl';
591
816
  try {
592
- for (var rows_2 = tslib.__values(rows), rows_2_1 = rows_2.next(); !rows_2_1.done; rows_2_1 = rows_2.next()) {
817
+ for (var rows_2 = __values(rows), rows_2_1 = rows_2.next(); !rows_2_1.done; rows_2_1 = rows_2.next()) {
593
818
  var row = rows_2_1.value;
594
819
  for (var i = 0; i < numCells; i++) {
595
820
  var cell = row.children[i];
@@ -679,7 +904,7 @@
679
904
  StickyStyler.prototype._removeStickyStyle = function (element, stickyDirections) {
680
905
  var e_3, _a;
681
906
  try {
682
- for (var stickyDirections_1 = tslib.__values(stickyDirections), stickyDirections_1_1 = stickyDirections_1.next(); !stickyDirections_1_1.done; stickyDirections_1_1 = stickyDirections_1.next()) {
907
+ for (var stickyDirections_1 = __values(stickyDirections), stickyDirections_1_1 = stickyDirections_1.next(); !stickyDirections_1_1.done; stickyDirections_1_1 = stickyDirections_1.next()) {
683
908
  var dir = stickyDirections_1_1.value;
684
909
  element.style[dir] = '';
685
910
  }
@@ -735,7 +960,7 @@
735
960
  // Use `Iterable` instead of `Array` because TypeScript, as of 3.6.3,
736
961
  // loses the array generic type in the `for of`. But we *also* have to use `Array` because
737
962
  // typescript won't iterate over an `Iterable` unless you compile with `--downlevelIteration`
738
- for (var _b = tslib.__values(STICKY_DIRECTIONS), _c = _b.next(); !_c.done; _c = _b.next()) {
963
+ for (var _b = __values(STICKY_DIRECTIONS), _c = _b.next(); !_c.done; _c = _b.next()) {
739
964
  var dir = _c.value;
740
965
  if (element.style[dir]) {
741
966
  zIndex += zIndexIncrements[dir];
@@ -941,7 +1166,7 @@
941
1166
  * @docs-private
942
1167
  */
943
1168
  var RowViewRef = /** @class */ (function (_super) {
944
- tslib.__extends(RowViewRef, _super);
1169
+ __extends(RowViewRef, _super);
945
1170
  function RowViewRef() {
946
1171
  return _super !== null && _super.apply(this, arguments) || this;
947
1172
  }
@@ -1322,7 +1547,7 @@
1322
1547
  var footerRows = this._getRenderedRows(this._footerRowOutlet);
1323
1548
  // Clear the left and right positioning from all columns in the table across all rows since
1324
1549
  // sticky columns span across all table sections (header, data, footer)
1325
- this._stickyStyler.clearStickyPositioning(tslib.__spread(headerRows, dataRows, footerRows), ['left', 'right']);
1550
+ this._stickyStyler.clearStickyPositioning(__spread(headerRows, dataRows, footerRows), ['left', 'right']);
1326
1551
  // Update the sticky styles for each header row depending on the def's sticky state
1327
1552
  headerRows.forEach(function (headerRow, i) {
1328
1553
  _this._addStickyColumnStyles([headerRow], _this._headerRowDefs[i]);
@@ -1401,7 +1626,7 @@
1401
1626
  CdkTable.prototype._cacheColumnDefs = function () {
1402
1627
  var _this = this;
1403
1628
  this._columnDefsByName.clear();
1404
- var columnDefs = mergeQueryListAndSet(this._contentColumnDefs, this._customColumnDefs);
1629
+ var columnDefs = mergeArrayAndSet(this._getOwnDefs(this._contentColumnDefs), this._customColumnDefs);
1405
1630
  columnDefs.forEach(function (columnDef) {
1406
1631
  if (_this._columnDefsByName.has(columnDef.name)) {
1407
1632
  throw getTableDuplicateColumnNameError(columnDef.name);
@@ -1411,11 +1636,9 @@
1411
1636
  };
1412
1637
  /** Update the list of all available row definitions that can be used. */
1413
1638
  CdkTable.prototype._cacheRowDefs = function () {
1414
- this._headerRowDefs =
1415
- mergeQueryListAndSet(this._contentHeaderRowDefs, this._customHeaderRowDefs);
1416
- this._footerRowDefs =
1417
- mergeQueryListAndSet(this._contentFooterRowDefs, this._customFooterRowDefs);
1418
- this._rowDefs = mergeQueryListAndSet(this._contentRowDefs, this._customRowDefs);
1639
+ this._headerRowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentHeaderRowDefs), this._customHeaderRowDefs);
1640
+ this._footerRowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentFooterRowDefs), this._customFooterRowDefs);
1641
+ this._rowDefs = mergeArrayAndSet(this._getOwnDefs(this._contentRowDefs), this._customRowDefs);
1419
1642
  // After all row definitions are determined, find the row definition to be considered default.
1420
1643
  var defaultRowDefs = this._rowDefs.filter(function (def) { return !def.when; });
1421
1644
  if (!this.multiTemplateDataRows && defaultRowDefs.length > 1) {
@@ -1586,7 +1809,7 @@
1586
1809
  // TODO(andrewseguin): enforce that one outlet was instantiated from createEmbeddedView
1587
1810
  outlet.viewContainer.createEmbeddedView(rowDef.template, context, index);
1588
1811
  try {
1589
- for (var _b = tslib.__values(this._getCellTemplates(rowDef)), _c = _b.next(); !_c.done; _c = _b.next()) {
1812
+ for (var _b = __values(this._getCellTemplates(rowDef)), _c = _b.next(); !_c.done; _c = _b.next()) {
1590
1813
  var cellTemplate = _c.value;
1591
1814
  if (CdkCellOutlet.mostRecentCellOutlet) {
1592
1815
  CdkCellOutlet.mostRecentCellOutlet._viewContainer.createEmbeddedView(cellTemplate, context);
@@ -1649,7 +1872,7 @@
1649
1872
  { tag: 'tfoot', outlet: this._footerRowOutlet },
1650
1873
  ];
1651
1874
  try {
1652
- for (var sections_1 = tslib.__values(sections), sections_1_1 = sections_1.next(); !sections_1_1.done; sections_1_1 = sections_1.next()) {
1875
+ for (var sections_1 = __values(sections), sections_1_1 = sections_1.next(); !sections_1_1.done; sections_1_1 = sections_1.next()) {
1653
1876
  var section = sections_1_1.value;
1654
1877
  var element = this._document.createElement(section.tag);
1655
1878
  element.setAttribute('role', 'rowgroup');
@@ -1716,6 +1939,11 @@
1716
1939
  _this.updateStickyColumnStyles();
1717
1940
  });
1718
1941
  };
1942
+ /** Filters definitions that belong to this table from a QueryList. */
1943
+ CdkTable.prototype._getOwnDefs = function (items) {
1944
+ var _this = this;
1945
+ return items.filter(function (item) { return !item._table || item._table === _this; });
1946
+ };
1719
1947
  CdkTable.decorators = [
1720
1948
  { type: core.Component, args: [{
1721
1949
  selector: 'cdk-table, table[cdk-table]',
@@ -1729,7 +1957,8 @@
1729
1957
  // The view for `MatTable` consists entirely of templates declared in other views. As they are
1730
1958
  // declared elsewhere, they are checked when their declaration points are checked.
1731
1959
  // tslint:disable-next-line:validate-decorators
1732
- changeDetection: core.ChangeDetectionStrategy.Default
1960
+ changeDetection: core.ChangeDetectionStrategy.Default,
1961
+ providers: [{ provide: CDK_TABLE, useExisting: CdkTable }]
1733
1962
  }] }
1734
1963
  ];
1735
1964
  /** @nocollapse */
@@ -1760,9 +1989,9 @@
1760
1989
  };
1761
1990
  return CdkTable;
1762
1991
  }());
1763
- /** Utility function that gets a merged list of the entries in a QueryList and values of a Set. */
1764
- function mergeQueryListAndSet(queryList, set) {
1765
- return queryList.toArray().concat(Array.from(set));
1992
+ /** Utility function that gets a merged list of the entries in an array and values of a Set. */
1993
+ function mergeArrayAndSet(array, set) {
1994
+ return array.concat(Array.from(set));
1766
1995
  }
1767
1996
 
1768
1997
  /**
@@ -1772,8 +2001,6 @@
1772
2001
  * Use of this source code is governed by an MIT-style license that can be
1773
2002
  * found in the LICENSE file at https://angular.io/license
1774
2003
  */
1775
- /** Injection token that can be used to specify the text column options. */
1776
- var TEXT_COLUMN_OPTIONS = new core.InjectionToken('text-column-options');
1777
2004
  /**
1778
2005
  * Column that simply shows text content for the header and row cells. Assumes that the table
1779
2006
  * is using the native table implementation (`<table>`).
@@ -1943,6 +2170,7 @@
1943
2170
  exports.BaseCdkCell = BaseCdkCell;
1944
2171
  exports.BaseRowDef = BaseRowDef;
1945
2172
  exports.CDK_ROW_TEMPLATE = CDK_ROW_TEMPLATE;
2173
+ exports.CDK_TABLE = CDK_TABLE;
1946
2174
  exports.CDK_TABLE_TEMPLATE = CDK_TABLE_TEMPLATE;
1947
2175
  exports.CdkCell = CdkCell;
1948
2176
  exports.CdkCellDef = CdkCellDef;