hosanna-ui-docs - v0.9.0
    Preparing search index...

    Implements

    Index

    Constructors

    Properties

    activeDataMap: null | IViewFragmentDataMap = null
    cachedStyles: { [key: string]: IStyle } = {}
    currentLanguage: string = 'en'
    mapCounter: number = 0
    resolutionInfo: IResolutionInfo
    resolutionSuffix: string = 'fhd'
    styles: IStyleDictionary = {}
    translations: IStyleDictionary = {}

    Methods

    • Resolves nested styles by handling $extends and ~reference within the style.

      Parameters

      • style: IStyle

        The style object to resolve.

      • seenStyles: Record<string, boolean> = {}
      • OptionalownerId: string

      Returns IStyle

      The resolved style.

    • Resolves nested style values for a given style key, handling multiple types of references:

      • If the value is a string starting with ~, it treats it as a reference to another named style and recursively resolves it (while detecting circular references).
      • If the value is a string starting with ${}, it binds the value dynamically to a data/view/fn section of the active data map, mapping the key for reactive updates.
      • If the value is a string starting with $(), it binds the value to an observer for the style.
      • If the value is an array or an object, it recursively resolves nested styles.

      This function is critical for supporting dynamic and nested style bindings, enabling the framework to handle complex style dependencies and reactivity.

      Parameters

      • value: IStyle
      • style: IStyle = {}
      • key: string = ''
      • seenStyles: Record<string, boolean> = {}
      • OptionalownerId: string

      Returns IStyle