File

src/app/services/ui/ui.service.ts

Description

A UI service.

Index

Properties
Methods
Accessors

Constructor

constructor(imageService: ImageService, localizationService: LocalizationService, entitiesModel: EntitiesModel, locationReload: () => void)

Constructs the UI service. ~constructor

Parameters :
Name Type Optional Description
imageService ImageService No

The image service injected dependency.

localizationService LocalizationService No

The localization service injected dependency.

entitiesModel EntitiesModel No

The entities model injected dependency.

locationReload function No

Methods

Public chartName
chartName(key: string)

Names a chart element.

Parameters :
Name Type Optional Description
key string No

The type of chart.

Returns : string

The chart element name.

Public getFrequencyStyle
getFrequencyStyle(frequency: any[], emphasis: boolean)

Frequency style.

Parameters :
Name Type Optional Description
frequency any[] No

The frequency to style.

emphasis boolean No

Whether to emphasize the style.

Returns : { color: string; } | { 'font-size': string; 'font-weight': any; color: string; }

The frequency style.

Public id
id(key: string)

Calculates id of an element.

Parameters :
Name Type Optional Description
key string No

The type of id.

Returns : string

The id.

Public label
label(key: string)

Labels an element.

Parameters :
Name Type Optional Description
key string No

The type of label.

Returns : string

The label name.

Public linkLabel
linkLabel(key: string | undefined)

Names an aria-label link.

Parameters :
Name Type Optional Description
key string | undefined No

The type of link.

Returns : string

The aria-label link name.

Public tabName
tabName(key: string)

Names a header aria-labelledby tab.

Parameters :
Name Type Optional Description
key string No

The type of tab.

Returns : string

The header aria-labelledby tab name.

Public uiSlowText
uiSlowText(key: string)

UI slow safe text. Defaults to blank and not placeholder.

Parameters :
Name Type Optional Description
key string No

The ui text element key.

Returns : string

The internationalized slow text.

Public uiText
uiText(key: string)

UI safe text. Defaults to placeholder.

Parameters :
Name Type Optional Description
key string No

The ui text element key.

Returns : string

The internationalized text.

Public windowReload
windowReload()

Reload window.

Returns : void

Properties

Public Readonly componentName
Type : string
Default value : ''

Main component name. Used for a base of the internal anchors.

Public Readonly frequenciesDivider
Type : string
Default value : '•'

Frequencies divider object.

Public Readonly imageService
Type : ImageService
The image service injected dependency.
Public Readonly linkToThisSymbol
Type : string
Default value : '◆'

Link-to-this symbol.

Public Readonly localizationService
Type : LocalizationService
The localization service injected dependency.
Public Readonly tintedToggled$
Default value : new EventEmitter<boolean>()

Tinted toggled event emitter.

Public Readonly uiInvalidated$
Default value : new EventEmitter<boolean>()

UI invalidated event emitter.

Accessors

ui
getui()

UI data getter.

nonBreakingSpace
getnonBreakingSpace()

Non-breaking space character getter.

linkToThisText
getlinkToThisText()

Link-to-this text.

results matching ""

    No results matching ""