@if (!basicMode) { widget-config.datasource-type @for (datasourceType of datasourceTypes; track datasourceType) { {{ datasourceTypesTranslations.get(datasourceType) | translate }} } }
@switch (datasourceFormGroup.get('type').value) { @case (datasourceType.function) { @if (!hideDatasourceLabel) { datasource.label } } @case (datasourceFormGroup.get('type').value === datasourceType.device || datasourceFormGroup.get('type').value === datasourceType.entity || datasourceFormGroup.get('type').value === datasourceType.entityCount || datasourceFormGroup.get('type').value === datasourceType.alarmCount ? datasourceFormGroup.get('type').value : '') { @if (datasourceFormGroup.get('type').value === datasourceType.alarmCount && !hideAlarmFilter) { } @if (datasourceFormGroup.get('type').value === datasourceType.device) { } @if (datasourceFormGroup.get('type').value !== datasourceType.device) { } @if (!hideDatasourceLabel && [datasourceType.entityCount, datasourceType.alarmCount].includes(datasourceFormGroup.get('type').value)) { } } }
@if (!hideDataKeys) {
@if (hasAdditionalLatestDataKeys) { }
} @if ((!basicMode || displayDatasourceFilterForBasicMode) && ![datasourceType.function].includes(datasourceFormGroup.get('type').value)) { }