@ng-icons/core 26.2.1 → 26.3.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 +67 -0
- package/esm2022/index.mjs +7 -4
- package/esm2022/lib/components/glyph/glyph.component.mjs +105 -0
- package/esm2022/lib/components/icon/icon-name.mjs +2 -0
- package/esm2022/lib/components/icon/icon.component.mjs +116 -0
- package/esm2022/lib/icon.module.mjs +2 -2
- package/esm2022/lib/providers/glyph-config.provider.mjs +30 -0
- package/esm2022/lib/providers/glyph.provider.mjs +21 -0
- package/esm2022/lib/utils/coercion.mjs +4 -0
- package/fesm2022/ng-icons-core.mjs +157 -7
- package/fesm2022/ng-icons-core.mjs.map +1 -1
- package/index.d.ts +6 -3
- package/lib/components/glyph/glyph.component.d.ts +58 -0
- package/lib/{icon.component.d.ts → components/icon/icon.component.d.ts} +1 -1
- package/lib/icon.module.d.ts +2 -2
- package/lib/providers/glyph-config.provider.d.ts +27 -0
- package/lib/providers/glyph.provider.d.ts +12 -0
- package/lib/utils/coercion.d.ts +1 -0
- package/package.json +1 -1
- package/esm2022/lib/icon-name.mjs +0 -2
- package/esm2022/lib/icon.component.mjs +0 -118
- /package/lib/{icon-name.d.ts → components/icon/icon-name.d.ts} +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { InjectionToken, Provider } from '@angular/core';
|
|
2
|
+
export interface NgGlyphConfig {
|
|
3
|
+
/** Define the default size of glyph */
|
|
4
|
+
size: string | number;
|
|
5
|
+
/** Define the optical size of the glyph */
|
|
6
|
+
opticalSize?: number;
|
|
7
|
+
/** Define the default color of glyph */
|
|
8
|
+
color?: string;
|
|
9
|
+
/** Define the default weight of glyph */
|
|
10
|
+
weight?: number;
|
|
11
|
+
/** Define the default grade of glyph */
|
|
12
|
+
grade?: number;
|
|
13
|
+
/** Define the default fill of glyph */
|
|
14
|
+
fill?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const NgGlyphConfigToken: InjectionToken<Required<NgGlyphConfig>>;
|
|
17
|
+
/**
|
|
18
|
+
* Provide the configuration for the glyph
|
|
19
|
+
* @param config The configuration to use
|
|
20
|
+
*/
|
|
21
|
+
export declare function provideNgGlyphsConfig(config: Partial<NgGlyphConfig>): Provider;
|
|
22
|
+
/**
|
|
23
|
+
* Inject the configuration for the glyphs
|
|
24
|
+
* @returns The configuration to use
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare function injectNgGlyphsConfig(): Required<NgGlyphConfig>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EnvironmentProviders, InjectionToken } from '@angular/core';
|
|
2
|
+
export declare const NgGlyphsToken: InjectionToken<NgGlyphs>;
|
|
3
|
+
export declare function provideNgGlyphs(...glyphsets: NgGlyphset[]): EnvironmentProviders;
|
|
4
|
+
export declare function injectNgGlyphs(): NgGlyphs;
|
|
5
|
+
export interface NgGlyphset {
|
|
6
|
+
name: string;
|
|
7
|
+
baseClass: string;
|
|
8
|
+
}
|
|
9
|
+
export interface NgGlyphs {
|
|
10
|
+
defaultGlyphset: string;
|
|
11
|
+
glyphsets: NgGlyphset[];
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function coerceCssPixelValue(value: string): string;
|