Skip to content

Commit 7498e0b

Browse files
committed
Run auto migration script for forms, inputs, and autocomplete
1 parent b4569d3 commit 7498e0b

31 files changed

Lines changed: 116 additions & 104 deletions

src/app/courses/add-courses/courses-step.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<mat-form-field class="full-width">
1616
<input matInput i18n-placeholder placeholder="Step title" maxlength="200" formControlName="stepTitle">
1717
</mat-form-field>
18-
<mat-form-field class="full-width mat-form-field-type-no-underline">
18+
<mat-form-field class="full-width mat-form-field-type-no-underline" appearance="outline">
1919
<planet-markdown-textbox class="full-width" i18n-placeholder placeholder="Description" [formControl]="stepForm.controls.description" imageGroup="community"></planet-markdown-textbox>
2020
<mat-error><planet-form-error-messages [control]="stepForm.controls.description"></planet-form-error-messages></mat-error>
2121
</mat-form-field>

src/app/courses/search-courses/courses-search.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ planet-courses-search {
1515
display: grid;
1616
grid-template-rows: $label-height calc(#{$toolbar-height} - #{$label-height});
1717

18-
.mat-selection-list {
18+
.mat-mdc-selection-list {
1919
height: calc(#{$toolbar-height} - #{$label-height});
2020
padding: 0;
2121
overflow-y: auto;

src/app/dashboard/dashboard-tile.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ export class DashboardTileComponent implements AfterViewChecked, OnInit {
169169

170170
@Component({
171171
selector: 'planet-dashboard-tile-title',
172-
template: `
173-
<mat-icon svgIcon={{cardType}}></mat-icon>
174-
<span>{{cardTitle}}</span>
172+
template: `
173+
<mat-icon svgIcon={{cardType}}></mat-icon>
174+
<span>{{cardTitle}}</span>
175175
`,
176176
styleUrls: [ './dashboard-tile-title.scss' ]
177177
})

src/app/dashboard/dashboard.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
</a>
1212
<div class="dashboard-name" style="margin-left: 16px;">
1313
<a [routerLink]="['/users/profile', user.name]" class="profile-link">
14-
<h1 class="mat-title">{{displayName | truncateText:(isMobile ? 20 : 40)}} <span *ngIf="!isLoading">({{visits | number}})</span></h1>
14+
<h1 class="mat-headline-6">{{displayName | truncateText:(isMobile ? 20 : 40)}} <span *ngIf="!isLoading">({{visits | number}})</span></h1>
1515
</a>
16-
<h1 class="mat-title">
17-
<span class="mat-subheading-2">
16+
<h1 class="mat-headline-6">
17+
<span class="mat-subtitle-1">
1818
<ng-container *ngFor="let role of roles; last as last">
1919
<planet-role [role]="role"></planet-role><span *ngIf="!last">, </span>
2020
</ng-container>

src/app/dashboard/dashboard.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ $top-row-height: calc(#{$dashboard-tile-width} + 0.5rem);
5050
display: flex;
5151
align-items: center;
5252
}
53-
.mat-subheading-2 {
53+
.mat-subtitle-1 {
5454
margin: 0;
5555
}
5656
span {

src/app/health/health-update.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</mat-form-field>
4646
</form>
4747
<form class="form-spacing" [formGroup]="healthForm">
48-
<span class="full-width primary-text-color mat-body-2" i18n>Emergency Contact</span>
48+
<span class="full-width primary-text-color mat-subtitle-2" i18n>Emergency Contact</span>
4949
<mat-form-field>
5050
<input matInput i18n-placeholder placeholder="Name" formControlName="emergencyContactName">
5151
</mat-form-field>

src/app/manager-dashboard/reports/myplanet/myplanet.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ button {
1212
}
1313

1414
@media(max-width: #{$screen-md}) {
15-
.mat-form-field {
15+
.mat-mdc-form-field {
1616
width: 100%;
1717
}
1818

1919
mat-toolbar-row {
2020
form {
2121
width: 100%;
2222

23-
.mat-form-field {
23+
.mat-mdc-form-field {
2424
width: 100%;
2525
}
2626
}

src/app/manager-dashboard/reports/reports-detail.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
<canvas id="voicesCreatedChart"></canvas>
136136
<div class="reports-table-container">
137137
<div>
138-
<h1 class="mat-title" i18n>Members</h1>
138+
<h1 class="mat-headline-6" i18n>Members</h1>
139139
<mat-grid-list cols="2" rowHeight="2rem">
140140
<mat-grid-tile class="subheading label" i18n>Total Members</mat-grid-tile>
141141
<mat-grid-tile>{{reports?.totalUsers}}</mat-grid-tile>
@@ -171,7 +171,7 @@ <h1 class="mat-title" i18n>Members</h1>
171171
</mat-grid-list>
172172
</div>
173173
<div>
174-
<h1 class="mat-title" i18n>Resources</h1>
174+
<h1 class="mat-headline-6" i18n>Resources</h1>
175175
<mat-grid-list cols="2" rowHeight="2rem">
176176
<mat-grid-tile class="subheading label" i18n>Total Resources</mat-grid-tile>
177177
<mat-grid-tile>{{reports?.totalResources}}</mat-grid-tile>
@@ -204,7 +204,7 @@ <h1 class="mat-title" i18n>Resources</h1>
204204
</mat-grid-list>
205205
</div>
206206
<div>
207-
<h1 class="mat-title" i18n>Courses</h1>
207+
<h1 class="mat-headline-6" i18n>Courses</h1>
208208
<mat-grid-list cols="2" rowHeight="2rem">
209209
<mat-grid-tile class="subheading label" i18n>Total Courses</mat-grid-tile>
210210
<mat-grid-tile>{{reports?.totalCourses}}</mat-grid-tile>

src/app/manager-dashboard/reports/reports-detail.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ mat-toolbar mat-form-field {
7575
}
7676

7777
@media(max-width: #{$screen-md}) {
78-
.mat-form-field {
78+
.mat-mdc-form-field {
7979
width: 100%;
8080
}
8181

src/app/manager-dashboard/reports/reports-health.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<div>
66
<span><b i18n>Patients Seen:</b> {{headlineData?.unique.length}}</span>
77
</div>
8-
<h1 class="mat-title" i18n>Diagnoses</h1>
8+
<h1 class="mat-headline-6" i18n>Diagnoses</h1>
99
<div>
1010
<span *ngFor="let condition of conditions">
1111
<planet-label [label]="condition"></planet-label>: {{headlineData?.conditions[condition]}}
1212
</span>
1313
</div>
14-
<h1 class="mat-title" i18n>Diagnosis Trend</h1>
14+
<h1 class="mat-headline-6" i18n>Diagnosis Trend</h1>
1515
<div class="trend-filters">
1616
<span i18n>Select diagnosis to view trend:</span>
1717
<mat-form-field>
@@ -25,7 +25,7 @@ <h1 class="mat-title" i18n>Diagnosis Trend</h1>
2525
<div *ngIf="showChart" class="chart-container">
2626
<canvas id="diagnosesTrend" #diagnosesChart></canvas>
2727
</div>
28-
<h1 class="mat-title" i18n>Weekly Data</h1>
28+
<h1 class="mat-headline-6" i18n>Weekly Data</h1>
2929
<planet-reports-detail-activities
3030
[activitiesByDoc]="weeklyHealthData"
3131
activityType="health"

0 commit comments

Comments
 (0)