@ngaox/icons
Advanced tools
Comparing version 3.6.0 to 4.0.0
@@ -0,1 +1,2 @@ | ||
export * from '@ngaox/devkit/common/icons'; | ||
export * from './lib/icons.service'; | ||
@@ -2,0 +3,0 @@ export * from './lib/icon.component'; |
@@ -1,2 +0,3 @@ | ||
import { ICompactIcons, INgaoxIcon } from '../models'; | ||
import { INgaoxIcon } from '@ngaox/devkit/common/icons'; | ||
import { ICompactIcons } from '../models'; | ||
export declare function CompactIconsAdapter(icons: ICompactIcons): INgaoxIcon[]; |
export * from './compact.adapter'; | ||
export * from './built.adapter'; |
@@ -1,6 +0,6 @@ | ||
import { OnChanges, OnInit } from '@angular/core'; | ||
import { OnChanges, OnDestroy, OnInit } from '@angular/core'; | ||
import { DomSanitizer, SafeHtml } from '@angular/platform-browser'; | ||
import { IconsService } from './icons.service'; | ||
import * as i0 from "@angular/core"; | ||
export declare class IconComponent implements OnInit, OnChanges { | ||
export declare class IconComponent implements OnInit, OnChanges, OnDestroy { | ||
private icons; | ||
@@ -13,7 +13,9 @@ private sanitizer; | ||
height?: string; | ||
private _iconSubscription?; | ||
constructor(icons: IconsService, sanitizer: DomSanitizer); | ||
ngOnDestroy(): void; | ||
ngOnChanges(): void; | ||
ngOnInit(): void; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "ngaox-icon", never, { "name": "name"; "url": "url"; "width": "width"; "height": "height"; }, {}, never, ["*"]>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "ngaox-icon", never, { "name": "name"; "url": "url"; "width": "width"; "height": "height"; }, {}, never, never>; | ||
} |
import { ModuleWithProviders } from '@angular/core'; | ||
import { IconsService } from './icons.service'; | ||
import { INgaoxIcon } from './models'; | ||
import { INgaoxIcon } from '@ngaox/devkit/common/icons'; | ||
import * as i0 from "@angular/core"; | ||
@@ -5,0 +5,0 @@ import * as i1 from "./icon.component"; |
import { HttpClient } from '@angular/common/http'; | ||
import { Observable } from 'rxjs'; | ||
import { ILazyIcon } from './models'; | ||
import { ILazyIcon } from '@ngaox/devkit/common/icons'; | ||
import * as i0 from "@angular/core"; | ||
@@ -5,0 +5,0 @@ export declare class IconsService { |
import { InjectionToken } from '@angular/core'; | ||
import { ILazyIcon } from '@ngaox/devkit/common/icons'; | ||
export declare const NGAOX_FALLBACK: InjectionToken<string>; | ||
export interface ILazyIcon { | ||
url: string; | ||
lazy: true; | ||
} | ||
export interface INgaoxIcon { | ||
name: string; | ||
data: string | ILazyIcon; | ||
} | ||
export interface ICompactIcons { | ||
[name: string]: string | ILazyIcon; | ||
} |
{ | ||
"name": "@ngaox/icons", | ||
"version": "3.6.0", | ||
"version": "4.0.0", | ||
"description": "Inline SVG icons from (src | files | your favorite icons library | ...)!", | ||
@@ -34,3 +34,3 @@ "ng-add": { | ||
}, | ||
"homepage": "https://github.com/ngaox/ngaox/tree/main/packages/icons", | ||
"homepage": "https://ngaox-lab.web.app/", | ||
"module": "fesm2015/ngaox-icons.mjs", | ||
@@ -37,0 +37,0 @@ "es2020": "fesm2020/ngaox-icons.mjs", |
@@ -14,3 +14,3 @@ # Ngaox Icons | ||
```html | ||
<svg-icon name="my-icon" width="100px"></svg-icon> | ||
<ngaox-icon name="my-icon" width="100px"></ngaox-icon> | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
93183
24
982