| coerceIconList | ||||||||||
coerceIconList(list: IconList)
|
||||||||||
|
Coerces mixed format icons into a list of icon object that
can be passed directly into hra-icon's
Parameters :
Returns :
Icon[]
A list of icon objects |
| colorEquals |
colorEquals(color1: Rgb, color2: Rgb)
|
|
Compares two RGB colors for equality
Returns :
boolean
|
| hexToRgb | ||||||
hexToRgb(hex: string)
|
||||||
|
Converts a hexadecimal color string to an RGB color
Parameters :
Returns :
Rgb
|
| rgbToHex | ||||||
rgbToHex(rgb: Rgb)
|
||||||
|
Converts an RGB color to its hexadecimal string representation
Parameters :
Returns :
string
|
| createJsonSpecResolver | ||||||||||||
createJsonSpecResolver(url: string, spec: T)
|
||||||||||||
|
Creates a resolver function that loads and validates json data
Parameters :
Returns :
ResolveFn<z.infer<T>>
A resolver function |
| createYamlSpecResolver | ||||||||||||
createYamlSpecResolver(url: string, spec: T)
|
||||||||||||
|
Creates a resolver function that loads and validates yaml data
Parameters :
Returns :
ResolveFn<z.infer<T>>
A resolver function |
| createMiscellaneousLogoConfigResolver |
createMiscellaneousLogoConfigResolver()
|
|
Creates a new configuration resolver
Returns :
IconConfigResolver
A configuration resolver |
| provideMiscellaneousLogos |
provideMiscellaneousLogos()
|
|
Initializes miscellaneous logo icons
Returns :
EnvironmentProviders
|
| createOrganLogoConfigResolver |
createOrganLogoConfigResolver()
|
|
Creates a new configuration resolver
Returns :
IconConfigResolver
A configuration resolver |
| provideOrganLogos |
provideOrganLogos()
|
|
Initializes organ logo icons
Returns :
EnvironmentProviders
|
| createProductLogoConfigResolver |
createProductLogoConfigResolver()
|
|
Creates a new configuration resolver
Returns :
IconConfigResolver
A configuration resolver |
| provideProductLogos |
provideProductLogos()
|
|
Initializes product logo icons
Returns :
EnvironmentProviders
|
| createSvgIconResolver |
createSvgIconResolver()
|
|
Creates a new resolver that resolves svg icons by concatenating the svg icon directory with the icon namespace and name.
Returns :
IconResolver
An icon resolver |
| getSectionElement | ||||||||
getSectionElement(section: PageSectionInstance)
|
||||||||
|
Helper for getting a page section's html element
Parameters :
Returns :
Element
The section element |
| initializeIcons |
initializeIcons()
|
|
Initializes design system icons by configuring material's icon registry
Returns :
void
|
| makeIconFeature | ||||||||||||
makeIconFeature(kind: KindT, providers)
|
||||||||||||
|
Helper for creating icon feature objects
Parameters :
Returns :
IconFeature<KindT>
A new feature object |
| provideIcons | ||||||
provideIcons(...features: undefined)
|
||||||
|
Setups design system icons
Parameters :
Returns :
EnvironmentProviders
|
| withFontIconClasses | ||||||
withFontIconClasses(classes)
|
||||||
|
Set the default font icon classes
Parameters :
Returns :
FontIconClassesFeature
|
| withSvgIconDirectory | ||||||||
withSvgIconDirectory(directory: string)
|
||||||||
|
Set the svg icon directory
Parameters :
Returns :
SvgIconDirectoryFeature
|
| provideBrand |
provideBrand()
|
|
Provide brand components
Returns :
EnvironmentProviders
|
| provideButtons |
provideButtons()
|
|
Collects all subpackage providers into a single provider function.
Returns :
EnvironmentProviders
Button providers |
| provideButtonToggle |
provideButtonToggle()
|
|
Applies global styles to button toggles
Returns :
EnvironmentProviders
Button toggle providers |
| provideCodeBlock |
provideCodeBlock()
|
|
Provide the code block component and its dependencies to highlight code.
Returns :
EnvironmentProviders
|
| provideDesignSystem | ||||||
provideDesignSystem(options?: DesignSystemOptions)
|
||||||
|
Returns design system providers
Parameters :
Returns :
EnvironmentProviders
|
| provideDesignSystemCommon | ||||||
provideDesignSystemCommon(options?: DesignSystemOptions)
|
||||||
|
Get the providers shared between prod and testing
Parameters :
|
| providePageSectionNavigation | ||||||||||
providePageSectionNavigation(options: PageSectionActivationOptions)
|
||||||||||
|
Provides the services required for page section tracking. Should be provided inside a component - not in root!
Parameters :
Returns :
Provider[]
Component providers |
| provideScrolling | ||||||||
provideScrolling(options?: ScrollingOptions)
|
||||||||
|
Provide scrolling functionality to an application.
Parameters :
Returns :
EnvironmentProviders
An environment provider |
| provideTabs |
provideTabs()
|
|
Applies global configuration for material UI tabs.
Returns :
EnvironmentProviders
Providers with global configuration. |
| provideTextHyperlink |
provideTextHyperlink()
|
|
Provides the global styles for text hyperlink elements.
Returns :
EnvironmentProviders
Text hyperlink providers |
| provideTrees |
provideTrees()
|
|
Returns providers for tree
Returns :
EnvironmentProviders
|
| resolveUrl | ||||||||||||||||||||
resolveUrl(url: string, router?: Router, rawBaseUrl: string)
|
||||||||||||||||||||
|
Resolves an url against the baseUrl
Parameters :
Returns :
literal type
Whether the url is absolute along with the resolved url |
| setupScrollTesting |
setupScrollTesting()
|
|
Setup the testing environment for scrolling to work. Adds global mocks for functions used by scrolling if they don't exist.
Returns :
void
|