@ -3691,6 +3691,91 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
} ]
} ] } ) ;
class RuleChainInputComponent extends RuleNodeConfigurationComponent {
constructor ( store , fb ) {
super ( store ) ;
this . store = store ;
this . fb = fb ;
this . entityType = EntityType ;
}
configForm ( ) {
return this . ruleChainInputConfigForm ;
}
onConfigurationSet ( configuration ) {
this . ruleChainInputConfigForm = this . fb . group ( {
ruleChainId : [ configuration ? configuration . ruleChainId : null , [ Validators . required ] ]
} ) ;
}
}
RuleChainInputComponent . ɵfac = i0 . ɵɵngDeclareFactory ( { minVersion : "12.0.0" , version : "12.2.14" , ngImport : i0 , type : RuleChainInputComponent , deps : [ { token : i1 . Store } , { token : i2 . FormBuilder } ] , target : i0 . ɵɵFactoryTarget . Component } ) ;
RuleChainInputComponent . ɵcmp = i0 . ɵɵngDeclareComponent ( { minVersion : "12.0.0" , version : "12.2.14" , type : RuleChainInputComponent , selector : "tb-flow-node-rule-chain-input-config" , usesInheritance : true , ngImport : i0 , template : "<section [formGroup]=\"ruleChainInputConfigForm\" fxLayout=\"column\">\n <tb-entity-autocomplete required\n [excludeEntityIds]=\"[ruleChainId]\"\n [entityType]=\"entityType.RULE_CHAIN\"\n [entitySubtype]=\"ruleChainType\"\n formControlName=\"ruleChainId\">\n </tb-entity-autocomplete>\n</section>\n" , components : [ { type : i8$3 . EntityAutocompleteComponent , selector : "tb-entity-autocomplete" , inputs : [ "entityType" , "entitySubtype" , "excludeEntityIds" , "labelText" , "requiredText" , "required" , "disabled" ] , outputs : [ "entityChanged" ] } ] , directives : [ { type : i8 . DefaultLayoutDirective , selector : " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]" , inputs : [ "fxLayout" , "fxLayout.xs" , "fxLayout.sm" , "fxLayout.md" , "fxLayout.lg" , "fxLayout.xl" , "fxLayout.lt-sm" , "fxLayout.lt-md" , "fxLayout.lt-lg" , "fxLayout.lt-xl" , "fxLayout.gt-xs" , "fxLayout.gt-sm" , "fxLayout.gt-md" , "fxLayout.gt-lg" ] } , { type : i2 . NgControlStatusGroup , selector : "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" } , { type : i2 . FormGroupDirective , selector : "[formGroup]" , inputs : [ "formGroup" ] , outputs : [ "ngSubmit" ] , exportAs : [ "ngForm" ] } , { type : i2 . RequiredValidator , selector : ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]" , inputs : [ "required" ] } , { type : i2 . NgControlStatus , selector : "[formControlName],[ngModel],[formControl]" } , { type : i2 . FormControlName , selector : "[formControlName]" , inputs : [ "disabled" , "formControlName" , "ngModel" ] , outputs : [ "ngModelChange" ] } ] } ) ;
i0 . ɵɵngDeclareClassMetadata ( { minVersion : "12.0.0" , version : "12.2.14" , ngImport : i0 , type : RuleChainInputComponent , decorators : [ {
type : Component ,
args : [ {
selector : 'tb-flow-node-rule-chain-input-config' ,
templateUrl : './rule-chain-input.component.html' ,
styleUrls : [ ]
} ]
} ] , ctorParameters : function ( ) { return [ { type : i1 . Store } , { type : i2 . FormBuilder } ] ; } } ) ;
class RuleChainOutputComponent extends RuleNodeConfigurationComponent {
constructor ( store , fb ) {
super ( store ) ;
this . store = store ;
this . fb = fb ;
}
configForm ( ) {
return this . ruleChainOutputConfigForm ;
}
onConfigurationSet ( configuration ) {
this . ruleChainOutputConfigForm = this . fb . group ( {
label : [ configuration ? configuration . label : null , [ Validators . required ] ]
} ) ;
}
}
RuleChainOutputComponent . ɵfac = i0 . ɵɵngDeclareFactory ( { minVersion : "12.0.0" , version : "12.2.14" , ngImport : i0 , type : RuleChainOutputComponent , deps : [ { token : i1 . Store } , { token : i2 . FormBuilder } ] , target : i0 . ɵɵFactoryTarget . Component } ) ;
RuleChainOutputComponent . ɵcmp = i0 . ɵɵngDeclareComponent ( { minVersion : "12.0.0" , version : "12.2.14" , type : RuleChainOutputComponent , selector : "tb-flow-node-rule-chain-output-config" , usesInheritance : true , ngImport : i0 , template : "<section [formGroup]=\"ruleChainOutputConfigForm\" fxLayout=\"column\">\n <mat-form-field class=\"mat-block\">\n <mat-label translate>tb.rulenode.label</mat-label>\n <input required matInput formControlName=\"label\">\n <mat-error *ngIf=\"ruleChainOutputConfigForm.get('label').hasError('required')\">\n {{ 'tb.rulenode.label-required' | translate }}\n </mat-error>\n </mat-form-field>\n</section>\n" , components : [ { type : i3 . MatFormField , selector : "mat-form-field" , inputs : [ "color" , "floatLabel" , "appearance" , "hideRequiredMarker" , "hintLabel" ] , exportAs : [ "matFormField" ] } ] , directives : [ { type : i8 . DefaultLayoutDirective , selector : " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]" , inputs : [ "fxLayout" , "fxLayout.xs" , "fxLayout.sm" , "fxLayout.md" , "fxLayout.lg" , "fxLayout.xl" , "fxLayout.lt-sm" , "fxLayout.lt-md" , "fxLayout.lt-lg" , "fxLayout.lt-xl" , "fxLayout.gt-xs" , "fxLayout.gt-sm" , "fxLayout.gt-md" , "fxLayout.gt-lg" ] } , { type : i2 . NgControlStatusGroup , selector : "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" } , { type : i2 . FormGroupDirective , selector : "[formGroup]" , inputs : [ "formGroup" ] , outputs : [ "ngSubmit" ] , exportAs : [ "ngForm" ] } , { type : i3 . MatLabel , selector : "mat-label" } , { type : i4 . TranslateDirective , selector : "[translate],[ngx-translate]" , inputs : [ "translate" , "translateParams" ] } , { type : i11 . MatInput , selector : "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]" , inputs : [ "id" , "disabled" , "required" , "type" , "value" , "readonly" , "placeholder" , "errorStateMatcher" , "aria-describedby" ] , exportAs : [ "matInput" ] } , { type : i2 . DefaultValueAccessor , selector : "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" } , { type : i2 . RequiredValidator , selector : ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]" , inputs : [ "required" ] } , { type : i2 . NgControlStatus , selector : "[formControlName],[ngModel],[formControl]" } , { type : i2 . FormControlName , selector : "[formControlName]" , inputs : [ "disabled" , "formControlName" , "ngModel" ] , outputs : [ "ngModelChange" ] } , { type : i10 . NgIf , selector : "[ngIf]" , inputs : [ "ngIf" , "ngIfThen" , "ngIfElse" ] } , { type : i3 . MatError , selector : "mat-error" , inputs : [ "id" ] } ] , pipes : { "translate" : i4 . TranslatePipe } } ) ;
i0 . ɵɵngDeclareClassMetadata ( { minVersion : "12.0.0" , version : "12.2.14" , ngImport : i0 , type : RuleChainOutputComponent , decorators : [ {
type : Component ,
args : [ {
selector : 'tb-flow-node-rule-chain-output-config' ,
templateUrl : './rule-chain-output.component.html' ,
styleUrls : [ ]
} ]
} ] , ctorParameters : function ( ) { return [ { type : i1 . Store } , { type : i2 . FormBuilder } ] ; } } ) ;
class RuleNodeCoreConfigFlowModule {
}
RuleNodeCoreConfigFlowModule . ɵfac = i0 . ɵɵngDeclareFactory ( { minVersion : "12.0.0" , version : "12.2.14" , ngImport : i0 , type : RuleNodeCoreConfigFlowModule , deps : [ ] , target : i0 . ɵɵFactoryTarget . NgModule } ) ;
RuleNodeCoreConfigFlowModule . ɵmod = i0 . ɵɵngDeclareNgModule ( { minVersion : "12.0.0" , version : "12.2.14" , ngImport : i0 , type : RuleNodeCoreConfigFlowModule , declarations : [ RuleChainInputComponent ,
RuleChainOutputComponent ] , imports : [ CommonModule ,
SharedModule ,
RulenodeCoreConfigCommonModule ] , exports : [ RuleChainInputComponent ,
RuleChainOutputComponent ] } ) ;
RuleNodeCoreConfigFlowModule . ɵinj = i0 . ɵɵngDeclareInjector ( { minVersion : "12.0.0" , version : "12.2.14" , ngImport : i0 , type : RuleNodeCoreConfigFlowModule , imports : [ [
CommonModule ,
SharedModule ,
RulenodeCoreConfigCommonModule
] ] } ) ;
i0 . ɵɵngDeclareClassMetadata ( { minVersion : "12.0.0" , version : "12.2.14" , ngImport : i0 , type : RuleNodeCoreConfigFlowModule , decorators : [ {
type : NgModule ,
args : [ {
declarations : [
RuleChainInputComponent ,
RuleChainOutputComponent
] ,
imports : [
CommonModule ,
SharedModule ,
RulenodeCoreConfigCommonModule
] ,
exports : [
RuleChainInputComponent ,
RuleChainOutputComponent
]
} ]
} ] } ) ;
function addRuleNodeCoreLocaleEnglish ( translate ) {
const enUS = {
tb : {
@ -4105,7 +4190,9 @@ function addRuleNodeCoreLocaleEnglish(translate) {
'for value from message body' ,
'alarm-severity-pattern-hint' : 'Hint: use <code><span style="color: #000;">${</span>metadataKey<span style="color: #000;">}</span></code> ' +
'for value from metadata, <code><span style="color: #000;">$[</span>messageKey<span style="color: #000;">]</span></code> ' +
'for value from message body. Alarm severity should be system (CRITICAL, MAJOR etc.)'
'for value from message body. Alarm severity should be system (CRITICAL, MAJOR etc.)' ,
label : 'Label' ,
'label-required' : 'Label is required'
} ,
'key-val' : {
key : 'Key' ,
@ -4134,6 +4221,7 @@ RuleNodeCoreConfigModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0"
RuleNodeCoreConfigFilterModule ,
RulenodeCoreConfigEnrichmentModule ,
RulenodeCoreConfigTransformModule ,
RuleNodeCoreConfigFlowModule ,
EmptyConfigComponent ] } ) ;
RuleNodeCoreConfigModule . ɵinj = i0 . ɵɵngDeclareInjector ( { minVersion : "12.0.0" , version : "12.2.14" , ngImport : i0 , type : RuleNodeCoreConfigModule , imports : [ [
CommonModule ,
@ -4141,7 +4229,8 @@ RuleNodeCoreConfigModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0"
] , RuleNodeCoreConfigActionModule ,
RuleNodeCoreConfigFilterModule ,
RulenodeCoreConfigEnrichmentModule ,
RulenodeCoreConfigTransformModule ] } ) ;
RulenodeCoreConfigTransformModule ,
RuleNodeCoreConfigFlowModule ] } ) ;
i0 . ɵɵngDeclareClassMetadata ( { minVersion : "12.0.0" , version : "12.2.14" , ngImport : i0 , type : RuleNodeCoreConfigModule , decorators : [ {
type : NgModule ,
args : [ {
@ -4157,6 +4246,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
RuleNodeCoreConfigFilterModule ,
RulenodeCoreConfigEnrichmentModule ,
RulenodeCoreConfigTransformModule ,
RuleNodeCoreConfigFlowModule ,
EmptyConfigComponent
]
} ]
@ -4170,5 +4260,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.14", ngImpo
* Generated bundle index . Do not edit .
* /
export { AssignCustomerConfigComponent , AttributesConfigComponent , AzureIotHubConfigComponent , CalculateDeltaConfigComponent , ChangeOriginatorConfigComponent , CheckAlarmStatusComponent , CheckMessageConfigComponent , CheckPointConfigComponent , CheckRelationConfigComponent , ClearAlarmConfigComponent , CreateAlarmConfigComponent , CreateRelationConfigComponent , CredentialsConfigComponent , CustomerAttributesConfigComponent , DeleteRelationConfigComponent , DeviceAttributesConfigComponent , DeviceProfileConfigComponent , DeviceRelationsQueryConfigComponent , EmptyConfigComponent , EntityDetailsConfigComponent , GeneratorConfigComponent , GetTelemetryFromDatabaseConfigComponent , GpsGeoActionConfigComponent , GpsGeoFilterConfigComponent , KafkaConfigComponent , KvMapConfigComponent , LogConfigComponent , MessageTypeConfigComponent , MessageTypesConfigComponent , MqttConfigComponent , MsgCountConfigComponent , MsgDelayConfigComponent , OriginatorAttributesConfigComponent , OriginatorFieldsConfigComponent , OriginatorTypeConfigComponent , PubSubConfigComponent , PushToCloudConfigComponent , PushToEdgeConfigComponent , RabbitMqConfigComponent , RelatedAttributesConfigComponent , RelationsQueryConfigComponent , RestApiCallConfigComponent , RpcReplyConfigComponent , RpcRequestConfigComponent , RuleNodeCoreConfigActionModule , RuleNodeCoreConfigFilterModule , RuleNodeCoreConfigModule , RulenodeCoreConfigCommonModule , RulenodeCoreConfigEnrichmentModule , RulenodeCoreConfigTransformModule , SafeHtmlPipe , SaveToCustomTableConfigComponent , ScriptConfigComponent , SendEmailConfigComponent , SendSmsConfigComponent , SnsConfigComponent , SqsConfigComponent , SwitchConfigComponent , TenantAttributesConfigComponent , TimeseriesConfigComponent , ToEmailConfigComponent , TransformScriptConfigComponent , UnassignCustomerConfigComponent } ;
export { AssignCustomerConfigComponent , AttributesConfigComponent , AzureIotHubConfigComponent , CalculateDeltaConfigComponent , ChangeOriginatorConfigComponent , CheckAlarmStatusComponent , CheckMessageConfigComponent , CheckPointConfigComponent , CheckRelationConfigComponent , ClearAlarmConfigComponent , CreateAlarmConfigComponent , CreateRelationConfigComponent , CredentialsConfigComponent , CustomerAttributesConfigComponent , DeleteRelationConfigComponent , DeviceAttributesConfigComponent , DeviceProfileConfigComponent , DeviceRelationsQueryConfigComponent , EmptyConfigComponent , EntityDetailsConfigComponent , GeneratorConfigComponent , GetTelemetryFromDatabaseConfigComponent , GpsGeoActionConfigComponent , GpsGeoFilterConfigComponent , KafkaConfigComponent , KvMapConfigComponent , LogConfigComponent , MessageTypeConfigComponent , MessageTypesConfigComponent , MqttConfigComponent , MsgCountConfigComponent , MsgDelayConfigComponent , OriginatorAttributesConfigComponent , OriginatorFieldsConfigComponent , OriginatorTypeConfigComponent , PubSubConfigComponent , PushToCloudConfigComponent , PushToEdgeConfigComponent , RabbitMqConfigComponent , RelatedAttributesConfigComponent , RelationsQueryConfigComponent , RestApiCallConfigComponent , RpcReplyConfigComponent , RpcRequestConfigComponent , RuleChainInputComponent , RuleChainOutputComponent , Rule NodeCoreConfigActionModule , RuleNodeCoreConfigFilterModule , RuleNodeCoreConfigFlow Module , RuleNodeCoreConfigModule , RulenodeCoreConfigCommonModule , RulenodeCoreConfigEnrichmentModule , RulenodeCoreConfigTransformModule , SafeHtmlPipe , SaveToCustomTableConfigComponent , ScriptConfigComponent , SendEmailConfigComponent , SendSmsConfigComponent , SnsConfigComponent , SqsConfigComponent , SwitchConfigComponent , TenantAttributesConfigComponent , TimeseriesConfigComponent , ToEmailConfigComponent , TransformScriptConfigComponent , UnassignCustomerConfigComponent } ;
//# sourceMappingURL=rulenode-core-config.js.map