| _virtualScrollWindowStrategyFactory | ||||||||
_virtualScrollWindowStrategyFactory(windowDir: VirtualScrollWindowDirective)
|
||||||||
|
Provider factory for
Parameters :
|
| absoluteDateServiceFactory | ||||||
absoluteDateServiceFactory(datePipe: DatePipe)
|
||||||
|
Parameters :
|
| addonsExtension | ||||||
addonsExtension(field: FormlyFieldConfig)
|
||||||
|
Parameters :
|
| addPolyfills |
addPolyfills()
|
| addUsage | ||||||
addUsage(total, usage)
|
||||||
|
Parameters :
Returns :
AIAssistantMessage['usage']
|
| applyApprovalResponse | |||||||||
applyApprovalResponse(turn, part: ToolApprovalResponseContent)
|
|||||||||
|
Parameters :
Returns :
void
|
| applyToolResult | |||||||||
applyToolResult(turn, part: ToolResultContent)
|
|||||||||
|
Parameters :
Returns :
void
|
| buildStepMessages | ||||||||||||||||
buildStepMessages(stepParts, resultsByToolCallId: Map, serializedToolCallIds: Set)
|
||||||||||||||||
|
Converts one step's parts into the
Parameters :
Returns :
ConversationMessage[]
|
| findToolCall | |||||||||
findToolCall(turn, toolCallId: string)
|
|||||||||
|
Parameters :
Returns :
ToolCallPart | undefined
|
| fromConversationMessages | ||||||
fromConversationMessages(messages)
|
||||||
|
Restores stored messages into the format the chat renders, inverting The consecutive assistant and tool messages that one assistant turn was split into are merged
back into a single message, with a A restored approved call carries its result on the approval part itself, rather than in the following message where it originally streamed in. The chat renders that identically, and a restored decision is never re-actionable: the approval buttons only appear on the latest message. Note that the wire format marks where a step ended but not where a turn did, so assistant messages that followed one another without the user speaking in between — an approval and the response resumed from it, for example — come back merged into a single turn. Every part and its order is preserved; only the split into separate messages is not. The merged turn carries the sum of their token usage and the timestamp of the last one. Messages recorded as coming from different agents are never merged.
Parameters :
Returns :
AIMessage[]
|
| toConversationMessages | ||||||
toConversationMessages(messages)
|
||||||
|
Converts chat messages into the format accepted by the conversation storage API. Unlike the history sent to the agent, tool calls are preserved so a stored conversation can be
restored with its full transcript by
Parameters :
Returns :
ConversationMessage[]
|
| withDisplayMetadata | |||||||||
withDisplayMetadata(stored: ModelMessage, source: AIMessage)
|
|||||||||
|
Parameters :
Returns :
ConversationMessage
|
| addUsage | ||||||
addUsage(total, usage)
|
||||||
|
Parameters :
Returns :
AIAssistantMessage['usage']
|
| continuesTurn | |||||||||
continuesTurn(turn, message: AIMessage)
|
|||||||||
|
Whether the message continues the turn: both are from the assistant, and from the same agent.
Parameters :
Returns :
boolean
|
| findPrecedingUserMessage | ||||||||||||
findPrecedingUserMessage(messages, assistantMessage: AIMessage)
|
||||||||||||
|
Finds the user message that the specified assistant message answers. This is not always the message just before it: the response resumed after a tool approval follows another assistant message.
Parameters :
Returns :
AIUserMessage | undefined
|
| isToolCallPart | ||||||
isToolCallPart(part: AIMessagePart)
|
||||||
|
Parameters :
Returns :
ToolCallPart
|
| mergeAssistantMessages | ||||
mergeAssistantMessages(sources)
|
||||
|
Parameters :
Returns :
AIAssistantMessage
|
| toDisplayMessages | ||||||||||||
toDisplayMessages(messages, previous)
|
||||||||||||
|
Groups the stored messages into the messages the chat renders. Consecutive assistant messages without a user message in between - a tool approval request and
the response resumed after the user's decision - are rendered as a single message, the same way
The stored messages are not modified.
Parameters :
Returns :
DisplayMessage[]
|
| withResult | |||||||||
withResult(approvalPart: ToolCallPart, result: ToolCallPart)
|
|||||||||
|
Parameters :
Returns :
ToolCallPart
|
| agentToAgentLabelProvider | |||||||||
agentToAgentLabelProvider(tool: ToolCallPart, translateService: TranslateService)
|
|||||||||
|
A
Parameters :
Returns :
string | undefined
|
| alarmCount3MonthsValue | ||||||||||||
alarmCount3MonthsValue(config: AlarmCountConfig, asset: IManagedObject, metadata: ValueCallbackMetadata)
|
||||||||||||
|
Parameters :
Returns :
Observable<number>
|
| alarmCountTodayValue | ||||||||||||
alarmCountTodayValue(config: AlarmCountConfig, asset: IManagedObject, metadata: ValueCallbackMetadata)
|
||||||||||||
|
Parameters :
Returns :
Observable<number>
|
| alarmCountValue | |||||||||||||||||||||||||
alarmCountValue(config: AlarmCountConfig, asset: IManagedObject, dateFrom: Date, metadata: ValueCallbackMetadata)
|
|||||||||||||||||||||||||
|
Creates an Observable that tracks alarm count for a specific asset. When real-time is paused and resumed, it re-fetches the current count from server to account for alarms that occurred during the pause.
Parameters :
Returns :
Observable<number>
Observable |
| alarmsCockpitRouteAndNodeConfig |
alarmsCockpitRouteAndNodeConfig()
|
|
Returns :
ModuleWithProviders<AlarmsModule>
|
| alarmsDeviceManagementRouteAndNodeConfig |
alarmsDeviceManagementRouteAndNodeConfig()
|
|
Returns :
ModuleWithProviders<AlarmsModule>
|
| allEntriesAreEqual | |||||||||
allEntriesAreEqual(previous: Array, next: Array)
|
|||||||||
|
Parameters :
Returns :
boolean
|
| fromFactories | ||||||||||||||||
fromFactories<T>(factories?: Array, router?: Router, withFirstEmpty: unknown)
|
||||||||||||||||
Type parameters :
|
||||||||||||||||
|
Parameters :
Returns :
Observable<T[]>
|
| fromTrigger | ||||||||||||
fromTrigger<T>(router: Router, refresh, factories: Array)
|
||||||||||||
Type parameters :
|
||||||||||||
|
Parameters :
Returns :
Observable<T[]>
|
| fromTriggerOnce | ||||||||||||||||||||
fromTriggerOnce<T>(router: Router, refresh, factories: Array, withFirstEmpty: unknown)
|
||||||||||||||||||||
Type parameters :
|
||||||||||||||||||||
|
Parameters :
Returns :
Observable<T[]>
|
| getActivatedRoute | ||||||||
getActivatedRoute(router: Router)
|
||||||||
|
Helper function to get the activated route in a service (as ActivatedRoute injection only works in components). Works as long as we only use a tree and no child is active at the same time.
Parameters :
Returns :
ActivatedRoute
|
| getInjectedHooks | ||||||||||||||||
getInjectedHooks<T>(token: InjectionToken, injectors, type: unknown)
|
||||||||||||||||
Type parameters :
|
||||||||||||||||
|
Parameters :
Returns :
T[]
|
| hookGeneric | ||||||||||||||||
hookGeneric<T>(items, token: InjectionToken, options?: Partial)
|
||||||||||||||||
Type parameters :
|
||||||||||||||||
|
A generic function to be used by specific implementations of the HOOK concept.
Parameters :
A |
| isExtensionFactory | ||||||
isExtensionFactory<T = any>(obj: any)
|
||||||
Type parameters :
|
||||||
|
Parameters :
Returns :
ExtensionFactory<T>
|
| isPromise | ||||||
isPromise<T = any>(obj: any)
|
||||||
Type parameters :
|
||||||
|
Parameters :
Returns :
Promise<T>
|
| removeDuplicatesIds | ||||
removeDuplicatesIds<T extends { id?: string; priority?: number }>(items)
|
||||
Type parameters :
|
||||
|
Parameters :
Returns :
T[]
|
| resolveInjectedFactories | ||||||
resolveInjectedFactories<T>(factories: Array)
|
||||||
Type parameters :
|
||||||
|
Parameters :
Returns :
Array<T | [] | ExtensionFactory>
|
| sortByPriority | ||||
sortByPriority<T>(items)
|
||||
Type parameters :
|
||||
|
Parameters :
Returns :
T[]
|
| stateToFactory | ||||||
stateToFactory<T>(componentsState: unknown)
|
||||||
Type parameters :
|
||||||
|
Parameters :
Returns :
ExtensionFactory<T>
|
| toObservable | ||||||
toObservable<T>(value)
|
||||||
Type parameters :
|
||||||
|
Converts any value provided to an Observable that emits this value once and then completes. A convenience method to represent all the data as Observables rather than a mixture of Observables and other types.
Parameters :
Returns :
Observable<T>
|
| toObservableOfArrays | |||||||||
toObservableOfArrays<T>(factoryResult, withFirstEmpty: boolean)
|
|||||||||
Type parameters :
|
|||||||||
|
Parameters :
Returns :
Observable<T[]>
|
| appendErrors | |||||||||
appendErrors(errors: ValidationErrors, newErrors)
|
|||||||||
|
Parameters :
Returns :
ValidationErrors
|
| appendExtensionFromMimeType |
appendExtensionFromMimeType(name: string, mimeType: string)
|
|
Appends an extension derived from the MIME type when the filename lacks a useful one, so the inline editor can detect the language. Returns the name unchanged for unknown types (e.g. application/octet-stream) or when a matching extension is already present.
Returns :
string
|
| mimeTypeToEditorLanguage | ||||||
mimeTypeToEditorLanguage(mimeType: string)
|
||||||
|
Resolves a served MIME type to a Monaco editor language id, falling back to plain text.
Parameters :
Returns :
string
|
| applyAggregationChangesForGlobalState | ||||||
applyAggregationChangesForGlobalState(params: ApplyAggregationForGlobalStateParams)
|
||||||
|
Parameters :
Returns :
boolean
|
| evaluateAggregationValidation | ||||||
evaluateAggregationValidation(deps: AggregationValidationDeps)
|
||||||
|
Parameters :
Returns :
AggregationValidationOutcome | null
|
| resolveAggregationChangeForForm | ||||||
resolveAggregationChangeForForm(params: ResolveAggregationChangeForFormParams)
|
||||||
|
Parameters :
Returns :
AggregationChangeInstruction | null
|
| resolveAutoUnlinkAggregationChange | ||||||
resolveAutoUnlinkAggregationChange(params: ResolveAutoUnlinkParams)
|
||||||
|
Parameters :
Returns :
AggregationChangeInstruction | null
|
| applyConfigOverride | |||||||||
applyConfigOverride(ctx: LinkHelpersContext, config: Partial)
|
|||||||||
|
Parameters :
Returns :
void
|
| applyGlobalValueToForm | |||||||||
applyGlobalValueToForm(ctx: LinkHelpersContext, key)
|
|||||||||
|
Parameters :
Returns :
void
|
| applyHandlerResult | |||||||||
applyHandlerResult(ctx: LinkHelpersContext, result: WidgetStateHandlerResult)
|
|||||||||
|
Parameters :
Returns :
boolean
|
| applyLocalStateToForm | |||||||||
applyLocalStateToForm(ctx: LinkHelpersContext, keys: Array)
|
|||||||||
|
Parameters :
Returns :
void
|
| buildControlLinkConfig | ||||||||||||
buildControlLinkConfig(ctx: LinkHelpersContext, settings: Partial, linkStates)
|
||||||||||||
|
Parameters :
|
| buildWidgetState | |||||||||
buildWidgetState(ctx: LinkHelpersContext, configOverride?)
|
|||||||||
|
Parameters :
Returns :
WidgetState
|
| handleLinkToggle | ||||||||||||
handleLinkToggle(ctx: LinkHelpersContext, event: LinkToggleEvent, options?)
|
||||||||||||
|
Parameters :
Returns :
boolean
|
| processLinkUpdates | ||||||||||||
processLinkUpdates(ctx: LinkHelpersContext, links: Partial, options?)
|
||||||||||||
|
Parameters :
Returns :
boolean
|
| processOptions | |||||||||
processOptions(ctx: LinkHelpersContext, options: Record)
|
|||||||||
|
Parameters :
Returns :
void
|
| resetHandlerOverrides | ||||||
resetHandlerOverrides(ctx: LinkHelpersContext)
|
||||||
|
Parameters :
Returns :
void
|
| syncWithEffectiveConfig | |||||||||
syncWithEffectiveConfig(ctx: LinkHelpersContext, keys: Array)
|
|||||||||
|
Parameters :
Returns :
void
|
| toggleAllLinks | |||||||||
toggleAllLinks(ctx: LinkHelpersContext, args)
|
|||||||||
|
Parameters :
Returns :
void
|
| updateFormAndLocalState | ||||||||||||
updateFormAndLocalState<T extends keyof GlobalContextState>(ctx: LinkHelpersContext, field: T, value)
|
||||||||||||
Type parameters :
|
||||||||||||
|
Parameters :
Returns :
void
|
| updateFormField | ||||||||||||
updateFormField(ctx: LinkHelpersContext, key, value)
|
||||||||||||
|
Parameters :
Returns :
void
|
| applyEntitySharing | ||||||||||||
applyEntitySharing(dataSharing, entityType: SharedEntityType, applicationKeys)
|
||||||||||||
|
Produces a new data sharing configuration where the set of applications sharing
the given entity type is replaced with
Parameters :
Returns :
DataSharing
|
| getSharedApplicationKeys | |||||||||
getSharedApplicationKeys(dataSharing, entityType: SharedEntityType)
|
|||||||||
|
Returns the keys of the applications the given data sharing configuration shares the specified entity type with.
Parameters :
Returns :
string[]
|
| applyLocalAggregationChange | |||||||||
applyLocalAggregationChange(ctx: RefreshHelpersContext, change: AggregationChangeInstruction)
|
|||||||||
|
Parameters :
Returns :
void
|
| applyRefreshOutcome | |||||||||
applyRefreshOutcome(ctx: RefreshHelpersContext, outcome: RefreshResult)
|
|||||||||
|
Parameters :
Returns :
void
|
| calculateDisabledAggregationsFromContext | |||||||||
calculateDisabledAggregationsFromContext(ctx: RefreshHelpersContext, dateTimeContext: DateTimeContext)
|
|||||||||
|
Parameters :
Returns :
Partial<Record<aggregationType, boolean>>
|
| calculateFromDateRange | |||||||||
calculateFromDateRange(ctx: RefreshHelpersContext, dateTimeContext: DateTimeContext)
|
|||||||||
|
Parameters :
Returns :
Partial<Record<aggregationType, boolean>>
|
| calculateFromInterval | |||||||||
calculateFromInterval(ctx: RefreshHelpersContext, interval)
|
|||||||||
|
Parameters :
Returns :
Partial<Record<aggregationType, boolean>>
|
| createDateRange | ||||||
createDateRange(dateTimeContext: DateTimeContext)
|
||||||
|
Parameters :
Returns :
unknown
|
| deriveDisabledAggregations | ||||||
deriveDisabledAggregations(ctx: RefreshHelpersContext)
|
||||||
|
Parameters :
Returns :
Partial<Record<aggregationType, boolean>>
|
| generateFreshDateTimeContext | ||||||
generateFreshDateTimeContext(interval: TimeInterval)
|
||||||
|
Parameters :
Returns :
DateTimeContext
|
| getShouldDisableIntervalConfig | ||||||
getShouldDisableIntervalConfig(ctx: RefreshHelpersContext)
|
||||||
|
Parameters :
Returns :
Record<string, boolean>
|
| handleGlobalRefresh | |||||||||
handleGlobalRefresh(ctx: RefreshHelpersContext, globalDateTimeContext: DateTimeContext)
|
|||||||||
|
Parameters :
Returns :
void
|
| hasValidDateRange | ||||
hasValidDateRange(dateTimeContext)
|
||||
|
Parameters :
Returns :
boolean
|
| hasValidInterval | ||||||
hasValidInterval(dateTimeContext: DateTimeContext)
|
||||||
|
Parameters :
Returns :
boolean
|
| patchFormValues | |||||||||
patchFormValues(ctx: RefreshHelpersContext, formUpdates: Partial)
|
|||||||||
|
Parameters :
Returns :
void
|
| processRefreshEvent | |||||||||
processRefreshEvent(ctx: RefreshHelpersContext, params)
|
|||||||||
|
Parameters :
Returns :
RefreshResult
|
| recalculateAggregationForGlobalDateTime | ||||||
recalculateAggregationForGlobalDateTime(ctx: RefreshHelpersContext)
|
||||||
|
Parameters :
Returns :
void
|
| recalculateAggregationForLocalDateTime | ||||||
recalculateAggregationForLocalDateTime(ctx: RefreshHelpersContext)
|
||||||
|
Parameters :
Returns :
void
|
| updateAggregationValue | |||||||||
updateAggregationValue(ctx: RefreshHelpersContext, aggregation)
|
|||||||||
|
Parameters :
Returns :
void
|
| updateFormDateTimeContext | |||||||||
updateFormDateTimeContext(ctx: RefreshHelpersContext, newContext: DateTimeContext)
|
|||||||||
|
Parameters :
Returns :
void
|
| updateLocalDateTimeContext | |||||||||
updateLocalDateTimeContext(ctx: RefreshHelpersContext, newContext: DateTimeContext)
|
|||||||||
|
Parameters :
Returns :
void
|
| applyModeConstraints | ||||||||||||||||
applyModeConstraints(controls, refreshOption: RefreshOption, isAutoRefreshEnabled?)
|
||||||||||||||||
|
Apply mode constraints (hard rules) to filter controls based on refresh option.
Parameters :
Returns :
ContextFeature[]
Filtered array with mode constraints applied |
| controlsToSettings | ||||||||||||||||||||
controlsToSettings(controls, displayMode: DisplayMode, refreshOption: RefreshOption, isAutoRefreshEnabled?)
|
||||||||||||||||||||
|
Convert controls preset to GlobalContextSettings for registration.
Parameters :
Returns :
Partial<GlobalContextSettings>
|
| getSupportedModes | ||||||||||||
getSupportedModes(controls, displayMode: DisplayMode)
|
||||||||||||
|
Get supported modes from a preset definition. Modes are derived from features:
Parameters :
Returns :
RefreshOption[]
Array of supported refresh options |
| resolveIntervalOptions | ||||
resolveIntervalOptions(controls)
|
||||
|
Standard intervals, optionally prepended with "Lifetime" when the preset opts in.
Parameters :
Returns :
Interval[]
|
| applySettings | ||||||||||||
applySettings(controls: WidgetControls, settings: WidgetControlSettings)
|
||||||||||||
|
Transforms and applies hierarchical settings to the widget controls structure. Takes the simplified WidgetControlSettings format and distributes the configuration across the complete WidgetControls structure, populating both inline (settings) and configuration panel (configSettings) branches for each display mode and refresh option. This function also processes defaultLinks and ensures they are properly distributed to match the control settings hierarchy.
Parameters :
Returns :
void
|
| defineWidgetControls | ||||||
defineWidgetControls(config)
|
||||||
|
Creates a comprehensive widget controls configuration for global context integration. This factory function generates the complete control structure that determines how a widget interacts with the global context (time range, aggregation, auto-refresh). It handles:
Parameters :
Returns :
WidgetControls
Complete WidgetControls object ready for use in widget definitions |
| processHandlers | ||||||||
processHandlers(handlers: Record)
|
||||||||
|
Wraps user-defined handlers into the stateHandlers format expected by WidgetControls. This function transforms the simplified WidgetControlHandler format into the internal stateHandlers structure. Each handler receives the current widget state and returns modified control settings and link states. The wrapper ensures handlers are always invoked (even without widget state) and properly propagates the widget state to the handler function for decision-making.
Parameters :
Returns :
WidgetControls['stateHandlers']
Map of handler names to wrapped functions compatible with WidgetControls.stateHandlers |
| assertUnreachable | ||||||
assertUnreachable(_: never)
|
||||||
|
Parameters :
Returns :
never
|
| assignClonedValue | ||||||||||||
assignClonedValue<K extends keyof GlobalContextState>(target: Partial, key: K, value)
|
||||||||||||
Type parameters :
|
||||||||||||
|
Parameters :
Returns :
void
|
| executeHandler | |||||||||
executeHandler(context: ExecuteHandlerContext, deps: ExecuteHandlerDependencies)
|
|||||||||
|
Parameters :
Returns :
void
|
| handleFormChange | |||||||||
handleFormChange(context: HandleFormChangeContext, deps: FormChangeDependencies)
|
|||||||||
|
Parameters :
Returns :
void
|
| handleGlobalStateChange | |||||||||
handleGlobalStateChange(context: HandleGlobalStateChangeContext, deps: GlobalStateChangeDependencies)
|
|||||||||
|
Parameters :
Returns :
void
|
| asyncValidateArrayElements | ||||||||
asyncValidateArrayElements(validator: AsyncValidatorFn)
|
||||||||
|
Async version of validateArrayElements. Note that Angular by design doesn't execute async validators if synchronous validators returns any error.
Parameters :
Returns :
AsyncValidatorFn
|
| generateArrayRelatedErrors | ||||||
generateArrayRelatedErrors(errors: Array)
|
||||||
|
Parameters :
Returns :
ArrayValidationErrors
|
| validateArrayElements | ||||||||
validateArrayElements(validator: ValidatorFn)
|
||||||||
|
This method can alter how validators work. It can be used in cases where there is need to validate FormControl that as value, takes array of elements. This allows to reuse validators, that works for such elements. For example if Validators.minLength(3) is used on control that takes string as value, validator will return error if string is less than 3 characters. If same is done on array of strings, validator will return error if array has less than 3 elements. validateArrayElements(Validators.minLength(3)) method makes it possible to check every member of array if it has minimum 3 characters. If there are elements that raise error, it will be possible to extract these errors using item index. As a example, this can be used for custom form elements, which manipulates array of elements, and there is need to display corresponding error messages for every array member that is displayed, while still using Angular's Validation approach. Errors that are generated by this helper are prefixed with 'INNER_ARRAY_ERROR_'. Reason for this is to prevent overwriting normal validation errors that could have same key
Parameters :
Returns :
ValidatorFn
|
| atLeastOneDataPointActive | ||||
atLeastOneDataPointActive(dataPointsControlNames)
|
||||
|
Parameters :
Returns :
ValidatorFn
|
| gaugeDatapointHasRange | ||||||
gaugeDatapointHasRange(controlName: string)
|
||||||
|
Parameters :
Returns :
ValidatorFn
|
| authBridgeServiceFactory | ||||||||||||||||||
authBridgeServiceFactory(injector: any, basicAuth: BasicAuth, fetchClient: FetchClient, appState: AppStateService, tenantUiService: TenantUiService)
|
||||||||||||||||||
|
Parameters :
|
| autoAggregationDatapointsValidator | ||||||
autoAggregationDatapointsValidator(control: AbstractControl)
|
||||||
|
Parameters :
Returns :
ValidationErrors | null
|
| clampAutoAggregationDatapoints | ||||||
clampAutoAggregationDatapoints(value: number)
|
||||||
|
Snaps a "Points per chart" value to a whole number in the allowed [MIN, MAX] range.
Parameters :
Returns :
number
|
| isValidAutoAggregationDatapoints | ||||
isValidAutoAggregationDatapoints(value)
|
||||
|
True when the value is a whole number within the allowed "Points per chart" range.
Parameters :
Returns :
number
|
| bindAssetPropertyMappingsToContext | ||||||||||||
bindAssetPropertyMappingsToContext(mappings: AssetPropertyMappings, context: Partial)
|
||||||||||||
|
Binds per-placeholder asset property mappings to the given context, whichever assets they pointed at before. This is the
Parameters :
Returns :
AssetPropertyMappings
The same mappings object, with every asset reference bound to the context |
| encodeForDoubleQuote | ||||||
encodeForDoubleQuote(key: string)
|
||||||
|
How the key would appear inside a JS double-quoted string literal.
Parameters :
Returns :
string
|
| encodeForSingleQuote | ||||||
encodeForSingleQuote(key: string)
|
||||||
|
How the key would appear inside a JS single-quoted string literal.
Parameters :
Returns :
string
|
| escapeForRegExp | ||||||
escapeForRegExp(key: string)
|
||||||
|
Parameters :
Returns :
string
|
| getPropertyBaseKey | ||||||
getPropertyBaseKey(property: AssetPropertyType)
|
||||||
|
Returns a semantically meaningful base key for the given asset property.
Parameters :
Returns :
string
|
| quoteAndEscape | ||||||
quoteAndEscape(key: string)
|
||||||
|
Wraps key in quotes for bracket notation, choosing the quote style that requires fewest escapes.
Parameters :
Returns :
string
|
| rebindAssetPropertyMappings | ||||||||||||||||
rebindAssetPropertyMappings(mappings: AssetPropertyMappings, context: Partial, shouldRebind)
|
||||||||||||||||
|
Shared walker of the asset references an
Parameters :
Returns :
AssetPropertyMappings
|
| renamePropertyKeyInCode | |||||||||||||||||||||||||
renamePropertyKeyInCode(code: string, oldKey: string, newKey: string, expressionPrefixes)
|
|||||||||||||||||||||||||
|
Replaces all references to Bracket notation matching correctly handles JS string escape sequences (e.g.
Parameters :
Returns :
string
|
| replaceContextInAssetPropertyMappings | ||||||||||||||||
replaceContextInAssetPropertyMappings(mappings: AssetPropertyMappings, newContext: Partial, oldContext: Partial)
|
||||||||||||||||
|
Replaces context IDs in per-placeholder asset property mappings (see Each mapping's
Parameters :
Returns :
AssetPropertyMappings
The same mappings object, with matching asset references replaced in place |
| stripC8yPrefix | ||||||
stripC8yPrefix(s: string)
|
||||||
|
Parameters :
Returns :
string
|
| bindAssetReferenceToContext | ||||||||||||
bindAssetReferenceToContext<T extends IIdentified>(reference: T, context: Partial)
|
||||||||||||
Type parameters :
|
||||||||||||
|
Binds a single asset reference of a widget configuration to the given context, whichever asset it pointed at before. Use this from a widget's Only
Parameters :
Returns :
T
The same reference, bound to the context |
| referencesOldContext | ||||||||||||
referencesOldContext(id, oldContext: Partial)
|
||||||||||||
|
Checks whether the given managed object ID refers to the old context. IDs are compared as strings, because a configuration can hold them either as a string or as a number depending on how it was created (e.g. seeded through the API), while the context always carries the platform's string ID.
Parameters :
Returns :
boolean
|
| replaceContextInAssetReference | ||||||||||||||||
replaceContextInAssetReference<T extends IIdentified>(reference: T, newContext: Partial, oldContext: Partial)
|
||||||||||||||||
Type parameters :
|
||||||||||||||||
|
Rebinds a single asset reference of a widget configuration to the new context. Use this from a widget's
Parameters :
Returns :
T
The same reference, rebound when it matched the old context |
| bridgeServiceFactory | |||||||||||||||||||||
bridgeServiceFactory(injector: any, appState: AppStateService, router: Router, ngZone: NgZone, routerService: RouterService, actionService: ActionService)
|
|||||||||||||||||||||
|
Parameters :
|
| buildAggregationExtensions |
buildAggregationExtensions()
|
|
Adds aggregation visibility and default link behaviour on top of the baseline template.
Returns :
PartialWidgetControls
Partial widget controls that enable aggregation. |
| buildBaselineControls |
buildBaselineControls()
|
|
Baseline control template used by most widgets. Mirrors the alarm list widget behaviour and serves as the foundation for additional presets.
Returns :
PartialWidgetControls
Partial widget controls describing the baseline template. |
| createAutoRefreshHandlers |
createAutoRefreshHandlers()
|
|
Factory returning scroll-friendly auto-refresh handlers used by multiple presets. |
| disableAutoRefreshHandler | ||||||
disableAutoRefreshHandler(state: WidgetState)
|
||||||
|
Parameters :
|
| enableAutoRefreshHandler | ||||||
enableAutoRefreshHandler(state: WidgetState)
|
||||||
|
Parameters :
|
| mergePartialControls | ||||||||||||
mergePartialControls(base: PartialWidgetControls, addition: PartialWidgetControls)
|
||||||||||||
|
Returns a deep-merged copy of the baseline and supplied partial overrides, unionising supported keys and concatenating handlers.
Parameters :
Returns :
PartialWidgetControls
Combined partial controls. |
| buildDatapointLabel | ||||||||||||
buildDatapointLabel(datapoint, options: Pick)
|
||||||||||||
|
Builds the raw label of a datapoint, its own label or
Parameters :
Returns :
string
|
| buildDatapointTranslationKey | |||||||||
buildDatapointTranslationKey<T extends DatapointTextType, TXT extends string>(type: T, text: TXT)
|
|||||||||
Type parameters :
|
|||||||||
|
Builds a translation key using the existing gettext translator-context backtick
annotation (
Parameters :
Returns :
template literal type
|
| translateDatapointDescription | ||||||||||||
translateDatapointDescription(datapointOrDescription, translate: TranslateService)
|
||||||||||||
|
Translates the description of a datapoint.
Parameters :
Returns :
string
|
| translateDatapointLabel | ||||||||||||||||||||
translateDatapointLabel(datapointOrLabel, translate: TranslateService, options: DatapointLabelOptions)
|
||||||||||||||||||||
|
Translates the label of a datapoint, falling back to
Parameters :
Returns :
string
|
| translateDatapointText | ||||||||||||
translateDatapointText(translate: TranslateService, type: DatapointTextType, text)
|
||||||||||||
|
Resolves a translated datapoint label/description if the tenant has registered one.
When no matching entry exists, Prefer
Parameters :
Returns :
string
|
| translateDatapointUnit | ||||||||||||
translateDatapointUnit(datapointOrUnit, translate: TranslateService)
|
||||||||||||
|
Translates the unit of a datapoint.
Parameters :
Returns :
string
|
| buildFreshContext | |||||||||
buildFreshContext(context: RefreshContext, interval: TimeInterval)
|
|||||||||
|
Parameters :
Returns :
DateTimeContext
|
| calculateRefreshOutcome | |||||||||
calculateRefreshOutcome(context: RefreshContext, deps: RefreshDependencies)
|
|||||||||
|
Parameters :
Returns :
RefreshResult
|
| handleLocalAutoRefresh | |||||||||
handleLocalAutoRefresh(context: RefreshContext, deps: RefreshDependencies)
|
|||||||||
|
Parameters :
Returns :
RefreshResult
|
| resolveRefreshInterval | |||||||||
resolveRefreshInterval(fieldSources: FieldSourcesMap, configInterval)
|
|||||||||
|
Parameters :
Returns :
TimeInterval
|
| buildWidgetControlsFromPresets | ||||||||
buildWidgetControlsFromPresets(config: WidgetControlsPresetConfig)
|
||||||||
|
Creates a fully hydrated WidgetControls by expanding the selected presets (and optional customiser) against the default template.
Parameters :
Returns :
WidgetControls
Fully merged widget controls ready for consumption. |
| dedupe | ||||||
dedupe(values)
|
||||||
|
Removes duplicate preset names while preserving the first occurrence.
Parameters :
Returns :
WidgetPresetName[]
Deduplicated preset array. |
| isPresetConfig | ||||
isPresetConfig(input)
|
||||
|
Parameters :
Returns :
WidgetControlsPresetConfig
|
| mergeWidgetControls | ||||||||||||
mergeWidgetControls(base: WidgetControls, addition: PartialWidgetControls)
|
||||||||||||
|
Merges partial control metadata into a cloned base instance, unionising the supported keys array and deep-merging nested settings/link structures.
Parameters :
Returns :
WidgetControls
Combined widget controls instance. |
| normalizePresetSelection | ||||||||
normalizePresetSelection(selection: WidgetPresetSelection)
|
||||||||
|
Normalises caller input to a deduplicated, ordered preset array.
Parameters :
Returns :
WidgetPresetName[]
Ordered list of preset identifiers without duplicates. |
| resolvePreset | ||||||||
resolvePreset(name: WidgetPresetName)
|
||||||||
|
Retrieves the preset definition or throws if it does not exist.
Parameters :
Returns :
WidgetControlsPresetDefinition
Preset definition from the registry. |
| resolveWidgetControlsInput | ||||
resolveWidgetControlsInput(input)
|
||||
|
Parameters :
Returns :
WidgetControls
|
| warnForExclusiveConflicts | ||||||
warnForExclusiveConflicts(definitions)
|
||||||
|
Emits a console warning whenever multiple presets from the same
Parameters :
Returns :
void
|
| c8yAlertDecorator | ||||||||||||
c8yAlertDecorator($delegate: unknown, $rootScope: unknown, $injector: unknown)
|
||||||||||||
|
Parameters :
|
| c8yNavigatorProvider |
c8yNavigatorProvider()
|
| c8yNg1HttpInterceptor | ||||||||||||
c8yNg1HttpInterceptor($q: unknown, c8yLoadingIndicator: unknown, c8yApiService: unknown)
|
||||||||||||
|
Parameters :
|
| c8yTitleDecorator | |||||||||||||||||||||||||||
c8yTitleDecorator($q: unknown, $delegate: unknown, $injector: unknown, $rootScope: unknown, $location: unknown, $templateCache: unknown, $compile: unknown, c8yHeaderService: unknown)
|
|||||||||||||||||||||||||||
|
Parameters :
|
| c8yUiRootController | |||||||||||||||||||||
c8yUiRootController($rootScope: unknown, $timeout: unknown, c8yBase: unknown, c8yNavigator: unknown, c8yApplication: unknown, c8yHeaderService: unknown)
|
|||||||||||||||||||||
|
Parameters :
|
| c8yValidationConfigFactory | ||||||
c8yValidationConfigFactory(translate: TranslateService)
|
||||||
|
Parameters :
|
| c8yViewsProvider | ||||||||||||
c8yViewsProvider($routeProvider: unknown, c8yTabsProvider: unknown, c8yPathUtils: unknown)
|
||||||||||||
|
Parameters :
|
| canActivateDashboardManager |
canActivateDashboardManager()
|
|
Returns :
Observable<boolean>
|
| canActivateDashboardManager |
canActivateDashboardManager()
|
|
Returns :
Observable<boolean>
|
| canActivateDatapointExplorer |
canActivateDatapointExplorer()
|
|
Returns :
Observable<boolean>
|
| childAssetsCountValue | |||||||||||||||
childAssetsCountValue(asset: IManagedObject, metadata: ValueCallbackMetadata)
|
|||||||||||||||
|
Creates an Observable that tracks the count of child assets for a specific asset. Supports real-time updates when child assets are added or removed.
Parameters :
Returns :
Observable<number>
Observable |
| childCountValue | ||||||||||||||||||||
childCountValue(asset: IManagedObject, metadata: ValueCallbackMetadata, childType)
|
||||||||||||||||||||
|
Shared function that tracks the count of child items (devices or assets) for a specific managed object. Supports real-time updates when child items are added or removed.
Parameters :
Returns :
Observable<number>
Observable |
| childDevicesCountValue | |||||||||||||||
childDevicesCountValue(asset: IManagedObject, metadata: ValueCallbackMetadata)
|
|||||||||||||||
|
Creates an Observable that tracks the count of child devices for a specific asset. Supports real-time updates when child devices are added or removed.
Parameters :
Returns :
Observable<number>
Observable |
| clearAggregationState | ||||||
clearAggregationState<T extends Partial
|
||||||
Type parameters :
|
||||||
|
Returns a copy with every aggregation field cleared. Running live must not carry aggregation state; paused live (auto-refresh off) and history may — callers gate on isRunningLive.
Parameters :
Returns :
T
|
| isRunningLive | ||||
isRunningLive(state)
|
||||
|
True when the context is in live mode with auto-refresh running.
Only an explicit
Parameters :
Returns :
boolean
|
| codeModeLabelProvider | |||||||||
codeModeLabelProvider(tool: ToolCallPart, translateService: TranslateService)
|
|||||||||
|
A
Parameters :
Returns :
string | undefined
|
| hasCode | ||||||
hasCode(tool: ToolCallPart)
|
||||||
|
Whether the input of a
Parameters :
Returns :
boolean
|
| collectApprovalToolCallIds | ||||
collectApprovalToolCallIds(messages)
|
||||
|
Collects the ids of the tool calls that went through an approval exchange.
Parameters :
Returns :
Set<string>
|
| defaultPruneMessagesForAgent | ||||
defaultPruneMessagesForAgent(messages)
|
||||
|
The default implementation of for reducing the size of the message history so it is ready to be sent to the LLM agent. This is important since old tool inputs and outputs can be very large and fill up the agent's context window. Implements When sending an AI request you can provide your own function instead of using this one, or you can write your own function that calls this and adds extra logic, for example to suppress specific tools from the AIMessage, or retain only the final step text in multi-step responses, etc. The current default implementation preserves text content, but does not include any tool calls. This may change in future releases.
Parameters :
Returns :
AIMessage[]
|
| defaultPruneMessagesForPersistence | ||||
defaultPruneMessagesForPersistence(messages)
|
||||
|
The default implementation for preparing messages for conversation persistence. Unlike Strips only transient streaming states that should never be persisted: reasoning blocks, in-progress tool-input-streaming, and tool-executing parts. Tool outputs longer than 10,000 characters are truncated, as the storage service rejects
conversations of about 1 MB and above. Step boundaries are kept because Implements
Parameters :
Returns :
AIMessage[]
|
| truncateToolOutput | ||||||
truncateToolOutput(part: ToolCallPart)
|
||||||
|
Cuts a tool output longer than
Parameters :
Returns :
ToolCallPart
|
| colorValidator | ||||
colorValidator(allowedModes?)
|
||||
|
Parameters :
Returns :
AsyncValidatorFn
|
| composeEffectiveConfig | ||||||
composeEffectiveConfig(context: EffectiveConfigContext)
|
||||||
|
Parameters :
Returns :
GlobalContextState
|
| resolveConfigurationValue | ||||||||||||||||||
resolveConfigurationValue<K extends keyof GlobalContextState>(key: K, sources: FieldSourcesMap, localStateValues: Partial, globalStateValues: Partial, baseConfiguration: Partial)
|
||||||||||||||||||
Type parameters :
|
||||||||||||||||||
|
Parameters :
Returns :
unknown | undefined
|
| safeCloneValue | ||||||
safeCloneValue<T>(value: T)
|
||||||
Type parameters :
|
||||||
|
Parameters :
Returns :
T
|
| computeLinkToggle | ||||||
computeLinkToggle(args: LinkToggleArgs)
|
||||||
|
Parameters :
Returns :
LinkToggleOutcome
|
| computeToggleAll | ||||||
computeToggleAll(args: ToggleAllArgs)
|
||||||
|
Parameters :
Returns :
LinkToggleOutcome
|
| configurationSnapshotValue | |||||||||
configurationSnapshotValue(config: ConfigurationSnapshotConfig, asset: IManagedObject)
|
|||||||||
|
Parameters :
Returns :
Observable<string>
|
| configureWidgetProviders | ||||||||||
configureWidgetProviders(config: WidgetProvidersConfig)
|
||||||||||
|
Configures and returns widget providers. This function allows selective loading of widget providers with their configuration hooks.
Unlike
Parameters :
Returns :
Provider[]
Array of providers to be included in app.module.ts |
| convertToAgentMessageFormat | ||||
convertToAgentMessageFormat(messages)
|
||||
|
Converts from our UI-friendly message format back to the format the API requires when sending message history back to the agent manager service. Currently the format is Vercel v6 ModelMessage (so this is a little similar to Vercel's convertToModelMessages). We do not bother with details such as reasoning (not worth the tokens) or in-progress tool calls (since this method is only used on completed responses).
Parameters :
Returns :
ModelMessage[]
|
| convertToolOutputToAgentFormat | ||||||
convertToolOutputToAgentFormat(tool: ToolCallPart)
|
||||||
|
Parameters :
Returns :
ModelMessageToolResultOutput
|
| parseExposedToolName | ||||||
parseExposedToolName(exposedName: string)
|
||||||
|
Splits an exposed tool name, the name the AI Agent Manager gives a tool in its messages, into the
tool name and the MCP server providing it. The agent manager prefixes the tools of every MCP
server except
Parameters :
|
| resolveApprovalOutcome | ||||||||||||||||
resolveApprovalOutcome(part: ToolCallPart, resultsByToolCallId: Map, convertOutput)
|
||||||||||||||||
|
Resolves the outcome to record beside a decided tool-approval exchange: the refusal itself when
the user said no, or the result of the call it authorised. Returns
Parameters :
Returns :
ToolResultContent | undefined
|
| splitIntoSteps | ||||
splitIntoSteps(content)
|
||||
|
Splits an assistant message's content into per-step groups at Each step has to become its own message in the wire format, which has no
Parameters :
Returns :
[][]
|
| toExposedToolName | ||||||
toExposedToolName(part: Pick)
|
||||||
|
Inverse of
Parameters :
Returns :
string
|
| toToolCallContent | ||||||
toToolCallContent(part: ToolCallPart)
|
||||||
|
Builds the
Parameters :
Returns :
AssistantMessageContent
|
| createActionBarItem |
createActionBarItem()
|
|
Returns :
ActionBarItem
|
| createAlarmListControls |
createAlarmListControls()
|
|
Produces the baseline alarm list controls preset mirroring the default widget behaviour.
Returns :
WidgetControls
Fresh baseline controls instance for the alarm list widget. |
| createLegacyAlarmControls |
createLegacyAlarmControls()
|
|
Produces the legacy alarm controls preset shared by the "recent" and "critical" alarm widgets. It hides the refresh interval and exposes the manual refresh button inline.
Returns :
WidgetControls
Alarm controls tailored for legacy alarm widgets. |
| mergeWithBaseline | ||||||||
mergeWithBaseline(overrides: Partial)
|
||||||||
|
Helper that clones the baseline controls and applies the provided overrides.
Parameters :
Returns :
WidgetControls
Combined control definition. |
| resolveAlarmControls | ||||||||
resolveAlarmControls(widgetId?: string)
|
||||||||
|
Resolves the appropriate controls preset based on the widget identifier.
Parameters :
Returns :
WidgetControls
Fully materialised controls for the widget. |
| createAnimatedGif | ||||||||||||||||||||
createAnimatedGif(blobs, frameDelayMs: number, maxDimension: unknown)
|
||||||||||||||||||||
|
Creates an animated GIF from an array of image blobs.
Each frame is scaled to fit within
Parameters :
Returns :
Promise<Blob>
A Blob containing the animated GIF |
| decodeBlobs | ||||
decodeBlobs(blobs)
|
||||
|
Attempts to decode each blob as an image, silently skipping failures.
Parameters :
Returns :
Promise<ImageBitmap[]>
|
| findNearestColor |
findNearestColor(red: number, green: number, blue: number, palette)
|
|
Finds the palette index with the smallest Euclidean distance to the given RGB color.
Returns :
number
|
| lzwEncode | ||||||
lzwEncode(indices: Uint8Array)
|
||||||
|
Compresses palette indices using GIF-flavored LZW. Min code size is 8 (for 256-color palette). Resets the table when it fills (4096 entries).
Parameters :
Returns :
Uint8Array
|
| mapToPalette | ||||||||||||
mapToPalette(pixels: Uint8ClampedArray, pixelCount: number, palette)
|
||||||||||||
|
Maps each pixel in the RGBA buffer to the nearest palette entry index. Uses a quantized-key cache (6 bits per channel) to avoid repeated nearest-neighbor lookups.
Parameters :
Returns :
Uint8Array
|
| medianCut | |||||||||
medianCut(colors, maxColors: number)
|
|||||||||
|
Recursively splits color boxes along the channel with the widest range until the desired number of palette entries is reached.
Parameters :
Returns :
RGB[]
|
| quantize | |||||||||
quantize(pixels: Uint8ClampedArray, pixelCount: number)
|
|||||||||
|
Reduces an RGBA pixel buffer to a 256-color palette using median-cut quantization. Returns the palette and an index array mapping each pixel to its nearest palette entry.
Parameters :
Returns :
{ palette: RGB[]; indices: Uint8Array }
|
| writeFrame | |||||||||||||||||||||
writeFrame(buffer: GifBuffer, width: number, height: number, frameDelay: number, palette, indices: Uint8Array)
|
|||||||||||||||||||||
|
Writes a single frame: graphic control extension, image descriptor, local color table, and LZW data.
Parameters :
Returns :
void
|
| writeHeader |
writeHeader(buffer: GifBuffer, width: number, height: number)
|
|
Writes the GIF89a header with logical screen descriptor.
Returns :
void
|
| writeLoopExtension | ||||||
writeLoopExtension(buffer: GifBuffer)
|
||||||
|
Writes the NETSCAPE2.0 application extension for infinite looping.
Parameters :
Returns :
void
|
| writeSubBlocks | |||||||||
writeSubBlocks(buffer: GifBuffer, data: Uint8Array)
|
|||||||||
|
Splits data into GIF sub-blocks (max 255 bytes each), terminated by a zero-length block.
Parameters :
Returns :
void
|
| createBrandingForm | ||||||
createBrandingForm(formBuilder: FormBuilder)
|
||||||
|
Parameters :
|
| createGenericBrandingForm | ||||||
createGenericBrandingForm(formBuilder: FormBuilder)
|
||||||
|
Parameters :
|
| createDefaultGlobalContextState |
createDefaultGlobalContextState()
|
|
Creates a complete default global context state
Returns :
GlobalContextState
A complete GlobalContextState with all required properties set to sensible defaults |
| fillMissingDefaults | ||||||||
fillMissingDefaults(state: Partial)
|
||||||||
|
Fills missing or invalid properties in a partial global context state with defaults
Parameters :
Returns :
GlobalContextState
Complete GlobalContextState with all required properties |
| formatDateTimeContextForEmission | ||||||||||||
formatDateTimeContextForEmission(context: Partial, supports)
|
||||||||||||
|
Formats dateTimeContext for emission, handling date conversions and defaults. Delegates to central utility for consistency.
Parameters :
Returns :
Partial<GlobalContextState>
Formatted context with properly formatted dateTimeContext |
| isCompleteDateTimeContext | ||||||||
isCompleteDateTimeContext(diff: Partial)
|
||||||||
|
Checks if a dateTimeContext diff object is complete (has all 3 required fields). Delegates to central utility for consistency.
Parameters :
Returns :
boolean
true if dateTimeContext is absent, has only 1 field, or has all 3 fields; false if it has 2 fields (incomplete) |
| isValidDateTimeContext | ||||||
isValidDateTimeContext(context)
|
||||||
|
Checks if a date time context object has all required valid properties Delegates to central utility for consistency.
Parameters :
Returns :
DateTimeContext
true if the context is complete and valid |
| isValidDateValue | ||||||
isValidDateValue(value)
|
||||||
|
Validates if a value is a valid date (either Date object or ISO string) Delegates to central utility for consistency.
Parameters :
Returns :
string | Date
true if the value represents a valid date |
| createExportedAsset | ||||||||||||
createExportedAsset(device: IManagedObject, identityService: IdentityService, inventoryService: InventoryService)
|
||||||||||||
|
Creates a device with external identity information
Parameters :
Returns :
Promise<ExportedAsset>
|
| exportConfigWithDevice | ||||||||||||
exportConfigWithDevice<T extends ConfigWithAsset>(config: T, _dashboardData: DashboardMetadata, _options: WidgetImportExportInjectorOptions)
|
||||||||||||
Type parameters :
|
||||||||||||
|
Exports a configuration with asset information enriched for export
Parameters :
Returns :
Promise<ExportedConfigWithAsset<T>>
|
| hasAssetProperty | ||||||
hasAssetProperty(config: any)
|
||||||
|
Check if a configuration has a valid device property
Parameters :
Returns :
ConfigWithAsset
|
| importConfigWithDevice | ||||||||||||
importConfigWithDevice<T extends ConfigWithAsset>(config: ExportedConfigWithAsset, dashboardData: DashboardMetadata, _options: WidgetImportExportInjectorOptions)
|
||||||||||||
Type parameters :
|
||||||||||||
|
Imports a configuration with asset information adapted to the current context
Parameters :
Returns :
Promise<ImportedConfigWithAsset<T>>
|
| createExportedTargetObject | ||||||||||||
createExportedTargetObject<T extends WithTarget>(targetObject: T, identityService: IdentityService, inventoryService: InventoryService)
|
||||||||||||
Type parameters :
|
||||||||||||
|
Transforms a single target object for export
Parameters :
Returns :
Promise<ExportedTargetObject<T>>
|
| createImportedTargetObject | |||||||||
createImportedTargetObject<T extends WithTarget>(exportedTargetObject: ExportedTargetObject, context: IManagedObject)
|
|||||||||
Type parameters :
|
|||||||||
|
Transforms a single exported target object for import
Parameters :
Returns :
Promise<ImportedTargetObject<T>>
|
| processExportedTargetArray | ||||||||||||
processExportedTargetArray<T extends WithTarget>(targetObjects, context: IManagedObject)
|
||||||||||||
Type parameters :
|
||||||||||||
|
Transforms an array of exported target objects for import
Parameters :
Returns :
Promise<ImportedTargetObject[]>
|
| processTargetArrayToExport | ||||||||||||||||
processTargetArrayToExport<T extends WithTarget>(targetObjects, identityService: IdentityService, inventoryService: InventoryService)
|
||||||||||||||||
Type parameters :
|
||||||||||||||||
|
Transforms an array of target objects for export
Parameters :
Returns :
Promise<ExportedTargetObject[]>
|
| createResult | |||||||||||||||||||||||||
createResult(inlineSettings: Partial, dashboardSettings: Partial, links: Partial, options?: Record)
|
|||||||||||||||||||||||||
|
Creates a standardized result object for widget state handler responses.
Parameters :
Returns :
WidgetStateHandlerResult
Standardized widget state handler result |
| setAutoRefreshControlsVisibility | ||||||||||||
setAutoRefreshControlsVisibility(state: WidgetState, showInDashboard: boolean)
|
||||||||||||
|
Sets auto-refresh control visibility and link state based on display mode. Implements inverse visibility pattern: auto-refresh is shown in dashboard mode (where it can be linked) and hidden in inline mode (where widgets handle it directly).
Parameters :
Returns :
WidgetStateHandlerResult
Complete widget state handler result with settings and links |
| setAutoRefreshLinks | ||||||||||||
setAutoRefreshLinks(state: WidgetState, enabled: boolean)
|
||||||||||||
|
Sets auto-refresh link state for dashboard display mode.
Parameters :
Returns :
Partial<LinkStatesMap>
Updated link states (empty object for non-dashboard modes) |
| updateBothSettings | ||||||||||||||||
updateBothSettings(state: WidgetState, inlineUpdates: Partial, dashboardUpdates: Partial)
|
||||||||||||||||
|
Updates both inline and dashboard control settings simultaneously.
Parameters :
Returns :
Pick<WidgetStateHandlerResult, "inlineControlSettings" | "dashboardControlSettings">
Updated inline and dashboard control settings |
| cumulocityApiRequestLabelProvider | |||||||||
cumulocityApiRequestLabelProvider(tool: ToolCallPart, translateService: TranslateService)
|
|||||||||
|
A Only applies to the Assumes the tool's
Parameters :
Returns :
string | undefined
|
| summarizeQuery | |||||||||
summarizeQuery(query, translateService: TranslateService)
|
|||||||||
|
Parameters :
Returns :
string | undefined
|
| dateRangeValidator | ||||||
dateRangeValidator(group: AbstractControl)
|
||||||
|
Parameters :
Returns :
ValidationErrors | null
|
| definedFragmentCondition | ||||||
definedFragmentCondition(path: string)
|
||||||
|
Builds the "value is defined" condition for a fragment path.
Parameters :
Returns :
any
|
| deriveAggregationValue | ||||||
deriveAggregationValue(config: GlobalContextState)
|
||||||
|
Parameters :
Returns :
aggregationType | null
|
| validateAggregationLink | ||||||
validateAggregationLink(context: AggregationValidationContext)
|
||||||
|
Parameters :
Returns :
AggregationValidationResult
|
| detectLanguage | ||||||
detectLanguage(filename: string)
|
||||||
|
Parameters :
Returns :
string
|
| mimeForFilename | ||||||
mimeForFilename(filename: string)
|
||||||
|
Parameters :
Returns :
string
|
| deviceDashboardGuard | ||||||
deviceDashboardGuard(options?: DeviceDashboardGuardOptions)
|
||||||
|
Functional guard factory for device context dashboards.
Parameters :
|
| encodeFiles | |||||||||
encodeFiles(model: ProviderProperties, fields)
|
|||||||||
|
Parameters :
Returns :
Promise<ProviderProperties>
|
| ensureDateTimeContext | |||||||||
ensureDateTimeContext(context, configSignal: WritableSignal)
|
|||||||||
|
Parameters :
Returns :
DateTimeContext
|
| mapToContextDisplayMode | ||||||
mapToContextDisplayMode(displayMode: WidgetDisplayMode)
|
||||||
|
Parameters :
Returns :
GlobalContextDisplayMode
|
| resolveVisibilityContextInternal | |||||||||||||||||||||
resolveVisibilityContextInternal(config: GlobalContextState, widgetControlsSignal: WritableSignal, fieldSourcesSignal: WritableSignal, globalStateSignal: WritableSignal, widgetControlService: WidgetControlService, getDefaultRefreshOption)
|
|||||||||||||||||||||
|
Parameters :
Returns :
VisibilityContext | null
|
| resolveWidgetDisplayMode | |||||||||
resolveWidgetDisplayMode(initialConfig, globalState: Partial)
|
|||||||||
|
Parameters :
Returns :
WidgetDisplayMode
|
| sanitizeGlobalState | ||||||||||||||||||
sanitizeGlobalState(state, configSignal: WritableSignal, normalizeRefreshOption, getDefaultRefreshOption, ensureDateTimeContext)
|
||||||||||||||||||
|
Parameters :
Returns :
Partial<GlobalContextState>
|
| sanitizeLocalState | ||||||||||||
sanitizeLocalState(state, configSignal: WritableSignal, ensureDateTimeContext)
|
||||||||||||
|
Parameters :
Returns :
Partial<GlobalContextState>
|
| syncLocalEntriesWithGlobal | ||||||||||||
syncLocalEntriesWithGlobal(fieldSourcesSignal: WritableSignal, globalStateSignal: WritableSignal, localStateSignal: WritableSignal)
|
||||||||||||
|
Parameters :
Returns :
void
|
| syncSourcesForRefreshOption | |||||||||||||||||||||
syncSourcesForRefreshOption(displayMode: WidgetDisplayMode, refreshOption: RefreshOption, controls, fieldSourcesSignal: WritableSignal, getDefaultRefreshOption, setFieldSources)
|
|||||||||||||||||||||
|
Parameters :
Returns :
void
|
| equalParamsChain | ||||||
equalParamsChain(from, to)
|
||||||
|
Parameters :
Returns :
boolean
|
| runGuardsOnParamsOrReloadChange | |||||||||
runGuardsOnParamsOrReloadChange(from: ActivatedRouteSnapshot, to: ActivatedRouteSnapshot)
|
|||||||||
|
A
Parameters :
Returns :
boolean
|
| errorMessage | |||||||||
errorMessage(e, fallback: string)
|
|||||||||
|
Parameters :
Returns :
string
|
| escapeLitSyntax | ||||||||
escapeLitSyntax(svg: string)
|
||||||||
|
Escapes Lit syntax to safe data attributes for XML parsing. Converts:
Parameters :
Returns :
string
The SVG string with escaped Lit syntax |
| getWebComponentCode | ||||||||
getWebComponentCode(svgCode: string)
|
||||||||
|
Generates Lit web component code for rendering SCADA SVG elements. Creates a custom element class that extends LitElement with support for:
The generated component includes event listeners for hover and click interactions on elements with the 'potential-placeholder' class, enabling users to identify and select placeholders within the SCADA visualization in the widget's configuration.
Parameters :
Returns :
string
A string containing the complete Lit web component code |
| placeholderExpressionWithFallback | ||||||
placeholderExpressionWithFallback(placeholderName: string)
|
||||||
|
The expression inserted for a text turned into a placeholder. It shows
Parameters :
Returns :
string
|
| removeLitExpressions | ||||||||||||
removeLitExpressions(svg: string, litExpressions)
|
||||||||||||
|
Removes Lit expressions from SVG and replaces them with placeholders. Converts ${...} to LIT_EXPR_n to allow safe XML parsing. The extracted expressions are stored in the provided array for later restoration.
Parameters :
Returns :
string
The SVG string with expressions replaced by placeholders |
| restoreLitExpressions | ||||||||||||
restoreLitExpressions(svg: string, litExpressions)
|
||||||||||||
|
Restores Lit expressions in SVG from placeholders. Converts LIT_EXPR_n back to ${...} using expressions from the provided array.
Parameters :
Returns :
string
The SVG string with restored Lit expressions |
| unescapeLitSyntax | ||||||||
unescapeLitSyntax(svg: string)
|
||||||||
|
Unescapes data attributes back to Lit syntax. Converts:
Parameters :
Returns :
string
The SVG string with restored Lit syntax |
| escapeRegExpPattern | ||||||||
escapeRegExpPattern(pattern: string)
|
||||||||
|
Parameters :
|
| estimateTextWidth |
estimateTextWidth(text: string, fontSize: number)
|
|
Estimated width in pixels that
Returns :
number
|
| getAxisTickCandidates | ||||||||||||||||
getAxisTickCandidates(min: number, max: number, splitNumber: unknown)
|
||||||||||||||||
|
Values a
Parameters :
Returns :
number[]
|
| getCharWidthRatio | ||||||
getCharWidthRatio(char: string)
|
||||||
|
Parameters :
Returns :
number
|
| getNiceInterval | ||||||
getNiceInterval(rawInterval: number)
|
||||||
|
Rounds an interval up to the next 1, 2, 5 or 10 multiple of its magnitude, like ECharts does.
Parameters :
Returns :
number
|
| eventBinaryKey | ||||||
eventBinaryKey(event: IEvent)
|
||||||
|
Cache key for an event's binary. Includes
Parameters :
Returns :
string
|
| eventCount3MonthsValue | ||||||||||||
eventCount3MonthsValue(config: EventCountConfig, asset: IManagedObject, metadata: ValueCallbackMetadata)
|
||||||||||||
|
Parameters :
Returns :
Observable<number>
|
| eventCountTodayValue | ||||||||||||
eventCountTodayValue(config: EventCountConfig, asset: IManagedObject, metadata: ValueCallbackMetadata)
|
||||||||||||
|
Parameters :
Returns :
Observable<number>
|
| eventCountValue | |||||||||||||||||||||||||
eventCountValue(config: EventCountConfig, asset: IManagedObject, dateFrom: Date, metadata: ValueCallbackMetadata)
|
|||||||||||||||||||||||||
|
Creates an Observable that tracks event count for a specific asset. When real-time is paused and resumed, it re-fetches the current count from server to account for events that occurred during the pause.
Parameters :
Returns :
Observable<number>
Observable |
| exactlyASingleDatapointActive |
exactlyASingleDatapointActive()
|
|
Returns :
ValidatorFn
|
| exactlyASingleDatapointActive |
exactlyASingleDatapointActive()
|
|
Returns :
ValidatorFn
|
| exportConfigWithTargets | ||||||||||||
exportConfigWithTargets<T extends ConfigWithTargets>(config: T, _dashboardData: DashboardMetadata, _options: WidgetImportExportInjectorOptions)
|
||||||||||||
Type parameters :
|
||||||||||||
|
Exports widget configuration with all target objects transformed for export
Parameters :
Returns :
Promise<ExportedConfigWithTargets<T>>
|
| exportImageWidgetConfig | ||||||||||||
exportImageWidgetConfig(config: ImageWidgetConfig, _dashboardData: DashboardMetadata, _options: WidgetImportExportInjectorOptions)
|
||||||||||||
|
Parameters :
Returns :
Promise<ExportedImageWidgetConfig>
|
| importImageWidgetConfig | ||||||||||||
importImageWidgetConfig(config: ExportedImageWidgetConfig, dashboardData: DashboardMetadata, _options: WidgetImportExportInjectorOptions)
|
||||||||||||
|
Parameters :
Returns :
Promise<ImageWidgetConfig>
|
| exportMarkdownWidgetConfig | ||||||||||||
exportMarkdownWidgetConfig(config: MarkdownWidgetConfig, _dashboardData: DashboardMetadata, _options: WidgetImportExportInjectorOptions)
|
||||||||||||
|
Parameters :
Returns :
Promise<ExportedMarkdownWidgetConfig>
|
| importMarkdownWidgetConfig | ||||||||||||
importMarkdownWidgetConfig(config: ExportedMarkdownWidgetConfig, _dashboardData: DashboardMetadata, _options: WidgetImportExportInjectorOptions)
|
||||||||||||
|
Parameters :
Returns :
Promise<MarkdownWidgetConfig>
|
| fieldbusItemStatusValue | ||||||||||||||||
fieldbusItemStatusValue(asset: IManagedObject, config: FieldbusItemStatusConfig, metadata: ValueCallbackMetadata)
|
||||||||||||||||
|
Parameters :
Returns :
Observable<number | string>
|
| findTargetArrayProperties | ||||||
findTargetArrayProperties(config: ConfigWithTargets)
|
||||||
|
Find all property names in an object that contain arrays of objects with __target property
Parameters :
Returns :
string[]
|
| isTargetObjectArray | ||||||
isTargetObjectArray(value: any)
|
||||||
|
Helper function to check if a value is an array of objects with __target property
Parameters :
Returns :
TargetObjectArray
|
| getAngularLocalesLanguageString | ||||||||
getAngularLocalesLanguageString(language: string)
|
||||||||
|
Parameters :
Returns :
string
|
| languagesFactory | ||||||
languagesFactory(options: OptionsService)
|
||||||
|
Parameters :
|
| localeId | ||||||
localeId(appStateService: AppStateService)
|
||||||
|
Parameters :
|
| localePathFactory | ||||||
localePathFactory(options: OptionsService)
|
||||||
|
Parameters :
|
| provideI18n |
provideI18n()
|
|
Returns :
Provider[]
|
| provideTranslationServiceInstance | ||||||||
provideTranslationServiceInstance(options: RootTranslateServiceConfig)
|
||||||||
|
Parameters :
|
| getApprovalDetailsComponent | ||||||
getApprovalDetailsComponent(part: ToolCallPart)
|
||||||
|
The component showing a call of a default tool while it awaits approval, if there is one.
Parameters :
Returns :
Type | undefined
|
| withDefaultToolDisplay | ||||||||
withDefaultToolDisplay(config: AssistantMessageDisplayConfig)
|
||||||||
|
Adds the default display of the AI Agent Manager's tools to a display configuration:
An entry for a tool in the configuration's own
Parameters :
Returns :
AssistantMessageDisplayConfig
|
| getBasicInputArrayFormFieldConfig | ||||||
getBasicInputArrayFormFieldConfig(config: BasicInputArrayFormConfigInterface)
|
||||||
|
Generates simple array formFieldConfig
Parameters :
Returns :
FormlyFieldConfig[]
FormlyFieldConfig[] |
| getBrandingOptionsJsonSchema |
getBrandingOptionsJsonSchema()
|
|
Returns :
Promise<any>
|
| getC8yMarker | ||||||||||||||||
getC8yMarker(marker, asset?: PositionManagedObject, event?: IEvent)
|
||||||||||||||||
|
Utility function to assign asset and event information to a Leaflet marker.
Parameters :
|
| getChildrenForViewContext | ||||||
getChildrenForViewContext(context: ViewContext)
|
||||||
|
Parameters :
Returns :
Routes
|
| getViewContextRoutes | ||||
getViewContextRoutes(contexts)
|
||||
|
Parameters :
Returns :
Routes
|
| getDatapointsListMigrationOptions | ||||||
getDatapointsListMigrationOptions(hasNoTimeContextFields: boolean)
|
||||||
|
Migration options shared by the view and the editor, so both resolve a stored config
to the same time context. The list presets offer the lifetime entry, so a legacy
Parameters :
Returns :
MigrateWidgetConfigOptions
|
| getLegacyDatapointsListDefaults |
getLegacyDatapointsListDefaults()
|
|
Defaults for datapoints list widgets that arrive without any time-context fields:
new widgets and legacy AngularJS ones. Mirrors the legacy "show all data" behavior
with the lifetime ("All time") interval. Factory so
Returns :
Partial<GlobalContextState>
|
| getDictionaryWithTrimmedKeys | ||||
getDictionaryWithTrimmedKeys(dictionary)
|
||||
|
We want to have translation keys unified, so they don't contain unnecessary spaces and line breaks. This way we can dynamically build keys from HTML, and match them to extracted string, that might be HTML as well.
Parameters :
|
| removeContextIndicators | ||||||||||
removeContextIndicators(translation: string)
|
||||||||||
|
Removes inline context indicators enclosed in backticks from a translation string.
Parameters :
Returns :
string
|
| trimTranslationKey | ||||||
trimTranslationKey(key: string)
|
||||||
|
Returns a trimmed translation key. If the key contains HTML, it also removes all whitespaces. The reason behind it is that by default Angular compiler removes whitespaces from adjacent inline elements, which prevents ngx-translate from finding a matching entry in the dictionary.
Parameters :
|
| getExternalIdentityByTargetId | |||||||||
getExternalIdentityByTargetId(targetId, identityService: IdentityService)
|
|||||||||
|
Parameters :
Returns :
Promise<IExternalIdentity>
|
| resolveSuggestedAsset | |||||||||
resolveSuggestedAsset(exportedDevice: ExportedAsset, contextDevice: IManagedObject)
|
|||||||||
|
Parameters :
Returns :
Promise<IManagedObject | null>
|
| targetDetails | |||||||||
targetDetails(targetId, inventoryService: InventoryService)
|
|||||||||
|
Parameters :
Returns :
Promise<IManagedObject>
|
| getLastDeviceMessage | |||||||||||||||
getLastDeviceMessage(asset: IManagedObject, metadata: ValueCallbackMetadata)
|
|||||||||||||||
|
Gets the latest timestamp from events, alarms, measurements, and operations for a device. Returns the most recent timestamp across all these sources.
Parameters :
Returns :
Observable<string>
Observable |
| getRemoteTestingModule | ||||||
getRemoteTestingModule(providers, providersSubModule?)
|
||||||
|
Parameters :
Returns :
Type<any>
|
| getSummaryText | |||||||||
getSummaryText(cfg: GlobalContextState, translateService: TranslateService)
|
|||||||||
|
Parameters :
Returns :
string
|
| getSummaryTooltip | ||||||||||||
getSummaryTooltip(summaryText: string, dateRangeText: string, translateService: TranslateService)
|
||||||||||||
|
Parameters :
Returns :
string
|
| isAutoRefreshActive | ||||||
isAutoRefreshActive(cfg: GlobalContextState)
|
||||||
|
Parameters :
Returns :
boolean
|
| isLiveModeState | ||||||
isLiveModeState(cfg: GlobalContextState)
|
||||||
|
Parameters :
Returns :
boolean
|
| gettext | ||||||
gettext<T extends string>(str: T)
|
||||||
Type parameters :
|
||||||
|
Identity function used for marking strings for translation
Parameters :
Returns :
T
|
| gettext | ||||||
| Use `import { gettext } from '@c8y/ngx-components/gettext';` instead. | ||||||
gettext<T extends string>(str: T)
|
||||||
Type parameters :
|
||||||
|
Parameters :
Returns :
T
|
| gettextCatalogDecorator | ||||||||||||
gettextCatalogDecorator($delegate: unknown, $interpolate: unknown, c8yTranslate: unknown)
|
||||||||||||
|
Parameters :
|
| getToolCallStateLabel | ||||||||||||||||||||
getToolCallStateLabel(toolName: string, isExecuting: boolean, config, translateService: TranslateService)
|
||||||||||||||||||||
|
The label for a tool call that is running or completed: the label configured for the tool, or
a generic one naming the tool. The result is either a
Parameters :
Returns :
string
|
| isToolCallExecuting | ||||||||||||
isToolCallExecuting(tool: ToolCallPart, isMessageLoading: boolean)
|
||||||||||||
|
Whether a tool call is still running, judged by the state of the message it belongs to: a call that still looks unfinished once the message has finished loading has failed instead. A call asking for approval counts as running while its message streams, as a remembered approval may still decide it, and an approved call until its result arrives.
Parameters :
Returns :
boolean
|
| globalAutoRefreshLoading | ||||||
globalAutoRefreshLoading(globalRefreshService: WidgetGlobalAutoRefreshService)
|
||||||
|
Parameters :
Returns :
MonoTypeOperatorFunction<boolean>
|
| groupToolCalls | ||||||||||||||||
groupToolCalls(parts, config, isMessageLoading: boolean)
|
||||||||||||||||
|
Turns message parts into the items to render, combining consecutive calls of the same tool into
a group. Only An approved call is shown like any other call, so it is grouped too, but one without a result
only while the message is loading. Once the message stops, such a call has not run, as another
call of the message still waits for a decision or the response was stopped, and it gets its own
row labeled as approved. Calls awaiting approval or denied, and tools rendered by their own
component (
Parameters :
Returns :
AssistantMessageRenderItem[]
|
| isGroupable | ||||||||||||
isGroupable(part: AIMessagePart, config, isMessageLoading: boolean)
|
||||||||||||
|
Parameters :
Returns :
ToolCallPart
|
| isSameTool | |||||||||
isSameTool(call: ToolCallPart, other: ToolCallPart)
|
|||||||||
|
Tool names are only unique per MCP server, so calls of same-named tools of two servers differ.
Parameters :
Returns :
boolean
|
| partItem | |||||||||
partItem(part: AIMessagePart, index: number)
|
|||||||||
|
Parameters :
Returns :
AssistantMessageRenderItem
|
| groupTypesHierarchyNavigatorDecorator | |||||||||
groupTypesHierarchyNavigatorDecorator($delegate: unknown, $q: unknown)
|
|||||||||
|
Parameters :
|
| hookAction | ||||||||||||
hookAction(actions: GenericHookType, options?: Partial)
|
||||||||||||
|
A hook to add an action using the multi-provider extension concept. You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements A typed alternative to
Parameters :
|
| hookActionBar | ||||||||||||
hookActionBar(items: GenericHookType, options?: Partial)
|
||||||||||||
|
A hook to add ActionBarItems using the multi provider extension concept. You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements A typed alternative to
Parameters :
|
| hookBreadcrumb | ||||||||||||
hookBreadcrumb(breadcrumb: GenericHookType, options?: Partial)
|
||||||||||||
|
You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements A typed alternative to
Parameters :
|
| hookComponent | ||||||||||||
hookComponent(components: GenericHookType, options?: Partial)
|
||||||||||||
|
A hook to add dynamic components to the UI (e.g. widgets). You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements A typed alternative to
Parameters :
|
| hookWidget | ||||||||||||
hookWidget(components: GenericHookType, options?: Partial)
|
||||||||||||
|
Hook to add dynamic widget components to the UI. You can either provide a single Or an array to directly register multiple: Example :
A widget specific alternative to
Parameters :
|
| isEagerDynamicComponents | ||||||
isEagerDynamicComponents(componentDefinition: DynamicComponents)
|
||||||
|
Parameters :
Returns :
EagerDynamicComponents
|
| isLazyDynamicComponents | ||||||
isLazyDynamicComponents(componentDefinition: DynamicComponents)
|
||||||
|
Parameters :
Returns :
LazyDynamicComponents
|
| hookComputedProperty | |||||||||
hookComputedProperty(property: GenericHookType, options?: Partial)
|
|||||||||
|
Parameters :
|
| hookCurrentApplication | ||||||
hookCurrentApplication(application: IApplication)
|
||||||
|
Parameters :
|
| hookCurrentTenant | ||||||
hookCurrentTenant(tenant: ICurrentTenant)
|
||||||
|
Parameters :
|
| hookCurrentUser | ||||
hookCurrentUser(user)
|
||||
|
Parameters :
|
| provideBootstrapMetadata | ||||||
provideBootstrapMetadata(metadata: BootstrapMetaData)
|
||||||
|
Parameters :
Returns :
StaticProvider[]
|
| provideSkipAppKeyHeader |
provideSkipAppKeyHeader()
|
|
Allows to skip adding the application key header to the default headers of the FetchClient. This is useful for applications that might be accessed without the application actually being subscribed to the tenant. This is e.g. for the login app or the api-doc app the case. |
| hookDataGridActionControls | |||||||||
hookDataGridActionControls(action: GenericHookType, options?: Partial)
|
|||||||||
|
You can either provide a single Or an array to directly register multiple: Example :Or you provide a service that implements
Parameters :
|
| hookDeviceListColumns | |||||||||
hookDeviceListColumns(columns: GenericHookType, options?: Partial)
|
|||||||||
|
A hook to override the default device grid columns configuration in
Parameters :
|
| hookDeviceRegistration | ||||||||||||
hookDeviceRegistration(registration: GenericHookType, options?: Partial)
|
||||||||||||
|
You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements A typed alternative to
Parameters :
|
| hookDocs | ||||||||
hookDocs(doc: GenericHookType)
|
||||||||
|
You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements
Parameters :
|
| hookDrawer | ||||||||||||
hookDrawer(drawer: GenericHookType, options?: Partial)
|
||||||||||||
|
You can either provide a single Or an array to directly register multiple: Example :Or you provide a Service that implements A typed alternative to
Parameters :
|
| hookDynamicProviderConfig | ||||||||||||
hookDynamicProviderConfig(config: GenericHookType, options?: Partial)
|
||||||||||||
|
You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements A typed alternative to
Parameters :
|
| hookFilterMapper | ||||||||||||
hookFilterMapper(mapper: HookValueType, options?: Partial)
|
||||||||||||
|
You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements A typed alternative to using
Parameters :
|
| hookListBulkType | ||||||||||||
hookListBulkType(type: GenericHookType, options?: Partial)
|
||||||||||||
|
You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements A typed alternative to
Parameters :
|
| hookNavigator | ||||||||||||
hookNavigator(nodes: GenericHookType, options?: Partial)
|
||||||||||||
|
You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements A typed alternative to
Parameters :
|
| hookOperationTemplate | |||||||||
hookOperationTemplate(template: GenericHookType, options?: Partial)
|
|||||||||
|
Registers one or more operation templates to be shown in the operation modal selector.
Parameters :
|
| hookOptions | ||||||||||||
hookOptions(options: GenericHookType, hookOptions?: Partial)
|
||||||||||||
|
You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements A typed alternative to
Parameters :
|
| hookPatternMessages | ||||||||||||
hookPatternMessages(patterns: GenericHookType, options?: Partial)
|
||||||||||||
|
You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements A typed alternative to
Parameters :
|
| hookPlugin | ||||||
| Only meant for internal usage. | ||||||
hookPlugin(plugins: GenericHookType)
|
||||||
|
Parameters :
|
| hookPreview | |||||||||
hookPreview(preview: GenericHookType, options?: Partial)
|
|||||||||
|
Parameters :
|
| hookQueryParam | |||||||||
hookQueryParam(config: GenericHookType, options?: Partial)
|
|||||||||
|
Parameters :
|
| hookQueryParamBottomDrawer | |||||||||
hookQueryParamBottomDrawer(config: GenericHookType, options?: Partial)
|
|||||||||
|
Parameters :
|
| hookQueryParamModal | |||||||||
hookQueryParamModal(config: GenericHookType, options?: Partial)
|
|||||||||
|
Parameters :
|
| hookRoute | ||||||||||||
hookRoute(route: GenericHookType, options?: Partial)
|
||||||||||||
|
You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements A typed alternative to
Parameters :
|
| hookSearch | ||||||||||||
| Please don't use the search factory. It will be refactored soon. | ||||||||||||
hookSearch(search: GenericHookType, options?: Partial)
|
||||||||||||
|
You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements A typed alternative to
Parameters :
|
| hookService | ||||||||||||||||
hookService<T extends string = keyof CumulocityServiceRegistry.SpecificExtensionKeys>(extensionKey: T, service: Type, options?: Partial)
|
||||||||||||||||
Type parameters :
|
||||||||||||||||
|
Registers a service using a specified extension key. This function facilitates dynamic service registration, enabling services to be retrieved and used throughout the application based on their extension key.
Parameters :
|
| hookServiceStatus | ||||||||||||
hookServiceStatus(status: GenericHookType, options?: Partial)
|
||||||||||||
|
Extension hook allowing to register custom service statuses and configure their visual presentation. You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements A typed alternative to
Parameters :
|
| hookStatusBar | ||||||||||||
hookStatusBar(bars: GenericHookType, options?: Partial)
|
||||||||||||
|
A hook to register StatusBars using the multi provider extension. A bar declares its identity, theme, precedence and optional display options;
attach content with
Parameters :
|
| hookStatusBarItem | ||||||||||||
hookStatusBarItem(items: GenericHookType, options?: Partial)
|
||||||||||||
|
A hook to attach StatusBarItems to a status bar using the multi
provider extension. Each item references its bar by
Parameters :
|
| hookStepper | ||||||||||||
hookStepper(step: GenericHookType, options?: Partial)
|
||||||||||||
|
You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements A typed alternative to
Parameters :
|
| hookTab | ||||||||||||
hookTab(tabs: GenericHookType, options?: Partial)
|
||||||||||||
|
You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements A typed alternative to
Parameters :
|
| hookUserMenu | ||||||||||||
hookUserMenu(userMenu: GenericHookType, options?: Partial)
|
||||||||||||
|
You can either provide a single Or an array to directly register multiple: Example :Or you provide a Service that implements
Parameters :
|
| hookVersion | ||||||||||||
hookVersion(versions: GenericHookType, options?: Partial)
|
||||||||||||
|
You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements A typed alternative to
Parameters :
|
| hookWidgetConfig | ||||||||||||
hookWidgetConfig<T = Type
|
||||||||||||
Type parameters :
|
||||||||||||
|
A hook to add dynamic components to the UI (e.g. widgets). You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements A typed alternative to
Parameters :
|
| hookWizard | ||||||||||||
hookWizard(wizard: GenericHookType, options?: Partial)
|
||||||||||||
|
A hook to add wizard entries. You can either provide a single Or an array to directly register multiple: Example :Or you provide an Service that implements A typed alternative to
Parameters :
|
| importConfigWithTargets | ||||||||||||
importConfigWithTargets<T extends ConfigWithTargets>(config: ExportedConfigWithTargets, dashboardData: DashboardMetadata, _options: WidgetImportExportInjectorOptions)
|
||||||||||||
Type parameters :
|
||||||||||||
|
Imports widget configuration with all target objects transformed for the current context
Parameters :
Returns :
Promise<ImportedConfigWithTargets<T>>
|
| indentJson | ||||||
indentJson(json: string)
|
||||||
|
Indents JSON text by two spaces, as
Parameters :
Returns :
string
|
| isJsonObject | ||||||
isJsonObject(text: string)
|
||||||
|
Whether a string holds a JSON object or array.
Parameters :
Returns :
boolean
|
| toCodeBlockContent | ||||
toCodeBlockContent(value)
|
||||
|
The text to show for a value, and the language to color it as: JSON, indented, for an object or
a string holding one; HTML for markup; and plain text for any other text, so that most tool
answers don't load Monaco. Returns
Parameters :
Returns :
CodeBlockContent | undefined
|
| toCodeLines | |||||||||
toCodeLines(code: string, lineTokens?)
|
|||||||||
|
Splits code into lines of tokens, using the tokens Monaco found on each line. Without tokens, a line is a single plain token.
Parameters :
Returns :
[][]
|
| toCodeTokenKind | ||||||
toCodeTokenKind(type: string)
|
||||||
|
Maps a Monaco token type, such as
Parameters :
Returns :
CodeTokenKind
|
| toJsonLines | ||||||
toJsonLines(code: string)
|
||||||
|
Splits JSON into lines of tokens, telling keys from string values. Monaco only colors JSON in an editor, so the code block tokenizes it itself.
Parameters :
Returns :
[][]
|
| initializeMonacoEnvironment |
initializeMonacoEnvironment()
|
| loadMonacoEditor |
loadMonacoEditor()
|
| isActilityConnection | ||||
isActilityConnection(connection)
|
||||
|
Parameters :
Returns :
ActilityConnection
|
| isLoriotConnection | ||||
isLoriotConnection(connection)
|
||||
|
Parameters :
Returns :
LoriotConnection
|
| isSigfoxConnection | ||||
isSigfoxConnection(connection)
|
||||
|
Parameters :
Returns :
SigfoxConnection
|
| isAggregationLinked | ||||||
isAggregationLinked(state: GuardState)
|
||||||
|
Check if aggregation is linked
Parameters :
Returns :
boolean
|
| isAggregationUnlinked | ||||||
isAggregationUnlinked(state: GuardState)
|
||||||
|
Check if aggregation is unlinked
Parameters :
Returns :
boolean
|
| isAutoRefreshDisabled | ||||||
isAutoRefreshDisabled(state: GuardState)
|
||||||
|
Check if auto-refresh is disabled (unlinked)
Parameters :
Returns :
boolean
|
| isAutoRefreshEnabled | ||||||
isAutoRefreshEnabled(state: GuardState)
|
||||||
|
Check if auto-refresh is enabled (linked)
Parameters :
Returns :
boolean
|
| isConfig | ||||||
isConfig(state: GuardState)
|
||||||
|
Check if the current display mode is config
Parameters :
Returns :
boolean
|
| isDashboard | ||||||
isDashboard(state: GuardState)
|
||||||
|
Check if the current display mode is dashboard
Parameters :
Returns :
boolean
|
| isDateTimeContextLinked | ||||||
isDateTimeContextLinked(state: GuardState)
|
||||||
|
Check if dateTimeContext is linked
Parameters :
Returns :
boolean
|
| isDateTimeContextUnlinked | ||||||
isDateTimeContextUnlinked(state: GuardState)
|
||||||
|
Check if dateTimeContext is unlinked
Parameters :
Returns :
boolean
|
| isHistory | ||||||
isHistory(state: GuardState)
|
||||||
|
Check if the current refresh option is history
Parameters :
Returns :
boolean
|
| isLive | ||||||
isLive(state: GuardState)
|
||||||
|
Check if the current refresh option is live
Parameters :
Returns :
boolean
|
| isViewAndConfig | ||||||
isViewAndConfig(state: GuardState)
|
||||||
|
Check if the current display mode is view and config
Parameters :
Returns :
boolean
|
| isBasic | ||||||
isBasic(tenantLoginOption: TenantLoginOption)
|
||||||
|
Parameters :
|
| isOauthInternal | ||||||
isOauthInternal(tenantLoginOption: TenantLoginOption)
|
||||||
|
Parameters :
|
| isBinaryFile | ||||||||||||
isBinaryFile(file: File, options)
|
||||||||||||
|
Detects binary files by checking the MIME type first, then inspecting the leading bytes: a null byte (git's heuristic) or a high share of non-text characters marks the file as binary. The second check catches high-entropy content (e.g. random data) that may contain no null byte in the sample and would otherwise be mistaken for text.
Parameters :
Returns :
Promise<boolean>
|
| isFullScreenEnabled | ||||||
isFullScreenEnabled(element: unknown)
|
||||||
|
Parameters :
|
| toggleFullscreen | ||||||
toggleFullscreen(element: unknown)
|
||||||
|
Parameters :
|
| isValidReplaceDeviceStepState | ||||
isValidReplaceDeviceStepState(state)
|
||||
|
Parameters :
Returns :
ReplaceDeviceStepState
|
| lastMeasurementValue | |||||||||||||||
lastMeasurementValue(config: LastMeasurementConfig, metadata: ValueCallbackMetadata)
|
|||||||||||||||
|
Creates an Observable that tracks the latest measurement value for a specific datapoint. Combines initial server fetch with real-time measurement updates.
Parameters :
Returns :
Observable<LastMeasurementResult>
Stream of measurement values, shaped by |
| loadBoxModel |
loadBoxModel()
|
| loadOrbitControls |
loadOrbitControls()
|
|
Dynamically imports the OrbitControls of three js.
Returns :
Promise<typeof OrbitControls>
A Promise of OrbitControls (three js). |
| loadPhoneModel |
loadPhoneModel()
|
| loadThree |
loadThree()
|
|
Dynamically imports three js.
Returns :
Promise<typeof THREE>
A Promise of three js. |
| loadTokenizer | ||||||
loadTokenizer(language: CodeBlockLanguage)
|
||||||
|
Loads Monaco and the tokenizer of a language, once for all code blocks.
Parameters :
Returns :
Promise<typeof Monaco>
|
| mapToSourceValueObject | |||
mapToSourceValueObject(undefined)
|
|||
|
Parameters :
Returns :
{ key: SourceId; value: string[] }
|
| memoize | ||||||||
memoize(resolver?: unknown)
|
||||||||
|
Decorator to memoize function results.
Parameters :
|
| normalizeLiveRange | ||||||
normalizeLiveRange(dateTimeContext: DateTimeContext)
|
||||||
|
Parameters :
Returns :
DateTimeContext
|
| resolveGlobalContextState | ||||||
resolveGlobalContextState(sources: GlobalContextStateSources)
|
||||||
|
Parameters :
Returns :
GlobalContextState
|
| parseControlFrame | ||||
parseControlFrame(data)
|
||||
|
Attempts to parse an incoming WebSocket frame as a remote-access control frame. Returns the parsed
frame for a recognised
Parameters :
Returns :
RemoteAccessControlFrame | null
|
| toStoredHostKey | ||||||
toStoredHostKey(frame: HostKeyProbeMessage)
|
||||||
|
Composes the OpenSSH authorized_keys-style string persisted in the configuration credentials.
Parameters :
Returns :
string
|
| pickDefined | |||||||||
pickDefined<T, K extends keyof T>(obj: T, keys)
|
|||||||||
Type parameters :
|
|||||||||
|
Returns a shallow copy containing only the keys whose value is defined.
Parameters :
Returns :
Pick<T, K>
|
| provideClientLibServices |
provideClientLibServices()
|
|
Provides all services from
Returns :
Provider[]
An array of providers for all services from |
| toProvider | ||||||
toProvider<T>(provide: Type)
|
||||||
Type parameters :
|
||||||
|
Parameters :
Returns :
Provider
|
| provideCommonPipes |
provideCommonPipes()
|
|
Provides commonly used pipes. To be injected via dependency injection. |
| provideCommonServices |
provideCommonServices()
|
|
Provides commonly used services and app initializers.
Returns :
unknown[]
An array of commonly used services and app initializers. |
| provideDefaultOptionsAppInitializer |
provideDefaultOptionsAppInitializer()
|
|
Loads the default application options during the app initialization. e.g. loads supportUrl, activateSupportUserAvailable, backend version |
| provideLanguageSelectorAppInitializer |
provideLanguageSelectorAppInitializer()
|
|
Sets the application language during the app initialization. |
| providePluginsLoaderServiceAppInitializer |
providePluginsLoaderServiceAppInitializer()
|
|
Loads all configured plugins on application startup. |
| provideMapConfig |
provideMapConfig()
|
| registerTranslateExtension | |||||||||
registerTranslateExtension(translate: TranslateService, parser: TranslateParser)
|
|||||||||
|
Parameters :
|
| retryWithDelay |
retryWithDelay<T>(delayTime: number, count: number)
|
Type parameters :
|
|
Returns :
MonoTypeOperatorFunction<T>
|
| RolesServiceFactory | ||||||
RolesServiceFactory(injector: unknown)
|
||||||
|
Parameters :
|
| rootScopeCommandTemplateFactory | ||||||
rootScopeCommandTemplateFactory($injector: Injector)
|
||||||
|
Parameters :
|
| rootScopeTypeDetailFactory | ||||||
rootScopeTypeDetailFactory($injector: Injector)
|
||||||
|
Parameters :
|
| scaleWidgetDimensions | |||||||||
scaleWidgetDimensions<T extends { _x?: number; _y?: number; _width?: number; _height?: number }>(widget: T, options: ScaleWidgetDimensionsOptions)
|
|||||||||
Type parameters :
|
|||||||||
|
Scales widget dimensions proportionally when the grid column/row count changes. Ensures widgets maintain their visual proportions relative to the grid.
Parameters :
Returns :
T
|
| simpleJsonPathValidator | ||||||
simpleJsonPathValidator(control: AbstractControl)
|
||||||
|
Parameters :
Returns :
ValidationErrors | null
|
| SmartRulesServiceFactory | ||||||
SmartRulesServiceFactory(injector: any)
|
||||||
|
Parameters :
|
| SmartRulesUpgradeServiceFactory | ||||||
SmartRulesUpgradeServiceFactory(injector: any)
|
||||||
|
Parameters :
|
| strToNumber | ||||
strToNumber(value)
|
||||
|
Transforms a string into a number (if needed).
Parameters :
Returns :
number
|
| TenantPoliciesFactory | ||||||
TenantPoliciesFactory(injector: any)
|
||||||
|
Parameters :
|
| throttle | ||||||||||||
throttle(wait?: unknown, options?: unknown)
|
||||||||||||
|
Decorator to throttle functions call.
Parameters :
|
| throwIfFailed | |||||||||
throwIfFailed(response: IFetchResponse, fallbackMessage: string)
|
|||||||||
|
Throws a
Parameters :
Returns :
Promise<void>
|
| uniqueInCollectionByPathValidator | ||||||||||||
uniqueInCollectionByPathValidator(collection: Iterable, path: string, comparator?)
|
||||||||||||
|
Parameters :
Returns :
ValidatorFn
|
| UserInventoryRolesFactory | ||||||
UserInventoryRolesFactory(injector: unknown)
|
||||||
|
Parameters :
|
| validateInternationalPhoneNumber |
validateInternationalPhoneNumber()
|
|
Returns :
ValidatorFn
|