1 | {"version":3,"sources":["../../../testing/src/icon/mock-icon-library.service.ts","../../../testing/src/testing.module.ts"],"names":["dummyIcon","prefix","iconName","icon","MockFaIconLibrary","prototype","addIcons","Error","addIconPacks","getIconDefinition","name","Injectable","args","providedIn","NgModule","exports","FontAwesomeModule","providers","provide","FaIconLibrary","useExisting"],"mappings":"wlBAIO,IAAMA,EAA4B,CACvCC,OAAQ,MACRC,SAAU,QACVC,KAAM,CAAC,IAAK,IAAK,GAAI,OAAQ,wCAM/B,SAAAC,YACEA,EAAAC,UAAAC,SAAA,WACE,MAAM,IAAIC,MAAM,qDAGlBH,EAAAC,UAAAG,aAAA,WACE,MAAM,IAAID,MAAM,0DAGlBH,EAAAC,UAAAI,kBAAA,SAAkBR,EAAoBS,GACpC,OAAOV,uHAbVW,EAAAA,WAAUC,KAAA,CAAC,CACVC,WAAY,iBCHd,iCAJCC,EAAAA,SAAQF,KAAA,CAAC,CACRG,QAAS,CAACC,EAAAA,mBACVC,UAAW,CAAC,CAAEC,QAASC,EAAAA,cAAeC,YAAahB","sourcesContent":["import { Injectable } from '@angular/core';\nimport { FaIconLibraryInterface } from '@fortawesome/angular-fontawesome';\nimport { IconDefinition, IconName, IconPrefix } from '@fortawesome/fontawesome-svg-core';\n\nexport const dummyIcon: IconDefinition = {\n prefix: 'fad',\n iconName: 'dummy' as IconName,\n icon: [512, 512, [], 'f030', 'M50 50 H462 V462 H50 Z'],\n};\n\n@Injectable({\n providedIn: 'root',\n})\nexport class MockFaIconLibrary implements FaIconLibraryInterface {\n addIcons() {\n throw new Error('Attempt to add an icon to the MockFaIconLibrary.');\n }\n\n addIconPacks() {\n throw new Error('Attempt to add an icon pack to the MockFaIconLibrary.');\n }\n\n getIconDefinition(prefix: IconPrefix, name: IconName): IconDefinition {\n return dummyIcon;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { FaIconLibrary, FontAwesomeModule } from '@fortawesome/angular-fontawesome';\nimport { MockFaIconLibrary } from './icon/mock-icon-library.service';\n\n@NgModule({\n exports: [FontAwesomeModule],\n providers: [{ provide: FaIconLibrary, useExisting: MockFaIconLibrary }],\n})\nexport class FontAwesomeTestingModule {}\n"]} |
---|