[59329aa] | 1 | import { Injectable } from '@angular/core';
|
---|
| 2 | import * as i0 from "@angular/core";
|
---|
| 3 | export class FaConfig {
|
---|
| 4 | constructor() {
|
---|
| 5 | /**
|
---|
| 6 | * Default prefix to use, when one is not provided with the icon name.
|
---|
| 7 | *
|
---|
| 8 | * @default 'fas'
|
---|
| 9 | */
|
---|
| 10 | this.defaultPrefix = 'fas';
|
---|
| 11 | /**
|
---|
| 12 | * Provides a fallback icon to use whilst main icon is being loaded asynchronously.
|
---|
| 13 | * When value is null, then fa-icon component will throw an error if icon input is missing.
|
---|
| 14 | * When value is not null, then the provided icon will be used as a fallback icon if icon input is missing.
|
---|
| 15 | *
|
---|
| 16 | * @default null
|
---|
| 17 | */
|
---|
| 18 | this.fallbackIcon = null;
|
---|
| 19 | /**
|
---|
| 20 | * Whether components should lookup icon definitions in the global icon
|
---|
| 21 | * library (the one available from
|
---|
| 22 | * `import { library } from '@fortawesome/fontawesome-svg-core')`.
|
---|
| 23 | *
|
---|
| 24 | * See https://github.com/FortAwesome/angular-fontawesome/blob/master/docs/usage/icon-library.md
|
---|
| 25 | * for detailed description of library modes.
|
---|
| 26 | *
|
---|
| 27 | * - 'unset' - Components should lookup icon definitions in the global library
|
---|
| 28 | * and emit warning if they find a definition there. This option is a default
|
---|
| 29 | * to assist existing applications with a migration. Applications are expected
|
---|
| 30 | * to switch to using {@link FaIconLibrary}.
|
---|
| 31 | * - true - Components should lookup icon definitions in the global library.
|
---|
| 32 | * Note that global icon library is deprecated and support for it will be
|
---|
| 33 | * removed. This option can be used to temporarily suppress warnings.
|
---|
| 34 | * - false - Components should not lookup icon definitions in the global
|
---|
| 35 | * library. Library will throw an error if missing icon is found in the global
|
---|
| 36 | * library.
|
---|
| 37 | *
|
---|
| 38 | * @deprecated This option is deprecated since 0.5.0. In 0.6.0 default will
|
---|
| 39 | * be changed to false. In 0.8.0 the option will be removed together with the
|
---|
| 40 | * support for the global icon library.
|
---|
| 41 | *
|
---|
| 42 | * @default false
|
---|
| 43 | */
|
---|
| 44 | this.globalLibrary = false;
|
---|
| 45 | }
|
---|
| 46 | }
|
---|
| 47 | FaConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function FaConfig_Factory() { return new FaConfig(); }, token: FaConfig, providedIn: "root" });
|
---|
| 48 | FaConfig.decorators = [
|
---|
| 49 | { type: Injectable, args: [{ providedIn: 'root' },] }
|
---|
| 50 | ];
|
---|
| 51 | //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFLM0MsTUFBTSxPQUFPLFFBQVE7SUFEckI7UUFFRTs7OztXQUlHO1FBQ0gsa0JBQWEsR0FBZSxLQUFLLENBQUM7UUFFbEM7Ozs7OztXQU1HO1FBQ0gsaUJBQVksR0FBbUIsSUFBSSxDQUFDO1FBU3BDOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7V0F3Qkc7UUFDSCxrQkFBYSxHQUFzQixLQUFLLENBQUM7S0FDMUM7Ozs7WUFuREEsVUFBVSxTQUFDLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGFibGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IEljb25EZWZpbml0aW9uLCBJY29uUHJlZml4IH0gZnJvbSAnQGZvcnRhd2Vzb21lL2ZvbnRhd2Vzb21lLWNvbW1vbi10eXBlcyc7XG5pbXBvcnQgeyBGYUljb25MaWJyYXJ5IH0gZnJvbSAnLi9pY29uLWxpYnJhcnknO1xuXG5ASW5qZWN0YWJsZSh7IHByb3ZpZGVkSW46ICdyb290JyB9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