/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { NbIconComponent } from './icon.component'; import { NbIconLibraries } from './icon-libraries'; @NgModule({ imports: [ CommonModule, ], declarations: [ NbIconComponent, ], exports: [ NbIconComponent, ], }) export class NbIconModule { private essentialsPackName = 'nebular-essentials'; constructor(private iconsLibrary: NbIconLibraries) { // in case of consequent calls we don't need to enable `nebular-essentials` pack again if (this.iconsLibrary.getPack(this.essentialsPackName)) { return; } // tslint:disable:max-line-length this.iconsLibrary.registerSvgPack(this.essentialsPackName, { 'chevron-down-outline': '', 'chevron-up-outline': '', 'chevron-left-outline': '', 'chevron-right-outline': '', 'checkmark-outline': '', 'paper-plane-outline': '', 'file-text-outline': '', 'alert-triangle-outline': '', 'question-mark-outline': '', 'email-outline': '', 'flash-outline': '', 'search-outline': '', 'close-outline': '', 'collapse-outline': '', 'expand-outline': '', 'minus-outline': '', 'minus-bold-outline': '', 'checkmark-bold-outline': '', 'arrow-back': '', }); // tslint:enable:max-line-length } }