diff --git a/ui-ngx/src/app/modules/home/components/alias/aliases-entity-select-panel.component.html b/ui-ngx/src/app/modules/home/components/alias/aliases-entity-select-panel.component.html index af28ee7786..32de8f314c 100644 --- a/ui-ngx/src/app/modules/home/components/alias/aliases-entity-select-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/alias/aliases-entity-select-panel.component.html @@ -19,7 +19,7 @@
{{alias.value.alias}} - {{resolvedEntity.name}} diff --git a/ui-ngx/src/app/modules/home/components/alias/aliases-entity-select.component.html b/ui-ngx/src/app/modules/home/components/alias/aliases-entity-select.component.html index b3f2bbf393..703defd80d 100644 --- a/ui-ngx/src/app/modules/home/components/alias/aliases-entity-select.component.html +++ b/ui-ngx/src/app/modules/home/components/alias/aliases-entity-select.component.html @@ -16,14 +16,14 @@ -->
- - diff --git a/ui-ngx/src/app/modules/home/components/alias/entity-alias-dialog.component.html b/ui-ngx/src/app/modules/home/components/alias/entity-alias-dialog.component.html index 3ea70d7142..0731de4ce2 100644 --- a/ui-ngx/src/app/modules/home/components/alias/entity-alias-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/alias/entity-alias-dialog.component.html @@ -15,11 +15,11 @@ limitations under the License. --> -
+

{{ (isAdd ? 'alias.add' : 'alias.edit') | translate }}

-
-
- - diff --git a/ui-ngx/src/app/modules/home/components/alias/entity-alias-select.component.ts b/ui-ngx/src/app/modules/home/components/alias/entity-alias-select.component.ts index a1007cabd4..59b538dfae 100644 --- a/ui-ngx/src/app/modules/home/components/alias/entity-alias-select.component.ts +++ b/ui-ngx/src/app/modules/home/components/alias/entity-alias-select.component.ts @@ -21,24 +21,23 @@ import { FormControl, FormGroup, FormGroupDirective, - NG_VALUE_ACCESSOR, NgForm + NG_VALUE_ACCESSOR, + NgForm } from '@angular/forms'; import { Observable, of } from 'rxjs'; -import { map, mergeMap, startWith, tap, share, filter } from 'rxjs/operators'; -import {Store} from '@ngrx/store'; -import {AppState} from '@app/core/core.state'; -import {TranslateService} from '@ngx-translate/core'; -import {AliasEntityType, EntityType} from '@shared/models/entity-type.models'; -import {BaseData} from '@shared/models/base-data'; -import {EntityId} from '@shared/models/id/entity-id'; -import {EntityService} from '@core/http/entity.service'; -import {coerceBooleanProperty} from '@angular/cdk/coercion'; +import { map, mergeMap, share, tap } from 'rxjs/operators'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { EntityType } from '@shared/models/entity-type.models'; +import { EntityService } from '@core/http/entity.service'; +import { coerceBooleanProperty } from '@angular/cdk/coercion'; import { EntityAlias } from '@shared/models/alias.models'; import { IAliasController } from '@core/api/widget-api.models'; import { TruncatePipe } from '@shared/pipe/truncate.pipe'; -import { MatAutocomplete, MatAutocompleteSelectedEvent, MatAutocompleteTrigger } from '@angular/material/autocomplete'; +import { MatAutocomplete, MatAutocompleteTrigger } from '@angular/material/autocomplete'; import { EntityAliasSelectCallbacks } from './entity-alias-select.component.models'; -import {ENTER} from '@angular/cdk/keycodes'; +import { ENTER } from '@angular/cdk/keycodes'; import { ErrorStateMatcher } from '@angular/material/core'; @Component({ diff --git a/ui-ngx/src/app/modules/home/components/alias/entity-aliases-dialog.component.html b/ui-ngx/src/app/modules/home/components/alias/entity-aliases-dialog.component.html index 8950c3c6e0..c0f22872eb 100644 --- a/ui-ngx/src/app/modules/home/components/alias/entity-aliases-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/alias/entity-aliases-dialog.component.html @@ -16,10 +16,10 @@ --> - +

{{ title | translate }}

-
-
-
diff --git a/ui-ngx/src/app/modules/home/components/alias/entity-aliases-dialog.component.scss b/ui-ngx/src/app/modules/home/components/alias/entity-aliases-dialog.component.scss index d247d7e8f0..655af02692 100644 --- a/ui-ngx/src/app/modules/home/components/alias/entity-aliases-dialog.component.scss +++ b/ui-ngx/src/app/modules/home/components/alias/entity-aliases-dialog.component.scss @@ -17,7 +17,7 @@ .tb-aliases-header { min-height: 40px; - padding: 0 34px 0 34px; + padding: 0 11px; margin: 5px; .tb-header-label { @@ -26,6 +26,10 @@ } } + mat-divider{ + margin: -1px -24px; + } + .tb-alias { padding: 0 0 0 10px; margin: 5px; diff --git a/ui-ngx/src/app/modules/home/components/alias/entity-aliases-dialog.component.ts b/ui-ngx/src/app/modules/home/components/alias/entity-aliases-dialog.component.ts index 90bd2677c3..74154b5cee 100644 --- a/ui-ngx/src/app/modules/home/components/alias/entity-aliases-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/alias/entity-aliases-dialog.component.ts @@ -16,7 +16,7 @@ import { Component, Inject, OnInit, SkipSelf } from '@angular/core'; import { ErrorStateMatcher } from '@angular/material/core'; -import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; +import { MAT_DIALOG_DATA, MatDialog, MatDialogRef } from '@angular/material/dialog'; import { Store } from '@ngrx/store'; import { AppState } from '@core/core.state'; import { @@ -26,11 +26,11 @@ import { FormControl, FormGroup, FormGroupDirective, - NgForm, Validators + NgForm, + Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { DialogComponent } from '@app/shared/components/dialog.component'; -import { AttributeData } from '@shared/models/telemetry/telemetry.models'; import { EntityAlias, EntityAliases, EntityAliasFilter } from '@shared/models/alias.models'; import { DatasourceType, Widget, widgetType } from '@shared/models/widget.models'; import { AliasEntityType, EntityType } from '@shared/models/entity-type.models'; @@ -39,7 +39,6 @@ import { TranslateService } from '@ngx-translate/core'; import { ActionNotificationShow } from '@core/notification/notification.actions'; import { DialogService } from '@core/services/dialog.service'; import { deepClone, isUndefined } from '@core/utils'; -import { MatDialog } from '@angular/material/dialog'; import { EntityAliasDialogComponent, EntityAliasDialogData } from './entity-alias-dialog.component'; export interface EntityAliasesDialogData { diff --git a/ui-ngx/src/app/modules/home/components/attribute/add-attribute-dialog.component.html b/ui-ngx/src/app/modules/home/components/attribute/add-attribute-dialog.component.html index 91e70692c2..072858455c 100644 --- a/ui-ngx/src/app/modules/home/components/attribute/add-attribute-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/attribute/add-attribute-dialog.component.html @@ -16,7 +16,7 @@ --> - +

{{ 'attribute.add' | translate }}

- diff --git a/ui-ngx/src/app/modules/home/components/dashboard/select-target-state-dialog.component.html b/ui-ngx/src/app/modules/home/components/dashboard/select-target-state-dialog.component.html index 3625934a31..16d82ab9b2 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard/select-target-state-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/dashboard/select-target-state-dialog.component.html @@ -16,10 +16,10 @@ --> - +

dashboard.select-state

- diff --git a/ui-ngx/src/app/modules/home/components/dashboard/select-target-state-dialog.component.ts b/ui-ngx/src/app/modules/home/components/dashboard/select-target-state-dialog.component.ts index c75241537b..d64894adf1 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard/select-target-state-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/dashboard/select-target-state-dialog.component.ts @@ -22,11 +22,8 @@ import { AppState } from '@core/core.state'; import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { DialogComponent } from '@app/shared/components/dialog.component'; -import { UtilsService } from '@core/services/utils.service'; -import { TranslateService } from '@ngx-translate/core'; import { DashboardState } from '@app/shared/models/dashboard.models'; import { DashboardUtilsService } from '@core/services/dashboard-utils.service'; -import { DashboardService } from '@core/http/dashboard.service'; export interface SelectTargetStateDialogData { states: {[id: string]: DashboardState }; diff --git a/ui-ngx/src/app/modules/home/components/details-panel.component.html b/ui-ngx/src/app/modules/home/components/details-panel.component.html index 743e71c4d0..9234812359 100644 --- a/ui-ngx/src/app/modules/home/components/details-panel.component.html +++ b/ui-ngx/src/app/modules/home/components/details-panel.component.html @@ -17,7 +17,7 @@ -->
-
+
{{ headerTitle }} {{ headerSubtitle }} diff --git a/ui-ngx/src/app/modules/home/components/details-panel.component.scss b/ui-ngx/src/app/modules/home/components/details-panel.component.scss index af142b293c..bdefe6df37 100644 --- a/ui-ngx/src/app/modules/home/components/details-panel.component.scss +++ b/ui-ngx/src/app/modules/home/components/details-panel.component.scss @@ -45,7 +45,7 @@ white-space: nowrap; @media #{$mat-gt-sm} { - font-size: 1.6rem; + font-size: 1.5rem; } } diff --git a/ui-ngx/src/app/modules/home/components/entity/entity-filter-view.component.ts b/ui-ngx/src/app/modules/home/components/entity/entity-filter-view.component.ts index 9657ee4b6c..afde26d619 100644 --- a/ui-ngx/src/app/modules/home/components/entity/entity-filter-view.component.ts +++ b/ui-ngx/src/app/modules/home/components/entity/entity-filter-view.component.ts @@ -102,14 +102,14 @@ export class EntityFilterViewComponent implements ControlValueAccessor { } break; case AliasFilterType.entityViewType: - const entityViewType = this.filter.entityViewType; + const entityView = this.filter.entityViewType; prefix = this.filter.entityViewNameFilter; if (prefix && prefix.length) { this.filterDisplayValue = this.translate.instant('alias.filter-type-entity-view-type-and-name-description', - {entityViewType, prefix}); + {entityView, prefix}); } else { this.filterDisplayValue = this.translate.instant('alias.filter-type-entity-view-type-description', - {entityViewType}); + {entityView}); } break; case AliasFilterType.relationsQuery: diff --git a/ui-ngx/src/app/modules/home/components/entity/entity-filter.component.html b/ui-ngx/src/app/modules/home/components/entity/entity-filter.component.html index 613104950c..2c1eda6204 100644 --- a/ui-ngx/src/app/modules/home/components/entity/entity-filter.component.html +++ b/ui-ngx/src/app/modules/home/components/entity/entity-filter.component.html @@ -141,10 +141,10 @@
-
+
relation.direction - + {{ directionTypeTranslations.get(directionTypeEnum[type]) | translate }} @@ -172,7 +172,7 @@ entityFilterFormGroup.get('type').value === aliasFilterType.entityViewSearchQuery ? entityFilterFormGroup.get('type').value : ''"> -
+
@@ -200,17 +200,17 @@
-
+
-
+
relation.direction - + {{ directionTypeTranslations.get(directionTypeEnum[type]) | translate }} diff --git a/ui-ngx/src/app/modules/home/components/relation/relation-filters.component.html b/ui-ngx/src/app/modules/home/components/relation/relation-filters.component.html index c34fc34c6d..e3222cb4f3 100644 --- a/ui-ngx/src/app/modules/home/components/relation/relation-filters.component.html +++ b/ui-ngx/src/app/modules/home/components/relation/relation-filters.component.html @@ -16,35 +16,37 @@ -->
-
-
- relation.type - entity.entity-types -   +
+
+
+ relation.type + entity.entity-types +   +
-
-
-
-
- - - - - +
+
+
+ + + + + +
@@ -53,7 +55,7 @@ class="tb-prompt" translate>relation.any-relation
- -
- {{ 'widget-config.action-source' | translate }} @@ -90,14 +90,14 @@
- - @@ -145,15 +145,13 @@
-
- -
-
- - @@ -40,7 +39,7 @@ -
+
datakey.label @@ -53,7 +52,7 @@ formControlName="color">
-
+
datakey.units @@ -94,12 +93,10 @@
-
-
- - -
+
+ +
diff --git a/ui-ngx/src/app/modules/home/components/widget/data-key-config.component.scss b/ui-ngx/src/app/modules/home/components/widget/data-key-config.component.scss index 093be91e88..e41ad6dd5e 100644 --- a/ui-ngx/src/app/modules/home/components/widget/data-key-config.component.scss +++ b/ui-ngx/src/app/modules/home/components/widget/data-key-config.component.scss @@ -13,11 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +@import '../../../../../scss/constants'; + :host { .tb-datakey-config { - min-width: 500px !important; - min-height: 500px !important; - height: 500px !important; + height: 100%; + + .settings{ + &> :first-child{ + padding-top: 12px; + } + &> :nth-child(n){ + padding-right: 12px; + padding-left: 12px; + } + } } } @@ -25,7 +35,11 @@ .tb-datakey-config { .mat-tab-body.mat-tab-body-active { .mat-tab-body-content > div { - height: 100%; + height: calc(65vh - 50px); + overflow: initial; + @media #{$mat-xs} { + height: 500px; + } } } } diff --git a/ui-ngx/src/app/modules/home/components/widget/data-keys.component.scss b/ui-ngx/src/app/modules/home/components/widget/data-keys.component.scss index f5479e6f42..afd505b54e 100644 --- a/ui-ngx/src/app/modules/home/components/widget/data-keys.component.scss +++ b/ui-ngx/src/app/modules/home/components/widget/data-keys.component.scss @@ -15,6 +15,8 @@ */ :host { .mat-chip.mat-standard-chip { + overflow: hidden; + .tb-attribute-chip { max-width: 100%; color: rgb(66, 66, 66); @@ -32,7 +34,8 @@ .tb-chip-labels { display: flex; flex-direction: row; - min-width: 0px; + align-items: flex-end; + min-width: 0; .tb-chip-label { overflow: hidden; text-overflow: ellipsis; diff --git a/ui-ngx/src/app/modules/home/components/widget/dialog/custom-dialog-container.component.ts b/ui-ngx/src/app/modules/home/components/widget/dialog/custom-dialog-container.component.ts index 2f29364df5..3c2ac8d9f1 100644 --- a/ui-ngx/src/app/modules/home/components/widget/dialog/custom-dialog-container.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/dialog/custom-dialog-container.component.ts @@ -16,23 +16,21 @@ import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { - Inject, - ComponentRef, - ElementRef, - ViewContainerRef, + Component, ComponentFactory, + ComponentRef, + Inject, Injector, - ReflectiveInjector, - Component, - OnDestroy + OnDestroy, + ViewContainerRef } from '@angular/core'; import { DialogComponent } from '@shared/components/dialog.component'; import { Store } from '@ngrx/store'; import { AppState } from '@core/core.state'; import { Router } from '@angular/router'; import { - CustomDialogComponent, CUSTOM_DIALOG_DATA, + CustomDialogComponent, CustomDialogData } from '@home/components/widget/dialog/custom-dialog.component'; diff --git a/ui-ngx/src/app/modules/home/components/widget/dialog/custom-dialog.component.ts b/ui-ngx/src/app/modules/home/components/widget/dialog/custom-dialog.component.ts index 6b7c7ceef9..2e609eb617 100644 --- a/ui-ngx/src/app/modules/home/components/widget/dialog/custom-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/dialog/custom-dialog.component.ts @@ -14,9 +14,8 @@ /// limitations under the License. /// -import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; +import { MatDialogRef } from '@angular/material/dialog'; import { Inject, InjectionToken } from '@angular/core'; -import { DialogComponent } from '@shared/components/dialog.component'; import { Store } from '@ngrx/store'; import { AppState } from '@core/core.state'; import { Router } from '@angular/router'; diff --git a/ui-ngx/src/app/modules/home/components/widget/dynamic-widget.component.ts b/ui-ngx/src/app/modules/home/components/widget/dynamic-widget.component.ts index 855f4314b6..bf337967b9 100644 --- a/ui-ngx/src/app/modules/home/components/widget/dynamic-widget.component.ts +++ b/ui-ngx/src/app/modules/home/components/widget/dynamic-widget.component.ts @@ -21,7 +21,6 @@ import { AppState } from '@core/core.state'; import { IDynamicWidgetComponent, WidgetContext } from '@home/models/widget-component.models'; import { HttpErrorResponse } from '@angular/common/http'; import { RafService } from '@core/services/raf.service'; -import { ActionNotificationShow } from '@core/notification/notification.actions'; import { NotificationHorizontalPosition, NotificationType, diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/alarms-table-widget.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/alarms-table-widget.component.html index 15a2d16c4d..3f845f87b2 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/alarms-table-widget.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/alarms-table-widget.component.html @@ -61,7 +61,7 @@
- @@ -124,7 +124,7 @@ 'tb-current-entity': alarmsDatasource.isCurrentAlarm(alarm)}" *matRowDef="let alarm; columns: displayedColumns;" (click)="onRowClick($event, alarm)"> - + alarm.no-alarms-prompt diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/entities-table-widget.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/entities-table-widget.component.html index 75515eeeea..edd351b5e1 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/entities-table-widget.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/entities-table-widget.component.html @@ -38,7 +38,7 @@
- {{ column.title }} @@ -85,7 +85,7 @@ - + entity.no-entities-prompt diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/timeseries-table-widget.component.html b/ui-ngx/src/app/modules/home/components/widget/lib/timeseries-table-widget.component.html index 01bd46cad2..19dc7fb0ac 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/timeseries-table-widget.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/lib/timeseries-table-widget.component.html @@ -41,7 +41,7 @@ [(selectedIndex)]="sourceIndex" (selectedIndexChange)="onSourceIndexChanged()">
- Timestamp @@ -94,7 +94,7 @@ - + widget.no-data-found diff --git a/ui-ngx/src/app/modules/home/components/widget/widget-config.component.html b/ui-ngx/src/app/modules/home/components/widget/widget-config.component.html index bedfa953a3..e8a36129cb 100644 --- a/ui-ngx/src/app/modules/home/components/widget/widget-config.component.html +++ b/ui-ngx/src/app/modules/home/components/widget/widget-config.component.html @@ -16,12 +16,12 @@ --> + class="tb-widget-config tb-absolute-fill" [(selectedIndex)]="selectedTab">
-
-
+
+
{{ 'widget-config.use-dashboard-timewindow' | translate }} @@ -29,8 +29,10 @@ {{ 'widget-config.display-timewindow' | translate }}
-
- widget-config.timewindow +
+ widget-config.timewindow
-
+
alarm.alarm-status - + {{ ('alarm.search-status.' + searchStatus) | translate }} @@ -61,7 +64,8 @@
-
+
alarm.max-count-load
widget-config.datasources
{{ 'widget-config.maximum-datasources' | translate:{count: modelValue?.typeParameters.maxDatasources} }}
+ class="tb-panel-hint">{{ 'widget-config.maximum-datasources' | translate:{count: modelValue?.typeParameters.maxDatasources} }}
@@ -133,7 +137,7 @@ fxLayout.gt-sm="row" fxLayoutAlign.gt-sm="start center"> - + {{ datasourceTypesTranslations.get(datasourceType) | translate }} @@ -172,7 +176,7 @@
-
+
widget-config.general-settings -
- - widget-config.title - - +
+
+ + widget-config.title + + + + widget-config.title-tooltip + + +
-
-
- +
+ {{ 'widget-config.display-icon' | translate }} -
-
-
- - - - widget-config.icon-size - - - - widget-config.title-tooltip - - +
+ + + + widget-config.icon-size + + +
-
-
+
{{ 'widget-config.display-title' | translate }} -
-
{{ 'widget-config.drop-shadow' | translate }} -
-
{{ 'widget-config.enable-fullscreen' | translate }} @@ -339,30 +342,36 @@ >
-
- - - - - - widget-config.padding - - - - widget-config.margin - - +
+
+ + + + +
+
+ + widget-config.padding + + + + widget-config.margin + + +
-
widget-config.units @@ -373,14 +382,13 @@
-
- +
+ {{ 'widget-config.display-legend' | translate }} -
+
@@ -388,7 +396,7 @@
widget-config.mobile-mode-settings -
widget-config.order diff --git a/ui-ngx/src/app/modules/home/components/widget/widget-config.component.scss b/ui-ngx/src/app/modules/home/components/widget/widget-config.component.scss index 62357b19ce..b3a4fed7b8 100644 --- a/ui-ngx/src/app/modules/home/components/widget/widget-config.component.scss +++ b/ui-ngx/src/app/modules/home/components/widget/widget-config.component.scss @@ -57,14 +57,26 @@ right: 0; bottom: 0; } - .mat-tab-body.mat-tab-body-active { - .mat-tab-body-content > div { - height: 100%; - } + .tb-panel-hint { + font-size: 12px; + color: #808080; + } + //.mat-tab-body.mat-tab-body-active { + // .mat-tab-body-content > div { + // height: 100%; + // } + //} + .mat-checkbox-label { + white-space: normal; } .mat-expansion-panel { - &.tb-datasources.mat-expanded { - overflow: visible; + &.tb-datasources{ + &.mat-expanded { + overflow: visible; + } + .mat-expansion-panel-body{ + padding: 0 12px 16px; + } } .mat-expansion-panel-content { font: inherit; diff --git a/ui-ngx/src/app/modules/home/pages/dashboard/add-widget-dialog.component.html b/ui-ngx/src/app/modules/home/pages/dashboard/add-widget-dialog.component.html index 66044407cf..1b148c64ea 100644 --- a/ui-ngx/src/app/modules/home/pages/dashboard/add-widget-dialog.component.html +++ b/ui-ngx/src/app/modules/home/pages/dashboard/add-widget-dialog.component.html @@ -16,11 +16,11 @@ --> - +

widget.add

-
-
- -
diff --git a/ui-ngx/src/app/modules/home/pages/dashboard/add-widget-dialog.component.ts b/ui-ngx/src/app/modules/home/pages/dashboard/add-widget-dialog.component.ts index 03f8c489f7..fb0319a359 100644 --- a/ui-ngx/src/app/modules/home/pages/dashboard/add-widget-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/pages/dashboard/add-widget-dialog.component.ts @@ -23,9 +23,6 @@ import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from import { Router } from '@angular/router'; import { DialogComponent } from '@app/shared/components/dialog.component'; import { Widget, widgetTypesData } from '@shared/models/widget.models'; -import { UtilsService } from '@core/services/utils.service'; -import { TranslateService } from '@ngx-translate/core'; -import { EntityService } from '@core/http/entity.service'; import { Dashboard } from '@app/shared/models/dashboard.models'; import { IAliasController } from '@core/api/widget-api.models'; import { WidgetConfigComponentData, WidgetInfo } from '@home/models/widget-component.models'; @@ -60,10 +57,7 @@ export class AddWidgetDialogComponent extends DialogComponent, - private fb: FormBuilder, - private utils: UtilsService, - private translate: TranslateService, - private entityService: EntityService) { + private fb: FormBuilder) { super(store, router, dialogRef); this.dashboard = this.data.dashboard; diff --git a/ui-ngx/src/app/modules/home/pages/dashboard/dashboard-page.component.html b/ui-ngx/src/app/modules/home/pages/dashboard/dashboard-page.component.html index 20cfb91df2..8c85c92606 100644 --- a/ui-ngx/src/app/modules/home/pages/dashboard/dashboard-page.component.html +++ b/ui-ngx/src/app/modules/home/pages/dashboard/dashboard-page.component.html @@ -27,27 +27,27 @@ fxLayoutAlign="center stretch" fxLayoutAlign.gt-sm="space-between center">
- - + - - - - -
- - +

{{settings ? 'dashboard.settings' : 'layout.settings'}}

- -
-
- - -
diff --git a/ui-ngx/src/app/modules/home/pages/dashboard/layout/manage-dashboard-layouts-dialog.component.ts b/ui-ngx/src/app/modules/home/pages/dashboard/layout/manage-dashboard-layouts-dialog.component.ts index 6f77640f05..3e6e40ffaa 100644 --- a/ui-ngx/src/app/modules/home/pages/dashboard/layout/manage-dashboard-layouts-dialog.component.ts +++ b/ui-ngx/src/app/modules/home/pages/dashboard/layout/manage-dashboard-layouts-dialog.component.ts @@ -16,22 +16,17 @@ import { Component, Inject, OnInit, SkipSelf } from '@angular/core'; import { ErrorStateMatcher } from '@angular/material/core'; -import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; +import { MAT_DIALOG_DATA, MatDialog, MatDialogRef } from '@angular/material/dialog'; import { Store } from '@ngrx/store'; import { AppState } from '@core/core.state'; import { FormBuilder, FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms'; import { Router } from '@angular/router'; import { DialogComponent } from '@app/shared/components/dialog.component'; -import { Widget, widgetTypesData } from '@shared/models/widget.models'; import { UtilsService } from '@core/services/utils.service'; import { TranslateService } from '@ngx-translate/core'; -import { EntityService } from '@core/http/entity.service'; -import { Dashboard, DashboardLayoutId, DashboardStateLayouts } from '@app/shared/models/dashboard.models'; -import { IAliasController } from '@core/api/widget-api.models'; -import { WidgetConfigComponentData, WidgetInfo } from '@home/models/widget-component.models'; -import { deepClone, isDefined, isString } from '@core/utils'; +import { DashboardLayoutId, DashboardStateLayouts } from '@app/shared/models/dashboard.models'; +import { deepClone, isDefined } from '@core/utils'; import { DashboardUtilsService } from '@core/services/dashboard-utils.service'; -import { MatDialog } from '@angular/material/dialog'; import { DashboardSettingsDialogComponent, DashboardSettingsDialogData diff --git a/ui-ngx/src/app/modules/home/pages/dashboard/states/dashboard-state-dialog.component.html b/ui-ngx/src/app/modules/home/pages/dashboard/states/dashboard-state-dialog.component.html index 2867f3eca0..4f6a9c9ade 100644 --- a/ui-ngx/src/app/modules/home/pages/dashboard/states/dashboard-state-dialog.component.html +++ b/ui-ngx/src/app/modules/home/pages/dashboard/states/dashboard-state-dialog.component.html @@ -15,8 +15,8 @@ limitations under the License. --> - - + +

{{ isAdd ? 'dashboard.add-state' : 'dashboard.edit-state' }}

-
- - -
- - {{ 'dashboard.state-name' | translate }} + {{ 'dashboard.state-name' | translate }} {{ state.name }} - {{ 'dashboard.state-id' | translate }} + {{ 'dashboard.state-id' | translate }} {{ state.id }} @@ -100,14 +100,14 @@
- -
-
- - - - - - @@ -123,7 +123,7 @@ (ngModelChange)="isDirty = true" placeholder="{{ 'widget.resource-url' | translate }}"/> -
- - - - - diff --git a/ui-ngx/src/app/shared/components/relation/relation-type-autocomplete.component.ts b/ui-ngx/src/app/shared/components/relation/relation-type-autocomplete.component.ts index 67017a73be..13026b2084 100644 --- a/ui-ngx/src/app/shared/components/relation/relation-type-autocomplete.component.ts +++ b/ui-ngx/src/app/shared/components/relation/relation-type-autocomplete.component.ts @@ -14,27 +14,15 @@ /// limitations under the License. /// -import {AfterViewInit, Component, ElementRef, forwardRef, Input, OnInit, ViewChild, OnDestroy} from '@angular/core'; +import { AfterViewInit, Component, ElementRef, forwardRef, Input, OnDestroy, OnInit, ViewChild } from '@angular/core'; import { ControlValueAccessor, FormBuilder, FormGroup, NG_VALUE_ACCESSOR, Validators } from '@angular/forms'; -import {Observable, of, throwError, Subscription} from 'rxjs'; -import {PageLink} from '@shared/models/page/page-link'; -import {Direction} from '@shared/models/page/sort-order'; -import {filter, map, mergeMap, publishReplay, refCount, startWith, tap, publish} from 'rxjs/operators'; -import {PageData, emptyPageData} from '@shared/models/page/page-data'; -import {DashboardInfo} from '@app/shared/models/dashboard.models'; -import {DashboardId} from '@app/shared/models/id/dashboard-id'; -import {DashboardService} from '@core/http/dashboard.service'; -import {Store} from '@ngrx/store'; -import {AppState} from '@app/core/core.state'; -import {getCurrentAuthUser} from '@app/core/auth/auth.selectors'; -import {Authority} from '@shared/models/authority.enum'; -import {TranslateService} from '@ngx-translate/core'; -import {DeviceService} from '@core/http/device.service'; -import {EntitySubtype, EntityType} from '@app/shared/models/entity-type.models'; -import {BroadcastService} from '@app/core/services/broadcast.service'; -import {coerceBooleanProperty} from '@angular/cdk/coercion'; -import {AssetService} from '@core/http/asset.service'; -import {EntityViewService} from '@core/http/entity-view.service'; +import { Observable, of } from 'rxjs'; +import { map, mergeMap, tap } from 'rxjs/operators'; +import { Store } from '@ngrx/store'; +import { AppState } from '@app/core/core.state'; +import { TranslateService } from '@ngx-translate/core'; +import { BroadcastService } from '@app/core/services/broadcast.service'; +import { coerceBooleanProperty } from '@angular/cdk/coercion'; import { RelationTypes } from '@app/shared/models/relation.models'; @Component({ diff --git a/ui-ngx/src/styles.scss b/ui-ngx/src/styles.scss index bbe2248bb0..61e9326286 100644 --- a/ui-ngx/src/styles.scss +++ b/ui-ngx/src/styles.scss @@ -863,6 +863,7 @@ mat-label { .mat-dialog-container { > *:first-child, form { min-width: 100% !important; + height: 100vh; } .mat-dialog-content { max-height: 100%;