UNPKG

@angular/material

Version:
16 lines 2.5 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/material/icon"),require("rxjs")):"function"==typeof define&&define.amd?define("@angular/material/icon/testing",["exports","@angular/core","@angular/material/icon","rxjs"],e):e(((t=t||self).ng=t.ng||{},t.ng.material=t.ng.material||{},t.ng.material.icon=t.ng.material.icon||{},t.ng.material.icon.testing={}),t.ng.core,t.ng.material.icon,t.rxjs)}(this,(function(t,e,n,r){"use strict"; /** * @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 */var o=function(){function t(){}return t.prototype.addSvgIcon=function(){return this},t.prototype.addSvgIconLiteral=function(){return this},t.prototype.addSvgIconInNamespace=function(){return this},t.prototype.addSvgIconLiteralInNamespace=function(){return this},t.prototype.addSvgIconSet=function(){return this},t.prototype.addSvgIconSetLiteral=function(){return this},t.prototype.addSvgIconSetInNamespace=function(){return this},t.prototype.addSvgIconSetLiteralInNamespace=function(){return this},t.prototype.registerFontClassAlias=function(){return this},t.prototype.classNameForFontAlias=function(t){return t},t.prototype.getDefaultFontSetClass=function(){return"material-icons"},t.prototype.getSvgIconFromUrl=function(){return r.of(this._generateEmptySvg())},t.prototype.getNamedSvgIcon=function(){return r.of(this._generateEmptySvg())},t.prototype.setDefaultFontSetClass=function(){return this},t.prototype.ngOnDestroy=function(){},t.prototype._generateEmptySvg=function(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");return t.classList.add("fake-testing-svg"),t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),t},t.decorators=[{type:e.Injectable}],t}(),i=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{providers:[{provide:n.MatIconRegistry,useClass:o}]}]}],t}(); /** * @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 */ t.FakeMatIconRegistry=o,t.MatIconTestingModule=i,Object.defineProperty(t,"__esModule",{value:!0})}));