http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/90759b86/node_modules/@angular/cdk/bundles/cdk-table.umd.js ---------------------------------------------------------------------- diff --git a/node_modules/@angular/cdk/bundles/cdk-table.umd.js b/node_modules/@angular/cdk/bundles/cdk-table.umd.js new file mode 100644 index 0000000..fade3fa --- /dev/null +++ b/node_modules/@angular/cdk/bundles/cdk-table.umd.js @@ -0,0 +1,859 @@ +/** + * @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 + */ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs/operator/takeUntil'), require('rxjs/BehaviorSubject'), require('rxjs/Subject'), require('@angular/common'), require('@angular/cdk/collections')) : + typeof define === 'function' && define.amd ? define(['exports', '@angular/core', 'rxjs/operator/takeUntil', 'rxjs/BehaviorSubject', 'rxjs/Subject', '@angular/common', '@angular/cdk/collections'], factory) : + (factory((global.ng = global.ng || {}, global.ng.cdk = global.ng.cdk || {}, global.ng.cdk.table = global.ng.cdk.table || {}),global.ng.core,global.Rx.Observable.prototype,global.Rx,global.Rx,global.ng.common,global.ng.cdk.collections)); +}(this, (function (exports,_angular_core,rxjs_operator_takeUntil,rxjs_BehaviorSubject,rxjs_Subject,_angular_common,_angular_cdk_collections) { 'use strict'; + +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ +/* global Reflect, Promise */ + +var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + +function __extends(d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +} + +/** + * The row template that can be used by the mat-table. Should not be used outside of the + * material library. + */ +var 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 + */ +var BaseRowDef = (function () { + /** + * @param {?} template + * @param {?} _differs + */ + function BaseRowDef(template, _differs) { + this.template = template; + this._differs = _differs; + } + /** + * @param {?} changes + * @return {?} + */ + BaseRowDef.prototype.ngOnChanges = function (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. + var /** @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 {?} + */ + BaseRowDef.prototype.getColumnsDiff = function () { + return this._columnsDiffer.diff(this.columns); + }; + return BaseRowDef; +}()); +/** + * Header row definition for the CDK table. + * Captures the header row's template and other header properties such as the columns to display. + */ +var CdkHeaderRowDef = (function (_super) { + __extends(CdkHeaderRowDef, _super); + /** + * @param {?} template + * @param {?} _differs + */ + function CdkHeaderRowDef(template, _differs) { + return _super.call(this, template, _differs) || this; + } + CdkHeaderRowDef.decorators = [ + { type: _angular_core.Directive, args: [{ + selector: '[cdkHeaderRowDef]', + inputs: ['columns: cdkHeaderRowDef'], + },] }, + ]; + /** + * @nocollapse + */ + CdkHeaderRowDef.ctorParameters = function () { return [ + { type: _angular_core.TemplateRef, }, + { type: _angular_core.IterableDiffers, }, + ]; }; + return CdkHeaderRowDef; +}(BaseRowDef)); +/** + * 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. + */ +var CdkRowDef = (function (_super) { + __extends(CdkRowDef, _super); + /** + * @param {?} template + * @param {?} _differs + */ + function CdkRowDef(template, _differs) { + return _super.call(this, template, _differs) || this; + } + CdkRowDef.decorators = [ + { type: _angular_core.Directive, args: [{ + selector: '[cdkRowDef]', + inputs: ['columns: cdkRowDefColumns', 'when: cdkRowDefWhen'], + },] }, + ]; + /** + * @nocollapse + */ + CdkRowDef.ctorParameters = function () { return [ + { type: _angular_core.TemplateRef, }, + { type: _angular_core.IterableDiffers, }, + ]; }; + return CdkRowDef; +}(BaseRowDef)); +/** + * Outlet for rendering cells inside of a row or header row. + * \@docs-private + */ +var CdkCellOutlet = (function () { + /** + * @param {?} _viewContainer + */ + function CdkCellOutlet(_viewContainer) { + this._viewContainer = _viewContainer; + CdkCellOutlet.mostRecentCellOutlet = this; + } + CdkCellOutlet.decorators = [ + { type: _angular_core.Directive, args: [{ selector: '[cdkCellOutlet]' },] }, + ]; + /** + * @nocollapse + */ + CdkCellOutlet.ctorParameters = function () { return [ + { type: _angular_core.ViewContainerRef, }, + ]; }; + return CdkCellOutlet; +}()); +/** + * Header template container that contains the cell outlet. Adds the right class and role. + */ +var CdkHeaderRow = (function () { + function CdkHeaderRow() { + } + CdkHeaderRow.decorators = [ + { type: _angular_core.Component, args: [{selector: 'cdk-header-row', + template: CDK_ROW_TEMPLATE, + host: { + 'class': 'cdk-header-row', + 'role': 'row', + }, + changeDetection: _angular_core.ChangeDetectionStrategy.OnPush, + encapsulation: _angular_core.ViewEncapsulation.None, + preserveWhitespaces: false, + },] }, + ]; + /** + * @nocollapse + */ + CdkHeaderRow.ctorParameters = function () { return []; }; + return CdkHeaderRow; +}()); +/** + * Data row template container that contains the cell outlet. Adds the right class and role. + */ +var CdkRow = (function () { + function CdkRow() { + } + CdkRow.decorators = [ + { type: _angular_core.Component, args: [{selector: 'cdk-row', + template: CDK_ROW_TEMPLATE, + host: { + 'class': 'cdk-row', + 'role': 'row', + }, + changeDetection: _angular_core.ChangeDetectionStrategy.OnPush, + encapsulation: _angular_core.ViewEncapsulation.None, + preserveWhitespaces: false, + },] }, + ]; + /** + * @nocollapse + */ + CdkRow.ctorParameters = function () { return []; }; + return CdkRow; +}()); + +/** + * Cell definition for a CDK table. + * Captures the template of a column's data row cell as well as cell-specific properties. + */ +var CdkCellDef = (function () { + /** + * @param {?} template + */ + function CdkCellDef(template) { + this.template = template; + } + CdkCellDef.decorators = [ + { type: _angular_core.Directive, args: [{ selector: '[cdkCellDef]' },] }, + ]; + /** + * @nocollapse + */ + CdkCellDef.ctorParameters = function () { return [ + { type: _angular_core.TemplateRef, }, + ]; }; + return CdkCellDef; +}()); +/** + * Header cell definition for a CDK table. + * Captures the template of a column's header cell and as well as cell-specific properties. + */ +var CdkHeaderCellDef = (function () { + /** + * @param {?} template + */ + function CdkHeaderCellDef(template) { + this.template = template; + } + CdkHeaderCellDef.decorators = [ + { type: _angular_core.Directive, args: [{ selector: '[cdkHeaderCellDef]' },] }, + ]; + /** + * @nocollapse + */ + CdkHeaderCellDef.ctorParameters = function () { return [ + { type: _angular_core.TemplateRef, }, + ]; }; + return CdkHeaderCellDef; +}()); +/** + * Column definition for the CDK table. + * Defines a set of cells available for a table column. + */ +var CdkColumnDef = (function () { + function CdkColumnDef() { + } + Object.defineProperty(CdkColumnDef.prototype, "name", { + /** + * Unique name for this column. + * @return {?} + */ + get: function () { return this._name; }, + /** + * @param {?} name + * @return {?} + */ + set: function (name) { + this._name = name; + this.cssClassFriendlyName = name.replace(/[^a-z0-9_-]/ig, '-'); + }, + enumerable: true, + configurable: true + }); + CdkColumnDef.decorators = [ + { type: _angular_core.Directive, args: [{ selector: '[cdkColumnDef]' },] }, + ]; + /** + * @nocollapse + */ + CdkColumnDef.ctorParameters = function () { return []; }; + CdkColumnDef.propDecorators = { + 'name': [{ type: _angular_core.Input, args: ['cdkColumnDef',] },], + 'cell': [{ type: _angular_core.ContentChild, args: [CdkCellDef,] },], + 'headerCell': [{ type: _angular_core.ContentChild, args: [CdkHeaderCellDef,] },], + }; + return CdkColumnDef; +}()); +/** + * Header cell template container that adds the right classes and role. + */ +var CdkHeaderCell = (function () { + /** + * @param {?} columnDef + * @param {?} elementRef + * @param {?} renderer + */ + function CdkHeaderCell(columnDef, elementRef, renderer) { + renderer.addClass(elementRef.nativeElement, "cdk-column-" + columnDef.cssClassFriendlyName); + } + CdkHeaderCell.decorators = [ + { type: _angular_core.Directive, args: [{ + selector: 'cdk-header-cell', + host: { + 'class': 'cdk-header-cell', + 'role': 'columnheader', + }, + },] }, + ]; + /** + * @nocollapse + */ + CdkHeaderCell.ctorParameters = function () { return [ + { type: CdkColumnDef, }, + { type: _angular_core.ElementRef, }, + { type: _angular_core.Renderer2, }, + ]; }; + return CdkHeaderCell; +}()); +/** + * Cell template container that adds the right classes and role. + */ +var CdkCell = (function () { + /** + * @param {?} columnDef + * @param {?} elementRef + * @param {?} renderer + */ + function CdkCell(columnDef, elementRef, renderer) { + renderer.addClass(elementRef.nativeElement, "cdk-column-" + columnDef.cssClassFriendlyName); + } + CdkCell.decorators = [ + { type: _angular_core.Directive, args: [{ + selector: 'cdk-cell', + host: { + 'class': 'cdk-cell', + 'role': 'gridcell', + }, + },] }, + ]; + /** + * @nocollapse + */ + CdkCell.ctorParameters = function () { return [ + { type: CdkColumnDef, }, + { type: _angular_core.ElementRef, }, + { type: _angular_core.Renderer2, }, + ]; }; + return CdkCell; +}()); + +/** + * 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 + */ +var RowPlaceholder = (function () { + /** + * @param {?} viewContainer + */ + function RowPlaceholder(viewContainer) { + this.viewContainer = viewContainer; + } + RowPlaceholder.decorators = [ + { type: _angular_core.Directive, args: [{ selector: '[rowPlaceholder]' },] }, + ]; + /** + * @nocollapse + */ + RowPlaceholder.ctorParameters = function () { return [ + { type: _angular_core.ViewContainerRef, }, + ]; }; + return RowPlaceholder; +}()); +/** + * Provides a handle for the table to grab the view container's ng-container to insert the header. + * \@docs-private + */ +var HeaderRowPlaceholder = (function () { + /** + * @param {?} viewContainer + */ + function HeaderRowPlaceholder(viewContainer) { + this.viewContainer = viewContainer; + } + HeaderRowPlaceholder.decorators = [ + { type: _angular_core.Directive, args: [{ selector: '[headerRowPlaceholder]' },] }, + ]; + /** + * @nocollapse + */ + HeaderRowPlaceholder.ctorParameters = function () { return [ + { type: _angular_core.ViewContainerRef, }, + ]; }; + return HeaderRowPlaceholder; +}()); +/** + * The table template that can be used by the mat-table. Should not be used outside of the + * material library. + */ +var CDK_TABLE_TEMPLATE = "\n <ng-container headerRowPlaceholder></ng-container>\n <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. + */ +var CdkTable = (function () { + /** + * @param {?} _differs + * @param {?} _changeDetectorRef + * @param {?} elementRef + * @param {?} renderer + * @param {?} role + */ + function CdkTable(_differs, _changeDetectorRef, elementRef, renderer, role) { + this._differs = _differs; + this._changeDetectorRef = _changeDetectorRef; + /** + * Subject that emits when the component has been destroyed. + */ + this._onDestroy = new rxjs_Subject.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 rxjs_BehaviorSubject.BehaviorSubject({ start: 0, end: Number.MAX_VALUE }); + if (!role) { + renderer.setAttribute(elementRef.nativeElement, 'role', 'grid'); + } + } + Object.defineProperty(CdkTable.prototype, "trackBy", { + /** + * @return {?} + */ + get: function () { return this._trackByFn; }, + /** + * 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: function (fn) { + if (_angular_core.isDevMode() && + fn != null && typeof fn !== 'function' && (console) && (console.warn)) { + console.warn("trackBy must be a function, but received " + JSON.stringify(fn) + "."); + } + this._trackByFn = fn; + }, + enumerable: true, + configurable: true + }); + Object.defineProperty(CdkTable.prototype, "dataSource", { + /** + * 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: function () { return this._dataSource; }, + /** + * @param {?} dataSource + * @return {?} + */ + set: function (dataSource) { + if (this._dataSource !== dataSource) { + this._switchDataSource(dataSource); + } + }, + enumerable: true, + configurable: true + }); + /** + * @return {?} + */ + CdkTable.prototype.ngOnInit = function () { + // TODO(andrewseguin): Setup a listener for scrolling, emit the calculated view to viewChange + this._dataDiffer = this._differs.find([]).create(this._trackByFn); + }; + /** + * @return {?} + */ + CdkTable.prototype.ngAfterContentInit = function () { + var _this = this; + this._cacheColumnDefsByName(); + this._columnDefs.changes.subscribe(function () { return _this._cacheColumnDefsByName(); }); + this._renderHeaderRow(); + }; + /** + * @return {?} + */ + CdkTable.prototype.ngAfterContentChecked = function () { + this._renderUpdatedColumns(); + var /** @type {?} */ defaultRowDefs = this._rowDefs.filter(function (def) { return !def.when; }); + if (defaultRowDefs.length > 1) { + throw getTableMultipleDefaultRowDefsError(); + } + this._defaultRowDef = defaultRowDefs[0]; + if (this.dataSource && !this._renderChangeSubscription) { + this._observeRenderChanges(); + } + }; + /** + * @return {?} + */ + CdkTable.prototype.ngOnDestroy = function () { + 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 {?} + */ + CdkTable.prototype._cacheColumnDefsByName = function () { + var _this = this; + this._columnDefsByName.clear(); + this._columnDefs.forEach(function (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 {?} + */ + CdkTable.prototype._renderUpdatedColumns = function () { + var _this = this; + // Re-render the rows when the row definition columns change. + this._rowDefs.forEach(function (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 {?} + */ + CdkTable.prototype._switchDataSource = function (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 {?} + */ + CdkTable.prototype._observeRenderChanges = function () { + var _this = this; + this._renderChangeSubscription = rxjs_operator_takeUntil.takeUntil.call(this.dataSource.connect(this), this._onDestroy) + .subscribe(function (data) { + _this._data = data; + _this._renderRowChanges(); + }); + }; + /** + * Create the embedded view for the header template and place it in the header row view container. + * @return {?} + */ + CdkTable.prototype._renderHeaderRow = function () { + var /** @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 }); + cells.forEach(function (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 {?} + */ + CdkTable.prototype._renderRowChanges = function () { + var _this = this; + var /** @type {?} */ changes = this._dataDiffer.diff(this._data); + if (!changes) { + return; + } + var /** @type {?} */ viewContainer = this._rowPlaceholder.viewContainer; + changes.forEachOperation(function (item, adjustedPreviousIndex, currentIndex) { + if (item.previousIndex == null) { + _this._insertRow(_this._data[currentIndex], currentIndex); + } + else if (currentIndex == null) { + viewContainer.remove(adjustedPreviousIndex); + } + else { + var /** @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 {?} + */ + CdkTable.prototype._getRowDef = function (data, i) { + if (this._rowDefs.length == 1) { + return this._rowDefs.first; + } + var /** @type {?} */ rowDef = this._rowDefs.find(function (def) { return 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 {?} + */ + CdkTable.prototype._insertRow = function (rowData, index) { + var /** @type {?} */ row = this._getRowDef(rowData, index); + // Row context that will be provided to both the created embedded row view and its cells. + var /** @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. + var /** @type {?} */ cells = rowData ? this._getCellTemplatesForRow(row) : []; + cells.forEach(function (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 {?} + */ + CdkTable.prototype._updateRowContext = function () { + var /** @type {?} */ viewContainer = this._rowPlaceholder.viewContainer; + for (var /** @type {?} */ index = 0, /** @type {?} */ count = viewContainer.length; index < count; index++) { + var /** @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 {?} + */ + CdkTable.prototype._getHeaderCellTemplatesForRow = function (headerDef) { + var _this = this; + if (!headerDef.columns) { + return []; + } + return headerDef.columns.map(function (columnId) { + var /** @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 {?} + */ + CdkTable.prototype._getCellTemplatesForRow = function (rowDef) { + var _this = this; + if (!rowDef.columns) { + return []; + } + return rowDef.columns.map(function (columnId) { + var /** @type {?} */ column = _this._columnDefsByName.get(columnId); + if (!column) { + throw getTableUnknownColumnError(columnId); + } + return column.cell; + }); + }; + CdkTable.decorators = [ + { type: _angular_core.Component, args: [{selector: 'cdk-table', + exportAs: 'cdkTable', + template: CDK_TABLE_TEMPLATE, + host: { + 'class': 'cdk-table', + }, + encapsulation: _angular_core.ViewEncapsulation.None, + preserveWhitespaces: false, + changeDetection: _angular_core.ChangeDetectionStrategy.OnPush, + },] }, + ]; + /** + * @nocollapse + */ + CdkTable.ctorParameters = function () { return [ + { type: _angular_core.IterableDiffers, }, + { type: _angular_core.ChangeDetectorRef, }, + { type: _angular_core.ElementRef, }, + { type: _angular_core.Renderer2, }, + { type: undefined, decorators: [{ type: _angular_core.Attribute, args: ['role',] },] }, + ]; }; + CdkTable.propDecorators = { + 'trackBy': [{ type: _angular_core.Input },], + 'dataSource': [{ type: _angular_core.Input },], + '_rowPlaceholder': [{ type: _angular_core.ViewChild, args: [RowPlaceholder,] },], + '_headerRowPlaceholder': [{ type: _angular_core.ViewChild, args: [HeaderRowPlaceholder,] },], + '_columnDefs': [{ type: _angular_core.ContentChildren, args: [CdkColumnDef,] },], + '_headerDef': [{ type: _angular_core.ContentChild, args: [CdkHeaderRowDef,] },], + '_rowDefs': [{ type: _angular_core.ContentChildren, args: [CdkRowDef,] },], + }; + return CdkTable; +}()); + +var EXPORTED_DECLARATIONS = [ + CdkTable, + CdkRowDef, + CdkCellDef, + CdkCellOutlet, + CdkHeaderCellDef, + CdkColumnDef, + CdkCell, + CdkRow, + CdkHeaderCell, + CdkHeaderRow, + CdkHeaderRowDef, + RowPlaceholder, + HeaderRowPlaceholder, +]; +var CdkTableModule = (function () { + function CdkTableModule() { + } + CdkTableModule.decorators = [ + { type: _angular_core.NgModule, args: [{ + imports: [_angular_common.CommonModule], + exports: [EXPORTED_DECLARATIONS], + declarations: [EXPORTED_DECLARATIONS] + },] }, + ]; + /** + * @nocollapse + */ + CdkTableModule.ctorParameters = function () { return []; }; + return CdkTableModule; +}()); + +exports.DataSource = _angular_cdk_collections.DataSource; +exports.RowPlaceholder = RowPlaceholder; +exports.HeaderRowPlaceholder = HeaderRowPlaceholder; +exports.CDK_TABLE_TEMPLATE = CDK_TABLE_TEMPLATE; +exports.CdkTable = CdkTable; +exports.CdkCellDef = CdkCellDef; +exports.CdkHeaderCellDef = CdkHeaderCellDef; +exports.CdkColumnDef = CdkColumnDef; +exports.CdkHeaderCell = CdkHeaderCell; +exports.CdkCell = CdkCell; +exports.CDK_ROW_TEMPLATE = CDK_ROW_TEMPLATE; +exports.BaseRowDef = BaseRowDef; +exports.CdkHeaderRowDef = CdkHeaderRowDef; +exports.CdkRowDef = CdkRowDef; +exports.CdkCellOutlet = CdkCellOutlet; +exports.CdkHeaderRow = CdkHeaderRow; +exports.CdkRow = CdkRow; +exports.CdkTableModule = CdkTableModule; + +Object.defineProperty(exports, '__esModule', { value: true }); + +}))); +//# sourceMappingURL=cdk-table.umd.js.map
http://git-wip-us.apache.org/repos/asf/nifi-fds/blob/90759b86/node_modules/@angular/cdk/bundles/cdk-table.umd.js.map ---------------------------------------------------------------------- diff --git a/node_modules/@angular/cdk/bundles/cdk-table.umd.js.map b/node_modules/@angular/cdk/bundles/cdk-table.umd.js.map new file mode 100644 index 0000000..38a3c86 --- /dev/null +++ b/node_modules/@angular/cdk/bundles/cdk-table.umd.js.map @@ -0,0 +1 @@ +{"version":3,"file":"cdk-table.umd.js","sources":["../../node_modules/tslib/tslib.es6.js","cdk/table.es5.js"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Ref lect, Promise */\r\n\r\nvar extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n fo r (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)\r\n t[p[i]] = s[p[i]];\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"fu nction\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator.throw(value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = y[op[0] & 2 ? \"return\" : op[0] ? \"throw\" : \"next\"]) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [0, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] = == 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n retu rn i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; }; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator];\r\n return m ? m.call(o) : typeof __values === \"function\" ? __values(o) : o[Symbol.iterator]();\r\n}","/**\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, IterableDiffers, NgModule, Renderer2, TemplateRef, ViewChild, ViewContainerRef, ViewEncapsulation, isDevMode } from '@angular/core';\nimport { __extends } from 'tslib';\nimport * as tslib_1 from 'tslib';\nimport { takeUntil } from 'rxjs/operator/takeUntil';\nimport { BehaviorSubject } f rom 'rxjs/BehaviorSubject';\nimport { Subject } from 'rxjs/Subject';\nimport { CommonModule } from '@angular/common';\nimport { DataSource } from '@angular/cdk/collections';\n\n/**\n * The row template that can be used by the mat-table. Should not be used outside of the\n * material library.\n */\nvar 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 * @abstract\n */\nvar BaseRowDef = (function () {\n /**\n * @param {?} template\n * @param {?} _differs\n */\n function BaseRowDef(template, _differs) {\n this.template = template;\n this._differs = _differs;\n }\n /**\n * @param {?} changes\n * @return {?}\n */\n BaseRowDef.prototype.ngOnChanges = function (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 var /** @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 BaseRowDef.prototype.getColumnsDiff = function () {\n return this._columnsDiffer.diff(this.columns);\n };\n return BaseRowDef;\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 */\nvar CdkHeaderRowDef = (function (_super) {\n __extends(CdkHeaderRowDef, _super);\n /**\n * @param {?} template\n * @param {?} _differs\n */\n function CdkHeaderRowDef (template, _differs) {\n return _super.call(this, template, _differs) || this;\n }\n CdkHeaderRowDef.decorators = [\n { type: Directive, args: [{\n selector: '[cdkHeaderRowDef]',\n inputs: ['columns: cdkHeaderRowDef'],\n },] },\n ];\n /**\n * @nocollapse\n */\n CdkHeaderRowDef.ctorParameters = function () { return [\n { type: TemplateRef, },\n { type: IterableDiffers, },\n ]; };\n return CdkHeaderRowDef;\n}(BaseRowDef));\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 */\nvar CdkRowDef = (function (_super) {\n __extends(CdkRowDef, _super);\n /**\n * @param {?} template\n * @param {?} _differs\n */\n function CdkRowDef(template, _differs) {\n return _super.call(this, template, _differ s) || this;\n }\n CdkRowDef.decorators = [\n { type: Directive, args: [{\n selector: '[cdkRowDef]',\n inputs: ['columns: cdkRowDefColumns', 'when: cdkRowDefWhen'],\n },] },\n ];\n /**\n * @nocollapse\n */\n CdkRowDef.ctorParameters = function () { return [\n { type: TemplateRef, },\n { type: IterableDiffers, },\n ]; };\n return CdkRowDef;\n}(BaseRowDef));\n/**\n * Outlet for rendering cells inside of a row or header row.\n * \\@docs-private\n */\nvar CdkCellOutlet = (function () {\n /**\n * @param {?} _viewContainer\n */\n function CdkCellOutlet(_viewContainer) {\n this._viewContainer = _viewContainer;\n CdkCellOutlet.mostRecentCellOutlet = this;\n }\n CdkCellOutlet.decorators = [\n { type: Directive, args: [{ selector: '[cdkCellOutlet]' },] },\n ];\n /**\n * @nocollapse\n */\n CdkCellOutlet.ctorParameters = function () { re turn [\n { type: ViewContainerRef, },\n ]; };\n return CdkCellOutlet;\n}());\n/**\n * Header template container that contains the cell outlet. Adds the right class and role.\n */\nvar CdkHeaderRow = (function () {\n function CdkHeaderRow() {\n }\n CdkHeaderRow.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 */\n CdkHeaderRow.ctorParameters = function () { return []; };\n return CdkHeaderRow;\n}());\n/**\n * Data row template container that contains the cell outlet. Adds the right class and rol e.\n */\nvar CdkRow = (function () {\n function CdkRow() {\n }\n CdkRow.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 */\n CdkRow.ctorParameters = function () { return []; };\n return CdkRow;\n}());\n\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 */\nvar CdkCellDef = (function () {\n /**\n * @param {?} template\n */\n function CdkCellDef(template) {\n this.template = template;\n }\n CdkCellDef.decorators = [\n { type: Directive, args: [{ selector: '[cdkCellDef]' },] },\n ];\n /**\n * @nocollapse\n */\n CdkCellDef.ctorParameters = function () { return [\n { type: TemplateRef, },\n ]; };\n return CdkCellDef;\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 */\nvar CdkHeaderCellDef = (function () {\n /**\n * @param {?} template\n */\n function CdkHeaderCellDef(template) {\n this.template = template;\n }\n CdkHeaderCellDef.decorators = [\n { type: Directive, args: [{ selector: '[cdkHeaderCellDef]' },] },\n ];\n /**\n * @nocollapse\n */\n CdkHeaderCellDef.ctorParameters = function () { return [\n { type: TemplateRef, },\n ]; };\n return CdkHeaderCellDef;\n}());\n/**\n * Column definition for the CDK table.\n * Defines a set of cells available for a table column.\n */\nvar CdkColumnDef = (function () {\n function CdkColumnDef() {\n }\n Object.defineProperty(CdkColumnDef.prototype, \"name\", {\n /**\n * Unique name for this column.\n * @return {?}\n */\n get: function () { return this._name; },\n /**\n * @param {?} name\n * @return {?}\n */\n set: function (name) {\n this._name = name;\n this.cssClassFriendlyName = name.replace(/[^a-z0-9_-]/ig, '-');\n },\n enumerable: true,\n configurable: true\n });\n CdkColumnDef.decorators = [\n { type: Directive, args: [{ selector: '[cdkColumnDef]' },] },\n ];\n /**\n * @nocollapse\n */\n CdkColumnDef.ctorParameters = function () { return []; };\n CdkColumnDef.propDecorators = {\n 'name': [{ type: Input, args: ['cdkColumnDef',] },],\n 'cell': [{ type: ContentChild, args: [CdkCellDef,] },],\n 'headerCell': [{ type: ContentChild, args: [CdkHeaderCellDe f,] },],\n };\n return CdkColumnDef;\n}());\n/**\n * Header cell template container that adds the right classes and role.\n */\nvar CdkHeaderCell = (function () {\n /**\n * @param {?} columnDef\n * @param {?} elementRef\n * @param {?} renderer\n */\n function CdkHeaderCell(columnDef, elementRef, renderer) {\n renderer.addClass(elementRef.nativeElement, \"cdk-column-\" + columnDef.cssClassFriendlyName);\n }\n CdkHeaderCell.decorators = [\n { type: Directive, args: [{\n selector: 'cdk-header-cell',\n host: {\n 'class': 'cdk-header-cell',\n 'role': 'columnheader',\n },\n },] },\n ];\n /**\n * @nocollapse\n */\n CdkHeaderCell.ctorParameters = function () { return [\n { type: CdkColumnDef, },\n { type: ElementRef, },\n { type: Renderer2, },\n ]; };\n return CdkHeaderCell;\n}());\n/ **\n * Cell template container that adds the right classes and role.\n */\nvar CdkCell = (function () {\n /**\n * @param {?} columnDef\n * @param {?} elementRef\n * @param {?} renderer\n */\n function CdkCell(columnDef, elementRef, renderer) {\n renderer.addClass(elementRef.nativeElement, \"cdk-column-\" + columnDef.cssClassFriendlyName);\n }\n CdkCell.decorators = [\n { type: Directive, args: [{\n selector: 'cdk-cell',\n host: {\n 'class': 'cdk-cell',\n 'role': 'gridcell',\n },\n },] },\n ];\n /**\n * @nocollapse\n */\n CdkCell.ctorParameters = function () { return [\n { type: CdkColumnDef, },\n { type: ElementRef, },\n { type: Renderer2, },\n ]; };\n return CdkCell;\n}());\n\n/**\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 */\nfunction 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 {?} name\n * @return {?}\n */\nfunction 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 */\nfunction 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 */\nfunction getTableMissingMatchingRowDefError() {\n return Error(\"cdk-table: Could not find a matching row definition for the provided row data.\");\n}\n\n/**\n * Provides a handle for the table to grab the view container's ng-container to insert data rows.\n * \\@docs-private\n */\nvar RowPlaceholder = (function () {\n /**\n * @param {?} viewContainer\n */\n function RowPlaceholder(viewContainer) {\n this.viewContainer = viewContainer;\n }\n RowPlaceholder.decorators = [\n { type: Directive, args: [{ selector: '[rowPlaceholder]' },] },\n ];\n /**\n * @nocollapse\n */\n RowPlaceholder.ctorParameters = function () { return [\n { type: ViewContainerRef, },\n ]; };\n return RowPlaceholder;\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 */\nvar HeaderRowPlaceholder = (function () {\n /**\n * @param {?} viewContainer\n */\n function HeaderRowPlaceholder(viewContainer) {\n this.viewContainer = viewContainer;\n }\n HeaderRowPlaceholder.decorators = [\n { type: Directive, args: [{ selector: '[headerRowPlaceholder]' },] },\n ];\n /**\n * @nocollapse\n */\n HeaderRowPlaceholder.ctorParameters = function () { return [\n { type: ViewContainerRef, },\n ]; };\n return HeaderRowPlaceholder;\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 */\nvar 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 */\nvar CdkTable = (function () {\n /**\n * @param {?} _differs\n * @param {?} _changeDetectorRef\n * @param {?} elementRef\n * @param {?} renderer\n * @param {?} role\n */\n function CdkTable(_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.setAtt ribute(elementRef.nativeElement, 'role', 'grid');\n }\n }\n Object.defineProperty(CdkTable.prototype, \"trackBy\", {\n /**\n * @return {?}\n */\n get: function () { return this._trackByFn; },\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: function (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 enumerable: true,\n configurable: true\n });\n Object.defineProperty(CdkTable.prototype, \"dataSource\", {\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 * @return {?}\n */\n get: function () { return this._dataSource; },\n /**\n * @param {?} dataSource\n * @return {?}\n */\n set: function (dataSource) {\n if (this._dataSource !== dataSource) {\n this._switchDataSource(dataSource);\n }\n },\n enumerable: true,\n configurable: true\n });\n /**\n * @return {?}\n */\n CdkTable.prototype.ngOnInit = function () {\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 CdkTable.prototype.ngAfterContentInit = function () {\n var _this = this;\n this._cacheColumnDefsByName();\n this._columnDefs.changes.subscribe(function () { return _this._cacheColumnDefsByName(); });\n this._renderHeaderRow();\n };\n /**\n * @return {?}\n */\n CdkTable.prototype.ngAfterContentChecked = function () {\n this._renderUpdatedColumns();\n var /** @type {?} */ defaultRowDefs = this._rowDefs.filter(function (def) { return !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 CdkTable.prototype.ngOnDestroy = function () {\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 CdkTable.prototype._cacheColumnDefsByName = function () {\n var _this = this;\n this._columnDefsByName.clear();\n this._columnDefs.forEach(function (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 CdkTable.prototype._renderUpdatedColumns = function () {\n var _this = this;\n // Re-render the rows when the row definition columns change.\n this._rowDefs.forEach(function (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 CdkTable.prototype._switchDataSource = function (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 CdkTable.prototype._observeRenderChanges = function () {\n var _this = this;\n this._renderChangeSubscription = takeUntil.call(this.dataSource.connect(this), this._ onDestroy)\n .subscribe(function (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 CdkTable.prototype._renderHeaderRow = function () {\n var /** @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: cells });\n cells.forEach(function (cell) {\n CdkCellOutlet.mostRecentCellOutlet._viewContainer.createEmbeddedView(cell.template, {});\n });\n this._changeDetectorRef.markForChec k();\n };\n /**\n * Check for changes made in the data and render each change (row added/removed/moved).\n * @return {?}\n */\n CdkTable.prototype._renderRowChanges = function () {\n var _this = this;\n var /** @type {?} */ changes = this._dataDiffer.diff(this._data);\n if (!changes) {\n return;\n }\n var /** @type {?} */ viewContainer = this._rowPlaceholder.viewContainer;\n changes.forEachOperation(function (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 var /** @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 CdkTable.prototype._getRowDef = function (data, i) {\n if (this._rowDefs.length == 1) {\n return this._rowDefs.first;\n }\n var /** @type {?} */ rowDef = this._rowDefs.find(function (def) { return 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 {?} rowData\n * @param {?} index\n * @return {?}\n */\n CdkTable.prototype._insertRow = function (rowData, index) {\n var /** @type {?} */ row = this._getRowDef(rowData, index);\n // Row context that will be provided to both the created embedded row view and its cells.\n var /** @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 var /** @type {?} */ cells = rowData ? this._getCellTemplatesForRow(row) : [];\n cells.forEach(function (cell) {\n CdkCellOutlet.mostRecentCellOutlet._viewContainer.createEmbeddedView(cell.template, context);\n });\n this._changeDet ectorRef.markForCheck();\n };\n /**\n * Updates the context for each 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 CdkTable.prototype._updateRowContext = function () {\n var /** @type {?} */ viewContainer = this._rowPlaceholder.viewContainer;\n for (var /** @type {?} */ index = 0, /** @type {?} */ count = viewContainer.length; index < count; index++) {\n var /** @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 * @param {?} headerDef\n * @return {?}\n */\n CdkTable.prototype._getHeaderCellTemplatesForRow = function (headerDef) {\n var _this = this;\n if (!headerDef.columns) {\n return [];\n }\n return headerDef.columns.map(function (columnId) {\n var /** @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 CdkTable.prototype._getCellTemplatesForRow = function (rowDef) {\n var _this = this;\n if (!rowDef.columns) {\n return [];\n }\n return rowDef.columns.map(function (columnId) {\n var /** @type {?} */ column = _this._columnDefsByName.get(columnId);\n if (!column) {\n throw getTableUnknownColumnError(columnId);\n }\n return column.cell;\n });\n };\n CdkTable.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 */\n CdkTable.ctorParameters = function () { return [\n { type: IterableDiffers, },\n { type: ChangeDetectorRef, },\n { type: ElementRef, },\n { ty pe: Renderer2, },\n { type: undefined, decorators: [{ type: Attribute, args: ['role',] },] },\n ]; };\n CdkTable.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 };\n return CdkTable;\n}());\n\nvar 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];\nvar CdkTableModule = (function () {\n function CdkTable Module() {\n }\n CdkTableModule.decorators = [\n { type: NgModule, args: [{\n imports: [CommonModule],\n exports: [EXPORTED_DECLARATIONS],\n declarations: [EXPORTED_DECLARATIONS]\n },] },\n ];\n /**\n * @nocollapse\n */\n CdkTableModule.ctorParameters = function () { return []; };\n return CdkTableModule;\n}());\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { DataSource, RowPlaceholder, HeaderRowPlaceholder, CDK_TABLE_TEMPLATE, CdkTable, CdkCellDef, CdkHeaderCellDef, CdkColumnDef, CdkHeaderCell, CdkCell, CDK_ROW_TEMPLATE, BaseRowDef, CdkHeaderRowDef, CdkRowDef, CdkCellOutlet, CdkHeaderRow, CdkRow, CdkTableModule };\n//# sourceMappingURL=table.es5.js.map\n"],"names":["Directive","TemplateRef","IterableDiffers","ViewContainerRef","Component","ChangeDetectionStrategy","ViewEncapsulation","Input","ContentChild","ElementRef","Renderer2","Subject","BehaviorSubject","is DevMode","takeUntil","ChangeDetectorRef","Attribute","ViewChild","ContentChildren","NgModule","CommonModule"],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;AAgBA,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;KACpC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IAC5E,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;;AAE/E,AAAO,SAAS,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE;IAC5B,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACpB,SAAS,EAAE,GAAG,EAA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