@absoluteui/angular
Application setup: provideAbsoluteUI and provideAbsoluteUIConfig, and the services for configuration, theme, locale, direction, icons, platform, and ids.
import { AuiConfig, AuiDirectionality, AuiIcons, AuiIds, AuiLocale, AuiPlatform, AuiTheme, provideAbsoluteUI, provideAbsoluteUIConfig } from '@absoluteui/angular';AuiConfig
Section titled “AuiConfig”Injectable service.
The configuration scope of the current injector. Inject it to read the effective settings (common()), or to change the scope at run time (set, patch).
Methods
Section titled “Methods”| Method | Description |
|---|---|
set(config: AbsoluteUIConfig): void |
Replace this scope’s own settings. Throws AbsoluteUIError on invalid values; the previous settings stay active. |
patch(config: AbsoluteUIConfig): void |
Merge settings into this scope’s own settings. |
AuiDirectionality
Section titled “AuiDirectionality”Injectable service.
Text direction of the current configuration scope.
AuiIcons
Section titled “AuiIcons”Injectable service.
Icon registry and provider (application-wide).
Methods
Section titled “Methods”| Method | Description |
|---|---|
register(icons: Readonly<Record<string, IconDefinition>>): void |
Add or replace named icons. |
setProvider(provider: IconProvider | null): void |
Resolve icon names through an icon library adapter (null restores the registry). |
AuiIds
Section titled “AuiIds”Injectable service.
Unique element ids. Ids are generated in creation order, so server rendering and the client produce the same sequence for the same view tree.
Methods
Section titled “Methods”| Method | Description |
|---|---|
next(prefix?: string | undefined): string |
The next unique id, for example aui-3. |
AuiLocale
Section titled “AuiLocale”Injectable service.
Locale settings of the current configuration scope.
AuiPlatform
Section titled “AuiPlatform”Injectable service.
Runtime capabilities. On the server, window is null and browser-only features report false.
Methods
Section titled “Methods”| Method | Description |
|---|---|
supports(feature: "ResizeObserver" | "IntersectionObserver" | "MutationObserver" | "matchMedia"): boolean |
Whether a browser API is available (always false on the server). |
AuiTheme
Section titled “AuiTheme”Injectable service.
Application theme, density, and animation mode (applied to the document element).
Methods
Section titled “Methods”| Method | Description |
|---|---|
setTheme(theme: string): void |
Switch the application theme (a built-in name or one registered with registerTheme). |
setDensity(density: Density): void |
Switch the density (compact, comfortable, or spacious) for this configuration scope. |
setAnimation(animation: AnimationMode): void |
Switch animations (‘subtle’ or ‘none’) for this configuration scope. |
Functions, constants, and types
Section titled “Functions, constants, and types”General
Section titled “General”Functions
Section titled “Functions”provideAbsoluteUI
Application setup:
bootstrapApplication(App, { providers: [provideAbsoluteUI({ timezone: 'Asia/Kolkata', components: { dataTable: { pageSize: 50 } } })] }).
Optional: without it, components use their defaults. In a lazy route’s providers it
creates a nested scope like provideAbsoluteUIConfig.
function provideAbsoluteUI(options?: AbsoluteUIOptions): EnvironmentProviders;provideAbsoluteUIConfig
A nested configuration scope for a route or component subtree:
@Component({ providers: [provideAbsoluteUIConfig({ timezone: 'Europe/Berlin' })] }).
Settings merge over the parent scope and apply to every AbsoluteUI component inside.
function provideAbsoluteUIConfig(config: AbsoluteUIConfig): Provider[];Interfaces
Section titled “Interfaces”AbsoluteUIOptions
Application options for provideAbsoluteUI.
interface AbsoluteUIOptions extends AbsoluteUIConfig { icons?: IconProvider; iconSet?: Readonly<Record<string, IconDefinition>>; themeRuntime?: boolean | { applyDirection?: boolean; };}Configuration
Section titled “Configuration”Interfaces
Section titled “Interfaces”AbsoluteUIConfig
Configuration accepted by provideAbsoluteUI, provideAbsoluteUIConfig, and AuiConfig.set.
interface AbsoluteUIConfig extends Partial<CommonConfig> { components?: ComponentConfigInput;}