From 5af2c750c070b56536c46ee2fe8290704764e78f Mon Sep 17 00:00:00 2001 From: rfrt Date: Mon, 29 Jul 2024 10:50:29 +0200 Subject: [PATCH] feat: update material to angular 15 - FC-67 --- .../src/datepicker-buttons/datepicker-buttons.component.ts | 4 ++-- .../datepicker-with-time/datepicker-with-time.component.ts | 2 +- projects/demo-app/src/app/app.component.ts | 2 +- .../src/app/date-picker/date-picker-demo.component.ts | 4 ++-- projects/demo-app/src/app/layout/layout-demo.component.ts | 2 +- .../src/app/message-box/message-box-demo.component.ts | 2 +- projects/demo-app/src/app/overlay/overlay-demo.component.ts | 2 +- projects/demo-app/src/app/snackbar/snackbar-demo.component.ts | 2 +- .../src/app/time-picker/time-picker-demo.component.ts | 4 ++-- projects/layout/src/layout.component.ts | 4 ++-- projects/message-box-dialog/src/message-box-dialog.module.ts | 2 +- projects/message-box/src/message-box.component.ts | 2 +- projects/numeric-stepper/src/numeric-stepper.component.ts | 2 +- projects/status/src/status-detail/status-detail.module.ts | 2 +- projects/status/src/status.module.ts | 2 +- 15 files changed, 19 insertions(+), 19 deletions(-) diff --git a/projects/date-picker/src/datepicker-buttons/datepicker-buttons.component.ts b/projects/date-picker/src/datepicker-buttons/datepicker-buttons.component.ts index 9ef60e7..87a099c 100644 --- a/projects/date-picker/src/datepicker-buttons/datepicker-buttons.component.ts +++ b/projects/date-picker/src/datepicker-buttons/datepicker-buttons.component.ts @@ -2,11 +2,11 @@ import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'; import { NgIf } from '@angular/common'; import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, inject, Input, OnInit, Output, ViewEncapsulation } from '@angular/core'; import { AbstractControl } from '@angular/forms'; -import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; import { DateAdapter } from '@angular/material/core'; import { MatDatepicker, MatDateRangeInput, MatDateRangePicker } from '@angular/material/datepicker'; -import { MatLegacyFormFieldControl as MatFormFieldControl } from '@angular/material/legacy-form-field'; import { MatIconModule } from '@angular/material/icon'; +import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; +import { MatLegacyFormFieldControl as MatFormFieldControl } from '@angular/material/legacy-form-field'; import { MatLegacyTooltipModule as MatTooltipModule } from '@angular/material/legacy-tooltip'; import { NgxDestroy } from '@hug/ngx-core'; import { set } from 'date-fns'; diff --git a/projects/date-picker/src/datepicker-with-time/datepicker-with-time.component.ts b/projects/date-picker/src/datepicker-with-time/datepicker-with-time.component.ts index 758ad71..bdc013f 100644 --- a/projects/date-picker/src/datepicker-with-time/datepicker-with-time.component.ts +++ b/projects/date-picker/src/datepicker-with-time/datepicker-with-time.component.ts @@ -1,8 +1,8 @@ import { TemplatePortal } from '@angular/cdk/portal'; import { AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, inject, OnDestroy, TemplateRef, ViewChild, ViewContainerRef, ViewEncapsulation } from '@angular/core'; -import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; import { DateAdapter } from '@angular/material/core'; import { MatDatepicker, MatDatepickerInput, MatDatepickerModule, MatDateSelectionModel } from '@angular/material/datepicker'; +import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; import { NgxDestroy } from '@hug/ngx-core'; import { NgxDateOrDuration, NgxTimePickerComponent } from '@hug/ngx-time-picker'; import { cloneDeep } from 'lodash-es'; diff --git a/projects/demo-app/src/app/app.component.ts b/projects/demo-app/src/app/app.component.ts index 7c5f0d4..758ad58 100644 --- a/projects/demo-app/src/app/app.component.ts +++ b/projects/demo-app/src/app/app.component.ts @@ -1,8 +1,8 @@ import { MediaMatcher } from '@angular/cdk/layout'; import { NgFor, NgIf } from '@angular/common'; import { ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, OnDestroy } from '@angular/core'; -import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; import { MatIconModule } from '@angular/material/icon'; +import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; import { MatLegacyListModule as MatListModule } from '@angular/material/legacy-list'; import { MatSidenavModule } from '@angular/material/sidenav'; import { MatToolbarModule } from '@angular/material/toolbar'; diff --git a/projects/demo-app/src/app/date-picker/date-picker-demo.component.ts b/projects/demo-app/src/app/date-picker/date-picker-demo.component.ts index 73ea747..1b32a7e 100644 --- a/projects/demo-app/src/app/date-picker/date-picker-demo.component.ts +++ b/projects/demo-app/src/app/date-picker/date-picker-demo.component.ts @@ -10,10 +10,10 @@ import { AsyncPipe, DatePipe, NgIf, registerLocaleData } from '@angular/common'; import localeFrCh from '@angular/common/locales/fr-CH'; import { ChangeDetectionStrategy, Component, Injectable, LOCALE_ID, ViewEncapsulation } from '@angular/core'; import { FormControl, FormGroup, ReactiveFormsModule, ValidationErrors } from '@angular/forms'; -import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; -import { MatLegacyCardModule as MatCardModule } from '@angular/material/legacy-card'; import { DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MatDateFormats } from '@angular/material/core'; import { DateRange, MatCalendarCellClassFunction, MatDatepickerModule } from '@angular/material/datepicker'; +import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; +import { MatLegacyCardModule as MatCardModule } from '@angular/material/legacy-card'; import { MatLegacyFormFieldModule as MatFormFieldModule } from '@angular/material/legacy-form-field'; import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy-input'; import { MatLegacyTabsModule as MatTabsModule } from '@angular/material/legacy-tabs'; diff --git a/projects/demo-app/src/app/layout/layout-demo.component.ts b/projects/demo-app/src/app/layout/layout-demo.component.ts index 012f6ea..194d29d 100644 --- a/projects/demo-app/src/app/layout/layout-demo.component.ts +++ b/projects/demo-app/src/app/layout/layout-demo.component.ts @@ -1,8 +1,8 @@ import { CommonModule } from '@angular/common'; import { ChangeDetectionStrategy, Component } from '@angular/core'; import { FormsModule } from '@angular/forms'; -import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; import { MatIconModule } from '@angular/material/icon'; +import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; import { MatLegacyTooltipModule as MatTooltipModule } from '@angular/material/legacy-tooltip'; import { NgxLayoutComponent } from '@hug/ngx-layout'; import { NgxSearchContainerComponent, NgxSearchInputDirective } from '@hug/ngx-search-container'; diff --git a/projects/demo-app/src/app/message-box/message-box-demo.component.ts b/projects/demo-app/src/app/message-box/message-box-demo.component.ts index c31c1ba..b8318dd 100644 --- a/projects/demo-app/src/app/message-box/message-box-demo.component.ts +++ b/projects/demo-app/src/app/message-box/message-box-demo.component.ts @@ -1,8 +1,8 @@ import { NgIf } from '@angular/common'; import { ChangeDetectionStrategy, Component, inject } from '@angular/core'; +import { MatIconModule } from '@angular/material/icon'; import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; import { MatLegacyCardModule as MatCardModule } from '@angular/material/legacy-card'; -import { MatIconModule } from '@angular/material/icon'; import { MatLegacyTabsModule as MatTabsModule } from '@angular/material/legacy-tabs'; import { MatToolbarModule } from '@angular/material/toolbar'; import { NgxDestroy } from '@hug/ngx-core'; diff --git a/projects/demo-app/src/app/overlay/overlay-demo.component.ts b/projects/demo-app/src/app/overlay/overlay-demo.component.ts index c7e2219..f87af91 100644 --- a/projects/demo-app/src/app/overlay/overlay-demo.component.ts +++ b/projects/demo-app/src/app/overlay/overlay-demo.component.ts @@ -1,9 +1,9 @@ import { CommonModule } from '@angular/common'; import { ChangeDetectionStrategy, Component, ViewChild, ViewEncapsulation } from '@angular/core'; import { FormsModule } from '@angular/forms'; +import { MatIconModule } from '@angular/material/icon'; import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; import { MatLegacyCardModule as MatCardModule } from '@angular/material/legacy-card'; -import { MatIconModule } from '@angular/material/icon'; import { MatLegacyTabsModule as MatTabsModule } from '@angular/material/legacy-tabs'; import { MatToolbarModule } from '@angular/material/toolbar'; import { NgxOverlayComponent } from '@hug/ngx-overlay'; diff --git a/projects/demo-app/src/app/snackbar/snackbar-demo.component.ts b/projects/demo-app/src/app/snackbar/snackbar-demo.component.ts index b115de2..8be2c67 100644 --- a/projects/demo-app/src/app/snackbar/snackbar-demo.component.ts +++ b/projects/demo-app/src/app/snackbar/snackbar-demo.component.ts @@ -1,8 +1,8 @@ import { AsyncPipe, NgFor, NgIf } from '@angular/common'; import { ChangeDetectionStrategy, Component, EventEmitter, inject } from '@angular/core'; +import { MatIconModule } from '@angular/material/icon'; import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; import { MatLegacyCardModule as MatCardModule } from '@angular/material/legacy-card'; -import { MatIconModule } from '@angular/material/icon'; import { MatLegacyTabsModule as MatTabsModule } from '@angular/material/legacy-tabs'; import { MatToolbarModule } from '@angular/material/toolbar'; import { NgxMessageBoxComponent } from '@hug/ngx-message-box'; diff --git a/projects/demo-app/src/app/time-picker/time-picker-demo.component.ts b/projects/demo-app/src/app/time-picker/time-picker-demo.component.ts index 0d9c49b..19b294d 100644 --- a/projects/demo-app/src/app/time-picker/time-picker-demo.component.ts +++ b/projects/demo-app/src/app/time-picker/time-picker-demo.component.ts @@ -9,10 +9,10 @@ import { DatePipe, NgIf } from '@angular/common'; import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ViewEncapsulation } from '@angular/core'; import { FormControl, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms'; -import { MatLegacyCardModule as MatCardModule } from '@angular/material/legacy-card'; -import { MatLegacyCheckboxModule as MatCheckboxModule } from '@angular/material/legacy-checkbox'; import { MAT_DATE_FORMATS } from '@angular/material/core'; import { MatDatepickerInputEvent } from '@angular/material/datepicker'; +import { MatLegacyCardModule as MatCardModule } from '@angular/material/legacy-card'; +import { MatLegacyCheckboxModule as MatCheckboxModule } from '@angular/material/legacy-checkbox'; import { MatLegacyFormFieldModule as MatFormFieldModule } from '@angular/material/legacy-form-field'; import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy-input'; import { MatLegacyTabsModule as MatTabsModule } from '@angular/material/legacy-tabs'; diff --git a/projects/layout/src/layout.component.ts b/projects/layout/src/layout.component.ts index a92cbea..b5f1167 100644 --- a/projects/layout/src/layout.component.ts +++ b/projects/layout/src/layout.component.ts @@ -1,11 +1,11 @@ import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'; import { CommonModule } from '@angular/common'; import { ChangeDetectionStrategy, Component, ContentChild, EventEmitter, HostBinding, inject, Input, Output, TemplateRef, ViewChild, ViewEncapsulation } from '@angular/core'; -import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; import { MatIconModule } from '@angular/material/icon'; +import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; +import { MatLegacyTooltipModule as MatTooltipModule } from '@angular/material/legacy-tooltip'; import { MatDrawer, MatSidenavModule } from '@angular/material/sidenav'; import { MatToolbarModule } from '@angular/material/toolbar'; -import { MatLegacyTooltipModule as MatTooltipModule } from '@angular/material/legacy-tooltip'; import { NgxMediaService } from '@hug/ngx-core'; import { NgxSidenavService } from '@hug/ngx-sidenav'; diff --git a/projects/message-box-dialog/src/message-box-dialog.module.ts b/projects/message-box-dialog/src/message-box-dialog.module.ts index 29aba94..679f81d 100644 --- a/projects/message-box-dialog/src/message-box-dialog.module.ts +++ b/projects/message-box-dialog/src/message-box-dialog.module.ts @@ -1,8 +1,8 @@ import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; +import { MatIconModule } from '@angular/material/icon'; import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; import { MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog'; -import { MatIconModule } from '@angular/material/icon'; import { MatToolbarModule } from '@angular/material/toolbar'; import { NgxAbstractLazyModule } from '@hug/ngx-core'; diff --git a/projects/message-box/src/message-box.component.ts b/projects/message-box/src/message-box.component.ts index 5ded94b..6eba60e 100644 --- a/projects/message-box/src/message-box.component.ts +++ b/projects/message-box/src/message-box.component.ts @@ -1,9 +1,9 @@ import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'; import { CommonModule } from '@angular/common'; import { ChangeDetectionStrategy, Component, ContentChild, EventEmitter, Input, OnInit, Output, TemplateRef, ViewEncapsulation } from '@angular/core'; +import { MatIconModule } from '@angular/material/icon'; import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; import { MatLegacyCardModule as MatCardModule } from '@angular/material/legacy-card'; -import { MatIconModule } from '@angular/material/icon'; import { NgxMessageBoxAction, NgxMessageBoxType } from './message-box.model'; diff --git a/projects/numeric-stepper/src/numeric-stepper.component.ts b/projects/numeric-stepper/src/numeric-stepper.component.ts index 8df1649..3414c28 100644 --- a/projects/numeric-stepper/src/numeric-stepper.component.ts +++ b/projects/numeric-stepper/src/numeric-stepper.component.ts @@ -2,8 +2,8 @@ import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion'; import { NgIf } from '@angular/common'; import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, HostBinding, inject, Input, OnInit, Output, ViewEncapsulation } from '@angular/core'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; -import { MatLegacyFormFieldControl as MatFormFieldControl, MatLegacyFormFieldModule as MatFormFieldModule } from '@angular/material/legacy-form-field'; import { MatIconModule } from '@angular/material/icon'; +import { MatLegacyFormFieldControl as MatFormFieldControl, MatLegacyFormFieldModule as MatFormFieldModule } from '@angular/material/legacy-form-field'; import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy-input'; import { filterMap, KeyCodes, NgxDestroy } from '@hug/ngx-core'; import { combineLatestWith, debounceTime, delay, filter, fromEvent, map, mergeWith, ReplaySubject, shareReplay, startWith, Subject, switchMap, takeUntil, tap, timer, withLatestFrom } from 'rxjs'; diff --git a/projects/status/src/status-detail/status-detail.module.ts b/projects/status/src/status-detail/status-detail.module.ts index 0dadf0a..52f55ae 100644 --- a/projects/status/src/status-detail/status-detail.module.ts +++ b/projects/status/src/status-detail/status-detail.module.ts @@ -1,7 +1,7 @@ import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; -import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; import { MatIconModule } from '@angular/material/icon'; +import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; import { NgxAbstractLazyModule } from '@hug/ngx-core'; import { NgxMessageBoxComponent } from '@hug/ngx-message-box'; diff --git a/projects/status/src/status.module.ts b/projects/status/src/status.module.ts index 921735d..e5190c2 100644 --- a/projects/status/src/status.module.ts +++ b/projects/status/src/status.module.ts @@ -1,7 +1,7 @@ import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; -import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; import { MatIconModule } from '@angular/material/icon'; +import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button'; import { NgxAbstractLazyModule } from '@hug/ngx-core'; import { NgxSnackbarComponent } from '@hug/ngx-snackbar';