@if (dataKeyConfigMode === dataKeyConfigModes.general) {
datakey.general
@if (modelValue.type !== dataKeyTypes.function && !hideDataKeyName) { {{ 'entity.key' | translate }} @if (dataKeyFormGroup.get('name').value && !dataKeyFormGroup.get('name').disabled) { } @for (key of filteredKeys | async; track key) { } } @if (!hideDataKeyLabel) { datakey.label } @if (modelValue.type !== dataKeyTypes.alarm) { @if (!hideDataKeyUnits) {
widget-config.units-short
} @if (!hideDataKeyDecimals) {
widget-config.decimals-short
} } @if (!hideDataKeyColor) {
{{ 'datakey.color' | translate }}
} @if (modelValue.type === dataKeyTypes.function) {
datakey.data-generation-func
} @if (!hideDataKeyAggregation && widgetType === widgetTypes.latest && modelValue.type === dataKeyTypes.timeseries) {
{{ 'datakey.aggregation' | translate }}
@for (aggregation of aggregations; track aggregation) { {{ aggregationTypesTranslations.get(aggregationTypes[aggregation]) | translate }} }
{{ dataKeyFormGroup.get('aggregationType').value ? (dataKeyAggregationTypeHintTranslations.get(aggregationTypes[dataKeyFormGroup.get('aggregationType').value]) | translate) : '' }} @if (dataKeyFormGroup.get('aggregationType').value !== aggregationTypes.NONE) {
{{ 'datakey.aggregation-type-hint-common' | translate }}
}
}
@if (dataKeyFormGroup.get('aggregationType').value && dataKeyFormGroup.get('aggregationType').value !== aggregationTypes.NONE) {
datakey.delta-calculation
{{ 'datakey.enable-delta-calculation' | translate }} {{ 'datakey.enable-delta-calculation-hint' | translate }} @if (dataKeyFormGroup.get('comparisonEnabled').value) {
{{ 'widgets.chart.time-for-comparison' | translate }}
{{ 'widgets.chart.time-for-comparison-previous-interval' | translate }} {{ 'widgets.chart.time-for-comparison-days' | translate }} {{ 'widgets.chart.time-for-comparison-weeks' | translate }} {{ 'widgets.chart.time-for-comparison-months' | translate }} {{ 'widgets.chart.time-for-comparison-years' | translate }} {{ 'widgets.chart.time-for-comparison-custom-interval' | translate }}
@if (dataKeyFormGroup.get('timeForComparison').value === 'customInterval') {
{{ 'widgets.chart.custom-interval-value' | translate }}
}
{{ 'datakey.delta-calculation-result' | translate }}
@for (comparisonResultType of comparisonResults; track comparisonResultType) { {{ comparisonResultTypeTranslations.get(comparisonResultTypes[comparisonResultType]) | translate }} }
}
} @if ((modelValue.type === dataKeyTypes.timeseries || modelValue.type === dataKeyTypes.attribute || modelValue.type === dataKeyTypes.count) && showPostProcessing) {
{{ 'datakey.use-data-post-processing-func' | translate }} @if (dataKeyFormGroup.get('usePostProcessing').value) { } @if (dataKeyFormGroup.get('usePostProcessing').value) { }
}
} @else {
}