import * as _angular_core from '@angular/core'; import { OdxIconName, OdxIconSet } from '@odx/icons'; import * as _odx_angular_utils from '@odx/angular/utils'; type IconSet = (typeof IconSet)[keyof typeof IconSet]; /** * @deprecated Use `OdxIconSet` from `@odx/icons` instead. This type is retained for backward compatibility and will be removed in future releases. */ declare const IconSet: { readonly CORE: "core"; readonly MEDICAL: "medical"; readonly SAFETY: "safety"; readonly UIB_LEGACY: "uib-legacy"; }; type IconSize = (typeof IconSize)[keyof typeof IconSize]; declare const IconSize: { /** * @deprecated Use `sm` instead. */ readonly SMALL: "small"; readonly SM: "sm"; /** * @deprecated Use `md` instead. */ readonly MEDIUM: "medium"; readonly MD: "md"; /** * @deprecated Use `lg` instead. */ readonly LARGE: "large"; readonly LG: "lg"; readonly XS: "xs"; readonly XL: "xl"; /** * @deprecated Use `xxl` instead. */ readonly XLARGE: "xlarge"; readonly XXL: "xxl"; readonly INLINE: "inline"; }; /** * Unpacks a combined icon identifier string into separate icon set and icon name components. * The identifier is expected to follow the format "iconSet::iconName". If the "iconName" part is * missing, the function assumes the icon belongs to the 'core' set. * * @param {string} value The combined identifier string in the format "iconSet::iconName". * @returns {[iconSet: string, iconName: string]} A tuple containing the icon set and icon name as two separate strings. Defaults to 'core' * if the iconName is omitted in the input. * * @example * ```ts * unpackIconIdentifier("menu") // returns ['core', 'menu'] * ``` */ declare function unpackIconIdentifier(value: string): [iconSet: IconSet, iconName: string]; /** * Determines if a given string is a valid icon set. * * @param {string} value The value to check if it is a valid icon set. * @returns {boolean} Whether the value is a valid icon set. * * @example * ```ts * isIconSet('core') // returns true * isIconSet('custom') // returns false * ``` */ declare function isIconSet(value: string): value is IconSet; /** * Represents an icon component that can dynamically display various icons based on input properties. This component * leverages CSS for styling and is designed to be easily embedded within other components and views. * * It allows for specifying icon sets and individual icon names, supporting flexible usage across different contexts * and themes. The component is also optimized for performance with Angular's OnPush change detection strategy. */ declare class IconComponent { readonly element: _angular_core.ElementRef; /** * Specifies the size of the icon, which can be adjusted using predefined sizes from the IconSize enum. * * @type {IconSize} * @default IconSize.MEDIUM */ set size(value: IconSize); get size(): IconSize | null; /** * The name of the icon to be displayed, which corresponds to specific icons within a given icon set. * * @type {OdxIconName | null} * @default null */ set name(value: OdxIconName | (string & {}) | null); get name(): OdxIconName | (string & {}) | null; /** * Specifies the icon set that the icon belongs to. The default set can be injected from the icon configuration. * * @type {OdxIconSet | null} */ set set(value: OdxIconSet | (string & {}) | null); get set(): OdxIconSet | (string & {}) | null; /** * Allows for setting both the icon set and icon name via a single identifier, typically formatted as 'set::name'. * Unpacking this identifier sets both `name` and `set` properties. * * @param {string | null | undefined} value - The identifier to unpack. * @deprecated Use `name` and `set` properties directly instead of the `identifier` input for better clarity and separation of concerns. */ set identifier(value: string | null | undefined); static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵcmp: _angular_core.ɵɵComponentDeclaration; } /** * Represents the configuration options for icons in the application, specifying defaults * and configurations for the icon components used across the system. * * @typedef {Object} IconConfig * @property {OdxIconSet} defaultIconSet - The default set of icons to use if no specific set is provided. * * @deprecated The `defaultIconSet` property is deprecated and will be removed in future versions. Please specify the icon set directly on the component. */ interface IconConfig { defaultIconSet: OdxIconSet; } /** * Utility functions generated to handle the injection and provision of the `IconConfig`. * These include tokens and functions for accessing and providing icon configurations. * * - `IconConfig`: A type representing the shape of the icon configuration object. * - `IconDefaultConfig`: The default configuration which sets 'core' as the default icon set. * - `injectIconConfig`: A function to inject the icon configuration, usable in Angular components or services. * - `provideIconConfig`: A function to provide the icon configuration, typically used in Angular module providers. * * @example * ```ts * // To inject icon configuration in a component or service * const config = injectIconConfig(); * console.log(config.defaultIconSet); // Outputs: 'core' * * // To provide icon configuration in a module * provideIconConfig({ defaultIconSet: 'custom' }); * ``` * * @deprecated The `defaultIconSet` property in the configuration is deprecated. Please specify the icon set directly on the component instead of relying on a default configuration. */ declare const IconConfig: _angular_core.InjectionToken>; declare const IconDefaultConfig: IconConfig; declare const injectIconConfig: () => IconConfig; declare const provideIconConfig: >>(config: _odx_angular_utils.ConfigProvider, D>) => _angular_core.FactoryProvider | _angular_core.ValueProvider; export { IconComponent, IconConfig, IconDefaultConfig, IconSet, IconSize, injectIconConfig, isIconSet, provideIconConfig, unpackIconIdentifier };