Skip to content

Commit 7b10fcb

Browse files
committed
refactor(material/legacy-input): rename ts symbols
1 parent 987f84b commit 7b10fcb

File tree

6 files changed

+25
-22
lines changed

6 files changed

+25
-22
lines changed

src/material/datepicker/datepicker-input.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {Directive, ElementRef, forwardRef, Inject, Input, OnDestroy, Optional} f
1010
import {NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidatorFn, Validators} from '@angular/forms';
1111
import {DateAdapter, MAT_DATE_FORMATS, MatDateFormats, ThemePalette} from '@angular/material/core';
1212
import {MatLegacyFormField, MAT_LEGACY_FORM_FIELD} from '@angular/material/legacy-form-field';
13-
import {MAT_INPUT_VALUE_ACCESSOR} from '@angular/material/legacy-input';
13+
import {MAT_LEGACY_INPUT_VALUE_ACCESSOR} from '@angular/material/legacy-input';
1414
import {Subscription} from 'rxjs';
1515
import {MatDatepickerInputBase, DateFilterFn} from './datepicker-input-base';
1616
import {MatDatepickerControl, MatDatepickerPanel} from './datepicker-base';
@@ -36,7 +36,7 @@ export const MAT_DATEPICKER_VALIDATORS: any = {
3636
providers: [
3737
MAT_DATEPICKER_VALUE_ACCESSOR,
3838
MAT_DATEPICKER_VALIDATORS,
39-
{provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: MatDatepickerInput},
39+
{provide: MAT_LEGACY_INPUT_VALUE_ACCESSOR, useExisting: MatDatepickerInput},
4040
],
4141
host: {
4242
'class': 'mat-datepicker-input',

src/material/legacy-input/input.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import {By} from '@angular/platform-browser';
4545
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
4646
import {Directionality, Direction} from '@angular/cdk/bidi';
4747
import {Subject} from 'rxjs';
48-
import {MatLegacyInputModule, MatLegacyInput, MAT_INPUT_VALUE_ACCESSOR} from './index';
48+
import {MatLegacyInputModule, MatLegacyInput, MAT_LEGACY_INPUT_VALUE_ACCESSOR} from './index';
4949

5050
describe('MatInput without forms', () => {
5151
it('should default to floating labels', fakeAsync(() => {
@@ -2390,7 +2390,7 @@ class MatInputSelectWithoutOptions {}
23902390
selector: 'input[customInputAccessor]',
23912391
providers: [
23922392
{
2393-
provide: MAT_INPUT_VALUE_ACCESSOR,
2393+
provide: MAT_LEGACY_INPUT_VALUE_ACCESSOR,
23942394
useExisting: CustomMatInputAccessor,
23952395
},
23962396
],

src/material/legacy-input/public-api.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
export * from './input';
10-
export * from './input-module';
11-
export {MAT_INPUT_VALUE_ACCESSOR, getMatInputUnsupportedTypeError} from '@angular/material/input';
9+
export {MatLegacyInput} from './input';
10+
export {MatLegacyInputModule} from './input-module';
11+
export {
12+
MAT_INPUT_VALUE_ACCESSOR as MAT_LEGACY_INPUT_VALUE_ACCESSOR,
13+
getMatInputUnsupportedTypeError as getMatLegacyInputUnsupportedTypeError,
14+
} from '@angular/material/input';

src/material/legacy-input/testing/public-api.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
*/
88

99
export {
10-
InputHarnessFilters,
10+
InputHarnessFilters as LegacyInputHarnessFilters,
1111
MatInputHarness as MatLegacyInputHarness,
1212
MatNativeSelectHarness as MatLegacyNativeSelectHarness,
1313
MatNativeOptionHarness as MatLegacyNativeOptionHarness,
14-
NativeOptionHarnessFilters,
15-
NativeSelectHarnessFilters,
14+
NativeOptionHarnessFilters as LegacyNativeOptionHarnessFilters,
15+
NativeSelectHarnessFilters as LegacyNativeSelectHarnessFilters,
1616
} from '@angular/material/input/testing';

tools/public_api_guard/material/legacy-input-testing.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@
44
55
```ts
66

7-
import { InputHarnessFilters } from '@angular/material/input/testing';
7+
import { InputHarnessFilters as LegacyInputHarnessFilters } from '@angular/material/input/testing';
8+
import { NativeOptionHarnessFilters as LegacyNativeOptionHarnessFilters } from '@angular/material/input/testing';
9+
import { NativeSelectHarnessFilters as LegacyNativeSelectHarnessFilters } from '@angular/material/input/testing';
810
import { MatInputHarness as MatLegacyInputHarness } from '@angular/material/input/testing';
911
import { MatNativeOptionHarness as MatLegacyNativeOptionHarness } from '@angular/material/input/testing';
1012
import { MatNativeSelectHarness as MatLegacyNativeSelectHarness } from '@angular/material/input/testing';
11-
import { NativeOptionHarnessFilters } from '@angular/material/input/testing';
12-
import { NativeSelectHarnessFilters } from '@angular/material/input/testing';
1313

14-
export { InputHarnessFilters }
14+
export { LegacyInputHarnessFilters }
15+
16+
export { LegacyNativeOptionHarnessFilters }
17+
18+
export { LegacyNativeSelectHarnessFilters }
1519

1620
export { MatLegacyInputHarness }
1721

1822
export { MatLegacyNativeOptionHarness }
1923

2024
export { MatLegacyNativeSelectHarness }
2125

22-
export { NativeOptionHarnessFilters }
23-
24-
export { NativeSelectHarnessFilters }
25-
2626
// (No @packageDocumentation comment for this package)
2727

2828
```

tools/public_api_guard/material/legacy-input.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
55
```ts
66

7-
import { getMatInputUnsupportedTypeError } from '@angular/material/input';
7+
import { getMatInputUnsupportedTypeError as getMatLegacyInputUnsupportedTypeError } from '@angular/material/input';
88
import * as i0 from '@angular/core';
99
import * as i2 from '@angular/cdk/text-field';
1010
import * as i3 from '@angular/material/legacy-form-field';
1111
import * as i4 from '@angular/material/core';
12-
import { MAT_INPUT_VALUE_ACCESSOR } from '@angular/material/input';
12+
import { MAT_INPUT_VALUE_ACCESSOR as MAT_LEGACY_INPUT_VALUE_ACCESSOR } from '@angular/material/input';
1313
import { MatInput } from '@angular/material/input';
1414

15-
export { getMatInputUnsupportedTypeError }
15+
export { getMatLegacyInputUnsupportedTypeError }
1616

17-
export { MAT_INPUT_VALUE_ACCESSOR }
17+
export { MAT_LEGACY_INPUT_VALUE_ACCESSOR }
1818

1919
// @public
2020
export class MatLegacyInput extends MatInput {

0 commit comments

Comments
 (0)