Skip to content

Commit 2a428d1

Browse files
IOT:1525: Angular changes primarily styling.
1 parent 9150f67 commit 2a428d1

File tree

29 files changed

+112
-47
lines changed

29 files changed

+112
-47
lines changed

src/app/admin/permission/permission-edit/permission-edit.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
</div>
5959

6060
<div class="form-group mt-3 col-12">
61-
<mat-form-field>
61+
<mat-form-field class="col-12">
6262
<label class="form-label" for="user">{{ "PERMISSION.EDIT.USERS" | translate }}</label>
6363
<mat-select
6464
[formControl]="userMultiCtrl"
@@ -103,7 +103,7 @@
103103
</div>
104104

105105
<div class="form-group mt-3 col-12" *ngIf="isOrganizationApplicationPermission()">
106-
<mat-form-field>
106+
<mat-form-field class="col-12">
107107
<label class="form-label" for="name">{{ "PERMISSION.EDIT.APPS" | translate }}</label>
108108
<div class="col-12">
109109
<mat-select
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Manipulate initial background color
2+
::ng-deep .mdc-text-field--filled:not(.mdc-text-field--disabled) {
3+
background-color: white !important;
4+
}
5+
6+
// Manipulate background color on hover and focus
7+
::ng-deep .mat-mdc-form-field-focus-overlay {
8+
background-color: transparent !important;
9+
}
10+
11+
::ng-deep .mdc-text-field--no-label{
12+
padding-left: 0 !important;
13+
}
14+

src/app/admin/users/user-list/user-list.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="container-fluid">
88
<div class="row">
99
<div class="col-12">
10-
<nav mat-tab-nav-bar>
10+
<nav mat-tab-nav-bar [tabPanel]="tabPanel">
1111
<a
1212
mat-tab-link
1313
*ngFor="let link of navTabs"
@@ -18,6 +18,7 @@
1818
>{{ link.label | translate }}</a
1919
>
2020
</nav>
21+
<mat-tab-nav-panel #tabPanel></mat-tab-nav-panel>
2122
<router-outlet></router-outlet>
2223
</div>
2324
</div>

src/app/applications/application-detail/application-detail.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ <h3>{{ "APPLICATION.DETAILS" | translate }}</h3>
6565
</div>
6666
</div>
6767
</div>
68-
<nav mat-tab-nav-bar>
68+
<nav mat-tab-nav-bar [tabPanel]="tabPanel">
6969
<a
7070
mat-tab-link
7171
*ngFor="let link of navTabs"
@@ -76,6 +76,7 @@ <h3>{{ "APPLICATION.DETAILS" | translate }}</h3>
7676
>{{ link.label | translate }}</a
7777
>
7878
</nav>
79+
<mat-tab-nav-panel #tabPanel></mat-tab-nav-panel>
7980
<router-outlet></router-outlet>
8081
</div>
8182
</div>

src/app/applications/datatarget/datatarget-new/datatarget-new.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
{{ dataTargetType.description | translate }}
2626
</mat-card-content>
2727

28-
<mat-divider inset></mat-divider>
28+
<mat-divider></mat-divider>
2929
<mat-card-actions align="end">
3030
<button *ngIf="dataTargetType.readMoreUrl" (click)="showReadMe(dataTargetType)" mat-button>
3131
{{ "DATATARGET.READMORE" | translate }}

src/app/applications/datatarget/datatarget-new/datatarget-new.component.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
margin-left: 10px;
66
}
77

8-
.mat-card {
8+
.mdc-card {
99
display: flex;
1010
flex-direction: column;
1111
flex-wrap: wrap;
@@ -14,16 +14,20 @@
1414
max-width: 400px;
1515
height: 320px;
1616
margin: 10px;
17+
padding: 16px;
1718
}
1819

19-
.mat-card-header {
20+
.mat-mdc-card-header {
2021
flex-shrink: 1;
22+
margin-left: 10px;
23+
margin-bottom: 18px;
24+
padding: 0 16px 16px 8px
2125
}
2226

23-
.mat-card-content {
27+
.mat-mdc-card-content {
2428
flex-grow: 1;
2529
overflow: auto;
26-
margin-left: 10px;
30+
font-size: 14px;
2731
}
2832

2933
mat-card img {

src/app/applications/datatarget/datatarget-table/datatarget-table.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<!-- Type Column -->
1919
<ng-container matColumnDef="type">
20-
<th mat-header-cell *matHeaderCellDef mat-sort-header class="col-1">
20+
<th mat-header-cell *matHeaderCellDef mat-sort-header>
2121
{{ "DATATARGET-TABLE.TYPE" | translate }}
2222
</th>
2323
<td mat-cell *matCellDef="let element">

src/app/applications/datatarget/fiware/fiware-edit/fiware-edit.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ <h6>{{ "QUESTION.DATATARGET.RELATIONS" | translate }}</h6>
208208
<tr *ngFor="let element of payloadDeviceDatatarget; let i = index" [attr.data-index]="i">
209209
<td>
210210
<div class="row">
211-
<mat-form-field appearance="fill">
211+
<mat-form-field appearance="outline">
212212
<mat-label>{{ "QUESTION.DATATARGET.SELECT-DEVICES" | translate }}</mat-label>
213213
<mat-select multiple name="devices" [compareWith]="compare" [(value)]="element.iotDeviceIds">
214214
<mat-option disabled="disabled" class="filter-option">
@@ -226,7 +226,7 @@ <h6>{{ "QUESTION.DATATARGET.RELATIONS" | translate }}</h6>
226226
</td>
227227
<td>
228228
<div class="row">
229-
<mat-form-field appearance="fill">
229+
<mat-form-field appearance="outline">
230230
<mat-label>{{ "QUESTION.DATATARGET.SELECT-PAYLOADDECODER" | translate }}</mat-label>
231231
<mat-select matNativeControl name="payloadDecoderId" [(value)]="element.payloadDecoderId">
232232
<mat-option [value]="0">

src/app/applications/datatarget/httppush/httppush-edit/httppush-edit.component.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,12 @@ <h6>{{ "QUESTION.DATATARGET.RELATIONS" | translate }}</h6>
104104
<mat-form-field appearance="fill">
105105
<mat-label>{{ "QUESTION.DATATARGET.SELECT-DEVICES" | translate }}</mat-label>
106106
<mat-select multiple name="devices" [compareWith]="compare" [(value)]="element.iotDeviceIds">
107-
<mat-option disabled="disabled" class="filter-option">
108107
<button mat-raised-button class="mat-primary fill text-sm" (click)="selectAllDevices(i)">
109108
{{ "QUESTION.DATATARGET.SELECTALLDEVICES" | translate }}
110109
</button>
111110
<button mat-raised-button class="mat-primary fill text-sm" (click)="deSelectAllDevices(i)">
112111
{{ "QUESTION.DATATARGET.DESELECTALLDEVICES" | translate }}
113112
</button>
114-
</mat-option>
115113
<mat-option *ngFor="let device of devices" [value]="device.id">{{ device.name }}</mat-option>
116114
</mat-select>
117115
</mat-form-field>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.mat-mdc-text-field-wrapper .mdc-text-field{
2+
background-color: white !important;
3+
}

0 commit comments

Comments
 (0)