| !function(o,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/material/core"),require("@angular/cdk/platform"),require("@angular/common")):"function"==typeof define&&define.amd?define("@angular/material/toolbar",["exports","@angular/core","@angular/material/core","@angular/cdk/platform","@angular/common"],t):t(((o=o||self).ng=o.ng||{},o.ng.material=o.ng.material||{},o.ng.material.toolbar={}),o.ng.core,o.ng.material.core,o.ng.cdk.platform,o.ng.common)}(this,(function(o,t,e,r,n){"use strict"; |
| /*! ***************************************************************************** |
| Copyright (c) Microsoft Corporation. |
| |
| Permission to use, copy, modify, and/or distribute this software for any |
| purpose with or without fee is hereby granted. |
| |
| THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH |
| REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |
| AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, |
| INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM |
| LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
| OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| PERFORMANCE OF THIS SOFTWARE. |
| ***************************************************************************** */var a,l=function(o,t){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,t){o.__proto__=t}||function(o,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])})(o,t)},i=e.mixinColor((function c(o){this._elementRef=o}));(a=function a(){}).decorators=[{type:t.Directive,args:[{selector:"mat-toolbar-row",exportAs:"matToolbarRow",host:{class:"mat-toolbar-row"}}]}];var s,u=function(o){function t(t,e,r){var n=o.call(this,t)||this;return n._platform=e,n._document=r,n}return function e(o,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=o}l(o,t),o.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}(t,o),t.prototype.ngAfterViewInit=function(){var o=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe((function(){return o._checkToolbarMixedModes()})))},t.prototype._checkToolbarMixedModes=function(){},t}(i);u.decorators=[{type:t.Component,args:[{selector:"mat-toolbar",exportAs:"matToolbar",template:'<ng-content></ng-content>\n<ng-content select="mat-toolbar-row"></ng-content>\n',inputs:["color"],host:{class:"mat-toolbar","[class.mat-toolbar-multiple-rows]":"_toolbarRows.length > 0","[class.mat-toolbar-single-row]":"_toolbarRows.length === 0"},changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"]}]}],u.ctorParameters=function(){return[{type:t.ElementRef},{type:r.Platform},{type:void 0,decorators:[{type:t.Inject,args:[n.DOCUMENT]}]}]},u.propDecorators={_toolbarRows:[{type:t.ContentChildren,args:[a,{descendants:!0}]}]},(s=function s(){}).decorators=[{type:t.NgModule,args:[{imports:[e.MatCommonModule],exports:[u,a,e.MatCommonModule],declarations:[u,a]}]}], |
| /** |
| * @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 |
| */ |
| o.MatToolbar=u,o.MatToolbarModule=s,o.MatToolbarRow=a,o.throwToolbarMixedModesError=function p(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content inside of a `<mat-toolbar>` for a single row.")} |
| /** |
| * @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 |
| */,Object.defineProperty(o,"__esModule",{value:!0})})); |