File

global-context/integration/context-controls/context-controls.component.ts

Metadata

Index

Properties
Methods
Inputs
Outputs

Constructor

constructor()

Inputs

config
Type : GlobalContextState
Required :  true
controls
Type : PresetName | PresetDefinition
Default value : PRESET_NAME.DEFAULT
displayMode
Type : DisplayMode
Default value : GLOBAL_CONTEXT_DISPLAY_MODE.DASHBOARD
isLoading
Type : boolean
Default value : false

Outputs

configChange
Type : { context: GlobalContextState; diff: GlobalContextState }
refresh
Type : void

Methods

onRefresh
onRefresh()
Returns : void

Properties

autoRefreshSeconds
Type : unknown
Default value : computed( () => this.config().refreshInterval || GLOBAL_CONTEXT_DEFAULTS.REFRESH_INTERVAL )
dateTimePickerConfig
Type : unknown
Default value : computed(() => { const refreshOption = this.config().refreshOption; return refreshOption === REFRESH_OPTION.HISTORY ? { showDateFrom: true, showDateTo: true } : { showDateFrom: true, showDateTo: false }; })
disabledAggregations
Type : unknown
Default value : computed((): AggregationOptionStatus => { const dateCtx = this.config().dateTimeContext; if (!dateCtx) return {}; const [from, to] = this.parseDateRange(dateCtx); return this.aggregationValidationService.getDisabledAggregations([from, to]); })
form
Type : FormGroup
visibleControls
Type : unknown
Default value : computed(() => { const controlsInput = this.controls(); const presetDef = typeof controlsInput === 'string' ? CONTROL_PRESETS[controlsInput] : controlsInput; const baseControls = presetDef[this.displayMode()]; const refreshOption = this.config().refreshOption || REFRESH_OPTION.LIVE; const filteredControls = applyModeConstraints(baseControls, refreshOption); // Normalize LIVE_TIME/HISTORY_TIME to 'time' for template return filteredControls.map(c => c === CONTEXT_FEATURE.LIVE_TIME || c === CONTEXT_FEATURE.HISTORY_TIME ? 'time' : c ); })

Visible controls for the template. LIVE_TIME and HISTORY_TIME are normalized to 'time' for template simplicity.

results matching ""

    No results matching ""