{"version":3,"file":"grid-list.es5.js","sources":["../../packages/material/esm5/grid-list/grid-list-measure.js","../../packages/material/esm5/grid-list/grid-tile.js","../../packages/material/esm5/grid-list/tile-coordinator.js","../../packages/material/esm5/grid-list/tile-styler.js","../../packages/material/esm5/grid-list/grid-list.js","../../packages/material/esm5/grid-list/grid-list-module.js","../../packages/material/esm5/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';\nvar MatGridTile = (function () {\n /**\n * @param {?} _renderer\n * @param {?} _element\n */\n function MatGridTile(_renderer, _element) {\n this._renderer = _renderer;\n this._element = _element;\n this._rowspan = 1;\n this._colspan = 1;\n }\n Object.defineProperty(MatGridTile.prototype, \"rowspan\", {\n /**\n * Amount of rows that the grid tile takes up.\n * @return {?}\n */\n get: function () { return this._rowspan; },\n /**\n * @param {?} value\n * @return {?}\n */\n set: function (value) { this._rowspan = coerceToNumber(value); },\n enumerable: true,\n configurable: true\n });\n Object.defineProperty(MatGridTile.prototype, \"colspan\", {\n /**\n * Amount of columns that the grid tile takes up.\n * @return {?}\n */\n get: function () { return this._colspan; },\n /**\n * @param {?} value\n * @return {?}\n */\n set: function (value) { this._colspan = coerceToNumber(value); },\n enumerable: true,\n configurable: true\n });\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 MatGridTile.prototype._setStyle = function (property, value) {\n this._renderer.setStyle(this._element.nativeElement, property, value);\n };\n MatGridTile.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 */\n MatGridTile.ctorParameters = function () { return [\n { type: Renderer2, },\n { type: ElementRef, },\n ]; };\n MatGridTile.propDecorators = {\n 'rowspan': [{ type: Input },],\n 'colspan': [{ type: Input },],\n };\n return MatGridTile;\n}());\nexport { MatGridTile };\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}\nvar MatGridTileText = (function () {\n /**\n * @param {?} _renderer\n * @param {?} _element\n */\n function MatGridTileText(_renderer, _element) {\n this._renderer = _renderer;\n this._element = _element;\n }\n /**\n * @return {?}\n */\n MatGridTileText.prototype.ngAfterContentInit = function () {\n this._lineSetter = new MatLineSetter(this._lines, this._renderer, this._element);\n };\n MatGridTileText.decorators = [\n { type: Component, args: [{selector: 'mat-grid-tile-header, mat-grid-tile-footer',\n template: \"