File tree Expand file tree Collapse file tree 4 files changed +13
-14
lines changed
projects/zxing-scanner-demo/src/app Expand file tree Collapse file tree 4 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 1
1
import { ChangeDetectionStrategy , Component , Inject } from '@angular/core' ;
2
- import { MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from '@angular/material/legacy- dialog' ;
2
+ import { MAT_DIALOG_DATA } from '@angular/material/dialog' ;
3
3
4
4
@Component ( {
5
5
selector : 'app-info-dialog' ,
Original file line number Diff line number Diff line change 1
1
import { NgModule } from '@angular/core' ;
2
2
import { FormsModule } from '@angular/forms' ;
3
- import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy- button' ;
4
- import { MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy- dialog' ;
5
- import { MatLegacyFormFieldModule as MatFormFieldModule } from '@angular/material/legacy- form-field' ;
3
+ import { MatButtonModule } from '@angular/material/button' ;
4
+ import { MatDialogModule } from '@angular/material/dialog' ;
5
+ import { MatFormFieldModule } from '@angular/material/form-field' ;
6
6
import { MatIconModule } from '@angular/material/icon' ;
7
- import { MatLegacyInputModule as MatInputModule } from '@angular/material/legacy- input' ;
8
- import { MatLegacyListModule as MatListModule } from '@angular/material/legacy- list' ;
9
- import { MatLegacyMenuModule as MatMenuModule } from '@angular/material/legacy- menu' ;
10
- import { MatLegacySelectModule as MatSelectModule } from '@angular/material/legacy- select' ;
11
- import { MatLegacyTooltipModule as MatTooltipModule } from '@angular/material/legacy- tooltip' ;
7
+ import { MatInputModule } from '@angular/material/input' ;
8
+ import { MatListModule } from '@angular/material/list' ;
9
+ import { MatMenuModule } from '@angular/material/menu' ;
10
+ import { MatSelectModule } from '@angular/material/select' ;
11
+ import { MatTooltipModule } from '@angular/material/tooltip' ;
12
12
import { BrowserAnimationsModule } from '@angular/platform-browser/animations' ;
13
13
import { ZXingScannerModule } from './public_api' ;
14
14
Original file line number Diff line number Diff line change 3
3
</ header >
4
4
5
5
< mat-selection-list #selectedFormats (selectionChange) ="onSelectionChange($event) ">
6
- < mat-list-option *ngFor ="let format of formatsAvailable " checkboxPosition =" start " [selected] ="isEnabled(format) " [value] ="format ">
6
+ < mat-list-option *ngFor ="let format of formatsAvailable " [selected] ="isEnabled(format) " [value] ="format ">
7
7
{{ formatNames[format] }}
8
8
</ mat-list-option >
9
9
</ mat-selection-list >
Original file line number Diff line number Diff line change 1
1
import { Component , Inject } from '@angular/core' ;
2
- import { MatLegacyDialogRef as MatDialogRef , MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from '@angular/material/legacy- dialog' ;
3
- import { MatLegacySelectionListChange as MatSelectionListChange } from '@angular/material/legacy- list' ;
2
+ import { MatDialogRef , MAT_DIALOG_DATA } from '@angular/material/dialog' ;
3
+ import { MatSelectionListChange } from '@angular/material/list' ;
4
4
import { BarcodeFormat } from '@zxing/library' ;
5
5
import { formatNames , formatsAvailable } from '../barcode-formats' ;
6
6
@@ -19,8 +19,7 @@ export class FormatsDialogComponent {
19
19
20
20
constructor (
21
21
@Inject ( MAT_DIALOG_DATA ) readonly data : any ,
22
- private readonly _dialogRef : MatDialogRef < FormatsDialogComponent > ,
23
- ) {
22
+ private readonly _dialogRef : MatDialogRef < FormatsDialogComponent > ) {
24
23
this . formatsEnabled = data . formatsEnabled || [ ] ;
25
24
}
26
25
You can’t perform that action at this time.
0 commit comments