PrivateactivePrivatecachedPrivateconfigPrivatecurrentPrivatecurrentPrivatelocalePrivatelocalePrivatemapPrivateresolutionPrivateresolutionPrivateresolvedPrivateresolvedPrivatestyleBumped with fragment constraint layout cache clear when style or active locale changes; see getStyleLayoutRevision.
PrivatestylesPrivatetranslationsPrivate Static ReadonlyMAX_Private Static ReadonlySKIP_Private_PrivateassertPrivateassertPrivatebumpClears fragment constraint layout replay entries and advances the epoch used in cache keys.
Configures the app config, setting up necessary resolution information. This method is called by the framework to initialize the config with device-specific settings.
PrivatecopyOptionalsource: IViewFragmentDataMapPrivatecreateOptionaloptions: IConstraintRuleOptionsPrivatedeepPrivateextractPrivateflattenWalk one style value that may be nested inside an array (objects, nested arrays, primitives).
PrivateflattenPrivategenerateGenerates a unique key for a style object to track seen styles.
The style object.
The generated key.
Returns all style keys from the config as flattened dot-paths with their value types. Used by the remote debugger extension for style key autocompletion.
PrivategetPrivategetPrivategetReturns the active BCP-47 language tag.
PrivategetPrivategetReturns the physical reading direction resolved for the active locale.
Returns the generation of the resolved style currently cached at key.
A newly resolved style receives a new generation even when a targeted
invalidation does not advance the global layout revision.
Monotonic epoch bumped whenever resolved styles or constraint layout validity may change
(setConfig, set, resetCache). Included in fragment constraint layout cache keys.
Deep-cloned styles JSON for remote debugger tree view. Omits root-only noise keys
($schema, note, translations) consistent with getAllStyleKeys.
Invalidates cached resolved styles for a branch and its descendants without clearing unrelated resolved-style cache entries.
PrivateisPrivateisIndicates whether setConfig(...) has been called with app configuration data.
PrivateisPrivateisPrivatemergePrivatenormalizePrivatenotifyPrivateparsePrivateparsePrivateparsePrivateparsePrivateparsePrivateparsePrivateremovePrivateremoveClears resolved-style cache and process-local fragment constraint layout cache
(clearFragmentConstraintLayoutCache from FragmentConstraintLayoutCache.ts), so constraint replay keys cannot outlive style reloads.
PrivateresolvePrivateresolveOptionalownerId: stringPrivateresolvePrivateresolvePrivateresolvePrivateresolvePrivateresolveResolves nested style values for a given style key, handling multiple types of references:
~, it treats it as a reference to another named style
and recursively resolves it (while detecting circular references).${}, it binds the value dynamically to a data/view/fn
section of the active data map, mapping the key for reactive updates.$(), it binds the value to an observer for the style.This function is critical for supporting dynamic and nested style bindings, enabling the framework to handle complex style dependencies and reactivity.
PrivateresolveResolves the configuration for a given row, applying any overrides.
The row for which to resolve the configuration.
PrivateresolveSets a single configuration entry in the registry, with an option to merge with existing configurations.
The unique identifier for the configuration.
The configuration data to be set.
If true, merges with an existing configuration.
Sets the initial JSON with all configurations, clearing any cached configurations.
The JSON containing all configurations.
Sets the current language/locale for translations.
The language code to set.
The section key for translations (optional).
PrivatesetPrivatesortSubscribes to successful locale changes and returns a removable subscription id.
PrivatesubstituteGets a translation for the given key.
The translation key.
The translated string.
Removes a locale-change subscription.
Updates a single branch inside the configuration tree and invalidates cached resolved styles for that branch only.
Privatevalidate
The
AppConfigclass implements the IAppConfig interface and provides the core functionality for managing application configuration data loaded fromapp.config.jsonfiles. These configuration files contain styling information, text strings, service endpoints, and behavioral settings that control how Hosanna UI applications look and behave.Configurations can be loaded from:
app.config.jsonfiles bundled with the appKey features:
$extendssyntax${data.key}expressions that map to runtime data