@angular/cdk 10.1.2 → 10.1.3

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 (115) hide show
  1. package/bundles/cdk-a11y.umd.js +425 -373
  2. package/bundles/cdk-a11y.umd.js.map +1 -1
  3. package/bundles/cdk-a11y.umd.min.js +34 -10
  4. package/bundles/cdk-a11y.umd.min.js.map +1 -1
  5. package/bundles/cdk-accordion.umd.js +40 -40
  6. package/bundles/cdk-accordion.umd.js.map +1 -1
  7. package/bundles/cdk-accordion.umd.min.js +10 -2
  8. package/bundles/cdk-accordion.umd.min.js.map +1 -1
  9. package/bundles/cdk-bidi.umd.js +25 -25
  10. package/bundles/cdk-bidi.umd.js.map +1 -1
  11. package/bundles/cdk-bidi.umd.min.js +5 -4
  12. package/bundles/cdk-bidi.umd.min.js.map +1 -1
  13. package/bundles/cdk-clipboard.umd.js +31 -31
  14. package/bundles/cdk-clipboard.umd.js.map +1 -1
  15. package/bundles/cdk-clipboard.umd.min.js +10 -2
  16. package/bundles/cdk-clipboard.umd.min.js.map +1 -1
  17. package/bundles/cdk-coercion.umd.js.map +1 -1
  18. package/bundles/cdk-collections.umd.js +303 -237
  19. package/bundles/cdk-collections.umd.js.map +1 -1
  20. package/bundles/cdk-collections.umd.min.js +3 -9
  21. package/bundles/cdk-collections.umd.min.js.map +1 -1
  22. package/bundles/cdk-drag-drop.umd.js +484 -425
  23. package/bundles/cdk-drag-drop.umd.js.map +1 -1
  24. package/bundles/cdk-drag-drop.umd.min.js +68 -5
  25. package/bundles/cdk-drag-drop.umd.min.js.map +1 -1
  26. package/bundles/cdk-keycodes.umd.js.map +1 -1
  27. package/bundles/cdk-layout.umd.js +18 -18
  28. package/bundles/cdk-layout.umd.js.map +1 -1
  29. package/bundles/cdk-layout.umd.min.js +6 -5
  30. package/bundles/cdk-layout.umd.min.js.map +1 -1
  31. package/bundles/cdk-observers.umd.js +34 -34
  32. package/bundles/cdk-observers.umd.js.map +1 -1
  33. package/bundles/cdk-observers.umd.min.js +2 -2
  34. package/bundles/cdk-observers.umd.min.js.map +1 -1
  35. package/bundles/cdk-overlay.umd.js +442 -383
  36. package/bundles/cdk-overlay.umd.js.map +1 -1
  37. package/bundles/cdk-overlay.umd.min.js +57 -11
  38. package/bundles/cdk-overlay.umd.min.js.map +1 -1
  39. package/bundles/cdk-platform.umd.js +10 -10
  40. package/bundles/cdk-platform.umd.js.map +1 -1
  41. package/bundles/cdk-platform.umd.min.js +3 -10
  42. package/bundles/cdk-platform.umd.min.js.map +1 -1
  43. package/bundles/cdk-portal.umd.js +351 -299
  44. package/bundles/cdk-portal.umd.js.map +1 -1
  45. package/bundles/cdk-portal.umd.min.js +4 -5
  46. package/bundles/cdk-portal.umd.min.js.map +1 -1
  47. package/bundles/cdk-scrolling.umd.js +432 -378
  48. package/bundles/cdk-scrolling.umd.js.map +1 -1
  49. package/bundles/cdk-scrolling.umd.min.js +20 -19
  50. package/bundles/cdk-scrolling.umd.min.js.map +1 -1
  51. package/bundles/cdk-stepper.umd.js +117 -117
  52. package/bundles/cdk-stepper.umd.js.map +1 -1
  53. package/bundles/cdk-stepper.umd.min.js +11 -2
  54. package/bundles/cdk-stepper.umd.min.js.map +1 -1
  55. package/bundles/cdk-table.umd.js +684 -588
  56. package/bundles/cdk-table.umd.js.map +1 -1
  57. package/bundles/cdk-table.umd.min.js +7 -14
  58. package/bundles/cdk-table.umd.min.js.map +1 -1
  59. package/bundles/cdk-testing-protractor.umd.js +300 -241
  60. package/bundles/cdk-testing-protractor.umd.js.map +1 -1
  61. package/bundles/cdk-testing-protractor.umd.min.js +2 -9
  62. package/bundles/cdk-testing-protractor.umd.min.js.map +1 -1
  63. package/bundles/cdk-testing-testbed.umd.js +301 -256
  64. package/bundles/cdk-testing-testbed.umd.js.map +1 -1
  65. package/bundles/cdk-testing-testbed.umd.min.js +7 -30
  66. package/bundles/cdk-testing-testbed.umd.min.js.map +1 -1
  67. package/bundles/cdk-testing.umd.js +326 -270
  68. package/bundles/cdk-testing.umd.js.map +1 -1
  69. package/bundles/cdk-testing.umd.min.js +1 -16
  70. package/bundles/cdk-testing.umd.min.js.map +1 -1
  71. package/bundles/cdk-text-field.umd.js +51 -51
  72. package/bundles/cdk-text-field.umd.js.map +1 -1
  73. package/bundles/cdk-text-field.umd.min.js +10 -2
  74. package/bundles/cdk-text-field.umd.min.js.map +1 -1
  75. package/bundles/cdk-tree.umd.js +443 -394
  76. package/bundles/cdk-tree.umd.js.map +1 -1
  77. package/bundles/cdk-tree.umd.min.js +28 -3
  78. package/bundles/cdk-tree.umd.min.js.map +1 -1
  79. package/bundles/cdk.umd.js +1 -1
  80. package/bundles/cdk.umd.js.map +1 -1
  81. package/bundles/cdk.umd.min.js +1 -1
  82. package/bundles/cdk.umd.min.js.map +1 -1
  83. package/esm2015/a11y/focus-trap/configurable-focus-trap-factory.js +3 -3
  84. package/esm2015/a11y/focus-trap/focus-trap.js +1 -1
  85. package/esm2015/a11y/live-announcer/live-announcer.js +1 -1
  86. package/esm2015/bidi/directionality.js +1 -1
  87. package/esm2015/overlay/position/flexible-connected-position-strategy.js +3 -3
  88. package/esm2015/scrolling/scrolling-module.js +4 -1
  89. package/esm2015/table/cell.js +18 -3
  90. package/esm2015/table/coalesced-style-scheduler.js +21 -10
  91. package/esm2015/table/sticky-styler.js +21 -7
  92. package/esm2015/table/table.js +8 -2
  93. package/esm2015/tree/tree.js +9 -23
  94. package/esm2015/version.js +1 -1
  95. package/fesm2015/cdk.js +1 -1
  96. package/fesm2015/cdk.js.map +1 -1
  97. package/fesm2015/overlay.js +2 -2
  98. package/fesm2015/overlay.js.map +1 -1
  99. package/fesm2015/scrolling.js +3 -0
  100. package/fesm2015/scrolling.js.map +1 -1
  101. package/fesm2015/table.js +65 -19
  102. package/fesm2015/table.js.map +1 -1
  103. package/fesm2015/tree.js +7 -21
  104. package/fesm2015/tree.js.map +1 -1
  105. package/package.json +1 -1
  106. package/schematics/ng-add/index.js +1 -1
  107. package/scrolling/index.metadata.json +1 -1
  108. package/scrolling/scrolling-module.d.ts +3 -0
  109. package/table/cell.d.ts +13 -0
  110. package/table/coalesced-style-scheduler.d.ts +1 -0
  111. package/table/index.metadata.json +1 -1
  112. package/table/sticky-styler.d.ts +5 -1
  113. package/table/table.d.ts +6 -0
  114. package/tree/index.metadata.json +1 -1
  115. package/tree/tree.d.ts +2 -4
@@ -4,241 +4,307 @@
4
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
5
  }(this, (function (exports, bidi, coercion, collections, platform, common, core, rxjs, operators) { 'use strict';
6
6
 
7
- /*! *****************************************************************************
8
- Copyright (c) Microsoft Corporation.
9
-
10
- Permission to use, copy, modify, and/or distribute this software for any
11
- purpose with or without fee is hereby granted.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
- PERFORMANCE OF THIS SOFTWARE.
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
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
76
- return new (P || (P = Promise))(function (resolve, reject) {
77
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
78
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
79
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
80
- step((generator = generator.apply(thisArg, _arguments || [])).next());
81
- });
82
- }
83
-
84
- function __generator(thisArg, body) {
85
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
86
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
87
- function verb(n) { return function (v) { return step([n, v]); }; }
88
- function step(op) {
89
- if (f) throw new TypeError("Generator is already executing.");
90
- while (_) try {
91
- 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;
92
- if (y = 0, t) op = [op[0] & 2, t.value];
93
- switch (op[0]) {
94
- case 0: case 1: t = op; break;
95
- case 4: _.label++; return { value: op[1], done: false };
96
- case 5: _.label++; y = op[1]; op = [0]; continue;
97
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
98
- default:
99
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
100
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
101
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
102
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
103
- if (t[2]) _.ops.pop();
104
- _.trys.pop(); continue;
105
- }
106
- op = body.call(thisArg, _);
107
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
108
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
109
- }
110
- }
111
-
112
- var __createBinding = Object.create ? (function(o, m, k, k2) {
113
- if (k2 === undefined) k2 = k;
114
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
115
- }) : (function(o, m, k, k2) {
116
- if (k2 === undefined) k2 = k;
117
- o[k2] = m[k];
118
- });
119
-
120
- function __exportStar(m, exports) {
121
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
122
- }
123
-
124
- function __values(o) {
125
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
126
- if (m) return m.call(o);
127
- if (o && typeof o.length === "number") return {
128
- next: function () {
129
- if (o && i >= o.length) o = void 0;
130
- return { value: o && o[i++], done: !o };
131
- }
132
- };
133
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
134
- }
135
-
136
- function __read(o, n) {
137
- var m = typeof Symbol === "function" && o[Symbol.iterator];
138
- if (!m) return o;
139
- var i = m.call(o), r, ar = [], e;
140
- try {
141
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
142
- }
143
- catch (error) { e = { error: error }; }
144
- finally {
145
- try {
146
- if (r && !r.done && (m = i["return"])) m.call(i);
147
- }
148
- finally { if (e) throw e.error; }
149
- }
150
- return ar;
151
- }
152
-
153
- function __spread() {
154
- for (var ar = [], i = 0; i < arguments.length; i++)
155
- ar = ar.concat(__read(arguments[i]));
156
- return ar;
157
- }
158
-
159
- function __spreadArrays() {
160
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
161
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
162
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
163
- r[k] = a[j];
164
- return r;
165
- };
166
-
167
- function __await(v) {
168
- return this instanceof __await ? (this.v = v, this) : new __await(v);
169
- }
170
-
171
- function __asyncGenerator(thisArg, _arguments, generator) {
172
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
173
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
174
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
175
- 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); }); }; }
176
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
177
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
178
- function fulfill(value) { resume("next", value); }
179
- function reject(value) { resume("throw", value); }
180
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
181
- }
182
-
183
- function __asyncDelegator(o) {
184
- var i, p;
185
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
186
- 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; }
187
- }
188
-
189
- function __asyncValues(o) {
190
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
191
- var m = o[Symbol.asyncIterator], i;
192
- 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);
193
- 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); }); }; }
194
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
195
- }
196
-
197
- function __makeTemplateObject(cooked, raw) {
198
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
199
- return cooked;
200
- };
201
-
202
- var __setModuleDefault = Object.create ? (function(o, v) {
203
- Object.defineProperty(o, "default", { enumerable: true, value: v });
204
- }) : function(o, v) {
205
- o["default"] = v;
206
- };
207
-
208
- function __importStar(mod) {
209
- if (mod && mod.__esModule) return mod;
210
- var result = {};
211
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
212
- __setModuleDefault(result, mod);
213
- return result;
214
- }
215
-
216
- function __importDefault(mod) {
217
- return (mod && mod.__esModule) ? mod : { default: mod };
218
- }
219
-
220
- function __classPrivateFieldGet(receiver, privateMap) {
221
- if (!privateMap.has(receiver)) {
222
- throw new TypeError("attempted to get private field on non-instance");
223
- }
224
- return privateMap.get(receiver);
225
- }
226
-
227
- function __classPrivateFieldSet(receiver, privateMap, value) {
228
- if (!privateMap.has(receiver)) {
229
- throw new TypeError("attempted to set private field on non-instance");
230
- }
231
- privateMap.set(receiver, value);
232
- return value;
7
+ /*! *****************************************************************************
8
+ Copyright (c) Microsoft Corporation.
9
+
10
+ Permission to use, copy, modify, and/or distribute this software for any
11
+ purpose with or without fee is hereby granted.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
+ PERFORMANCE OF THIS SOFTWARE.
20
+ ***************************************************************************** */
21
+ /* global Reflect, Promise */
22
+ var extendStatics = function (d, b) {
23
+ extendStatics = Object.setPrototypeOf ||
24
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
25
+ function (d, b) { for (var p in b)
26
+ if (b.hasOwnProperty(p))
27
+ d[p] = b[p]; };
28
+ return extendStatics(d, b);
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
+ var __assign = function () {
36
+ __assign = Object.assign || function __assign(t) {
37
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
38
+ s = arguments[i];
39
+ for (var p in s)
40
+ if (Object.prototype.hasOwnProperty.call(s, p))
41
+ t[p] = s[p];
42
+ }
43
+ return t;
44
+ };
45
+ return __assign.apply(this, arguments);
46
+ };
47
+ function __rest(s, e) {
48
+ var t = {};
49
+ for (var p in s)
50
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
51
+ t[p] = s[p];
52
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
53
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
54
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
55
+ t[p[i]] = s[p[i]];
56
+ }
57
+ return t;
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")
62
+ r = Reflect.decorate(decorators, target, key, desc);
63
+ else
64
+ for (var i = decorators.length - 1; i >= 0; i--)
65
+ if (d = decorators[i])
66
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
67
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
68
+ }
69
+ function __param(paramIndex, decorator) {
70
+ return function (target, key) { decorator(target, key, paramIndex); };
71
+ }
72
+ function __metadata(metadataKey, metadataValue) {
73
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
74
+ return Reflect.metadata(metadataKey, metadataValue);
75
+ }
76
+ function __awaiter(thisArg, _arguments, P, generator) {
77
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
78
+ return new (P || (P = Promise))(function (resolve, reject) {
79
+ function fulfilled(value) { try {
80
+ step(generator.next(value));
81
+ }
82
+ catch (e) {
83
+ reject(e);
84
+ } }
85
+ function rejected(value) { try {
86
+ step(generator["throw"](value));
87
+ }
88
+ catch (e) {
89
+ reject(e);
90
+ } }
91
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
92
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
93
+ });
94
+ }
95
+ function __generator(thisArg, body) {
96
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
97
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
98
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
99
+ function verb(n) { return function (v) { return step([n, v]); }; }
100
+ function step(op) {
101
+ if (f)
102
+ throw new TypeError("Generator is already executing.");
103
+ while (_)
104
+ try {
105
+ 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)
106
+ return t;
107
+ if (y = 0, t)
108
+ op = [op[0] & 2, t.value];
109
+ switch (op[0]) {
110
+ case 0:
111
+ case 1:
112
+ t = op;
113
+ break;
114
+ case 4:
115
+ _.label++;
116
+ return { value: op[1], done: false };
117
+ case 5:
118
+ _.label++;
119
+ y = op[1];
120
+ op = [0];
121
+ continue;
122
+ case 7:
123
+ op = _.ops.pop();
124
+ _.trys.pop();
125
+ continue;
126
+ default:
127
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
128
+ _ = 0;
129
+ continue;
130
+ }
131
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
132
+ _.label = op[1];
133
+ break;
134
+ }
135
+ if (op[0] === 6 && _.label < t[1]) {
136
+ _.label = t[1];
137
+ t = op;
138
+ break;
139
+ }
140
+ if (t && _.label < t[2]) {
141
+ _.label = t[2];
142
+ _.ops.push(op);
143
+ break;
144
+ }
145
+ if (t[2])
146
+ _.ops.pop();
147
+ _.trys.pop();
148
+ continue;
149
+ }
150
+ op = body.call(thisArg, _);
151
+ }
152
+ catch (e) {
153
+ op = [6, e];
154
+ y = 0;
155
+ }
156
+ finally {
157
+ f = t = 0;
158
+ }
159
+ if (op[0] & 5)
160
+ throw op[1];
161
+ return { value: op[0] ? op[1] : void 0, done: true };
162
+ }
163
+ }
164
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
165
+ if (k2 === undefined)
166
+ k2 = k;
167
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
168
+ }) : (function (o, m, k, k2) {
169
+ if (k2 === undefined)
170
+ k2 = k;
171
+ o[k2] = m[k];
172
+ });
173
+ function __exportStar(m, exports) {
174
+ for (var p in m)
175
+ if (p !== "default" && !exports.hasOwnProperty(p))
176
+ __createBinding(exports, m, p);
177
+ }
178
+ function __values(o) {
179
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
180
+ if (m)
181
+ return m.call(o);
182
+ if (o && typeof o.length === "number")
183
+ return {
184
+ next: function () {
185
+ if (o && i >= o.length)
186
+ o = void 0;
187
+ return { value: o && o[i++], done: !o };
188
+ }
189
+ };
190
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
191
+ }
192
+ function __read(o, n) {
193
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
194
+ if (!m)
195
+ return o;
196
+ var i = m.call(o), r, ar = [], e;
197
+ try {
198
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
199
+ ar.push(r.value);
200
+ }
201
+ catch (error) {
202
+ e = { error: error };
203
+ }
204
+ finally {
205
+ try {
206
+ if (r && !r.done && (m = i["return"]))
207
+ m.call(i);
208
+ }
209
+ finally {
210
+ if (e)
211
+ throw e.error;
212
+ }
213
+ }
214
+ return ar;
215
+ }
216
+ function __spread() {
217
+ for (var ar = [], i = 0; i < arguments.length; i++)
218
+ ar = ar.concat(__read(arguments[i]));
219
+ return ar;
220
+ }
221
+ function __spreadArrays() {
222
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
223
+ s += arguments[i].length;
224
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
225
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
226
+ r[k] = a[j];
227
+ return r;
228
+ }
229
+ ;
230
+ function __await(v) {
231
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
232
+ }
233
+ function __asyncGenerator(thisArg, _arguments, generator) {
234
+ if (!Symbol.asyncIterator)
235
+ throw new TypeError("Symbol.asyncIterator is not defined.");
236
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
237
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
238
+ function verb(n) { if (g[n])
239
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
240
+ function resume(n, v) { try {
241
+ step(g[n](v));
242
+ }
243
+ catch (e) {
244
+ settle(q[0][3], e);
245
+ } }
246
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
247
+ function fulfill(value) { resume("next", value); }
248
+ function reject(value) { resume("throw", value); }
249
+ function settle(f, v) { if (f(v), q.shift(), q.length)
250
+ resume(q[0][0], q[0][1]); }
251
+ }
252
+ function __asyncDelegator(o) {
253
+ var i, p;
254
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
255
+ 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; }
256
+ }
257
+ function __asyncValues(o) {
258
+ if (!Symbol.asyncIterator)
259
+ throw new TypeError("Symbol.asyncIterator is not defined.");
260
+ var m = o[Symbol.asyncIterator], i;
261
+ 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);
262
+ 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); }); }; }
263
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
264
+ }
265
+ function __makeTemplateObject(cooked, raw) {
266
+ if (Object.defineProperty) {
267
+ Object.defineProperty(cooked, "raw", { value: raw });
268
+ }
269
+ else {
270
+ cooked.raw = raw;
271
+ }
272
+ return cooked;
273
+ }
274
+ ;
275
+ var __setModuleDefault = Object.create ? (function (o, v) {
276
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
277
+ }) : function (o, v) {
278
+ o["default"] = v;
279
+ };
280
+ function __importStar(mod) {
281
+ if (mod && mod.__esModule)
282
+ return mod;
283
+ var result = {};
284
+ if (mod != null)
285
+ for (var k in mod)
286
+ if (Object.hasOwnProperty.call(mod, k))
287
+ __createBinding(result, mod, k);
288
+ __setModuleDefault(result, mod);
289
+ return result;
290
+ }
291
+ function __importDefault(mod) {
292
+ return (mod && mod.__esModule) ? mod : { default: mod };
293
+ }
294
+ function __classPrivateFieldGet(receiver, privateMap) {
295
+ if (!privateMap.has(receiver)) {
296
+ throw new TypeError("attempted to get private field on non-instance");
297
+ }
298
+ return privateMap.get(receiver);
299
+ }
300
+ function __classPrivateFieldSet(receiver, privateMap, value) {
301
+ if (!privateMap.has(receiver)) {
302
+ throw new TypeError("attempted to set private field on non-instance");
303
+ }
304
+ privateMap.set(receiver, value);
305
+ return value;
233
306
  }
234
307
 
235
- /**
236
- * @license
237
- * Copyright Google LLC All Rights Reserved.
238
- *
239
- * Use of this source code is governed by an MIT-style license that can be
240
- * found in the LICENSE file at https://angular.io/license
241
- */
242
308
  /**
243
309
  * Mixin to provide a directive with a function that checks if the sticky input has been
244
310
  * changed since the last time the function was called. Essentially adds a dirty-check to the
@@ -299,13 +365,6 @@
299
365
  /** Injection token that can be used to specify the text column options. */
300
366
  var TEXT_COLUMN_OPTIONS = new core.InjectionToken('text-column-options');
301
367
 
302
- /**
303
- * @license
304
- * Copyright Google LLC All Rights Reserved.
305
- *
306
- * Use of this source code is governed by an MIT-style license that can be
307
- * found in the LICENSE file at https://angular.io/license
308
- */
309
368
  /**
310
369
  * Cell definition for a CDK table.
311
370
  * Captures the template of a column's data row cell as well as cell-specific properties.
@@ -314,14 +373,14 @@
314
373
  function CdkCellDef(/** @docs-private */ template) {
315
374
  this.template = template;
316
375
  }
317
- CdkCellDef.decorators = [
318
- { type: core.Directive, args: [{ selector: '[cdkCellDef]' },] }
319
- ];
320
- CdkCellDef.ctorParameters = function () { return [
321
- { type: core.TemplateRef }
322
- ]; };
323
376
  return CdkCellDef;
324
377
  }());
378
+ CdkCellDef.decorators = [
379
+ { type: core.Directive, args: [{ selector: '[cdkCellDef]' },] }
380
+ ];
381
+ CdkCellDef.ctorParameters = function () { return [
382
+ { type: core.TemplateRef }
383
+ ]; };
325
384
  /**
326
385
  * Header cell definition for a CDK table.
327
386
  * Captures the template of a column's header cell and as well as cell-specific properties.
@@ -330,14 +389,14 @@
330
389
  function CdkHeaderCellDef(/** @docs-private */ template) {
331
390
  this.template = template;
332
391
  }
333
- CdkHeaderCellDef.decorators = [
334
- { type: core.Directive, args: [{ selector: '[cdkHeaderCellDef]' },] }
335
- ];
336
- CdkHeaderCellDef.ctorParameters = function () { return [
337
- { type: core.TemplateRef }
338
- ]; };
339
392
  return CdkHeaderCellDef;
340
393
  }());
394
+ CdkHeaderCellDef.decorators = [
395
+ { type: core.Directive, args: [{ selector: '[cdkHeaderCellDef]' },] }
396
+ ];
397
+ CdkHeaderCellDef.ctorParameters = function () { return [
398
+ { type: core.TemplateRef }
399
+ ]; };
341
400
  /**
342
401
  * Footer cell definition for a CDK table.
343
402
  * Captures the template of a column's footer cell and as well as cell-specific properties.
@@ -346,14 +405,14 @@
346
405
  function CdkFooterCellDef(/** @docs-private */ template) {
347
406
  this.template = template;
348
407
  }
349
- CdkFooterCellDef.decorators = [
350
- { type: core.Directive, args: [{ selector: '[cdkFooterCellDef]' },] }
351
- ];
352
- CdkFooterCellDef.ctorParameters = function () { return [
353
- { type: core.TemplateRef }
354
- ]; };
355
408
  return CdkFooterCellDef;
356
409
  }());
410
+ CdkFooterCellDef.decorators = [
411
+ { type: core.Directive, args: [{ selector: '[cdkFooterCellDef]' },] }
412
+ ];
413
+ CdkFooterCellDef.ctorParameters = function () { return [
414
+ { type: core.TemplateRef }
415
+ ]; };
357
416
  // Boilerplate for applying mixins to CdkColumnDef.
358
417
  /** @docs-private */
359
418
  var CdkColumnDefBase = /** @class */ (function () {
@@ -385,6 +444,7 @@
385
444
  if (name) {
386
445
  this._name = name;
387
446
  this.cssClassFriendlyName = name.replace(/[^a-z0-9_-]/ig, '-');
447
+ this._updateColumnCssClassName();
388
448
  }
389
449
  },
390
450
  enumerable: false,
@@ -407,30 +467,55 @@
407
467
  enumerable: false,
408
468
  configurable: true
409
469
  });
410
- CdkColumnDef.decorators = [
411
- { type: core.Directive, args: [{
412
- selector: '[cdkColumnDef]',
413
- inputs: ['sticky'],
414
- providers: [{ provide: 'MAT_SORT_HEADER_COLUMN_DEF', useExisting: CdkColumnDef }],
415
- },] }
416
- ];
417
- CdkColumnDef.ctorParameters = function () { return [
418
- { type: undefined, decorators: [{ type: core.Inject, args: [CDK_TABLE,] }, { type: core.Optional }] }
419
- ]; };
420
- CdkColumnDef.propDecorators = {
421
- name: [{ type: core.Input, args: ['cdkColumnDef',] }],
422
- stickyEnd: [{ type: core.Input, args: ['stickyEnd',] }],
423
- cell: [{ type: core.ContentChild, args: [CdkCellDef,] }],
424
- headerCell: [{ type: core.ContentChild, args: [CdkHeaderCellDef,] }],
425
- footerCell: [{ type: core.ContentChild, args: [CdkFooterCellDef,] }]
470
+ /**
471
+ * Overridable method that sets the css classes that will be added to every cell in this
472
+ * column.
473
+ * In the future, columnCssClassName will change from type string[] to string and this
474
+ * will set a single string value.
475
+ * @docs-private
476
+ */
477
+ CdkColumnDef.prototype._updateColumnCssClassName = function () {
478
+ this._columnCssClassName = ["cdk-column-" + this.cssClassFriendlyName];
426
479
  };
427
480
  return CdkColumnDef;
428
481
  }(_CdkColumnDefBase));
482
+ CdkColumnDef.decorators = [
483
+ { type: core.Directive, args: [{
484
+ selector: '[cdkColumnDef]',
485
+ inputs: ['sticky'],
486
+ providers: [{ provide: 'MAT_SORT_HEADER_COLUMN_DEF', useExisting: CdkColumnDef }],
487
+ },] }
488
+ ];
489
+ CdkColumnDef.ctorParameters = function () { return [
490
+ { type: undefined, decorators: [{ type: core.Inject, args: [CDK_TABLE,] }, { type: core.Optional }] }
491
+ ]; };
492
+ CdkColumnDef.propDecorators = {
493
+ name: [{ type: core.Input, args: ['cdkColumnDef',] }],
494
+ stickyEnd: [{ type: core.Input, args: ['stickyEnd',] }],
495
+ cell: [{ type: core.ContentChild, args: [CdkCellDef,] }],
496
+ headerCell: [{ type: core.ContentChild, args: [CdkHeaderCellDef,] }],
497
+ footerCell: [{ type: core.ContentChild, args: [CdkFooterCellDef,] }]
498
+ };
429
499
  /** Base class for the cells. Adds a CSS classname that identifies the column it renders in. */
430
500
  var BaseCdkCell = /** @class */ (function () {
431
501
  function BaseCdkCell(columnDef, elementRef) {
432
- var columnClassName = "cdk-column-" + columnDef.cssClassFriendlyName;
433
- elementRef.nativeElement.classList.add(columnClassName);
502
+ var e_1, _a;
503
+ // If IE 11 is dropped before we switch to setting a single class name, change to multi param
504
+ // with destructuring.
505
+ var classList = elementRef.nativeElement.classList;
506
+ try {
507
+ for (var _b = __values(columnDef._columnCssClassName), _c = _b.next(); !_c.done; _c = _b.next()) {
508
+ var className = _c.value;
509
+ classList.add(className);
510
+ }
511
+ }
512
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
513
+ finally {
514
+ try {
515
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
516
+ }
517
+ finally { if (e_1) throw e_1.error; }
518
+ }
434
519
  }
435
520
  return BaseCdkCell;
436
521
  }());
@@ -440,71 +525,64 @@
440
525
  function CdkHeaderCell(columnDef, elementRef) {
441
526
  return _super.call(this, columnDef, elementRef) || this;
442
527
  }
443
- CdkHeaderCell.decorators = [
444
- { type: core.Directive, args: [{
445
- selector: 'cdk-header-cell, th[cdk-header-cell]',
446
- host: {
447
- 'class': 'cdk-header-cell',
448
- 'role': 'columnheader',
449
- },
450
- },] }
451
- ];
452
- CdkHeaderCell.ctorParameters = function () { return [
453
- { type: CdkColumnDef },
454
- { type: core.ElementRef }
455
- ]; };
456
528
  return CdkHeaderCell;
457
529
  }(BaseCdkCell));
530
+ CdkHeaderCell.decorators = [
531
+ { type: core.Directive, args: [{
532
+ selector: 'cdk-header-cell, th[cdk-header-cell]',
533
+ host: {
534
+ 'class': 'cdk-header-cell',
535
+ 'role': 'columnheader',
536
+ },
537
+ },] }
538
+ ];
539
+ CdkHeaderCell.ctorParameters = function () { return [
540
+ { type: CdkColumnDef },
541
+ { type: core.ElementRef }
542
+ ]; };
458
543
  /** Footer cell template container that adds the right classes and role. */
459
544
  var CdkFooterCell = /** @class */ (function (_super) {
460
545
  __extends(CdkFooterCell, _super);
461
546
  function CdkFooterCell(columnDef, elementRef) {
462
547
  return _super.call(this, columnDef, elementRef) || this;
463
548
  }
464
- CdkFooterCell.decorators = [
465
- { type: core.Directive, args: [{
466
- selector: 'cdk-footer-cell, td[cdk-footer-cell]',
467
- host: {
468
- 'class': 'cdk-footer-cell',
469
- 'role': 'gridcell',
470
- },
471
- },] }
472
- ];
473
- CdkFooterCell.ctorParameters = function () { return [
474
- { type: CdkColumnDef },
475
- { type: core.ElementRef }
476
- ]; };
477
549
  return CdkFooterCell;
478
550
  }(BaseCdkCell));
551
+ CdkFooterCell.decorators = [
552
+ { type: core.Directive, args: [{
553
+ selector: 'cdk-footer-cell, td[cdk-footer-cell]',
554
+ host: {
555
+ 'class': 'cdk-footer-cell',
556
+ 'role': 'gridcell',
557
+ },
558
+ },] }
559
+ ];
560
+ CdkFooterCell.ctorParameters = function () { return [
561
+ { type: CdkColumnDef },
562
+ { type: core.ElementRef }
563
+ ]; };
479
564
  /** Cell template container that adds the right classes and role. */
480
565
  var CdkCell = /** @class */ (function (_super) {
481
566
  __extends(CdkCell, _super);
482
567
  function CdkCell(columnDef, elementRef) {
483
568
  return _super.call(this, columnDef, elementRef) || this;
484
569
  }
485
- CdkCell.decorators = [
486
- { type: core.Directive, args: [{
487
- selector: 'cdk-cell, td[cdk-cell]',
488
- host: {
489
- 'class': 'cdk-cell',
490
- 'role': 'gridcell',
491
- },
492
- },] }
493
- ];
494
- CdkCell.ctorParameters = function () { return [
495
- { type: CdkColumnDef },
496
- { type: core.ElementRef }
497
- ]; };
498
570
  return CdkCell;
499
571
  }(BaseCdkCell));
572
+ CdkCell.decorators = [
573
+ { type: core.Directive, args: [{
574
+ selector: 'cdk-cell, td[cdk-cell]',
575
+ host: {
576
+ 'class': 'cdk-cell',
577
+ 'role': 'gridcell',
578
+ },
579
+ },] }
580
+ ];
581
+ CdkCell.ctorParameters = function () { return [
582
+ { type: CdkColumnDef },
583
+ { type: core.ElementRef }
584
+ ]; };
500
585
 
501
- /**
502
- * @license
503
- * Copyright Google LLC All Rights Reserved.
504
- *
505
- * Use of this source code is governed by an MIT-style license that can be
506
- * found in the LICENSE file at https://angular.io/license
507
- */
508
586
  /**
509
587
  * @docs-private
510
588
  */
@@ -554,54 +632,58 @@
554
632
  return;
555
633
  }
556
634
  this._currentSchedule = new _Schedule();
557
- this._ngZone.onStable.pipe(operators.take(1), operators.takeUntil(this._destroyed)).subscribe(function () {
635
+ this._getScheduleObservable().pipe(operators.takeUntil(this._destroyed)).subscribe(function () {
558
636
  var e_1, _a, e_2, _b;
559
- var schedule = _this._currentSchedule;
560
- _this._currentSchedule = null;
561
- try {
562
- for (var _c = __values(schedule.tasks), _d = _c.next(); !_d.done; _d = _c.next()) {
563
- var task = _d.value;
564
- task();
565
- }
566
- }
567
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
568
- finally {
637
+ while (_this._currentSchedule.tasks.length || _this._currentSchedule.endTasks.length) {
638
+ var schedule = _this._currentSchedule;
639
+ // Capture new tasks scheduled by the current set of tasks.
640
+ _this._currentSchedule = new _Schedule();
569
641
  try {
570
- if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
642
+ for (var _c = (e_1 = void 0, __values(schedule.tasks)), _d = _c.next(); !_d.done; _d = _c.next()) {
643
+ var task = _d.value;
644
+ task();
645
+ }
571
646
  }
572
- finally { if (e_1) throw e_1.error; }
573
- }
574
- try {
575
- for (var _e = __values(schedule.endTasks), _f = _e.next(); !_f.done; _f = _e.next()) {
576
- var task = _f.value;
577
- task();
647
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
648
+ finally {
649
+ try {
650
+ if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
651
+ }
652
+ finally { if (e_1) throw e_1.error; }
578
653
  }
579
- }
580
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
581
- finally {
582
654
  try {
583
- if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
655
+ for (var _e = (e_2 = void 0, __values(schedule.endTasks)), _f = _e.next(); !_f.done; _f = _e.next()) {
656
+ var task = _f.value;
657
+ task();
658
+ }
659
+ }
660
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
661
+ finally {
662
+ try {
663
+ if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
664
+ }
665
+ finally { if (e_2) throw e_2.error; }
584
666
  }
585
- finally { if (e_2) throw e_2.error; }
586
667
  }
668
+ _this._currentSchedule = null;
587
669
  });
588
670
  };
589
- _CoalescedStyleScheduler.decorators = [
590
- { type: core.Injectable }
591
- ];
592
- _CoalescedStyleScheduler.ctorParameters = function () { return [
593
- { type: core.NgZone }
594
- ]; };
671
+ _CoalescedStyleScheduler.prototype._getScheduleObservable = function () {
672
+ // Use onStable when in the context of an ongoing change detection cycle so that we
673
+ // do not accidentally trigger additional cycles.
674
+ return this._ngZone.isStable ?
675
+ rxjs.from(Promise.resolve(undefined)) :
676
+ this._ngZone.onStable.pipe(operators.take(1));
677
+ };
595
678
  return _CoalescedStyleScheduler;
596
679
  }());
680
+ _CoalescedStyleScheduler.decorators = [
681
+ { type: core.Injectable }
682
+ ];
683
+ _CoalescedStyleScheduler.ctorParameters = function () { return [
684
+ { type: core.NgZone }
685
+ ]; };
597
686
 
598
- /**
599
- * @license
600
- * Copyright Google LLC All Rights Reserved.
601
- *
602
- * Use of this source code is governed by an MIT-style license that can be
603
- * found in the LICENSE file at https://angular.io/license
604
- */
605
687
  /**
606
688
  * The row template that can be used by the mat-table. Should not be used outside of the
607
689
  * material library.
@@ -645,15 +727,15 @@
645
727
  return column.cell.template;
646
728
  }
647
729
  };
648
- BaseRowDef.decorators = [
649
- { type: core.Directive }
650
- ];
651
- BaseRowDef.ctorParameters = function () { return [
652
- { type: core.TemplateRef },
653
- { type: core.IterableDiffers }
654
- ]; };
655
730
  return BaseRowDef;
656
731
  }());
732
+ BaseRowDef.decorators = [
733
+ { type: core.Directive }
734
+ ];
735
+ BaseRowDef.ctorParameters = function () { return [
736
+ { type: core.TemplateRef },
737
+ { type: core.IterableDiffers }
738
+ ]; };
657
739
  // Boilerplate for applying mixins to CdkHeaderRowDef.
658
740
  /** @docs-private */
659
741
  var CdkHeaderRowDefBase = /** @class */ (function (_super) {
@@ -680,19 +762,19 @@
680
762
  CdkHeaderRowDef.prototype.ngOnChanges = function (changes) {
681
763
  _super.prototype.ngOnChanges.call(this, changes);
682
764
  };
683
- CdkHeaderRowDef.decorators = [
684
- { type: core.Directive, args: [{
685
- selector: '[cdkHeaderRowDef]',
686
- inputs: ['columns: cdkHeaderRowDef', 'sticky: cdkHeaderRowDefSticky'],
687
- },] }
688
- ];
689
- CdkHeaderRowDef.ctorParameters = function () { return [
690
- { type: core.TemplateRef },
691
- { type: core.IterableDiffers },
692
- { type: undefined, decorators: [{ type: core.Inject, args: [CDK_TABLE,] }, { type: core.Optional }] }
693
- ]; };
694
765
  return CdkHeaderRowDef;
695
766
  }(_CdkHeaderRowDefBase));
767
+ CdkHeaderRowDef.decorators = [
768
+ { type: core.Directive, args: [{
769
+ selector: '[cdkHeaderRowDef]',
770
+ inputs: ['columns: cdkHeaderRowDef', 'sticky: cdkHeaderRowDefSticky'],
771
+ },] }
772
+ ];
773
+ CdkHeaderRowDef.ctorParameters = function () { return [
774
+ { type: core.TemplateRef },
775
+ { type: core.IterableDiffers },
776
+ { type: undefined, decorators: [{ type: core.Inject, args: [CDK_TABLE,] }, { type: core.Optional }] }
777
+ ]; };
696
778
  // Boilerplate for applying mixins to CdkFooterRowDef.
697
779
  /** @docs-private */
698
780
  var CdkFooterRowDefBase = /** @class */ (function (_super) {
@@ -719,19 +801,19 @@
719
801
  CdkFooterRowDef.prototype.ngOnChanges = function (changes) {
720
802
  _super.prototype.ngOnChanges.call(this, changes);
721
803
  };
722
- CdkFooterRowDef.decorators = [
723
- { type: core.Directive, args: [{
724
- selector: '[cdkFooterRowDef]',
725
- inputs: ['columns: cdkFooterRowDef', 'sticky: cdkFooterRowDefSticky'],
726
- },] }
727
- ];
728
- CdkFooterRowDef.ctorParameters = function () { return [
729
- { type: core.TemplateRef },
730
- { type: core.IterableDiffers },
731
- { type: undefined, decorators: [{ type: core.Inject, args: [CDK_TABLE,] }, { type: core.Optional }] }
732
- ]; };
733
804
  return CdkFooterRowDef;
734
805
  }(_CdkFooterRowDefBase));
806
+ CdkFooterRowDef.decorators = [
807
+ { type: core.Directive, args: [{
808
+ selector: '[cdkFooterRowDef]',
809
+ inputs: ['columns: cdkFooterRowDef', 'sticky: cdkFooterRowDefSticky'],
810
+ },] }
811
+ ];
812
+ CdkFooterRowDef.ctorParameters = function () { return [
813
+ { type: core.TemplateRef },
814
+ { type: core.IterableDiffers },
815
+ { type: undefined, decorators: [{ type: core.Inject, args: [CDK_TABLE,] }, { type: core.Optional }] }
816
+ ]; };
735
817
  /**
736
818
  * Data row definition for the CDK table.
737
819
  * Captures the header row's template and other row properties such as the columns to display and
@@ -746,19 +828,19 @@
746
828
  _this._table = _table;
747
829
  return _this;
748
830
  }
749
- CdkRowDef.decorators = [
750
- { type: core.Directive, args: [{
751
- selector: '[cdkRowDef]',
752
- inputs: ['columns: cdkRowDefColumns', 'when: cdkRowDefWhen'],
753
- },] }
754
- ];
755
- CdkRowDef.ctorParameters = function () { return [
756
- { type: core.TemplateRef },
757
- { type: core.IterableDiffers },
758
- { type: undefined, decorators: [{ type: core.Inject, args: [CDK_TABLE,] }, { type: core.Optional }] }
759
- ]; };
760
831
  return CdkRowDef;
761
832
  }(BaseRowDef));
833
+ CdkRowDef.decorators = [
834
+ { type: core.Directive, args: [{
835
+ selector: '[cdkRowDef]',
836
+ inputs: ['columns: cdkRowDefColumns', 'when: cdkRowDefWhen'],
837
+ },] }
838
+ ];
839
+ CdkRowDef.ctorParameters = function () { return [
840
+ { type: core.TemplateRef },
841
+ { type: core.IterableDiffers },
842
+ { type: undefined, decorators: [{ type: core.Inject, args: [CDK_TABLE,] }, { type: core.Optional }] }
843
+ ]; };
762
844
  /**
763
845
  * Outlet for rendering cells inside of a row or header row.
764
846
  * @docs-private
@@ -775,97 +857,97 @@
775
857
  CdkCellOutlet.mostRecentCellOutlet = null;
776
858
  }
777
859
  };
778
- /**
779
- * Static property containing the latest constructed instance of this class.
780
- * Used by the CDK table when each CdkHeaderRow and CdkRow component is created using
781
- * createEmbeddedView. After one of these components are created, this property will provide
782
- * a handle to provide that component's cells and context. After init, the CdkCellOutlet will
783
- * construct the cells with the provided context.
784
- */
785
- CdkCellOutlet.mostRecentCellOutlet = null;
786
- CdkCellOutlet.decorators = [
787
- { type: core.Directive, args: [{ selector: '[cdkCellOutlet]' },] }
788
- ];
789
- CdkCellOutlet.ctorParameters = function () { return [
790
- { type: core.ViewContainerRef }
791
- ]; };
792
860
  return CdkCellOutlet;
793
861
  }());
862
+ /**
863
+ * Static property containing the latest constructed instance of this class.
864
+ * Used by the CDK table when each CdkHeaderRow and CdkRow component is created using
865
+ * createEmbeddedView. After one of these components are created, this property will provide
866
+ * a handle to provide that component's cells and context. After init, the CdkCellOutlet will
867
+ * construct the cells with the provided context.
868
+ */
869
+ CdkCellOutlet.mostRecentCellOutlet = null;
870
+ CdkCellOutlet.decorators = [
871
+ { type: core.Directive, args: [{ selector: '[cdkCellOutlet]' },] }
872
+ ];
873
+ CdkCellOutlet.ctorParameters = function () { return [
874
+ { type: core.ViewContainerRef }
875
+ ]; };
794
876
  /** Header template container that contains the cell outlet. Adds the right class and role. */
795
877
  var CdkHeaderRow = /** @class */ (function () {
796
878
  function CdkHeaderRow() {
797
879
  }
798
- CdkHeaderRow.decorators = [
799
- { type: core.Component, args: [{
800
- selector: 'cdk-header-row, tr[cdk-header-row]',
801
- template: CDK_ROW_TEMPLATE,
802
- host: {
803
- 'class': 'cdk-header-row',
804
- 'role': 'row',
805
- },
806
- // See note on CdkTable for explanation on why this uses the default change detection strategy.
807
- // tslint:disable-next-line:validate-decorators
808
- changeDetection: core.ChangeDetectionStrategy.Default,
809
- encapsulation: core.ViewEncapsulation.None
810
- },] }
811
- ];
812
880
  return CdkHeaderRow;
813
881
  }());
882
+ CdkHeaderRow.decorators = [
883
+ { type: core.Component, args: [{
884
+ selector: 'cdk-header-row, tr[cdk-header-row]',
885
+ template: CDK_ROW_TEMPLATE,
886
+ host: {
887
+ 'class': 'cdk-header-row',
888
+ 'role': 'row',
889
+ },
890
+ // See note on CdkTable for explanation on why this uses the default change detection strategy.
891
+ // tslint:disable-next-line:validate-decorators
892
+ changeDetection: core.ChangeDetectionStrategy.Default,
893
+ encapsulation: core.ViewEncapsulation.None
894
+ },] }
895
+ ];
814
896
  /** Footer template container that contains the cell outlet. Adds the right class and role. */
815
897
  var CdkFooterRow = /** @class */ (function () {
816
898
  function CdkFooterRow() {
817
899
  }
818
- CdkFooterRow.decorators = [
819
- { type: core.Component, args: [{
820
- selector: 'cdk-footer-row, tr[cdk-footer-row]',
821
- template: CDK_ROW_TEMPLATE,
822
- host: {
823
- 'class': 'cdk-footer-row',
824
- 'role': 'row',
825
- },
826
- // See note on CdkTable for explanation on why this uses the default change detection strategy.
827
- // tslint:disable-next-line:validate-decorators
828
- changeDetection: core.ChangeDetectionStrategy.Default,
829
- encapsulation: core.ViewEncapsulation.None
830
- },] }
831
- ];
832
900
  return CdkFooterRow;
833
901
  }());
902
+ CdkFooterRow.decorators = [
903
+ { type: core.Component, args: [{
904
+ selector: 'cdk-footer-row, tr[cdk-footer-row]',
905
+ template: CDK_ROW_TEMPLATE,
906
+ host: {
907
+ 'class': 'cdk-footer-row',
908
+ 'role': 'row',
909
+ },
910
+ // See note on CdkTable for explanation on why this uses the default change detection strategy.
911
+ // tslint:disable-next-line:validate-decorators
912
+ changeDetection: core.ChangeDetectionStrategy.Default,
913
+ encapsulation: core.ViewEncapsulation.None
914
+ },] }
915
+ ];
834
916
  /** Data row template container that contains the cell outlet. Adds the right class and role. */
835
917
  var CdkRow = /** @class */ (function () {
836
918
  function CdkRow() {
837
919
  }
838
- CdkRow.decorators = [
839
- { type: core.Component, args: [{
840
- selector: 'cdk-row, tr[cdk-row]',
841
- template: CDK_ROW_TEMPLATE,
842
- host: {
843
- 'class': 'cdk-row',
844
- 'role': 'row',
845
- },
846
- // See note on CdkTable for explanation on why this uses the default change detection strategy.
847
- // tslint:disable-next-line:validate-decorators
848
- changeDetection: core.ChangeDetectionStrategy.Default,
849
- encapsulation: core.ViewEncapsulation.None
850
- },] }
851
- ];
852
920
  return CdkRow;
853
921
  }());
922
+ CdkRow.decorators = [
923
+ { type: core.Component, args: [{
924
+ selector: 'cdk-row, tr[cdk-row]',
925
+ template: CDK_ROW_TEMPLATE,
926
+ host: {
927
+ 'class': 'cdk-row',
928
+ 'role': 'row',
929
+ },
930
+ // See note on CdkTable for explanation on why this uses the default change detection strategy.
931
+ // tslint:disable-next-line:validate-decorators
932
+ changeDetection: core.ChangeDetectionStrategy.Default,
933
+ encapsulation: core.ViewEncapsulation.None
934
+ },] }
935
+ ];
854
936
  /** Row that can be used to display a message when no data is shown in the table. */
855
937
  var CdkNoDataRow = /** @class */ (function () {
856
938
  function CdkNoDataRow(templateRef) {
857
939
  this.templateRef = templateRef;
858
940
  }
859
- CdkNoDataRow.decorators = [
860
- { type: core.Directive, args: [{
861
- selector: 'ng-template[cdkNoDataRow]'
862
- },] }
863
- ];
864
- CdkNoDataRow.ctorParameters = function () { return [
865
- { type: core.TemplateRef }
866
- ]; };
867
941
  return CdkNoDataRow;
868
942
  }());
943
+ CdkNoDataRow.decorators = [
944
+ { type: core.Directive, args: [{
945
+ selector: 'ng-template[cdkNoDataRow]'
946
+ },] }
947
+ ];
948
+ CdkNoDataRow.ctorParameters = function () { return [
949
+ { type: core.TemplateRef }
950
+ ]; };
869
951
 
870
952
  /**
871
953
  * @license
@@ -892,14 +974,19 @@
892
974
  * @param direction The directionality context of the table (ltr/rtl); affects column positioning
893
975
  * by reversing left/right positions.
894
976
  * @param _isBrowser Whether the table is currently being rendered on the server or the client.
977
+ * @param _needsPositionStickyOnElement Whether we need to specify position: sticky on cells
978
+ * using inline styles. If false, it is assumed that position: sticky is included in
979
+ * the component stylesheet for _stickCellCss.
895
980
  */
896
- function StickyStyler(_isNativeHtmlTable, _stickCellCss, direction, _coalescedStyleScheduler, _isBrowser) {
981
+ function StickyStyler(_isNativeHtmlTable, _stickCellCss, direction, _coalescedStyleScheduler, _isBrowser, _needsPositionStickyOnElement) {
897
982
  if (_isBrowser === void 0) { _isBrowser = true; }
983
+ if (_needsPositionStickyOnElement === void 0) { _needsPositionStickyOnElement = true; }
898
984
  this._isNativeHtmlTable = _isNativeHtmlTable;
899
985
  this._stickCellCss = _stickCellCss;
900
986
  this.direction = direction;
901
987
  this._coalescedStyleScheduler = _coalescedStyleScheduler;
902
988
  this._isBrowser = _isBrowser;
989
+ this._needsPositionStickyOnElement = _needsPositionStickyOnElement;
903
990
  }
904
991
  /**
905
992
  * Clears the sticky positioning styles from the row and its cells by resetting the `position`
@@ -1103,12 +1190,20 @@
1103
1190
  }
1104
1191
  finally { if (e_5) throw e_5.error; }
1105
1192
  }
1106
- element.style.zIndex = this._getCalculatedZIndex(element);
1107
1193
  // If the element no longer has any more sticky directions, remove sticky positioning and
1108
1194
  // the sticky CSS class.
1109
- var hasDirection = STICKY_DIRECTIONS.some(function (dir) { return !!element.style[dir]; });
1110
- if (!hasDirection) {
1111
- element.style.position = '';
1195
+ // Short-circuit checking element.style[dir] for stickyDirections as they
1196
+ // were already removed above.
1197
+ var hasDirection = STICKY_DIRECTIONS.some(function (dir) { return stickyDirections.indexOf(dir) === -1 && element.style[dir]; });
1198
+ if (hasDirection) {
1199
+ element.style.zIndex = this._getCalculatedZIndex(element);
1200
+ }
1201
+ else {
1202
+ // When not hasDirection, _getCalculatedZIndex will always return ''.
1203
+ element.style.zIndex = '';
1204
+ if (this._needsPositionStickyOnElement) {
1205
+ element.style.position = '';
1206
+ }
1112
1207
  element.classList.remove(this._stickCellCss);
1113
1208
  }
1114
1209
  };
@@ -1120,8 +1215,10 @@
1120
1215
  StickyStyler.prototype._addStickyStyle = function (element, dir, dirValue) {
1121
1216
  element.classList.add(this._stickCellCss);
1122
1217
  element.style[dir] = dirValue + "px";
1123
- element.style.cssText += 'position: -webkit-sticky; position: sticky; ';
1124
1218
  element.style.zIndex = this._getCalculatedZIndex(element);
1219
+ if (this._needsPositionStickyOnElement) {
1220
+ element.style.cssText += 'position: -webkit-sticky; position: sticky; ';
1221
+ }
1125
1222
  };
1126
1223
  /**
1127
1224
  * Calculate what the z-index should be for the element, depending on what directions (top,
@@ -1147,8 +1244,8 @@
1147
1244
  // Use `Iterable` instead of `Array` because TypeScript, as of 3.6.3,
1148
1245
  // loses the array generic type in the `for of`. But we *also* have to use `Array` because
1149
1246
  // typescript won't iterate over an `Iterable` unless you compile with `--downlevelIteration`
1150
- for (var _b = __values(STICKY_DIRECTIONS), _c = _b.next(); !_c.done; _c = _b.next()) {
1151
- var dir = _c.value;
1247
+ for (var STICKY_DIRECTIONS_1 = __values(STICKY_DIRECTIONS), STICKY_DIRECTIONS_1_1 = STICKY_DIRECTIONS_1.next(); !STICKY_DIRECTIONS_1_1.done; STICKY_DIRECTIONS_1_1 = STICKY_DIRECTIONS_1.next()) {
1248
+ var dir = STICKY_DIRECTIONS_1_1.value;
1152
1249
  if (element.style[dir]) {
1153
1250
  zIndex += zIndexIncrements[dir];
1154
1251
  }
@@ -1157,7 +1254,7 @@
1157
1254
  catch (e_6_1) { e_6 = { error: e_6_1 }; }
1158
1255
  finally {
1159
1256
  try {
1160
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
1257
+ if (STICKY_DIRECTIONS_1_1 && !STICKY_DIRECTIONS_1_1.done && (_a = STICKY_DIRECTIONS_1.return)) _a.call(STICKY_DIRECTIONS_1);
1161
1258
  }
1162
1259
  finally { if (e_6) throw e_6.error; }
1163
1260
  }
@@ -1275,13 +1372,6 @@
1275
1372
  return Error("Table text column must have a name.");
1276
1373
  }
1277
1374
 
1278
- /**
1279
- * @license
1280
- * Copyright Google LLC All Rights Reserved.
1281
- *
1282
- * Use of this source code is governed by an MIT-style license that can be
1283
- * found in the LICENSE file at https://angular.io/license
1284
- */
1285
1375
  /**
1286
1376
  * Provides a handle for the table to grab the view container's ng-container to insert data rows.
1287
1377
  * @docs-private
@@ -1291,15 +1381,15 @@
1291
1381
  this.viewContainer = viewContainer;
1292
1382
  this.elementRef = elementRef;
1293
1383
  }
1294
- DataRowOutlet.decorators = [
1295
- { type: core.Directive, args: [{ selector: '[rowOutlet]' },] }
1296
- ];
1297
- DataRowOutlet.ctorParameters = function () { return [
1298
- { type: core.ViewContainerRef },
1299
- { type: core.ElementRef }
1300
- ]; };
1301
1384
  return DataRowOutlet;
1302
1385
  }());
1386
+ DataRowOutlet.decorators = [
1387
+ { type: core.Directive, args: [{ selector: '[rowOutlet]' },] }
1388
+ ];
1389
+ DataRowOutlet.ctorParameters = function () { return [
1390
+ { type: core.ViewContainerRef },
1391
+ { type: core.ElementRef }
1392
+ ]; };
1303
1393
  /**
1304
1394
  * Provides a handle for the table to grab the view container's ng-container to insert the header.
1305
1395
  * @docs-private
@@ -1309,15 +1399,15 @@
1309
1399
  this.viewContainer = viewContainer;
1310
1400
  this.elementRef = elementRef;
1311
1401
  }
1312
- HeaderRowOutlet.decorators = [
1313
- { type: core.Directive, args: [{ selector: '[headerRowOutlet]' },] }
1314
- ];
1315
- HeaderRowOutlet.ctorParameters = function () { return [
1316
- { type: core.ViewContainerRef },
1317
- { type: core.ElementRef }
1318
- ]; };
1319
1402
  return HeaderRowOutlet;
1320
1403
  }());
1404
+ HeaderRowOutlet.decorators = [
1405
+ { type: core.Directive, args: [{ selector: '[headerRowOutlet]' },] }
1406
+ ];
1407
+ HeaderRowOutlet.ctorParameters = function () { return [
1408
+ { type: core.ViewContainerRef },
1409
+ { type: core.ElementRef }
1410
+ ]; };
1321
1411
  /**
1322
1412
  * Provides a handle for the table to grab the view container's ng-container to insert the footer.
1323
1413
  * @docs-private
@@ -1327,15 +1417,15 @@
1327
1417
  this.viewContainer = viewContainer;
1328
1418
  this.elementRef = elementRef;
1329
1419
  }
1330
- FooterRowOutlet.decorators = [
1331
- { type: core.Directive, args: [{ selector: '[footerRowOutlet]' },] }
1332
- ];
1333
- FooterRowOutlet.ctorParameters = function () { return [
1334
- { type: core.ViewContainerRef },
1335
- { type: core.ElementRef }
1336
- ]; };
1337
1420
  return FooterRowOutlet;
1338
1421
  }());
1422
+ FooterRowOutlet.decorators = [
1423
+ { type: core.Directive, args: [{ selector: '[footerRowOutlet]' },] }
1424
+ ];
1425
+ FooterRowOutlet.ctorParameters = function () { return [
1426
+ { type: core.ViewContainerRef },
1427
+ { type: core.ElementRef }
1428
+ ]; };
1339
1429
  /**
1340
1430
  * Provides a handle for the table to grab the view
1341
1431
  * container's ng-container to insert the no data row.
@@ -1346,15 +1436,15 @@
1346
1436
  this.viewContainer = viewContainer;
1347
1437
  this.elementRef = elementRef;
1348
1438
  }
1349
- NoDataRowOutlet.decorators = [
1350
- { type: core.Directive, args: [{ selector: '[noDataRowOutlet]' },] }
1351
- ];
1352
- NoDataRowOutlet.ctorParameters = function () { return [
1353
- { type: core.ViewContainerRef },
1354
- { type: core.ElementRef }
1355
- ]; };
1356
1439
  return NoDataRowOutlet;
1357
1440
  }());
1441
+ NoDataRowOutlet.decorators = [
1442
+ { type: core.Directive, args: [{ selector: '[noDataRowOutlet]' },] }
1443
+ ];
1444
+ NoDataRowOutlet.ctorParameters = function () { return [
1445
+ { type: core.ViewContainerRef },
1446
+ { type: core.ElementRef }
1447
+ ]; };
1358
1448
  /**
1359
1449
  * The table template that can be used by the mat-table. Should not be used outside of the
1360
1450
  * material library.
@@ -1450,6 +1540,12 @@
1450
1540
  * table subclasses.
1451
1541
  */
1452
1542
  this.stickyCssClass = 'cdk-table-sticky';
1543
+ /**
1544
+ * Whether to manually add positon: sticky to all sticky cell elements. Not needed if
1545
+ * the position is set in a selector associated with the value of stickyCssClass. May be
1546
+ * overridden by table subclasses
1547
+ */
1548
+ this.needsPositionStickyOnElement = true;
1453
1549
  /** Whether the no data row is currently showing anything. */
1454
1550
  this._isShowingNoDataRow = false;
1455
1551
  this._multiTemplateDataRows = false;
@@ -2136,7 +2232,7 @@
2136
2232
  CdkTable.prototype._setupStickyStyler = function () {
2137
2233
  var _this = this;
2138
2234
  var direction = this._dir ? this._dir.value : 'ltr';
2139
- this._stickyStyler = new StickyStyler(this._isNativeHtmlTable, this.stickyCssClass, direction, this._coalescedStyleScheduler, this._platform.isBrowser);
2235
+ this._stickyStyler = new StickyStyler(this._isNativeHtmlTable, this.stickyCssClass, direction, this._coalescedStyleScheduler, this._platform.isBrowser, this.needsPositionStickyOnElement);
2140
2236
  (this._dir ? this._dir.change : rxjs.of())
2141
2237
  .pipe(operators.takeUntil(this._onDestroy))
2142
2238
  .subscribe(function (value) {
@@ -2160,56 +2256,56 @@
2160
2256
  }
2161
2257
  }
2162
2258
  };
2163
- CdkTable.decorators = [
2164
- { type: core.Component, args: [{
2165
- selector: 'cdk-table, table[cdk-table]',
2166
- exportAs: 'cdkTable',
2167
- template: CDK_TABLE_TEMPLATE,
2168
- host: {
2169
- 'class': 'cdk-table',
2170
- },
2171
- encapsulation: core.ViewEncapsulation.None,
2172
- // The "OnPush" status for the `MatTable` component is effectively a noop, so we are removing it.
2173
- // The view for `MatTable` consists entirely of templates declared in other views. As they are
2174
- // declared elsewhere, they are checked when their declaration points are checked.
2175
- // tslint:disable-next-line:validate-decorators
2176
- changeDetection: core.ChangeDetectionStrategy.Default,
2177
- providers: [
2178
- { provide: CDK_TABLE, useExisting: CdkTable },
2179
- _CoalescedStyleScheduler,
2180
- ]
2181
- },] }
2182
- ];
2183
- CdkTable.ctorParameters = function () { return [
2184
- { type: core.IterableDiffers },
2185
- { type: core.ChangeDetectorRef },
2186
- { type: _CoalescedStyleScheduler },
2187
- { type: core.ElementRef },
2188
- { type: String, decorators: [{ type: core.Attribute, args: ['role',] }] },
2189
- { type: bidi.Directionality, decorators: [{ type: core.Optional }] },
2190
- { type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] },
2191
- { type: platform.Platform }
2192
- ]; };
2193
- CdkTable.propDecorators = {
2194
- trackBy: [{ type: core.Input }],
2195
- dataSource: [{ type: core.Input }],
2196
- multiTemplateDataRows: [{ type: core.Input }],
2197
- _rowOutlet: [{ type: core.ViewChild, args: [DataRowOutlet, { static: true },] }],
2198
- _headerRowOutlet: [{ type: core.ViewChild, args: [HeaderRowOutlet, { static: true },] }],
2199
- _footerRowOutlet: [{ type: core.ViewChild, args: [FooterRowOutlet, { static: true },] }],
2200
- _noDataRowOutlet: [{ type: core.ViewChild, args: [NoDataRowOutlet, { static: true },] }],
2201
- _contentColumnDefs: [{ type: core.ContentChildren, args: [CdkColumnDef, { descendants: true },] }],
2202
- _contentRowDefs: [{ type: core.ContentChildren, args: [CdkRowDef, { descendants: true },] }],
2203
- _contentHeaderRowDefs: [{ type: core.ContentChildren, args: [CdkHeaderRowDef, {
2204
- descendants: true
2205
- },] }],
2206
- _contentFooterRowDefs: [{ type: core.ContentChildren, args: [CdkFooterRowDef, {
2207
- descendants: true
2208
- },] }],
2209
- _noDataRow: [{ type: core.ContentChild, args: [CdkNoDataRow,] }]
2210
- };
2211
2259
  return CdkTable;
2212
2260
  }());
2261
+ CdkTable.decorators = [
2262
+ { type: core.Component, args: [{
2263
+ selector: 'cdk-table, table[cdk-table]',
2264
+ exportAs: 'cdkTable',
2265
+ template: CDK_TABLE_TEMPLATE,
2266
+ host: {
2267
+ 'class': 'cdk-table',
2268
+ },
2269
+ encapsulation: core.ViewEncapsulation.None,
2270
+ // The "OnPush" status for the `MatTable` component is effectively a noop, so we are removing it.
2271
+ // The view for `MatTable` consists entirely of templates declared in other views. As they are
2272
+ // declared elsewhere, they are checked when their declaration points are checked.
2273
+ // tslint:disable-next-line:validate-decorators
2274
+ changeDetection: core.ChangeDetectionStrategy.Default,
2275
+ providers: [
2276
+ { provide: CDK_TABLE, useExisting: CdkTable },
2277
+ _CoalescedStyleScheduler,
2278
+ ]
2279
+ },] }
2280
+ ];
2281
+ CdkTable.ctorParameters = function () { return [
2282
+ { type: core.IterableDiffers },
2283
+ { type: core.ChangeDetectorRef },
2284
+ { type: _CoalescedStyleScheduler },
2285
+ { type: core.ElementRef },
2286
+ { type: String, decorators: [{ type: core.Attribute, args: ['role',] }] },
2287
+ { type: bidi.Directionality, decorators: [{ type: core.Optional }] },
2288
+ { type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] },
2289
+ { type: platform.Platform }
2290
+ ]; };
2291
+ CdkTable.propDecorators = {
2292
+ trackBy: [{ type: core.Input }],
2293
+ dataSource: [{ type: core.Input }],
2294
+ multiTemplateDataRows: [{ type: core.Input }],
2295
+ _rowOutlet: [{ type: core.ViewChild, args: [DataRowOutlet, { static: true },] }],
2296
+ _headerRowOutlet: [{ type: core.ViewChild, args: [HeaderRowOutlet, { static: true },] }],
2297
+ _footerRowOutlet: [{ type: core.ViewChild, args: [FooterRowOutlet, { static: true },] }],
2298
+ _noDataRowOutlet: [{ type: core.ViewChild, args: [NoDataRowOutlet, { static: true },] }],
2299
+ _contentColumnDefs: [{ type: core.ContentChildren, args: [CdkColumnDef, { descendants: true },] }],
2300
+ _contentRowDefs: [{ type: core.ContentChildren, args: [CdkRowDef, { descendants: true },] }],
2301
+ _contentHeaderRowDefs: [{ type: core.ContentChildren, args: [CdkHeaderRowDef, {
2302
+ descendants: true
2303
+ },] }],
2304
+ _contentFooterRowDefs: [{ type: core.ContentChildren, args: [CdkFooterRowDef, {
2305
+ descendants: true
2306
+ },] }],
2307
+ _noDataRow: [{ type: core.ContentChild, args: [CdkNoDataRow,] }]
2308
+ };
2213
2309
  /** Utility function that gets a merged list of the entries in an array and values of a Set. */
2214
2310
  function mergeArrayAndSet(array, set) {
2215
2311
  return array.concat(Array.from(set));
@@ -2299,35 +2395,35 @@
2299
2395
  this.columnDef.name = this.name;
2300
2396
  }
2301
2397
  };
2302
- CdkTextColumn.decorators = [
2303
- { type: core.Component, args: [{
2304
- selector: 'cdk-text-column',
2305
- template: "\n <ng-container cdkColumnDef>\n <th cdk-header-cell *cdkHeaderCellDef [style.text-align]=\"justify\">\n {{headerText}}\n </th>\n <td cdk-cell *cdkCellDef=\"let data\" [style.text-align]=\"justify\">\n {{dataAccessor(data, name)}}\n </td>\n </ng-container>\n ",
2306
- encapsulation: core.ViewEncapsulation.None,
2307
- // Change detection is intentionally not set to OnPush. This component's template will be provided
2308
- // to the table to be inserted into its view. This is problematic when change detection runs since
2309
- // the bindings in this template will be evaluated _after_ the table's view is evaluated, which
2310
- // mean's the template in the table's view will not have the updated value (and in fact will cause
2311
- // an ExpressionChangedAfterItHasBeenCheckedError).
2312
- // tslint:disable-next-line:validate-decorators
2313
- changeDetection: core.ChangeDetectionStrategy.Default
2314
- },] }
2315
- ];
2316
- CdkTextColumn.ctorParameters = function () { return [
2317
- { type: CdkTable, decorators: [{ type: core.Optional }] },
2318
- { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [TEXT_COLUMN_OPTIONS,] }] }
2319
- ]; };
2320
- CdkTextColumn.propDecorators = {
2321
- name: [{ type: core.Input }],
2322
- headerText: [{ type: core.Input }],
2323
- dataAccessor: [{ type: core.Input }],
2324
- justify: [{ type: core.Input }],
2325
- columnDef: [{ type: core.ViewChild, args: [CdkColumnDef, { static: true },] }],
2326
- cell: [{ type: core.ViewChild, args: [CdkCellDef, { static: true },] }],
2327
- headerCell: [{ type: core.ViewChild, args: [CdkHeaderCellDef, { static: true },] }]
2328
- };
2329
2398
  return CdkTextColumn;
2330
2399
  }());
2400
+ CdkTextColumn.decorators = [
2401
+ { type: core.Component, args: [{
2402
+ selector: 'cdk-text-column',
2403
+ template: "\n <ng-container cdkColumnDef>\n <th cdk-header-cell *cdkHeaderCellDef [style.text-align]=\"justify\">\n {{headerText}}\n </th>\n <td cdk-cell *cdkCellDef=\"let data\" [style.text-align]=\"justify\">\n {{dataAccessor(data, name)}}\n </td>\n </ng-container>\n ",
2404
+ encapsulation: core.ViewEncapsulation.None,
2405
+ // Change detection is intentionally not set to OnPush. This component's template will be provided
2406
+ // to the table to be inserted into its view. This is problematic when change detection runs since
2407
+ // the bindings in this template will be evaluated _after_ the table's view is evaluated, which
2408
+ // mean's the template in the table's view will not have the updated value (and in fact will cause
2409
+ // an ExpressionChangedAfterItHasBeenCheckedError).
2410
+ // tslint:disable-next-line:validate-decorators
2411
+ changeDetection: core.ChangeDetectionStrategy.Default
2412
+ },] }
2413
+ ];
2414
+ CdkTextColumn.ctorParameters = function () { return [
2415
+ { type: CdkTable, decorators: [{ type: core.Optional }] },
2416
+ { type: undefined, decorators: [{ type: core.Optional }, { type: core.Inject, args: [TEXT_COLUMN_OPTIONS,] }] }
2417
+ ]; };
2418
+ CdkTextColumn.propDecorators = {
2419
+ name: [{ type: core.Input }],
2420
+ headerText: [{ type: core.Input }],
2421
+ dataAccessor: [{ type: core.Input }],
2422
+ justify: [{ type: core.Input }],
2423
+ columnDef: [{ type: core.ViewChild, args: [CdkColumnDef, { static: true },] }],
2424
+ cell: [{ type: core.ViewChild, args: [CdkCellDef, { static: true },] }],
2425
+ headerCell: [{ type: core.ViewChild, args: [CdkHeaderCellDef, { static: true },] }]
2426
+ };
2331
2427
 
2332
2428
  /**
2333
2429
  * @license
@@ -2362,14 +2458,14 @@
2362
2458
  var CdkTableModule = /** @class */ (function () {
2363
2459
  function CdkTableModule() {
2364
2460
  }
2365
- CdkTableModule.decorators = [
2366
- { type: core.NgModule, args: [{
2367
- exports: EXPORTED_DECLARATIONS,
2368
- declarations: EXPORTED_DECLARATIONS
2369
- },] }
2370
- ];
2371
2461
  return CdkTableModule;
2372
2462
  }());
2463
+ CdkTableModule.decorators = [
2464
+ { type: core.NgModule, args: [{
2465
+ exports: EXPORTED_DECLARATIONS,
2466
+ declarations: EXPORTED_DECLARATIONS
2467
+ },] }
2468
+ ];
2373
2469
 
2374
2470
  /**
2375
2471
  * @license