{"version":3,"file":"grid-list.js","sources":["../../packages/material/grid-list/grid-list-measure.js","../../packages/material/grid-list/grid-tile.js","../../packages/material/grid-list/tile-coordinator.js","../../packages/material/grid-list/tile-styler.js","../../packages/material/grid-list/grid-list.js","../../packages/material/grid-list/grid-list-module.js","../../packages/material/grid-list/index.js"],"sourcesContent":["/**\n * Converts values into strings. Falsy values become empty strings.\n * \\@docs-private\n * @param {?} value\n * @return {?}\n */\nexport function coerceToString(value) {\n return `${value || ''}`;\n}\n/**\n * Converts a value that might be a string into a number.\n * \\@docs-private\n * @param {?} value\n * @return {?}\n */\nexport function coerceToNumber(value) {\n return typeof value === 'string' ? parseInt(value, 10) : value;\n}\n//# sourceMappingURL=grid-list-measure.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 { Component, ViewEncapsulation, Renderer2, ElementRef, Input, ContentChildren, Directive, ChangeDetectionStrategy, } from '@angular/core';\nimport { MatLine, MatLineSetter } from '@angular/material/core';\nimport { coerceToNumber } from './grid-list-measure';\nexport class MatGridTile {\n /**\n * @param {?} _renderer\n * @param {?} _element\n */\n constructor(_renderer, _element) {\n this._renderer = _renderer;\n this._element = _element;\n this._rowspan = 1;\n this._colspan = 1;\n }\n /**\n * Amount of rows that the grid tile takes up.\n * @return {?}\n */\n get rowspan() { return this._rowspan; }\n /**\n * @param {?} value\n * @return {?}\n */\n set rowspan(value) { this._rowspan = coerceToNumber(value); }\n /**\n * Amount of columns that the grid tile takes up.\n * @return {?}\n */\n get colspan() { return this._colspan; }\n /**\n * @param {?} value\n * @return {?}\n */\n set colspan(value) { this._colspan = coerceToNumber(value); }\n /**\n * Sets the style of the grid-tile element. Needs to be set manually to avoid\n * \"Changed after checked\" errors that would occur with HostBinding.\n * @param {?} property\n * @param {?} value\n * @return {?}\n */\n _setStyle(property, value) {\n this._renderer.setStyle(this._element.nativeElement, property, value);\n }\n}\nMatGridTile.decorators = [\n { type: Component, args: [{selector: 'mat-grid-tile',\n exportAs: 'matGridTile',\n host: {\n 'class': 'mat-grid-tile',\n },\n template: \"\",\n styles: [\".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-footer,.mat-grid-tile .mat-grid-tile-header{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-footer>*,.mat-grid-tile .mat-grid-tile-header>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-tile-footer.mat-2-line,.mat-grid-tile .mat-grid-tile-header.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\"],\n encapsulation: ViewEncapsulation.None,\n preserveWhitespaces: false,\n changeDetection: ChangeDetectionStrategy.OnPush,\n },] },\n];\n/**\n * @nocollapse\n */\nMatGridTile.ctorParameters = () => [\n { type: Renderer2, },\n { type: ElementRef, },\n];\nMatGridTile.propDecorators = {\n 'rowspan': [{ type: Input },],\n 'colspan': [{ type: Input },],\n};\nfunction MatGridTile_tsickle_Closure_declarations() {\n /** @type {?} */\n MatGridTile.decorators;\n /**\n * @nocollapse\n * @type {?}\n */\n MatGridTile.ctorParameters;\n /** @type {?} */\n MatGridTile.propDecorators;\n /** @type {?} */\n MatGridTile.prototype._rowspan;\n /** @type {?} */\n MatGridTile.prototype._colspan;\n /** @type {?} */\n MatGridTile.prototype._renderer;\n /** @type {?} */\n MatGridTile.prototype._element;\n}\nexport class MatGridTileText {\n /**\n * @param {?} _renderer\n * @param {?} _element\n */\n constructor(_renderer, _element) {\n this._renderer = _renderer;\n this._element = _element;\n }\n /**\n * @return {?}\n */\n ngAfterContentInit() {\n this._lineSetter = new MatLineSetter(this._lines, this._renderer, this._element);\n }\n}\nMatGridTileText.decorators = [\n { type: Component, args: [{selector: 'mat-grid-tile-header, mat-grid-tile-footer',\n template: \"