|
|
|
@ -17,12 +17,12 @@ |
|
|
|
--> |
|
|
|
<mat-expansion-panel [formGroup]="serverFormGroup" #serverPanel> |
|
|
|
<mat-expansion-panel-header> |
|
|
|
<div fxFlex fxLayout="row" fxLayoutAlign="start center"> |
|
|
|
<div class="flex-1 flex flex-row justify-start items-center"> |
|
|
|
<mat-panel-title> |
|
|
|
<div fxLayout="row" fxFlex fxLayoutAlign="start center"> |
|
|
|
<div class="flex-1 flex flex-row justify-start items-center"> |
|
|
|
<div style="min-width:150px">{{ (serverFormGroup.get('bootstrapServerIs').value ? |
|
|
|
'device-profile.lwm2m.bootstrap-server' : 'device-profile.lwm2m.lwm2m-server') | translate }}</div> |
|
|
|
<div *ngIf="!serverPanel.expanded" fxLayout="row" style="font-size:14px" class="no-wrap"> |
|
|
|
<div *ngIf="!serverPanel.expanded" style="font-size:14px" class="no-wrap flex flex-row"> |
|
|
|
<div style="margin-left:32px">{{ ('device-profile.lwm2m.short-id' | translate) + ': ' }} |
|
|
|
<span style="font-style: italic">{{ serverFormGroup.get('shortServerId').value }}</span> |
|
|
|
</div> |
|
|
|
@ -32,7 +32,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</mat-panel-title> |
|
|
|
<span fxFlex="100"></span> |
|
|
|
<span class="flex-full"></span> |
|
|
|
<button *ngIf="!disabled" mat-icon-button style="min-width: 40px;" |
|
|
|
type="button" |
|
|
|
(click)="removeServer.emit($event)" |
|
|
|
@ -44,8 +44,8 @@ |
|
|
|
</mat-expansion-panel-header> |
|
|
|
<ng-template matExpansionPanelContent> |
|
|
|
<section> |
|
|
|
<div fxLayout="row" fxLayout.xs="column" fxLayoutGap="8px" fxLayoutGap.xs="0px"> |
|
|
|
<mat-form-field fxFlex> |
|
|
|
<div class="flex flex-row xs:flex-col gap-2 xs:gap-0"> |
|
|
|
<mat-form-field class="flex-1"> |
|
|
|
<mat-label>{{ 'device-profile.lwm2m.mode' | translate }}</mat-label> |
|
|
|
<mat-select formControlName="securityMode"> |
|
|
|
<mat-option *ngFor="let securityMode of securityConfigLwM2MTypes" |
|
|
|
@ -54,7 +54,7 @@ |
|
|
|
</mat-option> |
|
|
|
</mat-select> |
|
|
|
</mat-form-field> |
|
|
|
<mat-form-field fxFlex> |
|
|
|
<mat-form-field class="flex-1"> |
|
|
|
<mat-label>{{ 'device-profile.lwm2m.short-id' | translate }}</mat-label> |
|
|
|
<mat-icon *ngIf="!disabled" class="mat-primary" aria-hidden="false" aria-label="help-icon" matSuffix style="cursor:pointer;" |
|
|
|
matTooltip="{{ (isBootstrap ? 'device-profile.lwm2m.short-id-tooltip-bootstrap': 'device-profile.lwm2m.short-id-tooltip') | translate }}">help</mat-icon> |
|
|
|
@ -71,15 +71,15 @@ |
|
|
|
</mat-error> |
|
|
|
</mat-form-field> |
|
|
|
</div> |
|
|
|
<div fxLayout="row" fxLayout.xs="column" fxLayoutGap="8px" fxLayoutGap.xs="0px"> |
|
|
|
<mat-form-field fxFlex> |
|
|
|
<div class="flex flex-row xs:flex-col gap-2 xs:gap-0"> |
|
|
|
<mat-form-field class="flex-1"> |
|
|
|
<mat-label>{{ 'device-profile.lwm2m.server-host' | translate }}</mat-label> |
|
|
|
<input matInput type="text" formControlName="host" required> |
|
|
|
<mat-error *ngIf="serverFormGroup.get('host').hasError('required')"> |
|
|
|
{{ 'device-profile.lwm2m.server-host-required' | translate }} |
|
|
|
</mat-error> |
|
|
|
</mat-form-field> |
|
|
|
<mat-form-field fxFlex> |
|
|
|
<mat-form-field class="flex-1"> |
|
|
|
<mat-label>{{ 'device-profile.lwm2m.server-port' | translate }}</mat-label> |
|
|
|
<input matInput type="number" formControlName="port" required min="0" max="65535" readonly> |
|
|
|
<mat-error *ngIf="serverFormGroup.get('port').hasError('required')"> |
|
|
|
@ -94,8 +94,8 @@ |
|
|
|
</mat-error> |
|
|
|
</mat-form-field> |
|
|
|
</div> |
|
|
|
<div fxLayout="row" fxLayout.xs="column" fxLayoutGap="8px" fxLayoutGap.xs="0px"> |
|
|
|
<mat-form-field fxFlex> |
|
|
|
<div class="flex flex-row xs:flex-col gap-2 xs:gap-0"> |
|
|
|
<mat-form-field class="flex-1"> |
|
|
|
<mat-label>{{ 'device-profile.lwm2m.client-hold-off-time' | translate }}</mat-label> |
|
|
|
<mat-icon *ngIf="!disabled" class="mat-primary" aria-hidden="false" aria-label="help-icon" matSuffix style="cursor:pointer;" |
|
|
|
matTooltip="{{'device-profile.lwm2m.client-hold-off-time-tooltip' | translate }}">help</mat-icon> |
|
|
|
@ -108,7 +108,7 @@ |
|
|
|
{{ 'device-profile.lwm2m.client-hold-off-time-pattern' | translate }} |
|
|
|
</mat-error> |
|
|
|
</mat-form-field> |
|
|
|
<mat-form-field fxFlex> |
|
|
|
<mat-form-field class="flex-1"> |
|
|
|
<mat-label>{{ 'device-profile.lwm2m.account-after-timeout' | translate }}</mat-label> |
|
|
|
<mat-icon *ngIf="!disabled" class="mat-primary" aria-hidden="false" aria-label="help-icon" matSuffix style="cursor:pointer;" |
|
|
|
matTooltip="{{'device-profile.lwm2m.account-after-timeout-tooltip' | translate }}">help</mat-icon> |
|
|
|
@ -140,8 +140,8 @@ |
|
|
|
</mat-error> |
|
|
|
</mat-form-field> |
|
|
|
</div> |
|
|
|
<div fxLayout="row" fxLayout.xs="column" fxLayoutGap="8px" fxLayoutGap.xs="0px"> |
|
|
|
<mat-form-field fxFlex> |
|
|
|
<div class="flex flex-row xs:flex-col gap-2 xs:gap-0"> |
|
|
|
<mat-form-field class="flex-1"> |
|
|
|
<mat-label>{{ 'device-profile.lwm2m.lifetime' | translate }}</mat-label> |
|
|
|
<input matInput type="number" min="0" formControlName="lifetime" required> |
|
|
|
<mat-error *ngIf="serverFormGroup.get('lifetime').hasError('required')"> |
|
|
|
@ -152,7 +152,7 @@ |
|
|
|
{{ 'device-profile.lwm2m.lifetime-pattern' | translate }} |
|
|
|
</mat-error> |
|
|
|
</mat-form-field> |
|
|
|
<mat-form-field fxFlex> |
|
|
|
<mat-form-field class="flex-1"> |
|
|
|
<mat-label>{{ 'device-profile.lwm2m.default-min-period' | translate }}</mat-label> |
|
|
|
<mat-icon *ngIf="!disabled" class="mat-primary" aria-hidden="false" aria-label="help-icon" matSuffix style="cursor:pointer;" |
|
|
|
matTooltip="{{'device-profile.lwm2m.default-min-period-tooltip' | translate }}">help</mat-icon> |
|
|
|
|