@ng-icons/core 32.5.0 → 33.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 +1 -0
- package/fesm2022/ng-icons-core.mjs +16 -16
- package/package.json +12 -6
- package/schematics/collection.json +10 -0
- package/schematics/ng-add/index.d.ts +3 -0
- package/schematics/ng-add/index.js +51 -0
- package/schematics/ng-add/index.js.map +1 -0
- package/schematics/ng-add/schema.d.ts +4 -0
- package/schematics/ng-add/schema.js +3 -0
- package/schematics/ng-add/schema.js.map +1 -0
- package/schematics/ng-add/schema.json +106 -0
- package/schematics/schema.json +106 -0
- package/schematics/tsconfig.json +18 -0
- package/types/ng-icons-core.d.ts +273 -0
- package/index.d.ts +0 -273
package/README.md
CHANGED
|
@@ -72,6 +72,7 @@ Ng Icons is an MIT-licensed open source project with its ongoing development mad
|
|
|
72
72
|
| 18.x.x | 28.x.x - 29.x.x |
|
|
73
73
|
| 19.x.x | 30.x.x - 31.x.x |
|
|
74
74
|
| 20.x.x | 32.x.x |
|
|
75
|
+
| 21.x.x | 33.x.x |
|
|
75
76
|
|
|
76
77
|
> **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.
|
|
77
78
|
|
|
@@ -114,10 +114,10 @@ class NgGlyph {
|
|
|
114
114
|
return `'FILL' ${this.fill() ? 1 : 0}, 'wght' ${this.weight()}, 'GRAD' ${this.grade()}, 'opsz' ${this.opticalSize()}`;
|
|
115
115
|
}, ...(ngDevMode ? [{ debugName: "fontVariationSettings" }] : []));
|
|
116
116
|
}
|
|
117
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
118
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
117
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: NgGlyph, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
118
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.0", type: NgGlyph, isStandalone: true, selector: "ng-glyph", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, glyphset: { classPropertyName: "glyphset", publicName: "glyphset", isSignal: true, isRequired: false, transformFunction: null }, opticalSize: { classPropertyName: "opticalSize", publicName: "opticalSize", isSignal: true, isRequired: false, transformFunction: null }, weight: { classPropertyName: "weight", publicName: "weight", isSignal: true, isRequired: false, transformFunction: null }, grade: { classPropertyName: "grade", publicName: "grade", isSignal: true, isRequired: false, transformFunction: null }, fill: { classPropertyName: "fill", publicName: "fill", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "glyphsetClass()", "textContent": "name()", "style.--ng-glyph__size": "size()", "style.color": "color()", "style.font-variation-settings": "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 }); }
|
|
119
119
|
}
|
|
120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: NgGlyph, decorators: [{
|
|
121
121
|
type: Component,
|
|
122
122
|
args: [{ selector: 'ng-glyph', standalone: true, template: ``, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
123
123
|
'[class]': 'glyphsetClass()',
|
|
@@ -126,7 +126,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
126
126
|
'[style.color]': 'color()',
|
|
127
127
|
'[style.font-variation-settings]': 'fontVariationSettings()',
|
|
128
128
|
}, styles: [":host{display:inline-block;width:var(--ng-glyph__size);height:var(--ng-glyph__size);font-size:var(--ng-glyph__size);overflow:hidden}\n"] }]
|
|
129
|
-
}] });
|
|
129
|
+
}], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], glyphset: [{ type: i0.Input, args: [{ isSignal: true, alias: "glyphset", required: false }] }], opticalSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "opticalSize", required: false }] }], weight: [{ type: i0.Input, args: [{ isSignal: true, alias: "weight", required: false }] }], grade: [{ type: i0.Input, args: [{ isSignal: true, alias: "grade", required: false }] }], fill: [{ type: i0.Input, args: [{ isSignal: true, alias: "fill", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
132
|
* Helper function to create an object that represents a feature.
|
|
@@ -512,10 +512,10 @@ class NgIcon {
|
|
|
512
512
|
});
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
516
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
515
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: NgIcon, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
516
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.0", type: NgIcon, isStandalone: true, selector: "ng-icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, svg: { classPropertyName: "svg", publicName: "svg", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, strokeWidth: { classPropertyName: "strokeWidth", publicName: "strokeWidth", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "img" }, properties: { "style.--ng-icon__stroke-width": "strokeWidth()", "style.--ng-icon__size": "size()", "style.--ng-icon__color": "color()" } }, 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}@layer ng-icon{:host{color:var(--ng-icon__color, currentColor)}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
517
517
|
}
|
|
518
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
518
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: NgIcon, decorators: [{
|
|
519
519
|
type: Component,
|
|
520
520
|
args: [{ selector: 'ng-icon', template: '', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
521
521
|
role: 'img',
|
|
@@ -523,7 +523,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.2", ngImpor
|
|
|
523
523
|
'[style.--ng-icon__size]': 'size()',
|
|
524
524
|
'[style.--ng-icon__color]': 'color()',
|
|
525
525
|
}, 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}@layer ng-icon{:host{color:var(--ng-icon__color, currentColor)}}\n"] }]
|
|
526
|
-
}], ctorParameters: () => [] });
|
|
526
|
+
}], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], svg: [{ type: i0.Input, args: [{ isSignal: true, alias: "svg", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], strokeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "strokeWidth", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
|
|
527
527
|
|
|
528
528
|
class NgIconsModule {
|
|
529
529
|
constructor(icons) {
|
|
@@ -539,11 +539,11 @@ class NgIconsModule {
|
|
|
539
539
|
static withIcons(icons) {
|
|
540
540
|
return { ngModule: NgIconsModule, providers: provideIcons(icons) };
|
|
541
541
|
}
|
|
542
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
543
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
544
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
542
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: NgIconsModule, deps: [{ token: NgIconsToken }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
543
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0", ngImport: i0, type: NgIconsModule, imports: [NgIcon], exports: [NgIcon] }); }
|
|
544
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: NgIconsModule }); }
|
|
545
545
|
}
|
|
546
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: NgIconsModule, decorators: [{
|
|
547
547
|
type: NgModule,
|
|
548
548
|
args: [{
|
|
549
549
|
imports: [NgIcon],
|
|
@@ -560,15 +560,15 @@ class NgIconStack {
|
|
|
560
560
|
/** The size of the child icons */
|
|
561
561
|
this.size = input.required(...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
562
562
|
}
|
|
563
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
564
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
563
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: NgIconStack, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
564
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.0", type: NgIconStack, isStandalone: true, selector: "ng-icon-stack", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "style.--ng-icon__size": "size()" } }, ngImport: i0, template: '<ng-content />', isInline: true, styles: [":host{display:inline-flex;justify-content:center;align-items:center;position:relative;width:var(--ng-icon__size);height:var(--ng-icon__size)}:host ::ng-deep ng-icon{position:absolute}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
565
565
|
}
|
|
566
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
566
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: NgIconStack, decorators: [{
|
|
567
567
|
type: Component,
|
|
568
568
|
args: [{ selector: 'ng-icon-stack', standalone: true, template: '<ng-content />', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
569
569
|
'[style.--ng-icon__size]': 'size()',
|
|
570
570
|
}, styles: [":host{display:inline-flex;justify-content:center;align-items:center;position:relative;width:var(--ng-icon__size);height:var(--ng-icon__size)}:host ::ng-deep ng-icon{position:absolute}\n"] }]
|
|
571
|
-
}] });
|
|
571
|
+
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: true }] }] } });
|
|
572
572
|
|
|
573
573
|
/**
|
|
574
574
|
* Generated bundle index. Do not edit.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-icons/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "33.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -11,19 +11,25 @@
|
|
|
11
11
|
"url": "https://github.com/ng-icons/ng-icons"
|
|
12
12
|
},
|
|
13
13
|
"homepage": "https://ng-icons.github.io/ng-icons/",
|
|
14
|
+
"schematics": "./schematics/collection.json",
|
|
15
|
+
"ng-add": {
|
|
16
|
+
"save": "dependencies"
|
|
17
|
+
},
|
|
14
18
|
"peerDependencies": {
|
|
15
|
-
"@angular/core": ">=
|
|
16
|
-
"@angular/common": ">=
|
|
17
|
-
"rxjs": "^6.5.3 || ^7.4.0"
|
|
19
|
+
"@angular/core": ">=21.0.0",
|
|
20
|
+
"@angular/common": ">=21.0.0",
|
|
21
|
+
"rxjs": "^6.5.3 || ^7.4.0",
|
|
22
|
+
"@angular-devkit/schematics": ">=21.0.0",
|
|
23
|
+
"@schematics/angular": ">=21.0.0"
|
|
18
24
|
},
|
|
19
25
|
"module": "fesm2022/ng-icons-core.mjs",
|
|
20
|
-
"typings": "
|
|
26
|
+
"typings": "types/ng-icons-core.d.ts",
|
|
21
27
|
"exports": {
|
|
22
28
|
"./package.json": {
|
|
23
29
|
"default": "./package.json"
|
|
24
30
|
},
|
|
25
31
|
".": {
|
|
26
|
-
"types": "./
|
|
32
|
+
"types": "./types/ng-icons-core.d.ts",
|
|
27
33
|
"default": "./fesm2022/ng-icons-core.mjs"
|
|
28
34
|
}
|
|
29
35
|
},
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../../node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
+
"schematics": {
|
|
4
|
+
"ng-add": {
|
|
5
|
+
"description": "Add ng-icons to an Angular project",
|
|
6
|
+
"factory": "./schematics/ng-add/index#ngAdd",
|
|
7
|
+
"schema": "./ng-add/schema.json"
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ngAdd = ngAdd;
|
|
4
|
+
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
5
|
+
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
|
6
|
+
const fs_1 = require("fs");
|
|
7
|
+
const path_1 = require("path");
|
|
8
|
+
function getPackageVersion() {
|
|
9
|
+
try {
|
|
10
|
+
// Try to read the package.json from the distributed package
|
|
11
|
+
const packagePath = (0, path_1.join)(__dirname, '../../package.json');
|
|
12
|
+
const packageJson = JSON.parse((0, fs_1.readFileSync)(packagePath, 'utf-8'));
|
|
13
|
+
return `^${packageJson.version}`;
|
|
14
|
+
}
|
|
15
|
+
catch {
|
|
16
|
+
// Fallback version if package.json can't be read
|
|
17
|
+
return '^33.0.0';
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function ngAdd(options) {
|
|
21
|
+
return (tree, context) => {
|
|
22
|
+
context.logger.info('Adding ng-icons to your project...');
|
|
23
|
+
const version = getPackageVersion();
|
|
24
|
+
// Add the core dependency
|
|
25
|
+
const coreDependency = {
|
|
26
|
+
type: dependencies_1.NodeDependencyType.Default,
|
|
27
|
+
name: '@ng-icons/core',
|
|
28
|
+
version,
|
|
29
|
+
overwrite: true,
|
|
30
|
+
};
|
|
31
|
+
(0, dependencies_1.addPackageJsonDependency)(tree, coreDependency);
|
|
32
|
+
context.logger.info('Added @ng-icons/core dependency');
|
|
33
|
+
// Add selected iconset dependencies
|
|
34
|
+
if (options.iconsets && options.iconsets.length > 0) {
|
|
35
|
+
for (const iconset of options.iconsets) {
|
|
36
|
+
const iconsetDependency = {
|
|
37
|
+
type: dependencies_1.NodeDependencyType.Default,
|
|
38
|
+
name: `@ng-icons/${iconset}`,
|
|
39
|
+
version,
|
|
40
|
+
overwrite: true,
|
|
41
|
+
};
|
|
42
|
+
(0, dependencies_1.addPackageJsonDependency)(tree, iconsetDependency);
|
|
43
|
+
context.logger.info(`Added @ng-icons/${iconset} dependency`);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
// Schedule package installation
|
|
47
|
+
context.addTask(new tasks_1.NodePackageInstallTask());
|
|
48
|
+
return tree;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/core/schematics/ng-add/index.ts"],"names":[],"mappings":";;AAuBA,sBAqCC;AA3DD,4DAA0E;AAC1E,2EAIkD;AAClD,2BAAkC;AAClC,+BAA4B;AAG5B,SAAS,iBAAiB;IACxB,IAAI,CAAC;QACH,4DAA4D;QAC5D,MAAM,WAAW,GAAG,IAAA,WAAI,EAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;QAC1D,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,iBAAY,EAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;QACnE,OAAO,IAAI,WAAW,CAAC,OAAO,EAAE,CAAC;IACnC,CAAC;IAAC,MAAM,CAAC;QACP,iDAAiD;QACjD,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,SAAgB,KAAK,CAAC,OAAqB;IACzC,OAAO,CAAC,IAAU,EAAE,OAAyB,EAAE,EAAE;QAC/C,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,oCAAoC,CAAC,CAAC;QAE1D,MAAM,OAAO,GAAG,iBAAiB,EAAE,CAAC;QAEpC,0BAA0B;QAC1B,MAAM,cAAc,GAAmB;YACrC,IAAI,EAAE,iCAAkB,CAAC,OAAO;YAChC,IAAI,EAAE,gBAAgB;YACtB,OAAO;YACP,SAAS,EAAE,IAAI;SAChB,CAAC;QAEF,IAAA,uCAAwB,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;QAC/C,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;QAEvD,oCAAoC;QACpC,IAAI,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACpD,KAAK,MAAM,OAAO,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;gBACvC,MAAM,iBAAiB,GAAmB;oBACxC,IAAI,EAAE,iCAAkB,CAAC,OAAO;oBAChC,IAAI,EAAE,aAAa,OAAO,EAAE;oBAC5B,OAAO;oBACP,SAAS,EAAE,IAAI;iBAChB,CAAC;gBAEF,IAAA,uCAAwB,EAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;gBAClD,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAmB,OAAO,aAAa,CAAC,CAAC;YAC/D,CAAC;QACH,CAAC;QAED,gCAAgC;QAChC,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;QAE9C,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../packages/core/schematics/ng-add/schema.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"id": "NgIconsAdd",
|
|
4
|
+
"title": "ng-icons ng-add schematic",
|
|
5
|
+
"description": "Add ng-icons to an Angular project and optionally install iconsets",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"iconsets": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"description": "Iconsets to install",
|
|
11
|
+
"items": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"enum": [
|
|
14
|
+
"akar-icons",
|
|
15
|
+
"bootstrap-icons",
|
|
16
|
+
"boxicons",
|
|
17
|
+
"circum-icons",
|
|
18
|
+
"cryptocurrency-icons",
|
|
19
|
+
"css-gg",
|
|
20
|
+
"devicon",
|
|
21
|
+
"dripicons",
|
|
22
|
+
"feather-icons",
|
|
23
|
+
"flag-icons",
|
|
24
|
+
"font-awesome",
|
|
25
|
+
"game-icons",
|
|
26
|
+
"heroicons",
|
|
27
|
+
"huge-icons",
|
|
28
|
+
"iconoir",
|
|
29
|
+
"iconsax",
|
|
30
|
+
"ionicons",
|
|
31
|
+
"jam-icons",
|
|
32
|
+
"lets-icons",
|
|
33
|
+
"lucide",
|
|
34
|
+
"material-file-icons",
|
|
35
|
+
"material-icons",
|
|
36
|
+
"material-symbols",
|
|
37
|
+
"mono-icons",
|
|
38
|
+
"mynaui",
|
|
39
|
+
"octicons",
|
|
40
|
+
"phosphor-icons",
|
|
41
|
+
"radix-icons",
|
|
42
|
+
"remixicon",
|
|
43
|
+
"simple-icons",
|
|
44
|
+
"solar-icons",
|
|
45
|
+
"svgl",
|
|
46
|
+
"tabler-icons",
|
|
47
|
+
"tdesign-icons",
|
|
48
|
+
"typicons",
|
|
49
|
+
"ux-aspects"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"default": [],
|
|
53
|
+
"x-prompt": {
|
|
54
|
+
"message": "Which iconsets would you like to install?",
|
|
55
|
+
"type": "list",
|
|
56
|
+
"multiselect": true,
|
|
57
|
+
"items": [
|
|
58
|
+
{ "value": "akar-icons", "label": "Akar Icons" },
|
|
59
|
+
{ "value": "bootstrap-icons", "label": "Bootstrap Icons" },
|
|
60
|
+
{ "value": "boxicons", "label": "Boxicons" },
|
|
61
|
+
{ "value": "circum-icons", "label": "Circum Icons" },
|
|
62
|
+
{ "value": "cryptocurrency-icons", "label": "Cryptocurrency Icons" },
|
|
63
|
+
{ "value": "css-gg", "label": "CSS.gg" },
|
|
64
|
+
{ "value": "devicon", "label": "Devicon" },
|
|
65
|
+
{ "value": "dripicons", "label": "Dripicons" },
|
|
66
|
+
{ "value": "feather-icons", "label": "Feather Icons" },
|
|
67
|
+
{ "value": "flag-icons", "label": "Flag Icons" },
|
|
68
|
+
{ "value": "font-awesome", "label": "Font Awesome" },
|
|
69
|
+
{ "value": "game-icons", "label": "Game Icons" },
|
|
70
|
+
{ "value": "heroicons", "label": "Heroicons" },
|
|
71
|
+
{ "value": "huge-icons", "label": "Huge Icons" },
|
|
72
|
+
{ "value": "iconoir", "label": "Iconoir" },
|
|
73
|
+
{ "value": "iconsax", "label": "Iconsax" },
|
|
74
|
+
{ "value": "ionicons", "label": "Ionicons" },
|
|
75
|
+
{ "value": "jam-icons", "label": "Jam Icons" },
|
|
76
|
+
{ "value": "lets-icons", "label": "Let's Icons" },
|
|
77
|
+
{ "value": "lucide", "label": "Lucide" },
|
|
78
|
+
{ "value": "material-file-icons", "label": "Material File Icons" },
|
|
79
|
+
{ "value": "material-icons", "label": "Material Icons" },
|
|
80
|
+
{ "value": "material-symbols", "label": "Material Symbols" },
|
|
81
|
+
{ "value": "mono-icons", "label": "Mono Icons" },
|
|
82
|
+
{ "value": "mynaui", "label": "Mynaui" },
|
|
83
|
+
{ "value": "octicons", "label": "Octicons" },
|
|
84
|
+
{ "value": "phosphor-icons", "label": "Phosphor Icons" },
|
|
85
|
+
{ "value": "radix-icons", "label": "Radix Icons" },
|
|
86
|
+
{ "value": "remixicon", "label": "Remixicon" },
|
|
87
|
+
{ "value": "simple-icons", "label": "Simple Icons" },
|
|
88
|
+
{ "value": "solar-icons", "label": "Solar Icons" },
|
|
89
|
+
{ "value": "svgl", "label": "SVGL" },
|
|
90
|
+
{ "value": "tabler-icons", "label": "Tabler Icons" },
|
|
91
|
+
{ "value": "tdesign-icons", "label": "TDesign Icons" },
|
|
92
|
+
{ "value": "typicons", "label": "Typicons" },
|
|
93
|
+
{ "value": "ux-aspects", "label": "UX Aspects" }
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"project": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "The name of the project to add ng-icons to",
|
|
100
|
+
"$default": {
|
|
101
|
+
"$source": "projectName"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"required": []
|
|
106
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"id": "NgIconsAdd",
|
|
4
|
+
"title": "ng-icons ng-add schematic",
|
|
5
|
+
"description": "Add ng-icons to an Angular project and optionally install iconsets",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"iconsets": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"description": "Iconsets to install",
|
|
11
|
+
"items": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"enum": [
|
|
14
|
+
"akar-icons",
|
|
15
|
+
"bootstrap-icons",
|
|
16
|
+
"boxicons",
|
|
17
|
+
"circum-icons",
|
|
18
|
+
"cryptocurrency-icons",
|
|
19
|
+
"css-gg",
|
|
20
|
+
"devicon",
|
|
21
|
+
"dripicons",
|
|
22
|
+
"feather-icons",
|
|
23
|
+
"flag-icons",
|
|
24
|
+
"font-awesome",
|
|
25
|
+
"game-icons",
|
|
26
|
+
"heroicons",
|
|
27
|
+
"huge-icons",
|
|
28
|
+
"iconoir",
|
|
29
|
+
"iconsax",
|
|
30
|
+
"ionicons",
|
|
31
|
+
"jam-icons",
|
|
32
|
+
"lets-icons",
|
|
33
|
+
"lucide",
|
|
34
|
+
"material-file-icons",
|
|
35
|
+
"material-icons",
|
|
36
|
+
"material-symbols",
|
|
37
|
+
"mono-icons",
|
|
38
|
+
"mynaui",
|
|
39
|
+
"octicons",
|
|
40
|
+
"phosphor-icons",
|
|
41
|
+
"radix-icons",
|
|
42
|
+
"remixicon",
|
|
43
|
+
"simple-icons",
|
|
44
|
+
"solar-icons",
|
|
45
|
+
"svgl",
|
|
46
|
+
"tabler-icons",
|
|
47
|
+
"tdesign-icons",
|
|
48
|
+
"typicons",
|
|
49
|
+
"ux-aspects"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"default": [],
|
|
53
|
+
"x-prompt": {
|
|
54
|
+
"message": "Which iconsets would you like to install?",
|
|
55
|
+
"type": "list",
|
|
56
|
+
"multiselect": true,
|
|
57
|
+
"items": [
|
|
58
|
+
{ "value": "akar-icons", "label": "Akar Icons" },
|
|
59
|
+
{ "value": "bootstrap-icons", "label": "Bootstrap Icons" },
|
|
60
|
+
{ "value": "boxicons", "label": "Boxicons" },
|
|
61
|
+
{ "value": "circum-icons", "label": "Circum Icons" },
|
|
62
|
+
{ "value": "cryptocurrency-icons", "label": "Cryptocurrency Icons" },
|
|
63
|
+
{ "value": "css-gg", "label": "CSS.gg" },
|
|
64
|
+
{ "value": "devicon", "label": "Devicon" },
|
|
65
|
+
{ "value": "dripicons", "label": "Dripicons" },
|
|
66
|
+
{ "value": "feather-icons", "label": "Feather Icons" },
|
|
67
|
+
{ "value": "flag-icons", "label": "Flag Icons" },
|
|
68
|
+
{ "value": "font-awesome", "label": "Font Awesome" },
|
|
69
|
+
{ "value": "game-icons", "label": "Game Icons" },
|
|
70
|
+
{ "value": "heroicons", "label": "Heroicons" },
|
|
71
|
+
{ "value": "huge-icons", "label": "Huge Icons" },
|
|
72
|
+
{ "value": "iconoir", "label": "Iconoir" },
|
|
73
|
+
{ "value": "iconsax", "label": "Iconsax" },
|
|
74
|
+
{ "value": "ionicons", "label": "Ionicons" },
|
|
75
|
+
{ "value": "jam-icons", "label": "Jam Icons" },
|
|
76
|
+
{ "value": "lets-icons", "label": "Let's Icons" },
|
|
77
|
+
{ "value": "lucide", "label": "Lucide" },
|
|
78
|
+
{ "value": "material-file-icons", "label": "Material File Icons" },
|
|
79
|
+
{ "value": "material-icons", "label": "Material Icons" },
|
|
80
|
+
{ "value": "material-symbols", "label": "Material Symbols" },
|
|
81
|
+
{ "value": "mono-icons", "label": "Mono Icons" },
|
|
82
|
+
{ "value": "mynaui", "label": "Mynaui" },
|
|
83
|
+
{ "value": "octicons", "label": "Octicons" },
|
|
84
|
+
{ "value": "phosphor-icons", "label": "Phosphor Icons" },
|
|
85
|
+
{ "value": "radix-icons", "label": "Radix Icons" },
|
|
86
|
+
{ "value": "remixicon", "label": "Remixicon" },
|
|
87
|
+
{ "value": "simple-icons", "label": "Simple Icons" },
|
|
88
|
+
{ "value": "solar-icons", "label": "Solar Icons" },
|
|
89
|
+
{ "value": "svgl", "label": "SVGL" },
|
|
90
|
+
{ "value": "tabler-icons", "label": "Tabler Icons" },
|
|
91
|
+
{ "value": "tdesign-icons", "label": "TDesign Icons" },
|
|
92
|
+
{ "value": "typicons", "label": "Typicons" },
|
|
93
|
+
{ "value": "ux-aspects", "label": "UX Aspects" }
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"project": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "The name of the project to add ng-icons to",
|
|
100
|
+
"$default": {
|
|
101
|
+
"$source": "projectName"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"required": []
|
|
106
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"outDir": "../../../dist/packages/core/schematics",
|
|
5
|
+
"types": ["node", "vitest"],
|
|
6
|
+
"module": "commonjs",
|
|
7
|
+
"target": "ES2020",
|
|
8
|
+
"declaration": true,
|
|
9
|
+
"strict": true,
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"forceConsistentCasingInFileNames": true,
|
|
13
|
+
"rootDir": ".",
|
|
14
|
+
"preserveWatchOutput": true
|
|
15
|
+
},
|
|
16
|
+
"include": ["**/*.ts"],
|
|
17
|
+
"exclude": ["**/*.spec.ts"]
|
|
18
|
+
}
|