@angular/cdk 8.0.0-beta.2 → 8.0.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 (219) hide show
  1. package/README.md +2 -2
  2. package/_overlay.scss +4 -4
  3. package/bundles/cdk-a11y.umd.js +227 -79
  4. package/bundles/cdk-a11y.umd.js.map +1 -1
  5. package/bundles/cdk-a11y.umd.min.js +1 -1
  6. package/bundles/cdk-a11y.umd.min.js.map +1 -1
  7. package/bundles/cdk-accordion.umd.js +20 -8
  8. package/bundles/cdk-accordion.umd.js.map +1 -1
  9. package/bundles/cdk-accordion.umd.min.js.map +1 -1
  10. package/bundles/cdk-bidi.umd.js +5 -5
  11. package/bundles/cdk-bidi.umd.min.js +1 -1
  12. package/bundles/cdk-bidi.umd.min.js.map +1 -1
  13. package/bundles/cdk-coercion.umd.js +5 -5
  14. package/bundles/cdk-collections.umd.js +38 -15
  15. package/bundles/cdk-collections.umd.js.map +1 -1
  16. package/bundles/cdk-collections.umd.min.js +1 -1
  17. package/bundles/cdk-collections.umd.min.js.map +1 -1
  18. package/bundles/cdk-drag-drop.umd.js +571 -180
  19. package/bundles/cdk-drag-drop.umd.js.map +1 -1
  20. package/bundles/cdk-drag-drop.umd.min.js +2 -2
  21. package/bundles/cdk-drag-drop.umd.min.js.map +1 -1
  22. package/bundles/cdk-keycodes.umd.js +7 -3
  23. package/bundles/cdk-keycodes.umd.js.map +1 -1
  24. package/bundles/cdk-keycodes.umd.min.js.map +1 -1
  25. package/bundles/cdk-layout.umd.js +83 -30
  26. package/bundles/cdk-layout.umd.js.map +1 -1
  27. package/bundles/cdk-layout.umd.min.js +1 -1
  28. package/bundles/cdk-layout.umd.min.js.map +1 -1
  29. package/bundles/cdk-observers.umd.js +30 -11
  30. package/bundles/cdk-observers.umd.js.map +1 -1
  31. package/bundles/cdk-observers.umd.min.js +1 -1
  32. package/bundles/cdk-observers.umd.min.js.map +1 -1
  33. package/bundles/cdk-overlay.umd.js +229 -108
  34. package/bundles/cdk-overlay.umd.js.map +1 -1
  35. package/bundles/cdk-overlay.umd.min.js +2 -2
  36. package/bundles/cdk-overlay.umd.min.js.map +1 -1
  37. package/bundles/cdk-platform.umd.js +17 -10
  38. package/bundles/cdk-platform.umd.js.map +1 -1
  39. package/bundles/cdk-platform.umd.min.js +1 -1
  40. package/bundles/cdk-platform.umd.min.js.map +1 -1
  41. package/bundles/cdk-portal.umd.js +32 -13
  42. package/bundles/cdk-portal.umd.js.map +1 -1
  43. package/bundles/cdk-portal.umd.min.js.map +1 -1
  44. package/bundles/cdk-scrolling.umd.js +184 -62
  45. package/bundles/cdk-scrolling.umd.js.map +1 -1
  46. package/bundles/cdk-scrolling.umd.min.js +1 -1
  47. package/bundles/cdk-scrolling.umd.min.js.map +1 -1
  48. package/bundles/cdk-stepper.umd.js +30 -12
  49. package/bundles/cdk-stepper.umd.js.map +1 -1
  50. package/bundles/cdk-stepper.umd.min.js.map +1 -1
  51. package/bundles/cdk-table.umd.js +384 -74
  52. package/bundles/cdk-table.umd.js.map +1 -1
  53. package/bundles/cdk-table.umd.min.js +1 -1
  54. package/bundles/cdk-table.umd.min.js.map +1 -1
  55. package/bundles/cdk-text-field.umd.js +61 -21
  56. package/bundles/cdk-text-field.umd.js.map +1 -1
  57. package/bundles/cdk-text-field.umd.min.js +1 -1
  58. package/bundles/cdk-text-field.umd.min.js.map +1 -1
  59. package/bundles/cdk-tree.umd.js +85 -29
  60. package/bundles/cdk-tree.umd.js.map +1 -1
  61. package/bundles/cdk-tree.umd.min.js.map +1 -1
  62. package/bundles/cdk.umd.js +2 -2
  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/drag-drop/typings/directives/drag.d.ts +11 -2
  67. package/drag-drop/typings/drag-events.d.ts +17 -0
  68. package/drag-drop/typings/drag-ref.d.ts +9 -5
  69. package/drag-drop/typings/drop-list-ref.d.ts +9 -3
  70. package/drag-drop/typings/index.metadata.json +1 -1
  71. package/esm2015/a11y.js +229 -81
  72. package/esm2015/a11y.js.map +1 -1
  73. package/esm2015/accordion.js +22 -10
  74. package/esm2015/accordion.js.map +1 -1
  75. package/esm2015/bidi.js +8 -8
  76. package/esm2015/cdk.js +4 -4
  77. package/esm2015/cdk.js.map +1 -1
  78. package/esm2015/coercion.js +7 -7
  79. package/esm2015/collections.js +41 -18
  80. package/esm2015/collections.js.map +1 -1
  81. package/esm2015/drag-drop.js +540 -181
  82. package/esm2015/drag-drop.js.map +1 -1
  83. package/esm2015/keycodes.js +9 -5
  84. package/esm2015/keycodes.js.map +1 -1
  85. package/esm2015/layout.js +89 -36
  86. package/esm2015/layout.js.map +1 -1
  87. package/esm2015/observers.js +33 -14
  88. package/esm2015/observers.js.map +1 -1
  89. package/esm2015/overlay.js +232 -110
  90. package/esm2015/overlay.js.map +1 -1
  91. package/esm2015/platform.js +20 -13
  92. package/esm2015/platform.js.map +1 -1
  93. package/esm2015/portal.js +34 -15
  94. package/esm2015/portal.js.map +1 -1
  95. package/esm2015/scrolling.js +180 -58
  96. package/esm2015/scrolling.js.map +1 -1
  97. package/esm2015/stepper.js +32 -14
  98. package/esm2015/stepper.js.map +1 -1
  99. package/esm2015/table.js +369 -69
  100. package/esm2015/table.js.map +1 -1
  101. package/esm2015/text-field.js +64 -24
  102. package/esm2015/text-field.js.map +1 -1
  103. package/esm2015/tree.js +86 -30
  104. package/esm2015/tree.js.map +1 -1
  105. package/esm5/a11y.es5.js +230 -82
  106. package/esm5/a11y.es5.js.map +1 -1
  107. package/esm5/accordion.es5.js +22 -10
  108. package/esm5/accordion.es5.js.map +1 -1
  109. package/esm5/bidi.es5.js +8 -8
  110. package/esm5/cdk.es5.js +4 -4
  111. package/esm5/cdk.es5.js.map +1 -1
  112. package/esm5/coercion.es5.js +7 -7
  113. package/esm5/collections.es5.js +42 -19
  114. package/esm5/collections.es5.js.map +1 -1
  115. package/esm5/drag-drop.es5.js +574 -183
  116. package/esm5/drag-drop.es5.js.map +1 -1
  117. package/esm5/keycodes.es5.js +9 -5
  118. package/esm5/keycodes.es5.js.map +1 -1
  119. package/esm5/layout.es5.js +86 -33
  120. package/esm5/layout.es5.js.map +1 -1
  121. package/esm5/observers.es5.js +33 -14
  122. package/esm5/observers.es5.js.map +1 -1
  123. package/esm5/overlay.es5.js +232 -111
  124. package/esm5/overlay.es5.js.map +1 -1
  125. package/esm5/platform.es5.js +20 -13
  126. package/esm5/platform.es5.js.map +1 -1
  127. package/esm5/portal.es5.js +34 -15
  128. package/esm5/portal.es5.js.map +1 -1
  129. package/esm5/scrolling.es5.js +187 -65
  130. package/esm5/scrolling.es5.js.map +1 -1
  131. package/esm5/stepper.es5.js +32 -14
  132. package/esm5/stepper.es5.js.map +1 -1
  133. package/esm5/table.es5.js +386 -72
  134. package/esm5/table.es5.js.map +1 -1
  135. package/esm5/text-field.es5.js +64 -24
  136. package/esm5/text-field.es5.js.map +1 -1
  137. package/esm5/tree.es5.js +87 -31
  138. package/esm5/tree.es5.js.map +1 -1
  139. package/layout/typings/breakpoints-observer.d.ts +3 -3
  140. package/layout/typings/index.metadata.json +1 -1
  141. package/layout/typings/media-matcher.d.ts +2 -2
  142. package/overlay/typings/index.metadata.json +1 -1
  143. package/overlay/typings/position/flexible-connected-position-strategy.d.ts +1 -3
  144. package/package.json +8 -8
  145. package/portal/typings/portal.d.ts +2 -2
  146. package/schematics/ng-update/data/attribute-selectors.js +1 -1
  147. package/schematics/ng-update/data/attribute-selectors.js.map +1 -1
  148. package/schematics/ng-update/data/class-names.js +3 -3
  149. package/schematics/ng-update/data/class-names.js.map +1 -1
  150. package/schematics/ng-update/data/constructor-checks.js +1 -1
  151. package/schematics/ng-update/data/constructor-checks.js.map +1 -1
  152. package/schematics/ng-update/data/input-names.js +1 -1
  153. package/schematics/ng-update/data/input-names.js.map +1 -1
  154. package/schematics/ng-update/data/method-call-checks.js +1 -1
  155. package/schematics/ng-update/data/method-call-checks.js.map +1 -1
  156. package/schematics/ng-update/data/property-names.js +4 -4
  157. package/schematics/ng-update/data/property-names.js.map +1 -1
  158. package/schematics/ng-update/upgrade-rules/signature-check/constructorSignatureCheckRule.js +1 -1
  159. package/schematics/ng-update/upgrade-rules/signature-check/constructorSignatureCheckRule.js.map +1 -1
  160. package/schematics/tsconfig.tsbuildinfo +5811 -0
  161. package/schematics/utils/ast.d.ts +1 -1
  162. package/schematics/utils/build-component.js +1 -1
  163. package/schematics/utils/build-component.js.map +1 -1
  164. package/schematics/utils/get-project.d.ts +1 -1
  165. package/schematics/utils/project-main-file.d.ts +1 -1
  166. package/schematics/utils/project-style-file.d.ts +1 -1
  167. package/schematics/utils/project-targets.d.ts +1 -1
  168. package/schematics/utils/schematic-options.d.ts +1 -1
  169. package/table/typings/cell.d.ts +3 -2
  170. package/table/typings/index.metadata.json +1 -1
  171. package/table/typings/public-api.d.ts +1 -0
  172. package/table/typings/row.d.ts +5 -4
  173. package/table/typings/sticky-styler.d.ts +5 -5
  174. package/table/typings/table-errors.d.ts +10 -0
  175. package/table/typings/text-column.d.ts +80 -0
  176. package/typings/drag-drop/directives/drag.d.ts +11 -2
  177. package/typings/drag-drop/drag-events.d.ts +17 -0
  178. package/typings/drag-drop/drag-ref.d.ts +9 -5
  179. package/typings/drag-drop/drop-list-ref.d.ts +9 -3
  180. package/typings/drag-drop/index.metadata.json +1 -1
  181. package/typings/esm5/drag-drop/directives/drag.d.ts +11 -2
  182. package/typings/esm5/drag-drop/drag-events.d.ts +17 -0
  183. package/typings/esm5/drag-drop/drag-ref.d.ts +9 -5
  184. package/typings/esm5/drag-drop/drop-list-ref.d.ts +9 -3
  185. package/typings/esm5/drag-drop/index.metadata.json +1 -1
  186. package/typings/esm5/index.metadata.json +1 -1
  187. package/typings/esm5/layout/breakpoints-observer.d.ts +3 -3
  188. package/typings/esm5/layout/index.metadata.json +1 -1
  189. package/typings/esm5/layout/media-matcher.d.ts +2 -2
  190. package/typings/esm5/overlay/index.metadata.json +1 -1
  191. package/typings/esm5/overlay/position/flexible-connected-position-strategy.d.ts +1 -3
  192. package/typings/esm5/portal/portal.d.ts +2 -2
  193. package/typings/esm5/table/cell.d.ts +3 -2
  194. package/typings/esm5/table/index.metadata.json +1 -1
  195. package/typings/esm5/table/public-api.d.ts +1 -0
  196. package/typings/esm5/table/row.d.ts +5 -4
  197. package/typings/esm5/table/sticky-styler.d.ts +5 -5
  198. package/typings/esm5/table/table-errors.d.ts +10 -0
  199. package/typings/esm5/table/text-column.d.ts +80 -0
  200. package/typings/index.metadata.json +1 -1
  201. package/typings/layout/breakpoints-observer.d.ts +3 -3
  202. package/typings/layout/index.metadata.json +1 -1
  203. package/typings/layout/media-matcher.d.ts +2 -2
  204. package/typings/overlay/index.metadata.json +1 -1
  205. package/typings/overlay/position/flexible-connected-position-strategy.d.ts +1 -3
  206. package/typings/portal/portal.d.ts +2 -2
  207. package/typings/schematics/utils/ast.d.ts +1 -1
  208. package/typings/schematics/utils/get-project.d.ts +1 -1
  209. package/typings/schematics/utils/project-main-file.d.ts +1 -1
  210. package/typings/schematics/utils/project-style-file.d.ts +1 -1
  211. package/typings/schematics/utils/project-targets.d.ts +1 -1
  212. package/typings/schematics/utils/schematic-options.d.ts +1 -1
  213. package/typings/table/cell.d.ts +3 -2
  214. package/typings/table/index.metadata.json +1 -1
  215. package/typings/table/public-api.d.ts +1 -0
  216. package/typings/table/row.d.ts +5 -4
  217. package/typings/table/sticky-styler.d.ts +5 -5
  218. package/typings/table/table-errors.d.ts +10 -0
  219. package/typings/table/text-column.d.ts +80 -0
package/esm5/table.es5.js CHANGED
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { __extends } from 'tslib';
9
9
  import { coerceBooleanProperty } from '@angular/cdk/coercion';
10
- import { ContentChild, Directive, ElementRef, Input, TemplateRef, ChangeDetectionStrategy, Component, IterableDiffers, ViewContainerRef, ViewEncapsulation, Attribute, ChangeDetectorRef, ContentChildren, EmbeddedViewRef, Inject, isDevMode, Optional, ViewChild, NgModule } from '@angular/core';
10
+ import { ContentChild, Directive, ElementRef, Input, TemplateRef, ChangeDetectionStrategy, Component, IterableDiffers, ViewContainerRef, ViewEncapsulation, Attribute, ChangeDetectorRef, ContentChildren, EmbeddedViewRef, Inject, isDevMode, Optional, ViewChild, InjectionToken, NgModule } from '@angular/core';
11
11
  import { Directionality } from '@angular/cdk/bidi';
12
12
  import { isDataSource } from '@angular/cdk/collections';
13
13
  export { DataSource } from '@angular/cdk/collections';
@@ -18,7 +18,7 @@ import { takeUntil } from 'rxjs/operators';
18
18
 
19
19
  /**
20
20
  * @fileoverview added by tsickle
21
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
21
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
22
22
  */
23
23
  /**
24
24
  * Mixin to provide a directive with a function that checks if the sticky input has been
@@ -98,7 +98,7 @@ function mixinHasStickyInput(base) {
98
98
 
99
99
  /**
100
100
  * @fileoverview added by tsickle
101
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
101
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
102
102
  */
103
103
  /**
104
104
  * Cell definition for a CDK table.
@@ -155,7 +155,7 @@ var CdkFooterCellDef = /** @class */ (function () {
155
155
  /**
156
156
  * \@docs-private
157
157
  */
158
- var
158
+ var
159
159
  // Boilerplate for applying mixins to CdkColumnDef.
160
160
  /**
161
161
  * \@docs-private
@@ -184,7 +184,9 @@ var CdkColumnDef = /** @class */ (function (_super) {
184
184
  * Unique name for this column.
185
185
  * @return {?}
186
186
  */
187
- function () { return this._name; },
187
+ function () {
188
+ return this._name;
189
+ },
188
190
  set: /**
189
191
  * @param {?} name
190
192
  * @return {?}
@@ -213,7 +215,9 @@ var CdkColumnDef = /** @class */ (function (_super) {
213
215
  * has been changed.
214
216
  * @return {?}
215
217
  */
216
- function () { return this._stickyEnd; },
218
+ function () {
219
+ return this._stickyEnd;
220
+ },
217
221
  set: /**
218
222
  * @param {?} v
219
223
  * @return {?}
@@ -231,10 +235,7 @@ var CdkColumnDef = /** @class */ (function (_super) {
231
235
  { type: Directive, args: [{
232
236
  selector: '[cdkColumnDef]',
233
237
  inputs: ['sticky'],
234
- providers: [{
235
- provide: 'MAT_SORT_HEADER_COLUMN_DEF',
236
- useExisting: CdkColumnDef
237
- }],
238
+ providers: [{ provide: 'MAT_SORT_HEADER_COLUMN_DEF', useExisting: CdkColumnDef }],
238
239
  },] },
239
240
  ];
240
241
  CdkColumnDef.propDecorators = {
@@ -335,7 +336,7 @@ var CdkCell = /** @class */ (function (_super) {
335
336
 
336
337
  /**
337
338
  * @fileoverview added by tsickle
338
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
339
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
339
340
  */
340
341
  /**
341
342
  * The row template that can be used by the mat-table. Should not be used outside of the
@@ -421,7 +422,7 @@ BaseRowDef = /** @class */ (function () {
421
422
  /**
422
423
  * \@docs-private
423
424
  */
424
- var
425
+ var
425
426
  // Boilerplate for applying mixins to CdkHeaderRowDef.
426
427
  /**
427
428
  * \@docs-private
@@ -479,7 +480,7 @@ var CdkHeaderRowDef = /** @class */ (function (_super) {
479
480
  /**
480
481
  * \@docs-private
481
482
  */
482
- var
483
+ var
483
484
  // Boilerplate for applying mixins to CdkFooterRowDef.
484
485
  /**
485
486
  * \@docs-private
@@ -664,7 +665,7 @@ var CdkRow = /** @class */ (function () {
664
665
 
665
666
  /**
666
667
  * @fileoverview added by tsickle
667
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
668
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
668
669
  */
669
670
 
670
671
  /**
@@ -683,18 +684,18 @@ var /**
683
684
  */
684
685
  StickyStyler = /** @class */ (function () {
685
686
  /**
686
- * @param isNativeHtmlTable Whether the sticky logic should be based on a table
687
+ * @param _isNativeHtmlTable Whether the sticky logic should be based on a table
687
688
  * that uses the native `<table>` element.
688
- * @param stickCellCss The CSS class that will be applied to every row/cell that has
689
+ * @param _stickCellCss The CSS class that will be applied to every row/cell that has
689
690
  * sticky positioning applied.
690
691
  * @param direction The directionality context of the table (ltr/rtl); affects column positioning
691
692
  * by reversing left/right positions.
692
693
  * @param _isBrowser Whether the table is currently being rendered on the server or the client.
693
694
  */
694
- function StickyStyler(isNativeHtmlTable, stickCellCss, direction, _isBrowser) {
695
+ function StickyStyler(_isNativeHtmlTable, _stickCellCss, direction, _isBrowser) {
695
696
  if (_isBrowser === void 0) { _isBrowser = true; }
696
- this.isNativeHtmlTable = isNativeHtmlTable;
697
- this.stickCellCss = stickCellCss;
697
+ this._isNativeHtmlTable = _isNativeHtmlTable;
698
+ this._stickCellCss = _stickCellCss;
698
699
  this.direction = direction;
699
700
  this._isBrowser = _isBrowser;
700
701
  }
@@ -765,7 +766,15 @@ StickyStyler = /** @class */ (function () {
765
766
  */
766
767
  function (rows, stickyStartStates, stickyEndStates) {
767
768
  /** @type {?} */
768
- var hasStickyColumns = stickyStartStates.some(function (state) { return state; }) || stickyEndStates.some(function (state) { return state; });
769
+ var hasStickyColumns = stickyStartStates.some((/**
770
+ * @param {?} state
771
+ * @return {?}
772
+ */
773
+ function (state) { return state; })) || stickyEndStates.some((/**
774
+ * @param {?} state
775
+ * @return {?}
776
+ */
777
+ function (state) { return state; }));
769
778
  if (!rows.length || !hasStickyColumns || !this._isBrowser) {
770
779
  return;
771
780
  }
@@ -847,7 +856,7 @@ StickyStyler = /** @class */ (function () {
847
856
  }
848
857
  /** @type {?} */
849
858
  var row = rows[rowIndex];
850
- if (this.isNativeHtmlTable) {
859
+ if (this._isNativeHtmlTable) {
851
860
  for (var j = 0; j < row.children.length; j++) {
852
861
  /** @type {?} */
853
862
  var cell = (/** @type {?} */ (row.children[j]));
@@ -891,12 +900,16 @@ StickyStyler = /** @class */ (function () {
891
900
  * @return {?}
892
901
  */
893
902
  function (tableElement, stickyStates) {
894
- if (!this.isNativeHtmlTable) {
903
+ if (!this._isNativeHtmlTable) {
895
904
  return;
896
905
  }
897
906
  /** @type {?} */
898
907
  var tfoot = (/** @type {?} */ (tableElement.querySelector('tfoot')));
899
- if (stickyStates.some(function (state) { return !state; })) {
908
+ if (stickyStates.some((/**
909
+ * @param {?} state
910
+ * @return {?}
911
+ */
912
+ function (state) { return !state; }))) {
900
913
  this._removeStickyStyle(tfoot, ['bottom']);
901
914
  }
902
915
  else {
@@ -933,10 +946,14 @@ StickyStyler = /** @class */ (function () {
933
946
  // If the element no longer has any more sticky directions, remove sticky positioning and
934
947
  // the sticky CSS class.
935
948
  /** @type {?} */
936
- var hasDirection = STICKY_DIRECTIONS.some(function (dir) { return !!element.style[dir]; });
949
+ var hasDirection = STICKY_DIRECTIONS.some((/**
950
+ * @param {?} dir
951
+ * @return {?}
952
+ */
953
+ function (dir) { return !!element.style[dir]; }));
937
954
  if (!hasDirection) {
938
955
  element.style.position = '';
939
- element.classList.remove(this.stickCellCss);
956
+ element.classList.remove(this._stickCellCss);
940
957
  }
941
958
  };
942
959
  /**
@@ -963,7 +980,7 @@ StickyStyler = /** @class */ (function () {
963
980
  * @return {?}
964
981
  */
965
982
  function (element, dir, dirValue) {
966
- element.classList.add(this.stickCellCss);
983
+ element.classList.add(this._stickCellCss);
967
984
  element.style[dir] = dirValue + "px";
968
985
  element.style.cssText += 'position: -webkit-sticky; position: sticky; ';
969
986
  element.style.zIndex = this._getCalculatedZIndex(element);
@@ -1119,7 +1136,7 @@ StickyStyler = /** @class */ (function () {
1119
1136
 
1120
1137
  /**
1121
1138
  * @fileoverview added by tsickle
1122
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1139
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1123
1140
  */
1124
1141
 
1125
1142
  /**
@@ -1175,10 +1192,26 @@ function getTableMissingRowDefsError() {
1175
1192
  function getTableUnknownDataSourceError() {
1176
1193
  return Error("Provided data source did not match an array, Observable, or DataSource");
1177
1194
  }
1195
+ /**
1196
+ * Returns an error to be thrown when the text column cannot find a parent table to inject.
1197
+ * \@docs-private
1198
+ * @return {?}
1199
+ */
1200
+ function getTableTextColumnMissingParentTableError() {
1201
+ return Error("Text column could not find a parent table for registration.");
1202
+ }
1203
+ /**
1204
+ * Returns an error to be thrown when a table text column doesn't have a name.
1205
+ * \@docs-private
1206
+ * @return {?}
1207
+ */
1208
+ function getTableTextColumnMissingNameError() {
1209
+ return Error("Table text column must have a name.");
1210
+ }
1178
1211
 
1179
1212
  /**
1180
1213
  * @fileoverview added by tsickle
1181
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1214
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1182
1215
  */
1183
1216
  /**
1184
1217
  * Provides a handle for the table to grab the view container's ng-container to insert data rows.
@@ -1470,7 +1503,9 @@ var CdkTable = /** @class */ (function () {
1470
1503
  */
1471
1504
  function (v) {
1472
1505
  this._multiTemplateDataRows = coerceBooleanProperty(v);
1473
- if (this._rowOutlet.viewContainer.length) {
1506
+ // In Ivy if this value is set via a static attribute (e.g. <table multiTemplateDataRows>),
1507
+ // this setter will be invoked before the row outlet has been defined hence the null check.
1508
+ if (this._rowOutlet && this._rowOutlet.viewContainer.length) {
1474
1509
  this._forceRenderDataRows();
1475
1510
  }
1476
1511
  },
@@ -1492,9 +1527,14 @@ var CdkTable = /** @class */ (function () {
1492
1527
  // Set up the trackBy function so that it uses the `RenderRow` as its identity by default. If
1493
1528
  // the user has provided a custom trackBy, return the result of that function as evaluated
1494
1529
  // with the values of the `RenderRow`'s data and index.
1495
- this._dataDiffer = this._differs.find([]).create(function (_i, dataRow) {
1530
+ this._dataDiffer = this._differs.find([]).create((/**
1531
+ * @param {?} _i
1532
+ * @param {?} dataRow
1533
+ * @return {?}
1534
+ */
1535
+ function (_i, dataRow) {
1496
1536
  return _this.trackBy ? _this.trackBy(dataRow.dataIndex, dataRow.data) : dataRow;
1497
- });
1537
+ }));
1498
1538
  };
1499
1539
  /**
1500
1540
  * @return {?}
@@ -1588,7 +1628,13 @@ var CdkTable = /** @class */ (function () {
1588
1628
  }
1589
1629
  /** @type {?} */
1590
1630
  var viewContainer = this._rowOutlet.viewContainer;
1591
- changes.forEachOperation(function (record, prevIndex, currentIndex) {
1631
+ changes.forEachOperation((/**
1632
+ * @param {?} record
1633
+ * @param {?} prevIndex
1634
+ * @param {?} currentIndex
1635
+ * @return {?}
1636
+ */
1637
+ function (record, prevIndex, currentIndex) {
1592
1638
  if (record.previousIndex == null) {
1593
1639
  _this._insertRow(record.item, (/** @type {?} */ (currentIndex)));
1594
1640
  }
@@ -1600,16 +1646,20 @@ var CdkTable = /** @class */ (function () {
1600
1646
  var view = (/** @type {?} */ (viewContainer.get((/** @type {?} */ (prevIndex)))));
1601
1647
  viewContainer.move((/** @type {?} */ (view)), currentIndex);
1602
1648
  }
1603
- });
1649
+ }));
1604
1650
  // Update the meta context of a row's context data (index, count, first, last, ...)
1605
1651
  this._updateRowIndexContext();
1606
1652
  // Update rows that did not get added/removed/moved but may have had their identity changed,
1607
1653
  // e.g. if trackBy matched data on some property but the actual data reference changed.
1608
- changes.forEachIdentityChange(function (record) {
1654
+ changes.forEachIdentityChange((/**
1655
+ * @param {?} record
1656
+ * @return {?}
1657
+ */
1658
+ function (record) {
1609
1659
  /** @type {?} */
1610
1660
  var rowView = (/** @type {?} */ (viewContainer.get((/** @type {?} */ (record.currentIndex)))));
1611
1661
  rowView.context.$implicit = record.item.data;
1612
- });
1662
+ }));
1613
1663
  this.updateStickyColumnStyles();
1614
1664
  };
1615
1665
  /**
@@ -1829,11 +1879,19 @@ var CdkTable = /** @class */ (function () {
1829
1879
  thead.style.display = headerRows.length ? '' : 'none';
1830
1880
  }
1831
1881
  /** @type {?} */
1832
- var stickyStates = this._headerRowDefs.map(function (def) { return def.sticky; });
1882
+ var stickyStates = this._headerRowDefs.map((/**
1883
+ * @param {?} def
1884
+ * @return {?}
1885
+ */
1886
+ function (def) { return def.sticky; }));
1833
1887
  this._stickyStyler.clearStickyPositioning(headerRows, ['top']);
1834
1888
  this._stickyStyler.stickRows(headerRows, stickyStates, 'top');
1835
1889
  // Reset the dirty state of the sticky input change since it has been used.
1836
- this._headerRowDefs.forEach(function (def) { return def.resetStickyChanged(); });
1890
+ this._headerRowDefs.forEach((/**
1891
+ * @param {?} def
1892
+ * @return {?}
1893
+ */
1894
+ function (def) { return def.resetStickyChanged(); }));
1837
1895
  };
1838
1896
  /**
1839
1897
  * Updates the footer sticky styles. First resets all applied styles with respect to the cells
@@ -1872,12 +1930,20 @@ var CdkTable = /** @class */ (function () {
1872
1930
  tfoot.style.display = footerRows.length ? '' : 'none';
1873
1931
  }
1874
1932
  /** @type {?} */
1875
- var stickyStates = this._footerRowDefs.map(function (def) { return def.sticky; });
1933
+ var stickyStates = this._footerRowDefs.map((/**
1934
+ * @param {?} def
1935
+ * @return {?}
1936
+ */
1937
+ function (def) { return def.sticky; }));
1876
1938
  this._stickyStyler.clearStickyPositioning(footerRows, ['bottom']);
1877
1939
  this._stickyStyler.stickRows(footerRows, stickyStates, 'bottom');
1878
1940
  this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement, stickyStates);
1879
1941
  // Reset the dirty state of the sticky input change since it has been used.
1880
- this._footerRowDefs.forEach(function (def) { return def.resetStickyChanged(); });
1942
+ this._footerRowDefs.forEach((/**
1943
+ * @param {?} def
1944
+ * @return {?}
1945
+ */
1946
+ function (def) { return def.resetStickyChanged(); }));
1881
1947
  };
1882
1948
  /**
1883
1949
  * Updates the column sticky styles. First resets all applied styles with respect to the cells
@@ -1914,11 +1980,20 @@ var CdkTable = /** @class */ (function () {
1914
1980
  // sticky columns span across all table sections (header, data, footer)
1915
1981
  this._stickyStyler.clearStickyPositioning(headerRows.concat(dataRows, footerRows), ['left', 'right']);
1916
1982
  // Update the sticky styles for each header row depending on the def's sticky state
1917
- headerRows.forEach(function (headerRow, i) {
1983
+ headerRows.forEach((/**
1984
+ * @param {?} headerRow
1985
+ * @param {?} i
1986
+ * @return {?}
1987
+ */
1988
+ function (headerRow, i) {
1918
1989
  _this._addStickyColumnStyles([headerRow], _this._headerRowDefs[i]);
1919
- });
1990
+ }));
1920
1991
  // Update the sticky styles for each data row depending on its def's sticky state
1921
- this._rowDefs.forEach(function (rowDef) {
1992
+ this._rowDefs.forEach((/**
1993
+ * @param {?} rowDef
1994
+ * @return {?}
1995
+ */
1996
+ function (rowDef) {
1922
1997
  // Collect all the rows rendered with this row definition.
1923
1998
  /** @type {?} */
1924
1999
  var rows = [];
@@ -1928,13 +2003,22 @@ var CdkTable = /** @class */ (function () {
1928
2003
  }
1929
2004
  }
1930
2005
  _this._addStickyColumnStyles(rows, rowDef);
1931
- });
2006
+ }));
1932
2007
  // Update the sticky styles for each footer row depending on the def's sticky state
1933
- footerRows.forEach(function (footerRow, i) {
2008
+ footerRows.forEach((/**
2009
+ * @param {?} footerRow
2010
+ * @param {?} i
2011
+ * @return {?}
2012
+ */
2013
+ function (footerRow, i) {
1934
2014
  _this._addStickyColumnStyles([footerRow], _this._footerRowDefs[i]);
1935
- });
2015
+ }));
1936
2016
  // Reset the dirty state of the sticky input change since it has been used.
1937
- Array.from(this._columnDefsByName.values()).forEach(function (def) { return def.resetStickyChanged(); });
2017
+ Array.from(this._columnDefsByName.values()).forEach((/**
2018
+ * @param {?} def
2019
+ * @return {?}
2020
+ */
2021
+ function (def) { return def.resetStickyChanged(); }));
1938
2022
  };
1939
2023
  /**
1940
2024
  * Get the list of RenderRow objects to render according to the current list of data and defined
@@ -2017,7 +2101,11 @@ var CdkTable = /** @class */ (function () {
2017
2101
  function (data, dataIndex, cache) {
2018
2102
  /** @type {?} */
2019
2103
  var rowDefs = this._getRowDefs(data, dataIndex);
2020
- return rowDefs.map(function (rowDef) {
2104
+ return rowDefs.map((/**
2105
+ * @param {?} rowDef
2106
+ * @return {?}
2107
+ */
2108
+ function (rowDef) {
2021
2109
  /** @type {?} */
2022
2110
  var cachedRenderRows = (cache && cache.has(rowDef)) ? (/** @type {?} */ (cache.get(rowDef))) : [];
2023
2111
  if (cachedRenderRows.length) {
@@ -2029,7 +2117,7 @@ var CdkTable = /** @class */ (function () {
2029
2117
  else {
2030
2118
  return { data: data, rowDef: rowDef, dataIndex: dataIndex };
2031
2119
  }
2032
- });
2120
+ }));
2033
2121
  };
2034
2122
  /** Update the map containing the content's column definitions. */
2035
2123
  /**
@@ -2047,12 +2135,16 @@ var CdkTable = /** @class */ (function () {
2047
2135
  this._columnDefsByName.clear();
2048
2136
  /** @type {?} */
2049
2137
  var columnDefs = mergeQueryListAndSet(this._contentColumnDefs, this._customColumnDefs);
2050
- columnDefs.forEach(function (columnDef) {
2138
+ columnDefs.forEach((/**
2139
+ * @param {?} columnDef
2140
+ * @return {?}
2141
+ */
2142
+ function (columnDef) {
2051
2143
  if (_this._columnDefsByName.has(columnDef.name)) {
2052
2144
  throw getTableDuplicateColumnNameError(columnDef.name);
2053
2145
  }
2054
2146
  _this._columnDefsByName.set(columnDef.name, columnDef);
2055
- });
2147
+ }));
2056
2148
  };
2057
2149
  /** Update the list of all available row definitions that can be used. */
2058
2150
  /**
@@ -2073,7 +2165,11 @@ var CdkTable = /** @class */ (function () {
2073
2165
  this._rowDefs = mergeQueryListAndSet(this._contentRowDefs, this._customRowDefs);
2074
2166
  // After all row definitions are determined, find the row definition to be considered default.
2075
2167
  /** @type {?} */
2076
- var defaultRowDefs = this._rowDefs.filter(function (def) { return !def.when; });
2168
+ var defaultRowDefs = this._rowDefs.filter((/**
2169
+ * @param {?} def
2170
+ * @return {?}
2171
+ */
2172
+ function (def) { return !def.when; }));
2077
2173
  if (!this.multiTemplateDataRows && defaultRowDefs.length > 1) {
2078
2174
  throw getTableMultipleDefaultRowDefsError();
2079
2175
  }
@@ -2100,7 +2196,12 @@ var CdkTable = /** @class */ (function () {
2100
2196
  */
2101
2197
  function () {
2102
2198
  /** @type {?} */
2103
- var columnsDiffReducer = function (acc, def) { return acc || !!def.getColumnsDiff(); };
2199
+ var columnsDiffReducer = (/**
2200
+ * @param {?} acc
2201
+ * @param {?} def
2202
+ * @return {?}
2203
+ */
2204
+ function (acc, def) { return acc || !!def.getColumnsDiff(); });
2104
2205
  // Force re-render data rows if the list of column definitions have changed.
2105
2206
  if (this._rowDefs.reduce(columnsDiffReducer, false)) {
2106
2207
  this._forceRenderDataRows();
@@ -2183,10 +2284,14 @@ var CdkTable = /** @class */ (function () {
2183
2284
  if (dataStream === undefined) {
2184
2285
  throw getTableUnknownDataSourceError();
2185
2286
  }
2186
- this._renderChangeSubscription = dataStream.pipe(takeUntil(this._onDestroy)).subscribe(function (data) {
2287
+ this._renderChangeSubscription = dataStream.pipe(takeUntil(this._onDestroy)).subscribe((/**
2288
+ * @param {?} data
2289
+ * @return {?}
2290
+ */
2291
+ function (data) {
2187
2292
  _this._data = data || [];
2188
2293
  _this.renderRows();
2189
- });
2294
+ }));
2190
2295
  };
2191
2296
  /**
2192
2297
  * Clears any existing content in the header row outlet and creates a new embedded view
@@ -2210,7 +2315,12 @@ var CdkTable = /** @class */ (function () {
2210
2315
  if (this._headerRowOutlet.viewContainer.length > 0) {
2211
2316
  this._headerRowOutlet.viewContainer.clear();
2212
2317
  }
2213
- this._headerRowDefs.forEach(function (def, i) { return _this._renderRow(_this._headerRowOutlet, def, i); });
2318
+ this._headerRowDefs.forEach((/**
2319
+ * @param {?} def
2320
+ * @param {?} i
2321
+ * @return {?}
2322
+ */
2323
+ function (def, i) { return _this._renderRow(_this._headerRowOutlet, def, i); }));
2214
2324
  this.updateStickyHeaderRowStyles();
2215
2325
  this.updateStickyColumnStyles();
2216
2326
  };
@@ -2236,7 +2346,12 @@ var CdkTable = /** @class */ (function () {
2236
2346
  if (this._footerRowOutlet.viewContainer.length > 0) {
2237
2347
  this._footerRowOutlet.viewContainer.clear();
2238
2348
  }
2239
- this._footerRowDefs.forEach(function (def, i) { return _this._renderRow(_this._footerRowOutlet, def, i); });
2349
+ this._footerRowDefs.forEach((/**
2350
+ * @param {?} def
2351
+ * @param {?} i
2352
+ * @return {?}
2353
+ */
2354
+ function (def, i) { return _this._renderRow(_this._footerRowOutlet, def, i); }));
2240
2355
  this.updateStickyFooterRowStyles();
2241
2356
  this.updateStickyColumnStyles();
2242
2357
  };
@@ -2258,18 +2373,30 @@ var CdkTable = /** @class */ (function () {
2258
2373
  function (rows, rowDef) {
2259
2374
  var _this = this;
2260
2375
  /** @type {?} */
2261
- var columnDefs = Array.from(rowDef.columns || []).map(function (columnName) {
2376
+ var columnDefs = Array.from(rowDef.columns || []).map((/**
2377
+ * @param {?} columnName
2378
+ * @return {?}
2379
+ */
2380
+ function (columnName) {
2262
2381
  /** @type {?} */
2263
2382
  var columnDef = _this._columnDefsByName.get(columnName);
2264
2383
  if (!columnDef) {
2265
2384
  throw getTableUnknownColumnError(columnName);
2266
2385
  }
2267
2386
  return (/** @type {?} */ (columnDef));
2268
- });
2387
+ }));
2269
2388
  /** @type {?} */
2270
- var stickyStartStates = columnDefs.map(function (columnDef) { return columnDef.sticky; });
2389
+ var stickyStartStates = columnDefs.map((/**
2390
+ * @param {?} columnDef
2391
+ * @return {?}
2392
+ */
2393
+ function (columnDef) { return columnDef.sticky; }));
2271
2394
  /** @type {?} */
2272
- var stickyEndStates = columnDefs.map(function (columnDef) { return columnDef.stickyEnd; });
2395
+ var stickyEndStates = columnDefs.map((/**
2396
+ * @param {?} columnDef
2397
+ * @return {?}
2398
+ */
2399
+ function (columnDef) { return columnDef.stickyEnd; }));
2273
2400
  this._stickyStyler.updateStickyColumns(rows, stickyStartStates, stickyEndStates);
2274
2401
  };
2275
2402
  /** Gets the list of rows that have been rendered in the row outlet. */
@@ -2324,11 +2451,19 @@ var CdkTable = /** @class */ (function () {
2324
2451
  /** @type {?} */
2325
2452
  var rowDefs = [];
2326
2453
  if (this.multiTemplateDataRows) {
2327
- rowDefs = this._rowDefs.filter(function (def) { return !def.when || def.when(dataIndex, data); });
2454
+ rowDefs = this._rowDefs.filter((/**
2455
+ * @param {?} def
2456
+ * @return {?}
2457
+ */
2458
+ function (def) { return !def.when || def.when(dataIndex, data); }));
2328
2459
  }
2329
2460
  else {
2330
2461
  /** @type {?} */
2331
- var rowDef = this._rowDefs.find(function (def) { return def.when && def.when(dataIndex, data); }) || this._defaultRowDef;
2462
+ var rowDef = this._rowDefs.find((/**
2463
+ * @param {?} def
2464
+ * @return {?}
2465
+ */
2466
+ function (def) { return def.when && def.when(dataIndex, data); })) || this._defaultRowDef;
2332
2467
  if (rowDef) {
2333
2468
  rowDefs.push(rowDef);
2334
2469
  }
@@ -2460,14 +2595,18 @@ var CdkTable = /** @class */ (function () {
2460
2595
  if (!rowDef || !rowDef.columns) {
2461
2596
  return [];
2462
2597
  }
2463
- return Array.from(rowDef.columns, function (columnId) {
2598
+ return Array.from(rowDef.columns, (/**
2599
+ * @param {?} columnId
2600
+ * @return {?}
2601
+ */
2602
+ function (columnId) {
2464
2603
  /** @type {?} */
2465
2604
  var column = _this._columnDefsByName.get(columnId);
2466
2605
  if (!column) {
2467
2606
  throw getTableUnknownColumnError(columnId);
2468
2607
  }
2469
2608
  return rowDef.extractCellTemplate(column);
2470
- });
2609
+ }));
2471
2610
  };
2472
2611
  /** Adds native table sections (e.g. tbody) and moves the row outlets into them. */
2473
2612
  /**
@@ -2546,9 +2685,14 @@ var CdkTable = /** @class */ (function () {
2546
2685
  */
2547
2686
  function () {
2548
2687
  /** @type {?} */
2549
- var stickyCheckReducer = function (acc, d) {
2688
+ var stickyCheckReducer = (/**
2689
+ * @param {?} acc
2690
+ * @param {?} d
2691
+ * @return {?}
2692
+ */
2693
+ function (acc, d) {
2550
2694
  return acc || d.hasStickyChanged();
2551
- };
2695
+ });
2552
2696
  // Note that the check needs to occur for every definition since it notifies the definition
2553
2697
  // that it can reset its dirty state. Using another operator like `some` may short-circuit
2554
2698
  // remaining definitions and leave them in an unchecked state.
@@ -2588,10 +2732,14 @@ var CdkTable = /** @class */ (function () {
2588
2732
  this._stickyStyler = new StickyStyler(this._isNativeHtmlTable, this.stickyCssClass, direction, this._platform.isBrowser);
2589
2733
  (this._dir ? this._dir.change : of())
2590
2734
  .pipe(takeUntil(this._onDestroy))
2591
- .subscribe(function (value) {
2735
+ .subscribe((/**
2736
+ * @param {?} value
2737
+ * @return {?}
2738
+ */
2739
+ function (value) {
2592
2740
  _this._stickyStyler.direction = value;
2593
2741
  _this.updateStickyColumnStyles();
2594
- });
2742
+ }));
2595
2743
  };
2596
2744
  CdkTable.decorators = [
2597
2745
  { type: Component, args: [{selector: 'cdk-table, table[cdk-table]',
@@ -2645,7 +2793,172 @@ function mergeQueryListAndSet(queryList, set) {
2645
2793
 
2646
2794
  /**
2647
2795
  * @fileoverview added by tsickle
2648
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2796
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2797
+ */
2798
+ /**
2799
+ * Injection token that can be used to specify the text column options.
2800
+ * @type {?}
2801
+ */
2802
+ var TEXT_COLUMN_OPTIONS = new InjectionToken('text-column-options');
2803
+ /**
2804
+ * Column that simply shows text content for the header and row cells. Assumes that the table
2805
+ * is using the native table implementation (`<table>`).
2806
+ *
2807
+ * By default, the name of this column will be the header text and data property accessor.
2808
+ * The header text can be overridden with the `headerText` input. Cell values can be overridden with
2809
+ * the `dataAccessor` input. Change the text justification to the start or end using the `justify`
2810
+ * input.
2811
+ * @template T
2812
+ */
2813
+ var CdkTextColumn = /** @class */ (function () {
2814
+ function CdkTextColumn(_table, _options) {
2815
+ this._table = _table;
2816
+ this._options = _options;
2817
+ /**
2818
+ * Alignment of the cell values.
2819
+ */
2820
+ this.justify = 'start';
2821
+ this._options = _options || {};
2822
+ }
2823
+ Object.defineProperty(CdkTextColumn.prototype, "name", {
2824
+ /** Column name that should be used to reference this column. */
2825
+ get: /**
2826
+ * Column name that should be used to reference this column.
2827
+ * @return {?}
2828
+ */
2829
+ function () {
2830
+ return this._name;
2831
+ },
2832
+ set: /**
2833
+ * @param {?} name
2834
+ * @return {?}
2835
+ */
2836
+ function (name) {
2837
+ this._name = name;
2838
+ // With Ivy, inputs can be initialized before static query results are
2839
+ // available. In that case, we defer the synchronization until "ngOnInit" fires.
2840
+ this._syncColumnDefName();
2841
+ },
2842
+ enumerable: true,
2843
+ configurable: true
2844
+ });
2845
+ /**
2846
+ * @return {?}
2847
+ */
2848
+ CdkTextColumn.prototype.ngOnInit = /**
2849
+ * @return {?}
2850
+ */
2851
+ function () {
2852
+ this._syncColumnDefName();
2853
+ if (this.headerText === undefined) {
2854
+ this.headerText = this._createDefaultHeaderText();
2855
+ }
2856
+ if (!this.dataAccessor) {
2857
+ this.dataAccessor =
2858
+ this._options.defaultDataAccessor || ((/**
2859
+ * @param {?} data
2860
+ * @param {?} name
2861
+ * @return {?}
2862
+ */
2863
+ function (data, name) { return ((/** @type {?} */ (data)))[name]; }));
2864
+ }
2865
+ if (this._table) {
2866
+ // Provide the cell and headerCell directly to the table with the static `ViewChild` query,
2867
+ // since the columnDef will not pick up its content by the time the table finishes checking
2868
+ // its content and initializing the rows.
2869
+ this.columnDef.cell = this.cell;
2870
+ this.columnDef.headerCell = this.headerCell;
2871
+ this._table.addColumnDef(this.columnDef);
2872
+ }
2873
+ else {
2874
+ throw getTableTextColumnMissingParentTableError();
2875
+ }
2876
+ };
2877
+ /**
2878
+ * @return {?}
2879
+ */
2880
+ CdkTextColumn.prototype.ngOnDestroy = /**
2881
+ * @return {?}
2882
+ */
2883
+ function () {
2884
+ if (this._table) {
2885
+ this._table.removeColumnDef(this.columnDef);
2886
+ }
2887
+ };
2888
+ /**
2889
+ * Creates a default header text. Use the options' header text transformation function if one
2890
+ * has been provided. Otherwise simply capitalize the column name.
2891
+ */
2892
+ /**
2893
+ * Creates a default header text. Use the options' header text transformation function if one
2894
+ * has been provided. Otherwise simply capitalize the column name.
2895
+ * @return {?}
2896
+ */
2897
+ CdkTextColumn.prototype._createDefaultHeaderText = /**
2898
+ * Creates a default header text. Use the options' header text transformation function if one
2899
+ * has been provided. Otherwise simply capitalize the column name.
2900
+ * @return {?}
2901
+ */
2902
+ function () {
2903
+ /** @type {?} */
2904
+ var name = this.name;
2905
+ if (isDevMode() && !name) {
2906
+ throw getTableTextColumnMissingNameError();
2907
+ }
2908
+ if (this._options && this._options.defaultHeaderTextTransform) {
2909
+ return this._options.defaultHeaderTextTransform(name);
2910
+ }
2911
+ return name[0].toUpperCase() + name.slice(1);
2912
+ };
2913
+ /** Synchronizes the column definition name with the text column name. */
2914
+ /**
2915
+ * Synchronizes the column definition name with the text column name.
2916
+ * @private
2917
+ * @return {?}
2918
+ */
2919
+ CdkTextColumn.prototype._syncColumnDefName = /**
2920
+ * Synchronizes the column definition name with the text column name.
2921
+ * @private
2922
+ * @return {?}
2923
+ */
2924
+ function () {
2925
+ if (this.columnDef) {
2926
+ this.columnDef.name = this.name;
2927
+ }
2928
+ };
2929
+ CdkTextColumn.decorators = [
2930
+ { type: Component, args: [{selector: 'cdk-text-column',
2931
+ 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 ",
2932
+ encapsulation: ViewEncapsulation.None,
2933
+ // Change detection is intentionally not set to OnPush. This component's template will be provided
2934
+ // to the table to be inserted into its view. This is problematic when change detection runs since
2935
+ // the bindings in this template will be evaluated _after_ the table's view is evaluated, which
2936
+ // mean's the template in the table's view will not have the updated value (and in fact will cause
2937
+ // an ExpressionChangedAfterItHasBeenCheckedError).
2938
+ // tslint:disable-next-line:validate-decorators
2939
+ changeDetection: ChangeDetectionStrategy.Default,
2940
+ },] },
2941
+ ];
2942
+ /** @nocollapse */
2943
+ CdkTextColumn.ctorParameters = function () { return [
2944
+ { type: CdkTable, decorators: [{ type: Optional }] },
2945
+ { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [TEXT_COLUMN_OPTIONS,] }] }
2946
+ ]; };
2947
+ CdkTextColumn.propDecorators = {
2948
+ name: [{ type: Input }],
2949
+ headerText: [{ type: Input }],
2950
+ dataAccessor: [{ type: Input }],
2951
+ justify: [{ type: Input }],
2952
+ columnDef: [{ type: ViewChild, args: [CdkColumnDef, { static: true },] }],
2953
+ cell: [{ type: ViewChild, args: [CdkCellDef, { static: true },] }],
2954
+ headerCell: [{ type: ViewChild, args: [CdkHeaderCellDef, { static: true },] }]
2955
+ };
2956
+ return CdkTextColumn;
2957
+ }());
2958
+
2959
+ /**
2960
+ * @fileoverview added by tsickle
2961
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2649
2962
  */
2650
2963
  /** @type {?} */
2651
2964
  var EXPORTED_DECLARATIONS = [
@@ -2667,6 +2980,7 @@ var EXPORTED_DECLARATIONS = [
2667
2980
  DataRowOutlet,
2668
2981
  HeaderRowOutlet,
2669
2982
  FooterRowOutlet,
2983
+ CdkTextColumn,
2670
2984
  ];
2671
2985
  var CdkTableModule = /** @class */ (function () {
2672
2986
  function CdkTableModule() {
@@ -2683,13 +2997,13 @@ var CdkTableModule = /** @class */ (function () {
2683
2997
 
2684
2998
  /**
2685
2999
  * @fileoverview added by tsickle
2686
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3000
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2687
3001
  */
2688
3002
 
2689
3003
  /**
2690
3004
  * @fileoverview added by tsickle
2691
- * @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3005
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2692
3006
  */
2693
3007
 
2694
- export { DataRowOutlet, HeaderRowOutlet, FooterRowOutlet, CDK_TABLE_TEMPLATE, CdkTable, CdkCellDef, CdkHeaderCellDef, CdkFooterCellDef, CdkColumnDefBase, _CdkColumnDefBase, CdkColumnDef, BaseCdkCell, CdkHeaderCell, CdkFooterCell, CdkCell, CDK_ROW_TEMPLATE, BaseRowDef, CdkHeaderRowDefBase, _CdkHeaderRowDefBase, CdkHeaderRowDef, CdkFooterRowDefBase, _CdkFooterRowDefBase, CdkFooterRowDef, CdkRowDef, CdkCellOutlet, CdkHeaderRow, CdkFooterRow, CdkRow, CdkTableModule, STICKY_DIRECTIONS, StickyStyler, mixinHasStickyInput };
3008
+ export { DataRowOutlet, HeaderRowOutlet, FooterRowOutlet, CDK_TABLE_TEMPLATE, CdkTable, CdkCellDef, CdkHeaderCellDef, CdkFooterCellDef, CdkColumnDef, BaseCdkCell, CdkHeaderCell, CdkFooterCell, CdkCell, CDK_ROW_TEMPLATE, BaseRowDef, CdkHeaderRowDef, CdkFooterRowDef, CdkRowDef, CdkCellOutlet, CdkHeaderRow, CdkFooterRow, CdkRow, CdkTableModule, STICKY_DIRECTIONS, StickyStyler, mixinHasStickyInput, TEXT_COLUMN_OPTIONS, CdkTextColumn };
2695
3009
  //# sourceMappingURL=table.es5.js.map