@ng-icons/core 13.2.1 → 14.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +104 -100
- package/esm2020/index.mjs +3 -3
- package/esm2020/lib/icon.component.mjs +67 -67
- package/esm2020/lib/icon.module.mjs +33 -33
- package/esm2020/lib/icon.service.mjs +25 -25
- package/esm2020/lib/utils/format.mjs +22 -22
- package/esm2020/ng-icons-core.mjs +4 -4
- package/fesm2015/ng-icons-core.mjs +127 -127
- package/fesm2015/ng-icons-core.mjs.map +1 -1
- package/fesm2020/ng-icons-core.mjs +127 -127
- package/fesm2020/ng-icons-core.mjs.map +1 -1
- package/index.d.ts +2 -2
- package/lib/icon.component.d.ts +24 -24
- package/lib/icon.module.d.ts +17 -17
- package/lib/icon.service.d.ts +13 -13
- package/lib/utils/format.d.ts +12 -12
- package/ng-icons-core.d.ts +5 -5
- package/package.json +6 -1
package/lib/icon.component.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
|
-
import { IconService } from './icon.service';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class IconComponent {
|
|
6
|
-
private readonly elementRef;
|
|
7
|
-
private readonly sanitizer;
|
|
8
|
-
private readonly iconService;
|
|
9
|
-
/** Define the name of the icon to display */
|
|
10
|
-
set name(name: string);
|
|
11
|
-
/** Store the formatted icon name */
|
|
12
|
-
template?: SafeHtml;
|
|
13
|
-
/** Define the size of the icon */
|
|
14
|
-
set size(size: string);
|
|
15
|
-
get size(): string;
|
|
16
|
-
private _size;
|
|
17
|
-
/** Define the stroke-width of the icon */
|
|
18
|
-
strokeWidth?: string | number;
|
|
19
|
-
/** Define the color of the icon */
|
|
20
|
-
color?: string;
|
|
21
|
-
constructor(elementRef: ElementRef<HTMLElement>, sanitizer: DomSanitizer, iconService: IconService);
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "ng-icon", never, { "name": "name"; "size": "size"; "strokeWidth": "strokeWidth"; "color": "color"; }, {}, never, never>;
|
|
24
|
-
}
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
|
+
import { IconService } from './icon.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class IconComponent {
|
|
6
|
+
private readonly elementRef;
|
|
7
|
+
private readonly sanitizer;
|
|
8
|
+
private readonly iconService;
|
|
9
|
+
/** Define the name of the icon to display */
|
|
10
|
+
set name(name: string);
|
|
11
|
+
/** Store the formatted icon name */
|
|
12
|
+
template?: SafeHtml;
|
|
13
|
+
/** Define the size of the icon */
|
|
14
|
+
set size(size: string);
|
|
15
|
+
get size(): string;
|
|
16
|
+
private _size;
|
|
17
|
+
/** Define the stroke-width of the icon */
|
|
18
|
+
strokeWidth?: string | number;
|
|
19
|
+
/** Define the color of the icon */
|
|
20
|
+
color?: string;
|
|
21
|
+
constructor(elementRef: ElementRef<HTMLElement>, sanitizer: DomSanitizer, iconService: IconService);
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "ng-icon", never, { "name": "name"; "size": "size"; "strokeWidth": "strokeWidth"; "color": "color"; }, {}, never, never>;
|
|
24
|
+
}
|
package/lib/icon.module.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { IconService } from './icon.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "./icon.component";
|
|
5
|
-
export declare class NgIconsModule {
|
|
6
|
-
private readonly iconService;
|
|
7
|
-
constructor(iconService: IconService);
|
|
8
|
-
/**
|
|
9
|
-
* Define the icons that will be included in the application. This allows unused icons to
|
|
10
|
-
* be tree-shaken away to reduce bundle size
|
|
11
|
-
* @param icons The object containing the required icons
|
|
12
|
-
*/
|
|
13
|
-
static withIcons(icons: Record<string, string>): ModuleWithProviders<NgIconsModule>;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgIconsModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgIconsModule, [typeof i1.IconComponent], never, [typeof i1.IconComponent]>;
|
|
16
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<NgIconsModule>;
|
|
17
|
-
}
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { IconService } from './icon.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./icon.component";
|
|
5
|
+
export declare class NgIconsModule {
|
|
6
|
+
private readonly iconService;
|
|
7
|
+
constructor(iconService: IconService);
|
|
8
|
+
/**
|
|
9
|
+
* Define the icons that will be included in the application. This allows unused icons to
|
|
10
|
+
* be tree-shaken away to reduce bundle size
|
|
11
|
+
* @param icons The object containing the required icons
|
|
12
|
+
*/
|
|
13
|
+
static withIcons(icons: Record<string, string>): ModuleWithProviders<NgIconsModule>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgIconsModule, never>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgIconsModule, [typeof i1.IconComponent], never, [typeof i1.IconComponent]>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgIconsModule>;
|
|
17
|
+
}
|
package/lib/icon.service.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class IconService {
|
|
3
|
-
/** Store the available icons. */
|
|
4
|
-
private static icons;
|
|
5
|
-
/** Access the icons in the class. */
|
|
6
|
-
get icons(): Readonly<Record<string, string>>;
|
|
7
|
-
/**
|
|
8
|
-
* Insert icons into the iconset
|
|
9
|
-
*/
|
|
10
|
-
static addIcons(icons: Record<string, string>): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IconService, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IconService>;
|
|
13
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class IconService {
|
|
3
|
+
/** Store the available icons. */
|
|
4
|
+
private static icons;
|
|
5
|
+
/** Access the icons in the class. */
|
|
6
|
+
get icons(): Readonly<Record<string, string>>;
|
|
7
|
+
/**
|
|
8
|
+
* Insert icons into the iconset
|
|
9
|
+
*/
|
|
10
|
+
static addIcons(icons: Record<string, string>): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<IconService>;
|
|
13
|
+
}
|
package/lib/utils/format.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hyphenated to UpperCamelCase
|
|
3
|
-
*/
|
|
4
|
-
export declare function toUpperCamelCase(str: string): string;
|
|
5
|
-
/**
|
|
6
|
-
* Hyphenated to lowerCamelCase
|
|
7
|
-
*/
|
|
8
|
-
export declare function toPropertyName(str: string): string;
|
|
9
|
-
/**
|
|
10
|
-
* Capitalizes the first letter of a string
|
|
11
|
-
*/
|
|
12
|
-
export declare function toCapitalCase(str: string): string;
|
|
1
|
+
/**
|
|
2
|
+
* Hyphenated to UpperCamelCase
|
|
3
|
+
*/
|
|
4
|
+
export declare function toUpperCamelCase(str: string): string;
|
|
5
|
+
/**
|
|
6
|
+
* Hyphenated to lowerCamelCase
|
|
7
|
+
*/
|
|
8
|
+
export declare function toPropertyName(str: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Capitalizes the first letter of a string
|
|
11
|
+
*/
|
|
12
|
+
export declare function toCapitalCase(str: string): string;
|
package/ng-icons-core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
/// <amd-module name="@ng-icons/core" />
|
|
5
|
-
export * from './index';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="@ng-icons/core" />
|
|
5
|
+
export * from './index';
|
package/package.json
CHANGED