Vladyslav
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with
26 additions and
26 deletions
-
ui-ngx/src/app/modules/home/components/details-panel.component.ts
-
ui-ngx/src/app/modules/home/components/entity/entity-details-panel.component.ts
-
ui-ngx/src/app/modules/home/components/entity/entity-tabs.component.ts
-
ui-ngx/src/app/modules/home/components/entity/entity.component.ts
-
ui-ngx/src/app/modules/home/components/widget/lib/gateway/gateway-form.models.ts
-
ui-ngx/src/app/modules/home/pages/dashboard/edit-widget.component.ts
-
ui-ngx/src/app/modules/home/pages/rulechain/add-rule-node-dialog.component.html
-
ui-ngx/src/app/modules/home/pages/rulechain/add-rule-node-link-dialog.component.html
-
ui-ngx/src/app/modules/home/pages/rulechain/rule-node-details.component.ts
-
ui-ngx/src/app/modules/home/pages/rulechain/rule-node-link.component.ts
-
ui-ngx/src/app/modules/home/pages/user/add-user-dialog.component.ts
|
|
|
@ -18,7 +18,7 @@ import { Component, EventEmitter, Input, Output } from '@angular/core'; |
|
|
|
import { PageComponent } from '@shared/components/page.component'; |
|
|
|
import { Store } from '@ngrx/store'; |
|
|
|
import { AppState } from '@core/core.state'; |
|
|
|
import { FormGroup, NgForm } from '@angular/forms'; |
|
|
|
import { FormGroup } from '@angular/forms'; |
|
|
|
|
|
|
|
@Component({ |
|
|
|
selector: 'tb-details-panel', |
|
|
|
|
|
|
|
@ -37,7 +37,7 @@ import { AppState } from '@core/core.state'; |
|
|
|
import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; |
|
|
|
import { BaseData, HasId } from '@shared/models/base-data'; |
|
|
|
import { EntityType, EntityTypeResource, EntityTypeTranslation } from '@shared/models/entity-type.models'; |
|
|
|
import { FormGroup, NgForm } from '@angular/forms'; |
|
|
|
import { FormGroup } from '@angular/forms'; |
|
|
|
import { EntityComponent } from './entity.component'; |
|
|
|
import { TbAnchorComponent } from '@shared/components/tb-anchor.component'; |
|
|
|
import { EntityAction } from '@home/models/entity/entity-component.models'; |
|
|
|
|
|
|
|
@ -30,7 +30,7 @@ import { AuditLogMode } from '@shared/models/audit-log.models'; |
|
|
|
import { DebugEventType, EventType } from '@shared/models/event.models'; |
|
|
|
import { AttributeScope, LatestTelemetry } from '@shared/models/telemetry/telemetry.models'; |
|
|
|
import { NULL_UUID } from '@shared/models/id/has-uuid'; |
|
|
|
import { FormGroup, NgForm } from '@angular/forms'; |
|
|
|
import { FormGroup } from '@angular/forms'; |
|
|
|
import { PageLink } from '@shared/models/page/page-link'; |
|
|
|
|
|
|
|
@Directive() |
|
|
|
|
|
|
|
@ -15,9 +15,9 @@ |
|
|
|
///
|
|
|
|
|
|
|
|
import { BaseData, HasId } from '@shared/models/base-data'; |
|
|
|
import { FormBuilder, FormGroup, NgForm } from '@angular/forms'; |
|
|
|
import { FormBuilder, FormGroup } from '@angular/forms'; |
|
|
|
import { PageComponent } from '@shared/components/page.component'; |
|
|
|
import { Directive, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core'; |
|
|
|
import { Directive, EventEmitter, Input, OnInit, Output } from '@angular/core'; |
|
|
|
import { Store } from '@ngrx/store'; |
|
|
|
import { AppState } from '@core/core.state'; |
|
|
|
import { EntityAction } from '@home/models/entity/entity-component.models'; |
|
|
|
|
|
|
|
@ -67,8 +67,12 @@ export const StorageTypeTranslationMap = new Map<StorageType, string>( |
|
|
|
export enum ConnectorType { |
|
|
|
mqtt= 'MQTT', |
|
|
|
modbus = 'Modbus', |
|
|
|
opc_ua = 'OPC-UA', |
|
|
|
ble = 'BLE' |
|
|
|
opcua = 'OPC-UA', |
|
|
|
ble = 'BLE', |
|
|
|
request = 'Request', |
|
|
|
can = 'CAN', |
|
|
|
bacnet = 'BACnet', |
|
|
|
custom = 'Custom' |
|
|
|
} |
|
|
|
|
|
|
|
export interface GatewayFormModels { |
|
|
|
|
|
|
|
@ -14,7 +14,7 @@ |
|
|
|
/// limitations under the License.
|
|
|
|
///
|
|
|
|
|
|
|
|
import { Component, Input, OnChanges, OnInit, SimpleChanges, ViewChild } from '@angular/core'; |
|
|
|
import { Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core'; |
|
|
|
import { PageComponent } from '@shared/components/page.component'; |
|
|
|
import { Store } from '@ngrx/store'; |
|
|
|
import { AppState } from '@core/core.state'; |
|
|
|
@ -25,7 +25,7 @@ import { Widget } from '@shared/models/widget.models'; |
|
|
|
import { WidgetComponentService } from '@home/components/widget/widget-component.service'; |
|
|
|
import { WidgetConfigComponentData } from '../../models/widget-component.models'; |
|
|
|
import { isDefined, isString } from '@core/utils'; |
|
|
|
import { FormBuilder, FormGroup, NgForm } from '@angular/forms'; |
|
|
|
import { FormBuilder, FormGroup } from '@angular/forms'; |
|
|
|
|
|
|
|
@Component({ |
|
|
|
selector: 'tb-edit-widget', |
|
|
|
|
|
|
|
@ -16,11 +16,11 @@ |
|
|
|
|
|
|
|
--> |
|
|
|
<form (ngSubmit)="add()" style="min-width: 650px;"> |
|
|
|
<mat-toolbar fxLayout="row" color="primary"> |
|
|
|
<mat-toolbar color="primary"> |
|
|
|
<h2 translate>rulenode.add</h2> |
|
|
|
<span fxFlex></span> |
|
|
|
<div [tb-help]="helpLinkIdForRuleNodeType()"></div> |
|
|
|
<button mat-button mat-icon-button |
|
|
|
<button mat-icon-button |
|
|
|
(click)="cancel()" |
|
|
|
type="button"> |
|
|
|
<mat-icon class="material-icons">close</mat-icon> |
|
|
|
@ -38,15 +38,13 @@ |
|
|
|
</tb-rule-node> |
|
|
|
</fieldset> |
|
|
|
</div> |
|
|
|
<div mat-dialog-actions fxLayout="row"> |
|
|
|
<span fxFlex></span> |
|
|
|
<button mat-button mat-raised-button color="primary" |
|
|
|
<div mat-dialog-actions fxLayoutAlign="end center"> |
|
|
|
<button mat-raised-button color="primary" |
|
|
|
type="submit" |
|
|
|
[disabled]="(isLoading$ | async) || tbRuleNode.ruleNodeFormGroup.invalid || !tbRuleNode.ruleNodeFormGroup.dirty"> |
|
|
|
{{ 'action.add' | translate }} |
|
|
|
</button> |
|
|
|
<button mat-button color="primary" |
|
|
|
style="margin-right: 20px;" |
|
|
|
type="button" |
|
|
|
[disabled]="(isLoading$ | async)" |
|
|
|
(click)="cancel()" cdkFocusInitial> |
|
|
|
|
|
|
|
@ -15,12 +15,12 @@ |
|
|
|
limitations under the License. |
|
|
|
|
|
|
|
--> |
|
|
|
<form [formGroup]="ruleNodeLinkFormGroup" (ngSubmit)="add()" style="width: 900px;"> |
|
|
|
<mat-toolbar fxLayout="row" color="primary"> |
|
|
|
<form [formGroup]="ruleNodeLinkFormGroup" (ngSubmit)="add()" style="width: 480px;"> |
|
|
|
<mat-toolbar color="primary"> |
|
|
|
<h2 translate>rulenode.add-link</h2> |
|
|
|
<span fxFlex></span> |
|
|
|
<div [tb-help]="'ruleEngine'"></div> |
|
|
|
<button mat-button mat-icon-button |
|
|
|
<button mat-icon-button |
|
|
|
(click)="cancel()" |
|
|
|
type="button"> |
|
|
|
<mat-icon class="material-icons">close</mat-icon> |
|
|
|
@ -38,15 +38,13 @@ |
|
|
|
</tb-rule-node-link> |
|
|
|
</fieldset> |
|
|
|
</div> |
|
|
|
<div mat-dialog-actions fxLayout="row"> |
|
|
|
<span fxFlex></span> |
|
|
|
<button mat-button mat-raised-button color="primary" |
|
|
|
<div mat-dialog-actions fxLayoutAlign="end center"> |
|
|
|
<button mat-raised-button color="primary" |
|
|
|
type="submit" |
|
|
|
[disabled]="(isLoading$ | async) || ruleNodeLinkFormGroup.invalid || !ruleNodeLinkFormGroup.dirty"> |
|
|
|
{{ 'action.add' | translate }} |
|
|
|
</button> |
|
|
|
<button mat-button color="primary" |
|
|
|
style="margin-right: 20px;" |
|
|
|
type="button" |
|
|
|
[disabled]="(isLoading$ | async)" |
|
|
|
(click)="cancel()" cdkFocusInitial> |
|
|
|
|
|
|
|
@ -18,7 +18,7 @@ import { Component, Input, OnChanges, OnInit, SimpleChanges, ViewChild } from '@ |
|
|
|
import { PageComponent } from '@shared/components/page.component'; |
|
|
|
import { Store } from '@ngrx/store'; |
|
|
|
import { AppState } from '@core/core.state'; |
|
|
|
import { FormBuilder, FormGroup, NgForm, Validators } from '@angular/forms'; |
|
|
|
import { FormBuilder, FormGroup, Validators } from '@angular/forms'; |
|
|
|
import { FcRuleNode, RuleNodeType } from '@shared/models/rule-node.models'; |
|
|
|
import { EntityType } from '@shared/models/entity-type.models'; |
|
|
|
import { Subscription } from 'rxjs'; |
|
|
|
|
|
|
|
@ -14,8 +14,8 @@ |
|
|
|
/// limitations under the License.
|
|
|
|
///
|
|
|
|
|
|
|
|
import { Component, forwardRef, Input, OnInit, ViewChild } from '@angular/core'; |
|
|
|
import { ControlValueAccessor, FormBuilder, FormGroup, NG_VALUE_ACCESSOR, NgForm, Validators } from '@angular/forms'; |
|
|
|
import { Component, forwardRef, Input, OnInit } from '@angular/core'; |
|
|
|
import { ControlValueAccessor, FormBuilder, FormGroup, NG_VALUE_ACCESSOR, Validators } from '@angular/forms'; |
|
|
|
import { FcRuleEdge, LinkLabel } from '@shared/models/rule-node.models'; |
|
|
|
import { coerceBooleanProperty } from '@angular/cdk/coercion'; |
|
|
|
import { TruncatePipe } from '@shared/pipe/truncate.pipe'; |
|
|
|
|
|
|
|
@ -18,7 +18,7 @@ import { Component, Inject, OnInit, ViewChild } from '@angular/core'; |
|
|
|
import { MAT_DIALOG_DATA, MatDialog, MatDialogRef } from '@angular/material/dialog'; |
|
|
|
import { Store } from '@ngrx/store'; |
|
|
|
import { AppState } from '@core/core.state'; |
|
|
|
import { FormGroup, NgForm } from '@angular/forms'; |
|
|
|
import { FormGroup } from '@angular/forms'; |
|
|
|
import { UserComponent } from '@modules/home/pages/user/user.component'; |
|
|
|
import { Authority } from '@shared/models/authority.enum'; |
|
|
|
import { ActivationMethod, activationMethodTranslations, User } from '@shared/models/user.model'; |
|
|
|
|