blob: b6606026913fe99476ac4690eda6fa8f8ac0bb48 [file] [log] [blame]
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/material/menu"),require("@angular/material/icon"),require("@angular/material/button"),require("@angular/material/list"),require("@covalent/core/menu")):"function"==typeof define&&define.amd?define("@covalent/core/user-profile",["exports","@angular/core","@angular/common","@angular/material/menu","@angular/material/icon","@angular/material/button","@angular/material/list","@covalent/core/menu"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).covalent=e.covalent||{},e.covalent.core=e.covalent.core||{},e.covalent.core["user-profile"]={}),e.ng.core,e.ng.common,e.ng.material.menu,e.ng.material.icon,e.ng.material.button,e.ng.material.list,e.covalent.core.menu)}(this,(function(e,t,n,a,o,i,r,l){"use strict";var m=function(){function e(){}return e.prototype._blockEvent=function(e){e.preventDefault(),e.stopPropagation()},e}();m.decorators=[{type:t.Component,args:[{selector:"td-user-profile-menu",template:'<td-menu class="user-profile-menu">\n \x3c!--header--\x3e\n <mat-list td-menu-header>\n <mat-list-item *ngIf="name || email" (click)="_blockEvent($event)">\n <mat-icon matListAvatar>person</mat-icon>\n <span matLine *ngIf="name" class="mat-body-1">{{ name }}</span>\n <span matLine *ngIf="email">{{ email }}</span>\n </mat-list-item>\n <ng-content select="[td-user-info-list]"></ng-content>\n </mat-list>\n \x3c!--content--\x3e\n <mat-action-list>\n <ng-content select="[td-user-action-list]"></ng-content>\n </mat-action-list>\n</td-menu>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".user-profile-menu [td-menu-header]{padding-bottom:0;text-align:left}::ng-deep [mat-list-item] .mat-list-item-content .mat-icon[matListAvatar],::ng-deep mat-list-item:not(:first-child) .mat-list-item-content .mat-icon[matListAvatar]{background:none}.mat-action-list{padding-top:0}:host ::ng-deep .mat-action-list .mat-divider,:host ::ng-deep .mat-divider{margin:8px 0}:host ::ng-deep mat-divider:last-child{display:none}:host ::ng-deep mat-list .mat-list-item.mat-2-line .mat-list-item-content{height:inherit}:host ::ng-deep mat-list .mat-list-item .mat-list-item-content{padding:8px}td-menu{margin-bottom:0}"]}]}],m.propDecorators={email:[{type:t.Input}],name:[{type:t.Input}]};var s=function(){};s.decorators=[{type:t.Component,args:[{selector:"td-user-profile",template:'<button mat-icon-button [matMenuTriggerFor]="accountMenu">\n <mat-icon>person</mat-icon>\n</button>\n\n<mat-menu #accountMenu="matMenu" [overlapTrigger]="false">\n <td-user-profile-menu [name]="name" [email]="email">\n <ng-content select="[td-user-info-list]" td-user-info-list></ng-content>\n <ng-content select="[td-user-action-list]" td-user-action-list></ng-content>\n </td-user-profile-menu>\n</mat-menu>\n',changeDetection:t.ChangeDetectionStrategy.OnPush}]}],s.propDecorators={name:[{type:t.Input}],email:[{type:t.Input}]};var u=function(){};u.decorators=[{type:t.NgModule,args:[{declarations:[s,m],imports:[n.CommonModule,a.MatMenuModule,o.MatIconModule,i.MatButtonModule,r.MatListModule,l.CovalentMenuModule],providers:[],exports:[s,m]}]}],e.CovalentUserProfileModule=u,e.TdUserProfileComponent=s,e.TdUserProfileMenuComponent=m,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=covalent-core-user-profile.umd.min.js.map