Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 1d827a4

Browse files
tijoforyounshahan
authored andcommitted
Migrate material_input package off of deprecated GlyphComponent.
PiperOrigin-RevId: 179450549
1 parent 0b9f655 commit 1d827a4

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

lib/material_input/material_auto_suggest_input.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import 'package:angular_components/content/deferred_content.dart';
1212
import 'package:angular_components/dynamic_component/dynamic_component.dart';
1313
import 'package:angular_components/focus/focus.dart';
1414
import 'package:angular_components/focus/keyboard_only_focus_indicator.dart';
15-
import 'package:angular_components/glyph/glyph.dart';
1615
import 'package:angular_components/laminate/enums/alignment.dart';
1716
import 'package:angular_components/laminate/popup/popup.dart';
17+
import 'package:angular_components/material_icon/material_icon.dart';
1818
import 'package:angular_components/material_input/input_wrapper.dart';
1919
import 'package:angular_components/material_list/material_list.dart';
2020
import 'package:angular_components/material_popup/material_popup.dart';
@@ -134,8 +134,8 @@ typedef String _InputChangeCallback(String inputText);
134134
ButtonDirective,
135135
CachingDeferredContentDirective,
136136
DynamicComponent,
137-
GlyphComponent,
138137
KeyboardOnlyFocusIndicatorDirective,
138+
MaterialIconComponent,
139139
materialInputDirectives,
140140
MaterialListComponent,
141141
MaterialSelectDropdownItemComponent,

lib/material_input/material_auto_suggest_input.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
(keypress)="onKeyPress($event)"
3939
(keyup)="onKeyUp($event)">
4040
<span trailing>
41-
<glyph
41+
<material-icon
4242
*ngIf="showClearIcon"
4343
icon="clear"
4444
buttonDecorator
@@ -48,7 +48,7 @@
4848
[materialTooltip]="clearIconTooltip"
4949
[showTooltipIf]="hasClearIconTooltip"
5050
(trigger)="onClearIcon()">
51-
</glyph>
51+
</material-icon>
5252
<ng-content select="[trailing]"></ng-content>
5353
</span>
5454
</material-input>

lib/material_input/material_input.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'package:angular/angular.dart';
66
import 'package:angular_forms/angular_forms.dart';
77
import 'package:quiver/strings.dart' show isNotEmpty;
88
import 'package:angular_components/focus/focus.dart';
9-
import 'package:angular_components/glyph/glyph.dart';
9+
import 'package:angular_components/material_icon/material_icon.dart';
1010
import 'package:angular_components/utils/angular/properties/properties.dart';
1111
import 'package:angular_components/utils/angular/reference/reference.dart';
1212

@@ -133,7 +133,7 @@ const String materialInputErrorKey = 'material-input-error';
133133
directives: const [
134134
DefaultValueAccessor,
135135
FocusableDirective,
136-
GlyphComponent,
136+
MaterialIconComponent,
137137
NgFor,
138138
NgIf,
139139
NgModel,

lib/material_input/material_input.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
<span *ngIf="hasLeadingGlyph"
99
class="leading-text"
1010
[class.floated-label]="floatingLabel">
11-
<glyph class="glyph leading"
12-
icon="{{leadingGlyph}}"
13-
[attr.disabled]="disabled">
14-
</glyph>
11+
<material-icon class="glyph leading"
12+
icon="{{leadingGlyph}}"
13+
[attr.disabled]="disabled">
14+
</material-icon>
1515
</span>
1616
<span *ngIf="hasLeadingText"
1717
class="leading-text"
@@ -60,10 +60,10 @@
6060
<span *ngIf="hasTrailingGlyph"
6161
class="trailing-text"
6262
[class.floated-label]="floatingLabel">
63-
<glyph class="glyph trailing"
64-
icon="{{trailingGlyph}}"
65-
[attr.disabled]="disabled">
66-
</glyph>
63+
<material-icon class="glyph trailing"
64+
icon="{{trailingGlyph}}"
65+
[attr.disabled]="disabled">
66+
</material-icon>
6767
</span>
6868
<ng-content select="[trailing]"></ng-content>
6969
</div>

0 commit comments

Comments
 (0)