-
- {{ 'calculated-fields.output-type' | translate }}
-
- @for (type of outputTypes; track type) {
- {{ OutputTypeTranslations.get(type) | translate }}
- }
-
-
- @if (outputForm.get('type').value === OutputType.Attribute
- && (entityId.entityType === EntityType.DEVICE || entityId.entityType === EntityType.DEVICE_PROFILE)) {
+
+
- {{ 'calculated-fields.attribute-scope' | translate }}
-
-
- {{ 'calculated-fields.server-attributes' | translate }}
-
-
- {{ 'calculated-fields.shared-attributes' | translate }}
-
+ {{ 'calculated-fields.output-type' | translate }}
+
+ @for (type of outputTypes; track type) {
+ {{ OutputTypeTranslations.get(type) | translate }}
+ }
- }
-
- @if (simpleMode) {
- @if (hiddenName) {
-
-
-
-
- } @else {
-
+ @if (outputForm.get('type').value === OutputType.Attribute
+ && (entityId.entityType === EntityType.DEVICE || entityId.entityType === EntityType.DEVICE_PROFILE)) {
-
- {{
- (outputForm.get('type').value === OutputType.Timeseries
- ? 'calculated-fields.timeseries-key'
- : 'calculated-fields.attribute-key')
- | translate
- }}
-
-
- @if (outputForm.get('name').errors && outputForm.get('name').touched) {
-
- @if (outputForm.get('name').hasError('required')) {
- {{ 'common.hint.key-required' | translate }}
- } @else if (outputForm.get('name').hasError('pattern')) {
- {{ 'common.hint.key-pattern' | translate }}
- } @else if (outputForm.get('name').hasError('maxlength')) {
- {{ 'common.hint.key-max-length' | translate }}
- }
-
- }
+ {{ 'calculated-fields.attribute-scope' | translate }}
+
+
+ {{ 'calculated-fields.server-attributes' | translate }}
+
+
+ {{ 'calculated-fields.shared-attributes' | translate }}
+
+
-
-
-
+ }
+
+ @if (simpleMode) {
+ @if (hiddenName) {
+
+
+
+
+ } @else {
+
+
+
+ {{
+ (outputForm.get('type').value === OutputType.Timeseries
+ ? 'calculated-fields.timeseries-key'
+ : 'calculated-fields.attribute-key')
+ | translate
+ }}
+
+
+ @if (outputForm.get('name').errors && outputForm.get('name').touched) {
+
+ @if (outputForm.get('name').hasError('required')) {
+ {{ 'common.hint.key-required' | translate }}
+ } @else if (outputForm.get('name').hasError('pattern')) {
+ {{ 'common.hint.key-pattern' | translate }}
+ } @else if (outputForm.get('name').hasError('maxlength')) {
+ {{ 'common.hint.key-max-length' | translate }}
+ }
+
+ }
+
+
+
+
+ }
}
- }
+