diff --git a/src/app/courses/add-courses/courses-step.component.html b/src/app/courses/add-courses/courses-step.component.html index 67efb0ce76..00910085b7 100644 --- a/src/app/courses/add-courses/courses-step.component.html +++ b/src/app/courses/add-courses/courses-step.component.html @@ -15,7 +15,7 @@ - + diff --git a/src/app/courses/search-courses/courses-search.scss b/src/app/courses/search-courses/courses-search.scss index 52367bb5a0..e971f0903b 100644 --- a/src/app/courses/search-courses/courses-search.scss +++ b/src/app/courses/search-courses/courses-search.scss @@ -15,7 +15,7 @@ planet-courses-search { display: grid; grid-template-rows: $label-height calc(#{$toolbar-height} - #{$label-height}); - .mat-selection-list { + .mat-mdc-selection-list { height: calc(#{$toolbar-height} - #{$label-height}); padding: 0; overflow-y: auto; diff --git a/src/app/dashboard/dashboard-tile.component.ts b/src/app/dashboard/dashboard-tile.component.ts index fc1b424a20..5be5c8ce34 100644 --- a/src/app/dashboard/dashboard-tile.component.ts +++ b/src/app/dashboard/dashboard-tile.component.ts @@ -169,9 +169,9 @@ export class DashboardTileComponent implements AfterViewChecked, OnInit { @Component({ selector: 'planet-dashboard-tile-title', - template: ` - - {{cardTitle}} + template: ` + + {{cardTitle}} `, styleUrls: [ './dashboard-tile-title.scss' ] }) diff --git a/src/app/dashboard/dashboard.component.html b/src/app/dashboard/dashboard.component.html index d103b66276..7130081deb 100644 --- a/src/app/dashboard/dashboard.component.html +++ b/src/app/dashboard/dashboard.component.html @@ -11,10 +11,10 @@
-

{{displayName | truncateText:(isMobile ? 20 : 40)}} ({{visits | number}})

+

{{displayName | truncateText:(isMobile ? 20 : 40)}} ({{visits | number}})

-

- +

+ , diff --git a/src/app/dashboard/dashboard.scss b/src/app/dashboard/dashboard.scss index 99896477d5..68f42b477f 100644 --- a/src/app/dashboard/dashboard.scss +++ b/src/app/dashboard/dashboard.scss @@ -50,7 +50,7 @@ $top-row-height: calc(#{$dashboard-tile-width} + 0.5rem); display: flex; align-items: center; } - .mat-subheading-2 { + .mat-subtitle-1 { margin: 0; } span { diff --git a/src/app/health/health-update.component.html b/src/app/health/health-update.component.html index c17ffd1a06..95fdb63117 100644 --- a/src/app/health/health-update.component.html +++ b/src/app/health/health-update.component.html @@ -45,7 +45,7 @@
- Emergency Contact + Emergency Contact diff --git a/src/app/manager-dashboard/reports/myplanet/myplanet.scss b/src/app/manager-dashboard/reports/myplanet/myplanet.scss index 7a0c9a9a74..b248d5fa19 100644 --- a/src/app/manager-dashboard/reports/myplanet/myplanet.scss +++ b/src/app/manager-dashboard/reports/myplanet/myplanet.scss @@ -12,7 +12,7 @@ button { } @media(max-width: #{$screen-md}) { - .mat-form-field { + .mat-mdc-form-field { width: 100%; } @@ -20,7 +20,7 @@ button { form { width: 100%; - .mat-form-field { + .mat-mdc-form-field { width: 100%; } } diff --git a/src/app/manager-dashboard/reports/reports-detail.component.html b/src/app/manager-dashboard/reports/reports-detail.component.html index ed253e6ffd..c4f4c6ce47 100644 --- a/src/app/manager-dashboard/reports/reports-detail.component.html +++ b/src/app/manager-dashboard/reports/reports-detail.component.html @@ -135,7 +135,7 @@
-

Members

+

Members

Total Members {{reports?.totalUsers}} @@ -171,7 +171,7 @@

Members

-

Resources

+

Resources

Total Resources {{reports?.totalResources}} @@ -204,7 +204,7 @@

Resources

-

Courses

+

Courses

Total Courses {{reports?.totalCourses}} diff --git a/src/app/manager-dashboard/reports/reports-detail.scss b/src/app/manager-dashboard/reports/reports-detail.scss index 75133d45f0..f990f3d451 100644 --- a/src/app/manager-dashboard/reports/reports-detail.scss +++ b/src/app/manager-dashboard/reports/reports-detail.scss @@ -75,7 +75,7 @@ mat-toolbar mat-form-field { } @media(max-width: #{$screen-md}) { - .mat-form-field { + .mat-mdc-form-field { width: 100%; } diff --git a/src/app/manager-dashboard/reports/reports-health.component.html b/src/app/manager-dashboard/reports/reports-health.component.html index b97a3250d1..1f981d60fe 100644 --- a/src/app/manager-dashboard/reports/reports-health.component.html +++ b/src/app/manager-dashboard/reports/reports-health.component.html @@ -5,13 +5,13 @@
Patients Seen: {{headlineData?.unique.length}}
-

Diagnoses

+

Diagnoses

: {{headlineData?.conditions[condition]}}
-

Diagnosis Trend

+

Diagnosis Trend

Select diagnosis to view trend: @@ -25,7 +25,7 @@

Diagnosis Trend

-

Weekly Data

+

Weekly Data

- + Title + - + Author + - + Year + - + Description + - + Language + {{lang.name}} - + Publisher/Attribution + - + Link to License + - + Subject(s) + {{subject.label}} - + Level(s) + {{level.label}} - + Open + {{ open.label }} - + Resource For + {{role.label}} - + Media + {{ medium.label }} - + Resource Type + {{ type.label}} - + Added By + - + Open Which File + {{file}} diff --git a/src/app/resources/search-resources/resources-search.scss b/src/app/resources/search-resources/resources-search.scss index 994ff21c2e..2b6a974b6e 100644 --- a/src/app/resources/search-resources/resources-search.scss +++ b/src/app/resources/search-resources/resources-search.scss @@ -15,7 +15,7 @@ planet-resources-search { display: grid; grid-template-rows: $label-height calc(#{$toolbar-height} - #{$label-height}); - .mat-selection-list { + .mat-mdc-selection-list { height: calc(#{$toolbar-height} - #{$label-height}); padding: 0; overflow-y: auto; diff --git a/src/app/shared/dialogs/dialogs-form.component.html b/src/app/shared/dialogs/dialogs-form.component.html index 9012bf336e..1902aa2989 100644 --- a/src/app/shared/dialogs/dialogs-form.component.html +++ b/src/app/shared/dialogs/dialogs-form.component.html @@ -56,7 +56,7 @@

create{{title}}

- + diff --git a/src/app/shared/dialogs/dialogs-submissions.component.ts b/src/app/shared/dialogs/dialogs-submissions.component.ts index 41a1bf708b..2f8e4eee46 100644 --- a/src/app/shared/dialogs/dialogs-submissions.component.ts +++ b/src/app/shared/dialogs/dialogs-submissions.component.ts @@ -3,7 +3,7 @@ import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from '@angular/material/leg @Component({ template: ` -

Review Previous Test Attempts

+

Review Previous Test Attempts

diff --git a/src/app/shared/forms/planet-markdown-textbox.component.ts b/src/app/shared/forms/planet-markdown-textbox.component.ts index 8a8e2d323e..82eefbea4d 100644 --- a/src/app/shared/forms/planet-markdown-textbox.component.ts +++ b/src/app/shared/forms/planet-markdown-textbox.component.ts @@ -3,7 +3,7 @@ import { } from '@angular/core'; import { ControlValueAccessor, NgControl } from '@angular/forms'; import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog'; -import { MatLegacyFormFieldControl as MatFormFieldControl } from '@angular/material/legacy-form-field'; +import { MatFormFieldControl } from '@angular/material/form-field'; import { Subject } from 'rxjs'; import { FocusMonitor } from '@angular/cdk/a11y'; import { DialogsImagesComponent } from '../dialogs/dialogs-images.component'; diff --git a/src/app/shared/forms/planet-rating-stars.component.ts b/src/app/shared/forms/planet-rating-stars.component.ts index 657f13d293..8a741ab903 100644 --- a/src/app/shared/forms/planet-rating-stars.component.ts +++ b/src/app/shared/forms/planet-rating-stars.component.ts @@ -1,6 +1,6 @@ import { Component, HostBinding, Input, OnDestroy, Optional, Self } from '@angular/core'; import { coerceBooleanProperty } from '@angular/cdk/coercion'; -import { MatLegacyFormFieldControl as MatFormFieldControl } from '@angular/material/legacy-form-field'; +import { MatFormFieldControl } from '@angular/material/form-field'; import { Subject } from 'rxjs'; import { ControlValueAccessor, NgControl } from '@angular/forms'; import { UserService } from '../user.service'; @@ -8,13 +8,13 @@ import { UserService } from '../user.service'; @Component({ selector: 'planet-rating-stars', templateUrl: './planet-rating-stars.component.html', - styles: [ ` - .stars mat-icon { - cursor: default; - } - .stars.stars-enabled mat-icon { - cursor: pointer; - } + styles: [ ` + .stars mat-icon { + cursor: default; + } + .stars.stars-enabled mat-icon { + cursor: pointer; + } ` ], providers: [ { provide: MatFormFieldControl, useExisting: PlanetRatingStarsComponent } diff --git a/src/app/shared/forms/planet-tag-input-dialog.component.html b/src/app/shared/forms/planet-tag-input-dialog.component.html index 0f72c8b71b..3977920cd1 100644 --- a/src/app/shared/forms/planet-tag-input-dialog.component.html +++ b/src/app/shared/forms/planet-tag-input-dialog.component.html @@ -19,7 +19,7 @@ None - {{ tag.name }} + {{ tag.name }} ({{ tag.count || 0 }}) @@ -32,7 +32,7 @@ - {{ tag.name }} + {{ tag.name }} ({{ tag.count || 0 }}) @@ -44,7 +44,7 @@ subdirectory_arrow_right - {{ tag.name }} + {{ tag.name }} ({{ tag.count || 0 }}) @@ -58,7 +58,7 @@ All - {{ tag.name }} + {{ tag.name }} ({{ tag.count || 0 }}) @@ -70,7 +70,7 @@ subdirectory_arrow_right - {{ tag.name }} + {{ tag.name }} ({{ tag.count || 0 }}) diff --git a/src/app/shared/forms/planet-tag-input.component.ts b/src/app/shared/forms/planet-tag-input.component.ts index c4fc0ec9cd..862bfeafd5 100644 --- a/src/app/shared/forms/planet-tag-input.component.ts +++ b/src/app/shared/forms/planet-tag-input.component.ts @@ -4,7 +4,7 @@ import { import { Router, ActivatedRoute } from '@angular/router'; import { ControlValueAccessor, NgControl, UntypedFormControl } from '@angular/forms'; import { MatLegacyDialog as MatDialog, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog'; -import { MatLegacyFormFieldControl as MatFormFieldControl } from '@angular/material/legacy-form-field'; +import { MatFormFieldControl } from '@angular/material/form-field'; import { FocusMonitor } from '@angular/cdk/a11y'; import { coerceBooleanProperty } from '@angular/cdk/coercion'; import { Subject } from 'rxjs'; diff --git a/src/app/shared/material.module.ts b/src/app/shared/material.module.ts index bb0a060e61..74ad7ffd03 100644 --- a/src/app/shared/material.module.ts +++ b/src/app/shared/material.module.ts @@ -1,6 +1,6 @@ import { NgModule, Injectable } from '@angular/core'; import { DragDropModule } from '@angular/cdk/drag-drop'; -import { MatLegacyAutocompleteModule as MatAutocompleteModule } from '@angular/material/legacy-autocomplete'; +import { MatAutocompleteModule } from '@angular/material/autocomplete'; import { MatBadgeModule } from '@angular/material/badge'; import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; import { MatButtonToggleModule } from '@angular/material/button-toggle'; @@ -10,17 +10,17 @@ import { MatLegacyChipsModule as MatChipsModule } from '@angular/material/legacy import { MatNativeDateModule, DateAdapter, NativeDateAdapter } from '@angular/material/core'; import { MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog'; import { MatExpansionModule } from '@angular/material/expansion'; -import { MatLegacyFormFieldModule as MatFormFieldModule } from '@angular/material/legacy-form-field'; +import { MatFormFieldModule } from '@angular/material/form-field'; import { MatGridListModule } from '@angular/material/grid-list'; import { MatIconModule } from '@angular/material/icon'; -import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy-input'; +import { MatInputModule } from '@angular/material/input'; import { MatLegacyListModule as MatListModule } from '@angular/material/legacy-list'; import { MatLegacyMenuModule as MatMenuModule } from '@angular/material/legacy-menu'; import { MatLegacyPaginatorModule as MatPaginatorModule } from '@angular/material/legacy-paginator'; import { MatLegacyProgressBarModule as MatProgressBarModule } from '@angular/material/legacy-progress-bar'; import { MatLegacyProgressSpinnerModule as MatProgressSpinnerModule } from '@angular/material/legacy-progress-spinner'; import { MatLegacyRadioModule as MatRadioModule } from '@angular/material/legacy-radio'; -import { MatLegacySelectModule as MatSelectModule } from '@angular/material/legacy-select'; +import { MatSelectModule } from '@angular/material/select'; import { MatSidenavModule } from '@angular/material/sidenav'; import { MatLegacySlideToggleModule as MatSlideToggleModule } from '@angular/material/legacy-slide-toggle'; import { MatLegacySnackBarModule as MatSnackBarModule } from '@angular/material/legacy-snack-bar'; diff --git a/src/app/shared/planet-filtered-amount.component.ts b/src/app/shared/planet-filtered-amount.component.ts index dccd0fb130..7abdb28bb0 100644 --- a/src/app/shared/planet-filtered-amount.component.ts +++ b/src/app/shared/planet-filtered-amount.component.ts @@ -3,13 +3,13 @@ import { MatLegacyTableDataSource as MatTableDataSource } from '@angular/materia @Component({ template: ` - Showing {{table.filteredData.length}} of {{table.data.length}} - {labelFor, select, - resources {{table.data.length, plural, =0 {resources} =1 {resource} other {resources}}} - courses {{table.data.length, plural, =0 {courses} =1 {course} other {courses}}} - } - - `, + Showing {{table.filteredData.length}} of {{table.data.length}} + {labelFor, select, + resources {{table.data.length, plural, =0 {resources} =1 {resource} other {resources}}} + courses {{table.data.length, plural, =0 {courses} =1 {course} other {courses}}} + } + + `, selector: 'planet-filtered-amount' }) export class FilteredAmountComponent { diff --git a/src/app/teams/teams-reports-dialog.component.html b/src/app/teams/teams-reports-dialog.component.html index e2d00fd271..10a0180374 100644 --- a/src/app/teams/teams-reports-dialog.component.html +++ b/src/app/teams/teams-reports-dialog.component.html @@ -1,6 +1,6 @@

{{teamName}} Financial Report

-

{{ report.startDate | date : 'mediumDate' : '+0000' }} - {{ report.endDate | date : 'mediumDate' : '+0000' }}

+

{{ report.startDate | date : 'mediumDate' : '+0000' }} - {{ report.endDate | date : 'mediumDate' : '+0000' }}

diff --git a/src/app/teams/teams-reports-dialog.component.ts b/src/app/teams/teams-reports-dialog.component.ts index 5ea3b617a1..2e1a8bf4bc 100644 --- a/src/app/teams/teams-reports-dialog.component.ts +++ b/src/app/teams/teams-reports-dialog.component.ts @@ -7,7 +7,7 @@ import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from '@angular/material/leg h3 { margin-bottom: 0; } - .mat-subheading-1 { + .mat-body-1 { margin-top: 0; } ` ] diff --git a/src/app/teams/teams-view.component.html b/src/app/teams/teams-view.component.html index 26d490641f..86522827f2 100644 --- a/src/app/teams/teams-view.component.html +++ b/src/app/teams/teams-view.component.html @@ -78,11 +78,11 @@

{{configuration { mode, select, team {Plan} enterprise {Mission & Services} services {Services} } -
What is your enterprise's Mission?
+
What is your enterprise's Mission?
-
What are the Services your enterprise provides?
+
What are the Services your enterprise provides?
-
What are the Rules of your enterprise?
+
What are the Rules of your enterprise?
@@ -179,7 +179,7 @@

Members ({{members.length}})

-
+
{{resource.resource.title | truncateText:75}} @@ -216,7 +216,7 @@

Members ({{members.length}})

-
+
{{course.courseTitle | truncateText:75}}
diff --git a/src/app/teams/teams-view.scss b/src/app/teams/teams-view.scss index 7d30ba08f9..c452279d6f 100644 --- a/src/app/teams/teams-view.scss +++ b/src/app/teams/teams-view.scss @@ -43,7 +43,7 @@ margin: 0; } - .mat-subheading-2 b { + .mat-subtitle-1 b { display: inline-block; max-width: 100%; white-space: nowrap; diff --git a/src/app/users/users.component.ts b/src/app/users/users.component.ts index 50548fb4e3..909b9d21f1 100644 --- a/src/app/users/users.component.ts +++ b/src/app/users/users.component.ts @@ -15,15 +15,15 @@ import { DeviceInfoService, DeviceType } from '../shared/device-info.service'; @Component({ selector: 'planet-users', templateUrl: './users.component.html', - styles: [ ` - /* Column Widths */ - .mat-column-select { - max-width: 44px; - } - - .mat-column-profile { - max-width: 100px; - } + styles: [ ` + /* Column Widths */ + .mat-column-select { + max-width: 44px; + } + + .mat-column-profile { + max-width: 100px; + } ` ] }) export class UsersComponent implements OnInit, OnDestroy { diff --git a/src/planet-mat-theme.scss b/src/planet-mat-theme.scss index f38398d6cd..95b8e1b6a5 100644 --- a/src/planet-mat-theme.scss +++ b/src/planet-mat-theme.scss @@ -12,13 +12,20 @@ // If you specify typography styles for the components you use elsewhere, you should delete this line. // If you don't need the default component typographies but still want the hierarchy styles, // you can delete this line and instead use: -// `@include mat.legacy-typography-hierarchy(mat.define-legacy-typography-config());` +// `@include mat.legacy-typography-hierarchy(mat.define-typography-config());` +/* TODO(mdc-migration): Remove all-legacy-component-typographies once all legacy components are migrated*/ @include mat.all-legacy-component-typographies(); -@include mat.legacy-core(); +@include mat.all-component-typographies(); +/* TODO(mdc-migration): Remove legacy-core once all legacy components are migrated*/ +@include mat.legacy-core(); +@include mat.core(); @import './app/_variables'; +/* TODO(mdc-migration): Remove all-legacy-component-themes once all legacy components are migrated*/ @include mat.all-legacy-component-themes($planet-app-theme); +@include mat.all-component-themes($planet-app-theme); + // Create sub-themes for the different sections which change the accent color. $accent-map: ( library: mat.define-palette(mat.$pink-palette, $accent-hue), @@ -30,8 +37,10 @@ $accent-map: ( @each $section in library, courses, meetups, teams { $accent-palette: map-get($accent-map, #{$section}); $theme: mat.define-light-theme($planet-app-primary, $accent-palette, $planet-app-warn); - .planet-#{$section}-theme { + .planet-#{$section}-theme { + /* TODO(mdc-migration): Remove all-legacy-component-themes once all legacy components are migrated*/ @include mat.all-legacy-component-themes($theme); + @include mat.all-component-themes($theme); .accent-color { background-color: mat.get-color-from-palette($accent-palette, $accent-hue); diff --git a/src/styles.scss b/src/styles.scss index 75c573c212..30270b06ea 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -348,11 +348,12 @@ body { margin: 10px; } - // Remove the underline from mat-form-field for custom fields + // Remove the underline from mat-form-field for custom fields + /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version.*/ .mat-form-field-type-no-underline .mat-form-field-underline { display: none; - } - + } + /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version.*/ .mat-form-field-dynamic-width .mat-form-field-infix { width: auto; } @@ -439,7 +440,7 @@ body { mat-toolbar:first-child > mat-form-field, mat-toolbar:first-child > planet-selector, - .mat-toolbar form .mat-form-field, + .mat-toolbar form .mat-mdc-form-field, .input-icon { margin-top: 10px; &.mat-form-field-type-no-underline { @@ -471,10 +472,12 @@ body { } } - .collections-search { + .collections-search { + /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version.*/ .mat-form-field-wrapper { padding: 0; - } + } + /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version.*/ .mat-form-field-infix { border: 0; } @@ -521,7 +524,7 @@ body { } } - .mat-input-element[readonly]{ + .mat-mdc-input-element[readonly]{ color: $grey; }