Showing
6 changed files
with
15 additions
and
65 deletions
@@ -14,22 +14,13 @@ | @@ -14,22 +14,13 @@ | ||
14 | /// limitations under the License. | 14 | /// limitations under the License. |
15 | /// | 15 | /// |
16 | 16 | ||
17 | -import { Component, Inject, OnInit, SkipSelf, ViewChild } from '@angular/core'; | 17 | +import { Component, Inject, OnInit, SkipSelf } from '@angular/core'; |
18 | import { ErrorStateMatcher } from '@angular/material/core'; | 18 | import { ErrorStateMatcher } from '@angular/material/core'; |
19 | import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; | 19 | import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; |
20 | import { Store } from '@ngrx/store'; | 20 | import { Store } from '@ngrx/store'; |
21 | import { AppState } from '@core/core.state'; | 21 | import { AppState } from '@core/core.state'; |
22 | import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm, Validators } from '@angular/forms'; | 22 | import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm, Validators } from '@angular/forms'; |
23 | -import { | ||
24 | - CONTAINS_TYPE, | ||
25 | - EntityRelation, | ||
26 | - EntitySearchDirection, | ||
27 | - RelationTypeGroup | ||
28 | -} from '@shared/models/relation.models'; | ||
29 | -import { EntityRelationService } from '@core/http/entity-relation.service'; | ||
30 | import { EntityId } from '@shared/models/id/entity-id'; | 23 | import { EntityId } from '@shared/models/id/entity-id'; |
31 | -import { forkJoin, Observable } from 'rxjs'; | ||
32 | -import { JsonObjectEditComponent } from '@app/shared/components/json-object-edit.component'; | ||
33 | import { Router } from '@angular/router'; | 24 | import { Router } from '@angular/router'; |
34 | import { DialogComponent } from '@app/shared/components/dialog.component'; | 25 | import { DialogComponent } from '@app/shared/components/dialog.component'; |
35 | import { AttributeData, AttributeScope } from '@shared/models/telemetry/telemetry.models'; | 26 | import { AttributeData, AttributeScope } from '@shared/models/telemetry/telemetry.models'; |
@@ -14,26 +14,11 @@ | @@ -14,26 +14,11 @@ | ||
14 | /// limitations under the License. | 14 | /// limitations under the License. |
15 | /// | 15 | /// |
16 | 16 | ||
17 | -import { Component, Inject, InjectionToken, OnInit, SkipSelf, ViewChild } from '@angular/core'; | 17 | +import { Component, Inject, InjectionToken, OnInit, SkipSelf } from '@angular/core'; |
18 | import { ErrorStateMatcher } from '@angular/material/core'; | 18 | import { ErrorStateMatcher } from '@angular/material/core'; |
19 | -import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; | ||
20 | import { Store } from '@ngrx/store'; | 19 | import { Store } from '@ngrx/store'; |
21 | import { AppState } from '@core/core.state'; | 20 | import { AppState } from '@core/core.state'; |
22 | import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm, Validators } from '@angular/forms'; | 21 | import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm, Validators } from '@angular/forms'; |
23 | -import { | ||
24 | - CONTAINS_TYPE, | ||
25 | - EntityRelation, | ||
26 | - EntitySearchDirection, | ||
27 | - RelationTypeGroup | ||
28 | -} from '@shared/models/relation.models'; | ||
29 | -import { EntityRelationService } from '@core/http/entity-relation.service'; | ||
30 | -import { EntityId } from '@shared/models/id/entity-id'; | ||
31 | -import { forkJoin, Observable } from 'rxjs'; | ||
32 | -import { JsonObjectEditComponent } from '@app/shared/components/json-object-edit.component'; | ||
33 | -import { Router } from '@angular/router'; | ||
34 | -import { DialogComponent } from '@app/shared/components/dialog.component'; | ||
35 | -import { AttributeData, AttributeScope } from '@shared/models/telemetry/telemetry.models'; | ||
36 | -import { AttributeService } from '@core/http/attribute.service'; | ||
37 | import { PageComponent } from '@shared/components/page.component'; | 22 | import { PageComponent } from '@shared/components/page.component'; |
38 | import { OverlayRef } from '@angular/cdk/overlay'; | 23 | import { OverlayRef } from '@angular/cdk/overlay'; |
39 | 24 |
@@ -29,9 +29,9 @@ import { | @@ -29,9 +29,9 @@ import { | ||
29 | import { EntityRelationService } from '@core/http/entity-relation.service'; | 29 | import { EntityRelationService } from '@core/http/entity-relation.service'; |
30 | import { EntityId } from '@shared/models/id/entity-id'; | 30 | import { EntityId } from '@shared/models/id/entity-id'; |
31 | import { forkJoin, Observable } from 'rxjs'; | 31 | import { forkJoin, Observable } from 'rxjs'; |
32 | -import { JsonObjectEditComponent } from '@app/shared/components/json-object-edit.component'; | 32 | +import { JsonObjectEditComponent } from '@shared/components/json-object-edit.component'; |
33 | import { Router } from '@angular/router'; | 33 | import { Router } from '@angular/router'; |
34 | -import { DialogComponent } from '@app/shared/components/dialog.component'; | 34 | +import { DialogComponent } from '@shared/components/dialog.component'; |
35 | 35 | ||
36 | export interface RelationDialogData { | 36 | export interface RelationDialogData { |
37 | isAdd: boolean; | 37 | isAdd: boolean; |
@@ -20,25 +20,10 @@ import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; | @@ -20,25 +20,10 @@ import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; | ||
20 | import { Store } from '@ngrx/store'; | 20 | import { Store } from '@ngrx/store'; |
21 | import { AppState } from '@core/core.state'; | 21 | import { AppState } from '@core/core.state'; |
22 | import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm, Validators } from '@angular/forms'; | 22 | import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm, Validators } from '@angular/forms'; |
23 | -import { | ||
24 | - CONTAINS_TYPE, | ||
25 | - EntityRelation, | ||
26 | - EntitySearchDirection, | ||
27 | - RelationTypeGroup | ||
28 | -} from '@shared/models/relation.models'; | ||
29 | -import { EntityRelationService } from '@core/http/entity-relation.service'; | ||
30 | -import { EntityId } from '@shared/models/id/entity-id'; | ||
31 | -import { forkJoin, Observable } from 'rxjs'; | ||
32 | -import { JsonObjectEditComponent } from '@app/shared/components/json-object-edit.component'; | ||
33 | import { Router } from '@angular/router'; | 23 | import { Router } from '@angular/router'; |
34 | -import { DialogComponent } from '@app/shared/components/dialog.component'; | ||
35 | -import { AttributeData, AttributeScope } from '@shared/models/telemetry/telemetry.models'; | ||
36 | -import { AttributeService } from '@core/http/attribute.service'; | ||
37 | -import { DataKey } from '@app/shared/models/widget.models'; | ||
38 | -import { EntityAlias } from '@shared/models/alias.models'; | ||
39 | -import { IAliasController } from '@core/api/widget-api.models'; | 24 | +import { DialogComponent } from '@shared/components/dialog.component'; |
25 | +import { DataKey } from '@shared/models/widget.models'; | ||
40 | import { DataKeysCallbacks } from './data-keys.component.models'; | 26 | import { DataKeysCallbacks } from './data-keys.component.models'; |
41 | -import { JsFuncComponent } from '@shared/components/js-func.component'; | ||
42 | import { DataKeyConfigComponent } from '@home/components/widget/data-key-config.component'; | 27 | import { DataKeyConfigComponent } from '@home/components/widget/data-key-config.component'; |
43 | 28 | ||
44 | export interface DataKeyConfigDialogData { | 29 | export interface DataKeyConfigDialogData { |
@@ -14,26 +14,14 @@ | @@ -14,26 +14,14 @@ | ||
14 | /// limitations under the License. | 14 | /// limitations under the License. |
15 | /// | 15 | /// |
16 | 16 | ||
17 | -import { Component, Inject, OnInit, SkipSelf, ViewChild } from '@angular/core'; | 17 | +import { Component, Inject, OnInit, SkipSelf } from '@angular/core'; |
18 | import { ErrorStateMatcher } from '@angular/material/core'; | 18 | import { ErrorStateMatcher } from '@angular/material/core'; |
19 | import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; | 19 | import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; |
20 | import { Store } from '@ngrx/store'; | 20 | import { Store } from '@ngrx/store'; |
21 | import { AppState } from '@core/core.state'; | 21 | import { AppState } from '@core/core.state'; |
22 | import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm, Validators } from '@angular/forms'; | 22 | import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm, Validators } from '@angular/forms'; |
23 | -import { | ||
24 | - CONTAINS_TYPE, | ||
25 | - EntityRelation, | ||
26 | - EntitySearchDirection, | ||
27 | - RelationTypeGroup | ||
28 | -} from '@shared/models/relation.models'; | ||
29 | -import { EntityRelationService } from '@core/http/entity-relation.service'; | ||
30 | -import { EntityId } from '@shared/models/id/entity-id'; | ||
31 | -import { forkJoin, Observable } from 'rxjs'; | ||
32 | -import { JsonObjectEditComponent } from '@app/shared/components/json-object-edit.component'; | ||
33 | import { Router } from '@angular/router'; | 23 | import { Router } from '@angular/router'; |
34 | -import { DialogComponent } from '@app/shared/components/dialog.component'; | ||
35 | -import { AttributeData, AttributeScope } from '@shared/models/telemetry/telemetry.models'; | ||
36 | -import { AttributeService } from '@core/http/attribute.service'; | 24 | +import { DialogComponent } from '@shared/components/dialog.component'; |
37 | 25 | ||
38 | export interface ColorPickerDialogData { | 26 | export interface ColorPickerDialogData { |
39 | color: string; | 27 | color: string; |
@@ -17,11 +17,13 @@ | @@ -17,11 +17,13 @@ | ||
17 | import { | 17 | import { |
18 | AfterViewInit, | 18 | AfterViewInit, |
19 | Component, | 19 | Component, |
20 | - ElementRef, HostBinding, | 20 | + ElementRef, |
21 | + HostBinding, | ||
21 | Inject, | 22 | Inject, |
22 | OnInit, | 23 | OnInit, |
23 | QueryList, | 24 | QueryList, |
24 | - SkipSelf, ViewChild, | 25 | + SkipSelf, |
26 | + ViewChild, | ||
25 | ViewChildren, | 27 | ViewChildren, |
26 | ViewEncapsulation | 28 | ViewEncapsulation |
27 | } from '@angular/core'; | 29 | } from '@angular/core'; |
@@ -30,15 +32,14 @@ import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; | @@ -30,15 +32,14 @@ import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; | ||
30 | import { Store } from '@ngrx/store'; | 32 | import { Store } from '@ngrx/store'; |
31 | import { AppState } from '@core/core.state'; | 33 | import { AppState } from '@core/core.state'; |
32 | import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm, Validators } from '@angular/forms'; | 34 | import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm, Validators } from '@angular/forms'; |
33 | -import { combineLatest, never, Observable, of, throwError, NEVER } from 'rxjs'; | 35 | +import { NEVER, Observable, of } from 'rxjs'; |
34 | import { Router } from '@angular/router'; | 36 | import { Router } from '@angular/router'; |
35 | -import { DialogComponent } from '@app/shared/components/dialog.component'; | 37 | +import { DialogComponent } from '@shared/components/dialog.component'; |
36 | import { ContentType } from '@shared/models/constants'; | 38 | import { ContentType } from '@shared/models/constants'; |
37 | -import { JsonObjectEditComponent } from '@shared/components/json-object-edit.component'; | ||
38 | import { JsonContentComponent } from '@shared/components/json-content.component'; | 39 | import { JsonContentComponent } from '@shared/components/json-content.component'; |
39 | import { TestScriptInputParams } from '@shared/models/rule-node.models'; | 40 | import { TestScriptInputParams } from '@shared/models/rule-node.models'; |
40 | import { RuleChainService } from '@core/http/rule-chain.service'; | 41 | import { RuleChainService } from '@core/http/rule-chain.service'; |
41 | -import { map, mergeMap } from 'rxjs/operators'; | 42 | +import { mergeMap } from 'rxjs/operators'; |
42 | import { ActionNotificationShow } from '@core/notification/notification.actions'; | 43 | import { ActionNotificationShow } from '@core/notification/notification.actions'; |
43 | 44 | ||
44 | export interface NodeScriptTestDialogData { | 45 | export interface NodeScriptTestDialogData { |