| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402 |
- /**
- * @license
- * Copyright Google LLC 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('@angular/material/core'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/a11y'), require('@angular/cdk/coercion'), require('@angular/cdk/collections'), require('@angular/cdk/keycodes'), require('@angular/forms'), require('@angular/common'), require('@angular/material/divider')) :
- typeof define === 'function' && define.amd ? define('@angular/material/list', ['exports', '@angular/core', '@angular/material/core', 'rxjs', 'rxjs/operators', '@angular/cdk/a11y', '@angular/cdk/coercion', '@angular/cdk/collections', '@angular/cdk/keycodes', '@angular/forms', '@angular/common', '@angular/material/divider'], factory) :
- (factory((global.ng = global.ng || {}, global.ng.material = global.ng.material || {}, global.ng.material.list = {}),global.ng.core,global.ng.material.core,global.rxjs,global.rxjs.operators,global.ng.cdk.a11y,global.ng.cdk.coercion,global.ng.cdk.collections,global.ng.cdk.keycodes,global.ng.forms,global.ng.common,global.ng.material.divider));
- }(this, (function (exports,core,core$1,rxjs,operators,a11y,coercion,collections,keycodes,forms,common,divider) { '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 = function(d, b) {
- 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]; };
- return extendStatics(d, b);
- };
- function __extends(d, b) {
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- }
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- // Boilerplate for applying mixins to MatList.
- /**
- * \@docs-private
- */
- var
- // Boilerplate for applying mixins to MatList.
- /**
- * \@docs-private
- */
- MatListBase = /** @class */ (function () {
- function MatListBase() {
- }
- return MatListBase;
- }());
- /** @type {?} */
- var _MatListMixinBase = core$1.mixinDisableRipple(MatListBase);
- // Boilerplate for applying mixins to MatListItem.
- /**
- * \@docs-private
- */
- var
- // Boilerplate for applying mixins to MatListItem.
- /**
- * \@docs-private
- */
- MatListItemBase = /** @class */ (function () {
- function MatListItemBase() {
- }
- return MatListItemBase;
- }());
- /** @type {?} */
- var _MatListItemMixinBase = core$1.mixinDisableRipple(MatListItemBase);
- var MatNavList = /** @class */ (function (_super) {
- __extends(MatNavList, _super);
- function MatNavList() {
- var _this = _super !== null && _super.apply(this, arguments) || this;
- /**
- * Emits when the state of the list changes.
- */
- _this._stateChanges = new rxjs.Subject();
- return _this;
- }
- /**
- * @return {?}
- */
- MatNavList.prototype.ngOnChanges = /**
- * @return {?}
- */
- function () {
- this._stateChanges.next();
- };
- /**
- * @return {?}
- */
- MatNavList.prototype.ngOnDestroy = /**
- * @return {?}
- */
- function () {
- this._stateChanges.complete();
- };
- MatNavList.decorators = [
- { type: core.Component, args: [{selector: 'mat-nav-list',
- exportAs: 'matNavList',
- host: {
- 'role': 'navigation',
- 'class': 'mat-nav-list mat-list-base'
- },
- template: "<ng-content></ng-content>",
- styles: [".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:0}mat-action-list button{background:0 0;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:0}@media (-ms-high-contrast:active){.mat-selection-list:focus{outline-style:dotted}.mat-list-option:focus,.mat-list-option:hover,.mat-nav-list .mat-list-item:focus,.mat-nav-list .mat-list-item:hover,mat-action-list .mat-list-item:focus,mat-action-list .mat-list-item:hover{outline:dotted 1px}}@media (hover:none){.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover{background:0 0}}"],
- inputs: ['disableRipple'],
- encapsulation: core.ViewEncapsulation.None,
- changeDetection: core.ChangeDetectionStrategy.OnPush,
- },] },
- ];
- return MatNavList;
- }(_MatListMixinBase));
- var MatList = /** @class */ (function (_super) {
- __extends(MatList, _super);
- function MatList(_elementRef) {
- var _this = _super.call(this) || this;
- _this._elementRef = _elementRef;
- /**
- * Emits when the state of the list changes.
- */
- _this._stateChanges = new rxjs.Subject();
- if (_this._getListType() === 'action-list') {
- _elementRef.nativeElement.classList.add('mat-action-list');
- }
- return _this;
- }
- /**
- * @return {?}
- */
- MatList.prototype._getListType = /**
- * @return {?}
- */
- function () {
- /** @type {?} */
- var nodeName = this._elementRef.nativeElement.nodeName.toLowerCase();
- if (nodeName === 'mat-list') {
- return 'list';
- }
- if (nodeName === 'mat-action-list') {
- return 'action-list';
- }
- return null;
- };
- /**
- * @return {?}
- */
- MatList.prototype.ngOnChanges = /**
- * @return {?}
- */
- function () {
- this._stateChanges.next();
- };
- /**
- * @return {?}
- */
- MatList.prototype.ngOnDestroy = /**
- * @return {?}
- */
- function () {
- this._stateChanges.complete();
- };
- MatList.decorators = [
- { type: core.Component, args: [{selector: 'mat-list, mat-action-list',
- exportAs: 'matList',
- template: "<ng-content></ng-content>",
- host: {
- 'class': 'mat-list mat-list-base'
- },
- styles: [".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:0}mat-action-list button{background:0 0;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:0}@media (-ms-high-contrast:active){.mat-selection-list:focus{outline-style:dotted}.mat-list-option:focus,.mat-list-option:hover,.mat-nav-list .mat-list-item:focus,.mat-nav-list .mat-list-item:hover,mat-action-list .mat-list-item:focus,mat-action-list .mat-list-item:hover{outline:dotted 1px}}@media (hover:none){.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover{background:0 0}}"],
- inputs: ['disableRipple'],
- encapsulation: core.ViewEncapsulation.None,
- changeDetection: core.ChangeDetectionStrategy.OnPush,
- },] },
- ];
- /** @nocollapse */
- MatList.ctorParameters = function () { return [
- { type: core.ElementRef }
- ]; };
- return MatList;
- }(_MatListMixinBase));
- /**
- * Directive whose purpose is to add the mat- CSS styling to this selector.
- * \@docs-private
- */
- var MatListAvatarCssMatStyler = /** @class */ (function () {
- function MatListAvatarCssMatStyler() {
- }
- MatListAvatarCssMatStyler.decorators = [
- { type: core.Directive, args: [{
- selector: '[mat-list-avatar], [matListAvatar]',
- host: { 'class': 'mat-list-avatar' }
- },] },
- ];
- return MatListAvatarCssMatStyler;
- }());
- /**
- * Directive whose purpose is to add the mat- CSS styling to this selector.
- * \@docs-private
- */
- var MatListIconCssMatStyler = /** @class */ (function () {
- function MatListIconCssMatStyler() {
- }
- MatListIconCssMatStyler.decorators = [
- { type: core.Directive, args: [{
- selector: '[mat-list-icon], [matListIcon]',
- host: { 'class': 'mat-list-icon' }
- },] },
- ];
- return MatListIconCssMatStyler;
- }());
- /**
- * Directive whose purpose is to add the mat- CSS styling to this selector.
- * \@docs-private
- */
- var MatListSubheaderCssMatStyler = /** @class */ (function () {
- function MatListSubheaderCssMatStyler() {
- }
- MatListSubheaderCssMatStyler.decorators = [
- { type: core.Directive, args: [{
- selector: '[mat-subheader], [matSubheader]',
- host: { 'class': 'mat-subheader' }
- },] },
- ];
- return MatListSubheaderCssMatStyler;
- }());
- /**
- * An item within a Material Design list.
- */
- var MatListItem = /** @class */ (function (_super) {
- __extends(MatListItem, _super);
- function MatListItem(_element, _changeDetectorRef, navList, list) {
- var _this = _super.call(this) || this;
- _this._element = _element;
- _this._isInteractiveList = false;
- _this._destroyed = new rxjs.Subject();
- _this._isInteractiveList = !!(navList || (list && list._getListType() === 'action-list'));
- _this._list = navList || list;
- // If no type attributed is specified for <button>, set it to "button".
- // If a type attribute is already specified, do nothing.
- /** @type {?} */
- var element = _this._getHostElement();
- if (element.nodeName.toLowerCase() === 'button' && !element.hasAttribute('type')) {
- element.setAttribute('type', 'button');
- }
- if (_this._list) {
- // React to changes in the state of the parent list since
- // some of the item's properties depend on it (e.g. `disableRipple`).
- _this._list._stateChanges.pipe(operators.takeUntil(_this._destroyed)).subscribe((/**
- * @return {?}
- */
- function () {
- _changeDetectorRef.markForCheck();
- }));
- }
- return _this;
- }
- /**
- * @return {?}
- */
- MatListItem.prototype.ngAfterContentInit = /**
- * @return {?}
- */
- function () {
- core$1.setLines(this._lines, this._element);
- };
- /**
- * @return {?}
- */
- MatListItem.prototype.ngOnDestroy = /**
- * @return {?}
- */
- function () {
- this._destroyed.next();
- this._destroyed.complete();
- };
- /** Whether this list item should show a ripple effect when clicked. */
- /**
- * Whether this list item should show a ripple effect when clicked.
- * @return {?}
- */
- MatListItem.prototype._isRippleDisabled = /**
- * Whether this list item should show a ripple effect when clicked.
- * @return {?}
- */
- function () {
- return !this._isInteractiveList || this.disableRipple ||
- !!(this._list && this._list.disableRipple);
- };
- /** Retrieves the DOM element of the component host. */
- /**
- * Retrieves the DOM element of the component host.
- * @return {?}
- */
- MatListItem.prototype._getHostElement = /**
- * Retrieves the DOM element of the component host.
- * @return {?}
- */
- function () {
- return this._element.nativeElement;
- };
- MatListItem.decorators = [
- { type: core.Component, args: [{selector: 'mat-list-item, a[mat-list-item], button[mat-list-item]',
- exportAs: 'matListItem',
- host: {
- 'class': 'mat-list-item',
- // @breaking-change 8.0.0 Remove `mat-list-item-avatar` in favor of `mat-list-item-with-avatar`.
- '[class.mat-list-item-avatar]': '_avatar || _icon',
- '[class.mat-list-item-with-avatar]': '_avatar || _icon',
- },
- inputs: ['disableRipple'],
- template: "<div class=\"mat-list-item-content\"><div class=\"mat-list-item-ripple\" mat-ripple [matRippleTrigger]=\"_getHostElement()\" [matRippleDisabled]=\"_isRippleDisabled()\"></div><ng-content select=\"[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]\"></ng-content><div class=\"mat-list-text\"><ng-content select=\"[mat-line], [matLine]\"></ng-content></div><ng-content></ng-content></div>",
- encapsulation: core.ViewEncapsulation.None,
- changeDetection: core.ChangeDetectionStrategy.OnPush,
- },] },
- ];
- /** @nocollapse */
- MatListItem.ctorParameters = function () { return [
- { type: core.ElementRef },
- { type: core.ChangeDetectorRef },
- { type: MatNavList, decorators: [{ type: core.Optional }] },
- { type: MatList, decorators: [{ type: core.Optional }] }
- ]; };
- MatListItem.propDecorators = {
- _lines: [{ type: core.ContentChildren, args: [core$1.MatLine, { descendants: true },] }],
- _avatar: [{ type: core.ContentChild, args: [MatListAvatarCssMatStyler, { static: false },] }],
- _icon: [{ type: core.ContentChild, args: [MatListIconCssMatStyler, { static: false },] }]
- };
- return MatListItem;
- }(_MatListItemMixinBase));
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- /**
- * \@docs-private
- */
- var /**
- * \@docs-private
- */
- MatSelectionListBase = /** @class */ (function () {
- function MatSelectionListBase() {
- }
- return MatSelectionListBase;
- }());
- /** @type {?} */
- var _MatSelectionListMixinBase = core$1.mixinDisableRipple(MatSelectionListBase);
- /**
- * \@docs-private
- */
- var /**
- * \@docs-private
- */
- MatListOptionBase = /** @class */ (function () {
- function MatListOptionBase() {
- }
- return MatListOptionBase;
- }());
- /** @type {?} */
- var _MatListOptionMixinBase = core$1.mixinDisableRipple(MatListOptionBase);
- /**
- * \@docs-private
- * @type {?}
- */
- var MAT_SELECTION_LIST_VALUE_ACCESSOR = {
- provide: forms.NG_VALUE_ACCESSOR,
- useExisting: core.forwardRef((/**
- * @return {?}
- */
- function () { return MatSelectionList; })),
- multi: true
- };
- /**
- * Change event that is being fired whenever the selected state of an option changes.
- */
- var /**
- * Change event that is being fired whenever the selected state of an option changes.
- */
- MatSelectionListChange = /** @class */ (function () {
- function MatSelectionListChange(source, option) {
- this.source = source;
- this.option = option;
- }
- return MatSelectionListChange;
- }());
- /**
- * Component for list-options of selection-list. Each list-option can automatically
- * generate a checkbox and can put current item into the selectionModel of selection-list
- * if the current item is selected.
- */
- var MatListOption = /** @class */ (function (_super) {
- __extends(MatListOption, _super);
- function MatListOption(_element, _changeDetector, selectionList) {
- var _this = _super.call(this) || this;
- _this._element = _element;
- _this._changeDetector = _changeDetector;
- _this.selectionList = selectionList;
- _this._selected = false;
- _this._disabled = false;
- _this._hasFocus = false;
- /**
- * Whether the label should appear before or after the checkbox. Defaults to 'after'
- */
- _this.checkboxPosition = 'after';
- return _this;
- }
- Object.defineProperty(MatListOption.prototype, "color", {
- /** Theme color of the list option. This sets the color of the checkbox. */
- get: /**
- * Theme color of the list option. This sets the color of the checkbox.
- * @return {?}
- */
- function () { return this._color || this.selectionList.color; },
- set: /**
- * @param {?} newValue
- * @return {?}
- */
- function (newValue) { this._color = newValue; },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(MatListOption.prototype, "value", {
- /** Value of the option */
- get: /**
- * Value of the option
- * @return {?}
- */
- function () { return this._value; },
- set: /**
- * @param {?} newValue
- * @return {?}
- */
- function (newValue) {
- if (this.selected && newValue !== this.value) {
- this.selected = false;
- }
- this._value = newValue;
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(MatListOption.prototype, "disabled", {
- /** Whether the option is disabled. */
- get: /**
- * Whether the option is disabled.
- * @return {?}
- */
- function () { return this._disabled || (this.selectionList && this.selectionList.disabled); },
- set: /**
- * @param {?} value
- * @return {?}
- */
- function (value) {
- /** @type {?} */
- var newValue = coercion.coerceBooleanProperty(value);
- if (newValue !== this._disabled) {
- this._disabled = newValue;
- this._changeDetector.markForCheck();
- }
- },
- enumerable: true,
- configurable: true
- });
- Object.defineProperty(MatListOption.prototype, "selected", {
- /** Whether the option is selected. */
- get: /**
- * Whether the option is selected.
- * @return {?}
- */
- function () { return this.selectionList.selectedOptions.isSelected(this); },
- set: /**
- * @param {?} value
- * @return {?}
- */
- function (value) {
- /** @type {?} */
- var isSelected = coercion.coerceBooleanProperty(value);
- if (isSelected !== this._selected) {
- this._setSelected(isSelected);
- this.selectionList._reportValueChange();
- }
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @return {?}
- */
- MatListOption.prototype.ngOnInit = /**
- * @return {?}
- */
- function () {
- var _this = this;
- /** @type {?} */
- var list = this.selectionList;
- if (list._value && list._value.some((/**
- * @param {?} value
- * @return {?}
- */
- function (value) { return list.compareWith(value, _this._value); }))) {
- this._setSelected(true);
- }
- /** @type {?} */
- var wasSelected = this._selected;
- // List options that are selected at initialization can't be reported properly to the form
- // control. This is because it takes some time until the selection-list knows about all
- // available options. Also it can happen that the ControlValueAccessor has an initial value
- // that should be used instead. Deferring the value change report to the next tick ensures
- // that the form control value is not being overwritten.
- Promise.resolve().then((/**
- * @return {?}
- */
- function () {
- if (_this._selected || wasSelected) {
- _this.selected = true;
- _this._changeDetector.markForCheck();
- }
- }));
- };
- /**
- * @return {?}
- */
- MatListOption.prototype.ngAfterContentInit = /**
- * @return {?}
- */
- function () {
- core$1.setLines(this._lines, this._element);
- };
- /**
- * @return {?}
- */
- MatListOption.prototype.ngOnDestroy = /**
- * @return {?}
- */
- function () {
- var _this = this;
- if (this.selected) {
- // We have to delay this until the next tick in order
- // to avoid changed after checked errors.
- Promise.resolve().then((/**
- * @return {?}
- */
- function () {
- _this.selected = false;
- }));
- }
- /** @type {?} */
- var hadFocus = this._hasFocus;
- /** @type {?} */
- var newActiveItem = this.selectionList._removeOptionFromList(this);
- // Only move focus if this option was focused at the time it was destroyed.
- if (hadFocus && newActiveItem) {
- newActiveItem.focus();
- }
- };
- /** Toggles the selection state of the option. */
- /**
- * Toggles the selection state of the option.
- * @return {?}
- */
- MatListOption.prototype.toggle = /**
- * Toggles the selection state of the option.
- * @return {?}
- */
- function () {
- this.selected = !this.selected;
- };
- /** Allows for programmatic focusing of the option. */
- /**
- * Allows for programmatic focusing of the option.
- * @return {?}
- */
- MatListOption.prototype.focus = /**
- * Allows for programmatic focusing of the option.
- * @return {?}
- */
- function () {
- this._element.nativeElement.focus();
- };
- /**
- * Returns the list item's text label. Implemented as a part of the FocusKeyManager.
- * @docs-private
- */
- /**
- * Returns the list item's text label. Implemented as a part of the FocusKeyManager.
- * \@docs-private
- * @return {?}
- */
- MatListOption.prototype.getLabel = /**
- * Returns the list item's text label. Implemented as a part of the FocusKeyManager.
- * \@docs-private
- * @return {?}
- */
- function () {
- return this._text ? (this._text.nativeElement.textContent || '') : '';
- };
- /** Whether this list item should show a ripple effect when clicked. */
- /**
- * Whether this list item should show a ripple effect when clicked.
- * @return {?}
- */
- MatListOption.prototype._isRippleDisabled = /**
- * Whether this list item should show a ripple effect when clicked.
- * @return {?}
- */
- function () {
- return this.disabled || this.disableRipple || this.selectionList.disableRipple;
- };
- /**
- * @return {?}
- */
- MatListOption.prototype._handleClick = /**
- * @return {?}
- */
- function () {
- if (!this.disabled) {
- this.toggle();
- // Emit a change event if the selected state of the option changed through user interaction.
- this.selectionList._emitChangeEvent(this);
- }
- };
- /**
- * @return {?}
- */
- MatListOption.prototype._handleFocus = /**
- * @return {?}
- */
- function () {
- this.selectionList._setFocusedOption(this);
- this._hasFocus = true;
- };
- /**
- * @return {?}
- */
- MatListOption.prototype._handleBlur = /**
- * @return {?}
- */
- function () {
- this.selectionList._onTouched();
- this._hasFocus = false;
- };
- /** Retrieves the DOM element of the component host. */
- /**
- * Retrieves the DOM element of the component host.
- * @return {?}
- */
- MatListOption.prototype._getHostElement = /**
- * Retrieves the DOM element of the component host.
- * @return {?}
- */
- function () {
- return this._element.nativeElement;
- };
- /** Sets the selected state of the option. Returns whether the value has changed. */
- /**
- * Sets the selected state of the option. Returns whether the value has changed.
- * @param {?} selected
- * @return {?}
- */
- MatListOption.prototype._setSelected = /**
- * Sets the selected state of the option. Returns whether the value has changed.
- * @param {?} selected
- * @return {?}
- */
- function (selected) {
- if (selected === this._selected) {
- return false;
- }
- this._selected = selected;
- if (selected) {
- this.selectionList.selectedOptions.select(this);
- }
- else {
- this.selectionList.selectedOptions.deselect(this);
- }
- this._changeDetector.markForCheck();
- return true;
- };
- /**
- * Notifies Angular that the option needs to be checked in the next change detection run. Mainly
- * used to trigger an update of the list option if the disabled state of the selection list
- * changed.
- */
- /**
- * Notifies Angular that the option needs to be checked in the next change detection run. Mainly
- * used to trigger an update of the list option if the disabled state of the selection list
- * changed.
- * @return {?}
- */
- MatListOption.prototype._markForCheck = /**
- * Notifies Angular that the option needs to be checked in the next change detection run. Mainly
- * used to trigger an update of the list option if the disabled state of the selection list
- * changed.
- * @return {?}
- */
- function () {
- this._changeDetector.markForCheck();
- };
- MatListOption.decorators = [
- { type: core.Component, args: [{selector: 'mat-list-option',
- exportAs: 'matListOption',
- inputs: ['disableRipple'],
- host: {
- 'role': 'option',
- 'class': 'mat-list-item mat-list-option',
- '(focus)': '_handleFocus()',
- '(blur)': '_handleBlur()',
- '(click)': '_handleClick()',
- 'tabindex': '-1',
- '[class.mat-list-item-disabled]': 'disabled',
- '[class.mat-list-item-with-avatar]': '_avatar || _icon',
- // Manually set the "primary" or "warn" class if the color has been explicitly
- // set to "primary" or "warn". The pseudo checkbox picks up these classes for
- // its theme. The accent theme palette is the default and doesn't need to be set.
- '[class.mat-primary]': 'color === "primary"',
- '[class.mat-warn]': 'color === "warn"',
- '[attr.aria-selected]': 'selected',
- '[attr.aria-disabled]': 'disabled',
- },
- template: "<div class=\"mat-list-item-content\" [class.mat-list-item-content-reverse]=\"checkboxPosition == 'after'\"><div mat-ripple class=\"mat-list-item-ripple\" [matRippleTrigger]=\"_getHostElement()\" [matRippleDisabled]=\"_isRippleDisabled()\"></div><mat-pseudo-checkbox [state]=\"selected ? 'checked' : 'unchecked'\" [disabled]=\"disabled\"></mat-pseudo-checkbox><div class=\"mat-list-text\" #text><ng-content></ng-content></div><ng-content select=\"[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]\"></ng-content></div>",
- encapsulation: core.ViewEncapsulation.None,
- changeDetection: core.ChangeDetectionStrategy.OnPush,
- },] },
- ];
- /** @nocollapse */
- MatListOption.ctorParameters = function () { return [
- { type: core.ElementRef },
- { type: core.ChangeDetectorRef },
- { type: MatSelectionList, decorators: [{ type: core.Inject, args: [core.forwardRef((/**
- * @return {?}
- */
- function () { return MatSelectionList; })),] }] }
- ]; };
- MatListOption.propDecorators = {
- _avatar: [{ type: core.ContentChild, args: [MatListAvatarCssMatStyler, { static: false },] }],
- _icon: [{ type: core.ContentChild, args: [MatListIconCssMatStyler, { static: false },] }],
- _lines: [{ type: core.ContentChildren, args: [core$1.MatLine,] }],
- _text: [{ type: core.ViewChild, args: ['text', { static: false },] }],
- checkboxPosition: [{ type: core.Input }],
- color: [{ type: core.Input }],
- value: [{ type: core.Input }],
- disabled: [{ type: core.Input }],
- selected: [{ type: core.Input }]
- };
- return MatListOption;
- }(_MatListOptionMixinBase));
- /**
- * Material Design list component where each item is a selectable option. Behaves as a listbox.
- */
- var MatSelectionList = /** @class */ (function (_super) {
- __extends(MatSelectionList, _super);
- function MatSelectionList(_element, tabIndex) {
- var _this = _super.call(this) || this;
- _this._element = _element;
- /**
- * Emits a change event whenever the selected state of an option changes.
- */
- _this.selectionChange = new core.EventEmitter();
- /**
- * Tabindex of the selection list.
- */
- _this.tabIndex = 0;
- /**
- * Theme color of the selection list. This sets the checkbox color for all list options.
- */
- _this.color = 'accent';
- /**
- * Function used for comparing an option against the selected value when determining which
- * options should appear as selected. The first argument is the value of an options. The second
- * one is a value from the selected value. A boolean must be returned.
- */
- _this.compareWith = (/**
- * @param {?} a1
- * @param {?} a2
- * @return {?}
- */
- function (a1, a2) { return a1 === a2; });
- _this._disabled = false;
- /**
- * The currently selected options.
- */
- _this.selectedOptions = new collections.SelectionModel(true);
- /**
- * View to model callback that should be called whenever the selected options change.
- */
- _this._onChange = (/**
- * @param {?} _
- * @return {?}
- */
- function (_) { });
- /**
- * Emits when the list has been destroyed.
- */
- _this._destroyed = new rxjs.Subject();
- /**
- * View to model callback that should be called if the list or its options lost focus.
- */
- _this._onTouched = (/**
- * @return {?}
- */
- function () { });
- _this.tabIndex = parseInt(tabIndex) || 0;
- return _this;
- }
- Object.defineProperty(MatSelectionList.prototype, "disabled", {
- /** Whether the selection list is disabled. */
- get: /**
- * Whether the selection list is disabled.
- * @return {?}
- */
- function () { return this._disabled; },
- set: /**
- * @param {?} value
- * @return {?}
- */
- function (value) {
- this._disabled = coercion.coerceBooleanProperty(value);
- // The `MatSelectionList` and `MatListOption` are using the `OnPush` change detection
- // strategy. Therefore the options will not check for any changes if the `MatSelectionList`
- // changed its state. Since we know that a change to `disabled` property of the list affects
- // the state of the options, we manually mark each option for check.
- this._markOptionsForCheck();
- },
- enumerable: true,
- configurable: true
- });
- /**
- * @return {?}
- */
- MatSelectionList.prototype.ngAfterContentInit = /**
- * @return {?}
- */
- function () {
- this._keyManager = new a11y.FocusKeyManager(this.options)
- .withWrap()
- .withTypeAhead()
- // Allow disabled items to be focusable. For accessibility reasons, there must be a way for
- // screenreader users, that allows reading the different options of the list.
- .skipPredicate((/**
- * @return {?}
- */
- function () { return false; }))
- .withAllowedModifierKeys(['shiftKey']);
- if (this._value) {
- this._setOptionsFromValues(this._value);
- }
- // Sync external changes to the model back to the options.
- this.selectedOptions.onChange.pipe(operators.takeUntil(this._destroyed)).subscribe((/**
- * @param {?} event
- * @return {?}
- */
- function (event) {
- if (event.added) {
- for (var _i = 0, _a = event.added; _i < _a.length; _i++) {
- var item = _a[_i];
- item.selected = true;
- }
- }
- if (event.removed) {
- for (var _b = 0, _c = event.removed; _b < _c.length; _b++) {
- var item = _c[_b];
- item.selected = false;
- }
- }
- }));
- };
- /**
- * @param {?} changes
- * @return {?}
- */
- MatSelectionList.prototype.ngOnChanges = /**
- * @param {?} changes
- * @return {?}
- */
- function (changes) {
- /** @type {?} */
- var disableRippleChanges = changes['disableRipple'];
- /** @type {?} */
- var colorChanges = changes['color'];
- if ((disableRippleChanges && !disableRippleChanges.firstChange) ||
- (colorChanges && !colorChanges.firstChange)) {
- this._markOptionsForCheck();
- }
- };
- /**
- * @return {?}
- */
- MatSelectionList.prototype.ngOnDestroy = /**
- * @return {?}
- */
- function () {
- this._destroyed.next();
- this._destroyed.complete();
- this._isDestroyed = true;
- };
- /** Focuses the selection list. */
- /**
- * Focuses the selection list.
- * @param {?=} options
- * @return {?}
- */
- MatSelectionList.prototype.focus = /**
- * Focuses the selection list.
- * @param {?=} options
- * @return {?}
- */
- function (options) {
- this._element.nativeElement.focus(options);
- };
- /** Selects all of the options. */
- /**
- * Selects all of the options.
- * @return {?}
- */
- MatSelectionList.prototype.selectAll = /**
- * Selects all of the options.
- * @return {?}
- */
- function () {
- this._setAllOptionsSelected(true);
- };
- /** Deselects all of the options. */
- /**
- * Deselects all of the options.
- * @return {?}
- */
- MatSelectionList.prototype.deselectAll = /**
- * Deselects all of the options.
- * @return {?}
- */
- function () {
- this._setAllOptionsSelected(false);
- };
- /** Sets the focused option of the selection-list. */
- /**
- * Sets the focused option of the selection-list.
- * @param {?} option
- * @return {?}
- */
- MatSelectionList.prototype._setFocusedOption = /**
- * Sets the focused option of the selection-list.
- * @param {?} option
- * @return {?}
- */
- function (option) {
- this._keyManager.updateActiveItem(option);
- };
- /**
- * Removes an option from the selection list and updates the active item.
- * @returns Currently-active item.
- */
- /**
- * Removes an option from the selection list and updates the active item.
- * @param {?} option
- * @return {?} Currently-active item.
- */
- MatSelectionList.prototype._removeOptionFromList = /**
- * Removes an option from the selection list and updates the active item.
- * @param {?} option
- * @return {?} Currently-active item.
- */
- function (option) {
- /** @type {?} */
- var optionIndex = this._getOptionIndex(option);
- if (optionIndex > -1 && this._keyManager.activeItemIndex === optionIndex) {
- // Check whether the option is the last item
- if (optionIndex > 0) {
- this._keyManager.updateActiveItem(optionIndex - 1);
- }
- else if (optionIndex === 0 && this.options.length > 1) {
- this._keyManager.updateActiveItem(Math.min(optionIndex + 1, this.options.length - 1));
- }
- }
- return this._keyManager.activeItem;
- };
- /** Passes relevant key presses to our key manager. */
- /**
- * Passes relevant key presses to our key manager.
- * @param {?} event
- * @return {?}
- */
- MatSelectionList.prototype._keydown = /**
- * Passes relevant key presses to our key manager.
- * @param {?} event
- * @return {?}
- */
- function (event) {
- /** @type {?} */
- var keyCode = event.keyCode;
- /** @type {?} */
- var manager = this._keyManager;
- /** @type {?} */
- var previousFocusIndex = manager.activeItemIndex;
- /** @type {?} */
- var hasModifier = keycodes.hasModifierKey(event);
- switch (keyCode) {
- case keycodes.SPACE:
- case keycodes.ENTER:
- if (!hasModifier) {
- this._toggleFocusedOption();
- // Always prevent space from scrolling the page since the list has focus
- event.preventDefault();
- }
- break;
- case keycodes.HOME:
- case keycodes.END:
- if (!hasModifier) {
- keyCode === keycodes.HOME ? manager.setFirstItemActive() : manager.setLastItemActive();
- event.preventDefault();
- }
- break;
- case keycodes.A:
- if (keycodes.hasModifierKey(event, 'ctrlKey')) {
- this.options.find((/**
- * @param {?} option
- * @return {?}
- */
- function (option) { return !option.selected; })) ? this.selectAll() : this.deselectAll();
- event.preventDefault();
- }
- break;
- default:
- manager.onKeydown(event);
- }
- if ((keyCode === keycodes.UP_ARROW || keyCode === keycodes.DOWN_ARROW) && event.shiftKey &&
- manager.activeItemIndex !== previousFocusIndex) {
- this._toggleFocusedOption();
- }
- };
- /** Reports a value change to the ControlValueAccessor */
- /**
- * Reports a value change to the ControlValueAccessor
- * @return {?}
- */
- MatSelectionList.prototype._reportValueChange = /**
- * Reports a value change to the ControlValueAccessor
- * @return {?}
- */
- function () {
- // Stop reporting value changes after the list has been destroyed. This avoids
- // cases where the list might wrongly reset its value once it is removed, but
- // the form control is still live.
- if (this.options && !this._isDestroyed) {
- /** @type {?} */
- var value = this._getSelectedOptionValues();
- this._onChange(value);
- this._value = value;
- }
- };
- /** Emits a change event if the selected state of an option changed. */
- /**
- * Emits a change event if the selected state of an option changed.
- * @param {?} option
- * @return {?}
- */
- MatSelectionList.prototype._emitChangeEvent = /**
- * Emits a change event if the selected state of an option changed.
- * @param {?} option
- * @return {?}
- */
- function (option) {
- this.selectionChange.emit(new MatSelectionListChange(this, option));
- };
- /** Implemented as part of ControlValueAccessor. */
- /**
- * Implemented as part of ControlValueAccessor.
- * @param {?} values
- * @return {?}
- */
- MatSelectionList.prototype.writeValue = /**
- * Implemented as part of ControlValueAccessor.
- * @param {?} values
- * @return {?}
- */
- function (values) {
- this._value = values;
- if (this.options) {
- this._setOptionsFromValues(values || []);
- }
- };
- /** Implemented as a part of ControlValueAccessor. */
- /**
- * Implemented as a part of ControlValueAccessor.
- * @param {?} isDisabled
- * @return {?}
- */
- MatSelectionList.prototype.setDisabledState = /**
- * Implemented as a part of ControlValueAccessor.
- * @param {?} isDisabled
- * @return {?}
- */
- function (isDisabled) {
- this.disabled = isDisabled;
- };
- /** Implemented as part of ControlValueAccessor. */
- /**
- * Implemented as part of ControlValueAccessor.
- * @param {?} fn
- * @return {?}
- */
- MatSelectionList.prototype.registerOnChange = /**
- * Implemented as part of ControlValueAccessor.
- * @param {?} fn
- * @return {?}
- */
- function (fn) {
- this._onChange = fn;
- };
- /** Implemented as part of ControlValueAccessor. */
- /**
- * Implemented as part of ControlValueAccessor.
- * @param {?} fn
- * @return {?}
- */
- MatSelectionList.prototype.registerOnTouched = /**
- * Implemented as part of ControlValueAccessor.
- * @param {?} fn
- * @return {?}
- */
- function (fn) {
- this._onTouched = fn;
- };
- /** Sets the selected options based on the specified values. */
- /**
- * Sets the selected options based on the specified values.
- * @private
- * @param {?} values
- * @return {?}
- */
- MatSelectionList.prototype._setOptionsFromValues = /**
- * Sets the selected options based on the specified values.
- * @private
- * @param {?} values
- * @return {?}
- */
- function (values) {
- var _this = this;
- this.options.forEach((/**
- * @param {?} option
- * @return {?}
- */
- function (option) { return option._setSelected(false); }));
- values.forEach((/**
- * @param {?} value
- * @return {?}
- */
- function (value) {
- /** @type {?} */
- var correspondingOption = _this.options.find((/**
- * @param {?} option
- * @return {?}
- */
- function (option) {
- // Skip options that are already in the model. This allows us to handle cases
- // where the same primitive value is selected multiple times.
- return option.selected ? false : _this.compareWith(option.value, value);
- }));
- if (correspondingOption) {
- correspondingOption._setSelected(true);
- }
- }));
- };
- /** Returns the values of the selected options. */
- /**
- * Returns the values of the selected options.
- * @private
- * @return {?}
- */
- MatSelectionList.prototype._getSelectedOptionValues = /**
- * Returns the values of the selected options.
- * @private
- * @return {?}
- */
- function () {
- return this.options.filter((/**
- * @param {?} option
- * @return {?}
- */
- function (option) { return option.selected; })).map((/**
- * @param {?} option
- * @return {?}
- */
- function (option) { return option.value; }));
- };
- /** Toggles the state of the currently focused option if enabled. */
- /**
- * Toggles the state of the currently focused option if enabled.
- * @private
- * @return {?}
- */
- MatSelectionList.prototype._toggleFocusedOption = /**
- * Toggles the state of the currently focused option if enabled.
- * @private
- * @return {?}
- */
- function () {
- /** @type {?} */
- var focusedIndex = this._keyManager.activeItemIndex;
- if (focusedIndex != null && this._isValidIndex(focusedIndex)) {
- /** @type {?} */
- var focusedOption = this.options.toArray()[focusedIndex];
- if (focusedOption && !focusedOption.disabled) {
- focusedOption.toggle();
- // Emit a change event because the focused option changed its state through user
- // interaction.
- this._emitChangeEvent(focusedOption);
- }
- }
- };
- /**
- * Sets the selected state on all of the options
- * and emits an event if anything changed.
- */
- /**
- * Sets the selected state on all of the options
- * and emits an event if anything changed.
- * @private
- * @param {?} isSelected
- * @return {?}
- */
- MatSelectionList.prototype._setAllOptionsSelected = /**
- * Sets the selected state on all of the options
- * and emits an event if anything changed.
- * @private
- * @param {?} isSelected
- * @return {?}
- */
- function (isSelected) {
- // Keep track of whether anything changed, because we only want to
- // emit the changed event when something actually changed.
- /** @type {?} */
- var hasChanged = false;
- this.options.forEach((/**
- * @param {?} option
- * @return {?}
- */
- function (option) {
- if (option._setSelected(isSelected)) {
- hasChanged = true;
- }
- }));
- if (hasChanged) {
- this._reportValueChange();
- }
- };
- /**
- * Utility to ensure all indexes are valid.
- * @param index The index to be checked.
- * @returns True if the index is valid for our list of options.
- */
- /**
- * Utility to ensure all indexes are valid.
- * @private
- * @param {?} index The index to be checked.
- * @return {?} True if the index is valid for our list of options.
- */
- MatSelectionList.prototype._isValidIndex = /**
- * Utility to ensure all indexes are valid.
- * @private
- * @param {?} index The index to be checked.
- * @return {?} True if the index is valid for our list of options.
- */
- function (index) {
- return index >= 0 && index < this.options.length;
- };
- /** Returns the index of the specified list option. */
- /**
- * Returns the index of the specified list option.
- * @private
- * @param {?} option
- * @return {?}
- */
- MatSelectionList.prototype._getOptionIndex = /**
- * Returns the index of the specified list option.
- * @private
- * @param {?} option
- * @return {?}
- */
- function (option) {
- return this.options.toArray().indexOf(option);
- };
- /** Marks all the options to be checked in the next change detection run. */
- /**
- * Marks all the options to be checked in the next change detection run.
- * @private
- * @return {?}
- */
- MatSelectionList.prototype._markOptionsForCheck = /**
- * Marks all the options to be checked in the next change detection run.
- * @private
- * @return {?}
- */
- function () {
- if (this.options) {
- this.options.forEach((/**
- * @param {?} option
- * @return {?}
- */
- function (option) { return option._markForCheck(); }));
- }
- };
- MatSelectionList.decorators = [
- { type: core.Component, args: [{selector: 'mat-selection-list',
- exportAs: 'matSelectionList',
- inputs: ['disableRipple'],
- host: {
- 'role': 'listbox',
- '[tabIndex]': 'tabIndex',
- 'class': 'mat-selection-list mat-list-base',
- '(blur)': '_onTouched()',
- '(keydown)': '_keydown($event)',
- 'aria-multiselectable': 'true',
- '[attr.aria-disabled]': 'disabled.toString()',
- },
- template: '<ng-content></ng-content>',
- styles: [".mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:0}mat-action-list button{background:0 0;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:0}@media (-ms-high-contrast:active){.mat-selection-list:focus{outline-style:dotted}.mat-list-option:focus,.mat-list-option:hover,.mat-nav-list .mat-list-item:focus,.mat-nav-list .mat-list-item:hover,mat-action-list .mat-list-item:focus,mat-action-list .mat-list-item:hover{outline:dotted 1px}}@media (hover:none){.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-list-option:not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover{background:0 0}}"],
- encapsulation: core.ViewEncapsulation.None,
- providers: [MAT_SELECTION_LIST_VALUE_ACCESSOR],
- changeDetection: core.ChangeDetectionStrategy.OnPush
- },] },
- ];
- /** @nocollapse */
- MatSelectionList.ctorParameters = function () { return [
- { type: core.ElementRef },
- { type: String, decorators: [{ type: core.Attribute, args: ['tabindex',] }] }
- ]; };
- MatSelectionList.propDecorators = {
- options: [{ type: core.ContentChildren, args: [MatListOption, { descendants: true },] }],
- selectionChange: [{ type: core.Output }],
- tabIndex: [{ type: core.Input }],
- color: [{ type: core.Input }],
- compareWith: [{ type: core.Input }],
- disabled: [{ type: core.Input }]
- };
- return MatSelectionList;
- }(_MatSelectionListMixinBase));
- /**
- * @fileoverview added by tsickle
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
- */
- var MatListModule = /** @class */ (function () {
- function MatListModule() {
- }
- MatListModule.decorators = [
- { type: core.NgModule, args: [{
- imports: [core$1.MatLineModule, core$1.MatRippleModule, core$1.MatCommonModule, core$1.MatPseudoCheckboxModule, common.CommonModule],
- exports: [
- MatList,
- MatNavList,
- MatListItem,
- MatListAvatarCssMatStyler,
- core$1.MatLineModule,
- core$1.MatCommonModule,
- MatListIconCssMatStyler,
- MatListSubheaderCssMatStyler,
- core$1.MatPseudoCheckboxModule,
- MatSelectionList,
- MatListOption,
- divider.MatDividerModule
- ],
- declarations: [
- MatList,
- MatNavList,
- MatListItem,
- MatListAvatarCssMatStyler,
- MatListIconCssMatStyler,
- MatListSubheaderCssMatStyler,
- MatSelectionList,
- MatListOption
- ],
- },] },
- ];
- return MatListModule;
- }());
- exports.MatListModule = MatListModule;
- exports.MatNavList = MatNavList;
- exports.MatList = MatList;
- exports.MatListAvatarCssMatStyler = MatListAvatarCssMatStyler;
- exports.MatListIconCssMatStyler = MatListIconCssMatStyler;
- exports.MatListSubheaderCssMatStyler = MatListSubheaderCssMatStyler;
- exports.MatListItem = MatListItem;
- exports.MAT_SELECTION_LIST_VALUE_ACCESSOR = MAT_SELECTION_LIST_VALUE_ACCESSOR;
- exports.MatSelectionListChange = MatSelectionListChange;
- exports.MatListOption = MatListOption;
- exports.MatSelectionList = MatSelectionList;
- Object.defineProperty(exports, '__esModule', { value: true });
- })));
- //# sourceMappingURL=material-list.umd.js.map
|