@ng-icons/core 27.5.2 → 28.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 +4 -1
- package/esm2022/lib/components/glyph/glyph.component.mjs +3 -3
- package/esm2022/lib/components/icon/icon.component.mjs +4 -4
- package/esm2022/lib/icon.module.mjs +4 -4
- package/fesm2022/ng-icons-core.mjs +11 -11
- package/fesm2022/ng-icons-core.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
# Ng Icons
|
|
10
10
|
|
|
11
11
|
The all-in-one icon library for Angular. This allows you to use icons from multiple icon sets with a single icon component.
|
|
12
|
-
Containing over
|
|
12
|
+
Containing over 53,600 icons for you to use in your projects.
|
|
13
13
|
|
|
14
14
|
Currently, we support the following libraries:
|
|
15
15
|
|
|
@@ -37,6 +37,7 @@ Currently, we support the following libraries:
|
|
|
37
37
|
- [Iconsax](https://iconsax.io/)
|
|
38
38
|
- [TDesign Icons](https://github.com/Tencent/tdesign-icons)
|
|
39
39
|
- [Lets Icons](https://www.figma.com/community/file/886554014393250663/free-icon-pack-1800-icons)
|
|
40
|
+
- [Huge Icons](https://hugeicons.com/)
|
|
40
41
|
|
|
41
42
|
Got suggestions for additional iconsets? Create an issue and we can consider adding them!
|
|
42
43
|
|
|
@@ -57,6 +58,7 @@ Ng Icons is an MIT-licensed open source project with its ongoing development mad
|
|
|
57
58
|
| 15.x.x | 23.x.x - 24.x.x |
|
|
58
59
|
| 16.x.x | 25.x.x |
|
|
59
60
|
| 17.x.x | 26.x.x - 27.x.x |
|
|
61
|
+
| 18.x.x | 28.x.x |
|
|
60
62
|
|
|
61
63
|
> **Note**: Ng Icons relies on modern browser features and is designed to work on evergreen browsers. We do not support older browsers such as IE11.
|
|
62
64
|
|
|
@@ -108,6 +110,7 @@ The following packages are available:
|
|
|
108
110
|
| `@ng-icons/tdesign-icons` | MIT |
|
|
109
111
|
| `@ng-icons/phosphor-icons` | MIT |
|
|
110
112
|
| `@ng-icons/lets-icons` | CC-BY-4.0 |
|
|
113
|
+
| `@ng-icons/huge-icons` | CC0-1.0 |
|
|
111
114
|
|
|
112
115
|
## Usage
|
|
113
116
|
|
|
@@ -58,10 +58,10 @@ export class NgGlyph {
|
|
|
58
58
|
get fontVariationSettings() {
|
|
59
59
|
return `'FILL' ${this.fill ? 1 : 0}, 'wght' ${this.weight}, 'GRAD' ${this.grade}, 'opsz' ${this.opticalSize}`;
|
|
60
60
|
}
|
|
61
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
62
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "
|
|
61
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NgGlyph, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
62
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.0.0", type: NgGlyph, isStandalone: true, selector: "ng-glyph", inputs: { name: "name", glyphset: "glyphset", opticalSize: ["opticalSize", "opticalSize", numberAttribute], weight: ["weight", "weight", numberAttribute], grade: ["grade", "grade", numberAttribute], fill: ["fill", "fill", booleanAttribute], size: ["size", "size", coerceCssPixelValue], color: "color" }, host: { properties: { "textContent": "this.name", "style.--ng-glyph__size": "this.size", "style.color": "this.color", "class": "this.glyphsetClass", "style.font-variation-settings": "this.fontVariationSettings" } }, ngImport: i0, template: ``, isInline: true, styles: [":host{display:inline-block;width:var(--ng-glyph__size);height:var(--ng-glyph__size);font-size:var(--ng-glyph__size);overflow:hidden}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
63
63
|
}
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NgGlyph, decorators: [{
|
|
65
65
|
type: Component,
|
|
66
66
|
args: [{ selector: 'ng-glyph', standalone: true, template: ``, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-block;width:var(--ng-glyph__size);height:var(--ng-glyph__size);font-size:var(--ng-glyph__size);overflow:hidden}\n"] }]
|
|
67
67
|
}], propDecorators: { name: [{
|
|
@@ -145,12 +145,12 @@ export class NgIcon {
|
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
149
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "
|
|
148
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NgIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
149
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.0.0", type: NgIcon, isStandalone: true, selector: "ng-icon", inputs: { name: "name", svg: "svg", size: ["size", "size", coerceCssPixelValue], strokeWidth: "strokeWidth", color: "color" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true, styles: [":host{display:inline-block;width:var(--ng-icon__size, 1em);height:var(--ng-icon__size, 1em);line-height:initial;vertical-align:initial;overflow:hidden}:host ::ng-deep svg{width:inherit;height:inherit;vertical-align:inherit}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
150
150
|
}
|
|
151
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
151
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NgIcon, decorators: [{
|
|
152
152
|
type: Component,
|
|
153
|
-
args: [{ selector: 'ng-icon', template: '', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-block;width:var(--ng-icon__size);height:var(--ng-icon__size);overflow:hidden}\n"] }]
|
|
153
|
+
args: [{ selector: 'ng-icon', template: '', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-block;width:var(--ng-icon__size, 1em);height:var(--ng-icon__size, 1em);line-height:initial;vertical-align:initial;overflow:hidden}:host ::ng-deep svg{width:inherit;height:inherit;vertical-align:inherit}\n"] }]
|
|
154
154
|
}], propDecorators: { name: [{
|
|
155
155
|
type: Input
|
|
156
156
|
}], svg: [{
|
|
@@ -16,11 +16,11 @@ export class NgIconsModule {
|
|
|
16
16
|
static withIcons(icons) {
|
|
17
17
|
return { ngModule: NgIconsModule, providers: provideIcons(icons) };
|
|
18
18
|
}
|
|
19
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
20
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
21
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NgIconsModule, deps: [{ token: NgIconsToken }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
20
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0", ngImport: i0, type: NgIconsModule, imports: [NgIcon], exports: [NgIcon] }); }
|
|
21
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NgIconsModule }); }
|
|
22
22
|
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NgIconsModule, decorators: [{
|
|
24
24
|
type: NgModule,
|
|
25
25
|
args: [{
|
|
26
26
|
imports: [NgIcon],
|
|
@@ -109,10 +109,10 @@ class NgGlyph {
|
|
|
109
109
|
get fontVariationSettings() {
|
|
110
110
|
return `'FILL' ${this.fill ? 1 : 0}, 'wght' ${this.weight}, 'GRAD' ${this.grade}, 'opsz' ${this.opticalSize}`;
|
|
111
111
|
}
|
|
112
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
113
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "
|
|
112
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NgGlyph, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
113
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.0.0", type: NgGlyph, isStandalone: true, selector: "ng-glyph", inputs: { name: "name", glyphset: "glyphset", opticalSize: ["opticalSize", "opticalSize", numberAttribute], weight: ["weight", "weight", numberAttribute], grade: ["grade", "grade", numberAttribute], fill: ["fill", "fill", booleanAttribute], size: ["size", "size", coerceCssPixelValue], color: "color" }, host: { properties: { "textContent": "this.name", "style.--ng-glyph__size": "this.size", "style.color": "this.color", "class": "this.glyphsetClass", "style.font-variation-settings": "this.fontVariationSettings" } }, ngImport: i0, template: ``, isInline: true, styles: [":host{display:inline-block;width:var(--ng-glyph__size);height:var(--ng-glyph__size);font-size:var(--ng-glyph__size);overflow:hidden}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
114
114
|
}
|
|
115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NgGlyph, decorators: [{
|
|
116
116
|
type: Component,
|
|
117
117
|
args: [{ selector: 'ng-glyph', standalone: true, template: ``, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-block;width:var(--ng-glyph__size);height:var(--ng-glyph__size);font-size:var(--ng-glyph__size);overflow:hidden}\n"] }]
|
|
118
118
|
}], propDecorators: { name: [{
|
|
@@ -492,12 +492,12 @@ class NgIcon {
|
|
|
492
492
|
});
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
496
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "
|
|
495
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NgIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
496
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.0.0", type: NgIcon, isStandalone: true, selector: "ng-icon", inputs: { name: "name", svg: "svg", size: ["size", "size", coerceCssPixelValue], strokeWidth: "strokeWidth", color: "color" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true, styles: [":host{display:inline-block;width:var(--ng-icon__size, 1em);height:var(--ng-icon__size, 1em);line-height:initial;vertical-align:initial;overflow:hidden}:host ::ng-deep svg{width:inherit;height:inherit;vertical-align:inherit}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
497
497
|
}
|
|
498
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NgIcon, decorators: [{
|
|
499
499
|
type: Component,
|
|
500
|
-
args: [{ selector: 'ng-icon', template: '', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-block;width:var(--ng-icon__size);height:var(--ng-icon__size);overflow:hidden}\n"] }]
|
|
500
|
+
args: [{ selector: 'ng-icon', template: '', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-block;width:var(--ng-icon__size, 1em);height:var(--ng-icon__size, 1em);line-height:initial;vertical-align:initial;overflow:hidden}:host ::ng-deep svg{width:inherit;height:inherit;vertical-align:inherit}\n"] }]
|
|
501
501
|
}], propDecorators: { name: [{
|
|
502
502
|
type: Input
|
|
503
503
|
}], svg: [{
|
|
@@ -525,11 +525,11 @@ class NgIconsModule {
|
|
|
525
525
|
static withIcons(icons) {
|
|
526
526
|
return { ngModule: NgIconsModule, providers: provideIcons(icons) };
|
|
527
527
|
}
|
|
528
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
529
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
530
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
528
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NgIconsModule, deps: [{ token: NgIconsToken }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
529
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0", ngImport: i0, type: NgIconsModule, imports: [NgIcon], exports: [NgIcon] }); }
|
|
530
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NgIconsModule }); }
|
|
531
531
|
}
|
|
532
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
532
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0", ngImport: i0, type: NgIconsModule, decorators: [{
|
|
533
533
|
type: NgModule,
|
|
534
534
|
args: [{
|
|
535
535
|
imports: [NgIcon],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-icons-core.mjs","sources":["../../../../packages/core/src/lib/providers/glyph-config.provider.ts","../../../../packages/core/src/lib/providers/glyph.provider.ts","../../../../packages/core/src/lib/utils/coercion.ts","../../../../packages/core/src/lib/components/glyph/glyph.component.ts","../../../../packages/core/src/lib/providers/features/features.ts","../../../../packages/core/src/lib/providers/features/csp.ts","../../../../packages/core/src/lib/providers/icon-config.provider.ts","../../../../packages/core/src/lib/providers/icon-loader.provider.ts","../../../../packages/core/src/lib/providers/icon.provider.ts","../../../../packages/core/src/lib/utils/async.ts","../../../../packages/core/src/lib/utils/format.ts","../../../../packages/core/src/lib/providers/features/logger.ts","../../../../packages/core/src/lib/components/icon/icon.component.ts","../../../../packages/core/src/lib/icon.module.ts","../../../../packages/core/src/ng-icons-core.ts"],"sourcesContent":["import { InjectionToken, Provider, inject } from '@angular/core';\n\nexport interface NgGlyphConfig {\n /** Define the default size of glyph */\n size: string | number;\n /** Define the optical size of the glyph */\n opticalSize?: number;\n /** Define the default color of glyph */\n color?: string;\n /** Define the default weight of glyph */\n weight?: number;\n /** Define the default grade of glyph */\n grade?: number;\n /** Define the default fill of glyph */\n fill?: boolean;\n}\n\nexport const NgGlyphConfigToken = new InjectionToken<Required<NgGlyphConfig>>(\n 'Ng Glyph Config',\n);\n\nconst defaultConfig: NgGlyphConfig = {\n size: '1em',\n opticalSize: 20,\n weight: 400,\n grade: 0,\n fill: false,\n};\n\n/**\n * Provide the configuration for the glyph\n * @param config The configuration to use\n */\nexport function provideNgGlyphsConfig(\n config: Partial<NgGlyphConfig>,\n): Provider {\n return {\n provide: NgGlyphConfigToken,\n useValue: { ...defaultConfig, ...config },\n };\n}\n\n/**\n * Inject the configuration for the glyphs\n * @returns The configuration to use\n * @internal\n */\nexport function injectNgGlyphsConfig(): Required<NgGlyphConfig> {\n return (inject(NgGlyphConfigToken, { optional: true }) ??\n defaultConfig) as Required<NgGlyphConfig>;\n}\n","import {\n EnvironmentProviders,\n InjectionToken,\n inject,\n makeEnvironmentProviders,\n} from '@angular/core';\n\nexport const NgGlyphsToken = new InjectionToken<NgGlyphs>('NgGlyphsToken');\n\nexport function provideNgGlyphs(\n ...glyphsets: NgGlyphset[]\n): EnvironmentProviders {\n // if there are no glyphsets, throw an error\n if (!glyphsets.length) {\n throw new Error('Please provide at least one glyphset.');\n }\n\n // the default glyphset is the first one\n const defaultGlyphset = glyphsets[0].name;\n\n return makeEnvironmentProviders([\n { provide: NgGlyphsToken, useValue: { defaultGlyphset, glyphsets } },\n ]);\n}\n\nexport function injectNgGlyphs(): NgGlyphs {\n const glyphs = inject(NgGlyphsToken, { optional: true });\n\n if (!glyphs) {\n throw new Error(\n 'Please provide the glyphs using the provideNgGlyphs() function.',\n );\n }\n\n return glyphs;\n}\n\nexport interface NgGlyphset {\n name: string;\n baseClass: string;\n}\n\nexport interface NgGlyphs {\n defaultGlyphset: string;\n glyphsets: NgGlyphset[];\n}\n","export function coerceCssPixelValue(value: string): string {\n return value == null ? '' : /^\\d+$/.test(value) ? `${value}px` : value;\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Input,\n booleanAttribute,\n numberAttribute,\n} from '@angular/core';\nimport { injectNgGlyphsConfig } from '../../providers/glyph-config.provider';\nimport { injectNgGlyphs } from '../../providers/glyph.provider';\nimport { coerceCssPixelValue } from '../../utils/coercion';\n\n@Component({\n selector: 'ng-glyph',\n standalone: true,\n template: ``,\n styleUrl: './glyph.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgGlyph {\n /**\n * Access the available glyphsets\n */\n private readonly glyphsets = injectNgGlyphs();\n\n /**\n * Access the default configuration\n */\n private readonly config = injectNgGlyphsConfig();\n\n /**\n * Define the name of the glyph to display\n */\n @HostBinding('textContent')\n @Input({ required: true })\n name!: string;\n\n /**\n * Define the glyphset to use\n */\n @Input()\n glyphset: string = this.glyphsets.defaultGlyphset;\n\n /**\n * Define the optical size of the glyph\n */\n @Input({ transform: numberAttribute }) opticalSize: number =\n this.config.opticalSize;\n\n /**\n * Define the weight of the glyph\n */\n @Input({ transform: numberAttribute }) weight: number = this.config.weight;\n\n /**\n * Define the grade of the glyph\n */\n @Input({ transform: numberAttribute }) grade: number = this.config.grade;\n\n /**\n * Define the fill of the glyph\n */\n @Input({ transform: booleanAttribute }) fill: boolean = this.config.fill;\n\n /**\n * Define the size of the glyph\n */\n @HostBinding('style.--ng-glyph__size')\n @Input({ transform: coerceCssPixelValue })\n size?: string | number = this.config.size;\n\n /**\n * Define the color of the glyph\n */\n @HostBinding('style.color')\n @Input()\n color?: string = this.config.color;\n\n /**\n * Derive the glyphset class from the glyphset name\n */\n @HostBinding('class')\n get glyphsetClass(): string {\n const glyphset = this.glyphsets.glyphsets.find(\n glyphset => glyphset.name === this.glyphset,\n );\n\n if (!glyphset) {\n throw new Error(\n `The glyphset \"${this.glyphset}\" does not exist. Please provide a valid glyphset.`,\n );\n }\n\n return glyphset.baseClass;\n }\n\n /**\n * Define the font variation settings of the glyph\n */\n @HostBinding('style.font-variation-settings')\n get fontVariationSettings(): string {\n return `'FILL' ${this.fill ? 1 : 0}, 'wght' ${this.weight}, 'GRAD' ${\n this.grade\n }, 'opsz' ${this.opticalSize}`;\n }\n}\n","import { Provider } from '@angular/core';\n\nexport type ContentSecurityPolicyFeature =\n NgIconFeature<NgIconFeatureKind.ContentSecurityPolicyFeature>;\n\nexport type ExceptionLoggerFeature =\n NgIconFeature<NgIconFeatureKind.ExceptionLoggerFeature>;\n\nexport type NgIconFeatures =\n | ContentSecurityPolicyFeature\n | ExceptionLoggerFeature;\n\n/**\n * The list of features as an enum to uniquely type each feature.\n */\nexport const enum NgIconFeatureKind {\n ContentSecurityPolicyFeature,\n ExceptionLoggerFeature,\n}\n\n/**\n * Helper type to represent a feature.\n */\nexport interface NgIconFeature<FeatureKind extends NgIconFeatureKind> {\n ɵkind: FeatureKind;\n ɵproviders: Provider[];\n}\n\n/**\n * Helper function to create an object that represents a feature.\n */\nexport function createFeature<FeatureKind extends NgIconFeatureKind>(\n kind: FeatureKind,\n providers: Provider[],\n): NgIconFeature<FeatureKind> {\n return { ɵkind: kind, ɵproviders: providers };\n}\n","import { InjectionToken, inject } from '@angular/core';\nimport {\n ContentSecurityPolicyFeature,\n NgIconFeatureKind,\n createFeature,\n} from './features';\n\nexport type NgIconPreProcessor = (icon: string) => string;\nexport type NgIconPostProcessor = (element: HTMLElement) => void;\n\nexport const NgIconPreProcessorToken = new InjectionToken<NgIconPreProcessor>(\n 'Ng Icon Pre Processor',\n);\n\nexport const NgIconPostProcessorToken = new InjectionToken<NgIconPostProcessor>(\n 'Ng Icon Post Processor',\n);\n\nexport function injectNgIconPreProcessor(): NgIconPreProcessor {\n return inject(NgIconPreProcessorToken, { optional: true }) ?? (icon => icon);\n}\n\nexport function injectNgIconPostProcessor(): NgIconPostProcessor {\n return inject(NgIconPostProcessorToken, { optional: true }) ?? (() => {});\n}\n\nfunction preprocessIcon(icon: string): string {\n // rename all style attributes to data-style to avoid being blocked by the CSP\n return icon.replace(/style\\s*=/g, 'data-style=');\n}\n\nfunction postprocessIcon(element: HTMLElement): void {\n // find all elements with a data-style attribute and get the styles from it\n // and apply them to the element using the style property and remove the data-style attribute\n const elements = element.querySelectorAll<HTMLElement>('[data-style]');\n\n for (const element of Array.from(elements)) {\n const styles = element.getAttribute('data-style');\n\n styles?.split(';').forEach(style => {\n const [property, value] = style.split(':');\n element.style[property.trim() as any] = value.trim();\n });\n\n element.removeAttribute('data-style');\n }\n}\n\n/**\n * Process icons in a way that is compliant with the content security policy\n */\nexport function withContentSecurityPolicy(): ContentSecurityPolicyFeature {\n return createFeature(NgIconFeatureKind.ContentSecurityPolicyFeature, [\n { provide: NgIconPreProcessorToken, useValue: preprocessIcon },\n { provide: NgIconPostProcessorToken, useValue: postprocessIcon },\n ]);\n}\n","import { InjectionToken, Provider, inject } from '@angular/core';\nimport { NgIconFeatures } from './features/features';\n\nexport interface NgIconConfig {\n /** Define the default size of icons */\n size: string;\n /** Define the default color of icons */\n color?: string;\n}\n\nexport const NgIconConfigToken = new InjectionToken<NgIconConfig>(\n 'Ng Icon Config',\n);\n\nconst defaultConfig: NgIconConfig = {\n size: '1em',\n};\n\n/**\n * Provide the configuration for the icons\n * @param config The configuration to use\n */\nexport function provideNgIconsConfig(\n config: Partial<NgIconConfig>,\n ...features: NgIconFeatures[]\n): Provider[] {\n return [\n {\n provide: NgIconConfigToken,\n useValue: { ...defaultConfig, ...config },\n },\n features.map(feature => feature.ɵproviders),\n ];\n}\n\n/**\n * Inject the configuration for the icons\n * @returns The configuration to use\n * @internal\n */\nexport function injectNgIconConfig(): NgIconConfig {\n return inject(NgIconConfigToken, { optional: true }) ?? defaultConfig;\n}\n","import { inject, InjectionToken, Provider } from '@angular/core';\nimport type { Observable } from 'rxjs';\n\nexport type NgIconLoader = (\n name: string,\n) => Promise<string> | Observable<string> | string;\n\nexport const NgIconLoaderToken = new InjectionToken<NgIconLoader>(\n 'Ng Icon Loader Token',\n);\n\n/**\n * The list of features as an enum to uniquely type each feature.\n */\nconst enum NgIconLoaderFeatureKind {\n CachingFeature,\n}\n\ninterface NgIconLoaderFeature<FeatureKind extends NgIconLoaderFeatureKind> {\n kind: FeatureKind;\n providers: Provider[];\n}\n\n/**\n * Helper function to create an object that represents a Loader feature.\n */\nfunction loaderFeature<FeatureKind extends NgIconLoaderFeatureKind>(\n kind: FeatureKind,\n providers: Provider[],\n): NgIconLoaderFeature<FeatureKind> {\n return { kind: kind, providers: providers };\n}\n\ntype CachingFeature =\n NgIconLoaderFeature<NgIconLoaderFeatureKind.CachingFeature>;\n\ntype NgIconLoaderFeatures = CachingFeature;\n\nexport type NgIconLoaderCache = Map<string, string | Promise<string>>;\n\nexport const NgIconCacheToken = new InjectionToken<NgIconLoaderCache>(\n 'Ng Icon Cache Token',\n);\n\n/**\n * Add caching to the loader. This will prevent the loader from being called multiple times for the same icon name.\n */\nexport function withCaching(): CachingFeature {\n return loaderFeature(NgIconLoaderFeatureKind.CachingFeature, [\n { provide: NgIconCacheToken, useValue: new Map<string, string>() },\n ]);\n}\n\n/**\n * Provide a function that will return the SVG content for a given icon name.\n * @param loader The function that will return the SVG content for a given icon name.\n * @param features The list of features to apply to the loader.\n * @returns The SVG content for a given icon name.\n */\nexport function provideNgIconLoader(\n loader: NgIconLoader,\n ...features: NgIconLoaderFeatures[]\n) {\n return [\n { provide: NgIconLoaderToken, useValue: loader },\n features.map(feature => feature.providers),\n ];\n}\n\n/**\n * Inject the function that will return the SVG content for a given icon name.\n */\nexport function injectNgIconLoader(): NgIconLoader | null {\n return inject(NgIconLoaderToken, { optional: true });\n}\n\n/**\n * Inject the cache that will store the SVG content for a given icon name.\n */\nexport function injectNgIconLoaderCache(): NgIconLoaderCache | null {\n return inject(NgIconCacheToken, { optional: true });\n}\n","import {\n InjectionToken,\n Optional,\n Provider,\n SkipSelf,\n inject,\n} from '@angular/core';\n\n/**\n * Define the icons to use\n * @param icons The icons to provide\n */\nexport function provideIcons(icons: Record<string, string>): Provider[] {\n return [\n {\n provide: NgIconsToken,\n useFactory: (parentIcons?: Record<string, string>[]) => ({\n ...parentIcons?.reduce((acc, icons) => ({ ...acc, ...icons }), {}),\n ...icons,\n }),\n deps: [[NgIconsToken, new Optional(), new SkipSelf()]],\n multi: true,\n },\n ];\n}\n\nexport const NgIconsToken = new InjectionToken<Record<string, string>[]>(\n 'Icons Token',\n);\n\n/**\n * Inject the icons to use\n * @returns The icons to use\n * @internal\n */\nexport function injectNgIcons(): Record<string, string>[] {\n return inject(NgIconsToken, { optional: true }) ?? [];\n}\n","import { Observable, firstValueFrom, isObservable } from 'rxjs';\n\n/**\n * A loader may return a promise, an observable or a string. This function will coerce the result into a promise.\n * @returns\n */\nexport function coerceLoaderResult(\n result: Promise<string> | Observable<string> | string,\n): Promise<string> {\n if (typeof result === 'string') {\n return Promise.resolve(result);\n }\n\n if (isObservable(result)) {\n return firstValueFrom(result);\n }\n\n return result;\n}\n","/**\n * Hyphenated to lowerCamelCase\n */\nexport function toPropertyName(str: string): string {\n return str\n .replace(/([^a-zA-Z0-9])+(.)?/g, (_, __, chr) =>\n chr ? chr.toUpperCase() : '',\n )\n .replace(/[^a-zA-Z\\d]/g, '')\n .replace(/^([A-Z])/, m => m.toLowerCase());\n}\n","import { InjectionToken, inject } from '@angular/core';\nimport {\n ExceptionLoggerFeature,\n NgIconFeatureKind,\n createFeature,\n} from './features';\n\ninterface Logger {\n log(message: string): void;\n warn(message: string): void;\n error(message: string): void;\n}\n\nexport const LoggerToken = new InjectionToken<Logger>('Ng Icon Logger');\n\n/**\n * The default logger implementation that logs to the console\n */\nexport class DefaultLogger implements Logger {\n log(message: string): void {\n console.log(message);\n }\n warn(message: string): void {\n console.warn(message);\n }\n error(message: string): void {\n console.error(message);\n }\n}\n\n/**\n * A logger implementation that throws an error on warnings and errors\n */\nexport class ExceptionLogger implements Logger {\n log(message: string): void {\n console.log(message);\n }\n\n warn(message: string): void {\n throw new Error(message);\n }\n\n error(message: string): void {\n throw new Error(message);\n }\n}\n\nexport function injectLogger(): Logger {\n return inject(LoggerToken, { optional: true }) ?? new DefaultLogger();\n}\n\n/**\n * Throw exceptions on warnings and errors\n */\nexport function withExceptionLogger(): ExceptionLoggerFeature {\n return createFeature(NgIconFeatureKind.ExceptionLoggerFeature, [\n { provide: LoggerToken, useClass: ExceptionLogger },\n ]);\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n inject,\n Injector,\n Input,\n OnChanges,\n OnInit,\n runInInjectionContext,\n SimpleChanges,\n} from '@angular/core';\nimport type { IconName } from '../../components/icon/icon-name';\nimport {\n injectNgIconPostProcessor,\n injectNgIconPreProcessor,\n} from '../../providers/features/csp';\nimport { injectNgIconConfig } from '../../providers/icon-config.provider';\nimport {\n injectNgIconLoader,\n injectNgIconLoaderCache,\n} from '../../providers/icon-loader.provider';\nimport { injectNgIcons } from '../../providers/icon.provider';\nimport { coerceLoaderResult } from '../../utils/async';\nimport { coerceCssPixelValue } from '../../utils/coercion';\nimport { toPropertyName } from '../../utils/format';\nimport { injectLogger } from '../../providers/features/logger';\n\n// This is a typescript type to prevent inference from collapsing the union type to a string to improve type safety\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport type IconType = IconName | (string & {});\n\n@Component({\n selector: 'ng-icon',\n template: '',\n standalone: true,\n styleUrls: ['./icon.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgIcon implements OnInit, OnChanges {\n /** Access the global icon config */\n private readonly config = injectNgIconConfig();\n\n /** Access the icons */\n private readonly icons = injectNgIcons();\n\n /** Access the icon loader if defined */\n private readonly loader = injectNgIconLoader();\n\n /** Access the icon cache if defined */\n private readonly cache = injectNgIconLoaderCache();\n\n /** Access the pre-processor */\n private readonly preProcessor = injectNgIconPreProcessor();\n\n /** Access the post-processor */\n private readonly postProcessor = injectNgIconPostProcessor();\n\n /** Access the injector */\n private readonly injector = inject(Injector);\n\n /** Access the element ref */\n private readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** Access the logger */\n private readonly logger = injectLogger();\n\n /** Define the name of the icon to display */\n @Input() set name(name: IconType) {\n this.setIcon(name);\n }\n\n /** Define the svg of the icon to display */\n @Input() set svg(svg: string) {\n this.setSvg(svg);\n }\n\n /** Define the size of the icon */\n @Input({ transform: coerceCssPixelValue })\n size?: string | number = this.config.size;\n\n /** Define the stroke-width of the icon */\n @Input()\n strokeWidth?: string | number;\n\n /** Define the color of the icon */\n @Input()\n color?: string = this.config.color;\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.size) {\n this.setIconSize();\n }\n if (changes.color) {\n this.setIconColor();\n }\n if (changes.strokeWidth) {\n this.setIconStrokeWidth();\n }\n }\n\n ngOnInit(): void {\n this.setIconStyles();\n }\n\n private setIconColor(): void {\n this.elementRef.nativeElement.style.removeProperty('color');\n\n if (this.color !== undefined) {\n this.elementRef.nativeElement.style.setProperty('color', this.color);\n }\n }\n\n private setIconSize(): void {\n this.elementRef.nativeElement.style.removeProperty('--ng-icon__size');\n\n if (this.size !== undefined) {\n this.elementRef.nativeElement.style.setProperty(\n '--ng-icon__size',\n this.size.toString(),\n );\n }\n }\n\n private setIconStrokeWidth(): void {\n this.elementRef.nativeElement.style.removeProperty(\n '--ng-icon__stroke-width',\n );\n if (this.strokeWidth !== undefined) {\n this.elementRef.nativeElement.style.setProperty(\n '--ng-icon__stroke-width',\n this.strokeWidth.toString(),\n );\n }\n }\n\n /**\n * Set the styles for the icon. We use the style property to set the styles\n * rather than the host binding as it works with CSP.\n */\n private setIconStyles(): void {\n this.setIconColor();\n this.setIconSize();\n this.setIconStrokeWidth();\n }\n\n private setSvg(svg: string): void {\n this.elementRef.nativeElement.innerHTML = this.preProcessor(svg);\n this.postProcessor(this.elementRef.nativeElement);\n }\n\n /**\n * Load the icon with the given name and insert it into the template.\n * @param name The name of the icon to load.\n */\n private async setIcon(name: IconType): Promise<void> {\n const propertyName = toPropertyName(name);\n\n for (const icons of [...this.icons].reverse()) {\n if (icons[propertyName]) {\n // insert the SVG into the template\n this.setSvg(icons[propertyName]);\n return;\n }\n }\n\n // if there is a loader defined, use it to load the icon\n if (this.loader) {\n const result = await this.requestIconFromLoader(name);\n\n // if the result is a string, insert the SVG into the template\n if (result !== null) {\n this.setSvg(result);\n return;\n }\n }\n\n // if there is no icon with this name warn the user as they probably forgot to import it\n this.logger.warn(\n `No icon named ${name} was found. You may need to import it using the withIcons function.`,\n );\n }\n\n /**\n * Request the icon from the loader.\n * @param name The name of the icon to load.\n * @returns The SVG content for a given icon name.\n */\n private requestIconFromLoader(name: string): Promise<string> {\n return new Promise(resolve => {\n runInInjectionContext(this.injector, async () => {\n // if we have a cache, check if the icon is already loaded (i.e, it is a string)\n if (this.cache) {\n const cachedResult = this.cache.get(name);\n\n if (typeof cachedResult === 'string') {\n resolve(cachedResult);\n return;\n }\n\n // it may be a promise, so we need to await it\n if (cachedResult instanceof Promise) {\n const result = await cachedResult;\n resolve(result);\n return;\n }\n }\n\n const promise = coerceLoaderResult(this.loader!(name));\n\n // store the promise in the cache so if we get repeated calls (e.g. in a loop) before the loader has resolved\n // then don't call the loader function multiple times\n this.cache?.set(name, promise);\n\n // await the result of the promise\n const result = await promise;\n\n // if we have a cache, store the result\n this.cache?.set(name, result);\n\n resolve(result);\n });\n });\n }\n}\n","import { Inject, ModuleWithProviders, NgModule } from '@angular/core';\nimport { NgIcon } from './components/icon/icon.component';\nimport { NgIconsToken, provideIcons } from './providers/icon.provider';\n\n@NgModule({\n imports: [NgIcon],\n exports: [NgIcon],\n})\nexport class NgIconsModule {\n constructor(@Inject(NgIconsToken) icons: Record<string, string>) {\n if (Object.keys(icons).length === 0) {\n throw new Error(\n 'No icons have been provided. Ensure to include some icons by importing them using NgIconsModule.withIcons({ ... }).',\n );\n }\n }\n\n /**\n * Define the icons that will be included in the application. This allows unused icons to\n * be tree-shaken away to reduce bundle size\n * @param icons The object containing the required icons\n */\n static withIcons(\n icons: Record<string, string>,\n ): ModuleWithProviders<NgIconsModule> {\n return { ngModule: NgIconsModule, providers: provideIcons(icons) };\n }\n}\n\nexport const NG_ICON_DIRECTIVES = [NgIcon] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["defaultConfig"],"mappings":";;;;MAiBa,kBAAkB,GAAG,IAAI,cAAc,CAClD,iBAAiB,EACjB;AAEF,MAAMA,eAAa,GAAkB;AACnC,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,WAAW,EAAE,EAAE;AACf,IAAA,MAAM,EAAE,GAAG;AACX,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,IAAI,EAAE,KAAK;CACZ,CAAC;AAEF;;;AAGG;AACG,SAAU,qBAAqB,CACnC,MAA8B,EAAA;IAE9B,OAAO;AACL,QAAA,OAAO,EAAE,kBAAkB;AAC3B,QAAA,QAAQ,EAAE,EAAE,GAAGA,eAAa,EAAE,GAAG,MAAM,EAAE;KAC1C,CAAC;AACJ,CAAC;AAED;;;;AAIG;SACa,oBAAoB,GAAA;IAClC,QAAQ,MAAM,CAAC,kBAAkB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACpD,QAAAA,eAAa,EAA6B;AAC9C;;AC3CO,MAA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AAK;gBAKN,KAAK,EAAA,CAAA;sBADJ,KAAK;;;MC9EK,aAAa,CAAA;AACxB,IAAA,WAAA,CAAkC,KAA6B,EAAA;QAC7D,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE;AACnC,YAAA,MAAM,IAAI,KAAK,CACb,qHAAqH,CACtH,CAAC;SACH;KACF;AAED;;;;AAIG;IACH,OAAO,SAAS,CACd,KAA6B,EAAA;AAE7B,QAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC;KACpE;AAlBU,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,kBACJ,YAAY,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GADrB,aAAa,EAAA,OAAA,EAAA,CAHd,MAAM,CAAA,EAAA,OAAA,EAAA,CACN,MAAM,CAAA,EAAA,CAAA,CAAA,EAAA;+GAEL,aAAa,EAAA,CAAA,CAAA,EAAA;;2FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBAJzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,MAAM,CAAC;oBACjB,OAAO,EAAE,CAAC,MAAM,CAAC;AAClB,iBAAA,CAAA;;0BAEc,MAAM;2BAAC,YAAY,CAAA;;AAoBrB,MAAA,kBAAkB,GAAG,CAAC,MAAM;;AC7BzC;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ng-icons-core.mjs","sources":["../../../../packages/core/src/lib/providers/glyph-config.provider.ts","../../../../packages/core/src/lib/providers/glyph.provider.ts","../../../../packages/core/src/lib/utils/coercion.ts","../../../../packages/core/src/lib/components/glyph/glyph.component.ts","../../../../packages/core/src/lib/providers/features/features.ts","../../../../packages/core/src/lib/providers/features/csp.ts","../../../../packages/core/src/lib/providers/icon-config.provider.ts","../../../../packages/core/src/lib/providers/icon-loader.provider.ts","../../../../packages/core/src/lib/providers/icon.provider.ts","../../../../packages/core/src/lib/utils/async.ts","../../../../packages/core/src/lib/utils/format.ts","../../../../packages/core/src/lib/providers/features/logger.ts","../../../../packages/core/src/lib/components/icon/icon.component.ts","../../../../packages/core/src/lib/icon.module.ts","../../../../packages/core/src/ng-icons-core.ts"],"sourcesContent":["import { InjectionToken, Provider, inject } from '@angular/core';\n\nexport interface NgGlyphConfig {\n /** Define the default size of glyph */\n size: string | number;\n /** Define the optical size of the glyph */\n opticalSize?: number;\n /** Define the default color of glyph */\n color?: string;\n /** Define the default weight of glyph */\n weight?: number;\n /** Define the default grade of glyph */\n grade?: number;\n /** Define the default fill of glyph */\n fill?: boolean;\n}\n\nexport const NgGlyphConfigToken = new InjectionToken<Required<NgGlyphConfig>>(\n 'Ng Glyph Config',\n);\n\nconst defaultConfig: NgGlyphConfig = {\n size: '1em',\n opticalSize: 20,\n weight: 400,\n grade: 0,\n fill: false,\n};\n\n/**\n * Provide the configuration for the glyph\n * @param config The configuration to use\n */\nexport function provideNgGlyphsConfig(\n config: Partial<NgGlyphConfig>,\n): Provider {\n return {\n provide: NgGlyphConfigToken,\n useValue: { ...defaultConfig, ...config },\n };\n}\n\n/**\n * Inject the configuration for the glyphs\n * @returns The configuration to use\n * @internal\n */\nexport function injectNgGlyphsConfig(): Required<NgGlyphConfig> {\n return (inject(NgGlyphConfigToken, { optional: true }) ??\n defaultConfig) as Required<NgGlyphConfig>;\n}\n","import {\n EnvironmentProviders,\n InjectionToken,\n inject,\n makeEnvironmentProviders,\n} from '@angular/core';\n\nexport const NgGlyphsToken = new InjectionToken<NgGlyphs>('NgGlyphsToken');\n\nexport function provideNgGlyphs(\n ...glyphsets: NgGlyphset[]\n): EnvironmentProviders {\n // if there are no glyphsets, throw an error\n if (!glyphsets.length) {\n throw new Error('Please provide at least one glyphset.');\n }\n\n // the default glyphset is the first one\n const defaultGlyphset = glyphsets[0].name;\n\n return makeEnvironmentProviders([\n { provide: NgGlyphsToken, useValue: { defaultGlyphset, glyphsets } },\n ]);\n}\n\nexport function injectNgGlyphs(): NgGlyphs {\n const glyphs = inject(NgGlyphsToken, { optional: true });\n\n if (!glyphs) {\n throw new Error(\n 'Please provide the glyphs using the provideNgGlyphs() function.',\n );\n }\n\n return glyphs;\n}\n\nexport interface NgGlyphset {\n name: string;\n baseClass: string;\n}\n\nexport interface NgGlyphs {\n defaultGlyphset: string;\n glyphsets: NgGlyphset[];\n}\n","export function coerceCssPixelValue(value: string): string {\n return value == null ? '' : /^\\d+$/.test(value) ? `${value}px` : value;\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n HostBinding,\n Input,\n booleanAttribute,\n numberAttribute,\n} from '@angular/core';\nimport { injectNgGlyphsConfig } from '../../providers/glyph-config.provider';\nimport { injectNgGlyphs } from '../../providers/glyph.provider';\nimport { coerceCssPixelValue } from '../../utils/coercion';\n\n@Component({\n selector: 'ng-glyph',\n standalone: true,\n template: ``,\n styleUrl: './glyph.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgGlyph {\n /**\n * Access the available glyphsets\n */\n private readonly glyphsets = injectNgGlyphs();\n\n /**\n * Access the default configuration\n */\n private readonly config = injectNgGlyphsConfig();\n\n /**\n * Define the name of the glyph to display\n */\n @HostBinding('textContent')\n @Input({ required: true })\n name!: string;\n\n /**\n * Define the glyphset to use\n */\n @Input()\n glyphset: string = this.glyphsets.defaultGlyphset;\n\n /**\n * Define the optical size of the glyph\n */\n @Input({ transform: numberAttribute }) opticalSize: number =\n this.config.opticalSize;\n\n /**\n * Define the weight of the glyph\n */\n @Input({ transform: numberAttribute }) weight: number = this.config.weight;\n\n /**\n * Define the grade of the glyph\n */\n @Input({ transform: numberAttribute }) grade: number = this.config.grade;\n\n /**\n * Define the fill of the glyph\n */\n @Input({ transform: booleanAttribute }) fill: boolean = this.config.fill;\n\n /**\n * Define the size of the glyph\n */\n @HostBinding('style.--ng-glyph__size')\n @Input({ transform: coerceCssPixelValue })\n size?: string | number = this.config.size;\n\n /**\n * Define the color of the glyph\n */\n @HostBinding('style.color')\n @Input()\n color?: string = this.config.color;\n\n /**\n * Derive the glyphset class from the glyphset name\n */\n @HostBinding('class')\n get glyphsetClass(): string {\n const glyphset = this.glyphsets.glyphsets.find(\n glyphset => glyphset.name === this.glyphset,\n );\n\n if (!glyphset) {\n throw new Error(\n `The glyphset \"${this.glyphset}\" does not exist. Please provide a valid glyphset.`,\n );\n }\n\n return glyphset.baseClass;\n }\n\n /**\n * Define the font variation settings of the glyph\n */\n @HostBinding('style.font-variation-settings')\n get fontVariationSettings(): string {\n return `'FILL' ${this.fill ? 1 : 0}, 'wght' ${this.weight}, 'GRAD' ${\n this.grade\n }, 'opsz' ${this.opticalSize}`;\n }\n}\n","import { Provider } from '@angular/core';\n\nexport type ContentSecurityPolicyFeature =\n NgIconFeature<NgIconFeatureKind.ContentSecurityPolicyFeature>;\n\nexport type ExceptionLoggerFeature =\n NgIconFeature<NgIconFeatureKind.ExceptionLoggerFeature>;\n\nexport type NgIconFeatures =\n | ContentSecurityPolicyFeature\n | ExceptionLoggerFeature;\n\n/**\n * The list of features as an enum to uniquely type each feature.\n */\nexport const enum NgIconFeatureKind {\n ContentSecurityPolicyFeature,\n ExceptionLoggerFeature,\n}\n\n/**\n * Helper type to represent a feature.\n */\nexport interface NgIconFeature<FeatureKind extends NgIconFeatureKind> {\n ɵkind: FeatureKind;\n ɵproviders: Provider[];\n}\n\n/**\n * Helper function to create an object that represents a feature.\n */\nexport function createFeature<FeatureKind extends NgIconFeatureKind>(\n kind: FeatureKind,\n providers: Provider[],\n): NgIconFeature<FeatureKind> {\n return { ɵkind: kind, ɵproviders: providers };\n}\n","import { InjectionToken, inject } from '@angular/core';\nimport {\n ContentSecurityPolicyFeature,\n NgIconFeatureKind,\n createFeature,\n} from './features';\n\nexport type NgIconPreProcessor = (icon: string) => string;\nexport type NgIconPostProcessor = (element: HTMLElement) => void;\n\nexport const NgIconPreProcessorToken = new InjectionToken<NgIconPreProcessor>(\n 'Ng Icon Pre Processor',\n);\n\nexport const NgIconPostProcessorToken = new InjectionToken<NgIconPostProcessor>(\n 'Ng Icon Post Processor',\n);\n\nexport function injectNgIconPreProcessor(): NgIconPreProcessor {\n return inject(NgIconPreProcessorToken, { optional: true }) ?? (icon => icon);\n}\n\nexport function injectNgIconPostProcessor(): NgIconPostProcessor {\n return inject(NgIconPostProcessorToken, { optional: true }) ?? (() => {});\n}\n\nfunction preprocessIcon(icon: string): string {\n // rename all style attributes to data-style to avoid being blocked by the CSP\n return icon.replace(/style\\s*=/g, 'data-style=');\n}\n\nfunction postprocessIcon(element: HTMLElement): void {\n // find all elements with a data-style attribute and get the styles from it\n // and apply them to the element using the style property and remove the data-style attribute\n const elements = element.querySelectorAll<HTMLElement>('[data-style]');\n\n for (const element of Array.from(elements)) {\n const styles = element.getAttribute('data-style');\n\n styles?.split(';').forEach(style => {\n const [property, value] = style.split(':');\n element.style[property.trim() as any] = value.trim();\n });\n\n element.removeAttribute('data-style');\n }\n}\n\n/**\n * Process icons in a way that is compliant with the content security policy\n */\nexport function withContentSecurityPolicy(): ContentSecurityPolicyFeature {\n return createFeature(NgIconFeatureKind.ContentSecurityPolicyFeature, [\n { provide: NgIconPreProcessorToken, useValue: preprocessIcon },\n { provide: NgIconPostProcessorToken, useValue: postprocessIcon },\n ]);\n}\n","import { InjectionToken, Provider, inject } from '@angular/core';\nimport { NgIconFeatures } from './features/features';\n\nexport interface NgIconConfig {\n /** Define the default size of icons */\n size: string;\n /** Define the default color of icons */\n color?: string;\n}\n\nexport const NgIconConfigToken = new InjectionToken<NgIconConfig>(\n 'Ng Icon Config',\n);\n\nconst defaultConfig: NgIconConfig = {\n size: '1em',\n};\n\n/**\n * Provide the configuration for the icons\n * @param config The configuration to use\n */\nexport function provideNgIconsConfig(\n config: Partial<NgIconConfig>,\n ...features: NgIconFeatures[]\n): Provider[] {\n return [\n {\n provide: NgIconConfigToken,\n useValue: { ...defaultConfig, ...config },\n },\n features.map(feature => feature.ɵproviders),\n ];\n}\n\n/**\n * Inject the configuration for the icons\n * @returns The configuration to use\n * @internal\n */\nexport function injectNgIconConfig(): NgIconConfig {\n return inject(NgIconConfigToken, { optional: true }) ?? defaultConfig;\n}\n","import { inject, InjectionToken, Provider } from '@angular/core';\nimport type { Observable } from 'rxjs';\n\nexport type NgIconLoader = (\n name: string,\n) => Promise<string> | Observable<string> | string;\n\nexport const NgIconLoaderToken = new InjectionToken<NgIconLoader>(\n 'Ng Icon Loader Token',\n);\n\n/**\n * The list of features as an enum to uniquely type each feature.\n */\nconst enum NgIconLoaderFeatureKind {\n CachingFeature,\n}\n\ninterface NgIconLoaderFeature<FeatureKind extends NgIconLoaderFeatureKind> {\n kind: FeatureKind;\n providers: Provider[];\n}\n\n/**\n * Helper function to create an object that represents a Loader feature.\n */\nfunction loaderFeature<FeatureKind extends NgIconLoaderFeatureKind>(\n kind: FeatureKind,\n providers: Provider[],\n): NgIconLoaderFeature<FeatureKind> {\n return { kind: kind, providers: providers };\n}\n\ntype CachingFeature =\n NgIconLoaderFeature<NgIconLoaderFeatureKind.CachingFeature>;\n\ntype NgIconLoaderFeatures = CachingFeature;\n\nexport type NgIconLoaderCache = Map<string, string | Promise<string>>;\n\nexport const NgIconCacheToken = new InjectionToken<NgIconLoaderCache>(\n 'Ng Icon Cache Token',\n);\n\n/**\n * Add caching to the loader. This will prevent the loader from being called multiple times for the same icon name.\n */\nexport function withCaching(): CachingFeature {\n return loaderFeature(NgIconLoaderFeatureKind.CachingFeature, [\n { provide: NgIconCacheToken, useValue: new Map<string, string>() },\n ]);\n}\n\n/**\n * Provide a function that will return the SVG content for a given icon name.\n * @param loader The function that will return the SVG content for a given icon name.\n * @param features The list of features to apply to the loader.\n * @returns The SVG content for a given icon name.\n */\nexport function provideNgIconLoader(\n loader: NgIconLoader,\n ...features: NgIconLoaderFeatures[]\n) {\n return [\n { provide: NgIconLoaderToken, useValue: loader },\n features.map(feature => feature.providers),\n ];\n}\n\n/**\n * Inject the function that will return the SVG content for a given icon name.\n */\nexport function injectNgIconLoader(): NgIconLoader | null {\n return inject(NgIconLoaderToken, { optional: true });\n}\n\n/**\n * Inject the cache that will store the SVG content for a given icon name.\n */\nexport function injectNgIconLoaderCache(): NgIconLoaderCache | null {\n return inject(NgIconCacheToken, { optional: true });\n}\n","import {\n InjectionToken,\n Optional,\n Provider,\n SkipSelf,\n inject,\n} from '@angular/core';\n\n/**\n * Define the icons to use\n * @param icons The icons to provide\n */\nexport function provideIcons(icons: Record<string, string>): Provider[] {\n return [\n {\n provide: NgIconsToken,\n useFactory: (parentIcons?: Record<string, string>[]) => ({\n ...parentIcons?.reduce((acc, icons) => ({ ...acc, ...icons }), {}),\n ...icons,\n }),\n deps: [[NgIconsToken, new Optional(), new SkipSelf()]],\n multi: true,\n },\n ];\n}\n\nexport const NgIconsToken = new InjectionToken<Record<string, string>[]>(\n 'Icons Token',\n);\n\n/**\n * Inject the icons to use\n * @returns The icons to use\n * @internal\n */\nexport function injectNgIcons(): Record<string, string>[] {\n return inject(NgIconsToken, { optional: true }) ?? [];\n}\n","import { Observable, firstValueFrom, isObservable } from 'rxjs';\n\n/**\n * A loader may return a promise, an observable or a string. This function will coerce the result into a promise.\n * @returns\n */\nexport function coerceLoaderResult(\n result: Promise<string> | Observable<string> | string,\n): Promise<string> {\n if (typeof result === 'string') {\n return Promise.resolve(result);\n }\n\n if (isObservable(result)) {\n return firstValueFrom(result);\n }\n\n return result;\n}\n","/**\n * Hyphenated to lowerCamelCase\n */\nexport function toPropertyName(str: string): string {\n return str\n .replace(/([^a-zA-Z0-9])+(.)?/g, (_, __, chr) =>\n chr ? chr.toUpperCase() : '',\n )\n .replace(/[^a-zA-Z\\d]/g, '')\n .replace(/^([A-Z])/, m => m.toLowerCase());\n}\n","import { InjectionToken, inject } from '@angular/core';\nimport {\n ExceptionLoggerFeature,\n NgIconFeatureKind,\n createFeature,\n} from './features';\n\ninterface Logger {\n log(message: string): void;\n warn(message: string): void;\n error(message: string): void;\n}\n\nexport const LoggerToken = new InjectionToken<Logger>('Ng Icon Logger');\n\n/**\n * The default logger implementation that logs to the console\n */\nexport class DefaultLogger implements Logger {\n log(message: string): void {\n console.log(message);\n }\n warn(message: string): void {\n console.warn(message);\n }\n error(message: string): void {\n console.error(message);\n }\n}\n\n/**\n * A logger implementation that throws an error on warnings and errors\n */\nexport class ExceptionLogger implements Logger {\n log(message: string): void {\n console.log(message);\n }\n\n warn(message: string): void {\n throw new Error(message);\n }\n\n error(message: string): void {\n throw new Error(message);\n }\n}\n\nexport function injectLogger(): Logger {\n return inject(LoggerToken, { optional: true }) ?? new DefaultLogger();\n}\n\n/**\n * Throw exceptions on warnings and errors\n */\nexport function withExceptionLogger(): ExceptionLoggerFeature {\n return createFeature(NgIconFeatureKind.ExceptionLoggerFeature, [\n { provide: LoggerToken, useClass: ExceptionLogger },\n ]);\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n inject,\n Injector,\n Input,\n OnChanges,\n OnInit,\n runInInjectionContext,\n SimpleChanges,\n} from '@angular/core';\nimport type { IconName } from '../../components/icon/icon-name';\nimport {\n injectNgIconPostProcessor,\n injectNgIconPreProcessor,\n} from '../../providers/features/csp';\nimport { injectNgIconConfig } from '../../providers/icon-config.provider';\nimport {\n injectNgIconLoader,\n injectNgIconLoaderCache,\n} from '../../providers/icon-loader.provider';\nimport { injectNgIcons } from '../../providers/icon.provider';\nimport { coerceLoaderResult } from '../../utils/async';\nimport { coerceCssPixelValue } from '../../utils/coercion';\nimport { toPropertyName } from '../../utils/format';\nimport { injectLogger } from '../../providers/features/logger';\n\n// This is a typescript type to prevent inference from collapsing the union type to a string to improve type safety\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport type IconType = IconName | (string & {});\n\n@Component({\n selector: 'ng-icon',\n template: '',\n standalone: true,\n styleUrls: ['./icon.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgIcon implements OnInit, OnChanges {\n /** Access the global icon config */\n private readonly config = injectNgIconConfig();\n\n /** Access the icons */\n private readonly icons = injectNgIcons();\n\n /** Access the icon loader if defined */\n private readonly loader = injectNgIconLoader();\n\n /** Access the icon cache if defined */\n private readonly cache = injectNgIconLoaderCache();\n\n /** Access the pre-processor */\n private readonly preProcessor = injectNgIconPreProcessor();\n\n /** Access the post-processor */\n private readonly postProcessor = injectNgIconPostProcessor();\n\n /** Access the injector */\n private readonly injector = inject(Injector);\n\n /** Access the element ref */\n private readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** Access the logger */\n private readonly logger = injectLogger();\n\n /** Define the name of the icon to display */\n @Input() set name(name: IconType) {\n this.setIcon(name);\n }\n\n /** Define the svg of the icon to display */\n @Input() set svg(svg: string) {\n this.setSvg(svg);\n }\n\n /** Define the size of the icon */\n @Input({ transform: coerceCssPixelValue })\n size?: string | number = this.config.size;\n\n /** Define the stroke-width of the icon */\n @Input()\n strokeWidth?: string | number;\n\n /** Define the color of the icon */\n @Input()\n color?: string = this.config.color;\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.size) {\n this.setIconSize();\n }\n if (changes.color) {\n this.setIconColor();\n }\n if (changes.strokeWidth) {\n this.setIconStrokeWidth();\n }\n }\n\n ngOnInit(): void {\n this.setIconStyles();\n }\n\n private setIconColor(): void {\n this.elementRef.nativeElement.style.removeProperty('color');\n\n if (this.color !== undefined) {\n this.elementRef.nativeElement.style.setProperty('color', this.color);\n }\n }\n\n private setIconSize(): void {\n this.elementRef.nativeElement.style.removeProperty('--ng-icon__size');\n\n if (this.size !== undefined) {\n this.elementRef.nativeElement.style.setProperty(\n '--ng-icon__size',\n this.size.toString(),\n );\n }\n }\n\n private setIconStrokeWidth(): void {\n this.elementRef.nativeElement.style.removeProperty(\n '--ng-icon__stroke-width',\n );\n if (this.strokeWidth !== undefined) {\n this.elementRef.nativeElement.style.setProperty(\n '--ng-icon__stroke-width',\n this.strokeWidth.toString(),\n );\n }\n }\n\n /**\n * Set the styles for the icon. We use the style property to set the styles\n * rather than the host binding as it works with CSP.\n */\n private setIconStyles(): void {\n this.setIconColor();\n this.setIconSize();\n this.setIconStrokeWidth();\n }\n\n private setSvg(svg: string): void {\n this.elementRef.nativeElement.innerHTML = this.preProcessor(svg);\n this.postProcessor(this.elementRef.nativeElement);\n }\n\n /**\n * Load the icon with the given name and insert it into the template.\n * @param name The name of the icon to load.\n */\n private async setIcon(name: IconType): Promise<void> {\n const propertyName = toPropertyName(name);\n\n for (const icons of [...this.icons].reverse()) {\n if (icons[propertyName]) {\n // insert the SVG into the template\n this.setSvg(icons[propertyName]);\n return;\n }\n }\n\n // if there is a loader defined, use it to load the icon\n if (this.loader) {\n const result = await this.requestIconFromLoader(name);\n\n // if the result is a string, insert the SVG into the template\n if (result !== null) {\n this.setSvg(result);\n return;\n }\n }\n\n // if there is no icon with this name warn the user as they probably forgot to import it\n this.logger.warn(\n `No icon named ${name} was found. You may need to import it using the withIcons function.`,\n );\n }\n\n /**\n * Request the icon from the loader.\n * @param name The name of the icon to load.\n * @returns The SVG content for a given icon name.\n */\n private requestIconFromLoader(name: string): Promise<string> {\n return new Promise(resolve => {\n runInInjectionContext(this.injector, async () => {\n // if we have a cache, check if the icon is already loaded (i.e, it is a string)\n if (this.cache) {\n const cachedResult = this.cache.get(name);\n\n if (typeof cachedResult === 'string') {\n resolve(cachedResult);\n return;\n }\n\n // it may be a promise, so we need to await it\n if (cachedResult instanceof Promise) {\n const result = await cachedResult;\n resolve(result);\n return;\n }\n }\n\n const promise = coerceLoaderResult(this.loader!(name));\n\n // store the promise in the cache so if we get repeated calls (e.g. in a loop) before the loader has resolved\n // then don't call the loader function multiple times\n this.cache?.set(name, promise);\n\n // await the result of the promise\n const result = await promise;\n\n // if we have a cache, store the result\n this.cache?.set(name, result);\n\n resolve(result);\n });\n });\n }\n}\n","import { Inject, ModuleWithProviders, NgModule } from '@angular/core';\nimport { NgIcon } from './components/icon/icon.component';\nimport { NgIconsToken, provideIcons } from './providers/icon.provider';\n\n@NgModule({\n imports: [NgIcon],\n exports: [NgIcon],\n})\nexport class NgIconsModule {\n constructor(@Inject(NgIconsToken) icons: Record<string, string>) {\n if (Object.keys(icons).length === 0) {\n throw new Error(\n 'No icons have been provided. Ensure to include some icons by importing them using NgIconsModule.withIcons({ ... }).',\n );\n }\n }\n\n /**\n * Define the icons that will be included in the application. This allows unused icons to\n * be tree-shaken away to reduce bundle size\n * @param icons The object containing the required icons\n */\n static withIcons(\n icons: Record<string, string>,\n ): ModuleWithProviders<NgIconsModule> {\n return { ngModule: NgIconsModule, providers: provideIcons(icons) };\n }\n}\n\nexport const NG_ICON_DIRECTIVES = [NgIcon] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["defaultConfig"],"mappings":";;;;MAiBa,kBAAkB,GAAG,IAAI,cAAc,CAClD,iBAAiB,EACjB;AAEF,MAAMA,eAAa,GAAkB;AACnC,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,WAAW,EAAE,EAAE;AACf,IAAA,MAAM,EAAE,GAAG;AACX,IAAA,KAAK,EAAE,CAAC;AACR,IAAA,IAAI,EAAE,KAAK;CACZ,CAAC;AAEF;;;AAGG;AACG,SAAU,qBAAqB,CACnC,MAA8B,EAAA;IAE9B,OAAO;AACL,QAAA,OAAO,EAAE,kBAAkB;AAC3B,QAAA,QAAQ,EAAE,EAAE,GAAGA,eAAa,EAAE,GAAG,MAAM,EAAE;KAC1C,CAAC;AACJ,CAAC;AAED;;;;AAIG;SACa,oBAAoB,GAAA;IAClC,QAAQ,MAAM,CAAC,kBAAkB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACpD,QAAAA,eAAa,EAA6B;AAC9C;;AC3CO,MAAM,aAAa,GAAG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