http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/90759b86/node_modules/@angular/cdk/esm2015/table.js ---------------------------------------------------------------------- diff --git a/node_modules/@angular/cdk/esm2015/table.js b/node_modules/@angular/cdk/esm2015/table.js new file mode 100644 index 0000000..0e63bcd --- /dev/null +++ b/node_modules/@angular/cdk/esm2015/table.js @@ -0,0 +1,775 @@ +/** + * @license + * Copyright Google Inc. All Rights Reserved. + * + * Use of this source code is governed by an MIT-style license that can be + * found in the LICENSE file at https://angular.io/license + */ +import { Attribute, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ContentChildren, Directive, ElementRef, Input, IterableDiffers, NgModule, Renderer2, TemplateRef, ViewChild, ViewContainerRef, ViewEncapsulation, isDevMode } from '@angular/core'; +import { takeUntil } from 'rxjs/operator/takeUntil'; +import { BehaviorSubject } from 'rxjs/BehaviorSubject'; +import { Subject } from 'rxjs/Subject'; +import { CommonModule } from '@angular/common'; +import { DataSource } from '@angular/cdk/collections'; + +/** + * The row template that can be used by the mat-table. Should not be used outside of the + * material library. + */ +const CDK_ROW_TEMPLATE = `<ng-container cdkCellOutlet></ng-container>`; +/** + * Base class for the CdkHeaderRowDef and CdkRowDef that handles checking their columns inputs + * for changes and notifying the table. + * @abstract + */ +class BaseRowDef { + /** + * @param {?} template + * @param {?} _differs + */ + constructor(template, _differs) { + this.template = template; + this._differs = _differs; + } + /** + * @param {?} changes + * @return {?} + */ + ngOnChanges(changes) { + // Create a new columns differ if one does not yet exist. Initialize it based on initial value + // of the columns property or an empty array if none is provided. + const /** @type {?} */ columns = changes['columns'].currentValue || []; + if (!this._columnsDiffer) { + this._columnsDiffer = this._differs.find(columns).create(); + this._columnsDiffer.diff(columns); + } + } + /** + * Returns the difference between the current columns and the columns from the last diff, or null + * if there is no difference. + * @return {?} + */ + getColumnsDiff() { + return this._columnsDiffer.diff(this.columns); + } +} +/** + * Header row definition for the CDK table. + * Captures the header row's template and other header properties such as the columns to display. + */ +class CdkHeaderRowDef extends BaseRowDef { + /** + * @param {?} template + * @param {?} _differs + */ + constructor(template, _differs) { + super(template, _differs); + } +} +CdkHeaderRowDef.decorators = [ + { type: Directive, args: [{ + selector: '[cdkHeaderRowDef]', + inputs: ['columns: cdkHeaderRowDef'], + },] }, +]; +/** + * @nocollapse + */ +CdkHeaderRowDef.ctorParameters = () => [ + { type: TemplateRef, }, + { type: IterableDiffers, }, +]; +/** + * Data row definition for the CDK table. + * Captures the header row's template and other row properties such as the columns to display and + * a when predicate that describes when this row should be used. + */ +class CdkRowDef extends BaseRowDef { + /** + * @param {?} template + * @param {?} _differs + */ + constructor(template, _differs) { + super(template, _differs); + } +} +CdkRowDef.decorators = [ + { type: Directive, args: [{ + selector: '[cdkRowDef]', + inputs: ['columns: cdkRowDefColumns', 'when: cdkRowDefWhen'], + },] }, +]; +/** + * @nocollapse + */ +CdkRowDef.ctorParameters = () => [ + { type: TemplateRef, }, + { type: IterableDiffers, }, +]; +/** + * Outlet for rendering cells inside of a row or header row. + * \@docs-private + */ +class CdkCellOutlet { + /** + * @param {?} _viewContainer + */ + constructor(_viewContainer) { + this._viewContainer = _viewContainer; + CdkCellOutlet.mostRecentCellOutlet = this; + } +} +CdkCellOutlet.decorators = [ + { type: Directive, args: [{ selector: '[cdkCellOutlet]' },] }, +]; +/** + * @nocollapse + */ +CdkCellOutlet.ctorParameters = () => [ + { type: ViewContainerRef, }, +]; +/** + * Header template container that contains the cell outlet. Adds the right class and role. + */ +class CdkHeaderRow { +} +CdkHeaderRow.decorators = [ + { type: Component, args: [{selector: 'cdk-header-row', + template: CDK_ROW_TEMPLATE, + host: { + 'class': 'cdk-header-row', + 'role': 'row', + }, + changeDetection: ChangeDetectionStrategy.OnPush, + encapsulation: ViewEncapsulation.None, + preserveWhitespaces: false, + },] }, +]; +/** + * @nocollapse + */ +CdkHeaderRow.ctorParameters = () => []; +/** + * Data row template container that contains the cell outlet. Adds the right class and role. + */ +class CdkRow { +} +CdkRow.decorators = [ + { type: Component, args: [{selector: 'cdk-row', + template: CDK_ROW_TEMPLATE, + host: { + 'class': 'cdk-row', + 'role': 'row', + }, + changeDetection: ChangeDetectionStrategy.OnPush, + encapsulation: ViewEncapsulation.None, + preserveWhitespaces: false, + },] }, +]; +/** + * @nocollapse + */ +CdkRow.ctorParameters = () => []; + +/** + * Cell definition for a CDK table. + * Captures the template of a column's data row cell as well as cell-specific properties. + */ +class CdkCellDef { + /** + * @param {?} template + */ + constructor(template) { + this.template = template; + } +} +CdkCellDef.decorators = [ + { type: Directive, args: [{ selector: '[cdkCellDef]' },] }, +]; +/** + * @nocollapse + */ +CdkCellDef.ctorParameters = () => [ + { type: TemplateRef, }, +]; +/** + * Header cell definition for a CDK table. + * Captures the template of a column's header cell and as well as cell-specific properties. + */ +class CdkHeaderCellDef { + /** + * @param {?} template + */ + constructor(template) { + this.template = template; + } +} +CdkHeaderCellDef.decorators = [ + { type: Directive, args: [{ selector: '[cdkHeaderCellDef]' },] }, +]; +/** + * @nocollapse + */ +CdkHeaderCellDef.ctorParameters = () => [ + { type: TemplateRef, }, +]; +/** + * Column definition for the CDK table. + * Defines a set of cells available for a table column. + */ +class CdkColumnDef { + /** + * Unique name for this column. + * @return {?} + */ + get name() { return this._name; } + /** + * @param {?} name + * @return {?} + */ + set name(name) { + this._name = name; + this.cssClassFriendlyName = name.replace(/[^a-z0-9_-]/ig, '-'); + } +} +CdkColumnDef.decorators = [ + { type: Directive, args: [{ selector: '[cdkColumnDef]' },] }, +]; +/** + * @nocollapse + */ +CdkColumnDef.ctorParameters = () => []; +CdkColumnDef.propDecorators = { + 'name': [{ type: Input, args: ['cdkColumnDef',] },], + 'cell': [{ type: ContentChild, args: [CdkCellDef,] },], + 'headerCell': [{ type: ContentChild, args: [CdkHeaderCellDef,] },], +}; +/** + * Header cell template container that adds the right classes and role. + */ +class CdkHeaderCell { + /** + * @param {?} columnDef + * @param {?} elementRef + * @param {?} renderer + */ + constructor(columnDef, elementRef, renderer) { + renderer.addClass(elementRef.nativeElement, `cdk-column-${columnDef.cssClassFriendlyName}`); + } +} +CdkHeaderCell.decorators = [ + { type: Directive, args: [{ + selector: 'cdk-header-cell', + host: { + 'class': 'cdk-header-cell', + 'role': 'columnheader', + }, + },] }, +]; +/** + * @nocollapse + */ +CdkHeaderCell.ctorParameters = () => [ + { type: CdkColumnDef, }, + { type: ElementRef, }, + { type: Renderer2, }, +]; +/** + * Cell template container that adds the right classes and role. + */ +class CdkCell { + /** + * @param {?} columnDef + * @param {?} elementRef + * @param {?} renderer + */ + constructor(columnDef, elementRef, renderer) { + renderer.addClass(elementRef.nativeElement, `cdk-column-${columnDef.cssClassFriendlyName}`); + } +} +CdkCell.decorators = [ + { type: Directive, args: [{ + selector: 'cdk-cell', + host: { + 'class': 'cdk-cell', + 'role': 'gridcell', + }, + },] }, +]; +/** + * @nocollapse + */ +CdkCell.ctorParameters = () => [ + { type: CdkColumnDef, }, + { type: ElementRef, }, + { type: Renderer2, }, +]; + +/** + * Returns an error to be thrown when attempting to find an unexisting column. + * \@docs-private + * @param {?} id Id whose lookup failed. + * @return {?} + */ +function getTableUnknownColumnError(id) { + return Error(`cdk-table: Could not find column with id "${id}".`); +} +/** + * Returns an error to be thrown when two column definitions have the same name. + * \@docs-private + * @param {?} name + * @return {?} + */ +function getTableDuplicateColumnNameError(name) { + return Error(`cdk-table: Duplicate column definition name provided: "${name}".`); +} +/** + * Returns an error to be thrown when there are multiple rows that are missing a when function. + * \@docs-private + * @return {?} + */ +function getTableMultipleDefaultRowDefsError() { + return Error(`cdk-table: There can only be one default row without a when predicate function.`); +} +/** + * Returns an error to be thrown when there are no matching row defs for a particular set of data. + * \@docs-private + * @return {?} + */ +function getTableMissingMatchingRowDefError() { + return Error(`cdk-table: Could not find a matching row definition for the provided row data.`); +} + +/** + * Provides a handle for the table to grab the view container's ng-container to insert data rows. + * \@docs-private + */ +class RowPlaceholder { + /** + * @param {?} viewContainer + */ + constructor(viewContainer) { + this.viewContainer = viewContainer; + } +} +RowPlaceholder.decorators = [ + { type: Directive, args: [{ selector: '[rowPlaceholder]' },] }, +]; +/** + * @nocollapse + */ +RowPlaceholder.ctorParameters = () => [ + { type: ViewContainerRef, }, +]; +/** + * Provides a handle for the table to grab the view container's ng-container to insert the header. + * \@docs-private + */ +class HeaderRowPlaceholder { + /** + * @param {?} viewContainer + */ + constructor(viewContainer) { + this.viewContainer = viewContainer; + } +} +HeaderRowPlaceholder.decorators = [ + { type: Directive, args: [{ selector: '[headerRowPlaceholder]' },] }, +]; +/** + * @nocollapse + */ +HeaderRowPlaceholder.ctorParameters = () => [ + { type: ViewContainerRef, }, +]; +/** + * The table template that can be used by the mat-table. Should not be used outside of the + * material library. + */ +const CDK_TABLE_TEMPLATE = ` + <ng-container headerRowPlaceholder></ng-container> + <ng-container rowPlaceholder></ng-container>`; +/** + * A data table that connects with a data source to retrieve data of type `T` and renders + * a header row and data rows. Updates the rows when new data is provided by the data source. + */ +class CdkTable { + /** + * @param {?} _differs + * @param {?} _changeDetectorRef + * @param {?} elementRef + * @param {?} renderer + * @param {?} role + */ + constructor(_differs, _changeDetectorRef, elementRef, renderer, role) { + this._differs = _differs; + this._changeDetectorRef = _changeDetectorRef; + /** + * Subject that emits when the component has been destroyed. + */ + this._onDestroy = new Subject(); + /** + * Latest data provided by the data source through the connect interface. + */ + this._data = []; + /** + * Map of all the user's defined columns (header and data cell template) identified by name. + */ + this._columnDefsByName = new Map(); + /** + * Stream containing the latest information on what rows are being displayed on screen. + * Can be used by the data source to as a heuristic of what data should be provided. + */ + this.viewChange = new BehaviorSubject({ start: 0, end: Number.MAX_VALUE }); + if (!role) { + renderer.setAttribute(elementRef.nativeElement, 'role', 'grid'); + } + } + /** + * Tracking function that will be used to check the differences in data changes. Used similarly + * to `ngFor` `trackBy` function. Optimize row operations by identifying a row based on its data + * relative to the function to know if a row should be added/removed/moved. + * Accepts a function that takes two parameters, `index` and `item`. + * @param {?} fn + * @return {?} + */ + set trackBy(fn) { + if (isDevMode() && + fn != null && typeof fn !== 'function' && (console) && (console.warn)) { + console.warn(`trackBy must be a function, but received ${JSON.stringify(fn)}.`); + } + this._trackByFn = fn; + } + /** + * @return {?} + */ + get trackBy() { return this._trackByFn; } + /** + * Provides a stream containing the latest data array to render. Influenced by the table's + * stream of view window (what rows are currently on screen). + * @return {?} + */ + get dataSource() { return this._dataSource; } + /** + * @param {?} dataSource + * @return {?} + */ + set dataSource(dataSource) { + if (this._dataSource !== dataSource) { + this._switchDataSource(dataSource); + } + } + /** + * @return {?} + */ + ngOnInit() { + // TODO(andrewseguin): Setup a listener for scrolling, emit the calculated view to viewChange + this._dataDiffer = this._differs.find([]).create(this._trackByFn); + } + /** + * @return {?} + */ + ngAfterContentInit() { + this._cacheColumnDefsByName(); + this._columnDefs.changes.subscribe(() => this._cacheColumnDefsByName()); + this._renderHeaderRow(); + } + /** + * @return {?} + */ + ngAfterContentChecked() { + this._renderUpdatedColumns(); + const /** @type {?} */ defaultRowDefs = this._rowDefs.filter(def => !def.when); + if (defaultRowDefs.length > 1) { + throw getTableMultipleDefaultRowDefsError(); + } + this._defaultRowDef = defaultRowDefs[0]; + if (this.dataSource && !this._renderChangeSubscription) { + this._observeRenderChanges(); + } + } + /** + * @return {?} + */ + ngOnDestroy() { + this._rowPlaceholder.viewContainer.clear(); + this._headerRowPlaceholder.viewContainer.clear(); + this._onDestroy.next(); + this._onDestroy.complete(); + if (this.dataSource) { + this.dataSource.disconnect(this); + } + } + /** + * Update the map containing the content's column definitions. + * @return {?} + */ + _cacheColumnDefsByName() { + this._columnDefsByName.clear(); + this._columnDefs.forEach(columnDef => { + if (this._columnDefsByName.has(columnDef.name)) { + throw getTableDuplicateColumnNameError(columnDef.name); + } + this._columnDefsByName.set(columnDef.name, columnDef); + }); + } + /** + * Check if the header or rows have changed what columns they want to display. If there is a diff, + * then re-render that section. + * @return {?} + */ + _renderUpdatedColumns() { + // Re-render the rows when the row definition columns change. + this._rowDefs.forEach(def => { + if (!!def.getColumnsDiff()) { + // Reset the data to an empty array so that renderRowChanges will re-render all new rows. + this._dataDiffer.diff([]); + this._rowPlaceholder.viewContainer.clear(); + this._renderRowChanges(); + } + }); + // Re-render the header row if there is a difference in its columns. + if (this._headerDef.getColumnsDiff()) { + this._headerRowPlaceholder.viewContainer.clear(); + this._renderHeaderRow(); + } + } + /** + * Switch to the provided data source by resetting the data and unsubscribing from the current + * render change subscription if one exists. If the data source is null, interpret this by + * clearing the row placeholder. Otherwise start listening for new data. + * @param {?} dataSource + * @return {?} + */ + _switchDataSource(dataSource) { + this._data = []; + if (this.dataSource) { + this.dataSource.disconnect(this); + } + // Stop listening for data from the previous data source. + if (this._renderChangeSubscription) { + this._renderChangeSubscription.unsubscribe(); + this._renderChangeSubscription = null; + } + // Remove the table's rows if there is now no data source + if (!dataSource) { + this._rowPlaceholder.viewContainer.clear(); + } + this._dataSource = dataSource; + } + /** + * Set up a subscription for the data provided by the data source. + * @return {?} + */ + _observeRenderChanges() { + this._renderChangeSubscription = takeUntil.call(this.dataSource.connect(this), this._onDestroy) + .subscribe(data => { + this._data = data; + this._renderRowChanges(); + }); + } + /** + * Create the embedded view for the header template and place it in the header row view container. + * @return {?} + */ + _renderHeaderRow() { + const /** @type {?} */ cells = this._getHeaderCellTemplatesForRow(this._headerDef); + if (!cells.length) { + return; + } + // TODO(andrewseguin): add some code to enforce that exactly + // one CdkCellOutlet was instantiated as a result + // of `createEmbeddedView`. + this._headerRowPlaceholder.viewContainer + .createEmbeddedView(this._headerDef.template, { cells }); + cells.forEach(cell => { + CdkCellOutlet.mostRecentCellOutlet._viewContainer.createEmbeddedView(cell.template, {}); + }); + this._changeDetectorRef.markForCheck(); + } + /** + * Check for changes made in the data and render each change (row added/removed/moved). + * @return {?} + */ + _renderRowChanges() { + const /** @type {?} */ changes = this._dataDiffer.diff(this._data); + if (!changes) { + return; + } + const /** @type {?} */ viewContainer = this._rowPlaceholder.viewContainer; + changes.forEachOperation((item, adjustedPreviousIndex, currentIndex) => { + if (item.previousIndex == null) { + this._insertRow(this._data[currentIndex], currentIndex); + } + else if (currentIndex == null) { + viewContainer.remove(adjustedPreviousIndex); + } + else { + const /** @type {?} */ view = viewContainer.get(adjustedPreviousIndex); + viewContainer.move(/** @type {?} */ ((view)), currentIndex); + } + }); + this._updateRowContext(); + } + /** + * Finds the matching row definition that should be used for this row data. If there is only + * one row definition, it is returned. Otherwise, find the row definition that has a when + * predicate that returns true with the data. If none return true, return the default row + * definition. + * @param {?} data + * @param {?} i + * @return {?} + */ + _getRowDef(data, i) { + if (this._rowDefs.length == 1) { + return this._rowDefs.first; + } + let /** @type {?} */ rowDef = this._rowDefs.find(def => def.when && def.when(data, i)) || this._defaultRowDef; + if (!rowDef) { + throw getTableMissingMatchingRowDefError(); + } + return rowDef; + } + /** + * Create the embedded view for the data row template and place it in the correct index location + * within the data row view container. + * @param {?} rowData + * @param {?} index + * @return {?} + */ + _insertRow(rowData, index) { + const /** @type {?} */ row = this._getRowDef(rowData, index); + // Row context that will be provided to both the created embedded row view and its cells. + const /** @type {?} */ context = { $implicit: rowData }; + // TODO(andrewseguin): add some code to enforce that exactly one + // CdkCellOutlet was instantiated as a result of `createEmbeddedView`. + this._rowPlaceholder.viewContainer.createEmbeddedView(row.template, context, index); + // Insert empty cells if there is no data to improve rendering time. + const /** @type {?} */ cells = rowData ? this._getCellTemplatesForRow(row) : []; + cells.forEach(cell => { + CdkCellOutlet.mostRecentCellOutlet._viewContainer.createEmbeddedView(cell.template, context); + }); + this._changeDetectorRef.markForCheck(); + } + /** + * Updates the context for each row to reflect any data changes that may have caused + * rows to be added, removed, or moved. The view container contains the same context + * that was provided to each of its cells. + * @return {?} + */ + _updateRowContext() { + const /** @type {?} */ viewContainer = this._rowPlaceholder.viewContainer; + for (let /** @type {?} */ index = 0, /** @type {?} */ count = viewContainer.length; index < count; index++) { + const /** @type {?} */ viewRef = (viewContainer.get(index)); + viewRef.context.index = index; + viewRef.context.count = count; + viewRef.context.first = index === 0; + viewRef.context.last = index === count - 1; + viewRef.context.even = index % 2 === 0; + viewRef.context.odd = !viewRef.context.even; + } + } + /** + * Returns the cell template definitions to insert into the header + * as defined by its list of columns to display. + * @param {?} headerDef + * @return {?} + */ + _getHeaderCellTemplatesForRow(headerDef) { + if (!headerDef.columns) { + return []; + } + return headerDef.columns.map(columnId => { + const /** @type {?} */ column = this._columnDefsByName.get(columnId); + if (!column) { + throw getTableUnknownColumnError(columnId); + } + return column.headerCell; + }); + } + /** + * Returns the cell template definitions to insert in the provided row + * as defined by its list of columns to display. + * @param {?} rowDef + * @return {?} + */ + _getCellTemplatesForRow(rowDef) { + if (!rowDef.columns) { + return []; + } + return rowDef.columns.map(columnId => { + const /** @type {?} */ column = this._columnDefsByName.get(columnId); + if (!column) { + throw getTableUnknownColumnError(columnId); + } + return column.cell; + }); + } +} +CdkTable.decorators = [ + { type: Component, args: [{selector: 'cdk-table', + exportAs: 'cdkTable', + template: CDK_TABLE_TEMPLATE, + host: { + 'class': 'cdk-table', + }, + encapsulation: ViewEncapsulation.None, + preserveWhitespaces: false, + changeDetection: ChangeDetectionStrategy.OnPush, + },] }, +]; +/** + * @nocollapse + */ +CdkTable.ctorParameters = () => [ + { type: IterableDiffers, }, + { type: ChangeDetectorRef, }, + { type: ElementRef, }, + { type: Renderer2, }, + { type: undefined, decorators: [{ type: Attribute, args: ['role',] },] }, +]; +CdkTable.propDecorators = { + 'trackBy': [{ type: Input },], + 'dataSource': [{ type: Input },], + '_rowPlaceholder': [{ type: ViewChild, args: [RowPlaceholder,] },], + '_headerRowPlaceholder': [{ type: ViewChild, args: [HeaderRowPlaceholder,] },], + '_columnDefs': [{ type: ContentChildren, args: [CdkColumnDef,] },], + '_headerDef': [{ type: ContentChild, args: [CdkHeaderRowDef,] },], + '_rowDefs': [{ type: ContentChildren, args: [CdkRowDef,] },], +}; + +const EXPORTED_DECLARATIONS = [ + CdkTable, + CdkRowDef, + CdkCellDef, + CdkCellOutlet, + CdkHeaderCellDef, + CdkColumnDef, + CdkCell, + CdkRow, + CdkHeaderCell, + CdkHeaderRow, + CdkHeaderRowDef, + RowPlaceholder, + HeaderRowPlaceholder, +]; +class CdkTableModule { +} +CdkTableModule.decorators = [ + { type: NgModule, args: [{ + imports: [CommonModule], + exports: [EXPORTED_DECLARATIONS], + declarations: [EXPORTED_DECLARATIONS] + },] }, +]; +/** + * @nocollapse + */ +CdkTableModule.ctorParameters = () => []; + +/** + * Generated bundle index. Do not edit. + */ + +export { DataSource, RowPlaceholder, HeaderRowPlaceholder, CDK_TABLE_TEMPLATE, CdkTable, CdkCellDef, CdkHeaderCellDef, CdkColumnDef, CdkHeaderCell, CdkCell, CDK_ROW_TEMPLATE, BaseRowDef, CdkHeaderRowDef, CdkRowDef, CdkCellOutlet, CdkHeaderRow, CdkRow, CdkTableModule }; +//# sourceMappingURL=table.js.map
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/90759b86/node_modules/@angular/cdk/esm2015/table.js.map ---------------------------------------------------------------------- diff --git a/node_modules/@angular/cdk/esm2015/table.js.map b/node_modules/@angular/cdk/esm2015/table.js.map new file mode 100644 index 0000000..1fc542c --- /dev/null +++ b/node_modules/@angular/cdk/esm2015/table.js.map @@ -0,0 +1 @@ +{"version":3,"file":"table.js","sources":["../../packages/cdk/table/row.js","../../packages/cdk/table/cell.js","../../packages/cdk/table/table-errors.js","../../packages/cdk/table/table.js","../../packages/cdk/table/table-module.js","../../packages/cdk/table/index.js"],"sourcesContent":["/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { ChangeDetectionStrategy, Component, Directive, IterableDiffers, TemplateRef, ViewContainerRef, ViewEncapsulation, } from '@angular/core';\n/**\n * The row template that can be used by the mat-table. Should not be used outside of the\n * material library.\n */\nexport const CDK_ROW_TEMPLATE = `<ng-container cdkCellOutlet></ng-container>`;\n/**\n * Base class for the CdkHeaderRowDef and CdkRowDef that handles checking their columns inputs\n * for changes and notifying the table.\n * @ab stract\n */\nexport class BaseRowDef {\n /**\n * @param {?} template\n * @param {?} _differs\n */\n constructor(template, _differs) {\n this.template = template;\n this._differs = _differs;\n }\n /**\n * @param {?} changes\n * @return {?}\n */\n ngOnChanges(changes) {\n // Create a new columns differ if one does not yet exist. Initialize it based on initial value\n // of the columns property or an empty array if none is provided.\n const /** @type {?} */ columns = changes['columns'].currentValue || [];\n if (!this._columnsDiffer) {\n this._columnsDiffer = this._differs.find(columns).create();\n this._columnsDiffer.diff(columns);\n }\n }\n /**\n * Returns the difference between the current columns and the columns from the last diff, or null\n * if there is no difference.\n * @return {?}\n */\n getColumnsDiff() {\n return this._columnsDiffer.dif f(this.columns);\n }\n}\nfunction BaseRowDef_tsickle_Closure_declarations() {\n /**\n * The columns to be displayed on this row.\n * @type {?}\n */\n BaseRowDef.prototype.columns;\n /**\n * Differ used to check if any changes were made to the columns.\n * @type {?}\n */\n BaseRowDef.prototype._columnsDiffer;\n /** @type {?} */\n BaseRowDef.prototype.template;\n /** @type {?} */\n BaseRowDef.prototype._differs;\n}\n/**\n * Header row definition for the CDK table.\n * Captures the header row's template and other header properties such as the columns to display.\n */\nexport class CdkHeaderRowDef extends BaseRowDef {\n /**\n * @param {?} template\n * @param {?} _differs\n */\n constructor(template, _differs) {\n super(template, _differs);\n }\n}\nCdkHeaderRowDef.decorators = [\n { type: Directive, args: [{\n selector: '[cdkHeaderRowDef]',\n inputs: ['columns: cdkHeaderRowDef' ],\n },] },\n];\n/**\n * @nocollapse\n */\nCdkHeaderRowDef.ctorParameters = () => [\n { type: TemplateRef, },\n { type: IterableDiffers, },\n];\nfunction CdkHeaderRowDef_tsickle_Closure_declarations() {\n /** @type {?} */\n CdkHeaderRowDef.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n CdkHeaderRowDef.ctorParameters;\n}\n/**\n * Data row definition for the CDK table.\n * Captures the header row's template and other row properties such as the columns to display and\n * a when predicate that describes when this row should be used.\n */\nexport class CdkRowDef extends BaseRowDef {\n /**\n * @param {?} template\n * @param {?} _differs\n */\n constructor(template, _differs) {\n super(template, _differs);\n }\n}\nCdkRowDef.decorators = [\n { type: Directive, args: [{\n selector: '[cdkRowDef]',\n inputs: ['columns: cdkRowDefColumns', 'when: cdkRowDefWhen'],\n },] },\n];\ n/**\n * @nocollapse\n */\nCdkRowDef.ctorParameters = () => [\n { type: TemplateRef, },\n { type: IterableDiffers, },\n];\nfunction CdkRowDef_tsickle_Closure_declarations() {\n /** @type {?} */\n CdkRowDef.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n CdkRowDef.ctorParameters;\n /**\n * Function that should return true if this row template should be used for the provided row data\n * and index. If left undefined, this row will be considered the default row template to use when\n * no other when functions return true for the data.\n * For every row, there must be at least one when function that passes or an undefined to default.\n * @type {?}\n */\n CdkRowDef.prototype.when;\n}\n/**\n * Outlet for rendering cells inside of a row or header row.\n * \\@docs-private\n */\nexport class CdkCellOutlet {\n /**\n * @param {?} _viewContainer\n */\n constructor(_viewContainer) {\n this._viewContainer = _v iewContainer;\n CdkCellOutlet.mostRecentCellOutlet = this;\n }\n}\nCdkCellOutlet.decorators = [\n { type: Directive, args: [{ selector: '[cdkCellOutlet]' },] },\n];\n/**\n * @nocollapse\n */\nCdkCellOutlet.ctorParameters = () => [\n { type: ViewContainerRef, },\n];\nfunction CdkCellOutlet_tsickle_Closure_declarations() {\n /**\n * Static property containing the latest constructed instance of this class.\n * Used by the CDK table when each CdkHeaderRow and CdkRow component is created using\n * createEmbeddedView. After one of these components are created, this property will provide\n * a handle to provide that component's cells and context. After init, the CdkCellOutlet will\n * construct the cells with the provided context.\n * @type {?}\n */\n CdkCellOutlet.mostRecentCellOutlet;\n /** @type {?} */\n CdkCellOutlet.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n CdkCellOutlet.ctorParameters;\n /**\n * The ordered list of cells to render within this outlet's view container\n * @type {?}\n */\n CdkCellOutlet.prototype.cells;\n /**\n * The data context to be provided to each cell\n * @type {?}\n */\n CdkCellOutlet.prototype.context;\n /** @type {?} */\n CdkCellOutlet.prototype._viewContainer;\n}\n/**\n * Header template container that contains the cell outlet. Adds the right class and role.\n */\nexport class CdkHeaderRow {\n}\nCdkHeaderRow.decorators = [\n { type: Component, args: [{selector: 'cdk-header-row',\n template: CDK_ROW_TEMPLATE,\n host: {\n 'class': 'cdk-header-row',\n 'role': 'row',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n preserveWhitespaces: false,\n },] },\n];\n/**\n * @nocollapse\n */\nCdkHeaderRow.ctorParameters = () => [];\nfunc tion CdkHeaderRow_tsickle_Closure_declarations() {\n /** @type {?} */\n CdkHeaderRow.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n CdkHeaderRow.ctorParameters;\n}\n/**\n * Data row template container that contains the cell outlet. Adds the right class and role.\n */\nexport class CdkRow {\n}\nCdkRow.decorators = [\n { type: Component, args: [{selector: 'cdk-row',\n template: CDK_ROW_TEMPLATE,\n host: {\n 'class': 'cdk-row',\n 'role': 'row',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n preserveWhitespaces: false,\n },] },\n];\n/**\n * @nocollapse\n */\nCdkRow.ctorParameters = () => [];\nfunction CdkRow_tsickle_Closure_declarations() {\n /** @type {?} */\n CdkRow.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n CdkRow.ctorParamete rs;\n}\n//# sourceMappingURL=row.js.map","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { ContentChild, Directive, ElementRef, Input, Renderer2, TemplateRef } from '@angular/core';\n/**\n * Cell definition for a CDK table.\n * Captures the template of a column's data row cell as well as cell-specific properties.\n */\nexport class CdkCellDef {\n /**\n * @param {?} template\n */\n constructor(template) {\n this.template = template;\n }\n}\nCdkCellDef.decorators = [\n { type: Directive, args: [{ selector: '[cdkCellDef]' },] },\n];\n/**\n * @nocollapse\n */\nCdkCellDef.ctorParameters = () => [\n { type: TemplateRef, },\n];\nfunction CdkCellDef_tsickle_Closure_declarations() {\n /** @type {?} */\n CdkCellDef.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n Cdk CellDef.ctorParameters;\n /** @type {?} */\n CdkCellDef.prototype.template;\n}\n/**\n * Header cell definition for a CDK table.\n * Captures the template of a column's header cell and as well as cell-specific properties.\n */\nexport class CdkHeaderCellDef {\n /**\n * @param {?} template\n */\n constructor(template) {\n this.template = template;\n }\n}\nCdkHeaderCellDef.decorators = [\n { type: Directive, args: [{ selector: '[cdkHeaderCellDef]' },] },\n];\n/**\n * @nocollapse\n */\nCdkHeaderCellDef.ctorParameters = () => [\n { type: TemplateRef, },\n];\nfunction CdkHeaderCellDef_tsickle_Closure_declarations() {\n /** @type {?} */\n CdkHeaderCellDef.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n CdkHeaderCellDef.ctorParameters;\n /** @type {?} */\n CdkHeaderCellDef.prototype.template;\n}\n/**\n * Column definition for the CDK table.\n * Defines a set of cells available for a table column.\n */\nexport class Cdk ColumnDef {\n /**\n * Unique name for this column.\n * @return {?}\n */\n get name() { return this._name; }\n /**\n * @param {?} name\n * @return {?}\n */\n set name(name) {\n this._name = name;\n this.cssClassFriendlyName = name.replace(/[^a-z0-9_-]/ig, '-');\n }\n}\nCdkColumnDef.decorators = [\n { type: Directive, args: [{ selector: '[cdkColumnDef]' },] },\n];\n/**\n * @nocollapse\n */\nCdkColumnDef.ctorParameters = () => [];\nCdkColumnDef.propDecorators = {\n 'name': [{ type: Input, args: ['cdkColumnDef',] },],\n 'cell': [{ type: ContentChild, args: [CdkCellDef,] },],\n 'headerCell': [{ type: ContentChild, args: [CdkHeaderCellDef,] },],\n};\nfunction CdkColumnDef_tsickle_Closure_declarations() {\n /** @type {?} */\n CdkColumnDef.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n CdkColumnDef.ctorParameters;\n /** @type {?} */\n CdkColumnDef.propDecorators;\n /** @type {?} */\n CdkColumnDef.prototype._name;\n /**\n * \\@docs-private\n * @type {?}\n */\n CdkColumnDef.prototype.cell;\n /**\n * \\@docs-private\n * @type {?}\n */\n CdkColumnDef.prototype.headerCell;\n /**\n * Transformed version of the column name that can be used as part of a CSS classname. Excludes\n * all non-alphanumeric characters and the special characters '-' and '_'. Any characters that\n * do not match are replaced by the '-' character.\n * @type {?}\n */\n CdkColumnDef.prototype.cssClassFriendlyName;\n}\n/**\n * Header cell template container that adds the right classes and role.\n */\nexport class CdkHeaderCell {\n /**\n * @param {?} columnDef\n * @param {?} elementRef\n * @param {?} renderer\n */\n constructor(columnDef, elementRef, renderer) {\n renderer.addClass(elementRef.nativeElement, `cdk-column-${columnDef.cssClassFriendlyName}`);\n }\n}\nCdkHeaderCell.decorators = [\n { type: D irective, args: [{\n selector: 'cdk-header-cell',\n host: {\n 'class': 'cdk-header-cell',\n 'role': 'columnheader',\n },\n },] },\n];\n/**\n * @nocollapse\n */\nCdkHeaderCell.ctorParameters = () => [\n { type: CdkColumnDef, },\n { type: ElementRef, },\n { type: Renderer2, },\n];\nfunction CdkHeaderCell_tsickle_Closure_declarations() {\n /** @type {?} */\n CdkHeaderCell.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n CdkHeaderCell.ctorParameters;\n}\n/**\n * Cell template container that adds the right classes and role.\n */\nexport class CdkCell {\n /**\n * @param {?} columnDef\n * @param {?} elementRef\n * @param {?} renderer\n */\n constructor(columnDef, elementRef, renderer) {\n renderer.addClass(elementRef.nativeElement, `cdk-column-${columnDef.cssClassFriendlyName}`);\n }\n}\nCdkCell.decorators = [\n { type: Dire ctive, args: [{\n selector: 'cdk-cell',\n host: {\n 'class': 'cdk-cell',\n 'role': 'gridcell',\n },\n },] },\n];\n/**\n * @nocollapse\n */\nCdkCell.ctorParameters = () => [\n { type: CdkColumnDef, },\n { type: ElementRef, },\n { type: Renderer2, },\n];\nfunction CdkCell_tsickle_Closure_declarations() {\n /** @type {?} */\n CdkCell.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n CdkCell.ctorParameters;\n}\n//# sourceMappingURL=cell.js.map","/**\n * Returns an error to be thrown when attempting to find an unexisting column.\n * \\@docs-private\n * @param {?} id Id whose lookup failed.\n * @return {?}\n */\nexport function getTableUnknownColumnError(id) {\n return Error(`cdk-table: Could not find column with id \"${id}\".`);\n}\n/**\n * Returns an error to be thrown when two column definitions have the same name.\n * \\@docs-private\n * @param {?} nam e\n * @return {?}\n */\nexport function getTableDuplicateColumnNameError(name) {\n return Error(`cdk-table: Duplicate column definition name provided: \"${name}\".`);\n}\n/**\n * Returns an error to be thrown when there are multiple rows that are missing a when function.\n * \\@docs-private\n * @return {?}\n */\nexport function getTableMultipleDefaultRowDefsError() {\n return Error(`cdk-table: There can only be one default row without a when predicate function.`);\n}\n/**\n * Returns an error to be thrown when there are no matching row defs for a particular set of data.\n * \\@docs-private\n * @return {?}\n */\nexport function getTableMissingMatchingRowDefError() {\n return Error(`cdk-table: Could not find a matching row definition for the provided row data.`);\n}\n//# sourceMappingURL=table-errors.js.map","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { Attribute, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ContentChildren, Directive, ElementRef, Input, isDevMode, IterableDiffers, Renderer2, ViewChild, ViewContainerRef, ViewEncapsulation, } from '@angular/core';\nimport { CdkCellOutlet, CdkHeaderRowDef, CdkRowDef } from './row';\nimport { takeUntil } from 'rxjs/operator/takeUntil';\nimport { BehaviorSubject } from 'rxjs/BehaviorSubject';\nimport { Subject } from 'rxjs/Subject';\nimport { CdkColumnDef } from './cell';\nimport { getTableDuplicateColumnNameError, getTableMissingMatchingRowDefError, getTableMultipleDefaultRowDefsError, getTableUnknownColumnError } from './table-errors';\n/**\n * Provides a handle for the table to grab the view container's ng-container to insert data rows.\n * \\@docs-private\n */\nexport class RowPlaceholder {\n /**\n * @param {?} viewContainer\n */\n constructor(viewContainer) {\n this.viewContainer = viewC ontainer;\n }\n}\nRowPlaceholder.decorators = [\n { type: Directive, args: [{ selector: '[rowPlaceholder]' },] },\n];\n/**\n * @nocollapse\n */\nRowPlaceholder.ctorParameters = () => [\n { type: ViewContainerRef, },\n];\nfunction RowPlaceholder_tsickle_Closure_declarations() {\n /** @type {?} */\n RowPlaceholder.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n RowPlaceholder.ctorParameters;\n /** @type {?} */\n RowPlaceholder.prototype.viewContainer;\n}\n/**\n * Provides a handle for the table to grab the view container's ng-container to insert the header.\n * \\@docs-private\n */\nexport class HeaderRowPlaceholder {\n /**\n * @param {?} viewContainer\n */\n constructor(viewContainer) {\n this.viewContainer = viewContainer;\n }\n}\nHeaderRowPlaceholder.decorators = [\n { type: Directive, args: [{ selector: '[headerRowPlaceholder]' },] },\n];\n/**\n * @nocollapse\n */\nHeaderRowPlaceholder.ctorParameters = () => [\n { type: ViewContainerRef, },\n];\nfunction HeaderRowPlaceholder_tsickle_Closure_declarations() {\n /** @type {?} */\n HeaderRowPlaceholder.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n HeaderRowPlaceholder.ctorParameters;\n /** @type {?} */\n HeaderRowPlaceholder.prototype.viewContainer;\n}\n/**\n * The table template that can be used by the mat-table. Should not be used outside of the\n * material library.\n */\nexport const CDK_TABLE_TEMPLATE = `\n <ng-container headerRowPlaceholder></ng-container>\n <ng-container rowPlaceholder></ng-container>`;\n/**\n * A data table that connects with a data source to retrieve data of type `T` and renders\n * a header row and data rows. Updates the rows when new data is provided by the data source.\n */\nexport class CdkTable {\n /**\n * @param {?} _differs\n * @param {?} _changeDetectorRef\n * @param {?} elementRef\n * @param {?} renderer\n * @param {?} role\n */\n co nstructor(_differs, _changeDetectorRef, elementRef, renderer, role) {\n this._differs = _differs;\n this._changeDetectorRef = _changeDetectorRef;\n /**\n * Subject that emits when the component has been destroyed.\n */\n this._onDestroy = new Subject();\n /**\n * Latest data provided by the data source through the connect interface.\n */\n this._data = [];\n /**\n * Map of all the user's defined columns (header and data cell template) identified by name.\n */\n this._columnDefsByName = new Map();\n /**\n * Stream containing the latest information on what rows are being displayed on screen.\n * Can be used by the data source to as a heuristic of what data should be provided.\n */\n this.viewChange = new BehaviorSubject({ start: 0, end: Number.MAX_VALUE });\n if (!role) {\n renderer.setAttribute(elementRef.nativeElement, 'role' , 'grid');\n }\n }\n /**\n * Tracking function that will be used to check the differences in data changes. Used similarly\n * to `ngFor` `trackBy` function. Optimize row operations by identifying a row based on its data\n * relative to the function to know if a row should be added/removed/moved.\n * Accepts a function that takes two parameters, `index` and `item`.\n * @param {?} fn\n * @return {?}\n */\n set trackBy(fn) {\n if (isDevMode() &&\n fn != null && typeof fn !== 'function' && (console) && (console.warn)) {\n console.warn(`trackBy must be a function, but received ${JSON.stringify(fn)}.`);\n }\n this._trackByFn = fn;\n }\n /**\n * @return {?}\n */\n get trackBy() { return this._trackByFn; }\n /**\n * Provides a stream containing the latest data array to render. Influenced by the table's\n * stream of view window (what rows are currently on screen).\n * @retu rn {?}\n */\n get dataSource() { return this._dataSource; }\n /**\n * @param {?} dataSource\n * @return {?}\n */\n set dataSource(dataSource) {\n if (this._dataSource !== dataSource) {\n this._switchDataSource(dataSource);\n }\n }\n /**\n * @return {?}\n */\n ngOnInit() {\n // TODO(andrewseguin): Setup a listener for scrolling, emit the calculated view to viewChange\n this._dataDiffer = this._differs.find([]).create(this._trackByFn);\n }\n /**\n * @return {?}\n */\n ngAfterContentInit() {\n this._cacheColumnDefsByName();\n this._columnDefs.changes.subscribe(() => this._cacheColumnDefsByName());\n this._renderHeaderRow();\n }\n /**\n * @return {?}\n */\n ngAfterContentChecked() {\n this._renderUpdatedColumns();\n const /** @type {?} */ defaultRowDefs = this._rowDefs.filter(def => !def.when);\n if (defaultRowDefs.length > 1) {\n throw getTableMultipleDefaultRowDefsError();\n }\n this._defaultRowDef = defaultRowDefs[0];\n if (this.dataSource && !this._renderChangeSubscription) {\n this._observeRenderChanges();\n }\n }\n /**\n * @return {?}\n */\n ngOnDestroy() {\n this._rowPlaceholder.viewContainer.clear();\n this._headerRowPlaceholder.viewContainer.clear();\n this._onDestroy.next();\n this._onDestroy.complete();\n if (this.dataSource) {\n this.dataSource.disconnect(this);\n }\n }\n /**\n * Update the map containing the content's column definitions.\n * @return {?}\n */\n _cacheColumnDefsByName() {\n this._columnDefsByName.clear();\n this._columnDefs.forEach(columnDef => {\n if (this._columnDefsByName.has(columnDef.name)) {\n throw getTableDuplicateColumnNameError(columnDef.name);\n }\n this._columnDefsByName. set(columnDef.name, columnDef);\n });\n }\n /**\n * Check if the header or rows have changed what columns they want to display. If there is a diff,\n * then re-render that section.\n * @return {?}\n */\n _renderUpdatedColumns() {\n // Re-render the rows when the row definition columns change.\n this._rowDefs.forEach(def => {\n if (!!def.getColumnsDiff()) {\n // Reset the data to an empty array so that renderRowChanges will re-render all new rows.\n this._dataDiffer.diff([]);\n this._rowPlaceholder.viewContainer.clear();\n this._renderRowChanges();\n }\n });\n // Re-render the header row if there is a difference in its columns.\n if (this._headerDef.getColumnsDiff()) {\n this._headerRowPlaceholder.viewContainer.clear();\n this._renderHeaderRow();\n }\n }\n /**\n * Switch to the provided data source by resetting the data and unsubscribing from the current\n * render change subscription if one exists. If the data source is null, interpret this by\n * clearing the row placeholder. Otherwise start listening for new data.\n * @param {?} dataSource\n * @return {?}\n */\n _switchDataSource(dataSource) {\n this._data = [];\n if (this.dataSource) {\n this.dataSource.disconnect(this);\n }\n // Stop listening for data from the previous data source.\n if (this._renderChangeSubscription) {\n this._renderChangeSubscription.unsubscribe();\n this._renderChangeSubscription = null;\n }\n // Remove the table's rows if there is now no data source\n if (!dataSource) {\n this._rowPlaceholder.viewContainer.clear();\n }\n this._dataSource = dataSource;\n }\n /**\n * Set up a subscription for the data provided by the data source.\n * @return {?}\n * /\n _observeRenderChanges() {\n this._renderChangeSubscription = takeUntil.call(this.dataSource.connect(this), this._onDestroy)\n .subscribe(data => {\n this._data = data;\n this._renderRowChanges();\n });\n }\n /**\n * Create the embedded view for the header template and place it in the header row view container.\n * @return {?}\n */\n _renderHeaderRow() {\n const /** @type {?} */ cells = this._getHeaderCellTemplatesForRow(this._headerDef);\n if (!cells.length) {\n return;\n }\n // TODO(andrewseguin): add some code to enforce that exactly\n // one CdkCellOutlet was instantiated as a result\n // of `createEmbeddedView`.\n this._headerRowPlaceholder.viewContainer\n .createEmbeddedView(this._headerDef.template, { cells });\n cells.forEach(cell => {\n CdkCellOutlet.mostRecentCellOutlet._viewContainer.createEmbeddedView(cell. template, {});\n });\n this._changeDetectorRef.markForCheck();\n }\n /**\n * Check for changes made in the data and render each change (row added/removed/moved).\n * @return {?}\n */\n _renderRowChanges() {\n const /** @type {?} */ changes = this._dataDiffer.diff(this._data);\n if (!changes) {\n return;\n }\n const /** @type {?} */ viewContainer = this._rowPlaceholder.viewContainer;\n changes.forEachOperation((item, adjustedPreviousIndex, currentIndex) => {\n if (item.previousIndex == null) {\n this._insertRow(this._data[currentIndex], currentIndex);\n }\n else if (currentIndex == null) {\n viewContainer.remove(adjustedPreviousIndex);\n }\n else {\n const /** @type {?} */ view = viewContainer.get(adjustedPreviousIndex);\n viewContainer.move(/** @type {?} */ ((view)), currentIndex);\n }\n });\n this._updateRowContext();\n }\n /**\n * Finds the matching row definition that should be used for this row data. If there is only\n * one row definition, it is returned. Otherwise, find the row definition that has a when\n * predicate that returns true with the data. If none return true, return the default row\n * definition.\n * @param {?} data\n * @param {?} i\n * @return {?}\n */\n _getRowDef(data, i) {\n if (this._rowDefs.length == 1) {\n return this._rowDefs.first;\n }\n let /** @type {?} */ rowDef = this._rowDefs.find(def => def.when && def.when(data, i)) || this._defaultRowDef;\n if (!rowDef) {\n throw getTableMissingMatchingRowDefError();\n }\n return rowDef;\n }\n /**\n * Create the embedded view for the data row template and place it in the correct index location\n * within the data row view container.\n * @param {?} rowDat a\n * @param {?} index\n * @return {?}\n */\n _insertRow(rowData, index) {\n const /** @type {?} */ row = this._getRowDef(rowData, index);\n // Row context that will be provided to both the created embedded row view and its cells.\n const /** @type {?} */ context = { $implicit: rowData };\n // TODO(andrewseguin): add some code to enforce that exactly one\n // CdkCellOutlet was instantiated as a result of `createEmbeddedView`.\n this._rowPlaceholder.viewContainer.createEmbeddedView(row.template, context, index);\n // Insert empty cells if there is no data to improve rendering time.\n const /** @type {?} */ cells = rowData ? this._getCellTemplatesForRow(row) : [];\n cells.forEach(cell => {\n CdkCellOutlet.mostRecentCellOutlet._viewContainer.createEmbeddedView(cell.template, context);\n });\n this._changeDetectorRef.markForCheck();\n }\n /**\n * Updates the context for ea ch row to reflect any data changes that may have caused\n * rows to be added, removed, or moved. The view container contains the same context\n * that was provided to each of its cells.\n * @return {?}\n */\n _updateRowContext() {\n const /** @type {?} */ viewContainer = this._rowPlaceholder.viewContainer;\n for (let /** @type {?} */ index = 0, /** @type {?} */ count = viewContainer.length; index < count; index++) {\n const /** @type {?} */ viewRef = (viewContainer.get(index));\n viewRef.context.index = index;\n viewRef.context.count = count;\n viewRef.context.first = index === 0;\n viewRef.context.last = index === count - 1;\n viewRef.context.even = index % 2 === 0;\n viewRef.context.odd = !viewRef.context.even;\n }\n }\n /**\n * Returns the cell template definitions to insert into the header\n * as defined by its list of columns to display.\n * @pa ram {?} headerDef\n * @return {?}\n */\n _getHeaderCellTemplatesForRow(headerDef) {\n if (!headerDef.columns) {\n return [];\n }\n return headerDef.columns.map(columnId => {\n const /** @type {?} */ column = this._columnDefsByName.get(columnId);\n if (!column) {\n throw getTableUnknownColumnError(columnId);\n }\n return column.headerCell;\n });\n }\n /**\n * Returns the cell template definitions to insert in the provided row\n * as defined by its list of columns to display.\n * @param {?} rowDef\n * @return {?}\n */\n _getCellTemplatesForRow(rowDef) {\n if (!rowDef.columns) {\n return [];\n }\n return rowDef.columns.map(columnId => {\n const /** @type {?} */ column = this._columnDefsByName.get(columnId);\n if (!column) {\n throw getTableUnknownColumnError(columnId);\n }\n return column.cell;\n });\n }\n}\nCdkTable.decorators = [\n { type: Component, args: [{selector: 'cdk-table',\n exportAs: 'cdkTable',\n template: CDK_TABLE_TEMPLATE,\n host: {\n 'class': 'cdk-table',\n },\n encapsulation: ViewEncapsulation.None,\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n },] },\n];\n/**\n * @nocollapse\n */\nCdkTable.ctorParameters = () => [\n { type: IterableDiffers, },\n { type: ChangeDetectorRef, },\n { type: ElementRef, },\n { type: Renderer2, },\n { type: undefined, decorators: [{ type: Attribute, args: ['role',] },] },\n];\nCdkTable.propDecorators = {\n 'trackBy': [{ type: Input },],\n 'dataSource': [{ type: Input },],\n '_rowPlaceholder': [{ type: ViewChild, args: [RowPlaceholder,] },],\n '_headerRowPlaceholder': [{ type: ViewChild, args: [HeaderRowPlaceholder,] },],\n '_columnDefs': [{ type: ContentChildren, args: [CdkColumnDef,] },],\n '_headerDef': [{ type: ContentChild, args: [CdkHeaderRowDef,] },],\n '_rowDefs': [{ type: ContentChildren, args: [CdkRowDef,] },],\n};\nfunction CdkTable_tsickle_Closure_declarations() {\n /** @type {?} */\n CdkTable.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n CdkTable.ctorParameters;\n /** @type {?} */\n CdkTable.propDecorators;\n /**\n * Subject that emits when the component has been destroyed.\n * @type {?}\n */\n CdkTable.prototype._onDestroy;\n /**\n * Latest data provided by the data source through the connect interface.\n * @type {?}\n */\n CdkTable.prototype._data;\n /**\n * Subscription that listens for the data provided by the data source.\n * @type {?}\n */\n CdkTable.prototype._renderChangeSubscription;\n /**\n * Map of all the user's defined columns (heade r and data cell template) identified by name.\n * @type {?}\n */\n CdkTable.prototype._columnDefsByName;\n /**\n * Differ used to find the changes in the data provided by the data source.\n * @type {?}\n */\n CdkTable.prototype._dataDiffer;\n /**\n * Stores the row definition that does not have a when predicate.\n * @type {?}\n */\n CdkTable.prototype._defaultRowDef;\n /** @type {?} */\n CdkTable.prototype._trackByFn;\n /** @type {?} */\n CdkTable.prototype._dataSource;\n /**\n * Stream containing the latest information on what rows are being displayed on screen.\n * Can be used by the data source to as a heuristic of what data should be provided.\n * @type {?}\n */\n CdkTable.prototype.viewChange;\n /** @type {?} */\n CdkTable.prototype._rowPlaceholder;\n /** @type {?} */\n CdkTable.prototype._headerRowPlaceholder;\n /**\n * The column definitions provided by the user that contain wh at the header and cells should\n * render for each column.\n * @type {?}\n */\n CdkTable.prototype._columnDefs;\n /**\n * Template definition used as the header container.\n * @type {?}\n */\n CdkTable.prototype._headerDef;\n /**\n * Set of template definitions that used as the data row containers.\n * @type {?}\n */\n CdkTable.prototype._rowDefs;\n /** @type {?} */\n CdkTable.prototype._differs;\n /** @type {?} */\n CdkTable.prototype._changeDetectorRef;\n}\n//# sourceMappingURL=table.js.map","/**\n * @license\n * Copyright Google Inc. All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license\n */\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { HeaderRowPlaceholder, RowPlaceholder, CdkTable } from './table';\nimport { CdkCellOutlet, CdkHeaderRow, CdkHeaderRowDef, Cd kRow, CdkRowDef } from './row';\nimport { CdkColumnDef, CdkHeaderCellDef, CdkHeaderCell, CdkCell, CdkCellDef } from './cell';\nconst /** @type {?} */ EXPORTED_DECLARATIONS = [\n CdkTable,\n CdkRowDef,\n CdkCellDef,\n CdkCellOutlet,\n CdkHeaderCellDef,\n CdkColumnDef,\n CdkCell,\n CdkRow,\n CdkHeaderCell,\n CdkHeaderRow,\n CdkHeaderRowDef,\n RowPlaceholder,\n HeaderRowPlaceholder,\n];\nexport class CdkTableModule {\n}\nCdkTableModule.decorators = [\n { type: NgModule, args: [{\n imports: [CommonModule],\n exports: [EXPORTED_DECLARATIONS],\n declarations: [EXPORTED_DECLARATIONS]\n },] },\n];\n/**\n * @nocollapse\n */\nCdkTableModule.ctorParameters = () => [];\nfunction CdkTableModule_tsickle_Closure_declarations() {\n /** @type {?} */\n CdkTableModule.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n CdkTableModule.ctorParameters;\n}\n//# sourceMappingURL=tabl e-module.js.map","/**\n * Generated bundle index. Do not edit.\n */\nexport { DataSource, RowPlaceholder, HeaderRowPlaceholder, CDK_TABLE_TEMPLATE, CdkTable, CdkCellDef, CdkHeaderCellDef, CdkColumnDef, CdkHeaderCell, CdkCell, CDK_ROW_TEMPLATE, BaseRowDef, CdkHeaderRowDef, CdkRowDef, CdkCellOutlet, CdkHeaderRow, CdkRow, CdkTableModule } from './public-api';\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;;;;;;;;;;AAQA;;;;AAIA,AAAO,MAAM,gBAAgB,GAAG,CAAC,2CAA2C,CAAC,CAAC;;;;;;AAM9E,AAAO,MAAM,UAAU,CAAC;;;;;IAKpB,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE;QAC5B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;KAC5B;;;;;IAKD,WAAW,CAAC,OAAO,EAAE;;;QAGjB,uBAAuB,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,YAAY,IAAI,EAAE,CAAC;QACvE,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;YACtB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;YAC3D,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;SACrC;KACJ;;;;;;IAMD,cAAc,GAAG;QACb,OAAO,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO, CAAC,CAAC;KACjD;CACJ;AACD,AAgBA;;;;AAIA,AAAO,MAAM,eAAe,SAAS,UAAU,CAAC;;;;;IAK5C,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE;QAC5B,KA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