@fortawesome/angular-fontawesome
Advanced tools
Comparing version
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
/// <amd-module name="@fortawesome/angular-fontawesome" /> | ||
export * from './public_api'; |
import { IconDefinition, IconPrefix } from '@fortawesome/fontawesome-common-types'; | ||
import * as i0 from "@angular/core"; | ||
export declare class FaConfig { | ||
@@ -24,28 +25,4 @@ /** | ||
fixedWidth?: boolean; | ||
/** | ||
* Whether components should lookup icon definitions in the global icon | ||
* library (the one available from | ||
* `import { library } from '@fortawesome/fontawesome-svg-core')`. | ||
* | ||
* See https://github.com/FortAwesome/angular-fontawesome/blob/master/docs/usage/icon-library.md | ||
* for detailed description of library modes. | ||
* | ||
* - 'unset' - Components should lookup icon definitions in the global library | ||
* and emit warning if they find a definition there. This option is a default | ||
* to assist existing applications with a migration. Applications are expected | ||
* to switch to using {@link FaIconLibrary}. | ||
* - true - Components should lookup icon definitions in the global library. | ||
* Note that global icon library is deprecated and support for it will be | ||
* removed. This option can be used to temporarily suppress warnings. | ||
* - false - Components should not lookup icon definitions in the global | ||
* library. Library will throw an error if missing icon is found in the global | ||
* library. | ||
* | ||
* @deprecated This option is deprecated since 0.5.0. In 0.6.0 default will | ||
* be changed to false. In 0.8.0 the option will be removed together with the | ||
* support for the global icon library. | ||
* | ||
* @default false | ||
*/ | ||
globalLibrary: boolean | 'unset'; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<FaConfig, never>; | ||
static ɵprov: i0.ɵɵInjectableDeclaration<FaConfig>; | ||
} |
@@ -0,2 +1,13 @@ | ||
import * as i0 from "@angular/core"; | ||
import * as i1 from "./icon/icon.component"; | ||
import * as i2 from "./icon/duotone-icon.component"; | ||
import * as i3 from "./layers/layers.component"; | ||
import * as i4 from "./layers/layers-text.component"; | ||
import * as i5 from "./layers/layers-counter.component"; | ||
import * as i6 from "./stack/stack.component"; | ||
import * as i7 from "./stack/stack-item-size.directive"; | ||
export declare class FontAwesomeModule { | ||
static ɵfac: i0.ɵɵFactoryDeclaration<FontAwesomeModule, never>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<FontAwesomeModule, [typeof i1.FaIconComponent, typeof i2.FaDuotoneIconComponent, typeof i3.FaLayersComponent, typeof i4.FaLayersTextComponent, typeof i5.FaLayersCounterComponent, typeof i6.FaStackComponent, typeof i7.FaStackItemSizeDirective], never, [typeof i1.FaIconComponent, typeof i2.FaDuotoneIconComponent, typeof i3.FaLayersComponent, typeof i4.FaLayersTextComponent, typeof i5.FaLayersCounterComponent, typeof i6.FaStackComponent, typeof i7.FaStackItemSizeDirective]>; | ||
static ɵinj: i0.ɵɵInjectorDeclaration<FontAwesomeModule>; | ||
} |
import { IconDefinition, IconName, IconPack, IconPrefix } from '@fortawesome/fontawesome-svg-core'; | ||
import * as i0 from "@angular/core"; | ||
export interface FaIconLibraryInterface { | ||
@@ -12,2 +13,4 @@ addIcons(...icons: IconDefinition[]): void; | ||
getIconDefinition(prefix: IconPrefix, name: IconName): IconDefinition | null; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<FaIconLibrary, never>; | ||
static ɵprov: i0.ɵɵInjectableDeclaration<FaIconLibrary>; | ||
} |
import { IconDefinition, IconProp } from '@fortawesome/fontawesome-svg-core'; | ||
import { FaIconComponent } from './icon.component'; | ||
import * as i0 from "@angular/core"; | ||
export declare class FaDuotoneIconComponent extends FaIconComponent { | ||
@@ -52,2 +53,4 @@ /** | ||
}; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<FaDuotoneIconComponent, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<FaDuotoneIconComponent, "fa-duotone-icon", never, { "swapOpacity": "swapOpacity"; "primaryOpacity": "primaryOpacity"; "secondaryOpacity": "secondaryOpacity"; "primaryColor": "primaryColor"; "secondaryColor": "secondaryColor"; }, {}, never, never>; | ||
} |
@@ -8,2 +8,3 @@ import { OnChanges, SimpleChanges } from '@angular/core'; | ||
import { FaStackComponent } from '../stack/stack.component'; | ||
import * as i0 from "@angular/core"; | ||
export declare class FaIconComponent implements OnChanges { | ||
@@ -65,2 +66,4 @@ private sanitizer; | ||
private renderIcon; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<FaIconComponent, [null, null, null, { optional: true; }, { optional: true; }]>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<FaIconComponent, "fa-icon", never, { "icon": "icon"; "title": "title"; "spin": "spin"; "pulse": "pulse"; "mask": "mask"; "styles": "styles"; "flip": "flip"; "size": "size"; "pull": "pull"; "border": "border"; "inverse": "inverse"; "symbol": "symbol"; "rotate": "rotate"; "fixedWidth": "fixedWidth"; "classes": "classes"; "transform": "transform"; "a11yRole": "a11yRole"; }, {}, never, never>; | ||
} |
@@ -5,2 +5,3 @@ import { OnChanges, SimpleChanges } from '@angular/core'; | ||
import { FaLayersComponent } from './layers.component'; | ||
import * as i0 from "@angular/core"; | ||
export declare class FaLayersCounterComponent implements OnChanges { | ||
@@ -18,2 +19,4 @@ private parent; | ||
private updateContent; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<FaLayersCounterComponent, [{ optional: true; }, null]>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<FaLayersCounterComponent, "fa-layers-counter", never, { "content": "content"; "title": "title"; "styles": "styles"; "classes": "classes"; }, {}, never, never>; | ||
} |
@@ -5,2 +5,3 @@ import { OnChanges, SimpleChanges } from '@angular/core'; | ||
import { FaLayersComponent } from './layers.component'; | ||
import * as i0 from "@angular/core"; | ||
export declare class FaLayersTextComponent implements OnChanges { | ||
@@ -31,2 +32,4 @@ private parent; | ||
private updateContent; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<FaLayersTextComponent, [{ optional: true; }, null]>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<FaLayersTextComponent, "fa-layers-text", never, { "content": "content"; "title": "title"; "styles": "styles"; "classes": "classes"; "spin": "spin"; "pulse": "pulse"; "flip": "flip"; "size": "size"; "pull": "pull"; "border": "border"; "inverse": "inverse"; "rotate": "rotate"; "fixedWidth": "fixedWidth"; "transform": "transform"; }, {}, never, never>; | ||
} |
import { ElementRef, OnChanges, OnInit, Renderer2, SimpleChanges } from '@angular/core'; | ||
import { SizeProp } from '@fortawesome/fontawesome-svg-core'; | ||
import { FaConfig } from '../config'; | ||
import * as i0 from "@angular/core"; | ||
/** | ||
@@ -16,2 +17,4 @@ * Fontawesome layers. | ||
ngOnChanges(changes: SimpleChanges): void; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<FaLayersComponent, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<FaLayersComponent, "fa-layers", never, { "size": "size"; "fixedWidth": "fixedWidth"; }, {}, never, ["*"]>; | ||
} |
{ | ||
"$schema": "./node_modules/ng-packagr/package.schema.json", | ||
"name": "@fortawesome/angular-fontawesome", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"description": "Angular Fontawesome, an Angular library", | ||
@@ -16,3 +16,3 @@ "repository": { | ||
"dependencies": { | ||
"tslib": "^2.2.0" | ||
"tslib": "^2.3.1" | ||
}, | ||
@@ -28,14 +28,34 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@angular/core": "^12.0.0", | ||
"@fortawesome/fontawesome-svg-core": "^1.2.27" | ||
}, | ||
"schematics": "./schematics/collection.json", | ||
"main": "bundles/angular-fontawesome.umd.js", | ||
"module": "fesm2015/angular-fontawesome.js", | ||
"es2015": "fesm2015/angular-fontawesome.js", | ||
"esm2015": "esm2015/angular-fontawesome.js", | ||
"fesm2015": "fesm2015/angular-fontawesome.js", | ||
"packageManager": "yarn@3.1.0", | ||
"module": "fesm2015/angular-fontawesome.mjs", | ||
"es2020": "fesm2020/angular-fontawesome.mjs", | ||
"esm2020": "esm2020/angular-fontawesome.mjs", | ||
"fesm2020": "fesm2020/angular-fontawesome.mjs", | ||
"fesm2015": "fesm2015/angular-fontawesome.mjs", | ||
"typings": "angular-fontawesome.d.ts", | ||
"metadata": "angular-fontawesome.metadata.json", | ||
"exports": { | ||
"./package.json": { | ||
"default": "./package.json" | ||
}, | ||
".": { | ||
"types": "./angular-fontawesome.d.ts", | ||
"esm2020": "./esm2020/angular-fontawesome.mjs", | ||
"es2020": "./fesm2020/angular-fontawesome.mjs", | ||
"es2015": "./fesm2015/angular-fontawesome.mjs", | ||
"node": "./fesm2015/angular-fontawesome.mjs", | ||
"default": "./fesm2020/angular-fontawesome.mjs" | ||
}, | ||
"./testing": { | ||
"types": "./testing/fortawesome-angular-fontawesome-testing.d.ts", | ||
"esm2020": "./esm2020/testing/fortawesome-angular-fontawesome-testing.mjs", | ||
"es2020": "./fesm2020/fortawesome-angular-fontawesome-testing.mjs", | ||
"es2015": "./fesm2015/fortawesome-angular-fontawesome-testing.mjs", | ||
"node": "./fesm2015/fortawesome-angular-fontawesome-testing.mjs", | ||
"default": "./fesm2020/fortawesome-angular-fontawesome-testing.mjs" | ||
} | ||
}, | ||
"sideEffects": false | ||
} |
@@ -48,2 +48,3 @@ <a href="https://fontawesome.com"> | ||
|0.9.x|12.x|supported| | ||
|0.10.x|13.x|supported| | ||
@@ -137,3 +138,3 @@ ## Usage | ||
[<img src="https://github.com/bhanuhiteshi.png?size=72" alt="bhanuhiteshi" width="72">](https://github.com/bhanuhiteshi) | ||
[<img src="https://github.com/plinkpaste.png?size=72" alt="plinkpaste" width="72">](https://github.com/plinkpaste) | ||
[<img src="https://github.com/MrSuttonmann.png?size=72" alt="MrSuttonmann" width="72">](https://github.com/MrSuttonmann) | ||
[<img src="https://github.com/ej2.png?size=72" alt="ej2" width="72">](https://github.com/ej2) | ||
@@ -140,0 +141,0 @@ [<img src="https://github.com/peterblazejewicz.png?size=72" alt="peterblazejewicz" width="72">](https://github.com/peterblazejewicz) |
@@ -5,2 +5,2 @@ import { workspaces } from '@angular-devkit/core'; | ||
export default function (options: Schema): Rule; | ||
export declare function getProjectTargetOptions(project: workspaces.ProjectDefinition, buildTarget: string): Record<string, string | number | boolean | import("@angular-devkit/core").JsonArray | import("@angular-devkit/core").JsonObject | null | undefined>; | ||
export declare function getProjectTargetOptions(project: workspaces.ProjectDefinition, buildTarget: string): Record<string, import("@angular-devkit/core").JsonValue | undefined>; |
@@ -23,5 +23,5 @@ "use strict"; | ||
function default_1(options) { | ||
return schematics_1.chain([ | ||
return (0, schematics_1.chain)([ | ||
(tree, context) => { | ||
dependencies_1.addPackageJsonDependency(tree, { | ||
(0, dependencies_1.addPackageJsonDependency)(tree, { | ||
type: dependencies_1.NodeDependencyType.Default, | ||
@@ -31,3 +31,3 @@ name: '@fortawesome/fontawesome-svg-core', | ||
}); | ||
dependencies_1.addPackageJsonDependency(tree, { | ||
(0, dependencies_1.addPackageJsonDependency)(tree, { | ||
type: dependencies_1.NodeDependencyType.Default, | ||
@@ -39,3 +39,3 @@ name: '@fortawesome/angular-fontawesome', | ||
for (const pack of iconPackages) { | ||
dependencies_1.addPackageJsonDependency(tree, { | ||
(0, dependencies_1.addPackageJsonDependency)(tree, { | ||
type: dependencies_1.NodeDependencyType.Default, | ||
@@ -54,5 +54,5 @@ name: `@fortawesome/${pack}-svg-icons`, | ||
function addModule(options) { | ||
return (host, context) => __awaiter(this, void 0, void 0, function* () { | ||
return (host) => __awaiter(this, void 0, void 0, function* () { | ||
var _a; | ||
const workspace = yield workspace_1.getWorkspace(host); | ||
const workspace = yield (0, workspace_1.getWorkspace)(host); | ||
const projectName = (_a = options.project) !== null && _a !== void 0 ? _a : workspace.extensions.defaultProject; | ||
@@ -64,5 +64,5 @@ const project = workspace.projects.get(projectName); | ||
const buildOptions = getProjectTargetOptions(project, 'build'); | ||
const modulePath = ng_ast_utils_1.getAppModulePath(host, buildOptions.main); | ||
const modulePath = (0, ng_ast_utils_1.getAppModulePath)(host, buildOptions.main); | ||
const moduleSource = getSourceFile(host, modulePath); | ||
const changes = ast_utils_1.addImportToModule(moduleSource, modulePath, 'FontAwesomeModule', '@fortawesome/angular-fontawesome'); | ||
const changes = (0, ast_utils_1.addImportToModule)(moduleSource, modulePath, 'FontAwesomeModule', '@fortawesome/angular-fontawesome'); | ||
const recorder = host.beginUpdate(modulePath); | ||
@@ -75,10 +75,2 @@ changes.forEach((change) => { | ||
host.commitUpdate(recorder); | ||
/* tslint is required to add a tslint fix task */ | ||
try { | ||
require('tslint'); | ||
context.addTask(new tasks_1.TslintFixTask(modulePath, {})); | ||
} | ||
catch (err) { | ||
context.logger.warn('Formatting was skipped because tslint is not installed.'); | ||
} | ||
}); | ||
@@ -92,3 +84,3 @@ } | ||
const content = buffer.toString('utf-8'); | ||
return typescript_1.createSourceFile(path, content, typescript_1.ScriptTarget.Latest, true); | ||
return (0, typescript_1.createSourceFile)(path, content, typescript_1.ScriptTarget.Latest, true); | ||
} | ||
@@ -95,0 +87,0 @@ function getProjectTargetOptions(project, buildTarget) { |
@@ -1,3 +0,3 @@ | ||
export declare const svgCoreVersion = "^1.2.35"; | ||
export declare const angularFontawesomeVersion = "~0.9.0"; | ||
export declare const iconPackVersion = "^5.15.3"; | ||
export declare const svgCoreVersion = "^1.2.36"; | ||
export declare const angularFontawesomeVersion = "~0.10.0"; | ||
export declare const iconPackVersion = "^5.15.4"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.iconPackVersion = exports.angularFontawesomeVersion = exports.svgCoreVersion = void 0; | ||
exports.svgCoreVersion = '^1.2.35'; | ||
exports.angularFontawesomeVersion = '~0.9.0'; | ||
exports.iconPackVersion = '^5.15.3'; | ||
exports.svgCoreVersion = '^1.2.36'; | ||
exports.angularFontawesomeVersion = '~0.10.0'; | ||
exports.iconPackVersion = '^5.15.4'; | ||
//# sourceMappingURL=versions.js.map |
import { OnChanges, SimpleChanges } from '@angular/core'; | ||
import * as i0 from "@angular/core"; | ||
export declare class FaStackItemSizeDirective implements OnChanges { | ||
@@ -9,2 +10,4 @@ /** | ||
ngOnChanges(changes: SimpleChanges): void; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<FaStackItemSizeDirective, never>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<FaStackItemSizeDirective, "fa-icon[stackItemSize],fa-duotone-icon[stackItemSize]", never, { "stackItemSize": "stackItemSize"; "size": "size"; }, {}, never>; | ||
} |
import { ElementRef, OnChanges, OnInit, Renderer2, SimpleChanges } from '@angular/core'; | ||
import { SizeProp } from '@fortawesome/fontawesome-svg-core'; | ||
import * as i0 from "@angular/core"; | ||
export declare class FaStackComponent implements OnInit, OnChanges { | ||
@@ -16,2 +17,4 @@ private renderer; | ||
ngOnChanges(changes: SimpleChanges): void; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<FaStackComponent, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<FaStackComponent, "fa-stack", never, { "size": "size"; }, {}, never, ["*"]>; | ||
} |
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
/// <amd-module name="@fortawesome/angular-fontawesome/testing" /> | ||
export * from './public_api'; | ||
export { MockFaIconLibrary as ɵa } from './icon/mock-icon-library.service'; |
import { FaIconLibraryInterface } from '@fortawesome/angular-fontawesome'; | ||
import { IconDefinition, IconName, IconPrefix } from '@fortawesome/fontawesome-svg-core'; | ||
import * as i0 from "@angular/core"; | ||
export declare const dummyIcon: IconDefinition; | ||
@@ -8,2 +9,4 @@ export declare class MockFaIconLibrary implements FaIconLibraryInterface { | ||
getIconDefinition(prefix: IconPrefix, name: IconName): IconDefinition; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<MockFaIconLibrary, never>; | ||
static ɵprov: i0.ɵɵInjectableDeclaration<MockFaIconLibrary>; | ||
} |
{ | ||
"name": "@fortawesome/angular-fontawesome/testing", | ||
"main": "../bundles/fortawesome-angular-fontawesome-testing.umd.js", | ||
"module": "../fesm2015/fortawesome-angular-fontawesome-testing.js", | ||
"es2015": "../fesm2015/fortawesome-angular-fontawesome-testing.js", | ||
"esm2015": "../esm2015/testing/fortawesome-angular-fontawesome-testing.js", | ||
"fesm2015": "../fesm2015/fortawesome-angular-fontawesome-testing.js", | ||
"module": "../fesm2015/fortawesome-angular-fontawesome-testing.mjs", | ||
"es2020": "../fesm2020/fortawesome-angular-fontawesome-testing.mjs", | ||
"esm2020": "../esm2020/testing/fortawesome-angular-fontawesome-testing.mjs", | ||
"fesm2020": "../fesm2020/fortawesome-angular-fontawesome-testing.mjs", | ||
"fesm2015": "../fesm2015/fortawesome-angular-fontawesome-testing.mjs", | ||
"typings": "fortawesome-angular-fontawesome-testing.d.ts", | ||
"metadata": "fortawesome-angular-fontawesome-testing.metadata.json", | ||
"sideEffects": false | ||
} |
@@ -0,2 +1,7 @@ | ||
import * as i0 from "@angular/core"; | ||
import * as i1 from "@fortawesome/angular-fontawesome"; | ||
export declare class FontAwesomeTestingModule { | ||
static ɵfac: i0.ɵɵFactoryDeclaration<FontAwesomeTestingModule, never>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<FontAwesomeTestingModule, never, never, [typeof i1.FontAwesomeModule]>; | ||
static ɵinj: i0.ɵɵInjectorDeclaration<FontAwesomeTestingModule>; | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
2
-33.33%153
0.66%259791
-15.62%69
-2.82%2505
-9.89%1
Infinity%- Removed
- Removed
- Removed
Updated